@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,357 +1,446 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { BehaviorSubject } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
i0.ɵɵ
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
this._stateChanges.next(this.state);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
;
|
|
87
|
-
|
|
88
|
-
let daffFormFieldId = 0;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, NgModule, ViewEncapsulation, computed, contentChild, input, isDevMode, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { DaffErrorMessageComponent, DaffFormFieldLabelDirective, DaffHintComponent } from "@daffodil/design/form";
|
|
4
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
5
|
+
import * as i1 from "@daffodil/design";
|
|
6
|
+
import { DaffPrefixDirective, DaffSkeletonableDirective, DaffSuffixDirective } from "@daffodil/design";
|
|
7
|
+
import { BehaviorSubject } from "rxjs";
|
|
8
|
+
var DaffFormFieldActionDirective = class DaffFormFieldActionDirective {
|
|
9
|
+
static {
|
|
10
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
|
+
minVersion: "12.0.0",
|
|
12
|
+
version: "22.2.4",
|
|
13
|
+
ngImport: i0,
|
|
14
|
+
type: DaffFormFieldActionDirective,
|
|
15
|
+
deps: [],
|
|
16
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
21
|
+
minVersion: "14.0.0",
|
|
22
|
+
version: "22.2.4",
|
|
23
|
+
type: DaffFormFieldActionDirective,
|
|
24
|
+
isStandalone: true,
|
|
25
|
+
selector: "[daffFormFieldAction]",
|
|
26
|
+
host: { classAttribute: "daff-form-field-action" },
|
|
27
|
+
ngImport: i0
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
32
|
+
minVersion: "12.0.0",
|
|
33
|
+
version: "22.2.4",
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
type: DaffFormFieldActionDirective,
|
|
36
|
+
decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: "[daffFormFieldAction]",
|
|
40
|
+
host: { class: "daff-form-field-action" }
|
|
41
|
+
}]
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
44
|
+
var DaffFormFieldControl = class {
|
|
45
|
+
get raised() {
|
|
46
|
+
return this.focused;
|
|
47
|
+
}
|
|
48
|
+
get opened() {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
constructor(ngControl) {
|
|
52
|
+
this.ngControl = ngControl;
|
|
53
|
+
this.supportsAutoLabelling = true;
|
|
54
|
+
this._stateChanges = new BehaviorSubject({
|
|
55
|
+
focused: false,
|
|
56
|
+
filled: false,
|
|
57
|
+
disabled: false,
|
|
58
|
+
error: false,
|
|
59
|
+
valid: true
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
get state() {
|
|
63
|
+
return {
|
|
64
|
+
focused: this.focused,
|
|
65
|
+
filled: !!this.value,
|
|
66
|
+
disabled: this.ngControl?.disabled ?? this.disabled,
|
|
67
|
+
error: this.ngControl?.invalid && (this.ngControl?.dirty || this.ngControl?.touched),
|
|
68
|
+
valid: this.ngControl?.valid && this.ngControl?.dirty
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
emitState(deferred = false) {
|
|
72
|
+
if (deferred) {
|
|
73
|
+
Promise.resolve().then(() => {
|
|
74
|
+
this._stateChanges.next(this.state);
|
|
75
|
+
});
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
this._stateChanges.next(this.state);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
89
81
|
var DaffFormFieldAppearanceEnum;
|
|
90
|
-
(function
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
(function(DaffFormFieldAppearanceEnum) {
|
|
83
|
+
DaffFormFieldAppearanceEnum["Fluid"] = "fluid";
|
|
84
|
+
DaffFormFieldAppearanceEnum["Fixed"] = "fixed";
|
|
93
85
|
})(DaffFormFieldAppearanceEnum || (DaffFormFieldAppearanceEnum = {}));
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
86
|
+
var DaffFormFieldControlTypesEnum;
|
|
87
|
+
(function(DaffFormFieldControlTypesEnum) {
|
|
88
|
+
DaffFormFieldControlTypesEnum["Input"] = "input";
|
|
89
|
+
DaffFormFieldControlTypesEnum["Dropdown"] = "dropdown";
|
|
90
|
+
})(DaffFormFieldControlTypesEnum || (DaffFormFieldControlTypesEnum = {}));
|
|
91
|
+
let daffFormFieldId = 0;
|
|
92
|
+
const DaffFormFieldMissingControlMessage = "A DaffFormFieldComponent must contain a DaffFormFieldControl";
|
|
93
|
+
var DaffFormFieldComponent = class DaffFormFieldComponent {
|
|
94
|
+
constructor(cd, elementRef) {
|
|
95
|
+
this.cd = cd;
|
|
96
|
+
this.elementRef = elementRef;
|
|
97
|
+
this.isDropdown = computed(() => this._control()?.controlType === DaffFormFieldControlTypesEnum.Dropdown, ...ngDevMode ? [{ debugName: "isDropdown" }] : /* istanbul ignore next */ []);
|
|
98
|
+
this._wrapper = viewChild("wrapper", ...ngDevMode ? [{ debugName: "_wrapper" }] : /* istanbul ignore next */ []);
|
|
99
|
+
this._prefix = contentChild(DaffPrefixDirective, ...ngDevMode ? [{ debugName: "_prefix" }] : /* istanbul ignore next */ []);
|
|
100
|
+
this._suffix = contentChild(DaffSuffixDirective, ...ngDevMode ? [{ debugName: "_suffix" }] : /* istanbul ignore next */ []);
|
|
101
|
+
this._control = contentChild(DaffFormFieldControl, ...ngDevMode ? [{ debugName: "_control" }] : /* istanbul ignore next */ []);
|
|
102
|
+
this._formFieldLabelDirective = contentChild(DaffFormFieldLabelDirective, ...ngDevMode ? [{ debugName: "_formFieldLabelDirective" }] : /* istanbul ignore next */ []);
|
|
103
|
+
this._action = contentChild(DaffFormFieldActionDirective, ...ngDevMode ? [{ debugName: "_action" }] : /* istanbul ignore next */ []);
|
|
104
|
+
this._hint = contentChild(DaffHintComponent, ...ngDevMode ? [{ debugName: "_hint" }] : /* istanbul ignore next */ []);
|
|
105
|
+
this._error = contentChild(DaffErrorMessageComponent, ...ngDevMode ? [{ debugName: "_error" }] : /* istanbul ignore next */ []);
|
|
106
|
+
this.isError = signal(false, ...ngDevMode ? [{ debugName: "isError" }] : /* istanbul ignore next */ []);
|
|
107
|
+
this.isFilled = signal(false, ...ngDevMode ? [{ debugName: "isFilled" }] : /* istanbul ignore next */ []);
|
|
108
|
+
this.isDisabled = signal(false, ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
109
|
+
this.isValid = signal(false, ...ngDevMode ? [{ debugName: "isValid" }] : /* istanbul ignore next */ []);
|
|
110
|
+
this.appearance = input(DaffFormFieldAppearanceEnum.Fluid, {
|
|
111
|
+
...ngDevMode ? { debugName: "appearance" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: (value) => value || DaffFormFieldAppearanceEnum.Fluid
|
|
113
|
+
});
|
|
114
|
+
this.isFixed = computed(() => this.appearance() === DaffFormFieldAppearanceEnum.Fixed, ...ngDevMode ? [{ debugName: "isFixed" }] : /* istanbul ignore next */ []);
|
|
115
|
+
this.id = input("daff-form-field-" + ++daffFormFieldId, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
116
|
+
this.hasHint = computed(() => !!this._hint(), ...ngDevMode ? [{ debugName: "hasHint" }] : /* istanbul ignore next */ []);
|
|
117
|
+
this.hintId = computed(() => this.id() + "-hint", ...ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []);
|
|
118
|
+
this.hasErrorMessage = computed(() => !!this._error(), ...ngDevMode ? [{ debugName: "hasErrorMessage" }] : /* istanbul ignore next */ []);
|
|
119
|
+
this.errorMessageId = computed(() => this.id() + "-error", ...ngDevMode ? [{ debugName: "errorMessageId" }] : /* istanbul ignore next */ []);
|
|
120
|
+
this.autoLabelId = computed(() => this._control()?.supportsAutoLabelling ? this.id() : null, ...ngDevMode ? [{ debugName: "autoLabelId" }] : /* istanbul ignore next */ []);
|
|
121
|
+
this.customId = computed(() => this._control()?.supportsAutoLabelling ? null : this.id(), ...ngDevMode ? [{ debugName: "customId" }] : /* istanbul ignore next */ []);
|
|
122
|
+
}
|
|
123
|
+
get isFocused() {
|
|
124
|
+
return this._control()?.focused;
|
|
125
|
+
}
|
|
126
|
+
get isRaised() {
|
|
127
|
+
return this._control()?.raised || this.isFilled();
|
|
128
|
+
}
|
|
129
|
+
get isOpen() {
|
|
130
|
+
return this._control()?.opened;
|
|
131
|
+
}
|
|
132
|
+
ngAfterViewInit() {
|
|
133
|
+
if (isDevMode()) {
|
|
134
|
+
if (!this._formFieldLabelDirective() && this._control()?.supportsAutoLabelling && !this._control()?.id) console.warn(`Accessibility Warning: The form field with id "${this.id()}" uses a control that supports auto-labelling, but no <daff-form-label> component was found.\n\n1. Add a <daff-form-label> component (recommended)\n2. OR manually set an 'id' on your input and matching 'for' attribute on your <label>.\n\nWhy this matters: Proper labelling ensures assistive technologies can identify form fields correctly.`);
|
|
135
|
+
if (this._suffix() && this._action() && !this.isFixed()) console.warn(`UI consideration for form field with id "${this.id()}":\n\nIn a fluid appearance, avoid using suffix alongside an action.`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
_validateFormControl() {
|
|
139
|
+
if (!this._control()) throw new Error(DaffFormFieldMissingControlMessage);
|
|
140
|
+
}
|
|
141
|
+
ngAfterContentInit() {
|
|
142
|
+
this._validateFormControl();
|
|
143
|
+
this._control()?.stateChanges?.subscribe(({ filled, disabled, error, valid }) => {
|
|
144
|
+
this.isFilled.set(filled);
|
|
145
|
+
this.isError.set(error);
|
|
146
|
+
this.isDisabled.set(disabled);
|
|
147
|
+
this.isValid.set(valid);
|
|
148
|
+
this.cd.markForCheck();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
ngAfterContentChecked() {
|
|
152
|
+
this._validateFormControl();
|
|
153
|
+
}
|
|
154
|
+
static {
|
|
155
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
156
|
+
minVersion: "12.0.0",
|
|
157
|
+
version: "22.2.4",
|
|
158
|
+
ngImport: i0,
|
|
159
|
+
type: DaffFormFieldComponent,
|
|
160
|
+
deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }],
|
|
161
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
static {
|
|
165
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
166
|
+
minVersion: "17.0.0",
|
|
167
|
+
version: "22.2.4",
|
|
168
|
+
type: DaffFormFieldComponent,
|
|
169
|
+
isStandalone: true,
|
|
170
|
+
selector: "daff-form-field",
|
|
171
|
+
inputs: {
|
|
172
|
+
appearance: {
|
|
173
|
+
classPropertyName: "appearance",
|
|
174
|
+
publicName: "appearance",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
id: {
|
|
180
|
+
classPropertyName: "id",
|
|
181
|
+
publicName: "id",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
host: {
|
|
188
|
+
properties: {
|
|
189
|
+
"class.is-dropdown": "isDropdown()",
|
|
190
|
+
"class.has-prefix": "_prefix()",
|
|
191
|
+
"class.has-suffix": "_suffix()",
|
|
192
|
+
"class.has-action": "_action()",
|
|
193
|
+
"class.daff-error": "isError()",
|
|
194
|
+
"class.daff-disabled": "isDisabled()",
|
|
195
|
+
"class.daff-valid": "isValid()",
|
|
196
|
+
"class.daff-focused": "isFocused",
|
|
197
|
+
"class.daff-raised": "isRaised",
|
|
198
|
+
"class.daff-open": "isOpen",
|
|
199
|
+
"class.fluid": "appearance() === \"fluid\"",
|
|
200
|
+
"class.fixed": "appearance() === \"fixed\""
|
|
201
|
+
},
|
|
202
|
+
classAttribute: "daff-form-field"
|
|
203
|
+
},
|
|
204
|
+
queries: [
|
|
205
|
+
{
|
|
206
|
+
propertyName: "_prefix",
|
|
207
|
+
first: true,
|
|
208
|
+
predicate: DaffPrefixDirective,
|
|
209
|
+
descendants: true,
|
|
210
|
+
isSignal: true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
propertyName: "_suffix",
|
|
214
|
+
first: true,
|
|
215
|
+
predicate: DaffSuffixDirective,
|
|
216
|
+
descendants: true,
|
|
217
|
+
isSignal: true
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
propertyName: "_control",
|
|
221
|
+
first: true,
|
|
222
|
+
predicate: DaffFormFieldControl,
|
|
223
|
+
descendants: true,
|
|
224
|
+
isSignal: true
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
propertyName: "_formFieldLabelDirective",
|
|
228
|
+
first: true,
|
|
229
|
+
predicate: DaffFormFieldLabelDirective,
|
|
230
|
+
descendants: true,
|
|
231
|
+
isSignal: true
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
propertyName: "_action",
|
|
235
|
+
first: true,
|
|
236
|
+
predicate: DaffFormFieldActionDirective,
|
|
237
|
+
descendants: true,
|
|
238
|
+
isSignal: true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
propertyName: "_hint",
|
|
242
|
+
first: true,
|
|
243
|
+
predicate: DaffHintComponent,
|
|
244
|
+
descendants: true,
|
|
245
|
+
isSignal: true
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
propertyName: "_error",
|
|
249
|
+
first: true,
|
|
250
|
+
predicate: DaffErrorMessageComponent,
|
|
251
|
+
descendants: true,
|
|
252
|
+
isSignal: true
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
viewQueries: [{
|
|
256
|
+
propertyName: "_wrapper",
|
|
257
|
+
first: true,
|
|
258
|
+
predicate: ["wrapper"],
|
|
259
|
+
descendants: true,
|
|
260
|
+
isSignal: true
|
|
261
|
+
}],
|
|
262
|
+
hostDirectives: [{
|
|
263
|
+
directive: i1.DaffSkeletonableDirective,
|
|
264
|
+
inputs: ["skeleton", "skeleton"]
|
|
265
|
+
}],
|
|
266
|
+
ngImport: i0,
|
|
267
|
+
template: "<ng-content />\n\n@if (isFixed()) {\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n}\n<div class=\"daff-form-field__wrapper\" #wrapper>\n <div class=\"daff-form-field__control\">\n @if (_prefix()) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n }\n <div class=\"daff-form-field__inner\">\n @if (!isFixed()) {\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n }\n <ng-content></ng-content>\n </div>\n @if (_suffix()) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n }\n @if (_action() && !isFixed()) {\n <ng-container *ngTemplateOutlet=\"actionTemplate\"></ng-container>\n }\n </div>\n @if ((_action() && isFixed())) {\n <ng-container *ngTemplateOutlet=\"actionTemplate\"></ng-container>\n }\n</div>\n@if (hasHint()) {\n <div\n class=\"daff-form-field__hint-wrapper\"\n [id]=\"hintId()\">\n <ng-content select=\"daff-hint\"></ng-content>\n </div>\n}\n@if (hasErrorMessage()) {\n <div\n class=\"daff-form-field__error-wrapper\"\n [id]=\"errorMessageId()\">\n <ng-content select=\"daff-error-message\"></ng-content>\n </div>\n}\n\n<ng-template #actionTemplate>\n <ng-content select=\"[daffFormFieldAction]\"></ng-content>\n</ng-template>\n\n<ng-template #labelTemplate>\n @if (_formFieldLabelDirective()) {\n <label class=\"daff-form-field__label\"\n [attr.for]=\"autoLabelId()\"\n [attr.id]=\"customId()\">\n <ng-content select=\"daff-form-label\"></ng-content>\n @if (_control().required) {\n <span aria-hidden=\"true\">*</span>\n }\n </label>\n } @else {\n <ng-content select=\"label\"></ng-content>\n }\n</ng-template>",
|
|
268
|
+
styles: [".daff-form-field{display:inline-flex;flex-direction:column;gap:.25rem;min-width:0;position:relative}.daff-form-field.has-prefix .daff-form-field__control{padding-left:0}.daff-form-field.has-suffix .daff-form-field__control{padding-right:0}.daff-form-field__hint-wrapper,.daff-form-field__error-wrapper{display:flex;flex-direction:column;gap:.25rem;width:0;min-width:100%}.daff-form-field__wrapper{display:flex;gap:.25rem}.daff-form-field__control{display:flex;align-items:center;border-radius:.25rem;font-size:var(--daff-font-size-base);line-height:1.25rem;padding:0 1rem;position:relative;width:100%}.daff-form-field__control+.daff-hint,.daff-form-field__control+.daff-error-message{margin-top:.5rem}.daff-form-field.is-dropdown .daff-form-field__control:after{content:\"\";position:absolute;top:48%;right:1rem;display:inline-block;border-right:.125rem solid currentColor;border-bottom:.125rem solid currentColor;width:.5rem;height:.5rem;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-form-field.is-dropdown label,.daff-form-field.is-dropdown .daff-form-label,.daff-form-field.is-dropdown .daff-form-field__label{padding-right:1rem}.daff-form-field.is-dropdown.daff-open .daff-form-field__control:after{top:56%;transform:translateY(-50%) rotate(225deg)}.daff-form-field.fixed input,.daff-form-field.fixed textarea,.daff-form-field.fixed select{font-size:1rem;line-height:1.5rem;padding:.6875rem 0}.daff-form-field.fixed input * ::-webkit-input-placeholder,.daff-form-field.fixed textarea * ::-webkit-input-placeholder,.daff-form-field.fixed select * ::-webkit-input-placeholder{opacity:1}.daff-form-field.fluid .daff-form-field__control * ::-webkit-input-placeholder{opacity:0}.daff-form-field.fluid.has-action .daff-form-field__control{padding-right:0}.daff-form-field.fluid.has-action .daff-form-field__inner{padding-right:1rem}.daff-form-field.fluid .daff-form-field-action{margin-right:.25rem}.daff-form-field.fluid input,.daff-form-field.fluid textarea,.daff-form-field.fluid select{font-size:1rem;line-height:1.5rem;padding:1rem 0}.daff-form-field.fluid label,.daff-form-field.fluid .daff-form-label,.daff-form-field.fluid .daff-form-field__label{position:absolute;left:0;top:1.125rem;max-width:100%;pointer-events:none;transform-origin:left top;transition:transform .15s;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-form-field.fluid label+input,.daff-form-field.fluid label+textarea,.daff-form-field.fluid label+select,.daff-form-field.fluid label~* input,.daff-form-field.fluid label~* textarea,.daff-form-field.fluid label~* select,.daff-form-field.fluid .daff-form-label+input,.daff-form-field.fluid .daff-form-label+textarea,.daff-form-field.fluid .daff-form-label+select,.daff-form-field.fluid .daff-form-label~* input,.daff-form-field.fluid .daff-form-label~* textarea,.daff-form-field.fluid .daff-form-label~* select,.daff-form-field.fluid .daff-form-field__label+input,.daff-form-field.fluid .daff-form-field__label+textarea,.daff-form-field.fluid .daff-form-field__label+select,.daff-form-field.fluid .daff-form-field__label~* input,.daff-form-field.fluid .daff-form-field__label~* textarea,.daff-form-field.fluid .daff-form-field__label~* select{padding:1.4375rem 0 .4375rem}.daff-form-field.fluid.daff-raised label,.daff-form-field.fluid.daff-raised .daff-form-label,.daff-form-field.fluid.daff-raised .daff-form-field__label{max-width:133.3333333333%;transform:translateY(-50%) scale(.75)}.daff-form-field.fluid.daff-raised * ::-webkit-input-placeholder{opacity:1}.daff-form-field.fluid .daff-prefix,.daff-form-field.fluid .daff-suffix{height:3rem;min-width:3rem}.daff-form-field.daff-disabled{cursor:not-allowed;opacity:.5}.daff-form-field__inner{flex:auto;min-width:0;width:12rem;position:relative;overflow:hidden}.daff-form-field__inner:has(textarea[cols]){width:auto}.daff-form-field .daff-prefix,.daff-form-field .daff-suffix{display:flex;align-items:center;justify-content:center;appearance:none;background:none;border:none;height:2.875rem;min-width:2.875rem}.daff-form-field.daff-skeleton{display:flex;position:relative;height:3.5rem;width:100%;border-radius:.25rem}.daff-form-field.daff-skeleton:before{animation-name:loading;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;content:\"\";height:3.5rem;width:100%;position:absolute;top:0;left:0}@keyframes loading{0%{opacity:.5}to{opacity:1}}.daff-form-field.daff-skeleton>*{visibility:hidden}\n"],
|
|
269
|
+
dependencies: [{
|
|
270
|
+
kind: "directive",
|
|
271
|
+
type: NgTemplateOutlet,
|
|
272
|
+
selector: "[ngTemplateOutlet]",
|
|
273
|
+
inputs: [
|
|
274
|
+
"ngTemplateOutletContext",
|
|
275
|
+
"ngTemplateOutlet",
|
|
276
|
+
"ngTemplateOutletInjector"
|
|
277
|
+
]
|
|
278
|
+
}],
|
|
279
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
280
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
285
|
+
minVersion: "12.0.0",
|
|
286
|
+
version: "22.2.4",
|
|
287
|
+
ngImport: i0,
|
|
288
|
+
type: DaffFormFieldComponent,
|
|
289
|
+
decorators: [{
|
|
290
|
+
type: Component,
|
|
291
|
+
args: [{
|
|
292
|
+
selector: "daff-form-field",
|
|
293
|
+
encapsulation: ViewEncapsulation.None,
|
|
294
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
295
|
+
imports: [NgTemplateOutlet],
|
|
296
|
+
host: {
|
|
297
|
+
class: "daff-form-field",
|
|
298
|
+
"[class.is-dropdown]": "isDropdown()",
|
|
299
|
+
"[class.has-prefix]": "_prefix()",
|
|
300
|
+
"[class.has-suffix]": "_suffix()",
|
|
301
|
+
"[class.has-action]": "_action()",
|
|
302
|
+
"[class.daff-error]": "isError()",
|
|
303
|
+
"[class.daff-disabled]": "isDisabled()",
|
|
304
|
+
"[class.daff-valid]": "isValid()",
|
|
305
|
+
"[class.daff-focused]": "isFocused",
|
|
306
|
+
"[class.daff-raised]": "isRaised",
|
|
307
|
+
"[class.daff-open]": "isOpen",
|
|
308
|
+
"[class.fluid]": "appearance() === \"fluid\"",
|
|
309
|
+
"[class.fixed]": "appearance() === \"fixed\""
|
|
310
|
+
},
|
|
311
|
+
hostDirectives: [{
|
|
312
|
+
directive: DaffSkeletonableDirective,
|
|
313
|
+
inputs: ["skeleton"]
|
|
314
|
+
}],
|
|
315
|
+
template: "<ng-content />\n\n@if (isFixed()) {\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n}\n<div class=\"daff-form-field__wrapper\" #wrapper>\n <div class=\"daff-form-field__control\">\n @if (_prefix()) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n }\n <div class=\"daff-form-field__inner\">\n @if (!isFixed()) {\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n }\n <ng-content></ng-content>\n </div>\n @if (_suffix()) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n }\n @if (_action() && !isFixed()) {\n <ng-container *ngTemplateOutlet=\"actionTemplate\"></ng-container>\n }\n </div>\n @if ((_action() && isFixed())) {\n <ng-container *ngTemplateOutlet=\"actionTemplate\"></ng-container>\n }\n</div>\n@if (hasHint()) {\n <div\n class=\"daff-form-field__hint-wrapper\"\n [id]=\"hintId()\">\n <ng-content select=\"daff-hint\"></ng-content>\n </div>\n}\n@if (hasErrorMessage()) {\n <div\n class=\"daff-form-field__error-wrapper\"\n [id]=\"errorMessageId()\">\n <ng-content select=\"daff-error-message\"></ng-content>\n </div>\n}\n\n<ng-template #actionTemplate>\n <ng-content select=\"[daffFormFieldAction]\"></ng-content>\n</ng-template>\n\n<ng-template #labelTemplate>\n @if (_formFieldLabelDirective()) {\n <label class=\"daff-form-field__label\"\n [attr.for]=\"autoLabelId()\"\n [attr.id]=\"customId()\">\n <ng-content select=\"daff-form-label\"></ng-content>\n @if (_control().required) {\n <span aria-hidden=\"true\">*</span>\n }\n </label>\n } @else {\n <ng-content select=\"label\"></ng-content>\n }\n</ng-template>",
|
|
316
|
+
styles: [".daff-form-field{display:inline-flex;flex-direction:column;gap:.25rem;min-width:0;position:relative}.daff-form-field.has-prefix .daff-form-field__control{padding-left:0}.daff-form-field.has-suffix .daff-form-field__control{padding-right:0}.daff-form-field__hint-wrapper,.daff-form-field__error-wrapper{display:flex;flex-direction:column;gap:.25rem;width:0;min-width:100%}.daff-form-field__wrapper{display:flex;gap:.25rem}.daff-form-field__control{display:flex;align-items:center;border-radius:.25rem;font-size:var(--daff-font-size-base);line-height:1.25rem;padding:0 1rem;position:relative;width:100%}.daff-form-field__control+.daff-hint,.daff-form-field__control+.daff-error-message{margin-top:.5rem}.daff-form-field.is-dropdown .daff-form-field__control:after{content:\"\";position:absolute;top:48%;right:1rem;display:inline-block;border-right:.125rem solid currentColor;border-bottom:.125rem solid currentColor;width:.5rem;height:.5rem;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-form-field.is-dropdown label,.daff-form-field.is-dropdown .daff-form-label,.daff-form-field.is-dropdown .daff-form-field__label{padding-right:1rem}.daff-form-field.is-dropdown.daff-open .daff-form-field__control:after{top:56%;transform:translateY(-50%) rotate(225deg)}.daff-form-field.fixed input,.daff-form-field.fixed textarea,.daff-form-field.fixed select{font-size:1rem;line-height:1.5rem;padding:.6875rem 0}.daff-form-field.fixed input * ::-webkit-input-placeholder,.daff-form-field.fixed textarea * ::-webkit-input-placeholder,.daff-form-field.fixed select * ::-webkit-input-placeholder{opacity:1}.daff-form-field.fluid .daff-form-field__control * ::-webkit-input-placeholder{opacity:0}.daff-form-field.fluid.has-action .daff-form-field__control{padding-right:0}.daff-form-field.fluid.has-action .daff-form-field__inner{padding-right:1rem}.daff-form-field.fluid .daff-form-field-action{margin-right:.25rem}.daff-form-field.fluid input,.daff-form-field.fluid textarea,.daff-form-field.fluid select{font-size:1rem;line-height:1.5rem;padding:1rem 0}.daff-form-field.fluid label,.daff-form-field.fluid .daff-form-label,.daff-form-field.fluid .daff-form-field__label{position:absolute;left:0;top:1.125rem;max-width:100%;pointer-events:none;transform-origin:left top;transition:transform .15s;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-form-field.fluid label+input,.daff-form-field.fluid label+textarea,.daff-form-field.fluid label+select,.daff-form-field.fluid label~* input,.daff-form-field.fluid label~* textarea,.daff-form-field.fluid label~* select,.daff-form-field.fluid .daff-form-label+input,.daff-form-field.fluid .daff-form-label+textarea,.daff-form-field.fluid .daff-form-label+select,.daff-form-field.fluid .daff-form-label~* input,.daff-form-field.fluid .daff-form-label~* textarea,.daff-form-field.fluid .daff-form-label~* select,.daff-form-field.fluid .daff-form-field__label+input,.daff-form-field.fluid .daff-form-field__label+textarea,.daff-form-field.fluid .daff-form-field__label+select,.daff-form-field.fluid .daff-form-field__label~* input,.daff-form-field.fluid .daff-form-field__label~* textarea,.daff-form-field.fluid .daff-form-field__label~* select{padding:1.4375rem 0 .4375rem}.daff-form-field.fluid.daff-raised label,.daff-form-field.fluid.daff-raised .daff-form-label,.daff-form-field.fluid.daff-raised .daff-form-field__label{max-width:133.3333333333%;transform:translateY(-50%) scale(.75)}.daff-form-field.fluid.daff-raised * ::-webkit-input-placeholder{opacity:1}.daff-form-field.fluid .daff-prefix,.daff-form-field.fluid .daff-suffix{height:3rem;min-width:3rem}.daff-form-field.daff-disabled{cursor:not-allowed;opacity:.5}.daff-form-field__inner{flex:auto;min-width:0;width:12rem;position:relative;overflow:hidden}.daff-form-field__inner:has(textarea[cols]){width:auto}.daff-form-field .daff-prefix,.daff-form-field .daff-suffix{display:flex;align-items:center;justify-content:center;appearance:none;background:none;border:none;height:2.875rem;min-width:2.875rem}.daff-form-field.daff-skeleton{display:flex;position:relative;height:3.5rem;width:100%;border-radius:.25rem}.daff-form-field.daff-skeleton:before{animation-name:loading;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;content:\"\";height:3.5rem;width:100%;position:absolute;top:0;left:0}@keyframes loading{0%{opacity:.5}to{opacity:1}}.daff-form-field.daff-skeleton>*{visibility:hidden}\n"]
|
|
317
|
+
}]
|
|
318
|
+
}],
|
|
319
|
+
ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }],
|
|
320
|
+
propDecorators: {
|
|
321
|
+
_wrapper: [{
|
|
322
|
+
type: i0.ViewChild,
|
|
323
|
+
args: ["wrapper", { isSignal: true }]
|
|
324
|
+
}],
|
|
325
|
+
_prefix: [{
|
|
326
|
+
type: i0.ContentChild,
|
|
327
|
+
args: [i0.forwardRef(() => DaffPrefixDirective), { isSignal: true }]
|
|
328
|
+
}],
|
|
329
|
+
_suffix: [{
|
|
330
|
+
type: i0.ContentChild,
|
|
331
|
+
args: [i0.forwardRef(() => DaffSuffixDirective), { isSignal: true }]
|
|
332
|
+
}],
|
|
333
|
+
_control: [{
|
|
334
|
+
type: i0.ContentChild,
|
|
335
|
+
args: [i0.forwardRef(() => DaffFormFieldControl), { isSignal: true }]
|
|
336
|
+
}],
|
|
337
|
+
_formFieldLabelDirective: [{
|
|
338
|
+
type: i0.ContentChild,
|
|
339
|
+
args: [i0.forwardRef(() => DaffFormFieldLabelDirective), { isSignal: true }]
|
|
340
|
+
}],
|
|
341
|
+
_action: [{
|
|
342
|
+
type: i0.ContentChild,
|
|
343
|
+
args: [i0.forwardRef(() => DaffFormFieldActionDirective), { isSignal: true }]
|
|
344
|
+
}],
|
|
345
|
+
_hint: [{
|
|
346
|
+
type: i0.ContentChild,
|
|
347
|
+
args: [i0.forwardRef(() => DaffHintComponent), { isSignal: true }]
|
|
348
|
+
}],
|
|
349
|
+
_error: [{
|
|
350
|
+
type: i0.ContentChild,
|
|
351
|
+
args: [i0.forwardRef(() => DaffErrorMessageComponent), { isSignal: true }]
|
|
352
|
+
}],
|
|
353
|
+
appearance: [{
|
|
354
|
+
type: i0.Input,
|
|
355
|
+
args: [{
|
|
356
|
+
isSignal: true,
|
|
357
|
+
alias: "appearance",
|
|
358
|
+
required: false
|
|
359
|
+
}]
|
|
360
|
+
}],
|
|
361
|
+
id: [{
|
|
362
|
+
type: i0.Input,
|
|
363
|
+
args: [{
|
|
364
|
+
isSignal: true,
|
|
365
|
+
alias: "id",
|
|
366
|
+
required: false
|
|
367
|
+
}]
|
|
368
|
+
}]
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
var DaffFormFieldModule = class DaffFormFieldModule {
|
|
372
|
+
static {
|
|
373
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
374
|
+
minVersion: "12.0.0",
|
|
375
|
+
version: "22.2.4",
|
|
376
|
+
ngImport: i0,
|
|
377
|
+
type: DaffFormFieldModule,
|
|
378
|
+
deps: [],
|
|
379
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
static {
|
|
383
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
384
|
+
minVersion: "14.0.0",
|
|
385
|
+
version: "22.2.4",
|
|
386
|
+
ngImport: i0,
|
|
387
|
+
type: DaffFormFieldModule,
|
|
388
|
+
imports: [
|
|
389
|
+
DaffFormFieldComponent,
|
|
390
|
+
DaffErrorMessageComponent,
|
|
391
|
+
DaffHintComponent,
|
|
392
|
+
DaffFormFieldLabelDirective
|
|
393
|
+
],
|
|
394
|
+
exports: [
|
|
395
|
+
DaffFormFieldComponent,
|
|
396
|
+
DaffErrorMessageComponent,
|
|
397
|
+
DaffHintComponent,
|
|
398
|
+
DaffFormFieldLabelDirective
|
|
399
|
+
]
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
static {
|
|
403
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
404
|
+
minVersion: "12.0.0",
|
|
405
|
+
version: "22.2.4",
|
|
406
|
+
ngImport: i0,
|
|
407
|
+
type: DaffFormFieldModule,
|
|
408
|
+
imports: [DaffErrorMessageComponent, DaffHintComponent]
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
413
|
+
minVersion: "12.0.0",
|
|
414
|
+
version: "22.2.4",
|
|
415
|
+
ngImport: i0,
|
|
416
|
+
type: DaffFormFieldModule,
|
|
417
|
+
decorators: [{
|
|
418
|
+
type: NgModule,
|
|
419
|
+
args: [{
|
|
420
|
+
imports: [
|
|
421
|
+
DaffFormFieldComponent,
|
|
422
|
+
DaffErrorMessageComponent,
|
|
423
|
+
DaffHintComponent,
|
|
424
|
+
DaffFormFieldLabelDirective
|
|
425
|
+
],
|
|
426
|
+
exports: [
|
|
427
|
+
DaffFormFieldComponent,
|
|
428
|
+
DaffErrorMessageComponent,
|
|
429
|
+
DaffHintComponent,
|
|
430
|
+
DaffFormFieldLabelDirective
|
|
431
|
+
]
|
|
432
|
+
}]
|
|
433
|
+
}]
|
|
434
|
+
});
|
|
341
435
|
const DAFF_FORM_FIELD_COMPONENTS = [
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
DaffErrorMessageComponent,
|
|
436
|
+
DaffFormFieldComponent,
|
|
437
|
+
DaffPrefixDirective,
|
|
438
|
+
DaffSuffixDirective,
|
|
439
|
+
DaffFormFieldActionDirective,
|
|
440
|
+
DaffHintComponent,
|
|
441
|
+
DaffFormFieldLabelDirective,
|
|
442
|
+
DaffErrorMessageComponent
|
|
350
443
|
];
|
|
444
|
+
export { DAFF_FORM_FIELD_COMPONENTS, DaffFormFieldActionDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldControlTypesEnum, DaffFormFieldModule };
|
|
351
445
|
|
|
352
|
-
|
|
353
|
-
* Generated bundle index. Do not edit.
|
|
354
|
-
*/
|
|
355
|
-
|
|
356
|
-
export { DAFF_FORM_FIELD_COMPONENTS, DaffFormFieldActionDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule };
|
|
357
|
-
//# sourceMappingURL=daffodil-design-form-field.mjs.map
|
|
446
|
+
//# sourceMappingURL=daffodil-design-form-field.mjs.map
|