@daffodil/design 0.93.0 → 0.94.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 +0 -1
- package/accordion/src/accordion-theme.scss +2 -2
- package/article/src/article/_stops-article-cascade.scss +5 -1
- package/article/src/article-theme.scss +2 -2
- package/badge/README.md +85 -0
- package/badge/src/badge-theme.scss +197 -0
- package/beacon/README.md +61 -0
- package/beacon/src/beacon-theme.scss +61 -0
- package/breadcrumb/src/breadcrumb-theme.scss +2 -2
- package/button/src/button/basic/button-theme.scss +2 -2
- package/button/src/button/flat/flat-theme.scss +2 -2
- package/button/src/button/icon/icon-theme.scss +2 -2
- package/button/src/button/raised/raised-theme.scss +13 -13
- package/button/src/button/stroked/stroked-theme.scss +2 -2
- package/button/src/button/underline/underline-theme.scss +2 -2
- package/callout/src/callout-theme.scss +12 -2
- package/card/src/card/stroked/stroked-theme.scss +14 -22
- package/card/src/card-base-theme.scss +4 -4
- package/card/src/card-base.scss +13 -16
- package/fesm2022/daffodil-design-accordion.mjs +9 -15
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +2 -2
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-badge.mjs +87 -0
- package/fesm2022/daffodil-design-badge.mjs.map +1 -0
- package/fesm2022/daffodil-design-beacon.mjs +48 -0
- package/fesm2022/daffodil-design-beacon.mjs.map +1 -0
- package/fesm2022/daffodil-design-breadcrumb.mjs +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +1 -1
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +2 -2
- package/fesm2022/daffodil-design-card.mjs +9 -11
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field.mjs +95 -115
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +5 -7
- package/fesm2022/daffodil-design-form.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +41 -98
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +3 -3
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +16 -21
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +56 -61
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +61 -38
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +2 -2
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-native-select.mjs +3 -3
- package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +17 -20
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +71 -76
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +33 -53
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +1 -1
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +2 -2
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +17 -16
- package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +20 -29
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +86 -88
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-tag.mjs +33 -28
- package/fesm2022/daffodil-design-tag.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +18 -23
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +3 -3
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +19 -20
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +111 -80
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form/src/hint/hint-theme.scss +2 -2
- package/form-field/src/form-field-theme.scss +2 -2
- package/hero/src/hero-theme.scss +12 -2
- package/list/README.md +10 -0
- package/list/src/list-theme.scss +2 -2
- package/media-gallery/README.md +0 -5
- package/media-gallery/src/media-gallery-theme.scss +2 -2
- package/menu/README.md +5 -0
- package/menu/src/menu-theme.scss +4 -4
- package/notification/src/notification-theme.scss +2 -2
- package/package.json +1 -1
- package/paginator/src/paginator-theme.scss +2 -2
- package/progress-bar/README.md +1 -1
- package/progress-bar/src/progress-bar-theme.scss +2 -2
- package/scss/global.scss +4 -0
- package/scss/state/skeleton/_mixins.scss +2 -2
- package/scss/theme/default.scss +15 -0
- package/scss/theme.scss +4 -8
- package/scss/theming/_configure-palette.scss +5 -1
- package/scss/theming/_get-theme-mode.scss +1 -1
- package/scss/theming/_index.scss +2 -3
- package/scss/theming/_light-dark.scss +37 -12
- package/scss/theming/color-shift/_color-shift.scss +56 -0
- package/scss/theming/color-shift/_color-shift.spec.scss +107 -0
- package/scss/theming/color-shift/_index.scss +1 -0
- package/scss/theming/{_daff-theme.scss → default/_daff-theme.scss} +4 -4
- package/scss/theming/default/_index.scss +1 -0
- package/select/src/select-theme.scss +5 -3
- package/switch/src/switch-theme.scss +2 -2
- package/tabs/src/tabs-theme.scss +2 -2
- package/tag/README.md +10 -6
- package/tag/src/tag-theme.scss +102 -5
- package/toast/src/toast-theme.scss +2 -2
- package/tree/src/tree-theme.scss +2 -2
- package/types/daffodil-design-accordion.d.ts +4 -4
- package/types/daffodil-design-badge.d.ts +63 -0
- package/types/daffodil-design-beacon.d.ts +26 -0
- package/types/daffodil-design-card.d.ts +2 -2
- package/types/daffodil-design-form-field.d.ts +34 -31
- package/types/daffodil-design-form.d.ts +2 -2
- package/types/daffodil-design-image.d.ts +15 -28
- package/types/daffodil-design-list.d.ts +3 -3
- package/types/daffodil-design-media-gallery.d.ts +31 -20
- package/types/daffodil-design-menu.d.ts +51 -20
- package/types/daffodil-design-notification.d.ts +5 -6
- package/types/daffodil-design-paginator.d.ts +20 -25
- package/types/daffodil-design-progress-bar.d.ts +16 -21
- package/types/daffodil-design-spinner.d.ts +2 -2
- package/types/daffodil-design-switch.d.ts +7 -8
- package/types/daffodil-design-tabs.d.ts +29 -29
- package/types/daffodil-design-tag.d.ts +22 -16
- package/types/daffodil-design-text-snippet.d.ts +9 -9
- package/types/daffodil-design.d.ts +61 -41
- package/fesm2022/daffodil-design-loading-icon.mjs +0 -67
- package/fesm2022/daffodil-design-loading-icon.mjs.map +0 -1
- package/loading-icon/README.md +0 -59
- package/loading-icon/src/loading-icon-theme.scss +0 -103
- package/scss/theming/illuminate/illuminate.scss +0 -149
- package/scss/theming/illuminate/illuminate.spec.scss +0 -15
- package/types/daffodil-design-loading-icon.d.ts +0 -31
package/tag/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Tag
|
|
2
|
-
Tags are
|
|
2
|
+
Tags are interactive indicators and filters that can be edited or removed, used to represent selections, categories, or applied filters.
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
|
-
Tag supports flexible content projection to allow for various combinations of icons, labels, and interactive elements within a consistent container.
|
|
5
|
+
Tag supports flexible content projection to allow for various combinations of icons, labels, and interactive elements within a consistent container. Tags can be dismissed to remove a selection or filter, making them well suited for filter chips, applied search criteria, and editable selections.
|
|
6
6
|
|
|
7
7
|
<daff-docs-example-viewer example="basic-tag"></daff-docs-example-viewer>
|
|
8
8
|
|
|
@@ -36,7 +36,7 @@ A tag is composed of a wrapper, an optional prefix, a label, and an optional clo
|
|
|
36
36
|
- **`<daff-tag>`**: The wrapper component that holds all tag content.
|
|
37
37
|
- **`[daffPrefix]`**: A leading visual, typically an icon, displayed before the label.
|
|
38
38
|
- **Label**: The text content of the tag, projected as a child element.
|
|
39
|
-
- **Close button**: A trailing
|
|
39
|
+
- **Close button**: A trailing remove button, displayed when `dismissible` is `true`.
|
|
40
40
|
|
|
41
41
|
## Features
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ Set `dismissible` to `true` to display a close button. The button emits a `close
|
|
|
46
46
|
<daff-docs-example-viewer example="dismissible-tag"></daff-docs-example-viewer>
|
|
47
47
|
|
|
48
48
|
### Disabled tags
|
|
49
|
-
Set `disabled` to `true` to disable the tag. Disabled tags cannot be
|
|
49
|
+
Set `disabled` to `true` to disable the tag. Disabled tags cannot be removed.
|
|
50
50
|
|
|
51
51
|
<daff-docs-example-viewer example="disabled-tag"></daff-docs-example-viewer>
|
|
52
52
|
|
|
@@ -63,15 +63,19 @@ Use the `color` property to change the color of a tag. Supported colors: `primar
|
|
|
63
63
|
### Statuses
|
|
64
64
|
Use the `status` property to convey semantic meaning. Supported statuses: `warn`, `critical`, `info`, `success`.
|
|
65
65
|
|
|
66
|
+
> **Deprecation notice:**
|
|
67
|
+
>
|
|
68
|
+
> The `status` property is deprecated. Tags are intended for selections, categories, and applied filters, so use the `color` property instead.
|
|
69
|
+
|
|
66
70
|
<daff-docs-example-viewer example="statusable-tag"></daff-docs-example-viewer>
|
|
67
71
|
|
|
68
72
|
## Accessibility
|
|
69
73
|
|
|
70
74
|
### Built-in behavior
|
|
71
75
|
- Default tags are not interactive and do not receive focus.
|
|
72
|
-
-
|
|
76
|
+
- Removable tags include a focusable close button that can be activated with `Enter` or `Space`.
|
|
73
77
|
- Disabled tags expose `aria-disabled="true"` and ignore close button activation.
|
|
74
78
|
|
|
75
79
|
### Developer responsibilities
|
|
76
80
|
- Always provide a text label unless the icon is universally understood and accessible.
|
|
77
|
-
-
|
|
81
|
+
- Communicate meaning through the tag's label or an accessible icon, rather than relying on color alone.
|
package/tag/src/tag-theme.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// stylelint-disable selector-class-pattern
|
|
1
2
|
@use '../../scss/theming' as *;
|
|
2
3
|
|
|
3
4
|
@mixin daff-tag-theme($theme) {
|
|
@@ -14,123 +15,219 @@
|
|
|
14
15
|
$mode: daff-get-theme-mode($theme);
|
|
15
16
|
|
|
16
17
|
.daff-tag {
|
|
17
|
-
@include light($mode) {
|
|
18
|
+
@include daff-light-mode($mode) {
|
|
18
19
|
background: daff-color($neutral, 20);
|
|
19
20
|
color: $black;
|
|
20
21
|
|
|
22
|
+
&::after {
|
|
23
|
+
background: daff-color($neutral, 30);
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
&.daff-primary {
|
|
22
27
|
background: daff-color($primary, 10);
|
|
23
28
|
color: daff-color($primary, 70);
|
|
29
|
+
|
|
30
|
+
&::after {
|
|
31
|
+
background: daff-color($primary, 20);
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
&.daff-secondary {
|
|
27
36
|
background: daff-color($secondary, 10);
|
|
28
37
|
color: daff-color($secondary, 70);
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
background: daff-color($secondary, 20);
|
|
41
|
+
}
|
|
29
42
|
}
|
|
30
43
|
|
|
31
44
|
&.daff-tertiary {
|
|
32
45
|
background: daff-color($tertiary, 10);
|
|
33
46
|
color: daff-color($tertiary, 70);
|
|
47
|
+
|
|
48
|
+
&::after {
|
|
49
|
+
background: daff-color($tertiary, 20);
|
|
50
|
+
}
|
|
34
51
|
}
|
|
35
52
|
|
|
36
53
|
&.daff-dark {
|
|
37
54
|
background: daff-color($neutral, 90);
|
|
38
55
|
color: daff-color($neutral, 10);
|
|
56
|
+
|
|
57
|
+
&::after {
|
|
58
|
+
background: daff-color($neutral, 100);
|
|
59
|
+
}
|
|
39
60
|
}
|
|
40
61
|
|
|
41
62
|
&.daff-light {
|
|
42
63
|
background: daff-color($neutral, 10);
|
|
43
64
|
color: daff-color($neutral, 90);
|
|
65
|
+
|
|
66
|
+
&::after {
|
|
67
|
+
background: daff-color($neutral, 20);
|
|
68
|
+
}
|
|
44
69
|
}
|
|
45
70
|
|
|
46
71
|
&.daff-theme {
|
|
47
72
|
background: $white;
|
|
48
73
|
color: $black;
|
|
74
|
+
|
|
75
|
+
&::after {
|
|
76
|
+
background: daff-color($neutral, 20);
|
|
77
|
+
}
|
|
49
78
|
}
|
|
50
79
|
|
|
51
80
|
&.daff-theme-contrast {
|
|
52
81
|
background: $black;
|
|
53
82
|
color: $white;
|
|
83
|
+
|
|
84
|
+
&::after {
|
|
85
|
+
background: daff-color($neutral, 90);
|
|
86
|
+
}
|
|
54
87
|
}
|
|
55
88
|
|
|
56
89
|
&.daff-warn {
|
|
57
90
|
background: daff-color($warn, 10);
|
|
58
91
|
color: daff-color($warn, 70);
|
|
92
|
+
|
|
93
|
+
&::after {
|
|
94
|
+
background: daff-color($warn, 20);
|
|
95
|
+
}
|
|
59
96
|
}
|
|
60
97
|
|
|
61
98
|
&.daff-success {
|
|
62
99
|
background: daff-color($success, 10);
|
|
63
100
|
color: daff-color($success, 70);
|
|
101
|
+
|
|
102
|
+
&::after {
|
|
103
|
+
background: daff-color($success, 20);
|
|
104
|
+
}
|
|
64
105
|
}
|
|
65
106
|
|
|
66
107
|
&.daff-critical {
|
|
67
108
|
background: daff-color($critical, 10);
|
|
68
109
|
color: daff-color($critical, 70);
|
|
110
|
+
|
|
111
|
+
&::after {
|
|
112
|
+
background: daff-color($critical, 20);
|
|
113
|
+
}
|
|
69
114
|
}
|
|
70
115
|
|
|
71
116
|
&.daff-info {
|
|
72
117
|
background: daff-color($info, 10);
|
|
73
|
-
color: daff-color($info,
|
|
118
|
+
color: daff-color($info, 90);
|
|
119
|
+
|
|
120
|
+
&::after {
|
|
121
|
+
background: daff-color($info, 20);
|
|
122
|
+
}
|
|
74
123
|
}
|
|
75
124
|
}
|
|
76
125
|
|
|
77
|
-
@include dark($mode) {
|
|
78
|
-
background: daff-color($neutral,
|
|
126
|
+
@include daff-dark-mode($mode) {
|
|
127
|
+
background: daff-color($neutral, 80);
|
|
79
128
|
color: daff-color($neutral, 20);
|
|
80
129
|
|
|
130
|
+
&::after {
|
|
131
|
+
background: daff-color($neutral, 90);
|
|
132
|
+
}
|
|
133
|
+
|
|
81
134
|
&.daff-primary {
|
|
82
135
|
background: daff-color($primary, 90);
|
|
83
136
|
color: daff-color($primary, 10);
|
|
137
|
+
|
|
138
|
+
&::after {
|
|
139
|
+
background: daff-color($primary, 100);
|
|
140
|
+
}
|
|
84
141
|
}
|
|
85
142
|
|
|
86
143
|
&.daff-secondary {
|
|
87
144
|
background: daff-color($secondary, 90);
|
|
88
145
|
color: daff-color($secondary, 10);
|
|
146
|
+
|
|
147
|
+
&::after {
|
|
148
|
+
background: daff-color($secondary, 100);
|
|
149
|
+
}
|
|
89
150
|
}
|
|
90
151
|
|
|
91
152
|
&.daff-tertiary {
|
|
92
153
|
background: daff-color($tertiary, 90);
|
|
93
154
|
color: daff-color($tertiary, 10);
|
|
155
|
+
|
|
156
|
+
&::after {
|
|
157
|
+
background: daff-color($tertiary, 100);
|
|
158
|
+
}
|
|
94
159
|
}
|
|
95
160
|
|
|
96
161
|
&.daff-dark {
|
|
97
162
|
background: daff-color($neutral, 90);
|
|
98
163
|
color: daff-color($neutral, 10);
|
|
164
|
+
|
|
165
|
+
&::after {
|
|
166
|
+
background: daff-color($neutral, 100);
|
|
167
|
+
}
|
|
99
168
|
}
|
|
100
169
|
|
|
101
170
|
&.daff-light {
|
|
102
171
|
background: daff-color($neutral, 10);
|
|
103
172
|
color: daff-color($neutral, 90);
|
|
173
|
+
|
|
174
|
+
&::after {
|
|
175
|
+
background: daff-color($neutral, 30);
|
|
176
|
+
}
|
|
104
177
|
}
|
|
105
178
|
|
|
106
179
|
&.daff-theme {
|
|
107
180
|
background: $black;
|
|
108
181
|
color: $white;
|
|
182
|
+
|
|
183
|
+
&::after {
|
|
184
|
+
background: daff-color($neutral, 100);
|
|
185
|
+
}
|
|
109
186
|
}
|
|
110
187
|
|
|
111
188
|
&.daff-theme-contrast {
|
|
112
189
|
background: $white;
|
|
113
190
|
color: $black;
|
|
191
|
+
|
|
192
|
+
&::after {
|
|
193
|
+
background: daff-color($neutral, 20);
|
|
194
|
+
}
|
|
114
195
|
}
|
|
115
196
|
|
|
116
197
|
&.daff-warn {
|
|
117
198
|
background: daff-color($warn, 90);
|
|
118
199
|
color: daff-color($warn, 10);
|
|
200
|
+
|
|
201
|
+
&::after {
|
|
202
|
+
background: daff-color($warn, 100);
|
|
203
|
+
}
|
|
119
204
|
}
|
|
120
205
|
|
|
121
206
|
&.daff-success {
|
|
122
207
|
background: daff-color($success, 90);
|
|
123
208
|
color: daff-color($success, 10);
|
|
209
|
+
|
|
210
|
+
&::after {
|
|
211
|
+
background: daff-color($success, 100);
|
|
212
|
+
}
|
|
124
213
|
}
|
|
125
214
|
|
|
126
215
|
&.daff-critical {
|
|
127
216
|
background: daff-color($critical, 90);
|
|
128
217
|
color: daff-color($critical, 10);
|
|
218
|
+
|
|
219
|
+
&::after {
|
|
220
|
+
background: daff-color($critical, 100);
|
|
221
|
+
}
|
|
129
222
|
}
|
|
130
223
|
|
|
131
224
|
&.daff-info {
|
|
132
|
-
background: daff-color($info,
|
|
225
|
+
background: daff-color($info, 80);
|
|
133
226
|
color: daff-color($info, 10);
|
|
227
|
+
|
|
228
|
+
&::after {
|
|
229
|
+
background: daff-color($neutral, 80);
|
|
230
|
+
}
|
|
134
231
|
}
|
|
135
232
|
}
|
|
136
233
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
$mode: daff-get-theme-mode($theme);
|
|
13
13
|
|
|
14
14
|
.daff-toast {
|
|
15
|
-
@include light($mode) {
|
|
15
|
+
@include daff-light-mode($mode) {
|
|
16
16
|
background: daff-color($neutral, 10);
|
|
17
17
|
box-shadow: 0 -16px 24px -4px rgba($black, 0.04),
|
|
18
18
|
0 8px 24px -4px rgba($black, 0.1);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@include dark($mode) {
|
|
65
|
+
@include daff-dark-mode($mode) {
|
|
66
66
|
background: daff-color($neutral, 90);
|
|
67
67
|
box-shadow: 0 -16px 24px -4px rgba($black, 0.04),
|
|
68
68
|
0 8px 24px -4px rgba($black, 0.1);
|
package/tree/src/tree-theme.scss
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
.daff-tree-item {
|
|
12
12
|
$root: &;
|
|
13
13
|
|
|
14
|
-
@include light($mode) {
|
|
14
|
+
@include daff-light-mode($mode) {
|
|
15
15
|
background-color: $base;
|
|
16
16
|
color: daff-color($neutral, 90);
|
|
17
17
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
@include dark($mode) {
|
|
38
|
+
@include daff-dark-mode($mode) {
|
|
39
39
|
background-color: $base;
|
|
40
40
|
color: daff-color($neutral, 20);
|
|
41
41
|
|
|
@@ -43,15 +43,15 @@ declare class DaffAccordionItemComponent implements OnInit, DaffOpenable, DaffDi
|
|
|
43
43
|
/**
|
|
44
44
|
* The unique id of an accordion item. Defaults to an autogenerated value.
|
|
45
45
|
*/
|
|
46
|
-
itemId: string
|
|
46
|
+
itemId: i0.InputSignal<string>;
|
|
47
47
|
/**
|
|
48
48
|
* The unique id of an accordion item content. Defaults to an autogenerated value.
|
|
49
49
|
*/
|
|
50
|
-
contentId: string
|
|
50
|
+
contentId: i0.InputSignal<string>;
|
|
51
51
|
/**
|
|
52
52
|
* Whether or not an accordion item is initially expanded by default.
|
|
53
53
|
*/
|
|
54
|
-
initiallyExpanded: boolean
|
|
54
|
+
initiallyExpanded: i0.InputSignal<boolean>;
|
|
55
55
|
/**
|
|
56
56
|
* @docs-private
|
|
57
57
|
*
|
|
@@ -80,7 +80,7 @@ declare class DaffAccordionItemComponent implements OnInit, DaffOpenable, DaffDi
|
|
|
80
80
|
*/
|
|
81
81
|
toggle(): void;
|
|
82
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAccordionItemComponent, never>;
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffAccordionItemComponent, "daff-accordion-item", never, { "itemId": { "alias": "itemId"; "required": false; }; "contentId": { "alias": "contentId"; "required": false; }; "initiallyExpanded": { "alias": "initiallyExpanded"; "required": false; }; }, {}, never, ["[daffAccordionItemTitle]", "*"], true, [{ directive: typeof i1.DaffOpenableDirective; inputs: {}; outputs: { "toggled": "toggled"; }; }, { directive: typeof i1.DaffDisableableDirective; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffAccordionItemComponent, "daff-accordion-item", never, { "itemId": { "alias": "itemId"; "required": false; "isSignal": true; }; "contentId": { "alias": "contentId"; "required": false; "isSignal": true; }; "initiallyExpanded": { "alias": "initiallyExpanded"; "required": false; "isSignal": true; }; }, {}, never, ["[daffAccordionItemTitle]", "*"], true, [{ directive: typeof i1.DaffOpenableDirective; inputs: {}; outputs: { "toggled": "toggled"; }; }, { directive: typeof i1.DaffDisableableDirective; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@daffodil/design';
|
|
3
|
+
import { DaffSizableDirective, DaffSizeSmallType, DaffSizeMediumType, DaffSizeLargeType, DaffPrefixDirective, DaffColorableDirective } from '@daffodil/design';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The visual style of a badge.
|
|
7
|
+
*
|
|
8
|
+
* - `filled` renders a solid background (the default).
|
|
9
|
+
* - `outlined` renders a semi-transparent background with a colored border.
|
|
10
|
+
*/
|
|
11
|
+
type DaffBadgeAppearance = 'filled' | 'outlined';
|
|
12
|
+
declare enum DaffBadgeAppearanceEnum {
|
|
13
|
+
Filled = "filled",
|
|
14
|
+
Outlined = "outlined"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The size types that the DaffBadgeComponent can implement.
|
|
19
|
+
*/
|
|
20
|
+
type DaffBadgeSize = DaffSizeSmallType | DaffSizeMediumType | DaffSizeLargeType;
|
|
21
|
+
declare class DaffBadgeSizableDirective extends DaffSizableDirective<DaffBadgeSize> {
|
|
22
|
+
/**
|
|
23
|
+
* @docs-private
|
|
24
|
+
*/
|
|
25
|
+
defaultSize: DaffBadgeSize;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBadgeSizableDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffBadgeSizableDirective, never, never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* DaffBadgeComponent is a compact visual label or indicator used to
|
|
32
|
+
* convey status or display short pieces of information.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```html
|
|
36
|
+
* <daff-badge color="primary" appearance="outlined">
|
|
37
|
+
* <fa-icon [icon]="faCircleCheck" daffPrefix></fa-icon>
|
|
38
|
+
* Verified
|
|
39
|
+
* </daff-badge>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare class DaffBadgeComponent {
|
|
43
|
+
private sizableDirective;
|
|
44
|
+
private colorableDirective;
|
|
45
|
+
/**
|
|
46
|
+
* @docs-private
|
|
47
|
+
*/
|
|
48
|
+
_prefix: i0.Signal<DaffPrefixDirective>;
|
|
49
|
+
/**
|
|
50
|
+
* The visual style of the badge. Defaults to `filled`.
|
|
51
|
+
*/
|
|
52
|
+
appearance: i0.InputSignalWithTransform<DaffBadgeAppearance | DaffBadgeAppearanceEnum.Filled, "" | DaffBadgeAppearance>;
|
|
53
|
+
constructor(sizableDirective: DaffBadgeSizableDirective, colorableDirective: DaffColorableDirective);
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBadgeComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffBadgeComponent, "daff-badge", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, {}, ["_prefix"], ["[daffPrefix]", "*"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof DaffBadgeSizableDirective; inputs: { "size": "size"; }; outputs: {}; }]>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @docs-private
|
|
60
|
+
*/
|
|
61
|
+
declare const DAFF_BADGE_COMPONENTS: readonly [typeof DaffBadgeComponent, typeof DaffPrefixDirective];
|
|
62
|
+
|
|
63
|
+
export { DAFF_BADGE_COMPONENTS, DaffBadgeComponent, DaffBadgeSizableDirective };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@daffodil/design';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The cadence of the beacon ring, e.g. how long one expand-and-fade cycle takes.
|
|
6
|
+
*
|
|
7
|
+
* - `slow` - a relaxed 3.6s cycle.
|
|
8
|
+
* - `normal` - the default 2.4s cycle.
|
|
9
|
+
* - `fast` - an urgent 1.2s cycle.
|
|
10
|
+
*/
|
|
11
|
+
type DaffBeaconSpeed = 'slow' | 'normal' | 'fast';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* DaffBeaconComponent is a small indicator that draws visual attention to a specific location or element.
|
|
15
|
+
*/
|
|
16
|
+
declare class DaffBeaconComponent {
|
|
17
|
+
/**
|
|
18
|
+
* How fast the beacon pulses.
|
|
19
|
+
*/
|
|
20
|
+
speed: i0.InputSignal<DaffBeaconSpeed>;
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBeaconComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffBeaconComponent, "daff-beacon", never, { "speed": { "alias": "speed"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffSizableDirective; inputs: { "size": "size"; }; outputs: {}; }]>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { DaffBeaconComponent };
|
|
@@ -8,10 +8,10 @@ declare class DaffCardBaseDirective {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether or not a card displays a shadow.
|
|
10
10
|
*/
|
|
11
|
-
elevated: boolean
|
|
11
|
+
elevated: i0.InputSignal<boolean>;
|
|
12
12
|
constructor(orientation: DaffOrientableDirective);
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardBaseDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "elevated": { "alias": "elevated"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffOrientableDirective; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "elevated": { "alias": "elevated"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffOrientableDirective; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterContentInit, AfterContentChecked, AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as i3 from '@daffodil/design';
|
|
4
4
|
import { DaffPrefixDirective, DaffSuffixDirective, DaffFormLabelDirective } from '@daffodil/design';
|
|
@@ -11,8 +11,8 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
11
11
|
* DaffFormFieldActionDirective marks an element, typically a button, as an action attached to a form control inside `DaffFormFieldComponent`.
|
|
12
12
|
*/
|
|
13
13
|
declare class DaffFormFieldActionDirective {
|
|
14
|
-
static ɵfac:
|
|
15
|
-
static ɵdir:
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffFormFieldActionDirective, never>;
|
|
15
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DaffFormFieldActionDirective, "[daffFormFieldAction]", never, {}, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
interface DaffFormFieldState {
|
|
@@ -99,7 +99,11 @@ declare abstract class DaffFormFieldControl<T> {
|
|
|
99
99
|
emitState(deferred?: boolean): void;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
type
|
|
102
|
+
type DaffFormFieldAppearance = 'fluid' | 'fixed';
|
|
103
|
+
declare enum DaffFormFieldAppearanceEnum {
|
|
104
|
+
Fluid = "fluid",
|
|
105
|
+
Fixed = "fixed"
|
|
106
|
+
}
|
|
103
107
|
/**
|
|
104
108
|
* DaffFormFieldComponent is a wrapping component that provides consistent styling and behavior for form control elements.
|
|
105
109
|
*/
|
|
@@ -107,31 +111,32 @@ declare class DaffFormFieldComponent implements AfterContentInit, AfterContentCh
|
|
|
107
111
|
private cd;
|
|
108
112
|
elementRef: ElementRef;
|
|
109
113
|
/** @docs-private */
|
|
110
|
-
|
|
114
|
+
isNativeSelect: _angular_core.Signal<boolean>;
|
|
111
115
|
constructor(cd: ChangeDetectorRef, elementRef: ElementRef);
|
|
112
116
|
/** @docs-private */
|
|
113
|
-
_prefix: DaffPrefixDirective
|
|
117
|
+
_prefix: _angular_core.Signal<DaffPrefixDirective>;
|
|
114
118
|
/** @docs-private */
|
|
115
|
-
_suffix: DaffSuffixDirective
|
|
119
|
+
_suffix: _angular_core.Signal<DaffSuffixDirective>;
|
|
116
120
|
/**
|
|
117
121
|
* @docs-private
|
|
118
122
|
*
|
|
119
123
|
* The child form control that the form field manages.
|
|
120
124
|
*/
|
|
121
|
-
_control: DaffFormFieldControl<
|
|
125
|
+
_control: _angular_core.Signal<DaffFormFieldControl<any>>;
|
|
122
126
|
/**
|
|
123
127
|
* @docs-private
|
|
128
|
+
*
|
|
124
129
|
* @deprecated Deprecated in version 0.86.0. Will be removed in version 1.0.0.
|
|
125
130
|
*/
|
|
126
|
-
_formLabelDirective: DaffFormLabelDirective
|
|
131
|
+
_formLabelDirective: _angular_core.Signal<DaffFormLabelDirective>;
|
|
127
132
|
/**
|
|
128
133
|
* @docs-private
|
|
129
134
|
*/
|
|
130
|
-
_formFieldLabelDirective: DaffFormFieldLabelDirective
|
|
135
|
+
_formFieldLabelDirective: _angular_core.Signal<DaffFormFieldLabelDirective>;
|
|
131
136
|
/**
|
|
132
137
|
* @docs-private
|
|
133
138
|
*/
|
|
134
|
-
_action: DaffFormFieldActionDirective
|
|
139
|
+
_action: _angular_core.Signal<DaffFormFieldActionDirective>;
|
|
135
140
|
/**
|
|
136
141
|
* @docs-private
|
|
137
142
|
*/
|
|
@@ -146,28 +151,28 @@ declare class DaffFormFieldComponent implements AfterContentInit, AfterContentCh
|
|
|
146
151
|
* Tracking property to keep a record of whether or not the
|
|
147
152
|
* form field should be marked as error.
|
|
148
153
|
*/
|
|
149
|
-
isError: boolean
|
|
154
|
+
isError: _angular_core.WritableSignal<boolean>;
|
|
150
155
|
/**
|
|
151
156
|
* @docs-private
|
|
152
157
|
*
|
|
153
158
|
* Tracking property to keep a record of whether or not the
|
|
154
159
|
* form field contains any user input.
|
|
155
160
|
*/
|
|
156
|
-
isFilled: boolean
|
|
161
|
+
isFilled: _angular_core.WritableSignal<boolean>;
|
|
157
162
|
/**
|
|
158
163
|
* @docs-private
|
|
159
164
|
*
|
|
160
165
|
* Tracking property to keep a record of whether or not the
|
|
161
166
|
* form field should be marked as disabled.
|
|
162
167
|
*/
|
|
163
|
-
isDisabled: boolean
|
|
168
|
+
isDisabled: _angular_core.WritableSignal<boolean>;
|
|
164
169
|
/**
|
|
165
170
|
* @docs-private
|
|
166
171
|
*
|
|
167
172
|
* Tracking property to keep a record of whether or not the
|
|
168
173
|
* form field should be marked as valid.
|
|
169
174
|
*/
|
|
170
|
-
isValid: boolean
|
|
175
|
+
isValid: _angular_core.WritableSignal<boolean>;
|
|
171
176
|
/**
|
|
172
177
|
* @docs-private
|
|
173
178
|
*
|
|
@@ -178,47 +183,45 @@ declare class DaffFormFieldComponent implements AfterContentInit, AfterContentCh
|
|
|
178
183
|
* @docs-private
|
|
179
184
|
*/
|
|
180
185
|
get isRaised(): boolean;
|
|
181
|
-
private _appearance;
|
|
182
186
|
/**
|
|
183
187
|
* The appearance of the form field. Defaults to `fluid`.
|
|
184
188
|
*/
|
|
185
|
-
|
|
186
|
-
set appearance(value: DaffFormFieldApperanace);
|
|
189
|
+
appearance: _angular_core.InputSignalWithTransform<DaffFormFieldAppearance | DaffFormFieldAppearanceEnum.Fluid, "" | DaffFormFieldAppearance>;
|
|
187
190
|
/**
|
|
188
191
|
* @docs-private
|
|
189
192
|
*/
|
|
190
|
-
|
|
193
|
+
isFixed: _angular_core.Signal<boolean>;
|
|
191
194
|
/**
|
|
192
195
|
* The unique id of the form field. Defaults to an autogenerated value. When using this,
|
|
193
196
|
* it's your responsibility to ensure that the id for each form field is unique.
|
|
194
197
|
*
|
|
195
198
|
* It gets assigned to the `for` attribute on the `<label>` inside of the form field.
|
|
196
199
|
*/
|
|
197
|
-
id: string
|
|
200
|
+
id: _angular_core.InputSignal<string>;
|
|
198
201
|
/**
|
|
199
202
|
* @docs-private
|
|
200
203
|
*/
|
|
201
|
-
hasHint
|
|
204
|
+
hasHint: _angular_core.Signal<boolean>;
|
|
202
205
|
/**
|
|
203
206
|
* @docs-private
|
|
204
207
|
*/
|
|
205
|
-
hintId: string
|
|
208
|
+
hintId: _angular_core.Signal<string>;
|
|
206
209
|
/**
|
|
207
210
|
* @docs-private
|
|
208
211
|
*/
|
|
209
|
-
hasErrorMessage
|
|
212
|
+
hasErrorMessage: _angular_core.Signal<boolean>;
|
|
210
213
|
/**
|
|
211
214
|
* @docs-private
|
|
212
215
|
*/
|
|
213
|
-
errorMessageId: string
|
|
216
|
+
errorMessageId: _angular_core.Signal<string>;
|
|
214
217
|
/**
|
|
215
218
|
* @docs-private
|
|
216
219
|
*/
|
|
217
|
-
|
|
220
|
+
autoLabelId: _angular_core.Signal<string>;
|
|
218
221
|
/**
|
|
219
222
|
* @docs-private
|
|
220
223
|
*/
|
|
221
|
-
|
|
224
|
+
customId: _angular_core.Signal<string>;
|
|
222
225
|
/**
|
|
223
226
|
* @docs-private
|
|
224
227
|
*
|
|
@@ -245,17 +248,17 @@ declare class DaffFormFieldComponent implements AfterContentInit, AfterContentCh
|
|
|
245
248
|
* validation of usage.
|
|
246
249
|
*/
|
|
247
250
|
ngAfterContentChecked(): void;
|
|
248
|
-
static ɵfac:
|
|
249
|
-
static ɵcmp:
|
|
251
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
|
|
252
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, ["_prefix", "_suffix", "_control", "_formLabelDirective", "_formFieldLabelDirective", "_action", "_hint", "_error"], ["*", "[daffPrefix]", "*", "[daffSuffix]", "daff-hint", "daff-error-message", "[daffFormFieldAction]", "label[daffFormLabel]", "daff-form-label", "label"], true, [{ directive: typeof i3.DaffSkeletonableDirective; inputs: { "skeleton": "skeleton"; }; outputs: {}; }]>;
|
|
250
253
|
}
|
|
251
254
|
|
|
252
255
|
/**
|
|
253
256
|
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
|
254
257
|
*/
|
|
255
258
|
declare class DaffFormFieldModule {
|
|
256
|
-
static ɵfac:
|
|
257
|
-
static ɵmod:
|
|
258
|
-
static ɵinj:
|
|
259
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffFormFieldModule, never>;
|
|
260
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<DaffFormFieldModule, never, [typeof DaffFormFieldComponent, typeof i2.DaffErrorMessageComponent, typeof i2.DaffHintComponent, typeof i2.DaffFormFieldLabelDirective, typeof i3.DaffFormLabelModule], [typeof DaffFormFieldComponent, typeof i2.DaffErrorMessageComponent, typeof i2.DaffHintComponent, typeof i2.DaffFormFieldLabelDirective, typeof i3.DaffFormLabelModule]>;
|
|
261
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<DaffFormFieldModule>;
|
|
259
262
|
}
|
|
260
263
|
|
|
261
264
|
/**
|
|
@@ -9,9 +9,9 @@ declare class DaffHintComponent {
|
|
|
9
9
|
/**
|
|
10
10
|
* Displays a validated hint UI.
|
|
11
11
|
* */
|
|
12
|
-
validated: boolean
|
|
12
|
+
validated: i0.InputSignal<boolean>;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffHintComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, { "validated": { "alias": "validated"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, { "validated": { "alias": "validated"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
declare class DaffFormFieldLabelDirective {
|