@daffodil/design 0.89.0 → 0.91.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 (209) hide show
  1. package/README.md +1 -0
  2. package/accordion/index.d.ts +8 -5
  3. package/article/README.md +1 -1
  4. package/article/index.d.ts +20 -0
  5. package/article/src/article-theme.scss +10 -0
  6. package/button/index.d.ts +4 -4
  7. package/button/src/button/button-base.scss +3 -3
  8. package/button/src/button/raised/raised-theme.scss +6 -16
  9. package/card/README.md +0 -8
  10. package/card/index.d.ts +7 -41
  11. package/card/src/card-base-theme.scss +2 -5
  12. package/card/src/card-base.scss +2 -2
  13. package/checkbox/README.md +0 -0
  14. package/checkbox/index.d.ts +177 -0
  15. package/fesm2022/daffodil-design-accordion.mjs +23 -14
  16. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  17. package/fesm2022/daffodil-design-article.mjs +129 -5
  18. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  19. package/fesm2022/daffodil-design-button.mjs +24 -20
  20. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  21. package/fesm2022/daffodil-design-card.mjs +16 -63
  22. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  23. package/fesm2022/daffodil-design-checkbox.mjs +317 -0
  24. package/fesm2022/daffodil-design-checkbox.mjs.map +1 -0
  25. package/fesm2022/daffodil-design-form-field.mjs +55 -162
  26. package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
  27. package/fesm2022/daffodil-design-form.mjs +62 -0
  28. package/fesm2022/daffodil-design-form.mjs.map +1 -0
  29. package/fesm2022/daffodil-design-image.mjs +12 -4
  30. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  31. package/fesm2022/daffodil-design-modal.mjs +55 -56
  32. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  33. package/fesm2022/daffodil-design-notification.mjs +14 -50
  34. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  35. package/fesm2022/daffodil-design-paginator.mjs +6 -11
  36. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  37. package/fesm2022/daffodil-design-quantity-field.mjs +3 -5
  38. package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
  39. package/fesm2022/daffodil-design-radio.mjs +304 -0
  40. package/fesm2022/daffodil-design-radio.mjs.map +1 -0
  41. package/fesm2022/daffodil-design-select.mjs +2 -2
  42. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  43. package/fesm2022/daffodil-design-sidebar.mjs +6 -36
  44. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  45. package/fesm2022/daffodil-design-switch.mjs +48 -105
  46. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  47. package/fesm2022/daffodil-design-tabs.mjs +22 -14
  48. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  49. package/fesm2022/daffodil-design-tag.mjs +131 -0
  50. package/fesm2022/daffodil-design-tag.mjs.map +1 -0
  51. package/fesm2022/daffodil-design-toast.mjs +56 -55
  52. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  53. package/fesm2022/daffodil-design-tree.mjs +4 -13
  54. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  55. package/fesm2022/daffodil-design.mjs +250 -774
  56. package/fesm2022/daffodil-design.mjs.map +1 -1
  57. package/form/README.md +75 -0
  58. package/form/index.d.ts +27 -0
  59. package/form-field/README.md +49 -39
  60. package/form-field/index.d.ts +58 -76
  61. package/image/README.md +27 -19
  62. package/image/index.d.ts +6 -1
  63. package/index.d.ts +180 -424
  64. package/input/README.md +32 -12
  65. package/modal/README.md +106 -16
  66. package/modal/index.d.ts +50 -21
  67. package/native-select/README.md +52 -15
  68. package/notification/index.d.ts +7 -38
  69. package/package.json +1 -1
  70. package/paginator/index.d.ts +1 -7
  71. package/radio/README.md +52 -0
  72. package/radio/index.d.ts +160 -0
  73. package/scss/core/error/error-to-string.scss +6 -6
  74. package/scss/core/map/map-get/map-get.scss +3 -3
  75. package/scss/layout/_breakpoint.scss +1 -1
  76. package/scss/theme.scss +4 -4
  77. package/scss/theming/_color-palettes.scss +21 -7
  78. package/scss/theming/_configure-theme.scss +11 -10
  79. package/scss/theming/_daff-theme.scss +5 -14
  80. package/scss/theming/_get-base-color.scss +2 -2
  81. package/scss/theming/_get-palette.scss +2 -2
  82. package/scss/theming/_get-theme-mode.scss +3 -3
  83. package/scss/theming/_index.scss +2 -1
  84. package/scss/theming/contrast/_index.scss +1 -0
  85. package/scss/theming/contrast/max-contrast/max-contrast.scss +47 -0
  86. package/scss/theming/contrast/max-contrast/max-contrast.spec.scss +57 -0
  87. package/scss/theming/contrast/text-contrast/text-contrast.scss +22 -16
  88. package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +57 -0
  89. package/scss/theming/create-theme/_create-theme.scss +330 -0
  90. package/scss/theming/create-theme/_create-theme.spec.scss +122 -0
  91. package/scss/theming/create-theme/_index.scss +1 -0
  92. package/scss/theming/get-font-colors/_get-font-colors.scss +36 -0
  93. package/scss/theming/get-font-colors/_get-font-colors.spec.scss +72 -0
  94. package/scss/typography/mixins/_font-weight.scss +8 -14
  95. package/select/README.md +107 -4
  96. package/sidebar/README.md +0 -8
  97. package/sidebar/index.d.ts +3 -15
  98. package/switch/README.md +19 -27
  99. package/switch/index.d.ts +18 -48
  100. package/switch/src/switch-theme.scss +26 -18
  101. package/tabs/index.d.ts +7 -4
  102. package/tag/README.md +87 -0
  103. package/tag/index.d.ts +71 -0
  104. package/tag/src/tag-theme.scss +137 -0
  105. package/textarea/README.md +35 -5
  106. package/tree/index.d.ts +0 -6
  107. package/tree/src/tree-theme.scss +0 -4
  108. package/accordion/examples/index.d.ts +0 -20
  109. package/article/examples/index.d.ts +0 -50
  110. package/breadcrumb/examples/index.d.ts +0 -10
  111. package/button/examples/index.d.ts +0 -67
  112. package/callout/examples/index.d.ts +0 -41
  113. package/card/examples/index.d.ts +0 -62
  114. package/card/src/card/raised/raised-theme.scss +0 -28
  115. package/checkbox/examples/index.d.ts +0 -32
  116. package/container/examples/index.d.ts +0 -16
  117. package/fesm2022/daffodil-design-accordion-examples.mjs +0 -50
  118. package/fesm2022/daffodil-design-accordion-examples.mjs.map +0 -1
  119. package/fesm2022/daffodil-design-article-examples.mjs +0 -134
  120. package/fesm2022/daffodil-design-article-examples.mjs.map +0 -1
  121. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +0 -46
  122. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +0 -1
  123. package/fesm2022/daffodil-design-button-examples.mjs +0 -178
  124. package/fesm2022/daffodil-design-button-examples.mjs.map +0 -1
  125. package/fesm2022/daffodil-design-callout-examples.mjs +0 -116
  126. package/fesm2022/daffodil-design-callout-examples.mjs.map +0 -1
  127. package/fesm2022/daffodil-design-card-examples.mjs +0 -168
  128. package/fesm2022/daffodil-design-card-examples.mjs.map +0 -1
  129. package/fesm2022/daffodil-design-checkbox-examples.mjs +0 -76
  130. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +0 -1
  131. package/fesm2022/daffodil-design-container-examples.mjs +0 -41
  132. package/fesm2022/daffodil-design-container-examples.mjs.map +0 -1
  133. package/fesm2022/daffodil-design-form-field-examples.mjs +0 -96
  134. package/fesm2022/daffodil-design-form-field-examples.mjs.map +0 -1
  135. package/fesm2022/daffodil-design-hero-examples.mjs +0 -121
  136. package/fesm2022/daffodil-design-hero-examples.mjs.map +0 -1
  137. package/fesm2022/daffodil-design-image-examples.mjs +0 -58
  138. package/fesm2022/daffodil-design-image-examples.mjs.map +0 -1
  139. package/fesm2022/daffodil-design-input-examples.mjs +0 -108
  140. package/fesm2022/daffodil-design-input-examples.mjs.map +0 -1
  141. package/fesm2022/daffodil-design-list-examples.mjs +0 -77
  142. package/fesm2022/daffodil-design-list-examples.mjs.map +0 -1
  143. package/fesm2022/daffodil-design-loading-icon-examples.mjs +0 -44
  144. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +0 -1
  145. package/fesm2022/daffodil-design-media-gallery-examples.mjs +0 -104
  146. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +0 -1
  147. package/fesm2022/daffodil-design-menu-examples.mjs +0 -50
  148. package/fesm2022/daffodil-design-menu-examples.mjs.map +0 -1
  149. package/fesm2022/daffodil-design-modal-examples.mjs +0 -51
  150. package/fesm2022/daffodil-design-modal-examples.mjs.map +0 -1
  151. package/fesm2022/daffodil-design-native-select-examples.mjs +0 -71
  152. package/fesm2022/daffodil-design-native-select-examples.mjs.map +0 -1
  153. package/fesm2022/daffodil-design-navbar-examples.mjs +0 -88
  154. package/fesm2022/daffodil-design-navbar-examples.mjs.map +0 -1
  155. package/fesm2022/daffodil-design-notification-examples.mjs +0 -102
  156. package/fesm2022/daffodil-design-notification-examples.mjs.map +0 -1
  157. package/fesm2022/daffodil-design-paginator-examples.mjs +0 -59
  158. package/fesm2022/daffodil-design-paginator-examples.mjs.map +0 -1
  159. package/fesm2022/daffodil-design-progress-bar-examples.mjs +0 -57
  160. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +0 -1
  161. package/fesm2022/daffodil-design-quantity-field-examples.mjs +0 -85
  162. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +0 -1
  163. package/fesm2022/daffodil-design-radio-examples.mjs +0 -31
  164. package/fesm2022/daffodil-design-radio-examples.mjs.map +0 -1
  165. package/fesm2022/daffodil-design-select-examples.mjs +0 -117
  166. package/fesm2022/daffodil-design-select-examples.mjs.map +0 -1
  167. package/fesm2022/daffodil-design-sidebar-examples.mjs +0 -109
  168. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +0 -1
  169. package/fesm2022/daffodil-design-sticky-examples.mjs +0 -25
  170. package/fesm2022/daffodil-design-sticky-examples.mjs.map +0 -1
  171. package/fesm2022/daffodil-design-switch-examples.mjs +0 -110
  172. package/fesm2022/daffodil-design-switch-examples.mjs.map +0 -1
  173. package/fesm2022/daffodil-design-tabs-examples.mjs +0 -115
  174. package/fesm2022/daffodil-design-tabs-examples.mjs.map +0 -1
  175. package/fesm2022/daffodil-design-text-snippet-examples.mjs +0 -25
  176. package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +0 -1
  177. package/fesm2022/daffodil-design-textarea-examples.mjs +0 -66
  178. package/fesm2022/daffodil-design-textarea-examples.mjs.map +0 -1
  179. package/fesm2022/daffodil-design-toast-examples.mjs +0 -147
  180. package/fesm2022/daffodil-design-toast-examples.mjs.map +0 -1
  181. package/fesm2022/daffodil-design-tree-examples.mjs +0 -104
  182. package/fesm2022/daffodil-design-tree-examples.mjs.map +0 -1
  183. package/form-field/examples/index.d.ts +0 -18
  184. package/hero/examples/index.d.ts +0 -45
  185. package/image/examples/index.d.ts +0 -10
  186. package/input/examples/index.d.ts +0 -10
  187. package/list/examples/index.d.ts +0 -29
  188. package/loading-icon/examples/index.d.ts +0 -16
  189. package/media-gallery/examples/index.d.ts +0 -38
  190. package/menu/examples/index.d.ts +0 -20
  191. package/modal/examples/index.d.ts +0 -15
  192. package/native-select/examples/index.d.ts +0 -10
  193. package/navbar/examples/index.d.ts +0 -31
  194. package/notification/examples/index.d.ts +0 -12
  195. package/paginator/examples/index.d.ts +0 -26
  196. package/progress-bar/examples/index.d.ts +0 -10
  197. package/quantity-field/examples/index.d.ts +0 -30
  198. package/radio/examples/index.d.ts +0 -13
  199. package/select/examples/index.d.ts +0 -28
  200. package/sidebar/examples/index.d.ts +0 -10
  201. package/sticky/examples/index.d.ts +0 -10
  202. package/switch/examples/index.d.ts +0 -46
  203. package/tabs/examples/index.d.ts +0 -12
  204. package/text-snippet/examples/index.d.ts +0 -10
  205. package/textarea/examples/index.d.ts +0 -10
  206. package/toast/examples/index.d.ts +0 -56
  207. package/tree/examples/index.d.ts +0 -18
  208. /package/{form-field → form}/src/error-message/error-message-theme.scss +0 -0
  209. /package/{form-field → form}/src/hint/hint-theme.scss +0 -0
package/index.d.ts CHANGED
@@ -1,345 +1,9 @@
1
- import { UntypedFormControl, UntypedFormArray, ControlValueAccessor, NgControl } from '@angular/forms';
2
1
  import * as i0 from '@angular/core';
3
- import { ElementRef, EventEmitter, ChangeDetectorRef, QueryList, OnInit, OnChanges, SimpleChanges, InjectionToken, Type, OnDestroy, Renderer2 } from '@angular/core';
4
- import * as i4 from '@angular/common';
2
+ import { OnChanges, OnInit, SimpleChanges, InjectionToken, Type, EventEmitter, ChangeDetectorRef, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
5
3
  import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
6
4
  import { Observable } from 'rxjs';
7
5
  import { DaffPersistenceService } from '@daffodil/core';
8
-
9
- declare class DaffErrorStateMatcher {
10
- isErrorState(control: UntypedFormControl, formSubmitted: boolean): boolean;
11
- }
12
-
13
- declare class DaffCheckboxComponent {
14
- private _cdRef;
15
- /**
16
- * @docs-private
17
- */
18
- nativeCheckbox: ElementRef<HTMLInputElement>;
19
- /**
20
- * The name of the checkbox.
21
- */
22
- name: string;
23
- /**
24
- * The value of the checkbox.
25
- */
26
- value: any;
27
- /**
28
- * Boolean value to determine whether or not the checkbox is checked.
29
- */
30
- private _checked;
31
- get checked(): boolean;
32
- set checked(value: boolean);
33
- /**
34
- * The id of the checkbox. Must be unique. If not entered by a user then it is generated.
35
- */
36
- id: string;
37
- /**
38
- * The aria-label of the checkbox.
39
- */
40
- label: string;
41
- /**
42
- * The aria-labeledby of the checkbox.
43
- */
44
- labeledBy: string;
45
- /**
46
- * Event on whether or not the selection has changed.
47
- */
48
- becameChecked: EventEmitter<boolean>;
49
- becameUnchecked: EventEmitter<void>;
50
- /**
51
- * Whether the checkbox is focused
52
- */
53
- focused: boolean;
54
- /**
55
- * Whether the checkbox is disabled.
56
- */
57
- disabled: boolean;
58
- /**
59
- * The role of the component. Set to "checkbox".
60
- *
61
- * @docs-private
62
- */
63
- role: string;
64
- /**
65
- * @docs-private
66
- */
67
- _onChange(val: Event): void;
68
- /**
69
- * @docs-private
70
- */
71
- get focusClass(): boolean;
72
- /**
73
- * @docs-private
74
- */
75
- get disabledClass(): boolean;
76
- /**
77
- * Sets focused to false.
78
- */
79
- onBlur(): void;
80
- /**
81
- * Sets focused to true.
82
- */
83
- onFocus(): void;
84
- constructor(_cdRef: ChangeDetectorRef);
85
- /**
86
- * Sets checked to true.
87
- */
88
- select(): void;
89
- /**
90
- * Sets checked to false
91
- */
92
- deselect(): void;
93
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCheckboxComponent, never>;
94
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffCheckboxComponent, "daff-checkbox", never, { "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "aria-label"; "required": false; }; "labeledBy": { "alias": "aria-labelledby"; "required": false; }; }, { "becameChecked": "becameChecked"; "becameUnchecked": "becameUnchecked"; }, never, ["*"], false, never>;
95
- }
96
-
97
- declare class DaffCheckboxSetComponent {
98
- formArray: UntypedFormArray;
99
- /**
100
- * The name of the checkbox-set
101
- */
102
- name: string;
103
- /**
104
- * The role of the component. Set to "checkbox".
105
- *
106
- * @docs-private
107
- */
108
- role: string;
109
- /**
110
- * The list of checkboxes in the set.
111
- *
112
- * @docs-private
113
- */
114
- checkboxes: QueryList<DaffCheckboxComponent>;
115
- valueList: EventEmitter<any[]>;
116
- getValues(): any[];
117
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCheckboxSetComponent, never>;
118
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffCheckboxSetComponent, "daff-checkbox-set", never, { "formArray": { "alias": "formArray"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "valueList": "valueList"; }, ["checkboxes"], ["*"], false, never>;
119
- }
120
-
121
- /**
122
- * A directive for binding the DaffCheckboxComponent and the Control Value Accessor.
123
- */
124
- declare class DaffCheckboxControlValueAccessorDirective implements OnInit, ControlValueAccessor {
125
- _control: NgControl;
126
- private _checkbox;
127
- _onChange: (val: any) => void;
128
- _onTouched: () => void;
129
- /**
130
- * The value of the ControlValueAccessor
131
- */
132
- value: any;
133
- /**
134
- * The name of the ControlValueAccessor
135
- */
136
- name: string;
137
- constructor(_control: NgControl, _checkbox: DaffCheckboxComponent);
138
- /**
139
- * A lifecycle method called when the directive is initialized.
140
- */
141
- /**
142
- * @docs-private
143
- */
144
- ngOnInit(): void;
145
- /**
146
- * writes a new value down into the component.
147
- */
148
- writeValue(value: any): void;
149
- /**
150
- * Registers the change handler
151
- */
152
- registerOnChange(fn: any): void;
153
- /**
154
- * Registers the touched handler
155
- */
156
- registerOnTouched(fn: any): void;
157
- /**
158
- * Sets the disabled state.
159
- */
160
- setDisabledState?(isDisabled: boolean): void;
161
- /**
162
- * calls the child checkbox's select function
163
- */
164
- fireSelect(): void;
165
- /**
166
- * calls the child checkbox's deselect function
167
- */
168
- fireDeselect(): void;
169
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCheckboxControlValueAccessorDirective, [{ optional: true; self: true; }, null]>;
170
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCheckboxControlValueAccessorDirective, "daff-checkbox[ngModel], daff-checkbox[formControl], daff-checkbox[formControlName]", never, { "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
171
- }
172
-
173
- declare class DaffCheckboxModule {
174
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCheckboxModule, never>;
175
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCheckboxModule, [typeof DaffCheckboxComponent, typeof DaffCheckboxSetComponent, typeof DaffCheckboxControlValueAccessorDirective], [typeof i4.CommonModule], [typeof DaffCheckboxComponent, typeof DaffCheckboxSetComponent, typeof DaffCheckboxControlValueAccessorDirective]>;
176
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffCheckboxModule>;
177
- }
178
-
179
- declare class DaffRadioSetComponent {
180
- name: string;
181
- constructor();
182
- /**
183
- * @docs-private
184
- */
185
- role: string;
186
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioSetComponent, never>;
187
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffRadioSetComponent, "daff-radio-set", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], false, never>;
188
- }
189
-
190
- declare class DaffRadioComponent implements OnInit {
191
- private radioset;
192
- /**
193
- * @docs-private
194
- */
195
- role: string;
196
- /**
197
- * @docs-private
198
- */
199
- get focusClass(): boolean;
200
- /**
201
- * @docs-private
202
- */
203
- get disabledClass(): boolean;
204
- /**
205
- * @docs-private
206
- */
207
- _checked: boolean;
208
- /**
209
- * Output event of selection being changed
210
- */
211
- selectionChange: EventEmitter<boolean>;
212
- /**
213
- * The checked property of the radio
214
- */
215
- get checked(): boolean;
216
- set checked(value: boolean);
217
- /**
218
- * The value of the radio
219
- */
220
- value: any;
221
- /**
222
- * The id of the radio. It is uniquely generated but can be overwritten by the user. Must be unique.
223
- */
224
- id: string;
225
- /**
226
- * Name of the Radio
227
- */
228
- name: string;
229
- /**
230
- * Used for aria-label. Default to name if user does not input a label.
231
- */
232
- label: string;
233
- /**
234
- * Used for aria-labelledby.
235
- */
236
- labelledby: string;
237
- disabled: boolean;
238
- focused: boolean;
239
- constructor(radioset: DaffRadioSetComponent);
240
- /**
241
- * @docs-private
242
- */
243
- ngOnInit(): void;
244
- /**
245
- * updates Focus styling
246
- */
247
- onFocus(): void;
248
- /**
249
- * updates Blur styling
250
- */
251
- onBlur(): void;
252
- /**
253
- * toggles checked attribute on
254
- */
255
- select(): void;
256
- /**
257
- * toggles checked attribute off
258
- */
259
- deselect(): void;
260
- onChange(): void;
261
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioComponent, [{ optional: true; }]>;
262
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffRadioComponent, "daff-radio", never, { "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "aria-label"; "required": false; }; "labelledby": { "alias": "aria-labelledby"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["*"], false, never>;
263
- }
264
-
265
- declare class DaffRadioRegistry {
266
- private _accessors;
267
- /**
268
- * @description
269
- * Adds a control to the internal registry.
270
- */
271
- add(control: NgControl, accessor: DaffRadioControlValueAccessorDirective): void;
272
- /**
273
- * @description
274
- * Removes a control from the internal registry.
275
- */
276
- remove(accessor: DaffRadioControlValueAccessorDirective): void;
277
- /**
278
- * @description
279
- * Selects a radio button.
280
- */
281
- select(accessor: DaffRadioControlValueAccessorDirective): void;
282
- private _isSameGroup;
283
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioRegistry, never>;
284
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffRadioRegistry>;
285
- }
286
-
287
- /**
288
- * ControlValueAccessor functionality for the DaffRadio
289
- */
290
- declare class DaffRadioControlValueAccessorDirective implements OnInit, ControlValueAccessor {
291
- _control: NgControl;
292
- private _registry;
293
- private _radio;
294
- _onChange: () => void;
295
- _onTouched: () => void;
296
- /**
297
- * The value of the ControlValueAccessor
298
- */
299
- value: any;
300
- /**
301
- * The name of the ControlValueAccessor
302
- */
303
- name: string;
304
- constructor(_control: NgControl, _registry: DaffRadioRegistry, _radio: DaffRadioComponent);
305
- /**
306
- * @docs-private
307
- */
308
- ngOnInit(): void;
309
- /**
310
- *
311
- * writeValue function from the CVA interface
312
- */
313
- writeValue(value: any): void;
314
- /**
315
- * registerOnChange implemented from the CVA interface
316
- */
317
- registerOnChange(fn: any): void;
318
- /**
319
- * registerOnTouch implemented from the CVA interface
320
- */
321
- registerOnTouched(fn: any): void;
322
- /**
323
- * sets the disabled state.
324
- */
325
- setDisabledState?(isDisabled: boolean): void;
326
- /**
327
- calls select function for the radio
328
- */
329
- fireSelect(): void;
330
- /**
331
- calls deselect function for the radio
332
- */
333
- fireDeselect(): void;
334
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioControlValueAccessorDirective, [{ optional: true; self: true; }, null, null]>;
335
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffRadioControlValueAccessorDirective, "daff-radio[ngModel], daff-radio[formControl], daff-radio[formControlName]", never, { "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
336
- }
337
-
338
- declare class DaffRadioModule {
339
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioModule, never>;
340
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffRadioModule, [typeof DaffRadioControlValueAccessorDirective, typeof DaffRadioComponent, typeof DaffRadioSetComponent], [typeof i4.CommonModule], [typeof DaffRadioComponent, typeof DaffRadioSetComponent, typeof DaffRadioControlValueAccessorDirective]>;
341
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffRadioModule>;
342
- }
6
+ import { UntypedFormControl } from '@angular/forms';
343
7
 
344
8
  /**
345
9
  * @deprecated in favor of the {@link DaffFormFieldLabelDirective}. Deprecated in version 0.86.0. Will be removed in version 1.0.0.
@@ -372,39 +36,34 @@ interface AnimationStateWithParams<T = unknown, V = Record<string | number, unkn
372
36
  }
373
37
 
374
38
  /**
375
- *
376
- * Prefix can be used to place content before another piece of content in components like
377
- * `daff-form-field`, `daff-solo-field`, and `daff-list`.
39
+ * DaffPrefixDirective can be used to place content before another piece of content
40
+ * in components like `DaffFormFieldComponent` or `DaffListComponent`.
378
41
  */
379
42
  declare class DaffPrefixDirective {
380
- /**
381
- * @docs-private
382
- */
383
- class: boolean;
384
43
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffPrefixDirective, never>;
385
44
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffPrefixDirective, "[daffPrefix]", never, {}, {}, never, never, true, never>;
386
45
  }
387
46
 
388
47
  /**
389
- *
390
- * Prefix can be used to place content after another piece of content in components like
391
- * `daff-form-field`, `daff-solo-field`, and `daff-list`.
48
+ * DaffSuffixDirective can be used to place content after another piece of content
49
+ * in components like `DaffFormFieldComponent` or `DaffListComponent`.
392
50
  */
393
51
  declare class DaffSuffixDirective {
394
- /**
395
- * @docs-private
396
- */
397
- class: boolean;
398
52
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffSuffixDirective, never>;
399
53
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffSuffixDirective, "[daffSuffix]", never, {}, {}, never, never, true, never>;
400
54
  }
401
55
 
56
+ /**
57
+ * @deprecated in favor of standalone components. Deprecated in version 0.91.0. Will be removed in version 1.0.0.
58
+ */
402
59
  declare class DaffPrefixSuffixModule {
403
60
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffPrefixSuffixModule, never>;
404
61
  static ɵmod: i0.ɵɵNgModuleDeclaration<DaffPrefixSuffixModule, never, [typeof DaffPrefixDirective, typeof DaffSuffixDirective], [typeof DaffPrefixDirective, typeof DaffSuffixDirective]>;
405
62
  static ɵinj: i0.ɵɵInjectorDeclaration<DaffPrefixSuffixModule>;
406
63
  }
407
64
 
65
+ declare const DAFF_PREFIX_SUFFIX_DIRECTIVES: readonly [typeof DaffPrefixDirective, typeof DaffSuffixDirective];
66
+
408
67
  interface DaffColorable {
409
68
  color: DaffPalette;
410
69
  }
@@ -477,29 +136,19 @@ type DaffPalette = 'primary' | 'secondary' | 'tertiary' | 'light' | 'dark' | 'th
477
136
  * ```
478
137
  */
479
138
  declare class DaffColorableDirective implements DaffColorable, OnChanges, OnInit {
480
- /**
481
- * Dynamically sets the CSS classes based on the color.
482
- * @docs-private
483
- */
484
- get class(): {
485
- 'daff-primary': boolean;
486
- 'daff-secondary': boolean;
487
- 'daff-tertiary': boolean;
488
- 'daff-light': boolean;
489
- 'daff-dark': boolean;
490
- 'daff-theme': boolean;
491
- 'daff-theme-contrast': boolean;
492
- 'daff-black': boolean;
493
- 'daff-white': boolean;
494
- };
495
139
  /**
496
140
  * Sets the color on a component.
497
- *
498
- * Default options are: `primary`, `secondary`, `tertiary`, `light`, `dark`, `theme`, and `theme-contrast`.
499
141
  */
500
142
  color: DaffPalette;
501
143
  /**
502
144
  * Sets a default color.
145
+ *
146
+ * @example
147
+ * ```ts
148
+ * constructor(private colorableDirective: DaffColorableDirective) {
149
+ * this.colorableDirective.defaultColor = 'theme';
150
+ * }
151
+ * ```
503
152
  */
504
153
  defaultColor: DaffPalette;
505
154
  /**
@@ -558,7 +207,7 @@ interface DaffStatusable {
558
207
  }
559
208
  /**
560
209
  * The `DaffStatus` type defines the possible status values that a component can have.
561
- * - 'info': Indicatea an informational status.
210
+ * - 'info': Indicates an informational status.
562
211
  * - 'warn': Indicates a warning status.
563
212
  * - 'critical': Indicates a critical or error status.
564
213
  * - 'success': Indicates a success status.
@@ -589,7 +238,6 @@ declare enum DaffStatusEnum {
589
238
  *
590
239
  * ```ts
591
240
  * @Component({
592
- * standalone: true,
593
241
  * selector: 'custom-component',
594
242
  * template: 'custom-component.html',
595
243
  * hostDirectives: [
@@ -618,20 +266,8 @@ declare enum DaffStatusEnum {
618
266
  * - `daff-success`: Applied when the status is `success`.
619
267
  */
620
268
  declare class DaffStatusableDirective implements DaffStatusable, OnChanges, OnInit {
621
- /**
622
- * Dynamically sets the CSS classes based on the status.
623
- * @docs-private
624
- */
625
- get class(): {
626
- 'daff-info': boolean;
627
- 'daff-warn': boolean;
628
- 'daff-critical': boolean;
629
- 'daff-success': boolean;
630
- };
631
269
  /**
632
270
  * Sets the status on a component.
633
- *
634
- * Options are: `info`, `warn`, `critical`, and `success`.
635
271
  */
636
272
  status: DaffStatus;
637
273
  /**
@@ -675,7 +311,6 @@ declare class DaffStatusableDirective implements DaffStatusable, OnChanges, OnIn
675
311
  *
676
312
  * ```ts
677
313
  * @Component({
678
- * standalone: true,
679
314
  * selector: 'custom-component',
680
315
  * template: 'custom-component.html',
681
316
  * hostDirectives: [
@@ -757,7 +392,6 @@ declare enum DaffTextAlignmentEnum {
757
392
  *
758
393
  * ```ts
759
394
  * @Component({
760
- * standalone: true,
761
395
  * selector: 'custom-component',
762
396
  * template: 'custom-component.html',
763
397
  * hostDirectives: [
@@ -779,22 +413,19 @@ declare enum DaffTextAlignmentEnum {
779
413
  * ```
780
414
  */
781
415
  declare class DaffTextAlignableDirective implements DaffTextAlignable, OnChanges, OnInit {
782
- /**
783
- * @docs-private
784
- */
785
- get class(): {
786
- 'daff-left': boolean;
787
- 'daff-center': boolean;
788
- 'daff-right': boolean;
789
- };
790
416
  /**
791
417
  * The text alignment of the component.
792
- *
793
- * Options are: `left`, `center`, and `right`.
794
418
  */
795
419
  textAlignment: DaffTextAlignment;
796
420
  /**
797
- * Sets a default alignment when no text alignment is provided.
421
+ * Sets a default alignment.
422
+ *
423
+ * @example
424
+ * ```ts
425
+ * constructor(private textAligmentDirective: DaffTextAlignableDirective) {
426
+ * this.textAligmentDirective.defaultAlignent = 'left';
427
+ * }
428
+ * ```
798
429
  */
799
430
  defaultAlignment: DaffTextAlignment;
800
431
  /**
@@ -835,7 +466,6 @@ interface DaffCompactable {
835
466
  *
836
467
  * ```ts
837
468
  * @Component({
838
- * standalone: true,
839
469
  * selector: 'custom-component',
840
470
  * template: 'custom-component.html',
841
471
  * hostDirectives: [
@@ -912,7 +542,6 @@ declare class DaffCompactableDirective {
912
542
  *
913
543
  * ```ts
914
544
  * @Component({
915
- * standalone: true,
916
545
  * selector: 'my-custom-component',
917
546
  * template: 'my-custom-component.html',
918
547
  * hostDirectives: [{ directive: DaffManageContainerLayoutDirective }],
@@ -929,10 +558,6 @@ declare class DaffCompactableDirective {
929
558
  * This directive will apply the `daff-manage-container-layout` class to your component, ensuring that the styles set on `:host` are passed down to the container.
930
559
  */
931
560
  declare class DaffManageContainerLayoutDirective {
932
- /**
933
- * @docs-private
934
- */
935
- class: boolean;
936
561
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffManageContainerLayoutDirective, never>;
937
562
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffManageContainerLayoutDirective, "[daffManageContainerLayout]", never, {}, {}, never, never, true, never>;
938
563
  }
@@ -951,7 +576,6 @@ declare class DaffManageContainerLayoutDirective {
951
576
  *
952
577
  * ```ts
953
578
  * @Component({
954
- * standalone: true,
955
579
  * selector: 'custom-component',
956
580
  * template: 'custom-component.html',
957
581
  * hostDirectives: [{ directive: DaffArticleEncapsulatedDirective }],
@@ -962,10 +586,6 @@ declare class DaffManageContainerLayoutDirective {
962
586
  * This directive will apply the `daff-ae` class to the component, ensuring that it is encapsulated from the article's styles.
963
587
  */
964
588
  declare class DaffArticleEncapsulatedDirective {
965
- /**
966
- * @docs-private
967
- */
968
- class: boolean;
969
589
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffArticleEncapsulatedDirective, never>;
970
590
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffArticleEncapsulatedDirective, "[daffArticleEncapsulated]", never, {}, {}, never, never, true, never>;
971
591
  }
@@ -1173,25 +793,19 @@ declare enum DaffSizableEnum {
1173
793
  * - `daff-xl`: Applied when the size is `xl`.
1174
794
  */
1175
795
  declare class DaffSizableDirective<T extends DaffSizeAllType> implements DaffSizable<T>, OnChanges, OnInit {
1176
- /**
1177
- * Dynamically sets the CSS classes based on the size.
1178
- * @docs-private
1179
- */
1180
- get class(): {
1181
- 'daff-xs': boolean;
1182
- 'daff-sm': boolean;
1183
- 'daff-md': boolean;
1184
- 'daff-lg': boolean;
1185
- 'daff-xl': boolean;
1186
- };
1187
796
  /**
1188
797
  * The size of the component.
1189
- *
1190
- * Options are: `xs`, `sm`, `md`, `lg`, and `xl`.
1191
798
  */
1192
799
  size: T;
1193
800
  /**
1194
- * Sets a default size when no size is provided.
801
+ * Sets a default size.
802
+ *
803
+ * @example
804
+ * ```ts
805
+ * constructor(private sizableDirective: DaffSizableDirective) {
806
+ * this.sizableDirective.defaultSize = 'md';
807
+ * }
808
+ * ```
1195
809
  */
1196
810
  defaultSize: T;
1197
811
  /**
@@ -1303,6 +917,90 @@ declare class DaffOpenableDirective implements DaffOpenable, OnChanges {
1303
917
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffOpenableDirective, "[daffOpenable]", never, { "open": { "alias": "open"; "required": false; }; }, { "toggled": "toggled"; }, never, never, true, never>;
1304
918
  }
1305
919
 
920
+ /**
921
+ * Interface for giving a component the ability to customize text alignment for component-specific UI.
922
+ */
923
+ interface DaffOrientable {
924
+ orientation: DaffOrientation;
925
+ }
926
+ /**
927
+ * The possible types that can be passed to a DaffOrientable component
928
+ */
929
+ type DaffOrientation = 'horizontal' | 'vertical';
930
+ declare enum DaffOrientationEnum {
931
+ Horizontal = "horizontal",
932
+ Vertical = "vertical"
933
+ }
934
+
935
+ /**
936
+ * `DaffOrientableDirective` allows for dynamic orientation of a component by
937
+ * setting CSS classes based on the specified orientation. This directive is
938
+ * useful when orientation needs to be managed dynamically in an Angular component.
939
+ *
940
+ * @example Implementing it as an attribute directive
941
+ *
942
+ * ```html
943
+ * <div daffOrientable [orientation]="horizontal"></div>
944
+ * ```
945
+ *
946
+ * In this example, the `daff-horizontal` class is added to the `div` element, allowing
947
+ * you to style the `div` as you wish using the class.
948
+ *
949
+ * @example Implementing it as an Angular host directive
950
+ *
951
+ * ```ts
952
+ * @Component({
953
+ * selector: 'custom-component',
954
+ * template: 'custom-component.html',
955
+ * hostDirectives: [
956
+ * {
957
+ * directive: DaffOrientableDirective,
958
+ * inputs: ['orientation'],
959
+ * },
960
+ * ],
961
+ * })
962
+ * export class CustomComponent { }
963
+ * ```
964
+ *
965
+ * ```scss
966
+ * .custom-component {
967
+ * &.daff-vertical {
968
+ * display: flex;
969
+ * flex-direction: column;
970
+ * }
971
+ * }
972
+ * ```
973
+ */
974
+ declare class DaffOrientableDirective implements DaffOrientable, OnChanges, OnInit {
975
+ /**
976
+ * The orientation of the component.
977
+ *
978
+ * Options are: `horizontal` and `vertical`.
979
+ */
980
+ orientation: DaffOrientation;
981
+ /**
982
+ * Sets a default orientation.
983
+ *
984
+ * @example
985
+ * ```ts
986
+ * constructor(private orientableDirective: DaffOrientableDirective) {
987
+ * this.orientableDirective.defaultOrientation = 'horizontal';
988
+ * }
989
+ * ```
990
+ */
991
+ defaultOrientation: DaffOrientation;
992
+ /**
993
+ * @docs-private
994
+ */
995
+ ngOnInit(): void;
996
+ /**
997
+ * @docs-private
998
+ */
999
+ ngOnChanges(changes: SimpleChanges): void;
1000
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrientableDirective, never>;
1001
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffOrientableDirective, "[daffOrientable]", never, { "orientation": { "alias": "orientation"; "required": false; }; }, {}, never, never, true, never>;
1002
+ }
1003
+
1306
1004
  /**
1307
1005
  * An interface for giving a component the ability to display a selected UI.
1308
1006
  * In order to be selectable, the class must implement this property.
@@ -1318,11 +1016,17 @@ declare class DaffSelectableDirective implements DaffSelectable {
1318
1016
  */
1319
1017
  selected: boolean;
1320
1018
  /**
1321
- * An event that fires after the media element becomes selected.
1019
+ * An event that fires after the component becomes selected.
1322
1020
  */
1323
1021
  becameSelected: EventEmitter<void>;
1324
1022
  constructor(cd: ChangeDetectorRef);
1023
+ /**
1024
+ * Selects the component and emits the `becameSelected` event.
1025
+ */
1325
1026
  select(): this;
1027
+ /**
1028
+ * Deselects the component.
1029
+ */
1326
1030
  deselect(): this;
1327
1031
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffSelectableDirective, never>;
1328
1032
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffSelectableDirective, "[daffSelected]", never, { "selected": { "alias": "selected"; "required": false; }; }, { "becameSelected": "becameSelected"; }, never, never, true, never>;
@@ -1350,5 +1054,57 @@ declare class DaffStickyTrackerDirective implements OnDestroy {
1350
1054
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffStickyTrackerDirective, "[daffStickyTracker]", never, { "sticky": { "alias": "sticky"; "required": false; }; }, {}, never, never, true, never>;
1351
1055
  }
1352
1056
 
1353
- export { DAFF_THEME_INITIALIZER, DaffArticleEncapsulatedDirective, DaffBreakpoints, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffColorableDirective, DaffCompactableDirective, DaffErrorStateMatcher, DaffFocusStackService, DaffFormLabelDirective, DaffFormLabelModule, DaffManageContainerLayoutDirective, DaffOpenableDirective, DaffPrefixDirective, DaffPrefixSuffixModule, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSelectableDirective, DaffSizableDirective, DaffSizableEnum, DaffSkeletonableDirective, DaffStatusEnum, DaffStatusableDirective, DaffStickyTrackerDirective, DaffSuffixDirective, DaffTextAlignableDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, NoopBreakpointObserver, SERVER_SAFE_BREAKPOINT_OBSERVER, daffFocusableElementsSelector };
1354
- export type { AnimationStateWithParams, Constructor, DaffColorable, DaffCompactable, DaffLazyComponent, DaffMutable, DaffOpenable, DaffPalette, DaffSelectable, DaffSizable, DaffSizeAllType, DaffSizeLargeType, DaffSizeMediumType, DaffSizeSmallType, DaffSizeXLargeType, DaffSizeXSmallType, DaffStatus, DaffStatusable, DaffTextAlignable, DaffTextAlignment };
1057
+ /**
1058
+ * `DaffDisableableDirective` allows a component to display a disabled UI
1059
+ * by conditionally applying a CSS class. This is useful for indicating to
1060
+ * users that content is loading or being processed. This directive can be used to
1061
+ * apply a disabled UI to any component by toggling the `disabled`
1062
+ * input property. When `disabled` is `true`, the `daff-disabled` CSS class
1063
+ * is applied, which should style the component to look like it's not interactable.
1064
+ *
1065
+ * @example Implementing it as an attribute directive
1066
+ *
1067
+ * ```html
1068
+ * <div daffDisableable [disabled]="isDisabled">Content</div>
1069
+ * ```
1070
+ *
1071
+ * @example Implementing it as an Angular host directive
1072
+ *
1073
+ * ```ts
1074
+ * @Component({
1075
+ * selector: 'custom-component',
1076
+ * template: 'custom-component.html',
1077
+ * hostDirectives: [
1078
+ * {
1079
+ * directive: DaffDisableableDirective,
1080
+ * inputs: ['disabled'],
1081
+ * },
1082
+ * ],
1083
+ * })
1084
+ * export class CustomComponent { }
1085
+ * ```
1086
+ *
1087
+ * ```scss
1088
+ * :host {
1089
+ * .daff-disabled {
1090
+ * cursor: not-allowed;
1091
+ * opacity: 0.5;
1092
+ * }
1093
+ * }
1094
+ * ```
1095
+ *
1096
+ * The directive applies the `daff-disabled` class to the component. The class should be
1097
+ * defined in your styles to display the loading state as desired.
1098
+ */
1099
+ declare class DaffDisableableDirective {
1100
+ disabled: boolean;
1101
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffDisableableDirective, never>;
1102
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffDisableableDirective, "[daffDisableable]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
1103
+ }
1104
+
1105
+ declare class DaffErrorStateMatcher {
1106
+ isErrorState(control: UntypedFormControl, formSubmitted: boolean): boolean;
1107
+ }
1108
+
1109
+ export { DAFF_PREFIX_SUFFIX_DIRECTIVES, DAFF_THEME_INITIALIZER, DaffArticleEncapsulatedDirective, DaffBreakpoints, DaffColorableDirective, DaffCompactableDirective, DaffDisableableDirective, DaffErrorStateMatcher, DaffFocusStackService, DaffFormLabelDirective, DaffFormLabelModule, DaffManageContainerLayoutDirective, DaffOpenableDirective, DaffOrientableDirective, DaffOrientationEnum, DaffPrefixDirective, DaffPrefixSuffixModule, DaffSelectableDirective, DaffSizableDirective, DaffSizableEnum, DaffSkeletonableDirective, DaffStatusEnum, DaffStatusableDirective, DaffStickyTrackerDirective, DaffSuffixDirective, DaffTextAlignableDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, NoopBreakpointObserver, SERVER_SAFE_BREAKPOINT_OBSERVER, daffFocusableElementsSelector };
1110
+ export type { AnimationStateWithParams, Constructor, DaffColorable, DaffCompactable, DaffLazyComponent, DaffMutable, DaffOpenable, DaffOrientable, DaffOrientation, DaffPalette, DaffSelectable, DaffSizable, DaffSizeAllType, DaffSizeLargeType, DaffSizeMediumType, DaffSizeSmallType, DaffSizeXLargeType, DaffSizeXSmallType, DaffStatus, DaffStatusable, DaffTextAlignable, DaffTextAlignment };