@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,454 +1,684 @@
|
|
|
1
|
-
import * as i2 from
|
|
2
|
-
import * as i1 from
|
|
3
|
-
import { GlobalPositionStrategy, OverlayModule } from
|
|
4
|
-
import * as i4 from
|
|
5
|
-
import { ComponentPortal, PortalModule
|
|
6
|
-
import * as i0 from
|
|
7
|
-
import {
|
|
8
|
-
import { Subject } from
|
|
9
|
-
import {
|
|
10
|
-
import * as i3 from
|
|
11
|
-
import {
|
|
12
|
-
import { CommonModule } from
|
|
13
|
-
import { FaIconComponent, FontAwesomeModule } from
|
|
14
|
-
import {
|
|
15
|
-
import { faXmark } from
|
|
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
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
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
|
-
|
|
1
|
+
import * as i2 from "@angular/cdk/a11y";
|
|
2
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
3
|
+
import { GlobalPositionStrategy, OverlayModule } from "@angular/cdk/overlay";
|
|
4
|
+
import * as i4 from "@angular/cdk/portal";
|
|
5
|
+
import { CdkPortalOutlet, ComponentPortal, PortalModule } from "@angular/cdk/portal";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import { ChangeDetectionStrategy, Component, Directive, Injectable, Injector, Input, NgModule, Optional, ViewChild, ViewEncapsulation, signal } from "@angular/core";
|
|
8
|
+
import { Subject } from "rxjs";
|
|
9
|
+
import { delay, take } from "rxjs/operators";
|
|
10
|
+
import * as i3 from "@daffodil/design";
|
|
11
|
+
import { DaffOpenableDirective, daffFocusableElementsSelector } from "@daffodil/design";
|
|
12
|
+
import { CommonModule } from "@angular/common";
|
|
13
|
+
import { FaIconComponent, FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
|
14
|
+
import { DaffButtonModule, DaffIconButtonComponent } from "@daffodil/design/button";
|
|
15
|
+
import { faXmark } from "@fortawesome/free-solid-svg-icons";
|
|
16
|
+
var DaffModalService = class DaffModalService {
|
|
17
|
+
constructor(overlay) {
|
|
18
|
+
this.overlay = overlay;
|
|
19
|
+
this._modals = /* @__PURE__ */ new Map();
|
|
20
|
+
this.defaultConfiguration = {};
|
|
21
|
+
}
|
|
22
|
+
_attachModal(overlayRef) {
|
|
23
|
+
const modal = overlayRef.attach(new ComponentPortal(DaffModalComponent, void 0, Injector.create({ providers: [{
|
|
24
|
+
provide: DaffModalService,
|
|
25
|
+
useValue: this
|
|
26
|
+
}] })));
|
|
27
|
+
modal.instance.reveal();
|
|
28
|
+
return modal;
|
|
29
|
+
}
|
|
30
|
+
_attachModalContent(component, modal) {
|
|
31
|
+
return modal.instance.attachContent(new ComponentPortal(component));
|
|
32
|
+
}
|
|
33
|
+
_createPositionStrategy(position) {
|
|
34
|
+
const strategy = new GlobalPositionStrategy().centerHorizontally();
|
|
35
|
+
if (position?.vertical === "top") strategy.top(position.offsetTop ?? "15vh");
|
|
36
|
+
else strategy.centerVertically();
|
|
37
|
+
return strategy;
|
|
38
|
+
}
|
|
39
|
+
_createOverlayRef(config) {
|
|
40
|
+
const positionStrategy = this._createPositionStrategy(config?.position);
|
|
41
|
+
return this.overlay.create({
|
|
42
|
+
hasBackdrop: true,
|
|
43
|
+
positionStrategy,
|
|
44
|
+
scrollStrategy: this.overlay.scrollStrategies.block()
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
_removeModal(modal) {
|
|
48
|
+
if (!this._modals.has(modal.modal.instance)) throw new Error("The Modal that you are trying to remove does not exist.");
|
|
49
|
+
this._modals.delete(modal.modal.instance);
|
|
50
|
+
modal.overlay.dispose();
|
|
51
|
+
}
|
|
52
|
+
_closeAllModals() {
|
|
53
|
+
Array.from(this._modals.values()).forEach((modal) => this.close(modal.modal.instance));
|
|
54
|
+
}
|
|
55
|
+
open(component, configuration) {
|
|
56
|
+
this._closeAllModals();
|
|
57
|
+
const config = {
|
|
58
|
+
...this.defaultConfiguration,
|
|
59
|
+
...configuration
|
|
60
|
+
};
|
|
61
|
+
const _ref = this._createOverlayRef(config);
|
|
62
|
+
const _modal = this._attachModal(_ref);
|
|
63
|
+
const _contentRef = this._attachModalContent(component, _modal);
|
|
64
|
+
if (configuration?.ariaLabelledBy) _modal.instance.ariaLabelledBy = configuration.ariaLabelledBy;
|
|
65
|
+
const modal = {
|
|
66
|
+
modal: _modal,
|
|
67
|
+
overlay: _ref
|
|
68
|
+
};
|
|
69
|
+
this._modals.set(modal.modal.instance, modal);
|
|
70
|
+
_ref.backdropClick().subscribe(() => config.onBackdropClicked ? config.onBackdropClicked() : this.close(modal.modal.instance));
|
|
71
|
+
return {
|
|
72
|
+
instance: _contentRef.instance,
|
|
73
|
+
close: () => this.close(modal.modal.instance),
|
|
74
|
+
afterClosed: modal.modal.instance.closedAnimationCompleted$
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
close(component) {
|
|
78
|
+
const modal = this._modals.get(component);
|
|
79
|
+
modal.overlay.detachBackdrop();
|
|
80
|
+
component.closedAnimationCompleted$.pipe(take(1)).subscribe(() => this._removeModal(modal));
|
|
81
|
+
component.hide();
|
|
82
|
+
}
|
|
83
|
+
static {
|
|
84
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
85
|
+
minVersion: "12.0.0",
|
|
86
|
+
version: "22.2.4",
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
type: DaffModalService,
|
|
89
|
+
deps: [{ token: i1.Overlay }],
|
|
90
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
static {
|
|
94
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
95
|
+
minVersion: "12.0.0",
|
|
96
|
+
version: "22.2.4",
|
|
97
|
+
ngImport: i0,
|
|
98
|
+
type: DaffModalService
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
103
|
+
minVersion: "12.0.0",
|
|
104
|
+
version: "22.2.4",
|
|
105
|
+
ngImport: i0,
|
|
106
|
+
type: DaffModalService,
|
|
107
|
+
decorators: [{ type: Injectable }],
|
|
108
|
+
ctorParameters: () => [{ type: i1.Overlay }]
|
|
109
|
+
});
|
|
110
|
+
var DaffModalComponent = class DaffModalComponent {
|
|
111
|
+
get ariaLabelledBy() {
|
|
112
|
+
return this._ariaLabelledBy;
|
|
113
|
+
}
|
|
114
|
+
set ariaLabelledBy(value) {
|
|
115
|
+
this._ariaLabelledBy = value;
|
|
116
|
+
}
|
|
117
|
+
onEscape() {
|
|
118
|
+
this.modalService.close(this);
|
|
119
|
+
}
|
|
120
|
+
constructor(modalService, _focusTrapFactory, elementRef, openDirective, _focusStack, changeDetector) {
|
|
121
|
+
this.modalService = modalService;
|
|
122
|
+
this._focusTrapFactory = _focusTrapFactory;
|
|
123
|
+
this.elementRef = elementRef;
|
|
124
|
+
this.openDirective = openDirective;
|
|
125
|
+
this._focusStack = _focusStack;
|
|
126
|
+
this.changeDetector = changeDetector;
|
|
127
|
+
this.closing = signal(false, ...ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []);
|
|
128
|
+
this._ariaLabelledBy = null;
|
|
129
|
+
this._closedAnimationCompleted = new Subject();
|
|
130
|
+
this.closedAnimationCompleted$ = this._closedAnimationCompleted.asObservable().pipe(delay(300));
|
|
131
|
+
this.openDirective.stateless = false;
|
|
132
|
+
}
|
|
133
|
+
ngAfterContentInit() {
|
|
134
|
+
this._focusTrap = this._focusTrapFactory.create(this.elementRef.nativeElement);
|
|
135
|
+
this._focusStack.push();
|
|
136
|
+
}
|
|
137
|
+
ngAfterViewInit() {
|
|
138
|
+
const focusableChild = this.elementRef.nativeElement.querySelector(daffFocusableElementsSelector);
|
|
139
|
+
if (focusableChild) focusableChild.focus();
|
|
140
|
+
else {
|
|
141
|
+
this.elementRef.nativeElement.tabIndex = 0;
|
|
142
|
+
this.elementRef.nativeElement.focus();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
attachContent(portal) {
|
|
146
|
+
return this._portalOutlet.attachComponentPortal(portal);
|
|
147
|
+
}
|
|
148
|
+
get open() {
|
|
149
|
+
return this.openDirective.open;
|
|
150
|
+
}
|
|
151
|
+
reveal() {
|
|
152
|
+
this.openDirective.reveal();
|
|
153
|
+
this.changeDetector.markForCheck();
|
|
154
|
+
}
|
|
155
|
+
hide() {
|
|
156
|
+
this.openDirective.hide();
|
|
157
|
+
this.closing.set(true);
|
|
158
|
+
this._closedAnimationCompleted.next(true);
|
|
159
|
+
this._focusTrap?.destroy();
|
|
160
|
+
this._focusStack.pop();
|
|
161
|
+
this.changeDetector.markForCheck();
|
|
162
|
+
}
|
|
163
|
+
toggle() {
|
|
164
|
+
this.openDirective.toggle();
|
|
165
|
+
this.changeDetector.markForCheck();
|
|
166
|
+
}
|
|
167
|
+
ngOnDestroy() {
|
|
168
|
+
this._closedAnimationCompleted.complete();
|
|
169
|
+
}
|
|
170
|
+
static {
|
|
171
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
172
|
+
minVersion: "12.0.0",
|
|
173
|
+
version: "22.2.4",
|
|
174
|
+
ngImport: i0,
|
|
175
|
+
type: DaffModalComponent,
|
|
176
|
+
deps: [
|
|
177
|
+
{ token: DaffModalService },
|
|
178
|
+
{ token: i2.ConfigurableFocusTrapFactory },
|
|
179
|
+
{ token: i0.ElementRef },
|
|
180
|
+
{ token: i3.DaffOpenableDirective },
|
|
181
|
+
{ token: i3.DaffFocusStackService },
|
|
182
|
+
{ token: i0.ChangeDetectorRef }
|
|
183
|
+
],
|
|
184
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
static {
|
|
188
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
189
|
+
minVersion: "14.0.0",
|
|
190
|
+
version: "22.2.4",
|
|
191
|
+
type: DaffModalComponent,
|
|
192
|
+
isStandalone: true,
|
|
193
|
+
selector: "daff-modal",
|
|
194
|
+
host: {
|
|
195
|
+
attributes: {
|
|
196
|
+
"role": "dialog",
|
|
197
|
+
"aria-modal": "true"
|
|
198
|
+
},
|
|
199
|
+
listeners: { "keydown.escape": "onEscape()" },
|
|
200
|
+
properties: {
|
|
201
|
+
"attr.aria-labelledby": "ariaLabelledBy",
|
|
202
|
+
"animate.enter": "\"opening\"",
|
|
203
|
+
"class.closing": "closing()"
|
|
204
|
+
},
|
|
205
|
+
classAttribute: "daff-modal"
|
|
206
|
+
},
|
|
207
|
+
viewQueries: [{
|
|
208
|
+
propertyName: "_portalOutlet",
|
|
209
|
+
first: true,
|
|
210
|
+
predicate: CdkPortalOutlet,
|
|
211
|
+
descendants: true,
|
|
212
|
+
static: true
|
|
213
|
+
}],
|
|
214
|
+
hostDirectives: [{
|
|
215
|
+
directive: i3.DaffOpenableDirective,
|
|
216
|
+
outputs: ["toggled", "toggled"]
|
|
217
|
+
}],
|
|
218
|
+
ngImport: i0,
|
|
219
|
+
template: "<ng-template cdkPortalOutlet></ng-template>\n",
|
|
220
|
+
styles: [".daff-modal{display:flex;flex-direction:column;justify-content:space-between;border-radius:.25rem;max-height:90vh;max-width:90vw;overflow:hidden;z-index:3}.daff-modal.opening{animation:opening .3s}@keyframes opening{0%{opacity:0}to{opacity:1}}.daff-modal.closing{opacity:0;animation:closing .3s}@keyframes closing{0%{opacity:1}to{opacity:0}}@media screen and (prefers-reduced-motion:reduce){.daff-modal.opening,.daff-modal.closing{animation:none}}@media(min-width:480px){.daff-modal{max-height:80vh;max-width:80vw}}.daff-modal>*{display:inherit;flex-direction:inherit;justify-content:inherit;border-radius:inherit;max-height:inherit;max-width:inherit;overflow:inherit;z-index:inherit}@media(min-width:480px){.daff-modal>*{max-height:inherit;max-width:inherit}}.daff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;position:relative}.daff-modal-header .daff-modal-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.25rem;font-weight:500;line-height:1.5rem;margin:0;padding:0 2rem 0 0}.daff-modal-header__dismiss-button{position:absolute;right:.5rem;top:.75rem}.daff-modal-content{display:block;flex-grow:1;max-height:60vh;overflow-y:auto;padding:1.5rem}.daff-modal-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:1.5rem}.daff-modal-content+.daff-modal-actions{padding:0 1.5rem 1.5rem}.daff-modal-header+.daff-modal-content{padding-top:0}\n"],
|
|
221
|
+
dependencies: [
|
|
222
|
+
{
|
|
223
|
+
kind: "ngmodule",
|
|
224
|
+
type: PortalModule
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
kind: "directive",
|
|
228
|
+
type: i4.CdkPortalOutlet,
|
|
229
|
+
selector: "[cdkPortalOutlet]",
|
|
230
|
+
inputs: ["cdkPortalOutlet"],
|
|
231
|
+
outputs: ["attached"],
|
|
232
|
+
exportAs: ["cdkPortalOutlet"]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
kind: "ngmodule",
|
|
236
|
+
type: OverlayModule
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
240
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
245
|
+
minVersion: "12.0.0",
|
|
246
|
+
version: "22.2.4",
|
|
247
|
+
ngImport: i0,
|
|
248
|
+
type: DaffModalComponent,
|
|
249
|
+
decorators: [{
|
|
250
|
+
type: Component,
|
|
251
|
+
args: [{
|
|
252
|
+
selector: "daff-modal",
|
|
253
|
+
hostDirectives: [{
|
|
254
|
+
directive: DaffOpenableDirective,
|
|
255
|
+
outputs: ["toggled"]
|
|
256
|
+
}],
|
|
257
|
+
host: {
|
|
258
|
+
"class": "daff-modal",
|
|
259
|
+
"role": "dialog",
|
|
260
|
+
"aria-modal": "true",
|
|
261
|
+
"[attr.aria-labelledby]": "ariaLabelledBy",
|
|
262
|
+
"(keydown.escape)": "onEscape()",
|
|
263
|
+
"[animate.enter]": "\"opening\"",
|
|
264
|
+
"[class.closing]": "closing()"
|
|
265
|
+
},
|
|
266
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
267
|
+
encapsulation: ViewEncapsulation.None,
|
|
268
|
+
imports: [PortalModule, OverlayModule],
|
|
269
|
+
template: "<ng-template cdkPortalOutlet></ng-template>\n",
|
|
270
|
+
styles: [".daff-modal{display:flex;flex-direction:column;justify-content:space-between;border-radius:.25rem;max-height:90vh;max-width:90vw;overflow:hidden;z-index:3}.daff-modal.opening{animation:opening .3s}@keyframes opening{0%{opacity:0}to{opacity:1}}.daff-modal.closing{opacity:0;animation:closing .3s}@keyframes closing{0%{opacity:1}to{opacity:0}}@media screen and (prefers-reduced-motion:reduce){.daff-modal.opening,.daff-modal.closing{animation:none}}@media(min-width:480px){.daff-modal{max-height:80vh;max-width:80vw}}.daff-modal>*{display:inherit;flex-direction:inherit;justify-content:inherit;border-radius:inherit;max-height:inherit;max-width:inherit;overflow:inherit;z-index:inherit}@media(min-width:480px){.daff-modal>*{max-height:inherit;max-width:inherit}}.daff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;position:relative}.daff-modal-header .daff-modal-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.25rem;font-weight:500;line-height:1.5rem;margin:0;padding:0 2rem 0 0}.daff-modal-header__dismiss-button{position:absolute;right:.5rem;top:.75rem}.daff-modal-content{display:block;flex-grow:1;max-height:60vh;overflow-y:auto;padding:1.5rem}.daff-modal-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:1.5rem}.daff-modal-content+.daff-modal-actions{padding:0 1.5rem 1.5rem}.daff-modal-header+.daff-modal-content{padding-top:0}\n"]
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
ctorParameters: () => [
|
|
274
|
+
{ type: DaffModalService },
|
|
275
|
+
{ type: i2.ConfigurableFocusTrapFactory },
|
|
276
|
+
{ type: i0.ElementRef },
|
|
277
|
+
{ type: i3.DaffOpenableDirective },
|
|
278
|
+
{ type: i3.DaffFocusStackService },
|
|
279
|
+
{ type: i0.ChangeDetectorRef }
|
|
280
|
+
],
|
|
281
|
+
propDecorators: { _portalOutlet: [{
|
|
282
|
+
type: ViewChild,
|
|
283
|
+
args: [CdkPortalOutlet, { static: true }]
|
|
284
|
+
}] }
|
|
285
|
+
});
|
|
286
|
+
var DaffModalActionsComponent = class DaffModalActionsComponent {
|
|
287
|
+
static {
|
|
288
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
289
|
+
minVersion: "12.0.0",
|
|
290
|
+
version: "22.2.4",
|
|
291
|
+
ngImport: i0,
|
|
292
|
+
type: DaffModalActionsComponent,
|
|
293
|
+
deps: [],
|
|
294
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
static {
|
|
298
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
299
|
+
minVersion: "14.0.0",
|
|
300
|
+
version: "22.2.4",
|
|
301
|
+
type: DaffModalActionsComponent,
|
|
302
|
+
isStandalone: true,
|
|
303
|
+
selector: "daff-modal-actions",
|
|
304
|
+
host: { classAttribute: "daff-modal-actions" },
|
|
305
|
+
ngImport: i0,
|
|
306
|
+
template: "<ng-content></ng-content>",
|
|
307
|
+
isInline: true,
|
|
308
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
313
|
+
minVersion: "12.0.0",
|
|
314
|
+
version: "22.2.4",
|
|
315
|
+
ngImport: i0,
|
|
316
|
+
type: DaffModalActionsComponent,
|
|
317
|
+
decorators: [{
|
|
318
|
+
type: Component,
|
|
319
|
+
args: [{
|
|
320
|
+
selector: "daff-modal-actions",
|
|
321
|
+
template: "<ng-content></ng-content>",
|
|
322
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
323
|
+
host: { "class": "daff-modal-actions" }
|
|
324
|
+
}]
|
|
325
|
+
}]
|
|
326
|
+
});
|
|
327
|
+
var DaffModalCloseDirective = class DaffModalCloseDirective {
|
|
328
|
+
constructor(modalService, modal) {
|
|
329
|
+
this.modalService = modalService;
|
|
330
|
+
this.modal = modal;
|
|
331
|
+
}
|
|
332
|
+
onClick(event) {
|
|
333
|
+
if (this.modal) this.modalService.close(this.modal);
|
|
334
|
+
}
|
|
335
|
+
static {
|
|
336
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
337
|
+
minVersion: "12.0.0",
|
|
338
|
+
version: "22.2.4",
|
|
339
|
+
ngImport: i0,
|
|
340
|
+
type: DaffModalCloseDirective,
|
|
341
|
+
deps: [{ token: DaffModalService }, {
|
|
342
|
+
token: DaffModalComponent,
|
|
343
|
+
optional: true
|
|
344
|
+
}],
|
|
345
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
static {
|
|
349
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
350
|
+
minVersion: "14.0.0",
|
|
351
|
+
version: "22.2.4",
|
|
352
|
+
type: DaffModalCloseDirective,
|
|
353
|
+
isStandalone: true,
|
|
354
|
+
selector: "button[daffModalClose]",
|
|
355
|
+
host: {
|
|
356
|
+
attributes: { "type": "button" },
|
|
357
|
+
listeners: { "click": "onClick($event)" }
|
|
358
|
+
},
|
|
359
|
+
ngImport: i0
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
364
|
+
minVersion: "12.0.0",
|
|
365
|
+
version: "22.2.4",
|
|
366
|
+
ngImport: i0,
|
|
367
|
+
type: DaffModalCloseDirective,
|
|
368
|
+
decorators: [{
|
|
369
|
+
type: Directive,
|
|
370
|
+
args: [{
|
|
371
|
+
selector: "button[daffModalClose]",
|
|
372
|
+
host: {
|
|
373
|
+
"type": "button",
|
|
374
|
+
"(click)": "onClick($event)"
|
|
375
|
+
}
|
|
376
|
+
}]
|
|
377
|
+
}],
|
|
378
|
+
ctorParameters: () => [{ type: DaffModalService }, {
|
|
379
|
+
type: DaffModalComponent,
|
|
380
|
+
decorators: [{ type: Optional }]
|
|
381
|
+
}]
|
|
382
|
+
});
|
|
383
|
+
var DaffModalContentComponent = class DaffModalContentComponent {
|
|
384
|
+
static {
|
|
385
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
386
|
+
minVersion: "12.0.0",
|
|
387
|
+
version: "22.2.4",
|
|
388
|
+
ngImport: i0,
|
|
389
|
+
type: DaffModalContentComponent,
|
|
390
|
+
deps: [],
|
|
391
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
static {
|
|
395
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
396
|
+
minVersion: "14.0.0",
|
|
397
|
+
version: "22.2.4",
|
|
398
|
+
type: DaffModalContentComponent,
|
|
399
|
+
isStandalone: true,
|
|
400
|
+
selector: "daff-modal-content",
|
|
401
|
+
host: { classAttribute: "daff-modal-content" },
|
|
402
|
+
ngImport: i0,
|
|
403
|
+
template: "<ng-content></ng-content>",
|
|
404
|
+
isInline: true,
|
|
405
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
410
|
+
minVersion: "12.0.0",
|
|
411
|
+
version: "22.2.4",
|
|
412
|
+
ngImport: i0,
|
|
413
|
+
type: DaffModalContentComponent,
|
|
414
|
+
decorators: [{
|
|
415
|
+
type: Component,
|
|
416
|
+
args: [{
|
|
417
|
+
selector: "daff-modal-content",
|
|
418
|
+
template: "<ng-content></ng-content>",
|
|
419
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
420
|
+
host: { "class": "daff-modal-content" }
|
|
421
|
+
}]
|
|
422
|
+
}]
|
|
423
|
+
});
|
|
424
|
+
var DaffModalHeaderComponent = class DaffModalHeaderComponent {
|
|
425
|
+
constructor() {
|
|
426
|
+
this.faXmark = faXmark;
|
|
427
|
+
this.dismissible = true;
|
|
428
|
+
}
|
|
429
|
+
static {
|
|
430
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
431
|
+
minVersion: "12.0.0",
|
|
432
|
+
version: "22.2.4",
|
|
433
|
+
ngImport: i0,
|
|
434
|
+
type: DaffModalHeaderComponent,
|
|
435
|
+
deps: [],
|
|
436
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
static {
|
|
440
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
441
|
+
minVersion: "17.0.0",
|
|
442
|
+
version: "22.2.4",
|
|
443
|
+
type: DaffModalHeaderComponent,
|
|
444
|
+
isStandalone: true,
|
|
445
|
+
selector: "daff-modal-header",
|
|
446
|
+
inputs: { dismissible: "dismissible" },
|
|
447
|
+
host: { classAttribute: "daff-modal-header" },
|
|
448
|
+
ngImport: i0,
|
|
449
|
+
template: "<ng-content select=\"[daffModalTitle]\"></ng-content>\n@if (dismissible) {\n <button daff-icon-button color=\"theme-contrast\"\n daffModalClose\n class=\"daff-modal-header__dismiss-button\"\n aria-label=\"Close modal\">\n <fa-icon [icon]=\"faXmark\" size=\"lg\"></fa-icon>\n </button>\n}",
|
|
450
|
+
dependencies: [
|
|
451
|
+
{
|
|
452
|
+
kind: "component",
|
|
453
|
+
type: DaffIconButtonComponent,
|
|
454
|
+
selector: "button[daff-icon-button],a[daff-icon-button]"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
kind: "component",
|
|
458
|
+
type: FaIconComponent,
|
|
459
|
+
selector: "fa-icon",
|
|
460
|
+
inputs: [
|
|
461
|
+
"icon",
|
|
462
|
+
"title",
|
|
463
|
+
"animation",
|
|
464
|
+
"mask",
|
|
465
|
+
"flip",
|
|
466
|
+
"size",
|
|
467
|
+
"pull",
|
|
468
|
+
"border",
|
|
469
|
+
"inverse",
|
|
470
|
+
"symbol",
|
|
471
|
+
"rotate",
|
|
472
|
+
"fixedWidth",
|
|
473
|
+
"transform",
|
|
474
|
+
"a11yRole"
|
|
475
|
+
],
|
|
476
|
+
outputs: [
|
|
477
|
+
"iconChange",
|
|
478
|
+
"titleChange",
|
|
479
|
+
"animationChange",
|
|
480
|
+
"maskChange",
|
|
481
|
+
"flipChange",
|
|
482
|
+
"sizeChange",
|
|
483
|
+
"pullChange",
|
|
484
|
+
"borderChange",
|
|
485
|
+
"inverseChange",
|
|
486
|
+
"symbolChange",
|
|
487
|
+
"rotateChange",
|
|
488
|
+
"fixedWidthChange",
|
|
489
|
+
"transformChange",
|
|
490
|
+
"a11yRoleChange"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
kind: "directive",
|
|
495
|
+
type: DaffModalCloseDirective,
|
|
496
|
+
selector: "button[daffModalClose]"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
500
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
505
|
+
minVersion: "12.0.0",
|
|
506
|
+
version: "22.2.4",
|
|
507
|
+
ngImport: i0,
|
|
508
|
+
type: DaffModalHeaderComponent,
|
|
509
|
+
decorators: [{
|
|
510
|
+
type: Component,
|
|
511
|
+
args: [{
|
|
512
|
+
selector: "daff-modal-header",
|
|
513
|
+
encapsulation: ViewEncapsulation.None,
|
|
514
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
515
|
+
host: { "class": "daff-modal-header" },
|
|
516
|
+
imports: [
|
|
517
|
+
DaffIconButtonComponent,
|
|
518
|
+
FaIconComponent,
|
|
519
|
+
DaffModalCloseDirective
|
|
520
|
+
],
|
|
521
|
+
template: "<ng-content select=\"[daffModalTitle]\"></ng-content>\n@if (dismissible) {\n <button daff-icon-button color=\"theme-contrast\"\n daffModalClose\n class=\"daff-modal-header__dismiss-button\"\n aria-label=\"Close modal\">\n <fa-icon [icon]=\"faXmark\" size=\"lg\"></fa-icon>\n </button>\n}"
|
|
522
|
+
}]
|
|
523
|
+
}],
|
|
524
|
+
propDecorators: { dismissible: [{ type: Input }] }
|
|
525
|
+
});
|
|
341
526
|
let modalTitleId = 0;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
i0.ɵɵ
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
527
|
+
var DaffModalTitleDirective = class DaffModalTitleDirective {
|
|
528
|
+
constructor(modal) {
|
|
529
|
+
this.modal = modal;
|
|
530
|
+
this._id = "";
|
|
531
|
+
modalTitleId++;
|
|
532
|
+
this._id = "daff-modal-title-" + modalTitleId;
|
|
533
|
+
if (this.modal) this.modal.ariaLabelledBy = this._id;
|
|
534
|
+
}
|
|
535
|
+
static {
|
|
536
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
537
|
+
minVersion: "12.0.0",
|
|
538
|
+
version: "22.2.4",
|
|
539
|
+
ngImport: i0,
|
|
540
|
+
type: DaffModalTitleDirective,
|
|
541
|
+
deps: [{
|
|
542
|
+
token: DaffModalComponent,
|
|
543
|
+
optional: true
|
|
544
|
+
}],
|
|
545
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
static {
|
|
549
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
550
|
+
minVersion: "14.0.0",
|
|
551
|
+
version: "22.2.4",
|
|
552
|
+
type: DaffModalTitleDirective,
|
|
553
|
+
isStandalone: true,
|
|
554
|
+
selector: "[daffModalTitle]",
|
|
555
|
+
host: {
|
|
556
|
+
properties: { "attr.id": "_id" },
|
|
557
|
+
classAttribute: "daff-modal-title"
|
|
558
|
+
},
|
|
559
|
+
ngImport: i0
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
564
|
+
minVersion: "12.0.0",
|
|
565
|
+
version: "22.2.4",
|
|
566
|
+
ngImport: i0,
|
|
567
|
+
type: DaffModalTitleDirective,
|
|
568
|
+
decorators: [{
|
|
569
|
+
type: Directive,
|
|
570
|
+
args: [{
|
|
571
|
+
selector: "[daffModalTitle]",
|
|
572
|
+
host: {
|
|
573
|
+
class: "daff-modal-title",
|
|
574
|
+
"[attr.id]": "_id"
|
|
575
|
+
}
|
|
576
|
+
}]
|
|
577
|
+
}],
|
|
578
|
+
ctorParameters: () => [{
|
|
579
|
+
type: DaffModalComponent,
|
|
580
|
+
decorators: [{ type: Optional }]
|
|
581
|
+
}]
|
|
582
|
+
});
|
|
583
|
+
var DaffModalModule = class DaffModalModule {
|
|
584
|
+
static {
|
|
585
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
586
|
+
minVersion: "12.0.0",
|
|
587
|
+
version: "22.2.4",
|
|
588
|
+
ngImport: i0,
|
|
589
|
+
type: DaffModalModule,
|
|
590
|
+
deps: [],
|
|
591
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
static {
|
|
595
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
596
|
+
minVersion: "14.0.0",
|
|
597
|
+
version: "22.2.4",
|
|
598
|
+
ngImport: i0,
|
|
599
|
+
type: DaffModalModule,
|
|
600
|
+
imports: [
|
|
601
|
+
CommonModule,
|
|
602
|
+
PortalModule,
|
|
603
|
+
OverlayModule,
|
|
604
|
+
DaffButtonModule,
|
|
605
|
+
FontAwesomeModule,
|
|
606
|
+
DaffModalComponent,
|
|
607
|
+
DaffModalHeaderComponent,
|
|
608
|
+
DaffModalTitleDirective,
|
|
609
|
+
DaffModalContentComponent,
|
|
610
|
+
DaffModalActionsComponent,
|
|
611
|
+
DaffModalCloseDirective
|
|
612
|
+
],
|
|
613
|
+
exports: [
|
|
614
|
+
DaffModalComponent,
|
|
615
|
+
DaffModalHeaderComponent,
|
|
616
|
+
DaffModalTitleDirective,
|
|
617
|
+
DaffModalContentComponent,
|
|
618
|
+
DaffModalActionsComponent,
|
|
619
|
+
DaffModalCloseDirective
|
|
620
|
+
]
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
static {
|
|
624
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
625
|
+
minVersion: "12.0.0",
|
|
626
|
+
version: "22.2.4",
|
|
627
|
+
ngImport: i0,
|
|
628
|
+
type: DaffModalModule,
|
|
629
|
+
providers: [DaffModalService],
|
|
630
|
+
imports: [
|
|
631
|
+
CommonModule,
|
|
632
|
+
PortalModule,
|
|
633
|
+
OverlayModule,
|
|
634
|
+
DaffButtonModule,
|
|
635
|
+
FontAwesomeModule,
|
|
636
|
+
DaffModalComponent,
|
|
637
|
+
DaffModalHeaderComponent
|
|
638
|
+
]
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
643
|
+
minVersion: "12.0.0",
|
|
644
|
+
version: "22.2.4",
|
|
645
|
+
ngImport: i0,
|
|
646
|
+
type: DaffModalModule,
|
|
647
|
+
decorators: [{
|
|
648
|
+
type: NgModule,
|
|
649
|
+
args: [{
|
|
650
|
+
imports: [
|
|
651
|
+
CommonModule,
|
|
652
|
+
PortalModule,
|
|
653
|
+
OverlayModule,
|
|
654
|
+
DaffButtonModule,
|
|
655
|
+
FontAwesomeModule,
|
|
656
|
+
DaffModalComponent,
|
|
657
|
+
DaffModalHeaderComponent,
|
|
658
|
+
DaffModalTitleDirective,
|
|
659
|
+
DaffModalContentComponent,
|
|
660
|
+
DaffModalActionsComponent,
|
|
661
|
+
DaffModalCloseDirective
|
|
662
|
+
],
|
|
663
|
+
exports: [
|
|
664
|
+
DaffModalComponent,
|
|
665
|
+
DaffModalHeaderComponent,
|
|
666
|
+
DaffModalTitleDirective,
|
|
667
|
+
DaffModalContentComponent,
|
|
668
|
+
DaffModalActionsComponent,
|
|
669
|
+
DaffModalCloseDirective
|
|
670
|
+
],
|
|
671
|
+
providers: [DaffModalService]
|
|
672
|
+
}]
|
|
673
|
+
}]
|
|
674
|
+
});
|
|
441
675
|
const DAFF_MODAL_COMPONENTS = [
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
676
|
+
DaffModalHeaderComponent,
|
|
677
|
+
DaffModalTitleDirective,
|
|
678
|
+
DaffModalContentComponent,
|
|
679
|
+
DaffModalActionsComponent,
|
|
680
|
+
DaffModalCloseDirective
|
|
447
681
|
];
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Generated bundle index. Do not edit.
|
|
451
|
-
*/
|
|
452
|
-
|
|
453
682
|
export { DAFF_MODAL_COMPONENTS, DaffModalActionsComponent, DaffModalCloseDirective, DaffModalComponent, DaffModalContentComponent, DaffModalHeaderComponent, DaffModalModule, DaffModalService, DaffModalTitleDirective };
|
|
454
|
-
|
|
683
|
+
|
|
684
|
+
//# sourceMappingURL=daffodil-design-modal.mjs.map
|