mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-23 22:30:37 +00:00
refactor: remove DecimalNumberModel and update related references
- Deleted the DecimalNumberModel class from the models directory to streamline the codebase. - Updated public API exports to remove references to DecimalNumberModel. - Replaced the class with an interface in the decimal-number.pipe.ts file to maintain functionality while simplifying the implementation.
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export class DecimalNumberModel {
|
||||
minIntegerDigits: number;
|
||||
minFractionDigits: number;
|
||||
maxFractionDigits: number;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.minIntegerDigits = obj.minIntegerDigits;
|
||||
this.minFractionDigits = obj.minFractionDigits;
|
||||
this.maxFractionDigits = obj.maxFractionDigits;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,5 @@
|
||||
export * from './comment.model';
|
||||
export * from './pagination.model';
|
||||
export * from './request-pagination.model';
|
||||
export * from './decimal-number.model';
|
||||
export * from './general-user.model';
|
||||
export * from './path.model';
|
||||
|
||||
@@ -19,7 +19,12 @@ import { DecimalPipe } from '@angular/common';
|
||||
import { Pipe, PipeTransform, inject } from '@angular/core';
|
||||
import { AppConfigService } from '../app-config/app-config.service';
|
||||
import { UserPreferencesService } from '../common/services/user-preferences.service';
|
||||
import { DecimalNumberModel } from '../models/decimal-number.model';
|
||||
|
||||
export interface DecimalNumberModel {
|
||||
minIntegerDigits?: number;
|
||||
minFractionDigits?: number;
|
||||
maxFractionDigits?: number;
|
||||
}
|
||||
|
||||
@Pipe({
|
||||
name: 'adfDecimalNumber',
|
||||
|
||||
Reference in New Issue
Block a user