@alfresco/adf-core 8.4.0-18878438842 → 8.4.0-18902816026
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/adf-core.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Injectable, TemplateRef, ContentChild, Directive, ContentChildren, RendererFactory2, Optional, Inject, NgModule, HostBinding, Pipe, InjectionToken, provideAppInitializer, EventEmitter, HostListener, ViewChild, Output, ViewChildren, DestroyRef, QueryList, DEFAULT_CURRENCY_CODE, SecurityContext, ElementRef, ViewContainerRef, forwardRef, Compiler, Injector } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule, DOCUMENT, NgIf, NgClass, NgForOf, AsyncPipe, NgTemplateOutlet, NgStyle, DecimalPipe, DatePipe,
|
|
4
|
+
import { CommonModule, DOCUMENT, NgIf, NgClass, NgForOf, AsyncPipe, NgTemplateOutlet, NgStyle, DecimalPipe, DatePipe, NgFor } from '@angular/common';
|
|
5
5
|
import * as i2 from '@angular/material/table';
|
|
6
6
|
import { MatTableModule, MatTableDataSource } from '@angular/material/table';
|
|
7
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
8
8
|
import { TranslatePipe, provideTranslateService, TranslateLoader } from '@ngx-translate/core';
|
|
9
9
|
import * as i1$8 from '@angular/common/http';
|
|
10
10
|
import { HttpClient, HttpHeaders, HttpResponse, provideHttpClient, HTTP_INTERCEPTORS, withInterceptorsFromDi, withXsrfConfiguration } from '@angular/common/http';
|
|
11
|
-
import { ReplaySubject, BehaviorSubject, of, Subject, switchMap as switchMap$1, from, fromEvent, Observable, throwError, firstValueFrom, combineLatest, defer, EMPTY, race, forkJoin, merge
|
|
11
|
+
import { ReplaySubject, BehaviorSubject, of, Subject, switchMap as switchMap$1, from, fromEvent, Observable, throwError, firstValueFrom, combineLatest, defer, EMPTY, race, forkJoin, merge } from 'rxjs';
|
|
12
12
|
import { map, distinctUntilChanged, take, switchMap, delay, catchError, skipWhile, filter, first, timeout, shareReplay, mergeMap, tap, retry, takeUntil, debounceTime, share, pairwise, buffer } from 'rxjs/operators';
|
|
13
13
|
import * as i1$4 from '@alfresco/adf-extensions';
|
|
14
14
|
import { ExtensionService, mergeObjects, ExtensionsModule, PreviewExtensionComponent } from '@alfresco/adf-extensions';
|
|
@@ -8782,8 +8782,7 @@ class RedirectAuthService extends AuthService {
|
|
|
8782
8782
|
this.oauthService.configure(config);
|
|
8783
8783
|
this.oauthService.tokenValidationHandler = new JwksValidationHandler();
|
|
8784
8784
|
if (config.sessionChecksEnabled) {
|
|
8785
|
-
|
|
8786
|
-
this.oauthService.events.pipe(filter((event) => sessionErrorTypesToPerformLogout.includes(event.type))).subscribe(() => {
|
|
8785
|
+
this.oauthService.events.pipe(filter((event) => event.type === 'session_terminated')).subscribe(() => {
|
|
8787
8786
|
this.oauthService.logOut();
|
|
8788
8787
|
});
|
|
8789
8788
|
}
|
|
@@ -10607,37 +10606,6 @@ const OidcAuthGuard = async () => {
|
|
|
10607
10606
|
}
|
|
10608
10607
|
};
|
|
10609
10608
|
|
|
10610
|
-
/*!
|
|
10611
|
-
* @license
|
|
10612
|
-
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
10613
|
-
*
|
|
10614
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10615
|
-
* you may not use this file except in compliance with the License.
|
|
10616
|
-
* You may obtain a copy of the License at
|
|
10617
|
-
*
|
|
10618
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10619
|
-
*
|
|
10620
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10621
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10622
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10623
|
-
* See the License for the specific language governing permissions and
|
|
10624
|
-
* limitations under the License.
|
|
10625
|
-
*/
|
|
10626
|
-
class FrontChannelLogoutComponent {
|
|
10627
|
-
constructor() {
|
|
10628
|
-
this.authService = inject(AuthService);
|
|
10629
|
-
}
|
|
10630
|
-
ngOnInit() {
|
|
10631
|
-
this.authService.logout();
|
|
10632
|
-
}
|
|
10633
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrontChannelLogoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10634
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FrontChannelLogoutComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
|
10635
|
-
}
|
|
10636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrontChannelLogoutComponent, decorators: [{
|
|
10637
|
-
type: Component,
|
|
10638
|
-
args: [{ template: '', standalone: true }]
|
|
10639
|
-
}] });
|
|
10640
|
-
|
|
10641
10609
|
/*!
|
|
10642
10610
|
* @license
|
|
10643
10611
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
@@ -10655,8 +10623,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
10655
10623
|
* limitations under the License.
|
|
10656
10624
|
*/
|
|
10657
10625
|
const AUTH_ROUTES = [
|
|
10658
|
-
{ path: 'view/authentication-confirmation', component: AuthenticationConfirmationComponent, canActivate: [OidcAuthGuard] }
|
|
10659
|
-
{ path: 'oidc/frontchannel_logout', component: FrontChannelLogoutComponent }
|
|
10626
|
+
{ path: 'view/authentication-confirmation', component: AuthenticationConfirmationComponent, canActivate: [OidcAuthGuard] }
|
|
10660
10627
|
];
|
|
10661
10628
|
|
|
10662
10629
|
/*!
|
|
@@ -22621,91 +22588,25 @@ class AmountWidgetComponent extends WidgetComponent {
|
|
|
22621
22588
|
get placeholder() {
|
|
22622
22589
|
return this.showPlaceholder ? this.field.placeholder : '';
|
|
22623
22590
|
}
|
|
22624
|
-
constructor(formService, settings
|
|
22591
|
+
constructor(formService, settings) {
|
|
22625
22592
|
super(formService);
|
|
22626
22593
|
this.formService = formService;
|
|
22627
|
-
this.
|
|
22594
|
+
this.settings = settings;
|
|
22628
22595
|
this.showPlaceholder = true;
|
|
22629
22596
|
this.currency = AmountWidgetComponent.DEFAULT_CURRENCY;
|
|
22630
|
-
this.currencyDisplay = 'symbol';
|
|
22631
|
-
this.notShowDecimalDigits = '1.0-0';
|
|
22632
|
-
this.showDecimalDigits = '1.2-2';
|
|
22633
|
-
if (isObservable(settings)) {
|
|
22634
|
-
settings.pipe(takeUntilDestroyed()).subscribe((data) => {
|
|
22635
|
-
this.updateSettingsBasedProperties(data);
|
|
22636
|
-
});
|
|
22637
|
-
}
|
|
22638
|
-
else {
|
|
22639
|
-
this.updateSettingsBasedProperties(settings);
|
|
22640
|
-
}
|
|
22641
22597
|
}
|
|
22642
22598
|
ngOnInit() {
|
|
22643
22599
|
if (this.field) {
|
|
22644
22600
|
if (this.field.currency) {
|
|
22645
22601
|
this.currency = this.field.currency;
|
|
22646
22602
|
}
|
|
22647
|
-
else {
|
|
22648
|
-
if (this.enableDisplayBasedOnLocale) {
|
|
22649
|
-
this.currency = '';
|
|
22650
|
-
this.currencyDisplay = '';
|
|
22651
|
-
}
|
|
22652
|
-
}
|
|
22653
22603
|
if (this.field.readOnly) {
|
|
22654
|
-
this.showPlaceholder = this.showReadonlyPlaceholder;
|
|
22604
|
+
this.showPlaceholder = this.settings?.showReadonlyPlaceholder;
|
|
22655
22605
|
}
|
|
22656
|
-
this.setInitialValues();
|
|
22657
|
-
}
|
|
22658
|
-
}
|
|
22659
|
-
amountWidgetOnBlur() {
|
|
22660
|
-
if (this.enableDisplayBasedOnLocale) {
|
|
22661
|
-
if (this.amountWidgetValue) {
|
|
22662
|
-
this.valueAsNumber = parseFloat(this.amountWidgetValue);
|
|
22663
|
-
this.amountWidgetValue = this.currencyPipe.transform(this.amountWidgetValue, this.currency, this.currencyDisplay, this.decimalProperty);
|
|
22664
|
-
}
|
|
22665
|
-
else {
|
|
22666
|
-
this.valueAsNumber = null;
|
|
22667
|
-
this.amountWidgetValue = null;
|
|
22668
|
-
}
|
|
22669
|
-
}
|
|
22670
|
-
this.markAsTouched();
|
|
22671
|
-
}
|
|
22672
|
-
amountWidgetOnFocus() {
|
|
22673
|
-
if (this.enableDisplayBasedOnLocale) {
|
|
22674
|
-
const hasValue = this.valueAsNumber === 0 || this.valueAsNumber;
|
|
22675
|
-
this.amountWidgetValue = hasValue ? this.valueAsNumber.toString() : null;
|
|
22676
22606
|
}
|
|
22677
22607
|
}
|
|
22678
|
-
|
|
22679
|
-
|
|
22680
|
-
if (typeof window?.navigator === 'undefined') {
|
|
22681
|
-
return defaultLocale;
|
|
22682
|
-
}
|
|
22683
|
-
const wn = window.navigator;
|
|
22684
|
-
let lang = wn.languages ? wn.languages[0] : defaultLocale;
|
|
22685
|
-
lang = lang || wn.language;
|
|
22686
|
-
return lang;
|
|
22687
|
-
}
|
|
22688
|
-
onFieldChangedAmountWidget() {
|
|
22689
|
-
this.field.value = this.amountWidgetValue;
|
|
22690
|
-
super.onFieldChanged(this.field);
|
|
22691
|
-
}
|
|
22692
|
-
setInitialValues() {
|
|
22693
|
-
if (this.enableDisplayBasedOnLocale) {
|
|
22694
|
-
this.decimalProperty = this.field.enableFractions ? this.showDecimalDigits : this.notShowDecimalDigits;
|
|
22695
|
-
this.locale = this.getLocale();
|
|
22696
|
-
this.valueAsNumber = this.field.value;
|
|
22697
|
-
this.amountWidgetValue = this.currencyPipe.transform(this.field.value, this.currency, this.currencyDisplay, this.decimalProperty, this.locale);
|
|
22698
|
-
}
|
|
22699
|
-
else {
|
|
22700
|
-
this.amountWidgetValue = this.field.value;
|
|
22701
|
-
}
|
|
22702
|
-
}
|
|
22703
|
-
updateSettingsBasedProperties(data) {
|
|
22704
|
-
this.enableDisplayBasedOnLocale = data?.enableDisplayBasedOnLocale ?? false;
|
|
22705
|
-
this.showReadonlyPlaceholder = data?.showReadonlyPlaceholder;
|
|
22706
|
-
}
|
|
22707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AmountWidgetComponent, deps: [{ token: FormService }, { token: ADF_AMOUNT_SETTINGS, optional: true }, { token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22708
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: AmountWidgetComponent, isStandalone: true, selector: "amount-widget", host: { listeners: { "click": "event($event)", "blur": "event($event)", "change": "event($event)", "focus": "event($event)", "focusin": "event($event)", "focusout": "event($event)", "input": "event($event)", "invalid": "event($event)", "select": "event($event)" } }, providers: [CurrencyPipe], usesInheritance: true, ngImport: i0, template: "<div\n class=\"adf-amount-widget__container adf-amount-widget {{field.className}}\"\n [class.adf-invalid]=\"!field.isValid && isTouched()\"\n [class.adf-readonly]=\"field.readOnly\"\n [class.adf-left-label-input-container]=\"field.leftLabels\"\n>\n <div *ngIf=\"field.leftLabels\">\n <label class=\"adf-label adf-left-label\" [attr.for]=\"field.id\"\n >{{field.name | translate }}<span class=\"adf-asterisk\" [style.visibility]=\"isRequired() ? 'visible' : 'hidden'\">*</span></label\n >\n </div>\n <div class=\"adf-amount-widget-container\">\n <mat-form-field class=\"adf-amount-widget__input adf-form-field-input\" [floatLabel]=\"placeholder ? 'always' : null\">\n @if ( (field.name || field?.required) && !field.leftLabels) { <mat-label class=\"adf-label\" [attr.for]=\"field.id\">{{field.name | translate }}</mat-label> }\n @if(!enableDisplayBasedOnLocale) {\n <span matTextPrefix class=\"adf-amount-widget__prefix-spacing\">{{ currency }} </span>\n }\n <input\n matInput\n [title]=\"field.tooltip\"\n class=\"adf-input\"\n type=\"text\"\n [id]=\"field.id\"\n [required]=\"field.required && field.isVisible\"\n [placeholder]=\"placeholder\"\n [value]=\"amountWidgetValue\"\n [(ngModel)]=\"amountWidgetValue\"\n (ngModelChange)=\"onFieldChangedAmountWidget()\"\n [disabled]=\"field.readOnly\"\n (focus)=\"amountWidgetOnFocus()\"\n (blur)=\"amountWidgetOnBlur()\"\n />\n </mat-form-field>\n <div class=\"adf-error-messages-container\">\n <error-widget [error]=\"field.validationSummary\" />\n <error-widget\n *ngIf=\"isInvalidFieldRequired() && isTouched()\"\n required=\"{{ 'FORM.FIELD.REQUIRED' | translate }}\"\n />\n </div>\n </div>\n</div>\n", styles: [".adf-amount-widget{width:100%}.adf-amount-widget .adf-left-label{line-height:36px}.adf-amount-widget-container{display:grid;align-items:flex-start}.adf-amount-widget__input .mat-focused{transition:none}.adf-amount-widget__input .adf-input{margin-top:3px}.adf-amount-widget__input:not(.mat-focused):not(.mat-form-field-invalid) .adf-amount-widget__prefix-spacing{color:var(--adf-theme-foreground-secondary-text-color)}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorWidgetComponent, selector: "error-widget", inputs: ["error", "required"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
22608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AmountWidgetComponent, deps: [{ token: FormService }, { token: ADF_AMOUNT_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22609
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: AmountWidgetComponent, isStandalone: true, selector: "amount-widget", host: { listeners: { "click": "event($event)", "blur": "event($event)", "change": "event($event)", "focus": "event($event)", "focusin": "event($event)", "focusout": "event($event)", "input": "event($event)", "invalid": "event($event)", "select": "event($event)" } }, usesInheritance: true, ngImport: i0, template: "<div\n class=\"adf-amount-widget__container adf-amount-widget {{field.className}}\"\n [class.adf-invalid]=\"!field.isValid && isTouched()\"\n [class.adf-readonly]=\"field.readOnly\"\n [class.adf-left-label-input-container]=\"field.leftLabels\"\n>\n <div *ngIf=\"field.leftLabels\">\n <label class=\"adf-label adf-left-label\" [attr.for]=\"field.id\"\n >{{field.name | translate }}<span class=\"adf-asterisk\" [style.visibility]=\"isRequired() ? 'visible' : 'hidden'\">*</span></label\n >\n </div>\n <div class=\"adf-amount-widget-container\">\n <mat-form-field class=\"adf-amount-widget__input adf-form-field-input\" [floatLabel]=\"placeholder ? 'always' : null\">\n @if ( (field.name || field?.required) && !field.leftLabels) { <mat-label class=\"adf-label\" [attr.for]=\"field.id\">{{field.name | translate }}</mat-label> }\n <span matTextPrefix class=\"adf-amount-widget__prefix-spacing\">{{ currency }} </span>\n <input\n matInput\n [title]=\"field.tooltip\"\n class=\"adf-input\"\n type=\"text\"\n [id]=\"field.id\"\n [required]=\"field.required && field.isVisible\"\n [placeholder]=\"placeholder\"\n [value]=\"field.value\"\n [(ngModel)]=\"field.value\"\n (ngModelChange)=\"onFieldChanged(field)\"\n [disabled]=\"field.readOnly\"\n (blur)=\"markAsTouched()\"\n />\n </mat-form-field>\n <div class=\"adf-error-messages-container\">\n <error-widget [error]=\"field.validationSummary\" />\n <error-widget\n *ngIf=\"isInvalidFieldRequired() && isTouched()\"\n required=\"{{ 'FORM.FIELD.REQUIRED' | translate }}\"\n />\n </div>\n </div>\n</div>\n", styles: [".adf-amount-widget{width:100%}.adf-amount-widget .adf-left-label{line-height:36px}.adf-amount-widget-container{display:grid;align-items:flex-start}.adf-amount-widget__input .mat-focused{transition:none}.adf-amount-widget__input .adf-input{margin-top:3px}.adf-amount-widget__input:not(.mat-focused):not(.mat-form-field-invalid) .adf-amount-widget__prefix-spacing{color:var(--adf-theme-foreground-secondary-text-color)}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorWidgetComponent, selector: "error-widget", inputs: ["error", "required"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
22709
22610
|
}
|
|
22710
22611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AmountWidgetComponent, decorators: [{
|
|
22711
22612
|
type: Component,
|
|
@@ -22719,13 +22620,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
22719
22620
|
'(input)': 'event($event)',
|
|
22720
22621
|
'(invalid)': 'event($event)',
|
|
22721
22622
|
'(select)': 'event($event)'
|
|
22722
|
-
}, imports: [MatFormFieldModule, MatInputModule, FormsModule, ErrorWidgetComponent, TranslatePipe, NgIf],
|
|
22623
|
+
}, imports: [MatFormFieldModule, MatInputModule, FormsModule, ErrorWidgetComponent, TranslatePipe, NgIf], encapsulation: ViewEncapsulation.None, template: "<div\n class=\"adf-amount-widget__container adf-amount-widget {{field.className}}\"\n [class.adf-invalid]=\"!field.isValid && isTouched()\"\n [class.adf-readonly]=\"field.readOnly\"\n [class.adf-left-label-input-container]=\"field.leftLabels\"\n>\n <div *ngIf=\"field.leftLabels\">\n <label class=\"adf-label adf-left-label\" [attr.for]=\"field.id\"\n >{{field.name | translate }}<span class=\"adf-asterisk\" [style.visibility]=\"isRequired() ? 'visible' : 'hidden'\">*</span></label\n >\n </div>\n <div class=\"adf-amount-widget-container\">\n <mat-form-field class=\"adf-amount-widget__input adf-form-field-input\" [floatLabel]=\"placeholder ? 'always' : null\">\n @if ( (field.name || field?.required) && !field.leftLabels) { <mat-label class=\"adf-label\" [attr.for]=\"field.id\">{{field.name | translate }}</mat-label> }\n <span matTextPrefix class=\"adf-amount-widget__prefix-spacing\">{{ currency }} </span>\n <input\n matInput\n [title]=\"field.tooltip\"\n class=\"adf-input\"\n type=\"text\"\n [id]=\"field.id\"\n [required]=\"field.required && field.isVisible\"\n [placeholder]=\"placeholder\"\n [value]=\"field.value\"\n [(ngModel)]=\"field.value\"\n (ngModelChange)=\"onFieldChanged(field)\"\n [disabled]=\"field.readOnly\"\n (blur)=\"markAsTouched()\"\n />\n </mat-form-field>\n <div class=\"adf-error-messages-container\">\n <error-widget [error]=\"field.validationSummary\" />\n <error-widget\n *ngIf=\"isInvalidFieldRequired() && isTouched()\"\n required=\"{{ 'FORM.FIELD.REQUIRED' | translate }}\"\n />\n </div>\n </div>\n</div>\n", styles: [".adf-amount-widget{width:100%}.adf-amount-widget .adf-left-label{line-height:36px}.adf-amount-widget-container{display:grid;align-items:flex-start}.adf-amount-widget__input .mat-focused{transition:none}.adf-amount-widget__input .adf-input{margin-top:3px}.adf-amount-widget__input:not(.mat-focused):not(.mat-form-field-invalid) .adf-amount-widget__prefix-spacing{color:var(--adf-theme-foreground-secondary-text-color)}\n"] }]
|
|
22723
22624
|
}], ctorParameters: () => [{ type: FormService }, { type: undefined, decorators: [{
|
|
22724
|
-
type: Optional
|
|
22725
|
-
}, {
|
|
22726
22625
|
type: Inject,
|
|
22727
22626
|
args: [ADF_AMOUNT_SETTINGS]
|
|
22728
|
-
}
|
|
22627
|
+
}, {
|
|
22628
|
+
type: Optional
|
|
22629
|
+
}] }] });
|
|
22729
22630
|
|
|
22730
22631
|
/*!
|
|
22731
22632
|
* @license
|