@daffodil/design 0.94.1 → 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,419 +1,552 @@
|
|
|
1
|
-
import { CommonModule } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { DaffSpinnerComponent } from
|
|
5
|
-
import * as i2 from
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
class
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
1
|
+
import { CommonModule } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, ContentChild, Directive, NgModule, ViewEncapsulation, input } from "@angular/core";
|
|
4
|
+
import { DaffSpinnerComponent } from "@daffodil/design/spinner";
|
|
5
|
+
import * as i2 from "@daffodil/design";
|
|
6
|
+
import { DaffArticleEncapsulatedDirective, DaffColorableDirective, DaffDisableableDirective, DaffLoadableDirective, DaffPrefixDirective, DaffSizableDirective, DaffStatusableDirective, DaffSuffixDirective } from "@daffodil/design";
|
|
7
|
+
var DaffButtonSizableDirective = class DaffButtonSizableDirective extends DaffSizableDirective {
|
|
8
|
+
static {
|
|
9
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
10
|
+
minVersion: "12.0.0",
|
|
11
|
+
version: "22.2.4",
|
|
12
|
+
ngImport: i0,
|
|
13
|
+
type: DaffButtonSizableDirective,
|
|
14
|
+
deps: null,
|
|
15
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
20
|
+
minVersion: "14.0.0",
|
|
21
|
+
version: "22.2.4",
|
|
22
|
+
type: DaffButtonSizableDirective,
|
|
23
|
+
isStandalone: true,
|
|
24
|
+
usesInheritance: true,
|
|
25
|
+
ngImport: i0
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
30
|
+
minVersion: "12.0.0",
|
|
31
|
+
version: "22.2.4",
|
|
32
|
+
ngImport: i0,
|
|
33
|
+
type: DaffButtonSizableDirective,
|
|
34
|
+
decorators: [{
|
|
35
|
+
type: Directive,
|
|
36
|
+
args: [{}]
|
|
37
|
+
}]
|
|
38
|
+
});
|
|
39
|
+
var DaffButtonBaseDirective = class DaffButtonBaseDirective {
|
|
40
|
+
constructor(buttonSizable, disabledDirective, loadingDirective) {
|
|
41
|
+
this.buttonSizable = buttonSizable;
|
|
42
|
+
this.disabledDirective = disabledDirective;
|
|
43
|
+
this.loadingDirective = loadingDirective;
|
|
44
|
+
this.tabindex = input(0, ...ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this.buttonSizable.defaultSize = "md";
|
|
46
|
+
}
|
|
47
|
+
get disabled() {
|
|
48
|
+
return this.disabledDirective.disabled();
|
|
49
|
+
}
|
|
50
|
+
get loading() {
|
|
51
|
+
return this.loadingDirective.loading;
|
|
52
|
+
}
|
|
53
|
+
get buttonSize() {
|
|
54
|
+
return this.buttonSizable.size;
|
|
55
|
+
}
|
|
56
|
+
static {
|
|
57
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
58
|
+
minVersion: "12.0.0",
|
|
59
|
+
version: "22.2.4",
|
|
60
|
+
ngImport: i0,
|
|
61
|
+
type: DaffButtonBaseDirective,
|
|
62
|
+
deps: [
|
|
63
|
+
{ token: DaffButtonSizableDirective },
|
|
64
|
+
{ token: i2.DaffDisableableDirective },
|
|
65
|
+
{ token: i2.DaffLoadableDirective }
|
|
66
|
+
],
|
|
67
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
static {
|
|
71
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
72
|
+
minVersion: "17.1.0",
|
|
73
|
+
version: "22.2.4",
|
|
74
|
+
type: DaffButtonBaseDirective,
|
|
75
|
+
isStandalone: true,
|
|
76
|
+
selector: "[daffButtonBase]",
|
|
77
|
+
inputs: { tabindex: {
|
|
78
|
+
classPropertyName: "tabindex",
|
|
79
|
+
publicName: "tabindex",
|
|
80
|
+
isSignal: true,
|
|
81
|
+
isRequired: false,
|
|
82
|
+
transformFunction: null
|
|
83
|
+
} },
|
|
84
|
+
host: { properties: {
|
|
85
|
+
"attr.disabled": "disabled ? true : null",
|
|
86
|
+
"attr.aria-disabled": "disabled ? true : null",
|
|
87
|
+
"attr.tabindex": "disabled ? -1 : tabindex()"
|
|
88
|
+
} },
|
|
89
|
+
queries: [{
|
|
90
|
+
propertyName: "_prefix",
|
|
91
|
+
first: true,
|
|
92
|
+
predicate: DaffPrefixDirective,
|
|
93
|
+
descendants: true,
|
|
94
|
+
static: true
|
|
95
|
+
}, {
|
|
96
|
+
propertyName: "_suffix",
|
|
97
|
+
first: true,
|
|
98
|
+
predicate: DaffSuffixDirective,
|
|
99
|
+
descendants: true,
|
|
100
|
+
static: true
|
|
101
|
+
}],
|
|
102
|
+
hostDirectives: [
|
|
103
|
+
{ directive: i2.DaffArticleEncapsulatedDirective },
|
|
104
|
+
{
|
|
105
|
+
directive: DaffButtonSizableDirective,
|
|
106
|
+
inputs: ["size", "size"]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
directive: i2.DaffStatusableDirective,
|
|
110
|
+
inputs: ["status", "status"]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
directive: i2.DaffColorableDirective,
|
|
114
|
+
inputs: ["color", "color"]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
directive: i2.DaffDisableableDirective,
|
|
118
|
+
inputs: ["disabled", "disabled"]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
directive: i2.DaffLoadableDirective,
|
|
122
|
+
inputs: ["loading", "loading"]
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
ngImport: i0
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
130
|
+
minVersion: "12.0.0",
|
|
131
|
+
version: "22.2.4",
|
|
132
|
+
ngImport: i0,
|
|
133
|
+
type: DaffButtonBaseDirective,
|
|
134
|
+
decorators: [{
|
|
135
|
+
type: Directive,
|
|
136
|
+
args: [{
|
|
137
|
+
selector: "[daffButtonBase]",
|
|
138
|
+
hostDirectives: [
|
|
139
|
+
{ directive: DaffArticleEncapsulatedDirective },
|
|
140
|
+
{
|
|
141
|
+
directive: DaffButtonSizableDirective,
|
|
142
|
+
inputs: ["size"]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
directive: DaffStatusableDirective,
|
|
146
|
+
inputs: ["status"]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
directive: DaffColorableDirective,
|
|
150
|
+
inputs: ["color"]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
directive: DaffDisableableDirective,
|
|
154
|
+
inputs: ["disabled"]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
directive: DaffLoadableDirective,
|
|
158
|
+
inputs: ["loading"]
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
host: {
|
|
162
|
+
"[attr.disabled]": "disabled ? true : null",
|
|
163
|
+
"[attr.aria-disabled]": "disabled ? true : null",
|
|
164
|
+
"[attr.tabindex]": "disabled ? -1 : tabindex()"
|
|
165
|
+
}
|
|
166
|
+
}]
|
|
167
|
+
}],
|
|
168
|
+
ctorParameters: () => [
|
|
169
|
+
{ type: DaffButtonSizableDirective },
|
|
170
|
+
{ type: i2.DaffDisableableDirective },
|
|
171
|
+
{ type: i2.DaffLoadableDirective }
|
|
172
|
+
],
|
|
173
|
+
propDecorators: {
|
|
174
|
+
_prefix: [{
|
|
175
|
+
type: ContentChild,
|
|
176
|
+
args: [DaffPrefixDirective, { static: true }]
|
|
177
|
+
}],
|
|
178
|
+
_suffix: [{
|
|
179
|
+
type: ContentChild,
|
|
180
|
+
args: [DaffSuffixDirective, { static: true }]
|
|
181
|
+
}],
|
|
182
|
+
tabindex: [{
|
|
183
|
+
type: i0.Input,
|
|
184
|
+
args: [{
|
|
185
|
+
isSignal: true,
|
|
186
|
+
alias: "tabindex",
|
|
187
|
+
required: false
|
|
188
|
+
}]
|
|
189
|
+
}]
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
var DaffButtonComponent = class DaffButtonComponent extends DaffButtonBaseDirective {
|
|
193
|
+
constructor() {
|
|
194
|
+
super(...arguments);
|
|
195
|
+
this.elevated = input(false, ...ngDevMode ? [{ debugName: "elevated" }] : /* istanbul ignore next */ []);
|
|
196
|
+
}
|
|
197
|
+
static {
|
|
198
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
199
|
+
minVersion: "12.0.0",
|
|
200
|
+
version: "22.2.4",
|
|
201
|
+
ngImport: i0,
|
|
202
|
+
type: DaffButtonComponent,
|
|
203
|
+
deps: null,
|
|
204
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
static {
|
|
208
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
209
|
+
minVersion: "17.0.0",
|
|
210
|
+
version: "22.2.4",
|
|
211
|
+
type: DaffButtonComponent,
|
|
212
|
+
isStandalone: true,
|
|
213
|
+
selector: "button[daff-button],a[daff-button]",
|
|
214
|
+
inputs: { elevated: {
|
|
215
|
+
classPropertyName: "elevated",
|
|
216
|
+
publicName: "elevated",
|
|
217
|
+
isSignal: true,
|
|
218
|
+
isRequired: false,
|
|
219
|
+
transformFunction: null
|
|
220
|
+
} },
|
|
221
|
+
host: {
|
|
222
|
+
properties: { "class.elevated": "elevated()" },
|
|
223
|
+
classAttribute: "daff-button"
|
|
224
|
+
},
|
|
225
|
+
usesInheritance: true,
|
|
226
|
+
ngImport: i0,
|
|
227
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
228
|
+
styles: [".daff-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-button[disabled],.daff-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-button .daff-button__content,.daff-button .daff-prefix,.daff-button .daff-suffix{z-index:1}.daff-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-button.daff-loading .daff-button__content,.daff-button.daff-loading .daff-prefix,.daff-button.daff-loading .daff-suffix{opacity:0}.daff-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-button:not(.daff-button[disabled],.daff-button.daff-disabled):after{content:\"\";border-radius:.25rem;position:absolute;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s;z-index:0}.daff-button:not(.daff-button[disabled],.daff-button.daff-disabled):active:after{opacity:1}@media(hover:hover){.daff-button:not(.daff-button[disabled],.daff-button.daff-disabled):hover:after{opacity:1}}.daff-button.elevated{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}@media(hover:hover){.daff-button.elevated:hover{box-shadow:0 6px 12px #00000014,0 4px 6px #0000000a}}.daff-button.elevated[disabled]:hover,.daff-button.elevated.daff-disabled:hover{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}.daff-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;padding:0 1rem}.daff-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;padding:0 1.5rem}.daff-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;padding:0 1.5rem}\n"],
|
|
229
|
+
dependencies: [{
|
|
230
|
+
kind: "component",
|
|
231
|
+
type: DaffSpinnerComponent,
|
|
232
|
+
selector: "daff-spinner",
|
|
233
|
+
inputs: ["aria-label"]
|
|
234
|
+
}],
|
|
235
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
236
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
241
|
+
minVersion: "12.0.0",
|
|
242
|
+
version: "22.2.4",
|
|
243
|
+
ngImport: i0,
|
|
244
|
+
type: DaffButtonComponent,
|
|
245
|
+
decorators: [{
|
|
246
|
+
type: Component,
|
|
247
|
+
args: [{
|
|
248
|
+
selector: "button[daff-button],a[daff-button]",
|
|
249
|
+
host: {
|
|
250
|
+
"class": "daff-button",
|
|
251
|
+
"[class.elevated]": "elevated()"
|
|
252
|
+
},
|
|
253
|
+
encapsulation: ViewEncapsulation.None,
|
|
254
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
255
|
+
imports: [DaffSpinnerComponent],
|
|
256
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
257
|
+
styles: [".daff-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-button[disabled],.daff-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-button .daff-button__content,.daff-button .daff-prefix,.daff-button .daff-suffix{z-index:1}.daff-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-button.daff-loading .daff-button__content,.daff-button.daff-loading .daff-prefix,.daff-button.daff-loading .daff-suffix{opacity:0}.daff-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-button:not(.daff-button[disabled],.daff-button.daff-disabled):after{content:\"\";border-radius:.25rem;position:absolute;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s;z-index:0}.daff-button:not(.daff-button[disabled],.daff-button.daff-disabled):active:after{opacity:1}@media(hover:hover){.daff-button:not(.daff-button[disabled],.daff-button.daff-disabled):hover:after{opacity:1}}.daff-button.elevated{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}@media(hover:hover){.daff-button.elevated:hover{box-shadow:0 6px 12px #00000014,0 4px 6px #0000000a}}.daff-button.elevated[disabled]:hover,.daff-button.elevated.daff-disabled:hover{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}.daff-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;padding:0 1rem}.daff-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;padding:0 1.5rem}.daff-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;padding:0 1.5rem}\n"]
|
|
258
|
+
}]
|
|
259
|
+
}],
|
|
260
|
+
propDecorators: { elevated: [{
|
|
261
|
+
type: i0.Input,
|
|
262
|
+
args: [{
|
|
263
|
+
isSignal: true,
|
|
264
|
+
alias: "elevated",
|
|
265
|
+
required: false
|
|
266
|
+
}]
|
|
267
|
+
}] }
|
|
268
|
+
});
|
|
269
|
+
var DaffFlatButtonComponent = class DaffFlatButtonComponent extends DaffButtonBaseDirective {
|
|
270
|
+
static {
|
|
271
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
272
|
+
minVersion: "12.0.0",
|
|
273
|
+
version: "22.2.4",
|
|
274
|
+
ngImport: i0,
|
|
275
|
+
type: DaffFlatButtonComponent,
|
|
276
|
+
deps: null,
|
|
277
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
static {
|
|
281
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
282
|
+
minVersion: "17.0.0",
|
|
283
|
+
version: "22.2.4",
|
|
284
|
+
type: DaffFlatButtonComponent,
|
|
285
|
+
isStandalone: true,
|
|
286
|
+
selector: "button[daff-flat-button],a[daff-flat-button]",
|
|
287
|
+
host: { classAttribute: "daff-flat-button" },
|
|
288
|
+
usesInheritance: true,
|
|
289
|
+
ngImport: i0,
|
|
290
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
291
|
+
styles: [".daff-flat-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-flat-button[disabled],.daff-flat-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-flat-button .daff-button__content,.daff-flat-button .daff-prefix,.daff-flat-button .daff-suffix{z-index:1}.daff-flat-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-flat-button.daff-loading .daff-button__content,.daff-flat-button.daff-loading .daff-prefix,.daff-flat-button.daff-loading .daff-suffix{opacity:0}.daff-flat-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-flat-button:not(.daff-flat-button[disabled],.daff-flat-button.daff-disabled):after{content:\"\";border-radius:.25rem;position:absolute;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s;z-index:0}.daff-flat-button:not(.daff-flat-button[disabled],.daff-flat-button.daff-disabled):active:after{opacity:1}@media(hover:hover){.daff-flat-button:not(.daff-flat-button[disabled],.daff-flat-button.daff-disabled):hover:after{opacity:1}}.daff-flat-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;padding:0 1rem}.daff-flat-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;padding:0 1.5rem}.daff-flat-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;padding:0 1.5rem}.daff-flat-button{background:none;border:none}\n"],
|
|
292
|
+
dependencies: [{
|
|
293
|
+
kind: "component",
|
|
294
|
+
type: DaffSpinnerComponent,
|
|
295
|
+
selector: "daff-spinner",
|
|
296
|
+
inputs: ["aria-label"]
|
|
297
|
+
}],
|
|
298
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
299
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
304
|
+
minVersion: "12.0.0",
|
|
305
|
+
version: "22.2.4",
|
|
306
|
+
ngImport: i0,
|
|
307
|
+
type: DaffFlatButtonComponent,
|
|
308
|
+
decorators: [{
|
|
309
|
+
type: Component,
|
|
310
|
+
args: [{
|
|
311
|
+
selector: "button[daff-flat-button],a[daff-flat-button]",
|
|
312
|
+
host: { class: "daff-flat-button" },
|
|
313
|
+
encapsulation: ViewEncapsulation.None,
|
|
314
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
315
|
+
imports: [DaffSpinnerComponent],
|
|
316
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
317
|
+
styles: [".daff-flat-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-flat-button[disabled],.daff-flat-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-flat-button .daff-button__content,.daff-flat-button .daff-prefix,.daff-flat-button .daff-suffix{z-index:1}.daff-flat-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-flat-button.daff-loading .daff-button__content,.daff-flat-button.daff-loading .daff-prefix,.daff-flat-button.daff-loading .daff-suffix{opacity:0}.daff-flat-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-flat-button:not(.daff-flat-button[disabled],.daff-flat-button.daff-disabled):after{content:\"\";border-radius:.25rem;position:absolute;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s;z-index:0}.daff-flat-button:not(.daff-flat-button[disabled],.daff-flat-button.daff-disabled):active:after{opacity:1}@media(hover:hover){.daff-flat-button:not(.daff-flat-button[disabled],.daff-flat-button.daff-disabled):hover:after{opacity:1}}.daff-flat-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;padding:0 1rem}.daff-flat-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;padding:0 1.5rem}.daff-flat-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;padding:0 1.5rem}.daff-flat-button{background:none;border:none}\n"]
|
|
318
|
+
}]
|
|
319
|
+
}]
|
|
320
|
+
});
|
|
321
|
+
var DaffIconButtonComponent = class DaffIconButtonComponent extends DaffButtonBaseDirective {
|
|
322
|
+
static {
|
|
323
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
324
|
+
minVersion: "12.0.0",
|
|
325
|
+
version: "22.2.4",
|
|
326
|
+
ngImport: i0,
|
|
327
|
+
type: DaffIconButtonComponent,
|
|
328
|
+
deps: null,
|
|
329
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
static {
|
|
333
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
334
|
+
minVersion: "17.0.0",
|
|
335
|
+
version: "22.2.4",
|
|
336
|
+
type: DaffIconButtonComponent,
|
|
337
|
+
isStandalone: true,
|
|
338
|
+
selector: "button[daff-icon-button],a[daff-icon-button]",
|
|
339
|
+
host: { classAttribute: "daff-icon-button" },
|
|
340
|
+
usesInheritance: true,
|
|
341
|
+
ngImport: i0,
|
|
342
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
343
|
+
styles: [".daff-icon-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-icon-button[disabled],.daff-icon-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-icon-button .daff-button__content,.daff-icon-button .daff-prefix,.daff-icon-button .daff-suffix{z-index:1}.daff-icon-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-icon-button.daff-loading .daff-button__content,.daff-icon-button.daff-loading .daff-prefix,.daff-icon-button.daff-loading .daff-suffix{opacity:0}.daff-icon-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-icon-button{background:none;border:0;padding:0}.daff-icon-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;width:2rem}.daff-icon-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;width:3rem}.daff-icon-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;width:3.5rem}\n"],
|
|
344
|
+
dependencies: [{
|
|
345
|
+
kind: "component",
|
|
346
|
+
type: DaffSpinnerComponent,
|
|
347
|
+
selector: "daff-spinner",
|
|
348
|
+
inputs: ["aria-label"]
|
|
349
|
+
}],
|
|
350
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
351
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
356
|
+
minVersion: "12.0.0",
|
|
357
|
+
version: "22.2.4",
|
|
358
|
+
ngImport: i0,
|
|
359
|
+
type: DaffIconButtonComponent,
|
|
360
|
+
decorators: [{
|
|
361
|
+
type: Component,
|
|
362
|
+
args: [{
|
|
363
|
+
selector: "button[daff-icon-button],a[daff-icon-button]",
|
|
364
|
+
host: { "class": "daff-icon-button" },
|
|
365
|
+
encapsulation: ViewEncapsulation.None,
|
|
366
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
367
|
+
imports: [DaffSpinnerComponent],
|
|
368
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
369
|
+
styles: [".daff-icon-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-icon-button[disabled],.daff-icon-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-icon-button .daff-button__content,.daff-icon-button .daff-prefix,.daff-icon-button .daff-suffix{z-index:1}.daff-icon-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-icon-button.daff-loading .daff-button__content,.daff-icon-button.daff-loading .daff-prefix,.daff-icon-button.daff-loading .daff-suffix{opacity:0}.daff-icon-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-icon-button{background:none;border:0;padding:0}.daff-icon-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;width:2rem}.daff-icon-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;width:3rem}.daff-icon-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;width:3.5rem}\n"]
|
|
370
|
+
}]
|
|
371
|
+
}]
|
|
372
|
+
});
|
|
373
|
+
var DaffStrokedButtonComponent = class DaffStrokedButtonComponent extends DaffButtonBaseDirective {
|
|
374
|
+
constructor() {
|
|
375
|
+
super(...arguments);
|
|
376
|
+
this.elevated = input(false, ...ngDevMode ? [{ debugName: "elevated" }] : /* istanbul ignore next */ []);
|
|
377
|
+
}
|
|
378
|
+
static {
|
|
379
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
380
|
+
minVersion: "12.0.0",
|
|
381
|
+
version: "22.2.4",
|
|
382
|
+
ngImport: i0,
|
|
383
|
+
type: DaffStrokedButtonComponent,
|
|
384
|
+
deps: null,
|
|
385
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
static {
|
|
389
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
390
|
+
minVersion: "17.0.0",
|
|
391
|
+
version: "22.2.4",
|
|
392
|
+
type: DaffStrokedButtonComponent,
|
|
393
|
+
isStandalone: true,
|
|
394
|
+
selector: "button[daff-stroked-button],a[daff-stroked-button]",
|
|
395
|
+
inputs: { elevated: {
|
|
396
|
+
classPropertyName: "elevated",
|
|
397
|
+
publicName: "elevated",
|
|
398
|
+
isSignal: true,
|
|
399
|
+
isRequired: false,
|
|
400
|
+
transformFunction: null
|
|
401
|
+
} },
|
|
402
|
+
host: {
|
|
403
|
+
properties: { "class.elevated": "elevated()" },
|
|
404
|
+
classAttribute: "daff-stroked-button"
|
|
405
|
+
},
|
|
406
|
+
usesInheritance: true,
|
|
407
|
+
ngImport: i0,
|
|
408
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
409
|
+
styles: [".daff-stroked-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-stroked-button .daff-button__content,.daff-stroked-button .daff-prefix,.daff-stroked-button .daff-suffix{z-index:1}.daff-stroked-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-stroked-button.daff-loading .daff-button__content,.daff-stroked-button.daff-loading .daff-prefix,.daff-stroked-button.daff-loading .daff-suffix{opacity:0}.daff-stroked-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-stroked-button:not(.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled):after{content:\"\";border-radius:.25rem;position:absolute;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s;z-index:0}.daff-stroked-button:not(.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled):active:after{opacity:1}@media(hover:hover){.daff-stroked-button:not(.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled):hover:after{opacity:1}}.daff-stroked-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;padding:0 1rem}.daff-stroked-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;padding:0 1.5rem}.daff-stroked-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;padding:0 1.5rem}.daff-stroked-button.elevated{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}@media(hover:hover){.daff-stroked-button.elevated:hover{box-shadow:0 6px 12px #00000014,0 4px 6px #0000000a}}.daff-stroked-button.elevated[disabled]:hover,.daff-stroked-button.elevated.daff-disabled:hover{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}\n"],
|
|
410
|
+
dependencies: [{
|
|
411
|
+
kind: "component",
|
|
412
|
+
type: DaffSpinnerComponent,
|
|
413
|
+
selector: "daff-spinner",
|
|
414
|
+
inputs: ["aria-label"]
|
|
415
|
+
}],
|
|
416
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
417
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
422
|
+
minVersion: "12.0.0",
|
|
423
|
+
version: "22.2.4",
|
|
424
|
+
ngImport: i0,
|
|
425
|
+
type: DaffStrokedButtonComponent,
|
|
426
|
+
decorators: [{
|
|
427
|
+
type: Component,
|
|
428
|
+
args: [{
|
|
429
|
+
selector: "button[daff-stroked-button],a[daff-stroked-button]",
|
|
430
|
+
host: {
|
|
431
|
+
"class": "daff-stroked-button",
|
|
432
|
+
"[class.elevated]": "elevated()"
|
|
433
|
+
},
|
|
434
|
+
encapsulation: ViewEncapsulation.None,
|
|
435
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
436
|
+
imports: [DaffSpinnerComponent],
|
|
437
|
+
template: "@if (_prefix) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n@if (loading) {\n <daff-spinner class=\"daff-button__loading\" [size]=\"buttonSize\"></daff-spinner>\n}\n<span class=\"daff-button__content\">\n <ng-content></ng-content>\n</span>\n@if (_suffix) {\n <ng-content select=\"[daffSuffix]\"></ng-content>\n}",
|
|
438
|
+
styles: [".daff-stroked-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;appearance:none;border:none;border-radius:.25rem;position:relative;text-align:center;text-decoration:none}.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled{cursor:not-allowed;opacity:.5}.daff-stroked-button .daff-button__content,.daff-stroked-button .daff-prefix,.daff-stroked-button .daff-suffix{z-index:1}.daff-stroked-button .daff-button__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daff-stroked-button.daff-loading .daff-button__content,.daff-stroked-button.daff-loading .daff-prefix,.daff-stroked-button.daff-loading .daff-suffix{opacity:0}.daff-stroked-button.daff-loading .daff-button__loading{z-index:5;position:absolute}.daff-stroked-button:not(.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled):after{content:\"\";border-radius:.25rem;position:absolute;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s;z-index:0}.daff-stroked-button:not(.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled):active:after{opacity:1}@media(hover:hover){.daff-stroked-button:not(.daff-stroked-button[disabled],.daff-stroked-button.daff-disabled):hover:after{opacity:1}}.daff-stroked-button.daff-sm{font-size:var(--daff-font-size-sm);line-height:2rem;height:2rem;padding:0 1rem}.daff-stroked-button.daff-md{font-size:var(--daff-font-size-base);line-height:3rem;height:3rem;padding:0 1.5rem}.daff-stroked-button.daff-lg{font-size:var(--daff-font-size-md);line-height:3.5rem;height:3.5rem;padding:0 1.5rem}.daff-stroked-button.elevated{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}@media(hover:hover){.daff-stroked-button.elevated:hover{box-shadow:0 6px 12px #00000014,0 4px 6px #0000000a}}.daff-stroked-button.elevated[disabled]:hover,.daff-stroked-button.elevated.daff-disabled:hover{box-shadow:0 1px 5px -4px #00000080,0 4px 8px #0000000d}\n"]
|
|
439
|
+
}]
|
|
440
|
+
}],
|
|
441
|
+
propDecorators: { elevated: [{
|
|
442
|
+
type: i0.Input,
|
|
443
|
+
args: [{
|
|
444
|
+
isSignal: true,
|
|
445
|
+
alias: "elevated",
|
|
446
|
+
required: false
|
|
447
|
+
}]
|
|
448
|
+
}] }
|
|
449
|
+
});
|
|
450
|
+
var DaffButtonModule = class DaffButtonModule {
|
|
451
|
+
static {
|
|
452
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
453
|
+
minVersion: "12.0.0",
|
|
454
|
+
version: "22.2.4",
|
|
455
|
+
ngImport: i0,
|
|
456
|
+
type: DaffButtonModule,
|
|
457
|
+
deps: [],
|
|
458
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
static {
|
|
462
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
463
|
+
minVersion: "14.0.0",
|
|
464
|
+
version: "22.2.4",
|
|
465
|
+
ngImport: i0,
|
|
466
|
+
type: DaffButtonModule,
|
|
467
|
+
imports: [
|
|
468
|
+
CommonModule,
|
|
469
|
+
DaffButtonComponent,
|
|
470
|
+
DaffFlatButtonComponent,
|
|
471
|
+
DaffIconButtonComponent,
|
|
472
|
+
DaffStrokedButtonComponent
|
|
473
|
+
],
|
|
474
|
+
exports: [
|
|
475
|
+
DaffButtonComponent,
|
|
476
|
+
DaffFlatButtonComponent,
|
|
477
|
+
DaffIconButtonComponent,
|
|
478
|
+
DaffStrokedButtonComponent
|
|
479
|
+
]
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
static {
|
|
483
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
484
|
+
minVersion: "12.0.0",
|
|
485
|
+
version: "22.2.4",
|
|
486
|
+
ngImport: i0,
|
|
487
|
+
type: DaffButtonModule,
|
|
488
|
+
imports: [
|
|
489
|
+
CommonModule,
|
|
490
|
+
DaffButtonComponent,
|
|
491
|
+
DaffFlatButtonComponent,
|
|
492
|
+
DaffIconButtonComponent,
|
|
493
|
+
DaffStrokedButtonComponent
|
|
494
|
+
]
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
499
|
+
minVersion: "12.0.0",
|
|
500
|
+
version: "22.2.4",
|
|
501
|
+
ngImport: i0,
|
|
502
|
+
type: DaffButtonModule,
|
|
503
|
+
decorators: [{
|
|
504
|
+
type: NgModule,
|
|
505
|
+
args: [{
|
|
506
|
+
imports: [
|
|
507
|
+
CommonModule,
|
|
508
|
+
DaffButtonComponent,
|
|
509
|
+
DaffFlatButtonComponent,
|
|
510
|
+
DaffIconButtonComponent,
|
|
511
|
+
DaffStrokedButtonComponent
|
|
512
|
+
],
|
|
513
|
+
exports: [
|
|
514
|
+
DaffButtonComponent,
|
|
515
|
+
DaffFlatButtonComponent,
|
|
516
|
+
DaffIconButtonComponent,
|
|
517
|
+
DaffStrokedButtonComponent
|
|
518
|
+
]
|
|
519
|
+
}]
|
|
520
|
+
}]
|
|
521
|
+
});
|
|
362
522
|
const DAFF_BUTTON_COMPONENTS = [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
DaffPrefixDirective,
|
|
370
|
-
DaffSuffixDirective,
|
|
523
|
+
DaffButtonComponent,
|
|
524
|
+
DaffFlatButtonComponent,
|
|
525
|
+
DaffIconButtonComponent,
|
|
526
|
+
DaffStrokedButtonComponent,
|
|
527
|
+
DaffPrefixDirective,
|
|
528
|
+
DaffSuffixDirective
|
|
371
529
|
];
|
|
372
|
-
/**
|
|
373
|
-
* @docs-private
|
|
374
|
-
*/
|
|
375
530
|
const DAFF_BASIC_BUTTON_COMPONENTS = [
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
531
|
+
DaffButtonComponent,
|
|
532
|
+
DaffPrefixDirective,
|
|
533
|
+
DaffSuffixDirective
|
|
379
534
|
];
|
|
380
|
-
/**
|
|
381
|
-
* @docs-private
|
|
382
|
-
*/
|
|
383
535
|
const DAFF_FLAT_BUTTON_COMPONENTS = [
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
536
|
+
DaffFlatButtonComponent,
|
|
537
|
+
DaffPrefixDirective,
|
|
538
|
+
DaffSuffixDirective
|
|
387
539
|
];
|
|
388
|
-
/**
|
|
389
|
-
* @docs-private
|
|
390
|
-
*/
|
|
391
540
|
const DAFF_ICON_BUTTON_COMPONENTS = [
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
541
|
+
DaffIconButtonComponent,
|
|
542
|
+
DaffPrefixDirective,
|
|
543
|
+
DaffSuffixDirective
|
|
395
544
|
];
|
|
396
|
-
/**
|
|
397
|
-
* @docs-private
|
|
398
|
-
*/
|
|
399
545
|
const DAFF_STROKED_BUTTON_COMPONENTS = [
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
];
|
|
404
|
-
/**
|
|
405
|
-
* @docs-private
|
|
406
|
-
* @deprecated Deprecated in version 0.92.0. Will be removed in version 0.95.0.
|
|
407
|
-
*/
|
|
408
|
-
const DAFF_UNDERLINE_BUTTON_COMPONENTS = [
|
|
409
|
-
DaffUnderlineButtonComponent,
|
|
410
|
-
DaffPrefixDirective,
|
|
411
|
-
DaffSuffixDirective,
|
|
546
|
+
DaffStrokedButtonComponent,
|
|
547
|
+
DaffPrefixDirective,
|
|
548
|
+
DaffSuffixDirective
|
|
412
549
|
];
|
|
550
|
+
export { DAFF_BASIC_BUTTON_COMPONENTS, DAFF_BUTTON_COMPONENTS, DAFF_FLAT_BUTTON_COMPONENTS, DAFF_ICON_BUTTON_COMPONENTS, DAFF_STROKED_BUTTON_COMPONENTS, DaffButtonComponent, DaffButtonModule, DaffButtonSizableDirective, DaffFlatButtonComponent, DaffIconButtonComponent, DaffStrokedButtonComponent };
|
|
413
551
|
|
|
414
|
-
|
|
415
|
-
* Generated bundle index. Do not edit.
|
|
416
|
-
*/
|
|
417
|
-
|
|
418
|
-
export { DAFF_BASIC_BUTTON_COMPONENTS, DAFF_BUTTON_COMPONENTS, DAFF_FLAT_BUTTON_COMPONENTS, DAFF_ICON_BUTTON_COMPONENTS, DAFF_STROKED_BUTTON_COMPONENTS, DAFF_UNDERLINE_BUTTON_COMPONENTS, DaffButtonComponent, DaffButtonModule, DaffButtonSizableDirective, DaffFlatButtonComponent, DaffIconButtonComponent, DaffRaisedButtonComponent, DaffStrokedButtonComponent, DaffUnderlineButtonComponent };
|
|
419
|
-
//# sourceMappingURL=daffodil-design-button.mjs.map
|
|
552
|
+
//# sourceMappingURL=daffodil-design-button.mjs.map
|