nve-designsystem 3.2.0 → 3.3.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/chunks/chunk.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +5 -5
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
package/chunks/chunk.ZH2AND3P.js
CHANGED
|
@@ -1,46 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return (e, i) => {
|
|
13
|
-
const s = typeof e == "function" ? e : e[i];
|
|
14
|
-
Object.assign(s, t);
|
|
15
|
-
};
|
|
1
|
+
import { a as e, u as t } from "./lit.js";
|
|
2
|
+
import { a as n, i as r, o as i, r as a } from "./decorate.js";
|
|
3
|
+
import { n as o, r as s, t as c } from "./chunk.4TUIT776.js";
|
|
4
|
+
import { t as l } from "./chunk.YHLNUJ7P.js";
|
|
5
|
+
import { t as u } from "./chunk.GMYPQTFK.js";
|
|
6
|
+
import { t as d } from "./class-map.js";
|
|
7
|
+
import { t as f } from "./chunk.6CTB5ZDJ.js";
|
|
8
|
+
import { i as p, t as m } from "./chunk.B4BZKR24.js";
|
|
9
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HF7GESMZ.js
|
|
10
|
+
function h(e, t, n) {
|
|
11
|
+
return ((e) => Object.is(e, -0) ? 0 : e)(e < t ? t : e > n ? n : e);
|
|
16
12
|
}
|
|
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
|
-
}, $ = _`
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.F4VGSDIW.js
|
|
15
|
+
var g = class {
|
|
16
|
+
constructor(e, t) {
|
|
17
|
+
this.timerId = 0, this.activeInteractions = 0, this.paused = !1, this.stopped = !0, this.pause = () => {
|
|
18
|
+
this.activeInteractions++ || (this.paused = !0, this.host.requestUpdate());
|
|
19
|
+
}, this.resume = () => {
|
|
20
|
+
--this.activeInteractions || (this.paused = !1, this.host.requestUpdate());
|
|
21
|
+
}, e.addController(this), this.host = e, this.tickCallback = t;
|
|
22
|
+
}
|
|
23
|
+
hostConnected() {
|
|
24
|
+
this.host.addEventListener("mouseenter", this.pause), this.host.addEventListener("mouseleave", this.resume), this.host.addEventListener("focusin", this.pause), this.host.addEventListener("focusout", this.resume), this.host.addEventListener("touchstart", this.pause, { passive: !0 }), this.host.addEventListener("touchend", this.resume);
|
|
25
|
+
}
|
|
26
|
+
hostDisconnected() {
|
|
27
|
+
this.stop(), this.host.removeEventListener("mouseenter", this.pause), this.host.removeEventListener("mouseleave", this.resume), this.host.removeEventListener("focusin", this.pause), this.host.removeEventListener("focusout", this.resume), this.host.removeEventListener("touchstart", this.pause), this.host.removeEventListener("touchend", this.resume);
|
|
28
|
+
}
|
|
29
|
+
start(e) {
|
|
30
|
+
this.stop(), this.stopped = !1, this.timerId = window.setInterval(() => {
|
|
31
|
+
this.paused || this.tickCallback();
|
|
32
|
+
}, e);
|
|
33
|
+
}
|
|
34
|
+
stop() {
|
|
35
|
+
clearInterval(this.timerId), this.stopped = !0, this.host.requestUpdate();
|
|
36
|
+
}
|
|
37
|
+
}, _ = t`
|
|
44
38
|
:host {
|
|
45
39
|
--slide-gap: var(--sl-spacing-medium, 1rem);
|
|
46
40
|
--aspect-ratio: 16 / 9;
|
|
@@ -193,235 +187,219 @@ var A = class {
|
|
|
193
187
|
outline-offset: var(--sl-focus-ring-offset);
|
|
194
188
|
}
|
|
195
189
|
`;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/map.js
|
|
192
|
+
function* v(e, t) {
|
|
193
|
+
if (e !== void 0) {
|
|
194
|
+
let n = 0;
|
|
195
|
+
for (let r of e) yield t(r, n++);
|
|
196
|
+
}
|
|
201
197
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/range.js
|
|
200
|
+
function* y(e, t, n = 1) {
|
|
201
|
+
let r = t === void 0 ? 0 : e;
|
|
202
|
+
t ??= e;
|
|
203
|
+
for (let e = r; n > 0 ? e < t : t < e; e += n) yield e;
|
|
206
204
|
}
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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
|
-
0,
|
|
394
|
-
a.length - 1
|
|
395
|
-
), S = a[d];
|
|
396
|
-
this.scrollToSlide(S, f() ? "auto" : e);
|
|
397
|
-
}
|
|
398
|
-
scrollToSlide(t, e = "smooth") {
|
|
399
|
-
this.pendingSlideChange = !0, window.requestAnimationFrame(() => {
|
|
400
|
-
if (!this.scrollContainer)
|
|
401
|
-
return;
|
|
402
|
-
const i = this.scrollContainer, s = i.getBoundingClientRect(), o = t.getBoundingClientRect(), a = o.left - s.left, n = o.top - s.top;
|
|
403
|
-
a || n ? (this.pendingSlideChange = !0, i.scrollTo({
|
|
404
|
-
left: a + i.scrollLeft,
|
|
405
|
-
top: n + i.scrollTop,
|
|
406
|
-
behavior: e
|
|
407
|
-
})) : this.pendingSlideChange = !1;
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
render() {
|
|
411
|
-
const { slidesPerMove: t, scrolling: e } = this, i = this.getPageCount(), s = this.getCurrentPage(), o = this.canScrollPrev(), a = this.canScrollNext(), n = this.localize.dir() === "ltr";
|
|
412
|
-
return p`
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AADUHVTJ.js
|
|
207
|
+
var b = class extends c {
|
|
208
|
+
constructor() {
|
|
209
|
+
super(...arguments), this.loop = !1, this.navigation = !1, this.pagination = !1, this.autoplay = !1, this.autoplayInterval = 3e3, this.slidesPerPage = 1, this.slidesPerMove = 1, this.orientation = "horizontal", this.mouseDragging = !1, this.activeSlide = 0, this.scrolling = !1, this.dragging = !1, this.autoplayController = new g(this, () => this.next()), this.dragStartPosition = [-1, -1], this.localize = new f(this), this.pendingSlideChange = !1, this.handleMouseDrag = (e) => {
|
|
210
|
+
this.dragging || (this.scrollContainer.style.setProperty("scroll-snap-type", "none"), this.dragging = !0, this.dragStartPosition = [e.clientX, e.clientY]), this.scrollContainer.scrollBy({
|
|
211
|
+
left: -e.movementX,
|
|
212
|
+
top: -e.movementY,
|
|
213
|
+
behavior: "instant"
|
|
214
|
+
});
|
|
215
|
+
}, this.handleMouseDragEnd = () => {
|
|
216
|
+
let e = this.scrollContainer;
|
|
217
|
+
document.removeEventListener("pointermove", this.handleMouseDrag, { capture: !0 });
|
|
218
|
+
let t = e.scrollLeft, n = e.scrollTop;
|
|
219
|
+
e.style.removeProperty("scroll-snap-type"), e.style.setProperty("overflow", "hidden");
|
|
220
|
+
let r = e.scrollLeft, i = e.scrollTop;
|
|
221
|
+
e.style.removeProperty("overflow"), e.style.setProperty("scroll-snap-type", "none"), e.scrollTo({
|
|
222
|
+
left: t,
|
|
223
|
+
top: n,
|
|
224
|
+
behavior: "instant"
|
|
225
|
+
}), requestAnimationFrame(async () => {
|
|
226
|
+
(t !== r || n !== i) && (e.scrollTo({
|
|
227
|
+
left: r,
|
|
228
|
+
top: i,
|
|
229
|
+
behavior: p() ? "auto" : "smooth"
|
|
230
|
+
}), await m(e, "scrollend")), e.style.removeProperty("scroll-snap-type"), this.dragging = !1, this.dragStartPosition = [-1, -1], this.handleScrollEnd();
|
|
231
|
+
});
|
|
232
|
+
}, this.handleSlotChange = (e) => {
|
|
233
|
+
e.some((e) => [...e.addedNodes, ...e.removedNodes].some((e) => this.isCarouselItem(e) && !e.hasAttribute("data-clone"))) && this.initializeSlides(), this.requestUpdate();
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
connectedCallback() {
|
|
237
|
+
super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("carousel"));
|
|
238
|
+
}
|
|
239
|
+
disconnectedCallback() {
|
|
240
|
+
var e;
|
|
241
|
+
super.disconnectedCallback(), (e = this.mutationObserver) == null || e.disconnect();
|
|
242
|
+
}
|
|
243
|
+
firstUpdated() {
|
|
244
|
+
this.initializeSlides(), this.mutationObserver = new MutationObserver(this.handleSlotChange), this.mutationObserver.observe(this, {
|
|
245
|
+
childList: !0,
|
|
246
|
+
subtree: !0
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
willUpdate(e) {
|
|
250
|
+
(e.has("slidesPerMove") || e.has("slidesPerPage")) && (this.slidesPerMove = Math.min(this.slidesPerMove, this.slidesPerPage));
|
|
251
|
+
}
|
|
252
|
+
getPageCount() {
|
|
253
|
+
let e = this.getSlides().length, { slidesPerPage: t, slidesPerMove: n, loop: r } = this, i = r ? e / n : (e - t) / n + 1;
|
|
254
|
+
return Math.ceil(i);
|
|
255
|
+
}
|
|
256
|
+
getCurrentPage() {
|
|
257
|
+
return Math.ceil(this.activeSlide / this.slidesPerMove);
|
|
258
|
+
}
|
|
259
|
+
canScrollNext() {
|
|
260
|
+
return this.loop || this.getCurrentPage() < this.getPageCount() - 1;
|
|
261
|
+
}
|
|
262
|
+
canScrollPrev() {
|
|
263
|
+
return this.loop || this.getCurrentPage() > 0;
|
|
264
|
+
}
|
|
265
|
+
getSlides({ excludeClones: e = !0 } = {}) {
|
|
266
|
+
return [...this.children].filter((t) => this.isCarouselItem(t) && (!e || !t.hasAttribute("data-clone")));
|
|
267
|
+
}
|
|
268
|
+
handleClick(e) {
|
|
269
|
+
if (this.dragging && this.dragStartPosition[0] > 0 && this.dragStartPosition[1] > 0) {
|
|
270
|
+
let t = Math.abs(this.dragStartPosition[0] - e.clientX), n = Math.abs(this.dragStartPosition[1] - e.clientY);
|
|
271
|
+
Math.sqrt(t * t + n * n) >= 10 && e.preventDefault();
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
handleKeyDown(e) {
|
|
275
|
+
if ([
|
|
276
|
+
"ArrowLeft",
|
|
277
|
+
"ArrowRight",
|
|
278
|
+
"ArrowUp",
|
|
279
|
+
"ArrowDown",
|
|
280
|
+
"Home",
|
|
281
|
+
"End"
|
|
282
|
+
].includes(e.key)) {
|
|
283
|
+
let t = e.target, n = this.localize.dir() === "rtl", r = t.closest("[part~=\"pagination-item\"]") !== null, i = e.key === "ArrowDown" || !n && e.key === "ArrowRight" || n && e.key === "ArrowLeft", a = e.key === "ArrowUp" || !n && e.key === "ArrowLeft" || n && e.key === "ArrowRight";
|
|
284
|
+
e.preventDefault(), a && this.previous(), i && this.next(), e.key === "Home" && this.goToSlide(0), e.key === "End" && this.goToSlide(this.getSlides().length - 1), r && this.updateComplete.then(() => {
|
|
285
|
+
let e = this.shadowRoot?.querySelector("[part~=\"pagination-item--active\"]");
|
|
286
|
+
e && e.focus();
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
handleMouseDragStart(e) {
|
|
291
|
+
this.mouseDragging && e.button === 0 && (e.preventDefault(), document.addEventListener("pointermove", this.handleMouseDrag, {
|
|
292
|
+
capture: !0,
|
|
293
|
+
passive: !0
|
|
294
|
+
}), document.addEventListener("pointerup", this.handleMouseDragEnd, {
|
|
295
|
+
capture: !0,
|
|
296
|
+
once: !0
|
|
297
|
+
}));
|
|
298
|
+
}
|
|
299
|
+
handleScroll() {
|
|
300
|
+
this.scrolling = !0, this.pendingSlideChange || this.synchronizeSlides();
|
|
301
|
+
}
|
|
302
|
+
synchronizeSlides() {
|
|
303
|
+
let e = new IntersectionObserver((t) => {
|
|
304
|
+
e.disconnect();
|
|
305
|
+
for (let e of t) {
|
|
306
|
+
let t = e.target;
|
|
307
|
+
t.toggleAttribute("inert", !e.isIntersecting), t.classList.toggle("--in-view", e.isIntersecting), t.setAttribute("aria-hidden", e.isIntersecting ? "false" : "true");
|
|
308
|
+
}
|
|
309
|
+
let n = t.find((e) => e.isIntersecting);
|
|
310
|
+
if (!n) return;
|
|
311
|
+
let r = this.getSlides({ excludeClones: !1 }), i = this.getSlides().length, a = r.indexOf(n.target), o = this.loop ? a - this.slidesPerPage : a;
|
|
312
|
+
if (this.activeSlide = (Math.ceil(o / this.slidesPerMove) * this.slidesPerMove + i) % i, !this.scrolling && this.loop && n.target.hasAttribute("data-clone")) {
|
|
313
|
+
let e = Number(n.target.getAttribute("data-clone"));
|
|
314
|
+
this.goToSlide(e, "instant");
|
|
315
|
+
}
|
|
316
|
+
}, {
|
|
317
|
+
root: this.scrollContainer,
|
|
318
|
+
threshold: .6
|
|
319
|
+
});
|
|
320
|
+
this.getSlides({ excludeClones: !1 }).forEach((t) => {
|
|
321
|
+
e.observe(t);
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
handleScrollEnd() {
|
|
325
|
+
!this.scrolling || this.dragging || (this.scrolling = !1, this.pendingSlideChange = !1, this.synchronizeSlides());
|
|
326
|
+
}
|
|
327
|
+
isCarouselItem(e) {
|
|
328
|
+
return e instanceof Element && e.tagName.toLowerCase() === "sl-carousel-item";
|
|
329
|
+
}
|
|
330
|
+
initializeSlides() {
|
|
331
|
+
this.getSlides({ excludeClones: !1 }).forEach((e, t) => {
|
|
332
|
+
e.classList.remove("--in-view"), e.classList.remove("--is-active"), e.setAttribute("role", "group"), e.setAttribute("aria-label", this.localize.term("slideNum", t + 1)), this.pagination && (e.setAttribute("id", `slide-${t + 1}`), e.setAttribute("role", "tabpanel"), e.removeAttribute("aria-label"), e.setAttribute("aria-labelledby", `tab-${t + 1}`)), e.hasAttribute("data-clone") && e.remove();
|
|
333
|
+
}), this.updateSlidesSnap(), this.loop && this.createClones(), this.goToSlide(this.activeSlide, "auto"), this.synchronizeSlides();
|
|
334
|
+
}
|
|
335
|
+
createClones() {
|
|
336
|
+
let e = this.getSlides(), t = this.slidesPerPage, n = e.slice(-t), r = e.slice(0, t);
|
|
337
|
+
n.reverse().forEach((t, n) => {
|
|
338
|
+
let r = t.cloneNode(!0);
|
|
339
|
+
r.setAttribute("data-clone", String(e.length - n - 1)), this.prepend(r);
|
|
340
|
+
}), r.forEach((e, t) => {
|
|
341
|
+
let n = e.cloneNode(!0);
|
|
342
|
+
n.setAttribute("data-clone", String(t)), this.append(n);
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
handleSlideChange() {
|
|
346
|
+
let e = this.getSlides();
|
|
347
|
+
e.forEach((e, t) => {
|
|
348
|
+
e.classList.toggle("--is-active", t === this.activeSlide);
|
|
349
|
+
}), this.hasUpdated && this.emit("sl-slide-change", { detail: {
|
|
350
|
+
index: this.activeSlide,
|
|
351
|
+
slide: e[this.activeSlide]
|
|
352
|
+
} });
|
|
353
|
+
}
|
|
354
|
+
updateSlidesSnap() {
|
|
355
|
+
let e = this.getSlides(), t = this.slidesPerMove;
|
|
356
|
+
e.forEach((e, n) => {
|
|
357
|
+
(n + t) % t === 0 ? e.style.removeProperty("scroll-snap-align") : e.style.setProperty("scroll-snap-align", "none");
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
handleAutoplayChange() {
|
|
361
|
+
this.autoplayController.stop(), this.autoplay && this.autoplayController.start(this.autoplayInterval);
|
|
362
|
+
}
|
|
363
|
+
previous(e = "smooth") {
|
|
364
|
+
this.goToSlide(this.activeSlide - this.slidesPerMove, e);
|
|
365
|
+
}
|
|
366
|
+
next(e = "smooth") {
|
|
367
|
+
this.goToSlide(this.activeSlide + this.slidesPerMove, e);
|
|
368
|
+
}
|
|
369
|
+
goToSlide(e, t = "smooth") {
|
|
370
|
+
let { slidesPerPage: n, loop: r } = this, i = this.getSlides(), a = this.getSlides({ excludeClones: !1 });
|
|
371
|
+
if (!i.length) return;
|
|
372
|
+
let o = r ? (e + i.length) % i.length : h(e, 0, i.length - n);
|
|
373
|
+
this.activeSlide = o;
|
|
374
|
+
let s = this.localize.dir() === "rtl", c = a[h(e + (r ? n : 0) + (s ? n - 1 : 0), 0, a.length - 1)];
|
|
375
|
+
this.scrollToSlide(c, p() ? "auto" : t);
|
|
376
|
+
}
|
|
377
|
+
scrollToSlide(e, t = "smooth") {
|
|
378
|
+
this.pendingSlideChange = !0, window.requestAnimationFrame(() => {
|
|
379
|
+
if (!this.scrollContainer) return;
|
|
380
|
+
let n = this.scrollContainer, r = n.getBoundingClientRect(), i = e.getBoundingClientRect(), a = i.left - r.left, o = i.top - r.top;
|
|
381
|
+
a || o ? (this.pendingSlideChange = !0, n.scrollTo({
|
|
382
|
+
left: a + n.scrollLeft,
|
|
383
|
+
top: o + n.scrollTop,
|
|
384
|
+
behavior: t
|
|
385
|
+
})) : this.pendingSlideChange = !1;
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
render() {
|
|
389
|
+
let { slidesPerMove: t, scrolling: n } = this, r = this.getPageCount(), i = this.getCurrentPage(), a = this.canScrollPrev(), o = this.canScrollNext(), s = this.localize.dir() === "ltr";
|
|
390
|
+
return e`
|
|
413
391
|
<div part="base" class="carousel">
|
|
414
392
|
<div
|
|
415
393
|
id="scroll-container"
|
|
416
394
|
part="scroll-container"
|
|
417
|
-
class="${
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
395
|
+
class="${d({
|
|
396
|
+
carousel__slides: !0,
|
|
397
|
+
"carousel__slides--horizontal": this.orientation === "horizontal",
|
|
398
|
+
"carousel__slides--vertical": this.orientation === "vertical",
|
|
399
|
+
"carousel__slides--dragging": this.dragging
|
|
400
|
+
})}"
|
|
423
401
|
style="--slides-per-page: ${this.slidesPerPage};"
|
|
424
|
-
aria-busy="${
|
|
402
|
+
aria-busy="${n ? "true" : "false"}"
|
|
425
403
|
aria-atomic="true"
|
|
426
404
|
tabindex="0"
|
|
427
405
|
@keydown=${this.handleKeyDown}
|
|
@@ -433,172 +411,135 @@ var l = class extends L {
|
|
|
433
411
|
<slot></slot>
|
|
434
412
|
</div>
|
|
435
413
|
|
|
436
|
-
${this.navigation ?
|
|
414
|
+
${this.navigation ? e`
|
|
437
415
|
<div part="navigation" class="carousel__navigation">
|
|
438
416
|
<button
|
|
439
417
|
part="navigation-button navigation-button--previous"
|
|
440
|
-
class="${
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
418
|
+
class="${d({
|
|
419
|
+
"carousel__navigation-button": !0,
|
|
420
|
+
"carousel__navigation-button--previous": !0,
|
|
421
|
+
"carousel__navigation-button--disabled": !a
|
|
422
|
+
})}"
|
|
445
423
|
aria-label="${this.localize.term("previousSlide")}"
|
|
446
424
|
aria-controls="scroll-container"
|
|
447
|
-
aria-disabled="${
|
|
448
|
-
@click=${
|
|
425
|
+
aria-disabled="${a ? "false" : "true"}"
|
|
426
|
+
@click=${a ? () => this.previous() : null}
|
|
449
427
|
>
|
|
450
428
|
<slot name="previous-icon">
|
|
451
|
-
<sl-icon library="system" name="${
|
|
429
|
+
<sl-icon library="system" name="${s ? "chevron-left" : "chevron-right"}"></sl-icon>
|
|
452
430
|
</slot>
|
|
453
431
|
</button>
|
|
454
432
|
|
|
455
433
|
<button
|
|
456
434
|
part="navigation-button navigation-button--next"
|
|
457
|
-
class=${
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
435
|
+
class=${d({
|
|
436
|
+
"carousel__navigation-button": !0,
|
|
437
|
+
"carousel__navigation-button--next": !0,
|
|
438
|
+
"carousel__navigation-button--disabled": !o
|
|
439
|
+
})}
|
|
462
440
|
aria-label="${this.localize.term("nextSlide")}"
|
|
463
441
|
aria-controls="scroll-container"
|
|
464
|
-
aria-disabled="${
|
|
465
|
-
@click=${
|
|
442
|
+
aria-disabled="${o ? "false" : "true"}"
|
|
443
|
+
@click=${o ? () => this.next() : null}
|
|
466
444
|
>
|
|
467
445
|
<slot name="next-icon">
|
|
468
|
-
<sl-icon library="system" name="${
|
|
446
|
+
<sl-icon library="system" name="${s ? "chevron-right" : "chevron-left"}"></sl-icon>
|
|
469
447
|
</slot>
|
|
470
448
|
</button>
|
|
471
449
|
</div>
|
|
472
450
|
` : ""}
|
|
473
|
-
${this.pagination ?
|
|
451
|
+
${this.pagination ? e`
|
|
474
452
|
<div part="pagination" role="tablist" class="carousel__pagination">
|
|
475
|
-
${
|
|
476
|
-
|
|
477
|
-
|
|
453
|
+
${v(y(r), (n) => {
|
|
454
|
+
let a = n === i;
|
|
455
|
+
return e`
|
|
478
456
|
<button
|
|
479
|
-
part="pagination-item ${
|
|
480
|
-
class="${
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
457
|
+
part="pagination-item ${a ? "pagination-item--active" : ""}"
|
|
458
|
+
class="${d({
|
|
459
|
+
"carousel__pagination-item": !0,
|
|
460
|
+
"carousel__pagination-item--active": a
|
|
461
|
+
})}"
|
|
484
462
|
role="tab"
|
|
485
|
-
id="tab-${
|
|
486
|
-
aria-controls="slide-${
|
|
487
|
-
aria-selected="${
|
|
488
|
-
aria-label="${
|
|
489
|
-
tabindex=${
|
|
490
|
-
@click=${() => this.goToSlide(
|
|
463
|
+
id="tab-${n + 1}"
|
|
464
|
+
aria-controls="slide-${n + 1}"
|
|
465
|
+
aria-selected="${a ? "true" : "false"}"
|
|
466
|
+
aria-label="${a ? this.localize.term("slideNum", n + 1) : this.localize.term("goToSlide", n + 1, r)}"
|
|
467
|
+
tabindex=${a ? "0" : "-1"}
|
|
468
|
+
@click=${() => this.goToSlide(n * t)}
|
|
491
469
|
@keydown=${this.handleKeyDown}
|
|
492
470
|
></button>
|
|
493
471
|
`;
|
|
494
|
-
|
|
472
|
+
})}
|
|
495
473
|
</div>
|
|
496
474
|
` : ""}
|
|
497
475
|
</div>
|
|
498
476
|
`;
|
|
499
|
-
|
|
477
|
+
}
|
|
500
478
|
};
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
],
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
c([
|
|
546
|
-
k({ passive: !0 })
|
|
547
|
-
], l.prototype, "handleScroll", 1);
|
|
548
|
-
c([
|
|
549
|
-
u("loop", { waitUntilFirstUpdate: !0 }),
|
|
550
|
-
u("slidesPerPage", { waitUntilFirstUpdate: !0 })
|
|
551
|
-
], l.prototype, "initializeSlides", 1);
|
|
552
|
-
c([
|
|
553
|
-
u("activeSlide")
|
|
554
|
-
], l.prototype, "handleSlideChange", 1);
|
|
555
|
-
c([
|
|
556
|
-
u("slidesPerMove")
|
|
557
|
-
], l.prototype, "updateSlidesSnap", 1);
|
|
558
|
-
c([
|
|
559
|
-
u("autoplay")
|
|
560
|
-
], l.prototype, "handleAutoplayChange", 1);
|
|
561
|
-
var j = l;
|
|
562
|
-
l.define("sl-carousel");
|
|
563
|
-
var M = (t, e) => {
|
|
564
|
-
let i = 0;
|
|
565
|
-
return function(...s) {
|
|
566
|
-
window.clearTimeout(i), i = window.setTimeout(() => {
|
|
567
|
-
t.call(this, ...s);
|
|
568
|
-
}, e);
|
|
569
|
-
};
|
|
570
|
-
}, b = (t, e, i) => {
|
|
571
|
-
const s = t[e];
|
|
572
|
-
t[e] = function(...o) {
|
|
573
|
-
s.call(this, ...o), i.call(this, s, ...o);
|
|
574
|
-
};
|
|
479
|
+
b.styles = [o, _], b.dependencies = { "sl-icon": l }, s([i({
|
|
480
|
+
type: Boolean,
|
|
481
|
+
reflect: !0
|
|
482
|
+
})], b.prototype, "loop", 2), s([i({
|
|
483
|
+
type: Boolean,
|
|
484
|
+
reflect: !0
|
|
485
|
+
})], b.prototype, "navigation", 2), s([i({
|
|
486
|
+
type: Boolean,
|
|
487
|
+
reflect: !0
|
|
488
|
+
})], b.prototype, "pagination", 2), s([i({
|
|
489
|
+
type: Boolean,
|
|
490
|
+
reflect: !0
|
|
491
|
+
})], b.prototype, "autoplay", 2), s([i({
|
|
492
|
+
type: Number,
|
|
493
|
+
attribute: "autoplay-interval"
|
|
494
|
+
})], b.prototype, "autoplayInterval", 2), s([i({
|
|
495
|
+
type: Number,
|
|
496
|
+
attribute: "slides-per-page"
|
|
497
|
+
})], b.prototype, "slidesPerPage", 2), s([i({
|
|
498
|
+
type: Number,
|
|
499
|
+
attribute: "slides-per-move"
|
|
500
|
+
})], b.prototype, "slidesPerMove", 2), s([i()], b.prototype, "orientation", 2), s([i({
|
|
501
|
+
type: Boolean,
|
|
502
|
+
reflect: !0,
|
|
503
|
+
attribute: "mouse-dragging"
|
|
504
|
+
})], b.prototype, "mouseDragging", 2), s([a(".carousel__slides")], b.prototype, "scrollContainer", 2), s([a(".carousel__pagination")], b.prototype, "paginationContainer", 2), s([n()], b.prototype, "activeSlide", 2), s([n()], b.prototype, "scrolling", 2), s([n()], b.prototype, "dragging", 2), s([r({ passive: !0 })], b.prototype, "handleScroll", 1), s([u("loop", { waitUntilFirstUpdate: !0 }), u("slidesPerPage", { waitUntilFirstUpdate: !0 })], b.prototype, "initializeSlides", 1), s([u("activeSlide")], b.prototype, "handleSlideChange", 1), s([u("slidesPerMove")], b.prototype, "updateSlidesSnap", 1), s([u("autoplay")], b.prototype, "handleAutoplayChange", 1);
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TGG3OU34.js
|
|
507
|
+
var x = b;
|
|
508
|
+
b.define("sl-carousel");
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZH2AND3P.js
|
|
511
|
+
var S = (e, t) => {
|
|
512
|
+
let n = 0;
|
|
513
|
+
return function(...r) {
|
|
514
|
+
window.clearTimeout(n), n = window.setTimeout(() => {
|
|
515
|
+
e.call(this, ...r);
|
|
516
|
+
}, t);
|
|
517
|
+
};
|
|
518
|
+
}, C = (e, t, n) => {
|
|
519
|
+
let r = e[t];
|
|
520
|
+
e[t] = function(...e) {
|
|
521
|
+
r.call(this, ...e), n.call(this, r, ...e);
|
|
522
|
+
};
|
|
575
523
|
};
|
|
576
524
|
(() => {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
const r = i.get(this);
|
|
596
|
-
r && a.call(this, "scroll", r, { passive: !0 });
|
|
597
|
-
});
|
|
598
|
-
}
|
|
525
|
+
if (!(typeof window > "u") && !("onscrollend" in window)) {
|
|
526
|
+
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = (t) => {
|
|
527
|
+
for (let n of t.changedTouches) e.add(n.identifier);
|
|
528
|
+
}, r = (t) => {
|
|
529
|
+
for (let n of t.changedTouches) e.delete(n.identifier);
|
|
530
|
+
};
|
|
531
|
+
document.addEventListener("touchstart", n, !0), document.addEventListener("touchend", r, !0), document.addEventListener("touchcancel", r, !0), C(EventTarget.prototype, "addEventListener", function(n, r) {
|
|
532
|
+
if (r !== "scrollend") return;
|
|
533
|
+
let i = S(() => {
|
|
534
|
+
e.size ? i() : this.dispatchEvent(new Event("scrollend"));
|
|
535
|
+
}, 100);
|
|
536
|
+
n.call(this, "scroll", i, { passive: !0 }), t.set(this, i);
|
|
537
|
+
}), C(EventTarget.prototype, "removeEventListener", function(e, n) {
|
|
538
|
+
if (n !== "scrollend") return;
|
|
539
|
+
let r = t.get(this);
|
|
540
|
+
r && e.call(this, "scroll", r, { passive: !0 });
|
|
541
|
+
});
|
|
542
|
+
}
|
|
599
543
|
})();
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
j as c,
|
|
603
|
-
k as t
|
|
604
|
-
};
|
|
544
|
+
//#endregion
|
|
545
|
+
export { h as n, x as t };
|