UNPKG

@alfresco/adf-core

Version:
60 lines (59 loc) 2.64 kB
/*! * @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. */ import { CurrencyPipe } from '@angular/common'; import { OnInit, InjectionToken } from '@angular/core'; import { FormService } from '../../../services/form.service'; import { WidgetComponent } from '../widget.component'; import { Observable } from 'rxjs'; import { TranslationService } from '../../../../translation/translation.service'; import * as i0 from "@angular/core"; export interface AmountWidgetSettings { showReadonlyPlaceholder: boolean; enableDisplayBasedOnLocale: boolean; } export declare const ADF_AMOUNT_SETTINGS: InjectionToken<AmountWidgetSettings | Observable<AmountWidgetSettings>>; export declare class AmountWidgetComponent extends WidgetComponent implements OnInit { formService: FormService; private currencyPipe; private translationService; static DEFAULT_CURRENCY: string; private showPlaceholder; private readonly destroyRef; amountWidgetValue: string; currency: string; currencyDisplay: string | boolean; decimalProperty: string; enableDisplayBasedOnLocale: boolean; isInputInFocus: boolean; locale: string; notShowDecimalDigits: string; showDecimalDigits: string; showReadonlyPlaceholder: boolean; valueAsNumber: number; get placeholder(): string; constructor(formService: FormService, settings: Observable<AmountWidgetSettings> | AmountWidgetSettings, currencyPipe: CurrencyPipe, translationService: TranslationService); ngOnInit(): void; amountWidgetOnBlur(): void; amountWidgetOnFocus(): void; onFieldChangedAmountWidget(): void; setInitialValues(): void; subscribeToFieldChanges(): void; updateValue(value: any): void; updateSettingsBasedProperties(data: AmountWidgetSettings): void; static ɵfac: i0.ɵɵFactoryDeclaration<AmountWidgetComponent, [null, { optional: true; }, null, null]>; static ɵcmp: i0.ɵɵComponentDeclaration<AmountWidgetComponent, "amount-widget", never, {}, {}, never, never, true, never>; }