@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,229 +1,379 @@
|
|
|
1
|
-
import { CommonModule } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { FaIconComponent, FontAwesomeModule } from
|
|
5
|
-
import * as i1 from
|
|
6
|
-
import {
|
|
7
|
-
import { faTimes } from
|
|
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
|
-
|
|
1
|
+
import { CommonModule } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, Directive, NgModule, ViewEncapsulation, contentChild, input, output } from "@angular/core";
|
|
4
|
+
import { FaIconComponent, FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
|
5
|
+
import * as i1 from "@daffodil/design";
|
|
6
|
+
import { DaffArticleEncapsulatedDirective, DaffOrientableDirective, DaffPrefixDirective, DaffPrefixSuffixModule, DaffStatusEnum, DaffStatusableDirective } from "@daffodil/design";
|
|
7
|
+
import { faTimes } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
+
var DaffNotificationActionsDirective = class DaffNotificationActionsDirective {
|
|
9
|
+
static {
|
|
10
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
|
+
minVersion: "12.0.0",
|
|
12
|
+
version: "22.2.4",
|
|
13
|
+
ngImport: i0,
|
|
14
|
+
type: DaffNotificationActionsDirective,
|
|
15
|
+
deps: [],
|
|
16
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
21
|
+
minVersion: "14.0.0",
|
|
22
|
+
version: "22.2.4",
|
|
23
|
+
type: DaffNotificationActionsDirective,
|
|
24
|
+
isStandalone: true,
|
|
25
|
+
selector: "[daffNotificationActions]",
|
|
26
|
+
host: { classAttribute: "daff-notification__actions" },
|
|
27
|
+
ngImport: i0
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
32
|
+
minVersion: "12.0.0",
|
|
33
|
+
version: "22.2.4",
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
type: DaffNotificationActionsDirective,
|
|
36
|
+
decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: "[daffNotificationActions]",
|
|
40
|
+
host: { "class": "daff-notification__actions" }
|
|
41
|
+
}]
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
44
|
+
var DaffNotificationComponent = class DaffNotificationComponent {
|
|
45
|
+
get role() {
|
|
46
|
+
return this.statusDirective.status === DaffStatusEnum.Warn || this.statusDirective.status === DaffStatusEnum.Critical ? "alert" : "status";
|
|
47
|
+
}
|
|
48
|
+
constructor(statusDirective, orientation) {
|
|
49
|
+
this.statusDirective = statusDirective;
|
|
50
|
+
this.orientation = orientation;
|
|
51
|
+
this.faTimes = faTimes;
|
|
52
|
+
this._prefix = contentChild(DaffPrefixDirective, ...ngDevMode ? [{ debugName: "_prefix" }] : /* istanbul ignore next */ []);
|
|
53
|
+
this._actions = contentChild(DaffNotificationActionsDirective, ...ngDevMode ? [{ debugName: "_actions" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this.dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
55
|
+
this.closeNotification = output();
|
|
56
|
+
this.orientation.defaultOrientation = "vertical";
|
|
57
|
+
}
|
|
58
|
+
onCloseNotification(event) {
|
|
59
|
+
this.closeNotification.emit();
|
|
60
|
+
}
|
|
61
|
+
static {
|
|
62
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
63
|
+
minVersion: "12.0.0",
|
|
64
|
+
version: "22.2.4",
|
|
65
|
+
ngImport: i0,
|
|
66
|
+
type: DaffNotificationComponent,
|
|
67
|
+
deps: [{ token: i1.DaffStatusableDirective }, { token: i1.DaffOrientableDirective }],
|
|
68
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
static {
|
|
72
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
73
|
+
minVersion: "17.0.0",
|
|
74
|
+
version: "22.2.4",
|
|
75
|
+
type: DaffNotificationComponent,
|
|
76
|
+
isStandalone: true,
|
|
77
|
+
selector: "daff-notification",
|
|
78
|
+
inputs: { dismissible: {
|
|
79
|
+
classPropertyName: "dismissible",
|
|
80
|
+
publicName: "dismissible",
|
|
81
|
+
isSignal: true,
|
|
82
|
+
isRequired: false,
|
|
83
|
+
transformFunction: null
|
|
84
|
+
} },
|
|
85
|
+
outputs: { closeNotification: "closeNotification" },
|
|
86
|
+
host: {
|
|
87
|
+
attributes: { "tabindex": "0" },
|
|
88
|
+
properties: {
|
|
89
|
+
"class.dismissible": "dismissible()",
|
|
90
|
+
"attr.role": "role"
|
|
91
|
+
},
|
|
92
|
+
classAttribute: "daff-notification"
|
|
93
|
+
},
|
|
94
|
+
queries: [{
|
|
95
|
+
propertyName: "_prefix",
|
|
96
|
+
first: true,
|
|
97
|
+
predicate: DaffPrefixDirective,
|
|
98
|
+
descendants: true,
|
|
99
|
+
isSignal: true
|
|
100
|
+
}, {
|
|
101
|
+
propertyName: "_actions",
|
|
102
|
+
first: true,
|
|
103
|
+
predicate: DaffNotificationActionsDirective,
|
|
104
|
+
descendants: true,
|
|
105
|
+
isSignal: true
|
|
106
|
+
}],
|
|
107
|
+
hostDirectives: [
|
|
108
|
+
{ directive: i1.DaffArticleEncapsulatedDirective },
|
|
109
|
+
{
|
|
110
|
+
directive: i1.DaffStatusableDirective,
|
|
111
|
+
inputs: ["status", "status"]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
directive: i1.DaffOrientableDirective,
|
|
115
|
+
inputs: ["orientation", "orientation"]
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
ngImport: i0,
|
|
119
|
+
template: "@if (_prefix()) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n<div class=\"daff-notification__body\">\n <div class=\"daff-notification__content\">\n <ng-content select=\"[daffNotificationTitle]\"></ng-content>\n <ng-content select=\"[daffNotificationMessage]\"></ng-content>\n </div>\n @if (_actions()) {\n <ng-content select=\"[daffNotificationActions]\"></ng-content>\n }\n</div>\n@if (dismissible()) {\n <button class=\"daff-notification__close-icon\" (click)=\"onCloseNotification($event)\">\n <fa-icon [icon]=\"faTimes\" [fixedWidth]=\"true\"></fa-icon>\n </button>\n}",
|
|
120
|
+
styles: [".daff-notification{display:flex;border-radius:.25rem;font-size:var(--daff-font-size-base);line-height:1.5rem;position:relative}.daff-notification .daff-prefix{padding:1rem 0 1rem 1rem}.daff-notification__close-icon{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;appearance:none;background:none;border:none;color:currentColor;margin:0;min-height:3rem;height:3rem;min-width:3rem;width:3rem}.daff-notification__body{display:flex;font-size:1rem;line-height:1.5rem;padding:1rem;width:100%}.daff-notification__content{display:flex;flex-direction:column;gap:.25rem}.daff-notification__title{font-size:var(--daff-font-size-base);font-weight:600;line-height:1.5rem}.daff-notification__message{font-size:var(--daff-font-size-base);font-weight:400;line-height:1.25rem}.daff-notification__actions{display:flex;gap:.5rem}.daff-notification.dismissible.daff-horizontal .daff-notification__actions{padding:.5rem 0}.daff-notification.daff-vertical .daff-notification__body{flex-direction:column;gap:1rem}.daff-notification.daff-horizontal .daff-prefix{padding:.75rem 0 .75rem 1rem}.daff-notification.daff-horizontal .daff-notification__message{align-self:center}.daff-notification.daff-horizontal .daff-notification__body{flex-direction:row;gap:0;padding:0}.daff-notification.daff-horizontal .daff-notification__content{flex-direction:row;flex-wrap:wrap;flex-grow:1;padding:.75rem 1rem .75rem .75rem}.daff-notification.daff-horizontal .daff-notification__actions{min-height:3rem;padding:.5rem 1rem .5rem 0;margin:0}\n"],
|
|
121
|
+
dependencies: [{
|
|
122
|
+
kind: "component",
|
|
123
|
+
type: FaIconComponent,
|
|
124
|
+
selector: "fa-icon",
|
|
125
|
+
inputs: [
|
|
126
|
+
"icon",
|
|
127
|
+
"title",
|
|
128
|
+
"animation",
|
|
129
|
+
"mask",
|
|
130
|
+
"flip",
|
|
131
|
+
"size",
|
|
132
|
+
"pull",
|
|
133
|
+
"border",
|
|
134
|
+
"inverse",
|
|
135
|
+
"symbol",
|
|
136
|
+
"rotate",
|
|
137
|
+
"fixedWidth",
|
|
138
|
+
"transform",
|
|
139
|
+
"a11yRole"
|
|
140
|
+
],
|
|
141
|
+
outputs: [
|
|
142
|
+
"iconChange",
|
|
143
|
+
"titleChange",
|
|
144
|
+
"animationChange",
|
|
145
|
+
"maskChange",
|
|
146
|
+
"flipChange",
|
|
147
|
+
"sizeChange",
|
|
148
|
+
"pullChange",
|
|
149
|
+
"borderChange",
|
|
150
|
+
"inverseChange",
|
|
151
|
+
"symbolChange",
|
|
152
|
+
"rotateChange",
|
|
153
|
+
"fixedWidthChange",
|
|
154
|
+
"transformChange",
|
|
155
|
+
"a11yRoleChange"
|
|
156
|
+
]
|
|
157
|
+
}],
|
|
158
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
159
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
164
|
+
minVersion: "12.0.0",
|
|
165
|
+
version: "22.2.4",
|
|
166
|
+
ngImport: i0,
|
|
167
|
+
type: DaffNotificationComponent,
|
|
168
|
+
decorators: [{
|
|
169
|
+
type: Component,
|
|
170
|
+
args: [{
|
|
171
|
+
selector: "daff-notification",
|
|
172
|
+
hostDirectives: [
|
|
173
|
+
{ directive: DaffArticleEncapsulatedDirective },
|
|
174
|
+
{
|
|
175
|
+
directive: DaffStatusableDirective,
|
|
176
|
+
inputs: ["status"]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
directive: DaffOrientableDirective,
|
|
180
|
+
inputs: ["orientation"]
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
host: {
|
|
184
|
+
class: "daff-notification",
|
|
185
|
+
"[class.dismissible]": "dismissible()",
|
|
186
|
+
tabindex: "0",
|
|
187
|
+
"[attr.role]": "role"
|
|
188
|
+
},
|
|
189
|
+
encapsulation: ViewEncapsulation.None,
|
|
190
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
191
|
+
imports: [FaIconComponent, DaffPrefixDirective],
|
|
192
|
+
template: "@if (_prefix()) {\n <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n<div class=\"daff-notification__body\">\n <div class=\"daff-notification__content\">\n <ng-content select=\"[daffNotificationTitle]\"></ng-content>\n <ng-content select=\"[daffNotificationMessage]\"></ng-content>\n </div>\n @if (_actions()) {\n <ng-content select=\"[daffNotificationActions]\"></ng-content>\n }\n</div>\n@if (dismissible()) {\n <button class=\"daff-notification__close-icon\" (click)=\"onCloseNotification($event)\">\n <fa-icon [icon]=\"faTimes\" [fixedWidth]=\"true\"></fa-icon>\n </button>\n}",
|
|
193
|
+
styles: [".daff-notification{display:flex;border-radius:.25rem;font-size:var(--daff-font-size-base);line-height:1.5rem;position:relative}.daff-notification .daff-prefix{padding:1rem 0 1rem 1rem}.daff-notification__close-icon{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;appearance:none;background:none;border:none;color:currentColor;margin:0;min-height:3rem;height:3rem;min-width:3rem;width:3rem}.daff-notification__body{display:flex;font-size:1rem;line-height:1.5rem;padding:1rem;width:100%}.daff-notification__content{display:flex;flex-direction:column;gap:.25rem}.daff-notification__title{font-size:var(--daff-font-size-base);font-weight:600;line-height:1.5rem}.daff-notification__message{font-size:var(--daff-font-size-base);font-weight:400;line-height:1.25rem}.daff-notification__actions{display:flex;gap:.5rem}.daff-notification.dismissible.daff-horizontal .daff-notification__actions{padding:.5rem 0}.daff-notification.daff-vertical .daff-notification__body{flex-direction:column;gap:1rem}.daff-notification.daff-horizontal .daff-prefix{padding:.75rem 0 .75rem 1rem}.daff-notification.daff-horizontal .daff-notification__message{align-self:center}.daff-notification.daff-horizontal .daff-notification__body{flex-direction:row;gap:0;padding:0}.daff-notification.daff-horizontal .daff-notification__content{flex-direction:row;flex-wrap:wrap;flex-grow:1;padding:.75rem 1rem .75rem .75rem}.daff-notification.daff-horizontal .daff-notification__actions{min-height:3rem;padding:.5rem 1rem .5rem 0;margin:0}\n"]
|
|
194
|
+
}]
|
|
195
|
+
}],
|
|
196
|
+
ctorParameters: () => [{ type: i1.DaffStatusableDirective }, { type: i1.DaffOrientableDirective }],
|
|
197
|
+
propDecorators: {
|
|
198
|
+
_prefix: [{
|
|
199
|
+
type: i0.ContentChild,
|
|
200
|
+
args: [i0.forwardRef(() => DaffPrefixDirective), { isSignal: true }]
|
|
201
|
+
}],
|
|
202
|
+
_actions: [{
|
|
203
|
+
type: i0.ContentChild,
|
|
204
|
+
args: [i0.forwardRef(() => DaffNotificationActionsDirective), { isSignal: true }]
|
|
205
|
+
}],
|
|
206
|
+
dismissible: [{
|
|
207
|
+
type: i0.Input,
|
|
208
|
+
args: [{
|
|
209
|
+
isSignal: true,
|
|
210
|
+
alias: "dismissible",
|
|
211
|
+
required: false
|
|
212
|
+
}]
|
|
213
|
+
}],
|
|
214
|
+
closeNotification: [{
|
|
215
|
+
type: i0.Output,
|
|
216
|
+
args: ["closeNotification"]
|
|
217
|
+
}]
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
var DaffNotificationMessageDirective = class DaffNotificationMessageDirective {
|
|
221
|
+
static {
|
|
222
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
223
|
+
minVersion: "12.0.0",
|
|
224
|
+
version: "22.2.4",
|
|
225
|
+
ngImport: i0,
|
|
226
|
+
type: DaffNotificationMessageDirective,
|
|
227
|
+
deps: [],
|
|
228
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
static {
|
|
232
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
233
|
+
minVersion: "14.0.0",
|
|
234
|
+
version: "22.2.4",
|
|
235
|
+
type: DaffNotificationMessageDirective,
|
|
236
|
+
isStandalone: true,
|
|
237
|
+
selector: "[daffNotificationMessage]",
|
|
238
|
+
host: { classAttribute: "daff-notification__message" },
|
|
239
|
+
ngImport: i0
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
244
|
+
minVersion: "12.0.0",
|
|
245
|
+
version: "22.2.4",
|
|
246
|
+
ngImport: i0,
|
|
247
|
+
type: DaffNotificationMessageDirective,
|
|
248
|
+
decorators: [{
|
|
249
|
+
type: Directive,
|
|
250
|
+
args: [{
|
|
251
|
+
selector: "[daffNotificationMessage]",
|
|
252
|
+
host: { "class": "daff-notification__message" }
|
|
253
|
+
}]
|
|
254
|
+
}]
|
|
255
|
+
});
|
|
256
|
+
var DaffNotificationTitleDirective = class DaffNotificationTitleDirective {
|
|
257
|
+
static {
|
|
258
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
259
|
+
minVersion: "12.0.0",
|
|
260
|
+
version: "22.2.4",
|
|
261
|
+
ngImport: i0,
|
|
262
|
+
type: DaffNotificationTitleDirective,
|
|
263
|
+
deps: [],
|
|
264
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
static {
|
|
268
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
269
|
+
minVersion: "14.0.0",
|
|
270
|
+
version: "22.2.4",
|
|
271
|
+
type: DaffNotificationTitleDirective,
|
|
272
|
+
isStandalone: true,
|
|
273
|
+
selector: "[daffNotificationTitle]",
|
|
274
|
+
host: { classAttribute: "daff-notification__title" },
|
|
275
|
+
ngImport: i0
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
280
|
+
minVersion: "12.0.0",
|
|
281
|
+
version: "22.2.4",
|
|
282
|
+
ngImport: i0,
|
|
283
|
+
type: DaffNotificationTitleDirective,
|
|
284
|
+
decorators: [{
|
|
285
|
+
type: Directive,
|
|
286
|
+
args: [{
|
|
287
|
+
selector: "[daffNotificationTitle]",
|
|
288
|
+
host: { "class": "daff-notification__title" }
|
|
289
|
+
}]
|
|
290
|
+
}]
|
|
291
|
+
});
|
|
292
|
+
var DaffNotificationModule = class DaffNotificationModule {
|
|
293
|
+
static {
|
|
294
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
295
|
+
minVersion: "12.0.0",
|
|
296
|
+
version: "22.2.4",
|
|
297
|
+
ngImport: i0,
|
|
298
|
+
type: DaffNotificationModule,
|
|
299
|
+
deps: [],
|
|
300
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
static {
|
|
304
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
305
|
+
minVersion: "14.0.0",
|
|
306
|
+
version: "22.2.4",
|
|
307
|
+
ngImport: i0,
|
|
308
|
+
type: DaffNotificationModule,
|
|
309
|
+
imports: [
|
|
310
|
+
CommonModule,
|
|
311
|
+
DaffPrefixSuffixModule,
|
|
312
|
+
FontAwesomeModule,
|
|
313
|
+
DaffNotificationComponent,
|
|
314
|
+
DaffNotificationActionsDirective,
|
|
315
|
+
DaffNotificationMessageDirective,
|
|
316
|
+
DaffNotificationTitleDirective
|
|
317
|
+
],
|
|
318
|
+
exports: [
|
|
319
|
+
DaffNotificationComponent,
|
|
320
|
+
DaffNotificationActionsDirective,
|
|
321
|
+
DaffNotificationMessageDirective,
|
|
322
|
+
DaffNotificationTitleDirective,
|
|
323
|
+
DaffPrefixSuffixModule
|
|
324
|
+
]
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
static {
|
|
328
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
329
|
+
minVersion: "12.0.0",
|
|
330
|
+
version: "22.2.4",
|
|
331
|
+
ngImport: i0,
|
|
332
|
+
type: DaffNotificationModule,
|
|
333
|
+
imports: [
|
|
334
|
+
CommonModule,
|
|
335
|
+
DaffPrefixSuffixModule,
|
|
336
|
+
FontAwesomeModule,
|
|
337
|
+
DaffNotificationComponent,
|
|
338
|
+
DaffPrefixSuffixModule
|
|
339
|
+
]
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
344
|
+
minVersion: "12.0.0",
|
|
345
|
+
version: "22.2.4",
|
|
346
|
+
ngImport: i0,
|
|
347
|
+
type: DaffNotificationModule,
|
|
348
|
+
decorators: [{
|
|
349
|
+
type: NgModule,
|
|
350
|
+
args: [{
|
|
351
|
+
imports: [
|
|
352
|
+
CommonModule,
|
|
353
|
+
DaffPrefixSuffixModule,
|
|
354
|
+
FontAwesomeModule,
|
|
355
|
+
DaffNotificationComponent,
|
|
356
|
+
DaffNotificationActionsDirective,
|
|
357
|
+
DaffNotificationMessageDirective,
|
|
358
|
+
DaffNotificationTitleDirective
|
|
359
|
+
],
|
|
360
|
+
exports: [
|
|
361
|
+
DaffNotificationComponent,
|
|
362
|
+
DaffNotificationActionsDirective,
|
|
363
|
+
DaffNotificationMessageDirective,
|
|
364
|
+
DaffNotificationTitleDirective,
|
|
365
|
+
DaffPrefixSuffixModule
|
|
366
|
+
]
|
|
367
|
+
}]
|
|
368
|
+
}]
|
|
369
|
+
});
|
|
216
370
|
const DAFF_NOTIFICATION_COMPONENTS = [
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
371
|
+
DaffNotificationComponent,
|
|
372
|
+
DaffNotificationActionsDirective,
|
|
373
|
+
DaffNotificationMessageDirective,
|
|
374
|
+
DaffNotificationTitleDirective,
|
|
375
|
+
DaffPrefixDirective
|
|
222
376
|
];
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Generated bundle index. Do not edit.
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
377
|
export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule, DaffNotificationTitleDirective };
|
|
229
|
-
|
|
378
|
+
|
|
379
|
+
//# sourceMappingURL=daffodil-design-notification.mjs.map
|