@enigmatry/entry-components 18.1.0 → 19.0.1-preview.1
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/README.md +2 -1
- package/date-time-picker/README.md +17 -3
- package/date-time-picker/date-time-picker-config.model.d.ts +20 -0
- package/date-time-picker/date-time-picker.component.d.ts +3 -1
- package/date-time-picker/public-api.d.ts +1 -0
- package/fesm2022/enigmatry-entry-components-button.mjs +9 -8
- package/fesm2022/enigmatry-entry-components-button.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-common.mjs +36 -36
- package/fesm2022/enigmatry-entry-components-common.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs +38 -14
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-dialog.mjs +23 -23
- package/fesm2022/enigmatry-entry-components-dialog.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-file-input.mjs +8 -8
- package/fesm2022/enigmatry-entry-components-file-input.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-permissions.mjs +14 -12
- package/fesm2022/enigmatry-entry-components-permissions.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-search-filter.mjs +29 -29
- package/fesm2022/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-spinner.mjs +11 -11
- package/fesm2022/enigmatry-entry-components-spinner.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-table.mjs +20 -20
- package/fesm2022/enigmatry-entry-components-table.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-validation.mjs +14 -12
- package/fesm2022/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components.mjs +4 -4
- package/fesm2022/enigmatry-entry-components.mjs.map +1 -1
- package/package.json +8 -30
- package/esm2022/button/enigmatry-entry-components-button.mjs +0 -5
- package/esm2022/button/entry-button-config.mjs +0 -25
- package/esm2022/button/entry-button.directive.mjs +0 -56
- package/esm2022/button/entry-button.module.mjs +0 -28
- package/esm2022/button/public-api.mjs +0 -4
- package/esm2022/common/common.module.mjs +0 -58
- package/esm2022/common/constants.mjs +0 -3
- package/esm2022/common/date-time/entry-date-time-adapter.mjs +0 -119
- package/esm2022/common/date-time/entry-date-time-formats.mjs +0 -14
- package/esm2022/common/date-time/entry-time-adapter.mjs +0 -10
- package/esm2022/common/date-time/index.mjs +0 -5
- package/esm2022/common/date-time/native-time-adapter.mjs +0 -31
- package/esm2022/common/directives/auto-disable-button.directive.mjs +0 -75
- package/esm2022/common/directives/index.mjs +0 -5
- package/esm2022/common/directives/ng-control-accessor.directive.mjs +0 -46
- package/esm2022/common/directives/noop-control-value-accessor.mjs +0 -32
- package/esm2022/common/directives/scroll-to-invalid-control.directive.mjs +0 -51
- package/esm2022/common/enigmatry-entry-components-common.mjs +0 -5
- package/esm2022/common/event-plugins/abstract.plugin.mjs +0 -35
- package/esm2022/common/event-plugins/debounce.plugin.mjs +0 -34
- package/esm2022/common/event-plugins/index.mjs +0 -3
- package/esm2022/common/event-plugins/throttle.plugin.mjs +0 -34
- package/esm2022/common/interceptors/accept-language.interceptor.mjs +0 -32
- package/esm2022/common/interceptors/index.mjs +0 -2
- package/esm2022/common/public-api.mjs +0 -7
- package/esm2022/common/utils/index.mjs +0 -2
- package/esm2022/common/utils/provide-config.mjs +0 -14
- package/esm2022/date-time-picker/date-time-picker.component.mjs +0 -139
- package/esm2022/date-time-picker/date-time-picker.module.mjs +0 -62
- package/esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs +0 -5
- package/esm2022/date-time-picker/public-api.mjs +0 -3
- package/esm2022/date-time-picker/time-picker.component.mjs +0 -80
- package/esm2022/dialog/dialogs/alert/entry-alert-dialog-data.interface.mjs +0 -2
- package/esm2022/dialog/dialogs/alert/entry-alert-dialog.component.mjs +0 -29
- package/esm2022/dialog/dialogs/confirm/entry-confirm-dialog-data.interface.mjs +0 -2
- package/esm2022/dialog/dialogs/confirm/entry-confirm-dialog.component.mjs +0 -29
- package/esm2022/dialog/dialogs/entry-dialog.component.mjs +0 -74
- package/esm2022/dialog/dialogs/error/entry-error-dialog-data.interface.mjs +0 -2
- package/esm2022/dialog/dialogs/error/entry-error-dialog.component.mjs +0 -46
- package/esm2022/dialog/enigmatry-entry-components-dialog.mjs +0 -5
- package/esm2022/dialog/entry-dialog-buttons-alignment.type.mjs +0 -2
- package/esm2022/dialog/entry-dialog-config.model.mjs +0 -31
- package/esm2022/dialog/entry-dialog.module.mjs +0 -57
- package/esm2022/dialog/entry-dialog.service.mjs +0 -86
- package/esm2022/dialog/public-api.mjs +0 -8
- package/esm2022/enigmatry-entry-components.mjs +0 -5
- package/esm2022/file-input/enigmatry-entry-components-file-input.mjs +0 -5
- package/esm2022/file-input/entry-file-input.component.mjs +0 -201
- package/esm2022/file-input/entry-file-input.module.mjs +0 -40
- package/esm2022/file-input/public-api.mjs +0 -3
- package/esm2022/modules/entry-components.module.mjs +0 -67
- package/esm2022/permissions/enigmatry-entry-components-permissions.mjs +0 -5
- package/esm2022/permissions/permission-type.mjs +0 -2
- package/esm2022/permissions/permission.directive.mjs +0 -35
- package/esm2022/permissions/permission.guard.mjs +0 -14
- package/esm2022/permissions/permission.module.mjs +0 -29
- package/esm2022/permissions/permission.pipe.mjs +0 -20
- package/esm2022/permissions/permission.service.mjs +0 -3
- package/esm2022/permissions/public-api.mjs +0 -6
- package/esm2022/public-api.mjs +0 -14
- package/esm2022/search-filter/autocomplete/autocomplete-search-filter.component.mjs +0 -56
- package/esm2022/search-filter/autocomplete/autocomplete-search-filter.model.mjs +0 -19
- package/esm2022/search-filter/control-type.mjs +0 -9
- package/esm2022/search-filter/date/date-search-filter.component.mjs +0 -20
- package/esm2022/search-filter/date/date-search-filter.model.mjs +0 -12
- package/esm2022/search-filter/date-time/date-time-search-filter.component.mjs +0 -28
- package/esm2022/search-filter/date-time/date-time-search-filter.model.mjs +0 -12
- package/esm2022/search-filter/enigmatry-entry-components-search-filter.mjs +0 -5
- package/esm2022/search-filter/entry-search-filter.component.mjs +0 -76
- package/esm2022/search-filter/entry-search-filter.module.mjs +0 -78
- package/esm2022/search-filter/public-api.mjs +0 -11
- package/esm2022/search-filter/search-filter-base.model.mjs +0 -26
- package/esm2022/search-filter/search-filter-config.model.mjs +0 -18
- package/esm2022/search-filter/search-filter-params.type.mjs +0 -2
- package/esm2022/search-filter/select/select-search-filter.component.mjs +0 -29
- package/esm2022/search-filter/select/select-search-filter.model.mjs +0 -23
- package/esm2022/search-filter/select-option.model.mjs +0 -12
- package/esm2022/search-filter/text/text-search-filter.component.mjs +0 -19
- package/esm2022/search-filter/text/text-search-filter.model.mjs +0 -12
- package/esm2022/spinner/enigmatry-entry-components-spinner.mjs +0 -5
- package/esm2022/spinner/entry-spinner/spinner.component.mjs +0 -81
- package/esm2022/spinner/public-api.mjs +0 -3
- package/esm2022/spinner/spinner-overlay-container.mjs +0 -42
- package/esm2022/spinner/spinner.module.mjs +0 -32
- package/esm2022/table/components/entry-cell/entry-cell.component.mjs +0 -23
- package/esm2022/table/components/entry-cell-context-menu/entry-cell-context-menu.component.mjs +0 -42
- package/esm2022/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.mjs +0 -25
- package/esm2022/table/components/entry-table/entry-table.component.mjs +0 -251
- package/esm2022/table/components/index.mjs +0 -5
- package/esm2022/table/enigmatry-entry-components-table.mjs +0 -5
- package/esm2022/table/entry-table.module.mjs +0 -84
- package/esm2022/table/interfaces/cell-template.mjs +0 -2
- package/esm2022/table/interfaces/column-def.mjs +0 -2
- package/esm2022/table/interfaces/column-sort-prop.mjs +0 -2
- package/esm2022/table/interfaces/column-type-parameter.mjs +0 -2
- package/esm2022/table/interfaces/column-type.mjs +0 -2
- package/esm2022/table/interfaces/context-menu-item.mjs +0 -2
- package/esm2022/table/interfaces/entry-table-config.mjs +0 -45
- package/esm2022/table/interfaces/index.mjs +0 -13
- package/esm2022/table/interfaces/paged-query.mjs +0 -37
- package/esm2022/table/interfaces/pagination.mjs +0 -2
- package/esm2022/table/interfaces/row-class-formatter.mjs +0 -2
- package/esm2022/table/interfaces/row-context-menu-formatter.mjs +0 -2
- package/esm2022/table/interfaces/row-selection-formatter.mjs +0 -2
- package/esm2022/table/public-api.mjs +0 -4
- package/esm2022/validation/enigmatry-entry-components-validation.mjs +0 -5
- package/esm2022/validation/entry-display-control-validation.directive.mjs +0 -63
- package/esm2022/validation/entry-form-errors.component.mjs +0 -41
- package/esm2022/validation/entry-validation-config.model.mjs +0 -24
- package/esm2022/validation/entry-validation.mjs +0 -51
- package/esm2022/validation/entry-validation.module.mjs +0 -40
- package/esm2022/validation/public-api.mjs +0 -6
- package/esm2022/validation/validation-problem-details.interface.mjs +0 -2
|
@@ -18,8 +18,8 @@ import { MatInputModule } from '@angular/material/input';
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
class EntryFormErrorsComponent {
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryFormErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: EntryFormErrorsComponent, isStandalone: false, selector: "entry-form-errors", inputs: { form: "form" }, ngImport: i0, template: `
|
|
23
23
|
<div *ngIf="form.errors">
|
|
24
24
|
<mat-error *ngFor="let error of form.errors.general">
|
|
25
25
|
<span class="mat-body-2">{{error}}</span>
|
|
@@ -27,7 +27,7 @@ class EntryFormErrorsComponent {
|
|
|
27
27
|
</div>
|
|
28
28
|
`, isInline: true, 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: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
29
29
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryFormErrorsComponent, decorators: [{
|
|
31
31
|
type: Component,
|
|
32
32
|
args: [{
|
|
33
33
|
selector: 'entry-form-errors',
|
|
@@ -38,7 +38,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
38
38
|
</mat-error>
|
|
39
39
|
</div>
|
|
40
40
|
`,
|
|
41
|
-
changeDetection: ChangeDetectionStrategy.Default
|
|
41
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
42
|
+
standalone: false
|
|
42
43
|
}]
|
|
43
44
|
}], propDecorators: { form: [{
|
|
44
45
|
type: Input
|
|
@@ -159,13 +160,14 @@ class EntryDisplayControlValidationDirective {
|
|
|
159
160
|
const serverErrorsString = serverErrors instanceof Array ? serverErrors.join(', ') : '';
|
|
160
161
|
return [errorsString, serverErrorsString].filter(x => x !== '').join(', ');
|
|
161
162
|
}
|
|
162
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryDisplayControlValidationDirective, deps: [{ token: ENTRY_VALIDATION_CONFIG }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
164
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: EntryDisplayControlValidationDirective, isStandalone: false, selector: "[entryDisplayControlValidation]", inputs: { control: "control" }, ngImport: i0 }); }
|
|
164
165
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryDisplayControlValidationDirective, decorators: [{
|
|
166
167
|
type: Directive,
|
|
167
168
|
args: [{
|
|
168
|
-
selector: '[entryDisplayControlValidation]'
|
|
169
|
+
selector: '[entryDisplayControlValidation]',
|
|
170
|
+
standalone: false
|
|
169
171
|
}]
|
|
170
172
|
}], ctorParameters: () => [{ type: EntryValidationConfig, decorators: [{
|
|
171
173
|
type: Inject,
|
|
@@ -175,19 +177,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
175
177
|
}] } });
|
|
176
178
|
|
|
177
179
|
class EntryValidationModule {
|
|
178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
179
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
181
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: EntryValidationModule, declarations: [EntryFormErrorsComponent,
|
|
180
182
|
EntryDisplayControlValidationDirective], imports: [CommonModule,
|
|
181
183
|
FormsModule,
|
|
182
184
|
ReactiveFormsModule,
|
|
183
185
|
MatInputModule], exports: [EntryFormErrorsComponent,
|
|
184
186
|
EntryDisplayControlValidationDirective] }); }
|
|
185
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
187
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryValidationModule, imports: [CommonModule,
|
|
186
188
|
FormsModule,
|
|
187
189
|
ReactiveFormsModule,
|
|
188
190
|
MatInputModule] }); }
|
|
189
191
|
}
|
|
190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryValidationModule, decorators: [{
|
|
191
193
|
type: NgModule,
|
|
192
194
|
args: [{
|
|
193
195
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enigmatry-entry-components-validation.mjs","sources":["../../../../libs/entry-components/validation/entry-form-errors.component.ts","../../../../libs/entry-components/validation/entry-validation-config.model.ts","../../../../libs/entry-components/validation/entry-validation.ts","../../../../libs/entry-components/validation/entry-display-control-validation.directive.ts","../../../../libs/entry-components/validation/entry-validation.module.ts","../../../../libs/entry-components/validation/enigmatry-entry-components-validation.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { UntypedFormGroup } from '@angular/forms';\n\n/**\n * A component used to display generic (form level) server side validation messages.\n * The messages are displayed as a list, each message in a new row.\n *\n * @example\n * ```html\n * <entry-form-errors [form]=\"myForm\">\n * </entry-form-errors>\n * ```\n */\n@Component({\n selector: 'entry-form-errors',\n template: `\n <div *ngIf=\"form.errors\">\n <mat-error *ngFor=\"let error of form.errors.general\">\n <span class=\"mat-body-2\">{{error}}</span>\n </mat-error>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class EntryFormErrorsComponent {\n /** A form group for which the validation errors are being displayed. */\n @Input() form: UntypedFormGroup;\n}\n","import { Provider } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { createInjectionToken, provideConfig } from '@enigmatry/entry-components/common';\n\n/** Used to configure mapping between validation keys and messages */\nexport interface IEntryValidationMessage {\n /** Validation key (e.g. '_required_', '_minlength_', '_email_', etc.) */\n name: string;\n /**\n * Validation message. Can be static string or expression returning string\n * (when messages need to be resolved dynamically: parametrization, localization, etc.).\n */\n message: string | ((control: AbstractControl) => string);\n}\n\n/**\n * Used to provide default configurations on module level.\n */\nexport class EntryValidationConfig {\n /**\n * Validation key to message configuration on module level. Used to configure client side validation messages\n * for standard validators (_required_, _minLength_, _email_, etc.).\n *\n * **NOTE:** If using _Formly_ package to render forms, this configuration should not be used.\n * Instead, use `FormlyModule` to configure validation messages.\n *\n * @example\n * ```ts\n * new EntryValidationConfig() {\n * validationMessages: [\n * { name: 'required': message: 'This field is mandatory' },\n * { name: 'minlength', message: (control: AbstractControl) => `Minimal length is ${control.errors.minlength.requiredLength}`}\n * ]\n * }\n * ```\n */\n validationMessages: IEntryValidationMessage[];\n\n constructor(config: Partial<EntryValidationConfig> = {}) {\n this.validationMessages = config.validationMessages ?? [];\n }\n}\n\n/**\n * Entry validation injection token of EntryValidationConfig type containing validation default configurations.\n * Can be updated with custom configuration.\n *\n * Defaults:\n * - validationMessages: []\n */\nexport const ENTRY_VALIDATION_CONFIG = createInjectionToken(new EntryValidationConfig());\n\n/**\n * Can be used to provide entry validation configuration.\n */\nexport function provideEntryValidationConfig(config: Partial<EntryValidationConfig>): Provider {\n return provideConfig(ENTRY_VALIDATION_CONFIG, () => new EntryValidationConfig(config));\n}\n","import { AbstractControl, FormArray, FormGroup, UntypedFormGroup, ValidationErrors } from '@angular/forms';\nimport { IValidationProblemDetails } from './validation-problem-details.interface';\n\n/** A key used to map server side validation errors on form level */\nconst FORM_ERROR_KEY = 'general';\n/** A key used to map server side validation errors on form field level */\nconst FORM_FIELD_ERROR_KEY = 'fromServer';\n\nconst getFormControl = (formControl: AbstractControl | null | undefined, keys: string[]): AbstractControl | null | undefined => {\n if (keys.length === 0) {\n return formControl;\n }\n if (formControl instanceof FormGroup) {\n return getFormControl(formControl.controls[keys[0].charAt(0).toLowerCase() + keys[0].slice(1)], keys.slice(1));\n }\n if (formControl instanceof FormArray && +keys[0] >= 0) {\n return getFormControl(formControl.controls[+keys[0]], keys.slice(1));\n }\n return null;\n};\n\n/**\n * Applies validation errors received from server side to the form.\n * The errors are applied to multiple levels: form, form group, form array, and form field.\n *\n * @param error Server side validation errors response.\n * @param form Form to apply validation errors to.\n */\nconst setServerSideValidationErrors = (error: IValidationProblemDetails, form: UntypedFormGroup) => {\n form.setErrors(null);\n const validationErrors = error?.errors;\n const formErrors: ValidationErrors = {};\n\n if (validationErrors) {\n // eslint-disable-next-line guard-for-in\n for (const key in validationErrors) {\n const control = getFormControl(form, key.split(/[.[\\]]+/gu));\n\n if (control) {\n const fieldErrors = {} as ValidationErrors;\n fieldErrors[FORM_FIELD_ERROR_KEY] = validationErrors[key];\n control.setErrors(fieldErrors);\n control.markAsTouched();\n } else {\n formErrors[FORM_ERROR_KEY] =\n formErrors[FORM_ERROR_KEY]?.concat(validationErrors[key]) || validationErrors[key];\n }\n }\n } else {\n formErrors[FORM_ERROR_KEY] = [`An error occurred on the server.`];\n }\n\n form.setErrors(formErrors);\n};\n\nexport {\n FORM_ERROR_KEY,\n FORM_FIELD_ERROR_KEY,\n setServerSideValidationErrors\n};\n","import { Directive, ElementRef, Inject, Input, OnDestroy, OnInit } from '@angular/core';\nimport { ENTRY_VALIDATION_CONFIG, EntryValidationConfig } from './entry-validation-config.model';\nimport { AbstractControl, FormControlStatus } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { FORM_FIELD_ERROR_KEY } from './entry-validation';\n\n/**\n * A directive that displays configured validation messages or server side validations for given form control.\n * The messages are separated with coma(,) and displayed as _innerHTML_ value of host component.\n *\n * @example\n * ```html\n * <div entryDisplayControlValidation [control]=\"myForm.controls.firstName\">\n * </div\n * ```\n */\n@Directive({\n selector: '[entryDisplayControlValidation]'\n})\nexport class EntryDisplayControlValidationDirective implements OnInit, OnDestroy {\n /** Form control for which the validation messages are displayed for. */\n @Input() control: AbstractControl;\n\n private _controlSubscription: Subscription | undefined;\n\n constructor(\n @Inject(ENTRY_VALIDATION_CONFIG) private readonly _config: EntryValidationConfig,\n private readonly _element: ElementRef) {}\n\n ngOnInit(): void {\n this._controlSubscription = this.control.statusChanges\n .subscribe((controlStatus: FormControlStatus) => {\n if (controlStatus === 'INVALID') {\n this._element.nativeElement.innerText = this.extractValidationMessages();\n }\n });\n }\n\n ngOnDestroy(): void {\n if (this._controlSubscription) {\n this._controlSubscription.unsubscribe();\n }\n }\n\n private extractValidationMessages(): string {\n if (!this.control.errors) {\n return '';\n }\n const errorsString = this._config.validationMessages\n .map(validationMessage => this.control.errors[validationMessage.name]\n ? typeof(validationMessage.message) === 'string'\n ? validationMessage.message : validationMessage.message(this.control)\n : ''\n )\n .filter(message => message !== '')\n .join(', ');\n\n const serverErrors = this.control.errors[FORM_FIELD_ERROR_KEY];\n const serverErrorsString = serverErrors instanceof Array ? serverErrors.join(', ') : '';\n\n return [errorsString, serverErrorsString].filter(x => x !== '').join(', ');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EntryFormErrorsComponent } from './entry-form-errors.component';\nimport { MatInputModule } from '@angular/material/input';\nimport { EntryDisplayControlValidationDirective } from './entry-display-control-validation.directive';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@NgModule({\n declarations: [\n EntryFormErrorsComponent,\n EntryDisplayControlValidationDirective\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatInputModule\n ],\n exports: [\n EntryFormErrorsComponent,\n EntryDisplayControlValidationDirective\n ]\n})\nexport class EntryValidationModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;;;;;;;;AASG;MAYU,wBAAwB,CAAA;+GAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA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,WAAW;YACX,mBAAmB;YACnB,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAOL,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAhBjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,wBAAwB;wBACxB,sCAAsC;AACvC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,sCAAsC;AACvC,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-validation.mjs","sources":["../../../../libs/entry-components/validation/entry-form-errors.component.ts","../../../../libs/entry-components/validation/entry-validation-config.model.ts","../../../../libs/entry-components/validation/entry-validation.ts","../../../../libs/entry-components/validation/entry-display-control-validation.directive.ts","../../../../libs/entry-components/validation/entry-validation.module.ts","../../../../libs/entry-components/validation/enigmatry-entry-components-validation.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { UntypedFormGroup } from '@angular/forms';\n\n/**\n * A component used to display generic (form level) server side validation messages.\n * The messages are displayed as a list, each message in a new row.\n *\n * @example\n * ```html\n * <entry-form-errors [form]=\"myForm\">\n * </entry-form-errors>\n * ```\n */\n@Component({\n selector: 'entry-form-errors',\n template: `\n <div *ngIf=\"form.errors\">\n <mat-error *ngFor=\"let error of form.errors.general\">\n <span class=\"mat-body-2\">{{error}}</span>\n </mat-error>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default,\n standalone: false\n})\nexport class EntryFormErrorsComponent {\n /** A form group for which the validation errors are being displayed. */\n @Input() form: UntypedFormGroup;\n}\n","import { Provider } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { createInjectionToken, provideConfig } from '@enigmatry/entry-components/common';\n\n/** Used to configure mapping between validation keys and messages */\nexport interface IEntryValidationMessage {\n /** Validation key (e.g. '_required_', '_minlength_', '_email_', etc.) */\n name: string;\n /**\n * Validation message. Can be static string or expression returning string\n * (when messages need to be resolved dynamically: parametrization, localization, etc.).\n */\n message: string | ((control: AbstractControl) => string);\n}\n\n/**\n * Used to provide default configurations on module level.\n */\nexport class EntryValidationConfig {\n /**\n * Validation key to message configuration on module level. Used to configure client side validation messages\n * for standard validators (_required_, _minLength_, _email_, etc.).\n *\n * **NOTE:** If using _Formly_ package to render forms, this configuration should not be used.\n * Instead, use `FormlyModule` to configure validation messages.\n *\n * @example\n * ```ts\n * new EntryValidationConfig() {\n * validationMessages: [\n * { name: 'required': message: 'This field is mandatory' },\n * { name: 'minlength', message: (control: AbstractControl) => `Minimal length is ${control.errors.minlength.requiredLength}`}\n * ]\n * }\n * ```\n */\n validationMessages: IEntryValidationMessage[];\n\n constructor(config: Partial<EntryValidationConfig> = {}) {\n this.validationMessages = config.validationMessages ?? [];\n }\n}\n\n/**\n * Entry validation injection token of EntryValidationConfig type containing validation default configurations.\n * Can be updated with custom configuration.\n *\n * Defaults:\n * - validationMessages: []\n */\nexport const ENTRY_VALIDATION_CONFIG = createInjectionToken(new EntryValidationConfig());\n\n/**\n * Can be used to provide entry validation configuration.\n */\nexport function provideEntryValidationConfig(config: Partial<EntryValidationConfig>): Provider {\n return provideConfig(ENTRY_VALIDATION_CONFIG, () => new EntryValidationConfig(config));\n}\n","import { AbstractControl, FormArray, FormGroup, UntypedFormGroup, ValidationErrors } from '@angular/forms';\nimport { IValidationProblemDetails } from './validation-problem-details.interface';\n\n/** A key used to map server side validation errors on form level */\nconst FORM_ERROR_KEY = 'general';\n/** A key used to map server side validation errors on form field level */\nconst FORM_FIELD_ERROR_KEY = 'fromServer';\n\nconst getFormControl = (formControl: AbstractControl | null | undefined, keys: string[]): AbstractControl | null | undefined => {\n if (keys.length === 0) {\n return formControl;\n }\n if (formControl instanceof FormGroup) {\n return getFormControl(formControl.controls[keys[0].charAt(0).toLowerCase() + keys[0].slice(1)], keys.slice(1));\n }\n if (formControl instanceof FormArray && +keys[0] >= 0) {\n return getFormControl(formControl.controls[+keys[0]], keys.slice(1));\n }\n return null;\n};\n\n/**\n * Applies validation errors received from server side to the form.\n * The errors are applied to multiple levels: form, form group, form array, and form field.\n *\n * @param error Server side validation errors response.\n * @param form Form to apply validation errors to.\n */\nconst setServerSideValidationErrors = (error: IValidationProblemDetails, form: UntypedFormGroup) => {\n form.setErrors(null);\n const validationErrors = error?.errors;\n const formErrors: ValidationErrors = {};\n\n if (validationErrors) {\n // eslint-disable-next-line guard-for-in\n for (const key in validationErrors) {\n const control = getFormControl(form, key.split(/[.[\\]]+/gu));\n\n if (control) {\n const fieldErrors = {} as ValidationErrors;\n fieldErrors[FORM_FIELD_ERROR_KEY] = validationErrors[key];\n control.setErrors(fieldErrors);\n control.markAsTouched();\n } else {\n formErrors[FORM_ERROR_KEY] =\n formErrors[FORM_ERROR_KEY]?.concat(validationErrors[key]) || validationErrors[key];\n }\n }\n } else {\n formErrors[FORM_ERROR_KEY] = [`An error occurred on the server.`];\n }\n\n form.setErrors(formErrors);\n};\n\nexport {\n FORM_ERROR_KEY,\n FORM_FIELD_ERROR_KEY,\n setServerSideValidationErrors\n};\n","import { Directive, ElementRef, Inject, Input, OnDestroy, OnInit } from '@angular/core';\nimport { ENTRY_VALIDATION_CONFIG, EntryValidationConfig } from './entry-validation-config.model';\nimport { AbstractControl, FormControlStatus } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { FORM_FIELD_ERROR_KEY } from './entry-validation';\n\n/**\n * A directive that displays configured validation messages or server side validations for given form control.\n * The messages are separated with coma(,) and displayed as _innerHTML_ value of host component.\n *\n * @example\n * ```html\n * <div entryDisplayControlValidation [control]=\"myForm.controls.firstName\">\n * </div\n * ```\n */\n@Directive({\n selector: '[entryDisplayControlValidation]',\n standalone: false\n})\nexport class EntryDisplayControlValidationDirective implements OnInit, OnDestroy {\n /** Form control for which the validation messages are displayed for. */\n @Input() control: AbstractControl;\n\n private _controlSubscription: Subscription | undefined;\n\n constructor(\n @Inject(ENTRY_VALIDATION_CONFIG) private readonly _config: EntryValidationConfig,\n private readonly _element: ElementRef) {}\n\n ngOnInit(): void {\n this._controlSubscription = this.control.statusChanges\n .subscribe((controlStatus: FormControlStatus) => {\n if (controlStatus === 'INVALID') {\n this._element.nativeElement.innerText = this.extractValidationMessages();\n }\n });\n }\n\n ngOnDestroy(): void {\n if (this._controlSubscription) {\n this._controlSubscription.unsubscribe();\n }\n }\n\n private extractValidationMessages(): string {\n if (!this.control.errors) {\n return '';\n }\n const errorsString = this._config.validationMessages\n .map(validationMessage => this.control.errors[validationMessage.name]\n ? typeof(validationMessage.message) === 'string'\n ? validationMessage.message : validationMessage.message(this.control)\n : ''\n )\n .filter(message => message !== '')\n .join(', ');\n\n const serverErrors = this.control.errors[FORM_FIELD_ERROR_KEY];\n const serverErrorsString = serverErrors instanceof Array ? serverErrors.join(', ') : '';\n\n return [errorsString, serverErrorsString].filter(x => x !== '').join(', ');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EntryFormErrorsComponent } from './entry-form-errors.component';\nimport { MatInputModule } from '@angular/material/input';\nimport { EntryDisplayControlValidationDirective } from './entry-display-control-validation.directive';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@NgModule({\n declarations: [\n EntryFormErrorsComponent,\n EntryDisplayControlValidationDirective\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatInputModule\n ],\n exports: [\n EntryFormErrorsComponent,\n EntryDisplayControlValidationDirective\n ]\n})\nexport class EntryValidationModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;;;;;;;;AASG;MAaU,wBAAwB,CAAA;8GAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAA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ACP,wBAAwB;wBACxB;AACD;AACF,iBAAA;;;ACtBD;;AAEG;;;;"}
|
|
@@ -37,8 +37,8 @@ class EntryComponentsModule {
|
|
|
37
37
|
providers
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
41
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: EntryComponentsModule, exports: [EntryButtonModule,
|
|
42
42
|
EntryCommonModule,
|
|
43
43
|
EntryDialogModule,
|
|
44
44
|
EntryFileInputModule,
|
|
@@ -47,7 +47,7 @@ class EntryComponentsModule {
|
|
|
47
47
|
EntrySearchFilterModule,
|
|
48
48
|
EntrySpinnerModule,
|
|
49
49
|
EntryTableModule] }); }
|
|
50
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
50
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryComponentsModule, imports: [EntryButtonModule,
|
|
51
51
|
EntryCommonModule,
|
|
52
52
|
EntryDialogModule,
|
|
53
53
|
EntryFileInputModule,
|
|
@@ -57,7 +57,7 @@ class EntryComponentsModule {
|
|
|
57
57
|
EntrySpinnerModule,
|
|
58
58
|
EntryTableModule] }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EntryComponentsModule, decorators: [{
|
|
61
61
|
type: NgModule,
|
|
62
62
|
args: [{
|
|
63
63
|
declarations: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../libs/entry-components/modules/entry-components.module.ts","../../../../libs/entry-components/public-api.ts","../../../../libs/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';\r\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\r\nimport { EntryDialogModule } from '@enigmatry/entry-components/dialog';\r\nimport { EntryPermissionModule, EntryPermissionService } from '@enigmatry/entry-components/permissions';\r\nimport { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';\r\nimport { EntryValidationModule } from '@enigmatry/entry-components/validation';\r\nimport { EntryFileInputModule } from '@enigmatry/entry-components/file-input';\r\nimport { EntryTableModule } from '@enigmatry/entry-components/table';\r\nimport { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';\r\nimport { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';\r\n\r\ninterface EntryComponentsModuleOptions {\r\n permissionService?: Type<any>;\r\n}\r\n\r\n/**\r\n * Exports all entry components.\r\n *\r\n * Usage\r\n * import EntryComponentsModule in shared.module.ts to have access to all components, directives, pipes.\r\n * import EntryComponentsModule.forRoot() in app.module.ts to register root module providers.\r\n */\r\n@NgModule({\r\n declarations: [],\r\n exports: [\r\n EntryButtonModule,\r\n EntryCommonModule,\r\n EntryDialogModule,\r\n EntryFileInputModule,\r\n EntryValidationModule,\r\n EntryPermissionModule,\r\n EntrySearchFilterModule,\r\n EntrySpinnerModule,\r\n EntryTableModule\r\n ]\r\n})\r\nexport class EntryComponentsModule {\r\n static forRoot(options: EntryComponentsModuleOptions = {}): ModuleWithProviders<EntryComponentsModule> {\r\n\r\n const permissionServiceProvider: Provider[] = options.permissionService\r\n ? [{ provide: EntryPermissionService, useClass: options.permissionService }]\r\n : [];\r\n\r\n const providers: Provider[] = [...permissionServiceProvider, ...NG_EVENT_PLUGINS];\r\n return {\r\n ngModule: EntryComponentsModule,\r\n providers\r\n };\r\n }\r\n}\r\n","\n/*\n * Public API Surface of entry-components\n */\nexport * from '@enigmatry/entry-components/button';\nexport * from '@enigmatry/entry-components/common';\nexport * from '@enigmatry/entry-components/dialog';\nexport * from '@enigmatry/entry-components/file-input';\nexport * from '@enigmatry/entry-components/permissions';\nexport * from '@enigmatry/entry-components/search-filter';\nexport * from '@enigmatry/entry-components/spinner';\nexport * from '@enigmatry/entry-components/validation';\nexport * from '@enigmatry/entry-components/table';\n\nexport { EntryComponentsModule } from './modules/entry-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeA;;;;;;AAMG;MAeU,qBAAqB,CAAA;AAChC,IAAA,OAAO,OAAO,CAAC,OAAA,GAAwC,EAAE,EAAA;AAEvD,QAAA,MAAM,yBAAyB,GAAe,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../libs/entry-components/modules/entry-components.module.ts","../../../../libs/entry-components/public-api.ts","../../../../libs/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';\r\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\r\nimport { EntryDialogModule } from '@enigmatry/entry-components/dialog';\r\nimport { EntryPermissionModule, EntryPermissionService } from '@enigmatry/entry-components/permissions';\r\nimport { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';\r\nimport { EntryValidationModule } from '@enigmatry/entry-components/validation';\r\nimport { EntryFileInputModule } from '@enigmatry/entry-components/file-input';\r\nimport { EntryTableModule } from '@enigmatry/entry-components/table';\r\nimport { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';\r\nimport { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';\r\n\r\ninterface EntryComponentsModuleOptions {\r\n permissionService?: Type<any>;\r\n}\r\n\r\n/**\r\n * Exports all entry components.\r\n *\r\n * Usage\r\n * import EntryComponentsModule in shared.module.ts to have access to all components, directives, pipes.\r\n * import EntryComponentsModule.forRoot() in app.module.ts to register root module providers.\r\n */\r\n@NgModule({\r\n declarations: [],\r\n exports: [\r\n EntryButtonModule,\r\n EntryCommonModule,\r\n EntryDialogModule,\r\n EntryFileInputModule,\r\n EntryValidationModule,\r\n EntryPermissionModule,\r\n EntrySearchFilterModule,\r\n EntrySpinnerModule,\r\n EntryTableModule\r\n ]\r\n})\r\nexport class EntryComponentsModule {\r\n static forRoot(options: EntryComponentsModuleOptions = {}): ModuleWithProviders<EntryComponentsModule> {\r\n\r\n const permissionServiceProvider: Provider[] = options.permissionService\r\n ? [{ provide: EntryPermissionService, useClass: options.permissionService }]\r\n : [];\r\n\r\n const providers: Provider[] = [...permissionServiceProvider, ...NG_EVENT_PLUGINS];\r\n return {\r\n ngModule: EntryComponentsModule,\r\n providers\r\n };\r\n }\r\n}\r\n","\n/*\n * Public API Surface of entry-components\n */\nexport * from '@enigmatry/entry-components/button';\nexport * from '@enigmatry/entry-components/common';\nexport * from '@enigmatry/entry-components/dialog';\nexport * from '@enigmatry/entry-components/file-input';\nexport * from '@enigmatry/entry-components/permissions';\nexport * from '@enigmatry/entry-components/search-filter';\nexport * from '@enigmatry/entry-components/spinner';\nexport * from '@enigmatry/entry-components/validation';\nexport * from '@enigmatry/entry-components/table';\n\nexport { EntryComponentsModule } from './modules/entry-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeA;;;;;;AAMG;MAeU,qBAAqB,CAAA;AAChC,IAAA,OAAO,OAAO,CAAC,OAAA,GAAwC,EAAE,EAAA;AAEvD,QAAA,MAAM,yBAAyB,GAAe,OAAO,CAAC;AACpD,cAAE,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,O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EG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmatry/entry-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.1-preview.1",
|
|
4
4
|
"author": "Enigmatry",
|
|
5
5
|
"description": "Enigmatry entry angular material components",
|
|
6
6
|
"homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@angular/animations": "^
|
|
14
|
-
"@angular/cdk": "^
|
|
15
|
-
"@angular/common": "^
|
|
16
|
-
"@angular/core": "^
|
|
17
|
-
"@angular/material": "^
|
|
18
|
-
"@angular/forms": "^
|
|
19
|
-
"@angular/platform-browser": "^
|
|
13
|
+
"@angular/animations": "^19.1.3",
|
|
14
|
+
"@angular/cdk": "^19.1.1",
|
|
15
|
+
"@angular/common": "^19.1.3",
|
|
16
|
+
"@angular/core": "^19.1.3",
|
|
17
|
+
"@angular/material": "^19.1.1",
|
|
18
|
+
"@angular/forms": "^19.1.3",
|
|
19
|
+
"@angular/platform-browser": "^19.1.3"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash-es": "^4.17.21",
|
|
@@ -33,68 +33,46 @@
|
|
|
33
33
|
},
|
|
34
34
|
".": {
|
|
35
35
|
"types": "./index.d.ts",
|
|
36
|
-
"esm2022": "./esm2022/enigmatry-entry-components.mjs",
|
|
37
|
-
"esm": "./esm2022/enigmatry-entry-components.mjs",
|
|
38
36
|
"default": "./fesm2022/enigmatry-entry-components.mjs"
|
|
39
37
|
},
|
|
40
38
|
"./button": {
|
|
41
39
|
"types": "./button/index.d.ts",
|
|
42
|
-
"esm2022": "./esm2022/button/enigmatry-entry-components-button.mjs",
|
|
43
|
-
"esm": "./esm2022/button/enigmatry-entry-components-button.mjs",
|
|
44
40
|
"default": "./fesm2022/enigmatry-entry-components-button.mjs"
|
|
45
41
|
},
|
|
46
42
|
"./common": {
|
|
47
43
|
"types": "./common/index.d.ts",
|
|
48
|
-
"esm2022": "./esm2022/common/enigmatry-entry-components-common.mjs",
|
|
49
|
-
"esm": "./esm2022/common/enigmatry-entry-components-common.mjs",
|
|
50
44
|
"default": "./fesm2022/enigmatry-entry-components-common.mjs"
|
|
51
45
|
},
|
|
52
46
|
"./date-time-picker": {
|
|
53
47
|
"types": "./date-time-picker/index.d.ts",
|
|
54
|
-
"esm2022": "./esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs",
|
|
55
|
-
"esm": "./esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs",
|
|
56
48
|
"default": "./fesm2022/enigmatry-entry-components-date-time-picker.mjs"
|
|
57
49
|
},
|
|
58
50
|
"./dialog": {
|
|
59
51
|
"types": "./dialog/index.d.ts",
|
|
60
|
-
"esm2022": "./esm2022/dialog/enigmatry-entry-components-dialog.mjs",
|
|
61
|
-
"esm": "./esm2022/dialog/enigmatry-entry-components-dialog.mjs",
|
|
62
52
|
"default": "./fesm2022/enigmatry-entry-components-dialog.mjs"
|
|
63
53
|
},
|
|
64
54
|
"./file-input": {
|
|
65
55
|
"types": "./file-input/index.d.ts",
|
|
66
|
-
"esm2022": "./esm2022/file-input/enigmatry-entry-components-file-input.mjs",
|
|
67
|
-
"esm": "./esm2022/file-input/enigmatry-entry-components-file-input.mjs",
|
|
68
56
|
"default": "./fesm2022/enigmatry-entry-components-file-input.mjs"
|
|
69
57
|
},
|
|
70
58
|
"./permissions": {
|
|
71
59
|
"types": "./permissions/index.d.ts",
|
|
72
|
-
"esm2022": "./esm2022/permissions/enigmatry-entry-components-permissions.mjs",
|
|
73
|
-
"esm": "./esm2022/permissions/enigmatry-entry-components-permissions.mjs",
|
|
74
60
|
"default": "./fesm2022/enigmatry-entry-components-permissions.mjs"
|
|
75
61
|
},
|
|
76
62
|
"./search-filter": {
|
|
77
63
|
"types": "./search-filter/index.d.ts",
|
|
78
|
-
"esm2022": "./esm2022/search-filter/enigmatry-entry-components-search-filter.mjs",
|
|
79
|
-
"esm": "./esm2022/search-filter/enigmatry-entry-components-search-filter.mjs",
|
|
80
64
|
"default": "./fesm2022/enigmatry-entry-components-search-filter.mjs"
|
|
81
65
|
},
|
|
82
66
|
"./spinner": {
|
|
83
67
|
"types": "./spinner/index.d.ts",
|
|
84
|
-
"esm2022": "./esm2022/spinner/enigmatry-entry-components-spinner.mjs",
|
|
85
|
-
"esm": "./esm2022/spinner/enigmatry-entry-components-spinner.mjs",
|
|
86
68
|
"default": "./fesm2022/enigmatry-entry-components-spinner.mjs"
|
|
87
69
|
},
|
|
88
70
|
"./table": {
|
|
89
71
|
"types": "./table/index.d.ts",
|
|
90
|
-
"esm2022": "./esm2022/table/enigmatry-entry-components-table.mjs",
|
|
91
|
-
"esm": "./esm2022/table/enigmatry-entry-components-table.mjs",
|
|
92
72
|
"default": "./fesm2022/enigmatry-entry-components-table.mjs"
|
|
93
73
|
},
|
|
94
74
|
"./validation": {
|
|
95
75
|
"types": "./validation/index.d.ts",
|
|
96
|
-
"esm2022": "./esm2022/validation/enigmatry-entry-components-validation.mjs",
|
|
97
|
-
"esm": "./esm2022/validation/enigmatry-entry-components-validation.mjs",
|
|
98
76
|
"default": "./fesm2022/enigmatry-entry-components-validation.mjs"
|
|
99
77
|
}
|
|
100
78
|
},
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5pZ21hdHJ5LWVudHJ5LWNvbXBvbmVudHMtYnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9lbnRyeS1jb21wb25lbnRzL2J1dHRvbi9lbmlnbWF0cnktZW50cnktY29tcG9uZW50cy1idXR0b24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createInjectionToken, provideConfig } from '@enigmatry/entry-components/common';
|
|
2
|
-
/**
|
|
3
|
-
* Used to provide button configuration on module or application level.
|
|
4
|
-
*/
|
|
5
|
-
export class EntryButtonConfig {
|
|
6
|
-
constructor(config = {}) {
|
|
7
|
-
this.submit = config.submit ?? { type: 'flat', color: 'primary' };
|
|
8
|
-
this.cancel = config.cancel ?? { type: 'basic', color: 'accent' };
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Entry button config injection token.
|
|
13
|
-
*
|
|
14
|
-
* Defaults:
|
|
15
|
-
* - submit: type: 'flat', color: 'primary'
|
|
16
|
-
* - cancel: type: 'basic', color: 'accent'
|
|
17
|
-
*/
|
|
18
|
-
export const ENTRY_BUTTON_CONFIG = createInjectionToken(new EntryButtonConfig());
|
|
19
|
-
/**
|
|
20
|
-
* Can be used to provide custom button configuration.
|
|
21
|
-
*/
|
|
22
|
-
export function provideEntryButtonConfig(config) {
|
|
23
|
-
return provideConfig(ENTRY_BUTTON_CONFIG, () => new EntryButtonConfig(config));
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktYnV0dG9uLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50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xuLyoqXHJcbiAqIEVudHJ5IGJ1dHRvbiBjb25maWcgaW5qZWN0aW9uIHRva2VuLlxyXG4gKlxyXG4gKiBEZWZhdWx0czpcclxuICogLSBzdWJtaXQ6IHR5cGU6ICdmbGF0JywgY29sb3I6ICdwcmltYXJ5J1xyXG4gKiAtIGNhbmNlbDogdHlwZTogJ2Jhc2ljJywgY29sb3I6ICdhY2NlbnQnXHJcbiAqL1xyXG5leHBvcnQgY29uc3QgRU5UUllfQlVUVE9OX0NPTkZJRyA9IGNyZWF0ZUluamVjdGlvblRva2VuKG5ldyBFbnRyeUJ1dHRvbkNvbmZpZygpKTtcclxuXHJcbi8qKlxyXG4gKiBDYW4gYmUgdXNlZCB0byBwcm92aWRlIGN1c3RvbSBidXR0b24gY29uZmlndXJhdGlvbi5cclxuICovXHJcbmV4cG9ydCBmdW5jdGlvbiBwcm92aWRlRW50cnlCdXR0b25Db25maWcoY29uZmlnOiBQYXJ0aWFsPEVudHJ5QnV0dG9uQ29uZmlnPik6IFByb3ZpZGVyIHtcclxuICByZXR1cm4gcHJvdmlkZUNvbmZpZyhFTlRSWV9CVVRUT05fQ09ORklHLCAoKSA9PiBuZXcgRW50cnlCdXR0b25Db25maWcoY29uZmlnKSk7XHJcbn1cclxuIl19
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Directive, Inject, Optional } from '@angular/core';
|
|
2
|
-
import { ENTRY_BUTTON_CONFIG } from './entry-button-config';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/material/button";
|
|
5
|
-
import * as i2 from "./entry-button-config";
|
|
6
|
-
export class EntryButtonDirective {
|
|
7
|
-
constructor(_elementRef, _config, _matButton, _matAnchor) {
|
|
8
|
-
this._elementRef = _elementRef;
|
|
9
|
-
this._config = _config;
|
|
10
|
-
this._matButton = _matButton;
|
|
11
|
-
this._matAnchor = _matAnchor;
|
|
12
|
-
this.matClasses = {
|
|
13
|
-
basic: ['mdc-button', 'mat-mdc-button'],
|
|
14
|
-
raised: ['mdc-button', 'mdc-button--raised', 'mat-mdc-raised-button'],
|
|
15
|
-
stroked: ['mdc-button', 'mdc-button--outlined', 'mat-mdc-outlined-button'],
|
|
16
|
-
flat: ['mdc-button', 'mdc-button--unelevated', 'mat-mdc-unelevated-button']
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
ngOnInit() {
|
|
20
|
-
const entryButtonType = this.getEntryType();
|
|
21
|
-
const buttonConfig = this._config[entryButtonType];
|
|
22
|
-
const entryClasses = ['entry-button', `entry-${entryButtonType}-button`];
|
|
23
|
-
const matClasses = this.matClasses[buttonConfig.type];
|
|
24
|
-
this._elementRef.nativeElement.classList.add(...entryClasses, ...matClasses);
|
|
25
|
-
const color = buttonConfig.color;
|
|
26
|
-
if (color) {
|
|
27
|
-
if (this._matButton) {
|
|
28
|
-
this._matButton.color = color;
|
|
29
|
-
}
|
|
30
|
-
if (this._matAnchor) {
|
|
31
|
-
this._matAnchor.color = color;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
getEntryType() {
|
|
36
|
-
return this._elementRef.nativeElement.hasAttribute('entry-submit-button')
|
|
37
|
-
? 'submit' : 'cancel';
|
|
38
|
-
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryButtonDirective, deps: [{ token: i0.ElementRef }, { token: ENTRY_BUTTON_CONFIG }, { token: i1.MatButton, optional: true }, { token: i1.MatAnchor, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
40
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: EntryButtonDirective, selector: "[mat-button][entry-submit-button],[mat-button][entry-cancel-button]", ngImport: i0 }); }
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryButtonDirective, decorators: [{
|
|
43
|
-
type: Directive,
|
|
44
|
-
args: [{
|
|
45
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
46
|
-
selector: `[mat-button][entry-submit-button],[mat-button][entry-cancel-button]`
|
|
47
|
-
}]
|
|
48
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i2.EntryButtonConfig, decorators: [{
|
|
49
|
-
type: Inject,
|
|
50
|
-
args: [ENTRY_BUTTON_CONFIG]
|
|
51
|
-
}] }, { type: i1.MatButton, decorators: [{
|
|
52
|
-
type: Optional
|
|
53
|
-
}] }, { type: i1.MatAnchor, decorators: [{
|
|
54
|
-
type: Optional
|
|
55
|
-
}] }] });
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktYnV0dG9uLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9idXR0b24vZW50cnktYnV0dG9uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLE1BQU0sRUFBVSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHaEYsT0FBTyxFQUFFLG1CQUFtQixFQUFzQyxNQUFNLHVCQUF1QixDQUFDOzs7O0FBTWhHLE1BQU0sT0FBTyxvQkFBb0I7SUFTL0IsWUFDVSxXQUFvQyxFQUNQLE9BQTBCLEVBQzNDLFVBQXNCLEVBQ3RCLFVBQXNCO1FBSGxDLGdCQUFXLEdBQVgsV0FBVyxDQUF5QjtRQUNQLFlBQU8sR0FBUCxPQUFPLENBQW1CO1FBQzNDLGVBQVUsR0FBVixVQUFVLENBQVk7UUFDdEIsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQVg1QyxlQUFVLEdBQWdDO1lBQ3hDLEtBQUssRUFBRS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9uVHlwZV07XG5cbiAgICBjb25zdCBlbnRyeUNsYXNzZXM6IHN0cmluZ1tdID0gWydlbnRyeS1idXR0b24nLCBgZW50cnktJHtlbnRyeUJ1dHRvblR5cGV9LWJ1dHRvbmBdO1xuICAgIGNvbnN0IG1hdENsYXNzZXMgPSB0aGlzLm1hdENsYXNzZXNbYnV0dG9uQ29uZmlnLnR5cGVdO1xuXG4gICAgdGhpcy5fZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LmNsYXNzTGlzdC5hZGQoLi4uZW50cnlDbGFzc2VzLCAuLi5tYXRDbGFzc2VzKTtcblxuICAgIGNvbnN0IGNvbG9yOiBUaGVtZVBhbGV0dGUgPSBidXR0b25Db25maWcuY29sb3I7XG4gICAgaWYgKGNvbG9yKSB7XG4gICAgICBpZiAodGhpcy5fbWF0QnV0dG9uKSB7IHRoaXMuX21hdEJ1dHRvbi5jb2xvciA9IGNvbG9yOyB9XG4gICAgICBpZiAodGhpcy5fbWF0QW5jaG9yKSB7IHRoaXMuX21hdEFuY2hvci5jb2xvciA9IGNvbG9yOyB9XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBnZXRFbnRyeVR5cGUoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5fZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50Lmhhc0F0dHJpYnV0ZSgnZW50cnktc3VibWl0LWJ1dHRvbicpXG4gICAgICA/ICdzdWJtaXQnIDogJ2NhbmNlbCc7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { EntryButtonDirective } from './entry-button.directive';
|
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class EntryButtonModule {
|
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: EntryButtonModule, declarations: [EntryButtonDirective], imports: [CommonModule,
|
|
9
|
-
MatButtonModule], exports: [EntryButtonDirective] }); }
|
|
10
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryButtonModule, imports: [CommonModule,
|
|
11
|
-
MatButtonModule] }); }
|
|
12
|
-
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryButtonModule, decorators: [{
|
|
14
|
-
type: NgModule,
|
|
15
|
-
args: [{
|
|
16
|
-
declarations: [
|
|
17
|
-
EntryButtonDirective
|
|
18
|
-
],
|
|
19
|
-
imports: [
|
|
20
|
-
CommonModule,
|
|
21
|
-
MatButtonModule
|
|
22
|
-
],
|
|
23
|
-
exports: [
|
|
24
|
-
EntryButtonDirective
|
|
25
|
-
]
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktYnV0dG9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9idXR0b24vZW50cnktYnV0dG9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQU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
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { EntryButtonDirective } from './entry-button.directive';
|
|
2
|
-
export { EntryButtonModule } from './entry-button.module';
|
|
3
|
-
export { ENTRY_BUTTON_CONFIG, EntryButtonConfig, provideEntryButtonConfig } from './entry-button-config';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9idXR0b24vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUUxRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsaUJBQWlCLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEVudHJ5QnV0dG9uRGlyZWN0aXZlIH0gZnJvbSAnLi9lbnRyeS1idXR0b24uZGlyZWN0aXZlJztcbmV4cG9ydCB7IEVudHJ5QnV0dG9uTW9kdWxlIH0gZnJvbSAnLi9lbnRyeS1idXR0b24ubW9kdWxlJztcblxuZXhwb3J0IHsgRU5UUllfQlVUVE9OX0NPTkZJRywgRW50cnlCdXR0b25Db25maWcsIHByb3ZpZGVFbnRyeUJ1dHRvbkNvbmZpZyB9IGZyb20gJy4vZW50cnktYnV0dG9uLWNvbmZpZyc7XG4iXX0=
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
/** Directives */
|
|
4
|
-
import { AutoDisableButtonDirective } from './directives/auto-disable-button.directive';
|
|
5
|
-
import { ScrollToInvalidControlDirective } from './directives/scroll-to-invalid-control.directive';
|
|
6
|
-
import { NoopControlValueAccessorDirective } from './directives/noop-control-value-accessor';
|
|
7
|
-
import { NgControlAccessorDirective } from './directives/ng-control-accessor.directive';
|
|
8
|
-
/** Event plugins */
|
|
9
|
-
import { DebounceEventPlugin } from './event-plugins/debounce.plugin';
|
|
10
|
-
import { ThrottleEventPlugin } from './event-plugins/throttle.plugin';
|
|
11
|
-
import { EVENT_MANAGER_PLUGINS } from '@angular/platform-browser';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
const DIRECTIVES = [
|
|
14
|
-
AutoDisableButtonDirective,
|
|
15
|
-
ScrollToInvalidControlDirective,
|
|
16
|
-
NoopControlValueAccessorDirective,
|
|
17
|
-
NgControlAccessorDirective
|
|
18
|
-
];
|
|
19
|
-
const EVENT_PLUGINS = [
|
|
20
|
-
DebounceEventPlugin,
|
|
21
|
-
ThrottleEventPlugin
|
|
22
|
-
];
|
|
23
|
-
export const NG_EVENT_PLUGINS = EVENT_PLUGINS.map(useClass => ({
|
|
24
|
-
provide: EVENT_MANAGER_PLUGINS,
|
|
25
|
-
multi: true,
|
|
26
|
-
useClass
|
|
27
|
-
}));
|
|
28
|
-
export class EntryCommonModule {
|
|
29
|
-
static forRoot() {
|
|
30
|
-
return {
|
|
31
|
-
ngModule: EntryCommonModule,
|
|
32
|
-
providers: NG_EVENT_PLUGINS
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
36
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: EntryCommonModule, imports: [CommonModule, AutoDisableButtonDirective,
|
|
37
|
-
ScrollToInvalidControlDirective,
|
|
38
|
-
NoopControlValueAccessorDirective,
|
|
39
|
-
NgControlAccessorDirective], exports: [AutoDisableButtonDirective,
|
|
40
|
-
ScrollToInvalidControlDirective,
|
|
41
|
-
NoopControlValueAccessorDirective,
|
|
42
|
-
NgControlAccessorDirective] }); }
|
|
43
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryCommonModule, imports: [CommonModule] }); }
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EntryCommonModule, decorators: [{
|
|
46
|
-
type: NgModule,
|
|
47
|
-
args: [{
|
|
48
|
-
declarations: [],
|
|
49
|
-
imports: [
|
|
50
|
-
CommonModule,
|
|
51
|
-
DIRECTIVES
|
|
52
|
-
],
|
|
53
|
-
exports: [
|
|
54
|
-
DIRECTIVES
|
|
55
|
-
]
|
|
56
|
-
}]
|
|
57
|
-
}] });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9jb21tb24vY29tbW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBWSxNQUFNLGVBQWUsQ0FBQztBQUN4RSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsaUJBQWlCO0FBRWpCLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDRDQUE0QyxDQUFDO0FBQ3hGLE9BQU8sRUFBRSwrQkFBK0IsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQ25HLE9BQU8sRUFBRSxpQ0FBaUMsRUFBRSxNQUFNLDBDQ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zOiBOR19FVkVOVF9QTFVHSU5TXG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export const NG_VALID_CLASS = '.ng-valid';
|
|
2
|
-
export const NG_INVALID_CLASS = '.ng-invalid';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9lbnRyeS1jb21wb25lbnRzL2NvbW1vbi9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sY0FBYyxHQUFHLFdBQVcsQ0FBQztBQUMxQyxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTkdfVkFMSURfQ0xBU1MgPSAnLm5nLXZhbGlkJztcclxuZXhwb3J0IGNvbnN0IE5HX0lOVkFMSURfQ0xBU1MgPSAnLm5nLWludmFsaWQnO1xyXG4iXX0=
|