@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.
- package/README.md +1 -2
- package/accordion/src/accordion-theme.scss +4 -4
- package/article/README.md +4 -27
- package/article/src/article-theme.scss +14 -14
- package/badge/src/badge-theme.scss +0 -6
- package/button/README.md +0 -4
- package/button/src/button/basic/button-theme.scss +17 -42
- package/button/src/button/button-base.scss +12 -3
- package/button/src/button/flat/flat-theme.scss +14 -12
- package/button/src/button/icon/icon-theme.scss +19 -40
- package/button/src/button/stroked/stroked-theme.scss +22 -36
- package/card/src/card/stroked/stroked-theme.scss +1 -1
- package/card/src/card-base.scss +0 -1
- package/fesm2022/daffodil-design-accordion.mjs +285 -188
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +578 -340
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-badge.mjs +166 -84
- package/fesm2022/daffodil-design-badge.mjs.map +1 -1
- package/fesm2022/daffodil-design-beacon.mjs +109 -47
- package/fesm2022/daffodil-design-beacon.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +384 -277
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +541 -408
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +349 -224
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +496 -327
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +373 -313
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +103 -60
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field.mjs +441 -352
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +155 -57
- package/fesm2022/daffodil-design-form.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +349 -234
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-lite.mjs +60 -0
- package/fesm2022/daffodil-design-image-lite.mjs.map +1 -0
- package/fesm2022/daffodil-design-image.mjs +245 -107
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +217 -164
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +308 -170
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +351 -278
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +525 -417
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +680 -450
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-native-select.mjs +175 -166
- package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +145 -68
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +376 -226
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +296 -192
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +243 -157
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +382 -300
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +424 -364
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +874 -887
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +156 -99
- package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +176 -106
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +685 -427
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-tag.mjs +251 -133
- package/fesm2022/daffodil-design-tag.mjs.map +1 -1
- package/fesm2022/daffodil-design-testing.mjs +4 -16
- package/fesm2022/daffodil-design-testing.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +140 -54
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +170 -150
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +658 -481
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +456 -469
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +168 -115
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +1628 -1650
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form-field/README.md +0 -4
- package/form-field/src/form-field-theme.scss +12 -4
- package/image/README.md +4 -0
- package/image-lite/README.md +58 -0
- package/image-lite/src/image-theme.scss +18 -0
- package/list/src/list-base.scss +3 -4
- package/list/src/list-theme.scss +6 -5
- package/media-gallery/README.md +1 -1
- package/media-gallery/src/media-gallery-theme.scss +3 -3
- package/menu/src/menu-theme.scss +6 -2
- package/notification/src/notification-theme.scss +10 -10
- package/package.json +1 -1
- package/scss/global.scss +17 -11
- package/scss/theme.scss +2 -18
- package/scss/theming/_get-palette.scss +0 -3
- package/scss/theming/_index.scss +0 -1
- package/scss/theming/_light-dark.scss +2 -2
- package/scss/theming/_theme-css-variables.scss +1 -1
- package/scss/theming/create-theme/_create-theme.scss +2 -2
- package/scss/theming/get-font-colors/_get-font-colors.scss +7 -25
- package/scss/theming/get-font-colors/_get-font-colors.spec.scss +0 -12
- package/scss/typography/_classes.scss +0 -6
- package/scss/typography/_index.scss +0 -1
- package/scss/typography/mixins/_sizes.scss +0 -1
- package/scss/typography/utilities/_variables.scss +3 -0
- package/select/src/select-theme.scss +10 -14
- package/switch/src/switch-theme.scss +2 -2
- package/tabs/src/tabs-theme.scss +4 -4
- package/types/daffodil-design-accordion.d.ts +92 -67
- package/types/daffodil-design-article.d.ts +49 -56
- package/types/daffodil-design-badge.d.ts +56 -33
- package/types/daffodil-design-beacon.d.ts +35 -14
- package/types/daffodil-design-breadcrumb.d.ts +89 -85
- package/types/daffodil-design-button.d.ts +128 -146
- package/types/daffodil-design-callout.d.ts +55 -39
- package/types/daffodil-design-card.d.ts +66 -56
- package/types/daffodil-design-checkbox.d.ts +211 -167
- package/types/daffodil-design-container.d.ts +17 -16
- package/types/daffodil-design-form-field.d.ts +273 -240
- package/types/daffodil-design-form.d.ts +21 -21
- package/types/daffodil-design-hero.d.ts +55 -39
- package/types/daffodil-design-image-lite.d.ts +17 -0
- package/types/daffodil-design-image.d.ts +89 -55
- package/types/daffodil-design-input.d.ts +86 -72
- package/types/daffodil-design-list.d.ts +49 -43
- package/types/daffodil-design-media-gallery.d.ts +176 -148
- package/types/daffodil-design-menu.d.ts +177 -169
- package/types/daffodil-design-modal.d.ts +205 -205
- package/types/daffodil-design-native-select.d.ts +94 -84
- package/types/daffodil-design-navbar.d.ts +34 -24
- package/types/daffodil-design-notification.d.ts +82 -67
- package/types/daffodil-design-paginator.d.ts +140 -118
- package/types/daffodil-design-progress-bar.d.ts +92 -74
- package/types/daffodil-design-radio.d.ts +183 -144
- package/types/daffodil-design-select.d.ts +207 -178
- package/types/daffodil-design-sidebar.d.ts +270 -253
- package/types/daffodil-design-spinner.d.ts +49 -36
- package/types/daffodil-design-switch.d.ts +77 -46
- package/types/daffodil-design-tabs.d.ts +248 -198
- package/types/daffodil-design-tag.d.ts +91 -56
- package/types/daffodil-design-testing.d.ts +1 -3
- package/types/daffodil-design-text-snippet.d.ts +48 -37
- package/types/daffodil-design-textarea.d.ts +88 -79
- package/types/daffodil-design-toast.d.ts +175 -183
- package/types/daffodil-design-tree.d.ts +186 -169
- package/types/daffodil-design-youtube-player.d.ts +56 -52
- package/types/daffodil-design.d.ts +614 -695
- package/button/src/button/raised/raised-theme.scss +0 -92
- package/button/src/button/underline/underline-theme.scss +0 -141
- package/fesm2022/daffodil-design-link-set.mjs +0 -160
- package/fesm2022/daffodil-design-link-set.mjs.map +0 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +0 -364
- package/fesm2022/daffodil-design-quantity-field.mjs.map +0 -1
- package/link-set/README.md +0 -86
- package/quantity-field/README.md +0 -63
- package/scss/theming/_configure-theme.scss +0 -120
- package/scss/typography/mixins/_font-weight.scss +0 -14
- package/types/daffodil-design-link-set.d.ts +0 -72
- package/types/daffodil-design-quantity-field.d.ts +0 -171
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { DaffPrefixDirective, DaffSuffixDirective
|
|
5
|
-
import * as i2 from
|
|
6
|
-
import { DaffFormFieldLabelDirective, DaffHintComponent
|
|
7
|
-
import { NgControl } from
|
|
8
|
-
import { BehaviorSubject, Observable } from
|
|
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
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
105
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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];
|