@getflip/swirl-components 0.378.0 → 0.379.1
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/components.json +1 -1
- package/dist/cjs/{media-query.service-DRPgROAV.js → media-query.service-BcAHijM-.js} +1 -1
- package/dist/cjs/swirl-action-list_2.cjs.entry.js +2 -2
- package/dist/cjs/swirl-app-layout_5.cjs.entry.js +5 -4
- package/dist/cjs/swirl-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/swirl-banner.cjs.entry.js +2 -2
- package/dist/cjs/swirl-button.cjs.entry.js +2 -2
- package/dist/cjs/swirl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +2 -2
- package/dist/cjs/swirl-console-layout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-date-input.cjs.entry.js +2 -2
- package/dist/cjs/swirl-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-file-chip.cjs.entry.js +4 -4
- package/dist/cjs/swirl-file-viewer_8.cjs.entry.js +3 -3
- package/dist/cjs/swirl-form-control.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
- package/dist/cjs/swirl-image-grid-item.cjs.entry.js +6 -5
- package/dist/cjs/swirl-inline-status.cjs.entry.js +2 -2
- package/dist/cjs/swirl-lightbox.cjs.entry.js +1 -1
- package/dist/cjs/swirl-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-menu.cjs.entry.js +1 -1
- package/dist/cjs/swirl-modal.cjs.entry.js +1 -1
- package/dist/cjs/swirl-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/swirl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/swirl-pdf-reader.cjs.entry.js +1 -1
- package/dist/cjs/swirl-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +2 -2
- package/dist/cjs/swirl-search.cjs.entry.js +2 -2
- package/dist/cjs/swirl-select.cjs.entry.js +1 -1
- package/dist/cjs/swirl-shell-layout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-column.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-row.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tabs.cjs.entry.js +1 -1
- package/dist/cjs/swirl-text-input.cjs.entry.js +2 -2
- package/dist/cjs/swirl-time-input.cjs.entry.js +2 -2
- package/dist/cjs/swirl-toast.cjs.entry.js +2 -2
- package/dist/cjs/swirl-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/{utils-Br2wWntR.js → utils-CllbYlRY.js} +9 -3
- package/dist/collection/components/swirl-file-chip/swirl-file-chip.js +4 -4
- package/dist/collection/components/swirl-file-viewer/swirl-file-viewer.js +3 -2
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.css +2 -1
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.js +4 -3
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.css +89 -64
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +2 -1
- package/dist/collection/utils.js +8 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-file-chip.js +4 -4
- package/dist/components/swirl-file-viewer2.js +3 -2
- package/dist/components/swirl-image-grid-item.js +5 -4
- package/dist/components/swirl-resource-list-item2.js +3 -2
- package/dist/components/utils.js +9 -3
- package/dist/esm/{media-query.service-Cx_VEA2f.js → media-query.service-CpP-qu5C.js} +1 -1
- package/dist/esm/swirl-action-list_2.entry.js +2 -2
- package/dist/esm/swirl-app-layout_5.entry.js +5 -4
- package/dist/esm/swirl-autocomplete.entry.js +1 -1
- package/dist/esm/swirl-banner.entry.js +2 -2
- package/dist/esm/swirl-button.entry.js +2 -2
- package/dist/esm/swirl-carousel.entry.js +1 -1
- package/dist/esm/swirl-chip.entry.js +2 -2
- package/dist/esm/swirl-console-layout.entry.js +1 -1
- package/dist/esm/swirl-date-input.entry.js +2 -2
- package/dist/esm/swirl-date-picker_2.entry.js +1 -1
- package/dist/esm/swirl-file-chip.entry.js +4 -4
- package/dist/esm/swirl-file-viewer_8.entry.js +3 -3
- package/dist/esm/swirl-form-control.entry.js +1 -1
- package/dist/esm/swirl-icon-error_3.entry.js +2 -2
- package/dist/esm/swirl-image-grid-item.entry.js +6 -5
- package/dist/esm/swirl-inline-status.entry.js +2 -2
- package/dist/esm/swirl-lightbox.entry.js +1 -1
- package/dist/esm/swirl-menu-item.entry.js +1 -1
- package/dist/esm/swirl-menu.entry.js +1 -1
- package/dist/esm/swirl-modal.entry.js +1 -1
- package/dist/esm/swirl-option-list_2.entry.js +2 -2
- package/dist/esm/swirl-pagination.entry.js +1 -1
- package/dist/esm/swirl-pdf-reader.entry.js +1 -1
- package/dist/esm/swirl-popover_2.entry.js +1 -1
- package/dist/esm/swirl-resource-list-file-item.entry.js +2 -2
- package/dist/esm/swirl-search.entry.js +2 -2
- package/dist/esm/swirl-select.entry.js +1 -1
- package/dist/esm/swirl-shell-layout.entry.js +1 -1
- package/dist/esm/swirl-tab-bar.entry.js +1 -1
- package/dist/esm/swirl-table-column.entry.js +1 -1
- package/dist/esm/swirl-table-row.entry.js +1 -1
- package/dist/esm/swirl-table.entry.js +1 -1
- package/dist/esm/swirl-tabs.entry.js +1 -1
- package/dist/esm/swirl-text-input.entry.js +2 -2
- package/dist/esm/swirl-time-input.entry.js +2 -2
- package/dist/esm/swirl-toast.entry.js +2 -2
- package/dist/esm/swirl-toolbar.entry.js +1 -1
- package/dist/esm/{utils-D_MUFqkF.js → utils-DytJsmhr.js} +9 -3
- package/dist/swirl-components/{p-9b194c8e.entry.js → p-042ee5d4.entry.js} +1 -1
- package/dist/swirl-components/{p-a3e441ad.entry.js → p-06a5f3c1.entry.js} +1 -1
- package/dist/swirl-components/p-09e93aa1.entry.js +28 -0
- package/dist/swirl-components/{p-e517cd73.entry.js → p-2fbcec3f.entry.js} +1 -1
- package/dist/swirl-components/{p-7cfe4152.entry.js → p-312ea63e.entry.js} +1 -1
- package/dist/swirl-components/{p-d0eef94b.entry.js → p-399aed40.entry.js} +1 -1
- package/dist/swirl-components/{p-8fde973e.entry.js → p-3a6b64cb.entry.js} +1 -1
- package/dist/swirl-components/{p-a69e51f6.entry.js → p-3f6d068c.entry.js} +1 -1
- package/dist/swirl-components/{p-88eb9355.entry.js → p-43c2b8e6.entry.js} +1 -1
- package/dist/swirl-components/{p-1391a5d3.entry.js → p-55b4198e.entry.js} +1 -1
- package/dist/swirl-components/{p-e522318e.entry.js → p-575286d9.entry.js} +1 -1
- package/dist/swirl-components/{p-da514121.entry.js → p-64e4d854.entry.js} +1 -1
- package/dist/swirl-components/{p-902ce47c.entry.js → p-6732eaec.entry.js} +1 -1
- package/dist/swirl-components/{p-568a408c.entry.js → p-6f8ef29e.entry.js} +1 -1
- package/dist/swirl-components/{p-5d7196f1.entry.js → p-732afaa1.entry.js} +1 -1
- package/dist/swirl-components/{p-5c9616ed.entry.js → p-744bb10c.entry.js} +1 -1
- package/dist/swirl-components/{p-4dd68258.entry.js → p-750914d8.entry.js} +1 -1
- package/dist/swirl-components/{p-da776a4e.entry.js → p-7eaa0fa6.entry.js} +1 -1
- package/dist/swirl-components/{p-2f6c0ee1.entry.js → p-84522af5.entry.js} +1 -1
- package/dist/swirl-components/{p-972e517c.entry.js → p-8b45e69a.entry.js} +1 -1
- package/dist/swirl-components/{p-61db9ac1.entry.js → p-90243eec.entry.js} +1 -1
- package/dist/swirl-components/{p-d7ec0d2f.entry.js → p-95fb200f.entry.js} +1 -1
- package/dist/swirl-components/{p-02bbee65.entry.js → p-96833a92.entry.js} +1 -1
- package/dist/swirl-components/{p-d0175591.entry.js → p-98f60469.entry.js} +1 -1
- package/dist/swirl-components/{p-f606869b.entry.js → p-9961cf33.entry.js} +1 -1
- package/dist/swirl-components/{p-ffeff0e0.entry.js → p-99f1851e.entry.js} +1 -1
- package/dist/swirl-components/{p-LU4x678Z.js → p-DJ2FyZeW.js} +1 -1
- package/dist/swirl-components/{p-D_MUFqkF.js → p-DytJsmhr.js} +1 -1
- package/dist/swirl-components/{p-34d35e00.entry.js → p-b9a299b9.entry.js} +1 -1
- package/dist/swirl-components/{p-61300d7a.entry.js → p-c8e30ded.entry.js} +1 -1
- package/dist/swirl-components/{p-2260cef7.entry.js → p-d17cd35b.entry.js} +1 -1
- package/dist/swirl-components/{p-4bddfd6a.entry.js → p-d39e3e71.entry.js} +1 -1
- package/dist/swirl-components/{p-5c201837.entry.js → p-d9d2d3cd.entry.js} +1 -1
- package/dist/swirl-components/{p-1032eb2d.entry.js → p-e6b1e277.entry.js} +1 -1
- package/dist/swirl-components/{p-9355912f.entry.js → p-e6b4ebfa.entry.js} +1 -1
- package/dist/swirl-components/p-e872b698.entry.js +1 -0
- package/dist/swirl-components/{p-ae0e5da7.entry.js → p-f28a4f8e.entry.js} +1 -1
- package/dist/swirl-components/{p-12e9c7db.entry.js → p-fdb3db3c.entry.js} +1 -1
- package/dist/swirl-components/{p-93f2b062.entry.js → p-ffc82946.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/swirl-components/p-7585dac1.entry.js +0 -1
- package/dist/swirl-components/p-783627a1.entry.js +0 -28
|
@@ -22,6 +22,28 @@
|
|
|
22
22
|
.resource-list-item {
|
|
23
23
|
position: relative;
|
|
24
24
|
width: 100%;
|
|
25
|
+
display: flex;
|
|
26
|
+
padding: var(--s-space-12) var(--s-space-8);
|
|
27
|
+
gap: var(--s-space-12);
|
|
28
|
+
border-radius: var(--s-border-radius-sm);
|
|
29
|
+
background-color: var(--swirl-resource-list-item-background-default);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.resource-list-item:has(.resource-list-item__content:focus-visible) {
|
|
33
|
+
background-color: var(--s-background-hovered);
|
|
34
|
+
outline-color: var(--s-focus-default);
|
|
35
|
+
outline-style: solid;
|
|
36
|
+
outline-width: 0.125rem;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.resource-list-item:has(.resource-list-item__content:focus-visible) .resource-list-item__media {
|
|
41
|
+
--swirl-avatar-group-border-color: var(--s-background-hovered);
|
|
42
|
+
--swirl-badge-border-color: var(--s-background-hovered);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.resource-list-item--interactive {
|
|
46
|
+
cursor: pointer;
|
|
25
47
|
}
|
|
26
48
|
|
|
27
49
|
.resource-list-item--interactive:hover {
|
|
@@ -36,37 +58,39 @@
|
|
|
36
58
|
cursor: default;
|
|
37
59
|
}
|
|
38
60
|
|
|
39
|
-
.resource-list-item--interactive
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
61
|
+
.resource-list-item--interactive.resource-list-item--disabled {
|
|
62
|
+
cursor: default;
|
|
63
|
+
}
|
|
43
64
|
|
|
44
|
-
.resource-list-item--interactive
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
--swirl-avatar-background-color: var(--s-surface-raised-hovered);
|
|
49
|
-
--swirl-avatar-group-border-color: var(--s-background-hovered);
|
|
50
|
-
--swirl-badge-border-color: var(--s-background-hovered);
|
|
51
|
-
}
|
|
65
|
+
.resource-list-item--interactive:hover:not(.resource-list-item--disabled),
|
|
66
|
+
.resource-list-item--interactive:focus:not(.resource-list-item--disabled) {
|
|
67
|
+
background-color: var(--swirl-resource-list-item-background-hovered);
|
|
68
|
+
}
|
|
52
69
|
|
|
53
|
-
.resource-list-item--interactive
|
|
54
|
-
|
|
70
|
+
.resource-list-item--interactive:hover:not(.resource-list-item--disabled) .resource-list-item__media,
|
|
71
|
+
.resource-list-item--interactive:hover:not(.resource-list-item--disabled) .resource-list-item__meta,
|
|
72
|
+
.resource-list-item--interactive:focus:not(.resource-list-item--disabled) .resource-list-item__media,
|
|
73
|
+
.resource-list-item--interactive:focus:not(.resource-list-item--disabled) .resource-list-item__meta {
|
|
74
|
+
--swirl-avatar-background-color: var(--s-surface-raised-hovered);
|
|
75
|
+
--swirl-avatar-group-border-color: var(--s-background-hovered);
|
|
76
|
+
--swirl-badge-border-color: var(--s-background-hovered);
|
|
55
77
|
}
|
|
56
78
|
|
|
57
|
-
.resource-list-item--interactive
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
--swirl-badge-border-color: var(--s-background-pressed);
|
|
61
|
-
}
|
|
79
|
+
.resource-list-item--interactive:active:not(.resource-list-item--disabled) {
|
|
80
|
+
background-color: var(--swirl-resource-list-item-background-pressed);
|
|
81
|
+
}
|
|
62
82
|
|
|
63
|
-
.resource-list-item--active .resource-list-
|
|
64
|
-
--
|
|
65
|
-
--swirl-
|
|
66
|
-
|
|
83
|
+
.resource-list-item--interactive:active:not(.resource-list-item--disabled) .resource-list-item__media,
|
|
84
|
+
.resource-list-item--interactive:active:not(.resource-list-item--disabled) .resource-list-item__meta {
|
|
85
|
+
--swirl-avatar-group-border-color: var(--s-background-pressed);
|
|
86
|
+
--swirl-badge-border-color: var(--s-background-pressed);
|
|
87
|
+
}
|
|
67
88
|
|
|
68
|
-
|
|
69
|
-
|
|
89
|
+
.resource-list-item--active {
|
|
90
|
+
--swirl-badge-border-color: var(--swirl-resource-list-item-background-hovered);
|
|
91
|
+
|
|
92
|
+
background-color: var(--swirl-resource-list-item-background-hovered);
|
|
93
|
+
}
|
|
70
94
|
|
|
71
95
|
.resource-list-item--checked .resource-list-item__checkbox {
|
|
72
96
|
border-color: var(--s-icon-highlight);
|
|
@@ -74,16 +98,16 @@
|
|
|
74
98
|
background-color: var(--s-icon-highlight);
|
|
75
99
|
}
|
|
76
100
|
|
|
77
|
-
.resource-list-item--compact
|
|
78
|
-
|
|
79
|
-
|
|
101
|
+
.resource-list-item--compact {
|
|
102
|
+
padding: var(--s-space-8);
|
|
103
|
+
}
|
|
80
104
|
|
|
81
105
|
@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {
|
|
82
106
|
|
|
83
|
-
.resource-list-item--compact
|
|
84
|
-
|
|
107
|
+
.resource-list-item--compact {
|
|
108
|
+
padding: var(--s-space-8)
|
|
109
|
+
}
|
|
85
110
|
}
|
|
86
|
-
}
|
|
87
111
|
|
|
88
112
|
.resource-list-item--compact .resource-list-item__label-container {
|
|
89
113
|
min-height: 2.5rem;
|
|
@@ -131,23 +155,39 @@
|
|
|
131
155
|
.resource-list-item--show-control-on-focus:hover .resource-list-item__control, .resource-list-item--show-control-on-focus:focus .resource-list-item__control, .resource-list-item--show-control-on-focus:focus-within .resource-list-item__control {
|
|
132
156
|
pointer-events: auto;
|
|
133
157
|
opacity: 1;
|
|
134
|
-
|
|
158
|
+
position: static;
|
|
159
|
+
transform: none;
|
|
135
160
|
}
|
|
136
161
|
|
|
162
|
+
.resource-list-item--show-control-on-focus:hover .resource-list-item__meta, .resource-list-item--show-control-on-focus:focus .resource-list-item__meta, .resource-list-item--show-control-on-focus:focus-within .resource-list-item__meta {
|
|
163
|
+
margin-right: 0;
|
|
164
|
+
padding-right: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.resource-list-item--show-control-on-focus .resource-list-item__meta {
|
|
168
|
+
margin-right: calc(-1 * var(--s-space-16));
|
|
169
|
+
padding-right: var(--s-space-16);
|
|
170
|
+
transition: margin 0.1s;
|
|
171
|
+
}
|
|
172
|
+
|
|
137
173
|
.resource-list-item--show-control-on-focus .resource-list-item__control {
|
|
138
174
|
pointer-events: none;
|
|
139
175
|
opacity: 0;
|
|
140
|
-
|
|
176
|
+
position: absolute;
|
|
177
|
+
top: 50%;
|
|
178
|
+
right: var(--s-space-8);
|
|
179
|
+
transform: translateY(-50%);
|
|
180
|
+
transition: opacity 0.1s;
|
|
141
181
|
}
|
|
142
182
|
|
|
143
183
|
.resource-list-item--draggable .resource-list-item__content {
|
|
144
|
-
padding-left: calc(var(--s-space-
|
|
184
|
+
padding-left: calc(var(--s-space-12) * 2 + 1.5rem);
|
|
145
185
|
}
|
|
146
186
|
|
|
147
187
|
@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {
|
|
148
188
|
|
|
149
189
|
.resource-list-item--draggable .resource-list-item__content {
|
|
150
|
-
padding-left: calc(var(--s-space-
|
|
190
|
+
padding-left: calc(var(--s-space-12) * 2 + 1rem)
|
|
151
191
|
}
|
|
152
192
|
}
|
|
153
193
|
|
|
@@ -188,18 +228,15 @@
|
|
|
188
228
|
.resource-list-item__content {
|
|
189
229
|
--swirl-avatar-group-border-color: var(--s-background-default);
|
|
190
230
|
--swirl-badge-border-color: var(--s-background-default);
|
|
191
|
-
|
|
192
|
-
position: relative;
|
|
193
231
|
display: flex;
|
|
194
232
|
width: 100%;
|
|
195
233
|
min-width: 0;
|
|
196
234
|
margin: 0;
|
|
197
|
-
padding:
|
|
235
|
+
padding: 0;
|
|
198
236
|
align-items: flex-start;
|
|
199
237
|
border: none;
|
|
200
|
-
border-radius: var(--s-border-radius-sm);
|
|
201
238
|
color: var(--s-text-default);
|
|
202
|
-
background
|
|
239
|
+
background: none;
|
|
203
240
|
font: inherit;
|
|
204
241
|
line-height: var(--s-line-height-sm);
|
|
205
242
|
text-align: left;
|
|
@@ -207,32 +244,11 @@
|
|
|
207
244
|
gap: var(--s-space-12);
|
|
208
245
|
}
|
|
209
246
|
|
|
210
|
-
.resource-list-item__content:focus
|
|
247
|
+
.resource-list-item__content:focus,
|
|
248
|
+
.resource-list-item__content:focus-visible {
|
|
211
249
|
outline: none;
|
|
212
250
|
}
|
|
213
251
|
|
|
214
|
-
.resource-list-item__content:focus-visible {
|
|
215
|
-
background-color: var(--s-background-hovered);
|
|
216
|
-
outline-color: var(--s-focus-default);
|
|
217
|
-
outline-style: solid;
|
|
218
|
-
outline-width: 0.125rem;
|
|
219
|
-
z-index: 1;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.resource-list-item__content:focus-visible .resource-list-item__media {
|
|
223
|
-
--swirl-avatar-group-border-color: var(--s-background-hovered);
|
|
224
|
-
--swirl-badge-border-color: var(--s-background-hovered);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.resource-list-item__content:disabled {
|
|
228
|
-
color: var(--s-text-disabled);
|
|
229
|
-
cursor: default;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.resource-list-item__content:disabled .resource-list-item__description {
|
|
233
|
-
color: var(--s-text-disabled);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
252
|
@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {
|
|
237
253
|
|
|
238
254
|
.resource-list-item__content {
|
|
@@ -329,6 +345,8 @@
|
|
|
329
345
|
.resource-list-item__meta {
|
|
330
346
|
display: flex;
|
|
331
347
|
align-items: flex-end;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
min-height: 3rem;
|
|
332
350
|
color: var(--s-text-subdued);
|
|
333
351
|
font-size: var(--s-font-size-sm);
|
|
334
352
|
flex-direction: column;
|
|
@@ -341,9 +359,17 @@
|
|
|
341
359
|
}
|
|
342
360
|
|
|
343
361
|
.resource-list-item__meta-text {
|
|
362
|
+
line-height: var(--s-line-height-base);
|
|
344
363
|
white-space: nowrap;
|
|
345
364
|
}
|
|
346
365
|
|
|
366
|
+
@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {
|
|
367
|
+
|
|
368
|
+
.resource-list-item__meta-text {
|
|
369
|
+
line-height: var(--s-line-height-sm)
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
347
373
|
.resource-list-item__badges {
|
|
348
374
|
display: inline-flex;
|
|
349
375
|
width: -webkit-max-content;
|
|
@@ -358,7 +384,6 @@
|
|
|
358
384
|
left: var(--s-space-4);
|
|
359
385
|
display: inline-flex;
|
|
360
386
|
margin: 0;
|
|
361
|
-
padding: 0;
|
|
362
387
|
padding: var(--s-space-8);
|
|
363
388
|
flex-shrink: 0;
|
|
364
389
|
border: none;
|
|
@@ -44,6 +44,7 @@ export class SwirlResourceListItem {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
this.onControlClick = (event) => {
|
|
47
|
+
event.preventDefault();
|
|
47
48
|
event.stopPropagation();
|
|
48
49
|
};
|
|
49
50
|
}
|
|
@@ -140,7 +141,7 @@ export class SwirlResourceListItem {
|
|
|
140
141
|
"resource-list-item--wrap-description": this.descriptionWrap,
|
|
141
142
|
"resource-list-item--wrap-label": this.labelWrap,
|
|
142
143
|
});
|
|
143
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: '7cb12be3a9a09b71dc24bc8f981d1d61b8f254e9', role: hostRole }, h("div", { key: '7014fcad197a4f7eb245af6a46a29378bb857750', class: className, role: containerRole, onClick: this.onClick }, h(Tag, { key: '8e673d4ffbd706c06804aa6ee55a380fd53f3099', "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-label": ariaLabel, "aria-labelledby": Boolean(this.swirlAriaLabel) ? undefined : this.elementId, class: "resource-list-item__content", style: { alignItems: this.alignItems }, href: href, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, part: "resource-list-item__content", role: role, tabIndex: 0, type: Tag === "button" ? "button" : undefined }, this.hasMedia && (h("span", { key: '1172de33f197a865c39bc1f7dc394de5d1a4d89e', class: "resource-list-item__media" }, h("slot", { key: '1768bf905bda828888aab82ede57fb62d58615de', name: "media" }))), h("span", { key: '39789664f9eab1eeb4801ec2509c54d2fa0eaa2c', class: "resource-list-item__label-container", style: labelContainerStyles }, h("span", { key: '880f0d472efda294324a74ab8a2c1bccf794d870', class: "resource-list-item__label", id: this.elementId, innerHTML: this.allowHtml ? this.label : undefined }, !this.allowHtml && this.label), this.description && (h("span", { key: '6e43920e4516b750136e810a6ab305586607b291', class: "resource-list-item__description", innerHTML: this.allowHtml ? this.description : undefined }, !this.allowHtml && this.description)))), this.selectable && (h("span", { key: '256f16e58f88275cc84b9eb2cdb5c58a6726f7a9', "aria-hidden": "true", class: "resource-list-item__checkbox" }, h("span", { key: '93fa4dfe68c08d3f60d3f891df2cc40008495607', class: "resource-list-item__checkbox-icon" }, this.checked && (h("swirl-icon-check-strong", { key: 'e86f4921242fc80e32f0a067aa244a5a9a911022' }))))), showMeta && (h("span", { key: '8396dff56b5f7911f9ebd05da7f209dfae9f01db', class: "resource-list-item__meta" }, this.meta && (h("span", { key: 'bbd1d2b8892dce6e938f9a9aa5fa18b9bcc4d998', class: "resource-list-item__meta-text" }, this.meta)), h("span", { key: '1c73a5c08c17218c3e38073094865634b2405079', class: "resource-list-item__badges" }, h("slot", { key: '7b4da3575ca6dbc89305fbe65bd453428df40423', name: "badges" })))), h("span", { key: '5be12310c2a0b842ae5b3817da98162759c86628', class: "resource-list-item__control", onClick: this.onControlClick }, h("slot", { key: '0fdbf28efd85b9a130ccef446a7f7c0d02b8e532', name: "control" })), showMenu && (h("swirl-popover-trigger", { key: 'e6cfdb5108d171a427e6af540a237227ae0b158f', swirlPopover: this.menuTriggerId }, h("swirl-button", { key: 'de40fbe74fc9f17a68a3fd5b4387f745b74c09ad', "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<swirl-icon-more-horizontal></swirl-icon-more-horizontal>", intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))), this.allowDrag && (h("button", { key: '2a6917be30e0a20c277532152507273c5e72aa62', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "resource-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, h("swirl-icon-drag-handle", { key: '510a758ef7a8c8e317416a5fb654f86691eac6d5', size: this.iconSize })))));
|
|
144
145
|
}
|
|
145
146
|
static get is() { return "swirl-resource-list-item"; }
|
|
146
147
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/utils.js
CHANGED
|
@@ -209,8 +209,14 @@ export function getISODateString(date) {
|
|
|
209
209
|
export function getCircularArrayIndex(index, arrayLength) {
|
|
210
210
|
return ((index % arrayLength) + arrayLength) % arrayLength;
|
|
211
211
|
}
|
|
212
|
-
export function
|
|
213
|
-
return
|
|
212
|
+
export function isSupportedImageMimeType(mimeType) {
|
|
213
|
+
return [
|
|
214
|
+
"image/jpeg",
|
|
215
|
+
"image/png",
|
|
216
|
+
"image/avif",
|
|
217
|
+
"image/gif",
|
|
218
|
+
"image/webp",
|
|
219
|
+
].includes(mimeType);
|
|
214
220
|
}
|
|
215
221
|
export function isVideoMimeType(mimeType) {
|
|
216
222
|
return mimeType.startsWith("video/");
|