@ng-forge/dynamic-forms-material 1.3.0-next.2 → 1.3.0-next.4

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.
Files changed (47) hide show
  1. package/fesm2022/ng-forge-dynamic-forms-material-lazy-addon-button.mjs +118 -33
  2. package/fesm2022/ng-forge-dynamic-forms-material-lazy-addon-button.mjs.map +1 -1
  3. package/fesm2022/ng-forge-dynamic-forms-material-lazy-addon-icon.mjs +112 -33
  4. package/fesm2022/ng-forge-dynamic-forms-material-lazy-addon-icon.mjs.map +1 -1
  5. package/fesm2022/ng-forge-dynamic-forms-material-lazy-button.mjs +96 -33
  6. package/fesm2022/ng-forge-dynamic-forms-material-lazy-button.mjs.map +1 -1
  7. package/fesm2022/ng-forge-dynamic-forms-material-lazy-checkbox.mjs +137 -29
  8. package/fesm2022/ng-forge-dynamic-forms-material-lazy-checkbox.mjs.map +1 -1
  9. package/fesm2022/ng-forge-dynamic-forms-material-lazy-datepicker.mjs +316 -62
  10. package/fesm2022/ng-forge-dynamic-forms-material-lazy-datepicker.mjs.map +1 -1
  11. package/fesm2022/ng-forge-dynamic-forms-material-lazy-input.mjs +253 -107
  12. package/fesm2022/ng-forge-dynamic-forms-material-lazy-input.mjs.map +1 -1
  13. package/fesm2022/ng-forge-dynamic-forms-material-lazy-multi-checkbox.mjs +179 -65
  14. package/fesm2022/ng-forge-dynamic-forms-material-lazy-multi-checkbox.mjs.map +1 -1
  15. package/fesm2022/ng-forge-dynamic-forms-material-lazy-radio.mjs +168 -27
  16. package/fesm2022/ng-forge-dynamic-forms-material-lazy-radio.mjs.map +1 -1
  17. package/fesm2022/ng-forge-dynamic-forms-material-lazy-select.mjs +253 -56
  18. package/fesm2022/ng-forge-dynamic-forms-material-lazy-select.mjs.map +1 -1
  19. package/fesm2022/ng-forge-dynamic-forms-material-lazy-slider.mjs +157 -27
  20. package/fesm2022/ng-forge-dynamic-forms-material-lazy-slider.mjs.map +1 -1
  21. package/fesm2022/ng-forge-dynamic-forms-material-lazy-textarea.mjs +206 -51
  22. package/fesm2022/ng-forge-dynamic-forms-material-lazy-textarea.mjs.map +1 -1
  23. package/fesm2022/ng-forge-dynamic-forms-material-lazy-toggle.mjs +134 -29
  24. package/fesm2022/ng-forge-dynamic-forms-material-lazy-toggle.mjs.map +1 -1
  25. package/fesm2022/ng-forge-dynamic-forms-material-mat-field-errors-wrapper.component-bFeO_Ift.mjs +64 -0
  26. package/fesm2022/ng-forge-dynamic-forms-material-mat-field-errors-wrapper.component-bFeO_Ift.mjs.map +1 -0
  27. package/fesm2022/ng-forge-dynamic-forms-material-shared.mjs +7 -11
  28. package/fesm2022/ng-forge-dynamic-forms-material-shared.mjs.map +1 -1
  29. package/fesm2022/ng-forge-dynamic-forms-material.mjs +241 -260
  30. package/fesm2022/ng-forge-dynamic-forms-material.mjs.map +1 -1
  31. package/package.json +2 -2
  32. package/types/ng-forge-dynamic-forms-material-lazy-addon-button.d.ts +17 -17
  33. package/types/ng-forge-dynamic-forms-material-lazy-addon-icon.d.ts +23 -16
  34. package/types/ng-forge-dynamic-forms-material-lazy-button.d.ts +87 -81
  35. package/types/ng-forge-dynamic-forms-material-lazy-checkbox.d.ts +27 -21
  36. package/types/ng-forge-dynamic-forms-material-lazy-datepicker.d.ts +68 -40
  37. package/types/ng-forge-dynamic-forms-material-lazy-input.d.ts +54 -41
  38. package/types/ng-forge-dynamic-forms-material-lazy-multi-checkbox.d.ts +35 -24
  39. package/types/ng-forge-dynamic-forms-material-lazy-radio.d.ts +30 -19
  40. package/types/ng-forge-dynamic-forms-material-lazy-select.d.ts +56 -38
  41. package/types/ng-forge-dynamic-forms-material-lazy-slider.d.ts +33 -22
  42. package/types/ng-forge-dynamic-forms-material-lazy-textarea.d.ts +47 -34
  43. package/types/ng-forge-dynamic-forms-material-lazy-toggle.d.ts +29 -23
  44. package/types/ng-forge-dynamic-forms-material-shared.d.ts +56 -64
  45. package/types/ng-forge-dynamic-forms-material.d.ts +211 -237
  46. package/fesm2022/ng-forge-dynamic-forms-material-mat-field-errors-wrapper.component-Dz2-IbBh.mjs +0 -26
  47. package/fesm2022/ng-forge-dynamic-forms-material-mat-field-errors-wrapper.component-Dz2-IbBh.mjs.map +0 -1
@@ -1,22 +1,41 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { FormField } from '@angular/forms/signals';
4
- import { MatCheckbox } from '@angular/material/checkbox';
5
- import * as i1 from '@ng-forge/dynamic-forms/integration';
6
- import { injectNgForgeField, NgForgeControl, DynamicTextPipe, NgForgeFieldHost } from '@ng-forge/dynamic-forms/integration';
7
- import { MatError } from '@angular/material/input';
8
- import { AsyncPipe } from '@angular/common';
9
- import { MATERIAL_CONFIG } from '@ng-forge/dynamic-forms-material/shared';
10
-
11
- class MatCheckboxFieldComponent {
12
- materialConfig = inject(MATERIAL_CONFIG, { optional: true });
13
- ngf = injectNgForgeField();
14
- props = input(/* @ts-ignore */
15
- ...(ngDevMode ? [undefined, { debugName: "props" }] : /* istanbul ignore next */ []));
16
- disableRipple = computed(() => this.props()?.disableRipple ?? this.materialConfig?.disableRipple ?? false, /* @ts-ignore */
17
- ...(ngDevMode ? [{ debugName: "disableRipple" }] : /* istanbul ignore next */ []));
18
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: MatCheckboxFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: MatCheckboxFieldComponent, isStandalone: true, selector: "df-mat-checkbox", inputs: { props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.NgForgeFieldHost }], ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input } from "@angular/core";
3
+ import { FormField } from "@angular/forms/signals";
4
+ import { MatCheckbox } from "@angular/material/checkbox";
5
+ import * as i1 from "@ng-forge/dynamic-forms/integration";
6
+ import { DynamicTextPipe, NgForgeControl, NgForgeFieldHost, injectNgForgeField } from "@ng-forge/dynamic-forms/integration";
7
+ import { MatError } from "@angular/material/input";
8
+ import { AsyncPipe } from "@angular/common";
9
+ import { MATERIAL_CONFIG } from "@ng-forge/dynamic-forms-material/shared";
10
+ var MatCheckboxFieldComponent = class MatCheckboxFieldComponent {
11
+ materialConfig = inject(MATERIAL_CONFIG, { optional: true });
12
+ ngf = injectNgForgeField();
13
+ props = input(...ngDevMode ? [void 0, { debugName: "props" }] : /* istanbul ignore next */ []);
14
+ disableRipple = computed(() => this.props()?.disableRipple ?? this.materialConfig?.disableRipple ?? false, ...ngDevMode ? [{ debugName: "disableRipple" }] : /* istanbul ignore next */ []);
15
+ static ɵfac = i0.ɵɵngDeclareFactory({
16
+ minVersion: "12.0.0",
17
+ version: "22.2.5",
18
+ ngImport: i0,
19
+ type: MatCheckboxFieldComponent,
20
+ deps: [],
21
+ target: i0.ɵɵFactoryTarget.Component
22
+ });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({
24
+ minVersion: "17.0.0",
25
+ version: "22.2.5",
26
+ type: MatCheckboxFieldComponent,
27
+ isStandalone: true,
28
+ selector: "df-mat-checkbox",
29
+ inputs: { props: {
30
+ classPropertyName: "props",
31
+ publicName: "props",
32
+ isSignal: true,
33
+ isRequired: false,
34
+ transformFunction: null
35
+ } },
36
+ hostDirectives: [{ directive: i1.NgForgeFieldHost }],
37
+ ngImport: i0,
38
+ template: `
20
39
  @let f = ngf.field();
21
40
  @let checkboxId = ngf.key() + '-checkbox';
22
41
 
@@ -40,11 +59,89 @@ class MatCheckboxFieldComponent {
40
59
  } @else if (props()?.hint; as hint) {
41
60
  <div class="mat-hint" [id]="ngf.hintId()" [attr.hidden]="f().hidden() || null">{{ hint | dynamicText | async }}</div>
42
61
  }
43
- `, isInline: true, styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n"], dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: NgForgeControl, selector: "[ngForgeControl]", inputs: ["ngForgeControl"] }, { kind: "pipe", type: DynamicTextPipe, name: "dynamicText" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: MatCheckboxFieldComponent, decorators: [{
46
- type: Component,
47
- args: [{ selector: 'df-mat-checkbox', imports: [MatCheckbox, FormField, MatError, DynamicTextPipe, AsyncPipe, NgForgeControl], hostDirectives: [NgForgeFieldHost], template: `
62
+ `,
63
+ isInline: true,
64
+ styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n"],
65
+ dependencies: [
66
+ {
67
+ kind: "component",
68
+ type: MatCheckbox,
69
+ selector: "mat-checkbox",
70
+ inputs: [
71
+ "aria-label",
72
+ "aria-labelledby",
73
+ "aria-describedby",
74
+ "aria-expanded",
75
+ "aria-controls",
76
+ "aria-owns",
77
+ "id",
78
+ "required",
79
+ "labelPosition",
80
+ "name",
81
+ "value",
82
+ "disableRipple",
83
+ "tabIndex",
84
+ "color",
85
+ "disabledInteractive",
86
+ "checked",
87
+ "disabled",
88
+ "indeterminate"
89
+ ],
90
+ outputs: ["change", "indeterminateChange"],
91
+ exportAs: ["matCheckbox"]
92
+ },
93
+ {
94
+ kind: "directive",
95
+ type: FormField,
96
+ selector: "[formField]",
97
+ inputs: ["formField"],
98
+ exportAs: ["formField"]
99
+ },
100
+ {
101
+ kind: "directive",
102
+ type: MatError,
103
+ selector: "mat-error, [matError]",
104
+ inputs: ["id"]
105
+ },
106
+ {
107
+ kind: "directive",
108
+ type: NgForgeControl,
109
+ selector: "[ngForgeControl]",
110
+ inputs: ["ngForgeControl"]
111
+ },
112
+ {
113
+ kind: "pipe",
114
+ type: DynamicTextPipe,
115
+ name: "dynamicText"
116
+ },
117
+ {
118
+ kind: "pipe",
119
+ type: AsyncPipe,
120
+ name: "async"
121
+ }
122
+ ],
123
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
124
+ });
125
+ };
126
+ i0.ɵɵngDeclareClassMetadata({
127
+ minVersion: "12.0.0",
128
+ version: "22.2.5",
129
+ ngImport: i0,
130
+ type: MatCheckboxFieldComponent,
131
+ decorators: [{
132
+ type: Component,
133
+ args: [{
134
+ selector: "df-mat-checkbox",
135
+ imports: [
136
+ MatCheckbox,
137
+ FormField,
138
+ MatError,
139
+ DynamicTextPipe,
140
+ AsyncPipe,
141
+ NgForgeControl
142
+ ],
143
+ hostDirectives: [NgForgeFieldHost],
144
+ template: `
48
145
  @let f = ngf.field();
49
146
  @let checkboxId = ngf.key() + '-checkbox';
50
147
 
@@ -68,9 +165,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
68
165
  } @else if (props()?.hint; as hint) {
69
166
  <div class="mat-hint" [id]="ngf.hintId()" [attr.hidden]="f().hidden() || null">{{ hint | dynamicText | async }}</div>
70
167
  }
71
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n"] }]
72
- }], propDecorators: { props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }] } });
73
-
74
-
168
+ `,
169
+ changeDetection: ChangeDetectionStrategy.OnPush,
170
+ styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n"]
171
+ }]
172
+ }],
173
+ propDecorators: { props: [{
174
+ type: i0.Input,
175
+ args: [{
176
+ isSignal: true,
177
+ alias: "props",
178
+ required: false
179
+ }]
180
+ }] }
181
+ });
75
182
  export { MatCheckboxFieldComponent };
76
- //# sourceMappingURL=ng-forge-dynamic-forms-material-lazy-checkbox.mjs.map
183
+
184
+ //# sourceMappingURL=ng-forge-dynamic-forms-material-lazy-checkbox.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-forge-dynamic-forms-material-lazy-checkbox.mjs","mappings":";;;;;;;;;;AA0Cc;;;AAKH;;AAEA;;;AAPU;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/BT","names":[],"ignoreList":[],"sources":["../../../../packages/dynamic-forms-material/src/lib/fields/checkbox/mat-checkbox.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { DynamicTextPipe } from '@ng-forge/dynamic-forms/integration';\nimport { NgForgeControl, injectNgForgeField, NgForgeFieldHost } from '@ng-forge/dynamic-forms/integration';\nimport { MatCheckboxProps } from './mat-checkbox.type';\nimport { MatError } from '@angular/material/input';\nimport { AsyncPipe } from '@angular/common';\nimport { MATERIAL_CONFIG } from '@ng-forge/dynamic-forms-material/shared';\n\n@Component({\n selector: 'df-mat-checkbox',\n imports: [MatCheckbox, FormField, MatError, DynamicTextPipe, AsyncPipe, NgForgeControl],\n hostDirectives: [NgForgeFieldHost],\n template: `\n @let f = ngf.field();\n @let checkboxId = ngf.key() + '-checkbox';\n\n <mat-checkbox\n ngForgeControl=\"input[type='checkbox']\"\n [id]=\"checkboxId\"\n [formField]=\"f\"\n [labelPosition]=\"props()?.labelPosition || 'after'\"\n [indeterminate]=\"props()?.indeterminate || false\"\n [color]=\"props()?.color || 'primary'\"\n [disableRipple]=\"disableRipple()\"\n [required]=\"!!f().required()\"\n [tabIndex]=\"ngf.tabIndex() ?? 0\"\n [attr.hidden]=\"f().hidden() || null\"\n >\n {{ ngf.label() | dynamicText | async }}\n </mat-checkbox>\n\n @if (ngf.errorsToDisplay()[0]; as error) {\n <mat-error [id]=\"ngf.errorId()\" [attr.hidden]=\"f().hidden() || null\">{{ error.message }}</mat-error>\n } @else if (props()?.hint; as hint) {\n <div class=\"mat-hint\" [id]=\"ngf.hintId()\" [attr.hidden]=\"f().hidden() || null\">{{ hint | dynamicText | async }}</div>\n }\n `,\n styleUrl: '../../styles/_form-field.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport default class MatCheckboxFieldComponent {\n private materialConfig = inject(MATERIAL_CONFIG, { optional: true });\n\n protected readonly ngf = injectNgForgeField<boolean>();\n\n readonly props = input<MatCheckboxProps>();\n\n readonly disableRipple = computed(() => this.props()?.disableRipple ?? this.materialConfig?.disableRipple ?? false);\n}\n"]}
1
+ {"version":3,"file":"ng-forge-dynamic-forms-material-lazy-checkbox.mjs","names":[],"sources":["../../../../packages/dynamic-forms-material/src/lib/fields/checkbox/mat-checkbox.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { DynamicTextPipe } from '@ng-forge/dynamic-forms/integration';\nimport { NgForgeControl, injectNgForgeField, NgForgeFieldHost } from '@ng-forge/dynamic-forms/integration';\nimport { MatCheckboxProps } from './mat-checkbox.type';\nimport { MatError } from '@angular/material/input';\nimport { AsyncPipe } from '@angular/common';\nimport { MATERIAL_CONFIG } from '@ng-forge/dynamic-forms-material/shared';\n\n@Component({\n selector: 'df-mat-checkbox',\n imports: [MatCheckbox, FormField, MatError, DynamicTextPipe, AsyncPipe, NgForgeControl],\n hostDirectives: [NgForgeFieldHost],\n template: `\n @let f = ngf.field();\n @let checkboxId = ngf.key() + '-checkbox';\n\n <mat-checkbox\n ngForgeControl=\"input[type='checkbox']\"\n [id]=\"checkboxId\"\n [formField]=\"f\"\n [labelPosition]=\"props()?.labelPosition || 'after'\"\n [indeterminate]=\"props()?.indeterminate || false\"\n [color]=\"props()?.color || 'primary'\"\n [disableRipple]=\"disableRipple()\"\n [required]=\"!!f().required()\"\n [tabIndex]=\"ngf.tabIndex() ?? 0\"\n [attr.hidden]=\"f().hidden() || null\"\n >\n {{ ngf.label() | dynamicText | async }}\n </mat-checkbox>\n\n @if (ngf.errorsToDisplay()[0]; as error) {\n <mat-error [id]=\"ngf.errorId()\" [attr.hidden]=\"f().hidden() || null\">{{ error.message }}</mat-error>\n } @else if (props()?.hint; as hint) {\n <div class=\"mat-hint\" [id]=\"ngf.hintId()\" [attr.hidden]=\"f().hidden() || null\">{{ hint | dynamicText | async }}</div>\n }\n `,\n styleUrl: '../../styles/_form-field.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport default class MatCheckboxFieldComponent {\n private materialConfig = inject(MATERIAL_CONFIG, { optional: true });\n\n protected readonly ngf = injectNgForgeField<boolean>();\n\n readonly props = input<MatCheckboxProps>();\n\n readonly disableRipple = computed(() => this.props()?.disableRipple ?? this.materialConfig?.disableRipple ?? false);\n}\n"],"mappings":";;;;;;;;;AA0CA,IAAqB,4BAArB,MAAqB,0BAAyB;CACpC,iBAAiB,OAAO,iBAAiB,EAAE,UAAU,KAAI,CAAE;CAEhD,MAAM,mBAAkB;CAElC,QAAQ,MAAyB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAEjC,gBAAgB,eAAe,KAAK,MAAK,CAAE,EAAE,iBAAiB,KAAK,gBAAgB,iBAAiB,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;CAPhG,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAyB,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,OAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,gBAAA,CAAA,EAAA,WAAA,GAAA,iBAAA,CAAA;EAAA,UAAA;EAAA,UA5BlC;;;;;;;;;;;;;;;;;;;;;;;;;EAwBT,UAAA;EAAA,QAAA,CAAA,o4CAAA;EAAA,cAAA;GAAA;IAAA,MAAA;IAAA,MA1BS;IAAW,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,UAAA,qBAAA;IAAA,UAAA,CAAA,aAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAS,UAAA;IAAA,QAAA,CAAA,WAAA;IAAA,UAAA,CAAA,WAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAQ,UAAA;IAAA,QAAA,CAAA,IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAA8B;IAAc,UAAA;IAAA,QAAA,CAAA,gBAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAA1C;IAAe,MAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAS,MAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AA8BnD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EAhC7C,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,SAClB;IAAC;IAAa;IAAW;IAAU;IAAiB;IAAW;GAAc;GAAC,gBACvE,CAAC,gBAAgB;GAAC,UACxB;;;;;;;;;;;;;;;;;;;;;;;;;GAwBT,iBAEgB,wBAAwB;GAAM,QAAA,CAAA,o4CAAA;EAAA,CAAA"}
@@ -1,39 +1,94 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { FormField } from '@angular/forms/signals';
4
- import { MatFormField, MatLabel, MatSuffix, MatPrefix, MatError } from '@angular/material/form-field';
5
- import { MatInput, MatHint } from '@angular/material/input';
6
- import { MatDatepicker, MatDatepickerInput, MatDatepickerToggle } from '@angular/material/datepicker';
7
- import * as i1 from '@ng-forge/dynamic-forms/integration';
8
- import { injectNgForgeField, injectNgForgeAddons, NgForgeControl, DfAddonSlot, DynamicTextPipe, NgForgeFieldHost, NgForgeAddons } from '@ng-forge/dynamic-forms/integration';
9
- import { provideNativeDateAdapter } from '@angular/material/core';
10
- import { AsyncPipe } from '@angular/common';
11
- import { MATERIAL_CONFIG } from '@ng-forge/dynamic-forms-material/shared';
12
-
13
- class MatDatepickerFieldComponent {
14
- materialConfig = inject(MATERIAL_CONFIG, { optional: true });
15
- ngf = injectNgForgeField();
16
- ngfa = injectNgForgeAddons();
17
- minDate = input(null, /* @ts-ignore */
18
- ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
19
- maxDate = input(null, /* @ts-ignore */
20
- ...(ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []));
21
- startAt = input(null, /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "startAt" }] : /* istanbul ignore next */ []));
23
- props = input(/* @ts-ignore */
24
- ...(ngDevMode ? [undefined, { debugName: "props" }] : /* istanbul ignore next */ []));
25
- fieldInputs = input(/* @ts-ignore */
26
- ...(ngDevMode ? [undefined, { debugName: "fieldInputs" }] : /* istanbul ignore next */ []));
27
- appearance = computed(() => this.props()?.appearance ?? this.materialConfig?.appearance ?? 'outline', /* @ts-ignore */
28
- ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
29
- subscriptSizing = computed(() => this.props()?.subscriptSizing ?? this.materialConfig?.subscriptSizing ?? 'dynamic', /* @ts-ignore */
30
- ...(ngDevMode ? [{ debugName: "subscriptSizing" }] : /* istanbul ignore next */ []));
31
- floatLabel = computed(() => this.props()?.floatLabel ?? this.materialConfig?.floatLabel ?? 'auto', /* @ts-ignore */
32
- ...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
33
- hideRequiredMarker = computed(() => this.props()?.hideRequiredMarker ?? this.materialConfig?.hideRequiredMarker ?? false, /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "hideRequiredMarker" }] : /* istanbul ignore next */ []));
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: MatDatepickerFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: MatDatepickerFieldComponent, isStandalone: true, selector: "df-mat-datepicker", inputs: { minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, startAt: { classPropertyName: "startAt", publicName: "startAt", isSignal: true, isRequired: false, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null }, fieldInputs: { classPropertyName: "fieldInputs", publicName: "fieldInputs", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideNativeDateAdapter()], hostDirectives: [{ directive: i1.NgForgeFieldHost }, { directive: i1.NgForgeAddons }], ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input } from "@angular/core";
3
+ import { FormField } from "@angular/forms/signals";
4
+ import { MatError, MatFormField, MatLabel, MatPrefix, MatSuffix } from "@angular/material/form-field";
5
+ import { MatHint, MatInput } from "@angular/material/input";
6
+ import { MatDatepicker, MatDatepickerInput, MatDatepickerToggle } from "@angular/material/datepicker";
7
+ import * as i1 from "@ng-forge/dynamic-forms/integration";
8
+ import { DfAddonSlot, DynamicTextPipe, NgForgeAddons, NgForgeControl, NgForgeFieldHost, injectNgForgeAddons, injectNgForgeField } from "@ng-forge/dynamic-forms/integration";
9
+ import { DateAdapter, MAT_DATE_FORMATS, MAT_NATIVE_DATE_FORMATS, NativeDateAdapter } from "@angular/material/core";
10
+ import { AsyncPipe } from "@angular/common";
11
+ import { MATERIAL_CONFIG } from "@ng-forge/dynamic-forms-material/shared";
12
+ var MatDatepickerFieldComponent = class MatDatepickerFieldComponent {
13
+ materialConfig = inject(MATERIAL_CONFIG, { optional: true });
14
+ ngf = injectNgForgeField();
15
+ ngfa = injectNgForgeAddons();
16
+ minDate = input(null, ...ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []);
17
+ maxDate = input(null, ...ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []);
18
+ startAt = input(null, ...ngDevMode ? [{ debugName: "startAt" }] : /* istanbul ignore next */ []);
19
+ props = input(...ngDevMode ? [void 0, { debugName: "props" }] : /* istanbul ignore next */ []);
20
+ fieldInputs = input(...ngDevMode ? [void 0, { debugName: "fieldInputs" }] : /* istanbul ignore next */ []);
21
+ appearance = computed(() => this.props()?.appearance ?? this.materialConfig?.appearance ?? "outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
22
+ subscriptSizing = computed(() => this.props()?.subscriptSizing ?? this.materialConfig?.subscriptSizing ?? "dynamic", ...ngDevMode ? [{ debugName: "subscriptSizing" }] : /* istanbul ignore next */ []);
23
+ floatLabel = computed(() => this.props()?.floatLabel ?? this.materialConfig?.floatLabel ?? "auto", ...ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []);
24
+ hideRequiredMarker = computed(() => this.props()?.hideRequiredMarker ?? this.materialConfig?.hideRequiredMarker ?? false, ...ngDevMode ? [{ debugName: "hideRequiredMarker" }] : /* istanbul ignore next */ []);
25
+ static ɵfac = i0.ɵɵngDeclareFactory({
26
+ minVersion: "12.0.0",
27
+ version: "22.2.5",
28
+ ngImport: i0,
29
+ type: MatDatepickerFieldComponent,
30
+ deps: [],
31
+ target: i0.ɵɵFactoryTarget.Component
32
+ });
33
+ static ɵcmp = i0.ɵɵngDeclareComponent({
34
+ minVersion: "17.0.0",
35
+ version: "22.2.5",
36
+ type: MatDatepickerFieldComponent,
37
+ isStandalone: true,
38
+ selector: "df-mat-datepicker",
39
+ inputs: {
40
+ minDate: {
41
+ classPropertyName: "minDate",
42
+ publicName: "minDate",
43
+ isSignal: true,
44
+ isRequired: false,
45
+ transformFunction: null
46
+ },
47
+ maxDate: {
48
+ classPropertyName: "maxDate",
49
+ publicName: "maxDate",
50
+ isSignal: true,
51
+ isRequired: false,
52
+ transformFunction: null
53
+ },
54
+ startAt: {
55
+ classPropertyName: "startAt",
56
+ publicName: "startAt",
57
+ isSignal: true,
58
+ isRequired: false,
59
+ transformFunction: null
60
+ },
61
+ props: {
62
+ classPropertyName: "props",
63
+ publicName: "props",
64
+ isSignal: true,
65
+ isRequired: false,
66
+ transformFunction: null
67
+ },
68
+ fieldInputs: {
69
+ classPropertyName: "fieldInputs",
70
+ publicName: "fieldInputs",
71
+ isSignal: true,
72
+ isRequired: false,
73
+ transformFunction: null
74
+ }
75
+ },
76
+ providers: [{
77
+ provide: DateAdapter,
78
+ useFactory: () => inject(DateAdapter, {
79
+ optional: true,
80
+ skipSelf: true
81
+ }) ?? new NativeDateAdapter()
82
+ }, {
83
+ provide: MAT_DATE_FORMATS,
84
+ useFactory: () => inject(MAT_DATE_FORMATS, {
85
+ optional: true,
86
+ skipSelf: true
87
+ }) ?? MAT_NATIVE_DATE_FORMATS
88
+ }],
89
+ hostDirectives: [{ directive: i1.NgForgeFieldHost }, { directive: i1.NgForgeAddons }],
90
+ ngImport: i0,
91
+ template: `
37
92
  @let inputId = ngf.key() + '-input';
38
93
 
39
94
  <mat-form-field
@@ -85,27 +140,168 @@ class MatDatepickerFieldComponent {
85
140
  <mat-hint [id]="ngf.hintId()">{{ hint | dynamicText | async }}</mat-hint>
86
141
  }
87
142
  </mat-form-field>
88
- `, isInline: true, styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n", "mat-form-field{width:100%}\n"], dependencies: [{ kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "directive", type: MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: NgForgeControl, selector: "[ngForgeControl]", inputs: ["ngForgeControl"] }, { kind: "component", type: DfAddonSlot, selector: "df-addon-slot", inputs: ["addon", "fieldInputs", "hidden"] }, { kind: "pipe", type: DynamicTextPipe, name: "dynamicText" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
89
- }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: MatDatepickerFieldComponent, decorators: [{
91
- type: Component,
92
- args: [{ selector: 'df-mat-datepicker', imports: [
93
- MatFormField,
94
- MatLabel,
95
- MatInput,
96
- MatHint,
97
- MatDatepicker,
98
- MatDatepickerInput,
99
- MatDatepickerToggle,
100
- MatSuffix,
101
- MatPrefix,
102
- FormField,
103
- MatError,
104
- DynamicTextPipe,
105
- AsyncPipe,
106
- NgForgeControl,
107
- DfAddonSlot,
108
- ], hostDirectives: [NgForgeFieldHost, NgForgeAddons], template: `
143
+ `,
144
+ isInline: true,
145
+ styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n", "mat-form-field{width:100%}\n"],
146
+ dependencies: [
147
+ {
148
+ kind: "component",
149
+ type: MatFormField,
150
+ selector: "mat-form-field",
151
+ inputs: [
152
+ "hideRequiredMarker",
153
+ "color",
154
+ "floatLabel",
155
+ "appearance",
156
+ "subscriptSizing",
157
+ "hintLabel"
158
+ ],
159
+ exportAs: ["matFormField"]
160
+ },
161
+ {
162
+ kind: "directive",
163
+ type: MatLabel,
164
+ selector: "mat-label"
165
+ },
166
+ {
167
+ kind: "directive",
168
+ type: MatInput,
169
+ selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
170
+ inputs: [
171
+ "disabled",
172
+ "id",
173
+ "placeholder",
174
+ "name",
175
+ "required",
176
+ "type",
177
+ "errorStateMatcher",
178
+ "aria-describedby",
179
+ "value",
180
+ "readonly",
181
+ "disabledInteractive"
182
+ ],
183
+ exportAs: ["matInput"]
184
+ },
185
+ {
186
+ kind: "directive",
187
+ type: MatHint,
188
+ selector: "mat-hint",
189
+ inputs: ["align", "id"]
190
+ },
191
+ {
192
+ kind: "component",
193
+ type: MatDatepicker,
194
+ selector: "mat-datepicker",
195
+ exportAs: ["matDatepicker"]
196
+ },
197
+ {
198
+ kind: "directive",
199
+ type: MatDatepickerInput,
200
+ selector: "input[matDatepicker]",
201
+ inputs: [
202
+ "matDatepicker",
203
+ "min",
204
+ "max",
205
+ "matDatepickerFilter"
206
+ ],
207
+ exportAs: ["matDatepickerInput"]
208
+ },
209
+ {
210
+ kind: "component",
211
+ type: MatDatepickerToggle,
212
+ selector: "mat-datepicker-toggle",
213
+ inputs: [
214
+ "for",
215
+ "tabIndex",
216
+ "aria-label",
217
+ "disabled",
218
+ "disableRipple"
219
+ ],
220
+ exportAs: ["matDatepickerToggle"]
221
+ },
222
+ {
223
+ kind: "directive",
224
+ type: MatSuffix,
225
+ selector: "[matSuffix], [matIconSuffix], [matTextSuffix]",
226
+ inputs: ["matTextSuffix"]
227
+ },
228
+ {
229
+ kind: "directive",
230
+ type: MatPrefix,
231
+ selector: "[matPrefix], [matIconPrefix], [matTextPrefix]",
232
+ inputs: ["matTextPrefix"]
233
+ },
234
+ {
235
+ kind: "directive",
236
+ type: FormField,
237
+ selector: "[formField]",
238
+ inputs: ["formField"],
239
+ exportAs: ["formField"]
240
+ },
241
+ {
242
+ kind: "directive",
243
+ type: MatError,
244
+ selector: "mat-error, [matError]",
245
+ inputs: ["id"]
246
+ },
247
+ {
248
+ kind: "directive",
249
+ type: NgForgeControl,
250
+ selector: "[ngForgeControl]",
251
+ inputs: ["ngForgeControl"]
252
+ },
253
+ {
254
+ kind: "component",
255
+ type: DfAddonSlot,
256
+ selector: "df-addon-slot",
257
+ inputs: [
258
+ "addon",
259
+ "fieldInputs",
260
+ "hidden"
261
+ ]
262
+ },
263
+ {
264
+ kind: "pipe",
265
+ type: DynamicTextPipe,
266
+ name: "dynamicText"
267
+ },
268
+ {
269
+ kind: "pipe",
270
+ type: AsyncPipe,
271
+ name: "async"
272
+ }
273
+ ],
274
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
275
+ });
276
+ };
277
+ i0.ɵɵngDeclareClassMetadata({
278
+ minVersion: "12.0.0",
279
+ version: "22.2.5",
280
+ ngImport: i0,
281
+ type: MatDatepickerFieldComponent,
282
+ decorators: [{
283
+ type: Component,
284
+ args: [{
285
+ selector: "df-mat-datepicker",
286
+ imports: [
287
+ MatFormField,
288
+ MatLabel,
289
+ MatInput,
290
+ MatHint,
291
+ MatDatepicker,
292
+ MatDatepickerInput,
293
+ MatDatepickerToggle,
294
+ MatSuffix,
295
+ MatPrefix,
296
+ FormField,
297
+ MatError,
298
+ DynamicTextPipe,
299
+ AsyncPipe,
300
+ NgForgeControl,
301
+ DfAddonSlot
302
+ ],
303
+ hostDirectives: [NgForgeFieldHost, NgForgeAddons],
304
+ template: `
109
305
  @let inputId = ngf.key() + '-input';
110
306
 
111
307
  <mat-form-field
@@ -157,9 +353,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
157
353
  <mat-hint [id]="ngf.hintId()">{{ hint | dynamicText | async }}</mat-hint>
158
354
  }
159
355
  </mat-form-field>
160
- `, providers: [provideNativeDateAdapter()], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n", "mat-form-field{width:100%}\n"] }]
161
- }], propDecorators: { minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], startAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAt", required: false }] }], props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }], fieldInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldInputs", required: false }] }] } });
162
-
163
-
356
+ `,
357
+ providers: [{
358
+ provide: DateAdapter,
359
+ useFactory: () => inject(DateAdapter, {
360
+ optional: true,
361
+ skipSelf: true
362
+ }) ?? new NativeDateAdapter()
363
+ }, {
364
+ provide: MAT_DATE_FORMATS,
365
+ useFactory: () => inject(MAT_DATE_FORMATS, {
366
+ optional: true,
367
+ skipSelf: true
368
+ }) ?? MAT_NATIVE_DATE_FORMATS
369
+ }],
370
+ changeDetection: ChangeDetectionStrategy.OnPush,
371
+ styles: [":host{display:block;width:100%}:host([hidden]){display:none!important}.df-mat-field{display:flex;flex-direction:column;gap:var(--df-field-gap, .5rem);width:100%}.df-mat-label{font-weight:var(--df-label-font-weight, 500);color:var(--df-label-color, inherit)}.df-mat-hint{color:var(--df-hint-color, rgba(0, 0, 0, .6));font-size:var(--df-hint-font-size, .875rem)}.df-mat-error{color:var(--df-error-color, #f44336);font-size:var(--df-error-font-size, .875rem)}:host{--df-mat-addon-prefix-outer-padding: .75em;--df-mat-addon-prefix-inner-padding: .5em;--df-mat-addon-suffix-inner-padding: .5em;--df-mat-addon-suffix-outer-padding: .75em;--df-mat-addon-prefix-text-outer-padding: 1em;--df-mat-addon-prefix-text-inner-padding: 1em;--df-mat-addon-suffix-text-inner-padding: 1em;--df-mat-addon-suffix-text-outer-padding: 1em}df-addon-slot[matprefix]{padding-left:var(--df-mat-addon-prefix-outer-padding);padding-right:var(--df-mat-addon-prefix-inner-padding)}df-addon-slot[matsuffix]{padding-left:var(--df-mat-addon-suffix-inner-padding);padding-right:var(--df-mat-addon-suffix-outer-padding)}df-addon-slot[matprefix].df-mat-addon-text{padding-left:var(--df-mat-addon-prefix-text-outer-padding);padding-right:var(--df-mat-addon-prefix-text-inner-padding)}df-addon-slot[matsuffix].df-mat-addon-text{padding-left:var(--df-mat-addon-suffix-text-inner-padding);padding-right:var(--df-mat-addon-suffix-text-outer-padding)}\n", "mat-form-field{width:100%}\n"]
372
+ }]
373
+ }],
374
+ propDecorators: {
375
+ minDate: [{
376
+ type: i0.Input,
377
+ args: [{
378
+ isSignal: true,
379
+ alias: "minDate",
380
+ required: false
381
+ }]
382
+ }],
383
+ maxDate: [{
384
+ type: i0.Input,
385
+ args: [{
386
+ isSignal: true,
387
+ alias: "maxDate",
388
+ required: false
389
+ }]
390
+ }],
391
+ startAt: [{
392
+ type: i0.Input,
393
+ args: [{
394
+ isSignal: true,
395
+ alias: "startAt",
396
+ required: false
397
+ }]
398
+ }],
399
+ props: [{
400
+ type: i0.Input,
401
+ args: [{
402
+ isSignal: true,
403
+ alias: "props",
404
+ required: false
405
+ }]
406
+ }],
407
+ fieldInputs: [{
408
+ type: i0.Input,
409
+ args: [{
410
+ isSignal: true,
411
+ alias: "fieldInputs",
412
+ required: false
413
+ }]
414
+ }]
415
+ }
416
+ });
164
417
  export { MatDatepickerFieldComponent };
165
- //# sourceMappingURL=ng-forge-dynamic-forms-material-lazy-datepicker.mjs.map
418
+
419
+ //# sourceMappingURL=ng-forge-dynamic-forms-material-lazy-datepicker.mjs.map