@daffodil/design 0.94.1-rc.0 → 0.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/README.md +1 -2
  2. package/accordion/src/accordion-theme.scss +4 -4
  3. package/article/README.md +4 -27
  4. package/article/src/article-theme.scss +14 -14
  5. package/badge/src/badge-theme.scss +0 -6
  6. package/button/README.md +0 -4
  7. package/button/src/button/basic/button-theme.scss +17 -42
  8. package/button/src/button/button-base.scss +12 -3
  9. package/button/src/button/flat/flat-theme.scss +14 -12
  10. package/button/src/button/icon/icon-theme.scss +19 -40
  11. package/button/src/button/stroked/stroked-theme.scss +22 -36
  12. package/card/src/card/stroked/stroked-theme.scss +1 -1
  13. package/card/src/card-base.scss +0 -1
  14. package/fesm2022/daffodil-design-accordion.mjs +285 -188
  15. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  16. package/fesm2022/daffodil-design-article.mjs +578 -340
  17. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  18. package/fesm2022/daffodil-design-badge.mjs +166 -84
  19. package/fesm2022/daffodil-design-badge.mjs.map +1 -1
  20. package/fesm2022/daffodil-design-beacon.mjs +109 -47
  21. package/fesm2022/daffodil-design-beacon.mjs.map +1 -1
  22. package/fesm2022/daffodil-design-breadcrumb.mjs +384 -277
  23. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  24. package/fesm2022/daffodil-design-button.mjs +541 -408
  25. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  26. package/fesm2022/daffodil-design-callout.mjs +349 -224
  27. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  28. package/fesm2022/daffodil-design-card.mjs +496 -327
  29. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  30. package/fesm2022/daffodil-design-checkbox.mjs +373 -313
  31. package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
  32. package/fesm2022/daffodil-design-container.mjs +103 -60
  33. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  34. package/fesm2022/daffodil-design-form-field.mjs +441 -352
  35. package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
  36. package/fesm2022/daffodil-design-form.mjs +155 -57
  37. package/fesm2022/daffodil-design-form.mjs.map +1 -1
  38. package/fesm2022/daffodil-design-hero.mjs +349 -234
  39. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  40. package/fesm2022/daffodil-design-image-lite.mjs +60 -0
  41. package/fesm2022/daffodil-design-image-lite.mjs.map +1 -0
  42. package/fesm2022/daffodil-design-image.mjs +245 -107
  43. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  44. package/fesm2022/daffodil-design-input.mjs +217 -164
  45. package/fesm2022/daffodil-design-input.mjs.map +1 -1
  46. package/fesm2022/daffodil-design-list.mjs +308 -170
  47. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  48. package/fesm2022/daffodil-design-media-gallery.mjs +351 -278
  49. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  50. package/fesm2022/daffodil-design-menu.mjs +525 -417
  51. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  52. package/fesm2022/daffodil-design-modal.mjs +680 -450
  53. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  54. package/fesm2022/daffodil-design-native-select.mjs +175 -166
  55. package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-navbar.mjs +145 -68
  57. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-notification.mjs +376 -226
  59. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-paginator.mjs +296 -192
  61. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-progress-bar.mjs +243 -157
  63. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-radio.mjs +382 -300
  65. package/fesm2022/daffodil-design-radio.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-select.mjs +424 -364
  67. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-sidebar.mjs +874 -887
  69. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-spinner.mjs +156 -99
  71. package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-switch.mjs +176 -106
  73. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-tabs.mjs +685 -427
  75. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-tag.mjs +251 -133
  77. package/fesm2022/daffodil-design-tag.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-testing.mjs +4 -16
  79. package/fesm2022/daffodil-design-testing.mjs.map +1 -1
  80. package/fesm2022/daffodil-design-text-snippet.mjs +140 -54
  81. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-textarea.mjs +170 -150
  83. package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-toast.mjs +658 -481
  85. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-tree.mjs +456 -469
  87. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-youtube-player.mjs +168 -115
  89. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  90. package/fesm2022/daffodil-design.mjs +1628 -1650
  91. package/fesm2022/daffodil-design.mjs.map +1 -1
  92. package/form-field/README.md +0 -4
  93. package/form-field/src/form-field-theme.scss +12 -4
  94. package/image/README.md +4 -0
  95. package/image-lite/README.md +58 -0
  96. package/image-lite/src/image-theme.scss +18 -0
  97. package/list/src/list-base.scss +3 -4
  98. package/list/src/list-theme.scss +6 -5
  99. package/media-gallery/README.md +1 -1
  100. package/media-gallery/src/media-gallery-theme.scss +3 -3
  101. package/menu/src/menu-theme.scss +6 -2
  102. package/notification/src/notification-theme.scss +10 -10
  103. package/package.json +1 -1
  104. package/scss/global.scss +17 -11
  105. package/scss/theme.scss +2 -18
  106. package/scss/theming/_get-palette.scss +0 -3
  107. package/scss/theming/_index.scss +0 -1
  108. package/scss/theming/_light-dark.scss +2 -2
  109. package/scss/theming/_theme-css-variables.scss +1 -1
  110. package/scss/theming/create-theme/_create-theme.scss +2 -2
  111. package/scss/theming/get-font-colors/_get-font-colors.scss +7 -25
  112. package/scss/theming/get-font-colors/_get-font-colors.spec.scss +0 -12
  113. package/scss/typography/_classes.scss +0 -6
  114. package/scss/typography/_index.scss +0 -1
  115. package/scss/typography/mixins/_sizes.scss +0 -1
  116. package/scss/typography/utilities/_variables.scss +3 -0
  117. package/select/src/select-theme.scss +10 -14
  118. package/switch/src/switch-theme.scss +2 -2
  119. package/tabs/src/tabs-theme.scss +4 -4
  120. package/types/daffodil-design-accordion.d.ts +92 -67
  121. package/types/daffodil-design-article.d.ts +49 -56
  122. package/types/daffodil-design-badge.d.ts +56 -33
  123. package/types/daffodil-design-beacon.d.ts +35 -14
  124. package/types/daffodil-design-breadcrumb.d.ts +89 -85
  125. package/types/daffodil-design-button.d.ts +128 -146
  126. package/types/daffodil-design-callout.d.ts +55 -39
  127. package/types/daffodil-design-card.d.ts +66 -56
  128. package/types/daffodil-design-checkbox.d.ts +211 -167
  129. package/types/daffodil-design-container.d.ts +17 -16
  130. package/types/daffodil-design-form-field.d.ts +273 -240
  131. package/types/daffodil-design-form.d.ts +21 -21
  132. package/types/daffodil-design-hero.d.ts +55 -39
  133. package/types/daffodil-design-image-lite.d.ts +17 -0
  134. package/types/daffodil-design-image.d.ts +89 -55
  135. package/types/daffodil-design-input.d.ts +86 -72
  136. package/types/daffodil-design-list.d.ts +49 -43
  137. package/types/daffodil-design-media-gallery.d.ts +176 -148
  138. package/types/daffodil-design-menu.d.ts +177 -169
  139. package/types/daffodil-design-modal.d.ts +205 -205
  140. package/types/daffodil-design-native-select.d.ts +94 -84
  141. package/types/daffodil-design-navbar.d.ts +34 -24
  142. package/types/daffodil-design-notification.d.ts +82 -67
  143. package/types/daffodil-design-paginator.d.ts +140 -118
  144. package/types/daffodil-design-progress-bar.d.ts +92 -74
  145. package/types/daffodil-design-radio.d.ts +183 -144
  146. package/types/daffodil-design-select.d.ts +207 -178
  147. package/types/daffodil-design-sidebar.d.ts +270 -253
  148. package/types/daffodil-design-spinner.d.ts +49 -36
  149. package/types/daffodil-design-switch.d.ts +77 -46
  150. package/types/daffodil-design-tabs.d.ts +248 -198
  151. package/types/daffodil-design-tag.d.ts +91 -56
  152. package/types/daffodil-design-testing.d.ts +1 -3
  153. package/types/daffodil-design-text-snippet.d.ts +48 -37
  154. package/types/daffodil-design-textarea.d.ts +88 -79
  155. package/types/daffodil-design-toast.d.ts +175 -183
  156. package/types/daffodil-design-tree.d.ts +186 -169
  157. package/types/daffodil-design-youtube-player.d.ts +56 -52
  158. package/types/daffodil-design.d.ts +614 -695
  159. package/button/src/button/raised/raised-theme.scss +0 -92
  160. package/button/src/button/underline/underline-theme.scss +0 -141
  161. package/fesm2022/daffodil-design-link-set.mjs +0 -160
  162. package/fesm2022/daffodil-design-link-set.mjs.map +0 -1
  163. package/fesm2022/daffodil-design-quantity-field.mjs +0 -364
  164. package/fesm2022/daffodil-design-quantity-field.mjs.map +0 -1
  165. package/link-set/README.md +0 -86
  166. package/quantity-field/README.md +0 -63
  167. package/scss/theming/_configure-theme.scss +0 -120
  168. package/scss/typography/mixins/_font-weight.scss +0 -14
  169. package/types/daffodil-design-link-set.d.ts +0 -72
  170. package/types/daffodil-design-quantity-field.d.ts +0 -171
@@ -1,28 +1,34 @@
1
- import * as _angular_core from '@angular/core';
2
- import { AfterContentInit, AfterContentChecked, AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core';
3
- import * as i3 from '@daffodil/design';
4
- import { DaffPrefixDirective, DaffSuffixDirective, DaffFormLabelDirective } from '@daffodil/design';
5
- import * as i2 from '@daffodil/design/form';
6
- import { DaffFormFieldLabelDirective, DaffHintComponent, DaffErrorMessageComponent } from '@daffodil/design/form';
7
- import { NgControl } from '@angular/forms';
8
- import { BehaviorSubject, Observable } from 'rxjs';
9
-
1
+ import * as i0 from "@angular/core";
2
+ import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef } from "@angular/core";
3
+ import * as i1 from "@daffodil/design";
4
+ import { DaffPrefixDirective, DaffSuffixDirective } from "@daffodil/design";
5
+ import * as i2 from "@daffodil/design/form";
6
+ import { DaffErrorMessageComponent, DaffFormFieldLabelDirective, DaffHintComponent } from "@daffodil/design/form";
7
+ import { NgControl } from "@angular/forms";
8
+ import { BehaviorSubject, Observable } from "rxjs";
10
9
  /**
11
10
  * DaffFormFieldActionDirective marks an element, typically a button, as an action attached to a form control inside `DaffFormFieldComponent`.
12
11
  */
13
- declare class DaffFormFieldActionDirective {
14
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffFormFieldActionDirective, never>;
15
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DaffFormFieldActionDirective, "[daffFormFieldAction]", never, {}, {}, never, never, true, never>;
12
+ export declare class DaffFormFieldActionDirective {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldActionDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormFieldActionDirective, "[daffFormFieldAction]", never, {}, {}, never, never, true, never>;
16
15
  }
17
-
18
16
  interface DaffFormFieldState {
19
- focused: boolean;
20
- filled: boolean;
21
- disabled: boolean;
22
- error: boolean;
23
- valid: boolean;
17
+ focused: boolean;
18
+ filled: boolean;
19
+ disabled: boolean;
20
+ error: boolean;
21
+ valid: boolean;
22
+ }
23
+ /**
24
+ * The types of controls that can be used inside a form field.
25
+ * - 'input': A control that the user types into, like an input or a textarea.
26
+ * - 'dropdown': A control that opens a list of options, like a select.
27
+ */
28
+ export declare enum DaffFormFieldControlTypesEnum {
29
+ Input = "input",
30
+ Dropdown = "dropdown"
24
31
  }
25
-
26
32
  /**
27
33
  * Form controls must extend this class to be used inside `DaffFormFieldComponent`.
28
34
  *
@@ -31,239 +37,266 @@ interface DaffFormFieldState {
31
37
  * >
32
38
  * > By using an abstract class, the Angular DI container can match the class token for injection.
33
39
  */
34
- declare abstract class DaffFormFieldControl<T> {
35
- ngControl: NgControl | null;
36
- /**
37
- * The type of the control (e.g., 'input', 'select', 'textarea').
38
- * Used to apply control-specific styling or behavior.
39
- */
40
- abstract readonly controlType?: any;
41
- /**
42
- * Whether the control supports automatic label behavior.
43
- * When `true`, the form field will associate the label with the control using `for` and `id` attributes.
44
- *
45
- * Defaults to `true`.
46
- */
47
- readonly supportsAutoLabelling?: boolean;
48
- /**
49
- * Whether the control currently has focus.
50
- */
51
- abstract readonly focused: boolean;
52
- /**
53
- * Whether the control is required for form validation.
54
- */
55
- abstract readonly required: boolean;
56
- /**
57
- * Whether the control is disabled.
58
- */
59
- abstract readonly disabled: boolean;
60
- /**
61
- * The unique identifier for the control element.
62
- */
63
- readonly id?: string;
64
- /**
65
- * Whether the label should be in the raised position.
66
- * By default, matches the focused state.
67
- */
68
- get raised(): boolean;
69
- /**
70
- * Sets focus on the control.
71
- *
72
- * @param event - Optional event that triggers the focus.
73
- */
74
- abstract focus(event?: Event): void;
75
- /**
76
- * The current value of the control.
77
- */
78
- abstract readonly value: T;
79
- constructor(ngControl: NgControl | null);
80
- /**
81
- * Computes the current state of the form field control.
82
- * Combines control properties and form validation state.
83
- */
84
- get state(): DaffFormFieldState;
85
- _stateChanges: BehaviorSubject<{
86
- focused: boolean;
87
- filled: boolean;
88
- disabled: boolean;
89
- error: boolean;
90
- valid: boolean;
91
- }>;
92
- /**
93
- * Observable stream of state changes for the form field control.
94
- */
95
- stateChanges: Observable<DaffFormFieldState>;
96
- /**
97
- * Emits the current state.
98
- */
99
- emitState(deferred?: boolean): void;
40
+ export declare abstract class DaffFormFieldControl<T> {
41
+ ngControl: NgControl | null;
42
+ /**
43
+ * The type of the control. Used to apply control-specific styling or behavior.
44
+ */
45
+ abstract readonly controlType?: DaffFormFieldControlTypesEnum;
46
+ /**
47
+ * Whether the control supports automatic label behavior.
48
+ * When `true`, the form field will associate the label with the control using `for` and `id` attributes.
49
+ *
50
+ * Defaults to `true`.
51
+ */
52
+ readonly supportsAutoLabelling?: boolean;
53
+ /**
54
+ * Whether the control currently has focus.
55
+ */
56
+ abstract readonly focused: boolean;
57
+ /**
58
+ * Whether the control is required for form validation.
59
+ */
60
+ abstract readonly required: boolean;
61
+ /**
62
+ * Whether the control is disabled.
63
+ */
64
+ abstract readonly disabled: boolean;
65
+ /**
66
+ * The unique identifier for the control element.
67
+ */
68
+ readonly id?: string;
69
+ /**
70
+ * Whether the label should be in the raised position.
71
+ * By default, matches the focused state.
72
+ */
73
+ get raised(): boolean;
74
+ /**
75
+ * Whether the control is currently open. Only relevant for controls
76
+ * that expand, like dropdowns.
77
+ *
78
+ * Defaults to `false`.
79
+ */
80
+ get opened(): boolean;
81
+ /**
82
+ * Sets focus on the control.
83
+ *
84
+ * @param event - Optional event that triggers the focus.
85
+ */
86
+ abstract focus(event?: Event): void;
87
+ /**
88
+ * The current value of the control.
89
+ */
90
+ abstract readonly value: T;
91
+ constructor(ngControl: NgControl | null);
92
+ /**
93
+ * Computes the current state of the form field control.
94
+ * Combines control properties and form validation state.
95
+ */
96
+ get state(): DaffFormFieldState;
97
+ _stateChanges: BehaviorSubject<{
98
+ focused: boolean;
99
+ filled: boolean;
100
+ disabled: boolean;
101
+ error: boolean;
102
+ valid: boolean;
103
+ }>;
104
+ /**
105
+ * Observable stream of state changes for the form field control.
106
+ */
107
+ stateChanges: Observable<DaffFormFieldState>;
108
+ /**
109
+ * Emits the current state.
110
+ */
111
+ emitState(deferred?: boolean): void;
100
112
  }
101
-
102
113
  type DaffFormFieldAppearance = 'fluid' | 'fixed';
103
114
  declare enum DaffFormFieldAppearanceEnum {
104
- Fluid = "fluid",
105
- Fixed = "fixed"
115
+ Fluid = "fluid",
116
+ Fixed = "fixed"
106
117
  }
107
118
  /**
108
119
  * DaffFormFieldComponent is a wrapping component that provides consistent styling and behavior for form control elements.
109
120
  */
110
- declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked, AfterViewInit {
111
- private cd;
112
- elementRef: ElementRef;
113
- /** @docs-private */
114
- isNativeSelect: _angular_core.Signal<boolean>;
115
- constructor(cd: ChangeDetectorRef, elementRef: ElementRef);
116
- /** @docs-private */
117
- _prefix: _angular_core.Signal<DaffPrefixDirective>;
118
- /** @docs-private */
119
- _suffix: _angular_core.Signal<DaffSuffixDirective>;
120
- /**
121
- * @docs-private
122
- *
123
- * The child form control that the form field manages.
124
- */
125
- _control: _angular_core.Signal<DaffFormFieldControl<any>>;
126
- /**
127
- * @docs-private
128
- *
129
- * @deprecated Deprecated in version 0.86.0. Will be removed in version 1.0.0.
130
- */
131
- _formLabelDirective: _angular_core.Signal<DaffFormLabelDirective>;
132
- /**
133
- * @docs-private
134
- */
135
- _formFieldLabelDirective: _angular_core.Signal<DaffFormFieldLabelDirective>;
136
- /**
137
- * @docs-private
138
- */
139
- _action: _angular_core.Signal<DaffFormFieldActionDirective>;
140
- /**
141
- * @docs-private
142
- */
143
- private _hint;
144
- /**
145
- * @docs-private
146
- */
147
- private _error;
148
- /**
149
- * @docs-private
150
- *
151
- * Tracking property to keep a record of whether or not the
152
- * form field should be marked as error.
153
- */
154
- isError: _angular_core.WritableSignal<boolean>;
155
- /**
156
- * @docs-private
157
- *
158
- * Tracking property to keep a record of whether or not the
159
- * form field contains any user input.
160
- */
161
- isFilled: _angular_core.WritableSignal<boolean>;
162
- /**
163
- * @docs-private
164
- *
165
- * Tracking property to keep a record of whether or not the
166
- * form field should be marked as disabled.
167
- */
168
- isDisabled: _angular_core.WritableSignal<boolean>;
169
- /**
170
- * @docs-private
171
- *
172
- * Tracking property to keep a record of whether or not the
173
- * form field should be marked as valid.
174
- */
175
- isValid: _angular_core.WritableSignal<boolean>;
176
- /**
177
- * @docs-private
178
- *
179
- * Determines whether or not the form field should display its focused state.
180
- */
181
- get isFocused(): boolean;
182
- /**
183
- * @docs-private
184
- */
185
- get isRaised(): boolean;
186
- /**
187
- * The appearance of the form field. Defaults to `fluid`.
188
- */
189
- appearance: _angular_core.InputSignalWithTransform<DaffFormFieldAppearance | DaffFormFieldAppearanceEnum.Fluid, "" | DaffFormFieldAppearance>;
190
- /**
191
- * @docs-private
192
- */
193
- isFixed: _angular_core.Signal<boolean>;
194
- /**
195
- * The unique id of the form field. Defaults to an autogenerated value. When using this,
196
- * it's your responsibility to ensure that the id for each form field is unique.
197
- *
198
- * It gets assigned to the `for` attribute on the `<label>` inside of the form field.
199
- */
200
- id: _angular_core.InputSignal<string>;
201
- /**
202
- * @docs-private
203
- */
204
- hasHint: _angular_core.Signal<boolean>;
205
- /**
206
- * @docs-private
207
- */
208
- hintId: _angular_core.Signal<string>;
209
- /**
210
- * @docs-private
211
- */
212
- hasErrorMessage: _angular_core.Signal<boolean>;
213
- /**
214
- * @docs-private
215
- */
216
- errorMessageId: _angular_core.Signal<string>;
217
- /**
218
- * @docs-private
219
- */
220
- autoLabelId: _angular_core.Signal<string>;
221
- /**
222
- * @docs-private
223
- */
224
- customId: _angular_core.Signal<string>;
225
- /**
226
- * @docs-private
227
- *
228
- * Displays a console warning if the `DaffFormFieldLabelDirective` is not used on controls (native HTML control elements) that support auto-labelling.
229
- */
230
- ngAfterViewInit(): void;
231
- /**
232
- * Validates whether or not the form field is in a "usable" state.
233
- */
234
- private _validateFormControl;
235
- /**
236
- * @docs-private
237
- *
238
- * Lifecycle hook to verify that the form field has an acceptable
239
- * child control instance. Mostly useful for development-time
240
- * validation of usage.
241
- */
242
- ngAfterContentInit(): void;
243
- /**
244
- * @docs-private
245
- *
246
- * Lifecycle hook to verify that the form field has an acceptable
247
- * child control instance. Mostly useful for development-time
248
- * validation of usage.
249
- */
250
- ngAfterContentChecked(): void;
251
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
252
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, ["_prefix", "_suffix", "_control", "_formLabelDirective", "_formFieldLabelDirective", "_action", "_hint", "_error"], ["*", "[daffPrefix]", "*", "[daffSuffix]", "daff-hint", "daff-error-message", "[daffFormFieldAction]", "label[daffFormLabel]", "daff-form-label", "label"], true, [{ directive: typeof i3.DaffSkeletonableDirective; inputs: { "skeleton": "skeleton"; }; outputs: {}; }]>;
121
+ export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked, AfterViewInit {
122
+ private cd;
123
+ elementRef: ElementRef;
124
+ /** @docs-private */
125
+ isDropdown: import("@angular/core").Signal<boolean>;
126
+ constructor(cd: ChangeDetectorRef, elementRef: ElementRef);
127
+ /**
128
+ * @docs-private
129
+ *
130
+ * The element that wraps the form field's control. Useful as an anchor for
131
+ * controls that need to position content relative to the control itself,
132
+ * rather than the entire form field.
133
+ */
134
+ _wrapper: import("@angular/core").Signal<ElementRef<HTMLElement>>;
135
+ /** @docs-private */
136
+ _prefix: import("@angular/core").Signal<DaffPrefixDirective>;
137
+ /** @docs-private */
138
+ _suffix: import("@angular/core").Signal<DaffSuffixDirective>;
139
+ /**
140
+ * @docs-private
141
+ *
142
+ * The child form control that the form field manages.
143
+ */
144
+ _control: import("@angular/core").Signal<DaffFormFieldControl<any>>;
145
+ /**
146
+ * @docs-private
147
+ */
148
+ _formFieldLabelDirective: import("@angular/core").Signal<DaffFormFieldLabelDirective>;
149
+ /**
150
+ * @docs-private
151
+ */
152
+ _action: import("@angular/core").Signal<DaffFormFieldActionDirective>;
153
+ /**
154
+ * @docs-private
155
+ */
156
+ private _hint;
157
+ /**
158
+ * @docs-private
159
+ */
160
+ private _error;
161
+ /**
162
+ * @docs-private
163
+ *
164
+ * Tracking property to keep a record of whether or not the
165
+ * form field should be marked as error.
166
+ */
167
+ isError: import("@angular/core").WritableSignal<boolean>;
168
+ /**
169
+ * @docs-private
170
+ *
171
+ * Tracking property to keep a record of whether or not the
172
+ * form field contains any user input.
173
+ */
174
+ isFilled: import("@angular/core").WritableSignal<boolean>;
175
+ /**
176
+ * @docs-private
177
+ *
178
+ * Tracking property to keep a record of whether or not the
179
+ * form field should be marked as disabled.
180
+ */
181
+ isDisabled: import("@angular/core").WritableSignal<boolean>;
182
+ /**
183
+ * @docs-private
184
+ *
185
+ * Tracking property to keep a record of whether or not the
186
+ * form field should be marked as valid.
187
+ */
188
+ isValid: import("@angular/core").WritableSignal<boolean>;
189
+ /**
190
+ * @docs-private
191
+ *
192
+ * Determines whether or not the form field should display its focused state.
193
+ */
194
+ get isFocused(): boolean;
195
+ /**
196
+ * @docs-private
197
+ */
198
+ get isRaised(): boolean;
199
+ /**
200
+ * @docs-private
201
+ *
202
+ * Determines whether or not the form field should display its open state.
203
+ */
204
+ get isOpen(): boolean;
205
+ /**
206
+ * The appearance of the form field. Defaults to `fluid`.
207
+ */
208
+ appearance: import("@angular/core").InputSignalWithTransform<DaffFormFieldAppearance | DaffFormFieldAppearanceEnum.Fluid, "" | DaffFormFieldAppearance>;
209
+ /**
210
+ * @docs-private
211
+ */
212
+ isFixed: import("@angular/core").Signal<boolean>;
213
+ /**
214
+ * The unique id of the form field. Defaults to an autogenerated value. When using this,
215
+ * it's your responsibility to ensure that the id for each form field is unique.
216
+ *
217
+ * It gets assigned to the `for` attribute on the `<label>` inside of the form field.
218
+ */
219
+ id: import("@angular/core").InputSignal<string>;
220
+ /**
221
+ * @docs-private
222
+ */
223
+ hasHint: import("@angular/core").Signal<boolean>;
224
+ /**
225
+ * @docs-private
226
+ */
227
+ hintId: import("@angular/core").Signal<string>;
228
+ /**
229
+ * @docs-private
230
+ */
231
+ hasErrorMessage: import("@angular/core").Signal<boolean>;
232
+ /**
233
+ * @docs-private
234
+ */
235
+ errorMessageId: import("@angular/core").Signal<string>;
236
+ /**
237
+ * @docs-private
238
+ */
239
+ autoLabelId: import("@angular/core").Signal<string>;
240
+ /**
241
+ * @docs-private
242
+ */
243
+ customId: import("@angular/core").Signal<string>;
244
+ /**
245
+ * @docs-private
246
+ *
247
+ * Displays a console warning if the `DaffFormFieldLabelDirective` is not used on controls (native HTML control elements) that support auto-labelling.
248
+ */
249
+ ngAfterViewInit(): void;
250
+ /**
251
+ * Validates whether or not the form field is in a "usable" state.
252
+ */
253
+ private _validateFormControl;
254
+ /**
255
+ * @docs-private
256
+ *
257
+ * Lifecycle hook to verify that the form field has an acceptable
258
+ * child control instance. Mostly useful for development-time
259
+ * validation of usage.
260
+ */
261
+ ngAfterContentInit(): void;
262
+ /**
263
+ * @docs-private
264
+ *
265
+ * Lifecycle hook to verify that the form field has an acceptable
266
+ * child control instance. Mostly useful for development-time
267
+ * validation of usage.
268
+ */
269
+ ngAfterContentChecked(): void;
270
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
271
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {
272
+ "appearance": {
273
+ "alias": "appearance";
274
+ "required": false;
275
+ "isSignal": true;
276
+ };
277
+ "id": {
278
+ "alias": "id";
279
+ "required": false;
280
+ "isSignal": true;
281
+ };
282
+ }, {}, ["_prefix", "_suffix", "_control", "_formFieldLabelDirective", "_action", "_hint", "_error"], ["*", "[daffPrefix]", "*", "[daffSuffix]", "daff-hint", "daff-error-message", "[daffFormFieldAction]", "daff-form-label", "label"], true, [{
283
+ directive: typeof i1.DaffSkeletonableDirective;
284
+ inputs: {
285
+ "skeleton": "skeleton";
286
+ };
287
+ outputs: {};
288
+ }]>;
253
289
  }
254
-
255
290
  /**
256
291
  * @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
257
292
  */
258
- declare class DaffFormFieldModule {
259
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffFormFieldModule, never>;
260
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<DaffFormFieldModule, never, [typeof DaffFormFieldComponent, typeof i2.DaffErrorMessageComponent, typeof i2.DaffHintComponent, typeof i2.DaffFormFieldLabelDirective, typeof i3.DaffFormLabelModule], [typeof DaffFormFieldComponent, typeof i2.DaffErrorMessageComponent, typeof i2.DaffHintComponent, typeof i2.DaffFormFieldLabelDirective, typeof i3.DaffFormLabelModule]>;
261
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<DaffFormFieldModule>;
293
+ export declare class DaffFormFieldModule {
294
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldModule, never>;
295
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormFieldModule, never, [typeof DaffFormFieldComponent, typeof i2.DaffErrorMessageComponent, typeof i2.DaffHintComponent, typeof i2.DaffFormFieldLabelDirective], [typeof DaffFormFieldComponent, typeof i2.DaffErrorMessageComponent, typeof i2.DaffHintComponent, typeof i2.DaffFormFieldLabelDirective]>;
296
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffFormFieldModule>;
262
297
  }
263
-
264
298
  /**
265
299
  * @docs-private
266
300
  */
267
- declare const DAFF_FORM_FIELD_COMPONENTS: readonly [typeof DaffFormFieldComponent, typeof DaffFormLabelDirective, typeof DaffPrefixDirective, typeof DaffSuffixDirective, typeof DaffFormFieldActionDirective, typeof DaffHintComponent, typeof DaffFormFieldLabelDirective, typeof DaffErrorMessageComponent];
268
-
269
- export { DAFF_FORM_FIELD_COMPONENTS, DaffFormFieldActionDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule };
301
+ export declare const DAFF_FORM_FIELD_COMPONENTS: readonly [typeof DaffFormFieldComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective, typeof DaffFormFieldActionDirective, typeof DaffHintComponent, typeof DaffFormFieldLabelDirective, typeof DaffErrorMessageComponent];
302
+ export {};
@@ -1,27 +1,27 @@
1
- import * as i0 from '@angular/core';
2
-
3
- declare class DaffErrorMessageComponent {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"], true, never>;
1
+ import * as i0 from "@angular/core";
2
+ export declare class DaffErrorMessageComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"], true, never>;
6
5
  }
7
-
8
- declare class DaffHintComponent {
9
- /**
10
- * Displays a validated hint UI.
11
- * */
12
- validated: i0.InputSignal<boolean>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffHintComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, { "validated": { "alias": "validated"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
6
+ export declare class DaffHintComponent {
7
+ /**
8
+ * Displays a validated hint UI.
9
+ * */
10
+ validated: import("@angular/core").InputSignal<boolean>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffHintComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, {
13
+ "validated": {
14
+ "alias": "validated";
15
+ "required": false;
16
+ "isSignal": true;
17
+ };
18
+ }, {}, never, ["*"], true, never>;
15
19
  }
16
-
17
- declare class DaffFormFieldLabelDirective {
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldLabelDirective, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormFieldLabelDirective, "daff-form-label", never, {}, {}, never, never, true, never>;
20
+ export declare class DaffFormFieldLabelDirective {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldLabelDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormFieldLabelDirective, "daff-form-label", never, {}, {}, never, never, true, never>;
20
23
  }
21
-
22
24
  /**
23
25
  * @docs-private
24
26
  */
25
- declare const DAFF_FORM_HELPER_COMPONENTS: readonly [typeof DaffErrorMessageComponent, typeof DaffHintComponent, typeof DaffFormFieldLabelDirective];
26
-
27
- export { DAFF_FORM_HELPER_COMPONENTS, DaffErrorMessageComponent, DaffFormFieldLabelDirective, DaffHintComponent };
27
+ export declare const DAFF_FORM_HELPER_COMPONENTS: readonly [typeof DaffErrorMessageComponent, typeof DaffHintComponent, typeof DaffFormFieldLabelDirective];