@theseam/ui-common 1.0.0-beta.8 → 1.0.0
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/buttons/index.d.ts +4 -1
- package/datatable/index.d.ts +92 -53
- package/fesm2022/theseam-ui-common-asset-reader.mjs +10 -10
- package/fesm2022/theseam-ui-common-asset-reader.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs +6 -6
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-buttons.mjs +35 -28
- package/fesm2022/theseam-ui-common-buttons.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-card.mjs +16 -16
- package/fesm2022/theseam-ui-common-card.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-carousel.mjs +10 -10
- package/fesm2022/theseam-ui-common-carousel.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-checkbox.mjs +7 -7
- package/fesm2022/theseam-ui-common-checkbox.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs +13 -13
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-data-exporter.mjs +31 -14
- package/fesm2022/theseam-ui-common-data-exporter.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-data-filters.mjs +13 -13
- package/fesm2022/theseam-ui-common-data-filters.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs +12 -12
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs +25 -25
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-datatable.mjs +279 -185
- package/fesm2022/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs +7 -7
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-dynamic.mjs +21 -21
- package/fesm2022/theseam-ui-common-dynamic.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-footer-bar.mjs +7 -7
- package/fesm2022/theseam-ui-common-footer-bar.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-form-field-error.mjs +16 -16
- package/fesm2022/theseam-ui-common-form-field-error.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-form-field.mjs +22 -22
- package/fesm2022/theseam-ui-common-form-field.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-framework.mjs +157 -157
- package/fesm2022/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-google-maps.mjs +40 -40
- package/fesm2022/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-graphql.mjs +3 -3
- package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-icon.mjs +13 -13
- package/fesm2022/theseam-ui-common-icon.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-layout.mjs +7 -7
- package/fesm2022/theseam-ui-common-layout.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-loading.mjs +10 -10
- package/fesm2022/theseam-ui-common-loading.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-menu.mjs +25 -25
- package/fesm2022/theseam-ui-common-menu.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-modal.mjs +43 -43
- package/fesm2022/theseam-ui-common-modal.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-navigation-reload.mjs +3 -3
- package/fesm2022/theseam-ui-common-navigation-reload.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-popover.mjs +10 -10
- package/fesm2022/theseam-ui-common-popover.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-progress.mjs +7 -7
- package/fesm2022/theseam-ui-common-progress.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-rich-text.mjs +7 -7
- package/fesm2022/theseam-ui-common-rich-text.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-scrollbar.mjs +6 -6
- package/fesm2022/theseam-ui-common-scrollbar.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-services.mjs +12 -12
- package/fesm2022/theseam-ui-common-services.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-shared.mjs +37 -37
- package/fesm2022/theseam-ui-common-shared.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-storage.mjs +3 -3
- package/fesm2022/theseam-ui-common-storage.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-story-helpers.mjs +26 -26
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tabbed.mjs +22 -22
- package/fesm2022/theseam-ui-common-tabbed.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-table-cell-type.mjs +39 -11
- package/fesm2022/theseam-ui-common-table-cell-type.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-table-cell-types.mjs +31 -31
- package/fesm2022/theseam-ui-common-table-cell-types.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-table.mjs +23 -21
- package/fesm2022/theseam-ui-common-table.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tel-input.mjs +13 -13
- package/fesm2022/theseam-ui-common-tel-input.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tiled-select.mjs +22 -22
- package/fesm2022/theseam-ui-common-tiled-select.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-toggle-edit.mjs +16 -16
- package/fesm2022/theseam-ui-common-toggle-edit.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-toggle-group.mjs +10 -10
- package/fesm2022/theseam-ui-common-toggle-group.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tooltip.mjs +10 -10
- package/fesm2022/theseam-ui-common-tooltip.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs +10 -10
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs +3 -3
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-viewers.mjs +12 -12
- package/fesm2022/theseam-ui-common-viewers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-widget.mjs +135 -135
- package/fesm2022/theseam-ui-common-widget.mjs.map +1 -1
- package/package.json +33 -33
- package/table/index.d.ts +1 -2
- package/table-cell-type/index.d.ts +27 -2
|
@@ -15,13 +15,13 @@ class FormFieldErrorListItemTplDirective {
|
|
|
15
15
|
constructor(template) {
|
|
16
16
|
this.template = template;
|
|
17
17
|
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
19
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorListItemTplDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldErrorListItemTplDirective, isStandalone: false, selector: "[seamFormFieldErrorListItemTpl]", inputs: { validatorName: "validatorName", external: "external" }, ngImport: i0 });
|
|
20
20
|
}
|
|
21
21
|
__decorate([
|
|
22
22
|
InputBoolean()
|
|
23
23
|
], FormFieldErrorListItemTplDirective.prototype, "external", void 0);
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorListItemTplDirective, decorators: [{
|
|
25
25
|
type: Directive,
|
|
26
26
|
args: [{
|
|
27
27
|
selector: '[seamFormFieldErrorListItemTpl]',
|
|
@@ -39,10 +39,10 @@ class FormFieldErrorListItemDirective {
|
|
|
39
39
|
constructor(template) {
|
|
40
40
|
this.template = template;
|
|
41
41
|
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
43
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorListItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldErrorListItemDirective, isStandalone: false, selector: "[seamFormFieldErrorListItem]", inputs: { validatorName: "validatorName" }, ngImport: i0 });
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorListItemDirective, decorators: [{
|
|
46
46
|
type: Directive,
|
|
47
47
|
args: [{
|
|
48
48
|
selector: '[seamFormFieldErrorListItem]',
|
|
@@ -56,13 +56,13 @@ class FormFieldErrorComponent {
|
|
|
56
56
|
validatorName;
|
|
57
57
|
message;
|
|
58
58
|
showValidatorName = false;
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldErrorComponent, isStandalone: false, selector: "seam-form-field-error", inputs: { validatorName: "validatorName", message: "message", showValidatorName: "showValidatorName" }, ngImport: i0, template: "<em style=\"display: block\">\n <span *ngIf=\"showValidatorName && validatorName\" style=\"font-weight: bold\"\n >{{ validatorName }}:\n </span>\n <span class=\"msg-text\">{{ message }}</span>\n</em>\n", styles: ["@charset \"UTF-8\";.msg-text:empty:after{content:\"\\200b\"}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
61
61
|
}
|
|
62
62
|
__decorate([
|
|
63
63
|
InputBoolean()
|
|
64
64
|
], FormFieldErrorComponent.prototype, "showValidatorName", void 0);
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorComponent, decorators: [{
|
|
66
66
|
type: Component,
|
|
67
67
|
args: [{ selector: 'seam-form-field-error', standalone: false, template: "<em style=\"display: block\">\n <span *ngIf=\"showValidatorName && validatorName\" style=\"font-weight: bold\"\n >{{ validatorName }}:\n </span>\n <span class=\"msg-text\">{{ message }}</span>\n</em>\n", styles: ["@charset \"UTF-8\";.msg-text:empty:after{content:\"\\200b\"}\n"] }]
|
|
68
68
|
}], propDecorators: { validatorName: [{
|
|
@@ -445,10 +445,10 @@ class FormFieldErrorListComponent {
|
|
|
445
445
|
}
|
|
446
446
|
return false;
|
|
447
447
|
}
|
|
448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
449
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
448
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
449
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldErrorListComponent, isStandalone: false, selector: "seam-form-field-error-list", inputs: { errors: "errors", showValidatorName: "showValidatorName", numPaddingErrors: "numPaddingErrors", listItemTpls: "listItemTpls", maxErrors: "maxErrors", control: "control", showErrors: "showErrors" }, host: { properties: { "style.display": "this._display" } }, queries: [{ propertyName: "_listItemTpls", predicate: FormFieldErrorListItemTplDirective }], ngImport: i0, template: "<ng-container *ngFor=\"let record of displayRecords$ | async\">\n <ng-container *ngIf=\"record.template; else noTemplate\">\n <div>\n <ng-template\n [ngTemplateOutlet]=\"record.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: record.error,\n errors: record._errors,\n }\"\n >\n </ng-template>\n </div>\n </ng-container>\n <ng-template #noTemplate>\n <seam-form-field-error\n [validatorName]=\"record.validatorName\"\n [message]=\"record.message\"\n [showValidatorName]=\"showValidatorName\"\n >\n </seam-form-field-error>\n </ng-template>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FormFieldErrorComponent, selector: "seam-form-field-error", inputs: ["validatorName", "message", "showValidatorName"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
450
450
|
}
|
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorListComponent, decorators: [{
|
|
452
452
|
type: Component,
|
|
453
453
|
args: [{ selector: 'seam-form-field-error-list', standalone: false, template: "<ng-container *ngFor=\"let record of displayRecords$ | async\">\n <ng-container *ngIf=\"record.template; else noTemplate\">\n <div>\n <ng-template\n [ngTemplateOutlet]=\"record.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: record.error,\n errors: record._errors,\n }\"\n >\n </ng-template>\n </div>\n </ng-container>\n <ng-template #noTemplate>\n <seam-form-field-error\n [validatorName]=\"record.validatorName\"\n [message]=\"record.message\"\n [showValidatorName]=\"showValidatorName\"\n >\n </seam-form-field-error>\n </ng-template>\n</ng-container>\n" }]
|
|
454
454
|
}], ctorParameters: () => [], propDecorators: { _display: [{
|
|
@@ -474,17 +474,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
474
474
|
}] } });
|
|
475
475
|
|
|
476
476
|
class TheSeamFormFieldErrorModule {
|
|
477
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
478
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
478
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldErrorModule, declarations: [FormFieldErrorComponent,
|
|
479
479
|
FormFieldErrorListComponent,
|
|
480
480
|
FormFieldErrorListItemDirective,
|
|
481
481
|
FormFieldErrorListItemTplDirective], imports: [CommonModule], exports: [FormFieldErrorComponent,
|
|
482
482
|
FormFieldErrorListComponent,
|
|
483
483
|
FormFieldErrorListItemDirective,
|
|
484
484
|
FormFieldErrorListItemTplDirective] });
|
|
485
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
485
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldErrorModule, imports: [CommonModule] });
|
|
486
486
|
}
|
|
487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldErrorModule, decorators: [{
|
|
488
488
|
type: NgModule,
|
|
489
489
|
args: [{
|
|
490
490
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theseam-ui-common-form-field-error.mjs","sources":["../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.ts","../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list-item.directive.ts","../../../projects/ui-common/form-field-error/form-field-error/form-field-error.component.ts","../../../projects/ui-common/form-field-error/form-field-error/form-field-error.component.html","../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list.component.ts","../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list.component.html","../../../projects/ui-common/form-field-error/form-field-error.module.ts","../../../projects/ui-common/form-field-error/theseam-ui-common-form-field-error.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion'\nimport { Directive, Input, TemplateRef } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Directive({\n selector: '[seamFormFieldErrorListItemTpl]',\n standalone: false,\n})\nexport class FormFieldErrorListItemTplDirective {\n static ngAcceptInputType_external: BooleanInput\n\n @Input() validatorName: string | undefined | null\n\n @Input() @InputBoolean() external = false\n\n constructor(public template: TemplateRef<any>) {}\n}\n","import { Directive, Input, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamFormFieldErrorListItem]',\n standalone: false,\n})\nexport class FormFieldErrorListItemDirective {\n @Input() validatorName: string | undefined | null\n\n constructor(public template: TemplateRef<any>) {}\n}\n","import { Component, Input } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Component({\n selector: 'seam-form-field-error',\n templateUrl: './form-field-error.component.html',\n styleUrls: ['./form-field-error.component.scss'],\n standalone: false,\n})\nexport class FormFieldErrorComponent {\n @Input() validatorName: string | undefined | null\n @Input() message: string | undefined | null\n\n @Input() @InputBoolean() showValidatorName = false\n}\n","<em style=\"display: block\">\n <span *ngIf=\"showValidatorName && validatorName\" style=\"font-weight: bold\"\n >{{ validatorName }}:\n </span>\n <span class=\"msg-text\">{{ message }}</span>\n</em>\n","import {\n Component,\n ContentChildren,\n DoCheck,\n HostBinding,\n Input,\n OnDestroy,\n QueryList,\n TemplateRef,\n} from '@angular/core'\nimport {\n AbstractControl,\n AbstractControlDirective,\n ValidationErrors,\n} from '@angular/forms'\nimport { BehaviorSubject, combineLatest, Observable, Subscription } from 'rxjs'\nimport {\n distinctUntilChanged,\n map,\n shareReplay,\n startWith,\n} from 'rxjs/operators'\n\nimport { FormFieldErrorListItemTplDirective } from './form-field-error-list-item-tpl.directive'\n\nexport interface IErrorRecord {\n validatorName: string\n error: any\n message?: string\n template?: TemplateRef<any>\n\n external?: boolean\n\n _errors?: ValidationErrors\n}\n\n/**\n * NOTE: This class has some issues with filtering duplicate validators. The\n * inputs will be cleaned up soon to fix the input confusion.\n *\n * TODO: Cleanup remaining code from before refactor.\n */\n@Component({\n selector: 'seam-form-field-error-list',\n templateUrl: './form-field-error-list.component.html',\n styleUrls: ['./form-field-error-list.component.scss'],\n standalone: false,\n})\nexport class FormFieldErrorListComponent implements OnDestroy, DoCheck {\n @HostBinding('style.display') get _display() {\n return this.showErrors ? 'block' : 'none'\n }\n\n private static readonly defaultMessages: {\n [name: string]: ((params: any) => string) | (() => string)\n } = {\n // required: () => 'Required',\n // minlength: (params) => 'The min number of characters is ' + params.requiredLength,\n // maxlength: (params) => 'The max allowed number of characters is ' + params.requiredLength,\n // pattern: (params) => 'The required pattern is: ' + params.requiredPattern\n }\n\n private readonly _defaultMessages: {\n [name: string]: ((params: any) => string) | (() => string)\n } = {\n // required: () => 'Required',\n // minlength: (params) => 'The min number of characters is ' + params.requiredLength,\n // maxlength: (params) => 'The max allowed number of characters is ' + params.requiredLength,\n // pattern: (params) => 'The required pattern is: ' + params.requiredPattern\n }\n\n private _errors: any[] = []\n\n public _paddingErrors = []\n\n @Input()\n set errors(records: IErrorRecord[] | undefined | null) {\n // if (val instanceof Array) {\n // this._errors = val\n // } else {\n // const errs = []\n // for (const k in val) {\n // if (val[k]) {\n // const err = val[k]\n // const newErr = {\n // validatorName: k,\n // error: err,\n // message: '',\n // template: err.template,\n // external: !!err.external\n // }\n\n // if (err.message) {\n // const msgTmp = err.message\n // if (typeof msgTmp === 'string') {\n // newErr.message = msgTmp\n // } else if (typeof msgTmp === 'function') {\n // newErr.message = msgTmp(err)\n // }\n // } else if (FormFieldErrorListComponent.defaultMessages[k]) {\n // const defaultMsg = FormFieldErrorListComponent.defaultMessages[k]\n // if (typeof defaultMsg === 'string') {\n // newErr.message = defaultMsg\n // } else if (typeof defaultMsg === 'function') {\n // newErr.message = defaultMsg(err)\n // }\n // }\n\n // errs.push(newErr)\n // }\n // }\n // this._errors = errs\n // }\n\n this._initErrorInput(records || [])\n }\n\n // get errors() {\n // let errs = []\n\n // if (this._errors) {\n // if (!this.messages) {\n // errs = this._errors\n // } else {\n // errs = this._errors.map(err => {\n // if (this.messages && err.validatorName && this.messages[err.validatorName]) {\n // return Object.assign({}, err, {\n // message: this.messages[err.validatorName]\n // })\n // } else {\n // return err\n // }\n // })\n // }\n // }\n\n // if (this.control) {\n // for (const key in this.control.errors) {\n // if (this.control.errors[key]) {\n // const err = this.control.errors[key]\n\n // const newErr = {\n // validatorName: key,\n // error: err,\n // message: '',\n // external: false\n // }\n\n // if (FormFieldErrorListComponent.defaultMessages[key]) {\n // const defaultMsg = FormFieldErrorListComponent.defaultMessages[key]\n // if (typeof defaultMsg === 'string') {\n // newErr.message = defaultMsg\n // } else if (typeof defaultMsg === 'function') {\n // newErr.message = defaultMsg(err)\n // }\n // }\n\n // errs = [ ...errs, newErr ]\n // }\n // }\n // }\n\n // if (this.maxErrors >= 0) {\n // errs = errs.slice(0, this.maxErrors)\n // }\n\n // const count = this.showControlErrors ? this.numPaddingErrors - errs.length : this.numPaddingErrors\n // if (count > 0) {\n // this._paddingErrors = []\n // for (let i = 0; i < count; i++) {\n // this._paddingErrors.push({ validatorName: '__padding__', error: {}, message: '', external: false })\n // }\n // } else {\n // this._paddingErrors = []\n // }\n\n // return errs\n // }\n\n // @Input() messages: any = {}\n @Input() showValidatorName = false\n\n @Input() numPaddingErrors = 1\n\n // private errorTpl: TemplateRef<any>\n\n // private _listItemTpls: QueryList<FormFieldErrorListItemTplDirective>\n // private listItemTplsObj = {}\n\n @ContentChildren(FormFieldErrorListItemTplDirective)\n set _listItemTpls(val: QueryList<FormFieldErrorListItemTplDirective>) {\n this._initErrorTemplates(val)\n }\n\n @Input()\n set listItemTpls(val: QueryList<FormFieldErrorListItemTplDirective>) {\n this._initErrorTemplates(val)\n\n // for (const v of val.toArray()) {\n // if (v.validatorName !== undefined) {\n // this.listItemTplsObj[v.validatorName] = v\n // }\n // }\n\n // const tmp = val.find(v => v.validatorName === undefined)\n // if (tmp) {\n // this.errorTpl = tmp.template\n // }\n\n // this._listItemTpls = val\n }\n\n // get listItemTpls(): QueryList<FormFieldErrorListItemTplDirective> {\n // return this._listItemTpls\n // }\n\n @Input() maxErrors = -1\n\n @Input()\n get control(): AbstractControlDirective | AbstractControl | undefined | null {\n return this._control\n }\n set control(\n value: AbstractControlDirective | AbstractControl | undefined | null,\n ) {\n this._control = value\n if (value) {\n this._initControlListeners(value)\n }\n }\n private _control:\n | AbstractControlDirective\n | AbstractControl\n | undefined\n | null\n\n private _valueChangeSub = Subscription.EMPTY\n private _errorTplsChangeSub = Subscription.EMPTY\n\n private _controlErrors = new BehaviorSubject<IErrorRecord[]>([])\n private _errorTpls = new BehaviorSubject<IErrorRecord[]>([])\n private _errorInput = new BehaviorSubject<IErrorRecord[]>([])\n\n private _showControlErrorsSubject = new BehaviorSubject<boolean>(false)\n\n public displayRecords$: Observable<IErrorRecord[]>\n public showControlErrors$: Observable<boolean>\n\n private _showErrors = true\n\n @Input()\n set showErrors(val: boolean) {\n this._showErrors = val\n }\n\n get showErrors(): boolean {\n let show = this._showErrors\n\n if (show && this.control) {\n if (this.numPaddingErrors > 0) {\n show = true\n } else {\n show = !!(\n this.control.invalid &&\n (this.control.dirty || this.control.touched)\n )\n }\n }\n\n return show\n }\n\n get showControlErrors(): boolean {\n let show = false\n if (this.control && this.showErrors) {\n show = !!(\n this.control.invalid &&\n (this.control.dirty || this.control.touched)\n )\n }\n\n return show\n }\n\n public errorRecords$: Observable<IErrorRecord[]>\n\n constructor() {\n this.showControlErrors$ = this._showControlErrorsSubject\n .asObservable()\n .pipe(distinctUntilChanged())\n .pipe(shareReplay(1))\n\n this.errorRecords$ = combineLatest([\n this._controlErrors,\n this._errorTpls,\n this._errorInput,\n ])\n .pipe(\n map(([ctrlErrs, errTpls, errorInput]) =>\n this._composeErrorInputs(ctrlErrs, errTpls, errorInput),\n ),\n )\n .pipe(shareReplay(1))\n\n this.displayRecords$ = this.errorRecords$\n .pipe(\n map((records) => {\n let resultRecords: IErrorRecord[] = []\n\n if (!this.showErrors) {\n // TODO: Implement\n } else {\n let errs = [...records]\n\n if (this.maxErrors >= 0) {\n errs = errs.slice(0, this.maxErrors)\n }\n\n const count = this.showControlErrors\n ? this.numPaddingErrors - errs.length\n : this.numPaddingErrors\n const paddingErrors: IErrorRecord[] = []\n if (count > 0) {\n for (let i = 0; i < count; i++) {\n paddingErrors.push({\n validatorName: '__padding__',\n error: {},\n message: '',\n external: false,\n })\n }\n }\n\n if (this.showControlErrors) {\n resultRecords = [...errs, ...paddingErrors]\n } else {\n resultRecords = [...paddingErrors]\n }\n }\n\n return resultRecords\n }),\n )\n .pipe(shareReplay(1))\n }\n\n ngOnDestroy() {\n this._valueChangeSub.unsubscribe()\n this._errorTplsChangeSub.unsubscribe()\n }\n\n ngDoCheck() {\n this._showControlErrorsSubject.next(this.showControlErrors)\n }\n\n private _initControlListeners(\n control: AbstractControlDirective | AbstractControl,\n ): void {\n // Unsubscribe from old control changes\n if (this._valueChangeSub && !this._valueChangeSub.closed) {\n this._valueChangeSub.unsubscribe()\n }\n\n if (control.valueChanges !== null) {\n this._valueChangeSub = combineLatest([\n this.showControlErrors$,\n control.valueChanges.pipe(startWith(undefined)),\n ])\n .pipe(startWith(undefined))\n .subscribe((_) => this._updateControlErrors(control.errors))\n } else {\n this._setControlErrors([])\n }\n }\n\n private _updateControlErrors(errors: ValidationErrors | null): void {\n const errs: IErrorRecord[] = []\n for (const validatorName in errors) {\n if (Object.prototype.hasOwnProperty.call(errors, validatorName)) {\n const error = errors[validatorName]\n const message = this._parseMessage(\n this._defaultMessages[validatorName],\n error,\n )\n const external = false\n errs.push({ validatorName, error, message, external })\n }\n }\n this._setControlErrors(errs)\n }\n\n private _setControlErrors(errors: IErrorRecord[]) {\n this._controlErrors.next(errors)\n }\n\n private _parseMessage(message: any, error: any) {\n if (!message) {\n return\n }\n\n if (typeof message === 'string') {\n return message\n } else if (typeof message === 'function') {\n return message(error)\n }\n }\n\n private _initErrorTemplates(\n tplsQueryList: QueryList<FormFieldErrorListItemTplDirective>,\n ) {\n if (this._errorTplsChangeSub && !this._errorTplsChangeSub.closed) {\n this._errorTplsChangeSub.unsubscribe()\n }\n\n if (tplsQueryList) {\n this._errorTplsChangeSub = tplsQueryList.changes\n .pipe(startWith(undefined))\n .subscribe((_) => this._updateErrorTemplates(tplsQueryList.toArray()))\n } else {\n this._setErrorTemplates([])\n }\n }\n\n private _updateErrorTemplates(\n tplsList: FormFieldErrorListItemTplDirective[],\n ): void {\n const errs: IErrorRecord[] = []\n for (const tpl of tplsList) {\n if (tpl.validatorName !== undefined && tpl.validatorName !== null) {\n errs.push({\n validatorName: tpl.validatorName,\n error: null,\n template: tpl.template,\n external: !!tpl.external,\n })\n } else {\n // this.errorTpl = tpl.template\n }\n }\n this._setErrorTemplates(errs)\n }\n\n private _setErrorTemplates(errorTpls: IErrorRecord[]): void {\n this._errorTpls.next(errorTpls)\n }\n\n private _initErrorInput(errors: IErrorRecord[]): void {\n this._updateErrorInputs(errors)\n }\n\n private _updateErrorInputs(errors: IErrorRecord[]): void {\n this._setErrorInput(errors)\n }\n\n private _setErrorInput(errors: IErrorRecord[]): void {\n this._errorInput.next(errors)\n }\n\n private _composeErrorInputs(\n controlErrors: IErrorRecord[],\n errorTemplates: IErrorRecord[],\n errorInput: IErrorRecord[],\n ): IErrorRecord[] {\n const errs: IErrorRecord[] = []\n\n const errsMap: { [name: string]: IErrorRecord } = {}\n\n for (const err of controlErrors) {\n if (err.message || err.template) {\n errsMap[err.validatorName] = err\n }\n }\n\n for (const err of errorInput) {\n if (err.message || err.template) {\n errsMap[err.validatorName] = err\n }\n }\n\n for (const err of errorTemplates) {\n if (err.message || err.template) {\n errsMap[err.validatorName] = err\n }\n }\n\n for (const validatorName in errsMap) {\n if (Object.prototype.hasOwnProperty.call(errsMap, validatorName)) {\n errs.push(errsMap[validatorName])\n }\n }\n\n const control = this.control\n if (!control) {\n return []\n }\n\n return errs\n .filter((err) =>\n this._isErrorValidator(control.errors, err.validatorName),\n )\n .filter((err) => !err.external)\n .map(\n (err) =>\n ({\n ...err,\n error: control.errors ? control.errors[err.validatorName] : null,\n _errors: control.errors,\n }) as IErrorRecord,\n )\n }\n\n private _isErrorValidator(\n errors: ValidationErrors | null,\n validatorName: string,\n ): boolean {\n if (!errors) {\n return false\n }\n const arr = validatorName.split(' ').filter((v) => v.trim().length > 0)\n for (const item of arr) {\n if (Object.prototype.hasOwnProperty.call(errors, item)) {\n return true\n }\n }\n return false\n }\n}\n","<ng-container *ngFor=\"let record of displayRecords$ | async\">\n <ng-container *ngIf=\"record.template; else noTemplate\">\n <div>\n <ng-template\n [ngTemplateOutlet]=\"record.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: record.error,\n errors: record._errors,\n }\"\n >\n </ng-template>\n </div>\n </ng-container>\n <ng-template #noTemplate>\n <seam-form-field-error\n [validatorName]=\"record.validatorName\"\n [message]=\"record.message\"\n [showValidatorName]=\"showValidatorName\"\n >\n </seam-form-field-error>\n </ng-template>\n</ng-container>\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { FormFieldErrorListItemTplDirective } from './form-field-error-list/form-field-error-list-item-tpl.directive'\nimport { FormFieldErrorListItemDirective } from './form-field-error-list/form-field-error-list-item.directive'\nimport { FormFieldErrorListComponent } from './form-field-error-list/form-field-error-list.component'\nimport { FormFieldErrorComponent } from './form-field-error/form-field-error.component'\n\n@NgModule({\n declarations: [\n FormFieldErrorComponent,\n FormFieldErrorListComponent,\n FormFieldErrorListItemDirective,\n FormFieldErrorListItemTplDirective,\n ],\n imports: [CommonModule],\n exports: [\n FormFieldErrorComponent,\n FormFieldErrorListComponent,\n FormFieldErrorListItemDirective,\n FormFieldErrorListItemTplDirective,\n ],\n})\nexport class TheSeamFormFieldErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.FormFieldErrorComponent"],"mappings":";;;;;;;;;MASa,kCAAkC,CAAA;AAO1B,IAAA,QAAA;IANnB,OAAO,0BAA0B;AAExB,IAAA,aAAa;IAEG,QAAQ,GAAG,KAAK;AAEzC,IAAA,WAAA,CAAmB,QAA0B,EAAA;QAA1B,IAAA,CAAA,QAAQ,GAAR,QAAQ;IAAqB;uGAPrC,kCAAkC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAlC,kCAAkC,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;AAKpB,UAAA,CAAA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s","sources":["../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.ts","../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list-item.directive.ts","../../../projects/ui-common/form-field-error/form-field-error/form-field-error.component.ts","../../../projects/ui-common/form-field-error/form-field-error/form-field-error.component.html","../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list.component.ts","../../../projects/ui-common/form-field-error/form-field-error-list/form-field-error-list.component.html","../../../projects/ui-common/form-field-error/form-field-error.module.ts","../../../projects/ui-common/form-field-error/theseam-ui-common-form-field-error.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion'\nimport { Directive, Input, TemplateRef } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Directive({\n selector: '[seamFormFieldErrorListItemTpl]',\n standalone: false,\n})\nexport class FormFieldErrorListItemTplDirective {\n static ngAcceptInputType_external: BooleanInput\n\n @Input() validatorName: string | undefined | null\n\n @Input() @InputBoolean() external = false\n\n constructor(public template: TemplateRef<any>) {}\n}\n","import { Directive, Input, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamFormFieldErrorListItem]',\n standalone: false,\n})\nexport class FormFieldErrorListItemDirective {\n @Input() validatorName: string | undefined | null\n\n constructor(public template: TemplateRef<any>) {}\n}\n","import { Component, Input } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Component({\n selector: 'seam-form-field-error',\n templateUrl: './form-field-error.component.html',\n styleUrls: ['./form-field-error.component.scss'],\n standalone: false,\n})\nexport class FormFieldErrorComponent {\n @Input() validatorName: string | undefined | null\n @Input() message: string | undefined | null\n\n @Input() @InputBoolean() showValidatorName = false\n}\n","<em style=\"display: block\">\n <span *ngIf=\"showValidatorName && validatorName\" style=\"font-weight: bold\"\n >{{ validatorName }}:\n </span>\n <span class=\"msg-text\">{{ message }}</span>\n</em>\n","import {\n Component,\n ContentChildren,\n DoCheck,\n HostBinding,\n Input,\n OnDestroy,\n QueryList,\n TemplateRef,\n} from '@angular/core'\nimport {\n AbstractControl,\n AbstractControlDirective,\n ValidationErrors,\n} from '@angular/forms'\nimport { BehaviorSubject, combineLatest, Observable, Subscription } from 'rxjs'\nimport {\n distinctUntilChanged,\n map,\n shareReplay,\n startWith,\n} from 'rxjs/operators'\n\nimport { FormFieldErrorListItemTplDirective } from './form-field-error-list-item-tpl.directive'\n\nexport interface IErrorRecord {\n validatorName: string\n error: any\n message?: string\n template?: TemplateRef<any>\n\n external?: boolean\n\n _errors?: ValidationErrors\n}\n\n/**\n * NOTE: This class has some issues with filtering duplicate validators. The\n * inputs will be cleaned up soon to fix the input confusion.\n *\n * TODO: Cleanup remaining code from before refactor.\n */\n@Component({\n selector: 'seam-form-field-error-list',\n templateUrl: './form-field-error-list.component.html',\n styleUrls: ['./form-field-error-list.component.scss'],\n standalone: false,\n})\nexport class FormFieldErrorListComponent implements OnDestroy, DoCheck {\n @HostBinding('style.display') get _display() {\n return this.showErrors ? 'block' : 'none'\n }\n\n private static readonly defaultMessages: {\n [name: string]: ((params: any) => string) | (() => string)\n } = {\n // required: () => 'Required',\n // minlength: (params) => 'The min number of characters is ' + params.requiredLength,\n // maxlength: (params) => 'The max allowed number of characters is ' + params.requiredLength,\n // pattern: (params) => 'The required pattern is: ' + params.requiredPattern\n }\n\n private readonly _defaultMessages: {\n [name: string]: ((params: any) => string) | (() => string)\n } = {\n // required: () => 'Required',\n // minlength: (params) => 'The min number of characters is ' + params.requiredLength,\n // maxlength: (params) => 'The max allowed number of characters is ' + params.requiredLength,\n // pattern: (params) => 'The required pattern is: ' + params.requiredPattern\n }\n\n private _errors: any[] = []\n\n public _paddingErrors = []\n\n @Input()\n set errors(records: IErrorRecord[] | undefined | null) {\n // if (val instanceof Array) {\n // this._errors = val\n // } else {\n // const errs = []\n // for (const k in val) {\n // if (val[k]) {\n // const err = val[k]\n // const newErr = {\n // validatorName: k,\n // error: err,\n // message: '',\n // template: err.template,\n // external: !!err.external\n // }\n\n // if (err.message) {\n // const msgTmp = err.message\n // if (typeof msgTmp === 'string') {\n // newErr.message = msgTmp\n // } else if (typeof msgTmp === 'function') {\n // newErr.message = msgTmp(err)\n // }\n // } else if (FormFieldErrorListComponent.defaultMessages[k]) {\n // const defaultMsg = FormFieldErrorListComponent.defaultMessages[k]\n // if (typeof defaultMsg === 'string') {\n // newErr.message = defaultMsg\n // } else if (typeof defaultMsg === 'function') {\n // newErr.message = defaultMsg(err)\n // }\n // }\n\n // errs.push(newErr)\n // }\n // }\n // this._errors = errs\n // }\n\n this._initErrorInput(records || [])\n }\n\n // get errors() {\n // let errs = []\n\n // if (this._errors) {\n // if (!this.messages) {\n // errs = this._errors\n // } else {\n // errs = this._errors.map(err => {\n // if (this.messages && err.validatorName && this.messages[err.validatorName]) {\n // return Object.assign({}, err, {\n // message: this.messages[err.validatorName]\n // })\n // } else {\n // return err\n // }\n // })\n // }\n // }\n\n // if (this.control) {\n // for (const key in this.control.errors) {\n // if (this.control.errors[key]) {\n // const err = this.control.errors[key]\n\n // const newErr = {\n // validatorName: key,\n // error: err,\n // message: '',\n // external: false\n // }\n\n // if (FormFieldErrorListComponent.defaultMessages[key]) {\n // const defaultMsg = FormFieldErrorListComponent.defaultMessages[key]\n // if (typeof defaultMsg === 'string') {\n // newErr.message = defaultMsg\n // } else if (typeof defaultMsg === 'function') {\n // newErr.message = defaultMsg(err)\n // }\n // }\n\n // errs = [ ...errs, newErr ]\n // }\n // }\n // }\n\n // if (this.maxErrors >= 0) {\n // errs = errs.slice(0, this.maxErrors)\n // }\n\n // const count = this.showControlErrors ? this.numPaddingErrors - errs.length : this.numPaddingErrors\n // if (count > 0) {\n // this._paddingErrors = []\n // for (let i = 0; i < count; i++) {\n // this._paddingErrors.push({ validatorName: '__padding__', error: {}, message: '', external: false })\n // }\n // } else {\n // this._paddingErrors = []\n // }\n\n // return errs\n // }\n\n // @Input() messages: any = {}\n @Input() showValidatorName = false\n\n @Input() numPaddingErrors = 1\n\n // private errorTpl: TemplateRef<any>\n\n // private _listItemTpls: QueryList<FormFieldErrorListItemTplDirective>\n // private listItemTplsObj = {}\n\n @ContentChildren(FormFieldErrorListItemTplDirective)\n set _listItemTpls(val: QueryList<FormFieldErrorListItemTplDirective>) {\n this._initErrorTemplates(val)\n }\n\n @Input()\n set listItemTpls(val: QueryList<FormFieldErrorListItemTplDirective>) {\n this._initErrorTemplates(val)\n\n // for (const v of val.toArray()) {\n // if (v.validatorName !== undefined) {\n // this.listItemTplsObj[v.validatorName] = v\n // }\n // }\n\n // const tmp = val.find(v => v.validatorName === undefined)\n // if (tmp) {\n // this.errorTpl = tmp.template\n // }\n\n // this._listItemTpls = val\n }\n\n // get listItemTpls(): QueryList<FormFieldErrorListItemTplDirective> {\n // return this._listItemTpls\n // }\n\n @Input() maxErrors = -1\n\n @Input()\n get control(): AbstractControlDirective | AbstractControl | undefined | null {\n return this._control\n }\n set control(\n value: AbstractControlDirective | AbstractControl | undefined | null,\n ) {\n this._control = value\n if (value) {\n this._initControlListeners(value)\n }\n }\n private _control:\n | AbstractControlDirective\n | AbstractControl\n | undefined\n | null\n\n private _valueChangeSub = Subscription.EMPTY\n private _errorTplsChangeSub = Subscription.EMPTY\n\n private _controlErrors = new BehaviorSubject<IErrorRecord[]>([])\n private _errorTpls = new BehaviorSubject<IErrorRecord[]>([])\n private _errorInput = new BehaviorSubject<IErrorRecord[]>([])\n\n private _showControlErrorsSubject = new BehaviorSubject<boolean>(false)\n\n public displayRecords$: Observable<IErrorRecord[]>\n public showControlErrors$: Observable<boolean>\n\n private _showErrors = true\n\n @Input()\n set showErrors(val: boolean) {\n this._showErrors = val\n }\n\n get showErrors(): boolean {\n let show = this._showErrors\n\n if (show && this.control) {\n if (this.numPaddingErrors > 0) {\n show = true\n } else {\n show = !!(\n this.control.invalid &&\n (this.control.dirty || this.control.touched)\n )\n }\n }\n\n return show\n }\n\n get showControlErrors(): boolean {\n let show = false\n if (this.control && this.showErrors) {\n show = !!(\n this.control.invalid &&\n (this.control.dirty || this.control.touched)\n )\n }\n\n return show\n }\n\n public errorRecords$: Observable<IErrorRecord[]>\n\n constructor() {\n this.showControlErrors$ = this._showControlErrorsSubject\n .asObservable()\n .pipe(distinctUntilChanged())\n .pipe(shareReplay(1))\n\n this.errorRecords$ = combineLatest([\n this._controlErrors,\n this._errorTpls,\n this._errorInput,\n ])\n .pipe(\n map(([ctrlErrs, errTpls, errorInput]) =>\n this._composeErrorInputs(ctrlErrs, errTpls, errorInput),\n ),\n )\n .pipe(shareReplay(1))\n\n this.displayRecords$ = this.errorRecords$\n .pipe(\n map((records) => {\n let resultRecords: IErrorRecord[] = []\n\n if (!this.showErrors) {\n // TODO: Implement\n } else {\n let errs = [...records]\n\n if (this.maxErrors >= 0) {\n errs = errs.slice(0, this.maxErrors)\n }\n\n const count = this.showControlErrors\n ? this.numPaddingErrors - errs.length\n : this.numPaddingErrors\n const paddingErrors: IErrorRecord[] = []\n if (count > 0) {\n for (let i = 0; i < count; i++) {\n paddingErrors.push({\n validatorName: '__padding__',\n error: {},\n message: '',\n external: false,\n })\n }\n }\n\n if (this.showControlErrors) {\n resultRecords = [...errs, ...paddingErrors]\n } else {\n resultRecords = [...paddingErrors]\n }\n }\n\n return resultRecords\n }),\n )\n .pipe(shareReplay(1))\n }\n\n ngOnDestroy() {\n this._valueChangeSub.unsubscribe()\n this._errorTplsChangeSub.unsubscribe()\n }\n\n ngDoCheck() {\n this._showControlErrorsSubject.next(this.showControlErrors)\n }\n\n private _initControlListeners(\n control: AbstractControlDirective | AbstractControl,\n ): void {\n // Unsubscribe from old control changes\n if (this._valueChangeSub && !this._valueChangeSub.closed) {\n this._valueChangeSub.unsubscribe()\n }\n\n if (control.valueChanges !== null) {\n this._valueChangeSub = combineLatest([\n this.showControlErrors$,\n control.valueChanges.pipe(startWith(undefined)),\n ])\n .pipe(startWith(undefined))\n .subscribe((_) => this._updateControlErrors(control.errors))\n } else {\n this._setControlErrors([])\n }\n }\n\n private _updateControlErrors(errors: ValidationErrors | null): void {\n const errs: IErrorRecord[] = []\n for (const validatorName in errors) {\n if (Object.prototype.hasOwnProperty.call(errors, validatorName)) {\n const error = errors[validatorName]\n const message = this._parseMessage(\n this._defaultMessages[validatorName],\n error,\n )\n const external = false\n errs.push({ validatorName, error, message, external })\n }\n }\n this._setControlErrors(errs)\n }\n\n private _setControlErrors(errors: IErrorRecord[]) {\n this._controlErrors.next(errors)\n }\n\n private _parseMessage(message: any, error: any) {\n if (!message) {\n return\n }\n\n if (typeof message === 'string') {\n return message\n } else if (typeof message === 'function') {\n return message(error)\n }\n }\n\n private _initErrorTemplates(\n tplsQueryList: QueryList<FormFieldErrorListItemTplDirective>,\n ) {\n if (this._errorTplsChangeSub && !this._errorTplsChangeSub.closed) {\n this._errorTplsChangeSub.unsubscribe()\n }\n\n if (tplsQueryList) {\n this._errorTplsChangeSub = tplsQueryList.changes\n .pipe(startWith(undefined))\n .subscribe((_) => this._updateErrorTemplates(tplsQueryList.toArray()))\n } else {\n this._setErrorTemplates([])\n }\n }\n\n private _updateErrorTemplates(\n tplsList: FormFieldErrorListItemTplDirective[],\n ): void {\n const errs: IErrorRecord[] = []\n for (const tpl of tplsList) {\n if (tpl.validatorName !== undefined && tpl.validatorName !== null) {\n errs.push({\n validatorName: tpl.validatorName,\n error: null,\n template: tpl.template,\n external: !!tpl.external,\n })\n } else {\n // this.errorTpl = tpl.template\n }\n }\n this._setErrorTemplates(errs)\n }\n\n private _setErrorTemplates(errorTpls: IErrorRecord[]): void {\n this._errorTpls.next(errorTpls)\n }\n\n private _initErrorInput(errors: IErrorRecord[]): void {\n this._updateErrorInputs(errors)\n }\n\n private _updateErrorInputs(errors: IErrorRecord[]): void {\n this._setErrorInput(errors)\n }\n\n private _setErrorInput(errors: IErrorRecord[]): void {\n this._errorInput.next(errors)\n }\n\n private _composeErrorInputs(\n controlErrors: IErrorRecord[],\n errorTemplates: IErrorRecord[],\n errorInput: IErrorRecord[],\n ): IErrorRecord[] {\n const errs: IErrorRecord[] = []\n\n const errsMap: { [name: string]: IErrorRecord } = {}\n\n for (const err of controlErrors) {\n if (err.message || err.template) {\n errsMap[err.validatorName] = err\n }\n }\n\n for (const err of errorInput) {\n if (err.message || err.template) {\n errsMap[err.validatorName] = err\n }\n }\n\n for (const err of errorTemplates) {\n if (err.message || err.template) {\n errsMap[err.validatorName] = err\n }\n }\n\n for (const validatorName in errsMap) {\n if (Object.prototype.hasOwnProperty.call(errsMap, validatorName)) {\n errs.push(errsMap[validatorName])\n }\n }\n\n const control = this.control\n if (!control) {\n return []\n }\n\n return errs\n .filter((err) =>\n this._isErrorValidator(control.errors, err.validatorName),\n )\n .filter((err) => !err.external)\n .map(\n (err) =>\n ({\n ...err,\n error: control.errors ? control.errors[err.validatorName] : null,\n _errors: control.errors,\n }) as IErrorRecord,\n )\n }\n\n private _isErrorValidator(\n errors: ValidationErrors | null,\n validatorName: string,\n ): boolean {\n if (!errors) {\n return false\n }\n const arr = validatorName.split(' ').filter((v) => v.trim().length > 0)\n for (const item of arr) {\n if (Object.prototype.hasOwnProperty.call(errors, item)) {\n return true\n }\n }\n return false\n }\n}\n","<ng-container *ngFor=\"let record of displayRecords$ | async\">\n <ng-container *ngIf=\"record.template; else noTemplate\">\n <div>\n <ng-template\n [ngTemplateOutlet]=\"record.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: record.error,\n errors: record._errors,\n }\"\n >\n </ng-template>\n </div>\n </ng-container>\n <ng-template #noTemplate>\n <seam-form-field-error\n [validatorName]=\"record.validatorName\"\n [message]=\"record.message\"\n [showValidatorName]=\"showValidatorName\"\n >\n </seam-form-field-error>\n </ng-template>\n</ng-container>\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { FormFieldErrorListItemTplDirective } from './form-field-error-list/form-field-error-list-item-tpl.directive'\nimport { FormFieldErrorListItemDirective } from './form-field-error-list/form-field-error-list-item.directive'\nimport { FormFieldErrorListComponent } from './form-field-error-list/form-field-error-list.component'\nimport { FormFieldErrorComponent } from './form-field-error/form-field-error.component'\n\n@NgModule({\n declarations: [\n FormFieldErrorComponent,\n FormFieldErrorListComponent,\n FormFieldErrorListItemDirective,\n FormFieldErrorListItemTplDirective,\n ],\n imports: [CommonModule],\n exports: [\n FormFieldErrorComponent,\n FormFieldErrorListComponent,\n FormFieldErrorListItemDirective,\n FormFieldErrorListItemTplDirective,\n ],\n})\nexport class TheSeamFormFieldErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.FormFieldErrorComponent"],"mappings":";;;;;;;;;MASa,kCAAkC,CAAA;AAO1B,IAAA,QAAA;IANnB,OAAO,0BAA0B;AAExB,IAAA,aAAa;IAEG,QAAQ,GAAG,KAAK;AAEzC,IAAA,WAAA,CAAmB,QAA0B,EAAA;QAA1B,IAAA,CAAA,QAAQ,GAAR,QAAQ;IAAqB;wGAPrC,kCAAkC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAlC,kCAAkC,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;AAKpB,UAAA,CAAA;AAAf,IAAA,YAAY;AAAmB,CAAA,EAAA,kCAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;4FAL9B,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAJ9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iCAAiC;AAC3C,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;sBAIE;;sBAEA;;;MCRU,+BAA+B,CAAA;AAGvB,IAAA,QAAA;AAFV,IAAA,aAAa;AAEtB,IAAA,WAAA,CA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,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,iBAbpC,uBAAuB;YACvB,2BAA2B;YAC3B,+BAA+B;YAC/B,kCAAkC,CAAA,EAAA,OAAA,EAAA,CAE1B,YAAY,CAAA,EAAA,OAAA,EAAA,CAEpB,uBAAuB;YACvB,2BAA2B;YAC3B,+BAA+B;YAC/B,kCAAkC,CAAA,EAAA,CAAA;AAGzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAR5B,YAAY,CAAA,EAAA,CAAA;;4FAQX,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAfvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,uBAAuB;wBACvB,2BAA2B;wBAC3B,+BAA+B;wBAC/B,kCAAkC;AACnC,qBAAA;oBACD,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE;wBACP,uBAAuB;wBACvB,2BAA2B;wBAC3B,+BAA+B;wBAC/B,kCAAkC;AACnC,qBAAA;AACF,iBAAA;;;ACtBD;;AAEG;;;;"}
|
|
@@ -58,13 +58,13 @@ class FormFieldErrorDirective {
|
|
|
58
58
|
constructor(template) {
|
|
59
59
|
this.template = template;
|
|
60
60
|
}
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
62
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
62
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldErrorDirective, isStandalone: false, selector: "[seamFormFieldError]", inputs: { validatorName: "validatorName", seamFormFieldError: "seamFormFieldError", external: "external" }, ngImport: i0 });
|
|
63
63
|
}
|
|
64
64
|
__decorate([
|
|
65
65
|
InputBoolean()
|
|
66
66
|
], FormFieldErrorDirective.prototype, "external", void 0);
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldErrorDirective, decorators: [{
|
|
68
68
|
type: Directive,
|
|
69
69
|
args: [{
|
|
70
70
|
selector: '[seamFormFieldError]',
|
|
@@ -83,10 +83,10 @@ class FormFieldHelpTextDirective {
|
|
|
83
83
|
constructor(template) {
|
|
84
84
|
this.template = template;
|
|
85
85
|
}
|
|
86
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
87
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
86
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldHelpTextDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
87
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldHelpTextDirective, isStandalone: false, selector: "[seamFormFieldHelpText]", ngImport: i0 });
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldHelpTextDirective, decorators: [{
|
|
90
90
|
type: Directive,
|
|
91
91
|
args: [{
|
|
92
92
|
selector: '[seamFormFieldHelpText]',
|
|
@@ -99,10 +99,10 @@ class FormFieldLabelTplDirective {
|
|
|
99
99
|
constructor(template) {
|
|
100
100
|
this.template = template;
|
|
101
101
|
}
|
|
102
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
103
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldLabelTplDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
103
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldLabelTplDirective, isStandalone: false, selector: "[seamFormFieldLabelTpl]", ngImport: i0 });
|
|
104
104
|
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldLabelTplDirective, decorators: [{
|
|
106
106
|
type: Directive,
|
|
107
107
|
args: [{
|
|
108
108
|
selector: '[seamFormFieldLabelTpl]',
|
|
@@ -135,8 +135,8 @@ class FormFieldRequiredIndicatorComponent {
|
|
|
135
135
|
this._requiredChange.next(this.required);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
139
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
138
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldRequiredIndicatorComponent, deps: [{ token: FORM_FIELD_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
139
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: FormFieldRequiredIndicatorComponent, isStandalone: false, selector: "seam-form-field-required-indicator", inputs: { required: "required" }, host: { classAttribute: "text-danger" }, usesOnChanges: true, ngImport: i0, template: `
|
|
140
140
|
<ng-container *ngIf="_controlRequired$; else noControl">
|
|
141
141
|
<ng-container *ngIf="_controlRequired$ | async">*</ng-container>
|
|
142
142
|
</ng-container>
|
|
@@ -148,7 +148,7 @@ class FormFieldRequiredIndicatorComponent {
|
|
|
148
148
|
__decorate([
|
|
149
149
|
InputBoolean()
|
|
150
150
|
], FormFieldRequiredIndicatorComponent.prototype, "required", void 0);
|
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormFieldRequiredIndicatorComponent, decorators: [{
|
|
152
152
|
type: Component,
|
|
153
153
|
args: [{ selector: 'seam-form-field-required-indicator', template: `
|
|
154
154
|
<ng-container *ngIf="_controlRequired$; else noControl">
|
|
@@ -354,8 +354,8 @@ class InputDirective {
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
358
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
357
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: InputDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.NgControl, optional: true, self: true }, { token: i1$1.NgForm, optional: true }, { token: i1$1.FormGroupDirective, optional: true }, { token: i2.NgSelectComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
358
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: InputDirective, isStandalone: false, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput], seam-rich-text[seamInput]", inputs: { seamInputSize: "seamInputSize", id: "id", type: "type", placeholder: "placeholder", required: "required", disabled: "disabled", readonly: "readonly" }, host: { properties: { "class.form-control": "this._isFormControl", "class.form-control-sm": "this._isFormControlSmall", "class.is-invalid": "this._isInvalid", "attr.id": "this._attrId", "attr.placeholder": "this._attrPlaceholder", "attr.aria-describedby": "this.ariaDescribedBy" } }, exportAs: ["seamInput"], usesOnChanges: true, ngImport: i0 });
|
|
359
359
|
}
|
|
360
360
|
__decorate([
|
|
361
361
|
InputBoolean()
|
|
@@ -363,7 +363,7 @@ __decorate([
|
|
|
363
363
|
__decorate([
|
|
364
364
|
InputBoolean()
|
|
365
365
|
], InputDirective.prototype, "readonly", void 0);
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: InputDirective, decorators: [{
|
|
367
367
|
type: Directive,
|
|
368
368
|
args: [{
|
|
369
369
|
// TODO: Consider removing restriction and instead adding a dev warning. A few
|
|
@@ -617,8 +617,8 @@ class TheSeamFormFieldComponent {
|
|
|
617
617
|
getElement() {
|
|
618
618
|
return this._elementRef.nativeElement;
|
|
619
619
|
}
|
|
620
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
621
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
620
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
621
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: TheSeamFormFieldComponent, isStandalone: false, selector: "seam-form-field", inputs: { inline: "inline", label: "label", labelPosition: "labelPosition", labelClass: "labelClass", maxErrors: "maxErrors", numPaddingErrors: "numPaddingErrors", labelId: "labelId", helpText: "helpText", helpTextId: "helpTextId" }, host: { properties: { "style.display": "this._displayStyle" } }, providers: [
|
|
622
622
|
{
|
|
623
623
|
provide: FORM_FIELD_COMPONENT,
|
|
624
624
|
useExisting: TheSeamFormFieldComponent,
|
|
@@ -628,7 +628,7 @@ class TheSeamFormFieldComponent {
|
|
|
628
628
|
__decorate([
|
|
629
629
|
InputBoolean()
|
|
630
630
|
], TheSeamFormFieldComponent.prototype, "inline", void 0);
|
|
631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldComponent, decorators: [{
|
|
632
632
|
type: Component,
|
|
633
633
|
args: [{ selector: 'seam-form-field', providers: [
|
|
634
634
|
{
|
|
@@ -672,8 +672,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
672
672
|
}] } });
|
|
673
673
|
|
|
674
674
|
class TheSeamFormFieldModule {
|
|
675
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
676
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
675
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
676
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldModule, declarations: [TheSeamFormFieldComponent,
|
|
677
677
|
InputDirective,
|
|
678
678
|
FormFieldErrorDirective,
|
|
679
679
|
FormFieldLabelTplDirective,
|
|
@@ -687,12 +687,12 @@ class TheSeamFormFieldModule {
|
|
|
687
687
|
FormFieldLabelTplDirective,
|
|
688
688
|
FormFieldRequiredIndicatorComponent,
|
|
689
689
|
FormFieldHelpTextDirective] });
|
|
690
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
690
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldModule, imports: [CommonModule,
|
|
691
691
|
ReactiveFormsModule,
|
|
692
692
|
TheSeamFormFieldErrorModule,
|
|
693
693
|
TheSeamSharedModule] });
|
|
694
694
|
}
|
|
695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TheSeamFormFieldModule, decorators: [{
|
|
696
696
|
type: NgModule,
|
|
697
697
|
args: [{
|
|
698
698
|
declarations: [
|