@vuetify/v0 1.2.1 → 1.2.2
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 +29 -0
- package/dist/{adapter-TiGrumDi.mjs → adapter-B6R54NMr.mjs} +1 -1
- package/dist/{adapter-D5nT3bLw.d.mts → adapter-BC1VWu0H.d.mts} +0 -1
- package/dist/{adapter-PDTe5nFT.d.mts → adapter-BP7jNtvH.d.mts} +3 -4
- package/dist/{adapter-FckJSz_o.d.mts → adapter-Bi799Zn7.d.mts} +2 -3
- package/dist/{adapter-ClB-53_F.d.mts → adapter-CbkRdMju.d.mts} +0 -1
- package/dist/{adapter-BiQV5j8B.mjs → adapter-DMzQI6ma.mjs} +8 -6
- package/dist/{adapter-BXunW_mw.d.mts → adapter-w8SEWO2v.d.mts} +1 -2
- package/dist/{adapter-BuSfpxur.mjs → adapter-z5dFxm0f.mjs} +1 -1
- package/dist/browser/index.d.ts +1134 -1016
- package/dist/browser/index.js +472 -461
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/{components-MCFhfNlt.mjs → components-CSFzUH3d.mjs} +365 -360
- package/dist/composables/index.d.mts +22 -22
- package/dist/composables/index.mjs +40 -40
- package/dist/{composables-8xtFVviy.mjs → composables-CLNFa1uu.mjs} +55 -47
- package/dist/{consola-cad-VEV2.mjs → consola-B9K6H_EB.mjs} +1 -1
- package/dist/{consola-CdMU53rU.d.mts → consola-BGm_oQkS.d.mts} +1 -2
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{createDataTable-OCGnpy-N.mjs → createDataTable-CfJCltDt.mjs} +14 -12
- package/dist/{createGroup-DtVYu-VY.mjs → createGroup-CKE5o-VH.mjs} +5 -4
- package/dist/{createPlugin-Oo6t-vBw.mjs → createPlugin-YYkwbiUd.mjs} +3 -2
- package/dist/{createRegistry-DSQiALGi.mjs → createRegistry-D31hPifx.mjs} +8 -5
- package/dist/{createSelection-TB5oK1FG.mjs → createSelection-DdTgggyM.mjs} +4 -3
- package/dist/{createSingle-CV1qigP2.mjs → createSingle-hQWwVTVX.mjs} +4 -3
- package/dist/{createTokens-B0CqJEL6.mjs → createTokens-DuZrXRfN.mjs} +6 -5
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +1 -1
- package/dist/data-table/adapters/index.d.mts +6 -5
- package/dist/data-table/adapters/index.mjs +4 -4
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +1 -1
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +1 -1
- package/dist/data-table/index.d.mts +6 -6
- package/dist/data-table/index.mjs +5 -5
- package/dist/date/index.d.mts +1 -2
- package/dist/date/index.mjs +3 -3
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.mjs +2 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +3 -2
- package/dist/features/index.d.mts +3 -3
- package/dist/features/index.mjs +2 -2
- package/dist/{flagsmith-DcIDrI7_.d.mts → flagsmith-BA8q5LAx.d.mts} +1 -2
- package/dist/{globals-wvVdMRFF.mjs → globals-DVcr1oW0.mjs} +1 -1
- package/dist/{htmlElements-CHXZfsZu.mjs → htmlElements-Bt1XN_d8.mjs} +1 -1
- package/dist/{index-H_hl6-4b.d.mts → index-ClUa0Bl7.d.mts} +0 -1
- package/dist/{index-Dgkt7Ve9.d.mts → index-Ct0Pmzpx.d.mts} +144 -58
- package/dist/{index-3bThcqCN.d.mts → index-DDwX_0Um.d.mts} +5 -5
- package/dist/{index-CORslci7.d.mts → index-DMQv04YO.d.mts} +2 -8
- package/dist/{index-3vvA76pZ.d.mts → index-Dlr9_rf1.d.mts} +2 -3
- package/dist/index-DmDf_FmM.d.mts +4 -0
- package/dist/{index-BTdCsSz0.d.mts → index-DqAML7MT.d.mts} +1110 -1073
- package/dist/{index-DtiaWx5U.d.mts → index-XNZrgWCq.d.mts} +1 -2
- package/dist/{index-4Z38WhA9.d.mts → index-Y6VfllT2.d.mts} +19 -20
- package/dist/index-h87SNntw.d.mts +2 -0
- package/dist/index.d.mts +25 -25
- package/dist/index.mjs +43 -43
- package/dist/json/web-types.json +1 -1
- package/dist/{launchdarkly-CUzunYol.d.mts → launchdarkly-CWhPi3lZ.d.mts} +1 -2
- package/dist/locale/adapters/index.d.mts +4 -3
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -2
- package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +4 -4
- package/dist/locale/index.mjs +3 -3
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/consola/index.mjs +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +4 -4
- package/dist/logger/adapters/pino/index.d.mts +1 -1
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +6 -6
- package/dist/logger/index.mjs +5 -5
- package/dist/notifications/index.d.mts +1 -2
- package/dist/notifications/index.mjs +4 -2
- package/dist/palettes/ant/generate/index.d.mts +0 -1
- package/dist/palettes/ant/generate/index.mjs +1 -1
- package/dist/palettes/ant/index.d.mts +1 -2
- package/dist/palettes/index.d.mts +3 -4
- package/dist/palettes/leonardo/generate/index.d.mts +0 -1
- package/dist/palettes/leonardo/generate/index.mjs +1 -1
- package/dist/palettes/material/generate/index.d.mts +0 -1
- package/dist/palettes/material/generate/index.mjs +1 -1
- package/dist/palettes/material/index.d.mts +1 -2
- package/dist/palettes/md1/index.d.mts +1 -2
- package/dist/palettes/md2/index.d.mts +1 -2
- package/dist/palettes/radix/index.d.mts +1 -2
- package/dist/palettes/tailwind/index.d.mts +1 -2
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/index.mjs +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.mjs +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +2 -2
- package/dist/{pino-BscMO3RR.mjs → pino-DOI2Y-WP.mjs} +1 -1
- package/dist/{pino-DjeWBFnj.d.mts → pino-cSCLlizQ.d.mts} +1 -2
- package/dist/popover/adapters/floating-ui/index.d.mts +1 -2
- package/dist/popover/adapters/floating-ui/index.mjs +4 -3
- package/dist/popover/index.d.mts +3 -3
- package/dist/popover/index.mjs +2 -2
- package/dist/{posthog-CJAYssdr.d.mts → posthog-Bzaj2Jbd.d.mts} +1 -2
- package/dist/rules/index.d.mts +2 -2
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-m7iD1vOr.mjs → server-CSXNc-my.mjs} +1 -1
- package/dist/{server-5vbJ7GGs.d.mts → server-bE0UxPFS.d.mts} +1 -2
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/index.mjs +1 -1
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/adapters/memory/index.mjs +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/storage/index.mjs +2 -2
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +3 -3
- package/dist/theme/adapters/unhead/index.d.mts +1 -1
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +4 -4
- package/dist/{toArray-MY9Kb1Qy.mjs → toArray-DCZRopC6.mjs} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/{unhead-SyU953Pt.mjs → unhead-hPXFvbDX.mjs} +2 -2
- package/dist/{useEventListener-hF6R2p6X.mjs → useEventListener-DI-1-WPJ.mjs} +2 -2
- package/dist/{useFeatures-CTpkM6hV.mjs → useFeatures-CuTiM9YA.mjs} +4 -4
- package/dist/{useLocale-D-iWu08b.mjs → useLocale-OjumdVbi.mjs} +4 -4
- package/dist/{useLogger-CDsgHbzO.mjs → useLogger-CuGy-g9B.mjs} +3 -3
- package/dist/{useNotifications-DhNjvRt1.mjs → useNotifications-BuZuDxSy.mjs} +6 -5
- package/dist/{usePermissions-CKe8xcvz.mjs → usePermissions-CabbzZd_.mjs} +4 -4
- package/dist/{usePopover-DyAdne_S.mjs → usePopover-7WMiJ9Zt.mjs} +8 -6
- package/dist/{useRovingFocus-D0OOozbe.mjs → useRovingFocus-DuYBgzOA.mjs} +91 -78
- package/dist/{useRules-DA8bNhNq.mjs → useRules-Bg7yBYP5.mjs} +5 -5
- package/dist/{useStorage-D9c6xx4N.mjs → useStorage-BtuW9p_Q.mjs} +7 -6
- package/dist/{useTheme-BrXA5VBp.mjs → useTheme-CfrtMZFH.mjs} +6 -6
- package/dist/{useTimer-DLtkRCHw.mjs → useTimer-aOp5haHg.mjs} +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +32 -32
- package/dist/{v0-cC-WxCLd.mjs → v0-B9gSaems.mjs} +2 -2
- package/dist/{v0-DpFVF6pD.mjs → v0-BusOrX6s.mjs} +2 -2
- package/dist/{v0-GI9U-rPA.d.mts → v0-CMqoGujd.d.mts} +1 -2
- package/dist/{v0-yZ2ZUtVF.mjs → v0-DoHWpAZn.mjs} +1 -1
- package/dist/{v0-C09lR5fc.d.mts → v0-IFGH9KS0.d.mts} +1 -2
- package/dist/{v0-CaTmC7C4.mjs → v0-Lo13oRUf.mjs} +2 -2
- package/dist/{v0-DfFK-p4X.d.mts → v0-QlSKvaAH.d.mts} +1 -2
- package/dist/{virtual-Bbu26O_h.mjs → virtual-Bsnip0cm.mjs} +1 -1
- package/dist/{virtual-JIdFLpTQ.d.mts → virtual-DrLIdUr1.d.mts} +1 -2
- package/package.json +10 -10
- package/dist/index-CX869wwk.d.mts +0 -1
- package/dist/index-CsuikFeJ.d.mts +0 -1
- /package/dist/{adapter-Chznb9Ju.mjs → adapter-B5mEUP5W.mjs} +0 -0
- /package/dist/{adapter-CrRJuxRk.mjs → adapter-B5teFrQH.mjs} +0 -0
- /package/dist/{adapter-D8zizQVP.mjs → adapter-BTNELv6-.mjs} +0 -0
- /package/dist/{adapter-ryk5H6YZ.d.mts → adapter-CHvvxw4c.d.mts} +0 -0
- /package/dist/{adapter-8UADsA3-.mjs → adapter-CxCiZYZO.mjs} +0 -0
- /package/dist/{createTrinity-z-3q9QWR.mjs → createTrinity-DJROWgXU.mjs} +0 -0
- /package/dist/{index-u_qSc2xS.d.mts → index-Bmr3SnAx.d.mts} +0 -0
- /package/dist/{index-Djhiy3nS.d.mts → index-Cyv2jtYx.d.mts} +0 -0
- /package/dist/{memory-CR6zvuaP.mjs → memory-C-Hi69Zc.mjs} +0 -0
- /package/dist/{memory-B7z1RR9r.d.mts → memory-DyA22X2q.d.mts} +0 -0
- /package/dist/{v0-Ch0yBKEj.mjs → v0-C4TLCYZJ.mjs} +0 -0
package/dist/browser/index.js
CHANGED
|
@@ -22,13 +22,13 @@ const SELF_CLOSING_TAGS = /* @__PURE__ */ new Set([
|
|
|
22
22
|
/**
|
|
23
23
|
* Check if an element is self-closing
|
|
24
24
|
*/
|
|
25
|
-
/*
|
|
25
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
26
26
|
function isSelfClosingTag(tag) {
|
|
27
27
|
return SELF_CLOSING_TAGS.has(tag.toLowerCase());
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/utilities/color.ts
|
|
31
|
-
/*
|
|
31
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
32
32
|
function hexToRgb(hex) {
|
|
33
33
|
const clean = hex.startsWith("#") ? hex.slice(1) : hex;
|
|
34
34
|
if (clean.length === 3 || clean.length === 4) {
|
|
@@ -62,7 +62,7 @@ function hexToRgb(hex) {
|
|
|
62
62
|
a
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
/*
|
|
65
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
66
66
|
function rgbToHex({ r, g, b, a }) {
|
|
67
67
|
const hex = "#" + [
|
|
68
68
|
r,
|
|
@@ -98,7 +98,7 @@ function luminance(rgb) {
|
|
|
98
98
|
function clamp$1(y) {
|
|
99
99
|
return y > blkThrs ? y : y + Math.pow(blkThrs - y, blkClmp);
|
|
100
100
|
}
|
|
101
|
-
/*
|
|
101
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
102
102
|
function apca(text, background) {
|
|
103
103
|
const txtY = clamp$1(luminance(text));
|
|
104
104
|
const bgY = clamp$1(luminance(background));
|
|
@@ -109,7 +109,7 @@ function apca(text, background) {
|
|
|
109
109
|
return contrast < loBoWoffset ? 0 : (contrast - loBoWoffset) * 100;
|
|
110
110
|
} else {
|
|
111
111
|
contrast = (Math.pow(bgY, revBG) - Math.pow(txtY, revTXT)) * scaleWoB;
|
|
112
|
-
return contrast >
|
|
112
|
+
return contrast > -.027 ? 0 : (contrast + loWoBoffset) * 100;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
const BLACK = {
|
|
@@ -122,7 +122,7 @@ const WHITE = {
|
|
|
122
122
|
g: 255,
|
|
123
123
|
b: 255
|
|
124
124
|
};
|
|
125
|
-
/*
|
|
125
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
126
126
|
function foreground(hex) {
|
|
127
127
|
const rgb = /* @__PURE__ */ hexToRgb(hex);
|
|
128
128
|
return Math.abs(/* @__PURE__ */ apca(BLACK, rgb)) > Math.abs(/* @__PURE__ */ apca(WHITE, rgb)) ? "#000000" : "#ffffff";
|
|
@@ -261,7 +261,7 @@ function mergeRanges(a, b) {
|
|
|
261
261
|
* // [[2, 8]] — typing the exact accented name always finds itself
|
|
262
262
|
* ```
|
|
263
263
|
*/
|
|
264
|
-
/*
|
|
264
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
265
265
|
function findMatchRanges(text, query, options = {}) {
|
|
266
266
|
const { ignoreCase = false, ignoreAccents = false, matchAll = false } = options;
|
|
267
267
|
const foldQuery = ignoreAccents === true || ignoreAccents === "query";
|
|
@@ -278,7 +278,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
|
|
|
278
278
|
const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
|
|
279
279
|
const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
|
|
280
280
|
const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
|
|
281
|
-
const version = "1.2.
|
|
281
|
+
const version = "1.2.2";
|
|
282
282
|
/* v8 ignore next -- build-time constant, __DEV__ short-circuits in tests */
|
|
283
283
|
const __LOGGER_ENABLED__ = false;
|
|
284
284
|
//#endregion
|
|
@@ -299,11 +299,11 @@ function getInstanceCompat() {
|
|
|
299
299
|
if (INSTANCE_KEY in vueExports) return vueExports[INSTANCE_KEY];
|
|
300
300
|
return Vue.getCurrentInstance();
|
|
301
301
|
}
|
|
302
|
-
/*
|
|
302
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
303
303
|
function instanceExists() {
|
|
304
304
|
return !/* @__PURE__ */ isNull(getInstanceCompat());
|
|
305
305
|
}
|
|
306
|
-
/*
|
|
306
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
307
307
|
function instanceName() {
|
|
308
308
|
return getInstanceCompat()?.type?.name;
|
|
309
309
|
}
|
|
@@ -328,7 +328,7 @@ function instanceName() {
|
|
|
328
328
|
* isFunction('string') // false
|
|
329
329
|
* ```
|
|
330
330
|
*/
|
|
331
|
-
/*
|
|
331
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
332
332
|
function isFunction(item) {
|
|
333
333
|
return typeof item === "function";
|
|
334
334
|
}
|
|
@@ -344,7 +344,7 @@ function isFunction(item) {
|
|
|
344
344
|
* isString(123) // false
|
|
345
345
|
* ```
|
|
346
346
|
*/
|
|
347
|
-
/*
|
|
347
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
348
348
|
function isString(item) {
|
|
349
349
|
return typeof item === "string";
|
|
350
350
|
}
|
|
@@ -363,7 +363,7 @@ function isString(item) {
|
|
|
363
363
|
*
|
|
364
364
|
* @see {@link isNaN} to check for NaN specifically
|
|
365
365
|
*/
|
|
366
|
-
/*
|
|
366
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
367
367
|
function isNumber(item) {
|
|
368
368
|
return typeof item === "number";
|
|
369
369
|
}
|
|
@@ -380,7 +380,7 @@ function isNumber(item) {
|
|
|
380
380
|
* isBoolean(0) // false
|
|
381
381
|
* ```
|
|
382
382
|
*/
|
|
383
|
-
/*
|
|
383
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
384
384
|
function isBoolean(item) {
|
|
385
385
|
return typeof item === "boolean";
|
|
386
386
|
}
|
|
@@ -410,7 +410,7 @@ function isBoolean(item) {
|
|
|
410
410
|
* @see {@link isArray} to check for arrays
|
|
411
411
|
* @see {@link isNull} to check for null
|
|
412
412
|
*/
|
|
413
|
-
/*
|
|
413
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
414
414
|
function isObject(item) {
|
|
415
415
|
return typeof item === "object" && item !== null && !Array.isArray(item);
|
|
416
416
|
}
|
|
@@ -434,7 +434,7 @@ function isObject(item) {
|
|
|
434
434
|
* supported. If you specifically want native Promise instances, use
|
|
435
435
|
* `instanceof Promise` directly.
|
|
436
436
|
*/
|
|
437
|
-
/*
|
|
437
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
438
438
|
function isThenable(item) {
|
|
439
439
|
return /* @__PURE__ */ isObject(item) && "then" in item && /* @__PURE__ */ isFunction(item.then);
|
|
440
440
|
}
|
|
@@ -466,7 +466,7 @@ function isThenable(item) {
|
|
|
466
466
|
* first branch (a predicate must be assignable to its parameter's type) without
|
|
467
467
|
* letting an array argument capture the inference site.
|
|
468
468
|
*/
|
|
469
|
-
/*
|
|
469
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
470
470
|
function isArray(item) {
|
|
471
471
|
return Array.isArray(item);
|
|
472
472
|
}
|
|
@@ -483,7 +483,7 @@ function isArray(item) {
|
|
|
483
483
|
* isElement(null) // false
|
|
484
484
|
* ```
|
|
485
485
|
*/
|
|
486
|
-
/*
|
|
486
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
487
487
|
function isElement(item) {
|
|
488
488
|
return typeof Element !== "undefined" && item instanceof Element;
|
|
489
489
|
}
|
|
@@ -501,7 +501,7 @@ function isElement(item) {
|
|
|
501
501
|
* const active = getActiveElement()
|
|
502
502
|
* ```
|
|
503
503
|
*/
|
|
504
|
-
/*
|
|
504
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
505
505
|
function getActiveElement() {
|
|
506
506
|
if (!IN_BROWSER) return null;
|
|
507
507
|
let active = document.activeElement;
|
|
@@ -523,7 +523,7 @@ function getActiveElement() {
|
|
|
523
523
|
* @see {@link isUndefined} to check for undefined
|
|
524
524
|
* @see {@link isNullOrUndefined} to check for either
|
|
525
525
|
*/
|
|
526
|
-
/*
|
|
526
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
527
527
|
function isNull(item) {
|
|
528
528
|
return item === null;
|
|
529
529
|
}
|
|
@@ -547,7 +547,7 @@ function isNull(item) {
|
|
|
547
547
|
* @see {@link isNull} to check for null only
|
|
548
548
|
* @see {@link isUndefined} to check for undefined only
|
|
549
549
|
*/
|
|
550
|
-
/*
|
|
550
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
551
551
|
function isNullOrUndefined(item) {
|
|
552
552
|
return item == null;
|
|
553
553
|
}
|
|
@@ -566,7 +566,7 @@ function isNullOrUndefined(item) {
|
|
|
566
566
|
* @see {@link isNull} to check for null
|
|
567
567
|
* @see {@link isNullOrUndefined} to check for either
|
|
568
568
|
*/
|
|
569
|
-
/*
|
|
569
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
570
570
|
function isUndefined(item) {
|
|
571
571
|
return item === void 0;
|
|
572
572
|
}
|
|
@@ -585,7 +585,7 @@ function isUndefined(item) {
|
|
|
585
585
|
* isPrimitive(null) // false
|
|
586
586
|
* ```
|
|
587
587
|
*/
|
|
588
|
-
/*
|
|
588
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
589
589
|
function isPrimitive(item) {
|
|
590
590
|
return typeof item === "string" || typeof item === "number" || typeof item === "boolean";
|
|
591
591
|
}
|
|
@@ -601,7 +601,7 @@ function isPrimitive(item) {
|
|
|
601
601
|
* isSymbol('symbol') // false
|
|
602
602
|
* ```
|
|
603
603
|
*/
|
|
604
|
-
/*
|
|
604
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
605
605
|
function isSymbol(item) {
|
|
606
606
|
return typeof item === "symbol";
|
|
607
607
|
}
|
|
@@ -625,7 +625,7 @@ function isSymbol(item) {
|
|
|
625
625
|
*
|
|
626
626
|
* @see {@link isNumber} to check if a value is a number type
|
|
627
627
|
*/
|
|
628
|
-
/*
|
|
628
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
629
629
|
function isNaN(item) {
|
|
630
630
|
return /* @__PURE__ */ isNumber(item) && Number.isNaN(item);
|
|
631
631
|
}
|
|
@@ -666,7 +666,7 @@ function isPlainObject(value) {
|
|
|
666
666
|
* mergeDeep({ arr: [1, 2] }, { arr: [3] }) // { arr: [3] }
|
|
667
667
|
* ```
|
|
668
668
|
*/
|
|
669
|
-
/*
|
|
669
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
670
670
|
function mergeDeep(target, ...sources) {
|
|
671
671
|
const out = {};
|
|
672
672
|
for (const key in target) if (Object.hasOwn(target, key)) out[key] = target[key];
|
|
@@ -705,7 +705,7 @@ let idCounter = 0;
|
|
|
705
705
|
* const id = useId() // 'v0-0', 'v0-1', etc.
|
|
706
706
|
* ```
|
|
707
707
|
*/
|
|
708
|
-
/*
|
|
708
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
709
709
|
function useId() {
|
|
710
710
|
if (/* @__PURE__ */ instanceExists()) return useId$1();
|
|
711
711
|
return `v0-${idCounter++}`;
|
|
@@ -725,7 +725,7 @@ function useId() {
|
|
|
725
725
|
* clamp(15, 0, 10) // 10
|
|
726
726
|
* ```
|
|
727
727
|
*/
|
|
728
|
-
/*
|
|
728
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
729
729
|
function clamp(value, min = 0, max = 1) {
|
|
730
730
|
if (!Number.isFinite(value)) return min;
|
|
731
731
|
return Math.max(min, Math.min(max, value));
|
|
@@ -745,7 +745,7 @@ function clamp(value, min = 0, max = 1) {
|
|
|
745
745
|
* range(0) // []
|
|
746
746
|
* ```
|
|
747
747
|
*/
|
|
748
|
-
/*
|
|
748
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
749
749
|
function range(length, start = 0) {
|
|
750
750
|
return Array.from({ length }, (_, index) => start + index);
|
|
751
751
|
}
|
|
@@ -781,7 +781,7 @@ function range(length, start = 0) {
|
|
|
781
781
|
* pxToNumber('0px', 100) // 0
|
|
782
782
|
* ```
|
|
783
783
|
*/
|
|
784
|
-
/*
|
|
784
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
785
785
|
function pxToNumber(value, fallback = 0) {
|
|
786
786
|
if (!/* @__PURE__ */ isString(value)) return fallback;
|
|
787
787
|
const parsed = Number.parseFloat(value);
|
|
@@ -793,7 +793,7 @@ function pxToNumber(value, fallback = 0) {
|
|
|
793
793
|
*
|
|
794
794
|
* @internal
|
|
795
795
|
*/
|
|
796
|
-
/*
|
|
796
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
797
797
|
function resolveIds(ids, getter) {
|
|
798
798
|
const result = [];
|
|
799
799
|
for (const id of ids) {
|
|
@@ -807,7 +807,7 @@ function resolveIds(ids, getter) {
|
|
|
807
807
|
*
|
|
808
808
|
* @internal
|
|
809
809
|
*/
|
|
810
|
-
/*
|
|
810
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
811
811
|
function resolveIndexes(items) {
|
|
812
812
|
const result = [];
|
|
813
813
|
for (const item of items) {
|
|
@@ -929,7 +929,7 @@ var V0Error = class extends Error {
|
|
|
929
929
|
* }
|
|
930
930
|
* ```
|
|
931
931
|
*/
|
|
932
|
-
/*
|
|
932
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
933
933
|
function isV0Error(value, code) {
|
|
934
934
|
if (!(value instanceof V0Error)) return false;
|
|
935
935
|
return /* @__PURE__ */ isUndefined(code) || value.code === code;
|
|
@@ -959,7 +959,7 @@ function isV0Error(value, code) {
|
|
|
959
959
|
* serving as the foundation for all other components that need polymorphic
|
|
960
960
|
* rendering capabilities.
|
|
961
961
|
*/
|
|
962
|
-
const _sfc_main$12 =
|
|
962
|
+
const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
963
963
|
name: "Atom",
|
|
964
964
|
__name: "Atom",
|
|
965
965
|
props: {
|
|
@@ -976,7 +976,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
976
976
|
const isSelfClosing = toRef(() => /* @__PURE__ */ isString(__props.as) && /* @__PURE__ */ isSelfClosingTag(__props.as));
|
|
977
977
|
const slotProps = toRef(() => attrs);
|
|
978
978
|
return (_ctx, _cache) => {
|
|
979
|
-
return __props.renderless || unref(isNull)(__props.as) ? renderSlot(_ctx.$slots, "default", normalizeProps(
|
|
979
|
+
return __props.renderless || unref(isNull)(__props.as) ? renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), void 0, void 0, 0) : !isSelfClosing.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({ key: 1 }, slotProps.value, {
|
|
980
980
|
ref_key: "element",
|
|
981
981
|
ref: element
|
|
982
982
|
}), {
|
|
@@ -992,7 +992,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
992
992
|
});
|
|
993
993
|
//#endregion
|
|
994
994
|
//#region src/components/Alert/AlertDescription.vue
|
|
995
|
-
const _sfc_main =
|
|
995
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
996
996
|
name: "AlertDescription",
|
|
997
997
|
__name: "AlertDescription",
|
|
998
998
|
props: {
|
|
@@ -1014,7 +1014,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1014
1014
|
});
|
|
1015
1015
|
//#endregion
|
|
1016
1016
|
//#region src/components/Alert/AlertRoot.vue
|
|
1017
|
-
const _sfc_main$9 =
|
|
1017
|
+
const _sfc_main$9 = /*@__PURE__*/ defineComponent({
|
|
1018
1018
|
name: "AlertRoot",
|
|
1019
1019
|
__name: "AlertRoot",
|
|
1020
1020
|
props: {
|
|
@@ -1041,7 +1041,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1041
1041
|
});
|
|
1042
1042
|
//#endregion
|
|
1043
1043
|
//#region src/components/Alert/AlertTitle.vue
|
|
1044
|
-
const _sfc_main$10 =
|
|
1044
|
+
const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
1045
1045
|
name: "AlertTitle",
|
|
1046
1046
|
__name: "AlertTitle",
|
|
1047
1047
|
props: {
|
|
@@ -1255,10 +1255,10 @@ function createContext(keyOrOptions, defaultValue) {
|
|
|
1255
1255
|
//#endregion
|
|
1256
1256
|
//#region src/components/AlertDialog/AlertDialogRoot.vue
|
|
1257
1257
|
const [useAlertDialogContext, provideAlertDialogContext] = createContext();
|
|
1258
|
-
const _sfc_main$7 =
|
|
1258
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
1259
1259
|
name: "AlertDialogRoot",
|
|
1260
1260
|
__name: "AlertDialogRoot",
|
|
1261
|
-
props:
|
|
1261
|
+
props: /*@__PURE__*/ mergeModels({
|
|
1262
1262
|
namespace: { default: "v0:alert-dialog" },
|
|
1263
1263
|
id: {},
|
|
1264
1264
|
as: { default: null },
|
|
@@ -1270,7 +1270,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1270
1270
|
},
|
|
1271
1271
|
"modelModifiers": {}
|
|
1272
1272
|
}),
|
|
1273
|
-
emits:
|
|
1273
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
1274
1274
|
setup(__props) {
|
|
1275
1275
|
const id = __props.id ?? /* @__PURE__ */ useId();
|
|
1276
1276
|
const isOpen = useModel(__props, "modelValue");
|
|
@@ -1319,7 +1319,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1319
1319
|
});
|
|
1320
1320
|
//#endregion
|
|
1321
1321
|
//#region src/components/AlertDialog/AlertDialogAction.vue
|
|
1322
|
-
const _sfc_main$1 =
|
|
1322
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
1323
1323
|
name: "AlertDialogAction",
|
|
1324
1324
|
__name: "AlertDialogAction",
|
|
1325
1325
|
props: {
|
|
@@ -1382,7 +1382,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1382
1382
|
});
|
|
1383
1383
|
//#endregion
|
|
1384
1384
|
//#region src/components/AlertDialog/AlertDialogActivator.vue
|
|
1385
|
-
const _sfc_main$2 =
|
|
1385
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
1386
1386
|
name: "AlertDialogActivator",
|
|
1387
1387
|
__name: "AlertDialogActivator",
|
|
1388
1388
|
props: {
|
|
@@ -1427,7 +1427,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1427
1427
|
});
|
|
1428
1428
|
//#endregion
|
|
1429
1429
|
//#region src/components/AlertDialog/AlertDialogCancel.vue
|
|
1430
|
-
const _sfc_main$3 =
|
|
1430
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
1431
1431
|
name: "AlertDialogCancel",
|
|
1432
1432
|
__name: "AlertDialogCancel",
|
|
1433
1433
|
props: {
|
|
@@ -2156,8 +2156,10 @@ function createRegistry(options) {
|
|
|
2156
2156
|
value = patch.value;
|
|
2157
2157
|
valueIsIndex = false;
|
|
2158
2158
|
}
|
|
2159
|
-
if (valueIsIndex !== existing.valueIsIndex)
|
|
2160
|
-
|
|
2159
|
+
if (valueIsIndex !== existing.valueIsIndex) {
|
|
2160
|
+
if (valueIsIndex) indexDependentCount++;
|
|
2161
|
+
else indexDependentCount--;
|
|
2162
|
+
}
|
|
2161
2163
|
if (!Object.is(value, existing.value)) {
|
|
2162
2164
|
unassign(existing.value, id);
|
|
2163
2165
|
assign(value, id);
|
|
@@ -3339,7 +3341,7 @@ function useTokens(namespace = "v0:tokens") {
|
|
|
3339
3341
|
* @param prefix An optional prefix to prepend to each token ID.
|
|
3340
3342
|
* @returns An array of flattened tokens, each with an ID and value.
|
|
3341
3343
|
*/
|
|
3342
|
-
/*
|
|
3344
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
3343
3345
|
function flatten(tokens, prefix = "", flat = false) {
|
|
3344
3346
|
const flattened = [];
|
|
3345
3347
|
const stack = [{
|
|
@@ -3578,7 +3580,7 @@ const [createLocaleContext, createLocalePlugin, useLocale] = createPluginContext
|
|
|
3578
3580
|
});
|
|
3579
3581
|
//#endregion
|
|
3580
3582
|
//#region src/components/AlertDialog/AlertDialogClose.vue
|
|
3581
|
-
const _sfc_main$4 =
|
|
3583
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
3582
3584
|
name: "AlertDialogClose",
|
|
3583
3585
|
__name: "AlertDialogClose",
|
|
3584
3586
|
props: {
|
|
@@ -3662,7 +3664,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3662
3664
|
* console.log(valueAsArray) // ['Example Value']
|
|
3663
3665
|
* ```
|
|
3664
3666
|
*/
|
|
3665
|
-
/*
|
|
3667
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
3666
3668
|
function toArray(value) {
|
|
3667
3669
|
return /* @__PURE__ */ isNullOrUndefined(value) ? [] : /* @__PURE__ */ isArray(value) ? value : [value];
|
|
3668
3670
|
}
|
|
@@ -4102,7 +4104,7 @@ function useClickOutside(target, handler, options = {}) {
|
|
|
4102
4104
|
* toElement(component) // Element | undefined (from $el)
|
|
4103
4105
|
* ```
|
|
4104
4106
|
*/
|
|
4105
|
-
/*
|
|
4107
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
4106
4108
|
function toElement(target) {
|
|
4107
4109
|
if (!target) return void 0;
|
|
4108
4110
|
if (/* @__PURE__ */ isElement(target)) return target;
|
|
@@ -4465,7 +4467,7 @@ function useToggleScope(source, fn) {
|
|
|
4465
4467
|
}
|
|
4466
4468
|
//#endregion
|
|
4467
4469
|
//#region src/components/AlertDialog/AlertDialogContent.vue
|
|
4468
|
-
const _sfc_main$5 =
|
|
4470
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
4469
4471
|
name: "AlertDialogContent",
|
|
4470
4472
|
__name: "AlertDialogContent",
|
|
4471
4473
|
props: {
|
|
@@ -4566,7 +4568,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4566
4568
|
});
|
|
4567
4569
|
//#endregion
|
|
4568
4570
|
//#region src/components/AlertDialog/AlertDialogDescription.vue
|
|
4569
|
-
const _sfc_main$6 =
|
|
4571
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
4570
4572
|
name: "AlertDialogDescription",
|
|
4571
4573
|
__name: "AlertDialogDescription",
|
|
4572
4574
|
props: {
|
|
@@ -4596,7 +4598,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
4596
4598
|
});
|
|
4597
4599
|
//#endregion
|
|
4598
4600
|
//#region src/components/AlertDialog/AlertDialogTitle.vue
|
|
4599
|
-
const _sfc_main$8 =
|
|
4601
|
+
const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
4600
4602
|
name: "AlertDialogTitle",
|
|
4601
4603
|
__name: "AlertDialogTitle",
|
|
4602
4604
|
props: {
|
|
@@ -4810,7 +4812,7 @@ const AlertDialog = {
|
|
|
4810
4812
|
};
|
|
4811
4813
|
//#endregion
|
|
4812
4814
|
//#region src/components/AspectRatio/AspectRatio.vue
|
|
4813
|
-
const _sfc_main$11 =
|
|
4815
|
+
const _sfc_main$11 = /*@__PURE__*/ defineComponent({
|
|
4814
4816
|
name: "AspectRatio",
|
|
4815
4817
|
__name: "AspectRatio",
|
|
4816
4818
|
props: {
|
|
@@ -5086,7 +5088,7 @@ function createObserver(target, userCallback, config) {
|
|
|
5086
5088
|
* with no layout box resolves its lengths to `''`, and this runs on whatever
|
|
5087
5089
|
* `getComputedStyle` returns.
|
|
5088
5090
|
*/
|
|
5089
|
-
/*
|
|
5091
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
5090
5092
|
function measure(el) {
|
|
5091
5093
|
const rect = el.getBoundingClientRect();
|
|
5092
5094
|
const style = getComputedStyle(el);
|
|
@@ -5342,7 +5344,7 @@ function useElementSize(target) {
|
|
|
5342
5344
|
*/
|
|
5343
5345
|
function createOverflow(options = {}) {
|
|
5344
5346
|
const { container: _container, gap = 0, reserved = 0, itemWidth, reverse } = options;
|
|
5345
|
-
const container = /* @__PURE__ */ isUndefined(_container) ? shallowRef() : toRef(_container);
|
|
5347
|
+
const container = /* @__PURE__ */ isUndefined(_container) ? shallowRef() : toRef(() => /* @__PURE__ */ toElement(_container) ?? null);
|
|
5346
5348
|
const widths = shallowRef(/* @__PURE__ */ new Map());
|
|
5347
5349
|
const { width } = useElementSize(container);
|
|
5348
5350
|
function measure(index, el) {
|
|
@@ -5475,7 +5477,7 @@ function useOverflow(namespace = "v0:overflow") {
|
|
|
5475
5477
|
//#endregion
|
|
5476
5478
|
//#region src/components/Avatar/AvatarGroup.vue
|
|
5477
5479
|
const [useAvatarGroup, provideAvatarGroup] = createContext();
|
|
5478
|
-
const _sfc_main$14 =
|
|
5480
|
+
const _sfc_main$14 = /*@__PURE__*/ defineComponent({
|
|
5479
5481
|
name: "AvatarGroup",
|
|
5480
5482
|
__name: "AvatarGroup",
|
|
5481
5483
|
props: {
|
|
@@ -5587,7 +5589,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
5587
5589
|
//#endregion
|
|
5588
5590
|
//#region src/components/Avatar/AvatarRoot.vue
|
|
5589
5591
|
const [useAvatarRoot, provideAvatarRoot] = createContext();
|
|
5590
|
-
const _sfc_main$17 =
|
|
5592
|
+
const _sfc_main$17 = /*@__PURE__*/ defineComponent({
|
|
5591
5593
|
name: "AvatarRoot",
|
|
5592
5594
|
__name: "AvatarRoot",
|
|
5593
5595
|
props: {
|
|
@@ -5666,7 +5668,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5666
5668
|
});
|
|
5667
5669
|
//#endregion
|
|
5668
5670
|
//#region src/components/Avatar/AvatarFallback.vue
|
|
5669
|
-
const _sfc_main$13 =
|
|
5671
|
+
const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
5670
5672
|
name: "AvatarFallback",
|
|
5671
5673
|
__name: "AvatarFallback",
|
|
5672
5674
|
props: {
|
|
@@ -5802,7 +5804,7 @@ function useImage(options) {
|
|
|
5802
5804
|
}
|
|
5803
5805
|
//#endregion
|
|
5804
5806
|
//#region src/components/Avatar/AvatarImage.vue
|
|
5805
|
-
const _sfc_main$15 =
|
|
5807
|
+
const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
5806
5808
|
name: "AvatarImage",
|
|
5807
5809
|
__name: "AvatarImage",
|
|
5808
5810
|
props: {
|
|
@@ -5894,7 +5896,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
5894
5896
|
* is set, this component self-measures and feeds its width back to the
|
|
5895
5897
|
* group so createOverflow can reserve space for it (wired in Task 4).
|
|
5896
5898
|
*/
|
|
5897
|
-
const _sfc_main$16 =
|
|
5899
|
+
const _sfc_main$16 = /*@__PURE__*/ defineComponent({
|
|
5898
5900
|
name: "AvatarIndicator",
|
|
5899
5901
|
__name: "AvatarIndicator",
|
|
5900
5902
|
props: {
|
|
@@ -6582,7 +6584,7 @@ function useGroup(namespace = "v0:group") {
|
|
|
6582
6584
|
//#endregion
|
|
6583
6585
|
//#region src/components/Breadcrumbs/BreadcrumbsRoot.vue
|
|
6584
6586
|
const [useBreadcrumbsRoot, provideBreadcrumbsRoot] = createContext();
|
|
6585
|
-
const _sfc_main$25 =
|
|
6587
|
+
const _sfc_main$25 = /*@__PURE__*/ defineComponent({
|
|
6586
6588
|
name: "BreadcrumbsRoot",
|
|
6587
6589
|
__name: "BreadcrumbsRoot",
|
|
6588
6590
|
props: {
|
|
@@ -6744,7 +6746,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
6744
6746
|
});
|
|
6745
6747
|
//#endregion
|
|
6746
6748
|
//#region src/components/Breadcrumbs/BreadcrumbsActivator.vue
|
|
6747
|
-
const _sfc_main$18 =
|
|
6749
|
+
const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
6748
6750
|
name: "BreadcrumbsActivator",
|
|
6749
6751
|
__name: "BreadcrumbsActivator",
|
|
6750
6752
|
props: {
|
|
@@ -6798,7 +6800,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6798
6800
|
});
|
|
6799
6801
|
//#endregion
|
|
6800
6802
|
//#region src/components/Breadcrumbs/BreadcrumbsDivider.vue
|
|
6801
|
-
const _sfc_main$19 =
|
|
6803
|
+
const _sfc_main$19 = /*@__PURE__*/ defineComponent({
|
|
6802
6804
|
name: "BreadcrumbsDivider",
|
|
6803
6805
|
__name: "BreadcrumbsDivider",
|
|
6804
6806
|
props: {
|
|
@@ -6847,7 +6849,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6847
6849
|
});
|
|
6848
6850
|
//#endregion
|
|
6849
6851
|
//#region src/components/Breadcrumbs/BreadcrumbsEllipsis.vue
|
|
6850
|
-
const _sfc_main$20 =
|
|
6852
|
+
const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
6851
6853
|
name: "BreadcrumbsEllipsis",
|
|
6852
6854
|
__name: "BreadcrumbsEllipsis",
|
|
6853
6855
|
props: {
|
|
@@ -6905,7 +6907,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
6905
6907
|
});
|
|
6906
6908
|
//#endregion
|
|
6907
6909
|
//#region src/components/Breadcrumbs/BreadcrumbsItem.vue
|
|
6908
|
-
const _sfc_main$21 =
|
|
6910
|
+
const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
6909
6911
|
name: "BreadcrumbsItem",
|
|
6910
6912
|
__name: "BreadcrumbsItem",
|
|
6911
6913
|
props: {
|
|
@@ -6960,7 +6962,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
6960
6962
|
});
|
|
6961
6963
|
//#endregion
|
|
6962
6964
|
//#region src/components/Breadcrumbs/BreadcrumbsLink.vue
|
|
6963
|
-
const _sfc_main$22 =
|
|
6965
|
+
const _sfc_main$22 = /*@__PURE__*/ defineComponent({
|
|
6964
6966
|
name: "BreadcrumbsLink",
|
|
6965
6967
|
__name: "BreadcrumbsLink",
|
|
6966
6968
|
props: {
|
|
@@ -6981,7 +6983,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
6981
6983
|
});
|
|
6982
6984
|
//#endregion
|
|
6983
6985
|
//#region src/components/Breadcrumbs/BreadcrumbsList.vue
|
|
6984
|
-
const _sfc_main$23 =
|
|
6986
|
+
const _sfc_main$23 = /*@__PURE__*/ defineComponent({
|
|
6985
6987
|
name: "BreadcrumbsList",
|
|
6986
6988
|
__name: "BreadcrumbsList",
|
|
6987
6989
|
props: {
|
|
@@ -7003,7 +7005,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
7003
7005
|
});
|
|
7004
7006
|
//#endregion
|
|
7005
7007
|
//#region src/components/Breadcrumbs/BreadcrumbsPage.vue
|
|
7006
|
-
const _sfc_main$24 =
|
|
7008
|
+
const _sfc_main$24 = /*@__PURE__*/ defineComponent({
|
|
7007
7009
|
name: "BreadcrumbsPage",
|
|
7008
7010
|
__name: "BreadcrumbsPage",
|
|
7009
7011
|
props: {
|
|
@@ -7346,10 +7348,10 @@ function useProxyModel(context, model, options) {
|
|
|
7346
7348
|
//#endregion
|
|
7347
7349
|
//#region src/components/Button/ButtonGroup.vue
|
|
7348
7350
|
const [useButtonGroup, provideButtonGroup] = createContext();
|
|
7349
|
-
const _sfc_main$27 =
|
|
7351
|
+
const _sfc_main$27 = /*@__PURE__*/ defineComponent({
|
|
7350
7352
|
name: "ButtonGroup",
|
|
7351
7353
|
__name: "ButtonGroup",
|
|
7352
|
-
props:
|
|
7354
|
+
props: /*@__PURE__*/ mergeModels({
|
|
7353
7355
|
namespace: { default: "v0:button:group" },
|
|
7354
7356
|
disabled: {
|
|
7355
7357
|
type: Boolean,
|
|
@@ -7372,7 +7374,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
7372
7374
|
"modelValue": {},
|
|
7373
7375
|
"modelModifiers": {}
|
|
7374
7376
|
}),
|
|
7375
|
-
emits:
|
|
7377
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
7376
7378
|
setup(__props) {
|
|
7377
7379
|
const model = useModel(__props, "modelValue");
|
|
7378
7380
|
const selection = createSelection({
|
|
@@ -7423,7 +7425,7 @@ const visuallyHiddenStyle$6 = {
|
|
|
7423
7425
|
whiteSpace: "nowrap",
|
|
7424
7426
|
border: "0"
|
|
7425
7427
|
};
|
|
7426
|
-
const _sfc_main$28 =
|
|
7428
|
+
const _sfc_main$28 = /*@__PURE__*/ defineComponent({
|
|
7427
7429
|
name: "ButtonHiddenInput",
|
|
7428
7430
|
__name: "ButtonHiddenInput",
|
|
7429
7431
|
props: {
|
|
@@ -7608,7 +7610,7 @@ function useTimer(handler, options = {}) {
|
|
|
7608
7610
|
//#endregion
|
|
7609
7611
|
//#region src/components/Button/ButtonRoot.vue
|
|
7610
7612
|
const [useButtonRoot, provideButtonRoot] = createContext();
|
|
7611
|
-
const _sfc_main$31 =
|
|
7613
|
+
const _sfc_main$31 = /*@__PURE__*/ defineComponent({
|
|
7612
7614
|
name: "ButtonRoot",
|
|
7613
7615
|
inheritAttrs: false,
|
|
7614
7616
|
__name: "ButtonRoot",
|
|
@@ -7733,7 +7735,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
|
7733
7735
|
});
|
|
7734
7736
|
//#endregion
|
|
7735
7737
|
//#region src/components/Button/ButtonContent.vue
|
|
7736
|
-
const _sfc_main$26 =
|
|
7738
|
+
const _sfc_main$26 = /*@__PURE__*/ defineComponent({
|
|
7737
7739
|
name: "ButtonContent",
|
|
7738
7740
|
__name: "ButtonContent",
|
|
7739
7741
|
props: {
|
|
@@ -7751,7 +7753,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
7751
7753
|
});
|
|
7752
7754
|
//#endregion
|
|
7753
7755
|
//#region src/components/Button/ButtonIcon.vue
|
|
7754
|
-
const _sfc_main$29 =
|
|
7756
|
+
const _sfc_main$29 = /*@__PURE__*/ defineComponent({
|
|
7755
7757
|
name: "ButtonIcon",
|
|
7756
7758
|
__name: "ButtonIcon",
|
|
7757
7759
|
props: {
|
|
@@ -7782,7 +7784,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
7782
7784
|
});
|
|
7783
7785
|
//#endregion
|
|
7784
7786
|
//#region src/components/Button/ButtonLoading.vue
|
|
7785
|
-
const _sfc_main$30 =
|
|
7787
|
+
const _sfc_main$30 = /*@__PURE__*/ defineComponent({
|
|
7786
7788
|
name: "ButtonLoading",
|
|
7787
7789
|
__name: "ButtonLoading",
|
|
7788
7790
|
props: {
|
|
@@ -7808,7 +7810,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
7808
7810
|
onBeforeUnmount(() => ticket.unregister());
|
|
7809
7811
|
const slotProps = toRef(() => ({ isSelected: ticket.isSelected.value }));
|
|
7810
7812
|
return (_ctx, _cache) => {
|
|
7811
|
-
return unref(ticket).isSelected.value ? renderSlot(_ctx.$slots, "default", normalizeProps(
|
|
7813
|
+
return unref(ticket).isSelected.value ? renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), void 0, void 0, 0) : createCommentVNode("v-if", true);
|
|
7812
7814
|
};
|
|
7813
7815
|
}
|
|
7814
7816
|
});
|
|
@@ -8183,10 +8185,10 @@ function useStep(namespace = "v0:step") {
|
|
|
8183
8185
|
//#endregion
|
|
8184
8186
|
//#region src/components/Carousel/CarouselRoot.vue
|
|
8185
8187
|
const [useCarouselRoot, provideCarouselRoot] = createContext();
|
|
8186
|
-
const _sfc_main$38 =
|
|
8188
|
+
const _sfc_main$38 = /*@__PURE__*/ defineComponent({
|
|
8187
8189
|
name: "CarouselRoot",
|
|
8188
8190
|
__name: "CarouselRoot",
|
|
8189
|
-
props:
|
|
8191
|
+
props: /*@__PURE__*/ mergeModels({
|
|
8190
8192
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
8191
8193
|
label: {},
|
|
8192
8194
|
namespace: { default: "v0:carousel" },
|
|
@@ -8314,7 +8316,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
|
8314
8316
|
});
|
|
8315
8317
|
//#endregion
|
|
8316
8318
|
//#region src/components/Carousel/CarouselViewport.vue
|
|
8317
|
-
const _sfc_main$39 =
|
|
8319
|
+
const _sfc_main$39 = /*@__PURE__*/ defineComponent({
|
|
8318
8320
|
name: "CarouselViewport",
|
|
8319
8321
|
inheritAttrs: false,
|
|
8320
8322
|
__name: "CarouselViewport",
|
|
@@ -8509,7 +8511,7 @@ const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
|
8509
8511
|
});
|
|
8510
8512
|
//#endregion
|
|
8511
8513
|
//#region src/components/Carousel/CarouselItem.vue
|
|
8512
|
-
const _sfc_main$33 =
|
|
8514
|
+
const _sfc_main$33 = /*@__PURE__*/ defineComponent({
|
|
8513
8515
|
name: "CarouselItem",
|
|
8514
8516
|
inheritAttrs: false,
|
|
8515
8517
|
__name: "CarouselItem",
|
|
@@ -8587,7 +8589,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
8587
8589
|
});
|
|
8588
8590
|
//#endregion
|
|
8589
8591
|
//#region src/components/Carousel/CarouselPrevious.vue
|
|
8590
|
-
const _sfc_main$36 =
|
|
8592
|
+
const _sfc_main$36 = /*@__PURE__*/ defineComponent({
|
|
8591
8593
|
name: "CarouselPrevious",
|
|
8592
8594
|
inheritAttrs: false,
|
|
8593
8595
|
__name: "CarouselPrevious",
|
|
@@ -8649,7 +8651,7 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
8649
8651
|
});
|
|
8650
8652
|
//#endregion
|
|
8651
8653
|
//#region src/components/Carousel/CarouselNext.vue
|
|
8652
|
-
const _sfc_main$35 =
|
|
8654
|
+
const _sfc_main$35 = /*@__PURE__*/ defineComponent({
|
|
8653
8655
|
name: "CarouselNext",
|
|
8654
8656
|
inheritAttrs: false,
|
|
8655
8657
|
__name: "CarouselNext",
|
|
@@ -8714,7 +8716,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
8714
8716
|
});
|
|
8715
8717
|
//#endregion
|
|
8716
8718
|
//#region src/components/Carousel/CarouselIndicator.vue
|
|
8717
|
-
const _sfc_main$32 =
|
|
8719
|
+
const _sfc_main$32 = /*@__PURE__*/ defineComponent({
|
|
8718
8720
|
name: "CarouselIndicator",
|
|
8719
8721
|
inheritAttrs: false,
|
|
8720
8722
|
__name: "CarouselIndicator",
|
|
@@ -8828,7 +8830,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
8828
8830
|
});
|
|
8829
8831
|
//#endregion
|
|
8830
8832
|
//#region src/components/Carousel/CarouselProgress.vue
|
|
8831
|
-
const _sfc_main$37 =
|
|
8833
|
+
const _sfc_main$37 = /*@__PURE__*/ defineComponent({
|
|
8832
8834
|
name: "CarouselProgress",
|
|
8833
8835
|
inheritAttrs: false,
|
|
8834
8836
|
__name: "CarouselProgress",
|
|
@@ -8894,7 +8896,7 @@ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
|
8894
8896
|
});
|
|
8895
8897
|
//#endregion
|
|
8896
8898
|
//#region src/components/Carousel/CarouselLiveRegion.vue
|
|
8897
|
-
const _sfc_main$34 =
|
|
8899
|
+
const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
8898
8900
|
name: "CarouselLiveRegion",
|
|
8899
8901
|
inheritAttrs: false,
|
|
8900
8902
|
__name: "CarouselLiveRegion",
|
|
@@ -9169,10 +9171,10 @@ const Carousel = {
|
|
|
9169
9171
|
//#endregion
|
|
9170
9172
|
//#region src/components/Checkbox/CheckboxGroup.vue
|
|
9171
9173
|
const [useCheckboxGroup, provideCheckboxGroup] = createContext();
|
|
9172
|
-
const _sfc_main$40 =
|
|
9174
|
+
const _sfc_main$40 = /*@__PURE__*/ defineComponent({
|
|
9173
9175
|
name: "CheckboxGroup",
|
|
9174
9176
|
__name: "CheckboxGroup",
|
|
9175
|
-
props:
|
|
9177
|
+
props: /*@__PURE__*/ mergeModels({
|
|
9176
9178
|
namespace: { default: "v0:checkbox:group" },
|
|
9177
9179
|
disabled: {
|
|
9178
9180
|
type: Boolean,
|
|
@@ -9195,7 +9197,7 @@ const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
|
9195
9197
|
"modelValue": {},
|
|
9196
9198
|
"modelModifiers": {}
|
|
9197
9199
|
}),
|
|
9198
|
-
emits:
|
|
9200
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
9199
9201
|
setup(__props) {
|
|
9200
9202
|
const model = useModel(__props, "modelValue");
|
|
9201
9203
|
const group = createGroup({
|
|
@@ -9238,11 +9240,11 @@ const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
|
9238
9240
|
//#endregion
|
|
9239
9241
|
//#region src/components/Checkbox/CheckboxRoot.vue
|
|
9240
9242
|
const [useCheckboxRoot, provideCheckboxRoot] = createContext();
|
|
9241
|
-
const _sfc_main$43 =
|
|
9243
|
+
const _sfc_main$43 = /*@__PURE__*/ defineComponent({
|
|
9242
9244
|
name: "CheckboxRoot",
|
|
9243
9245
|
inheritAttrs: false,
|
|
9244
9246
|
__name: "CheckboxRoot",
|
|
9245
|
-
props:
|
|
9247
|
+
props: /*@__PURE__*/ mergeModels({
|
|
9246
9248
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
9247
9249
|
label: {},
|
|
9248
9250
|
value: {},
|
|
@@ -9261,7 +9263,7 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
|
9261
9263
|
"modelValue": { type: Boolean },
|
|
9262
9264
|
"modelModifiers": {}
|
|
9263
9265
|
}),
|
|
9264
|
-
emits:
|
|
9266
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
9265
9267
|
setup(__props) {
|
|
9266
9268
|
const attrs = useAttrs();
|
|
9267
9269
|
let group = null;
|
|
@@ -9389,7 +9391,7 @@ const visuallyHiddenStyle$5 = {
|
|
|
9389
9391
|
whiteSpace: "nowrap",
|
|
9390
9392
|
border: "0"
|
|
9391
9393
|
};
|
|
9392
|
-
const _sfc_main$41 =
|
|
9394
|
+
const _sfc_main$41 = /*@__PURE__*/ defineComponent({
|
|
9393
9395
|
name: "CheckboxHiddenInput",
|
|
9394
9396
|
__name: "CheckboxHiddenInput",
|
|
9395
9397
|
props: {
|
|
@@ -9427,7 +9429,7 @@ const _sfc_main$41 = /* @__PURE__ */ defineComponent({
|
|
|
9427
9429
|
});
|
|
9428
9430
|
//#endregion
|
|
9429
9431
|
//#region src/components/Checkbox/CheckboxIndicator.vue
|
|
9430
|
-
const _sfc_main$42 =
|
|
9432
|
+
const _sfc_main$42 = /*@__PURE__*/ defineComponent({
|
|
9431
9433
|
name: "CheckboxIndicator",
|
|
9432
9434
|
__name: "CheckboxIndicator",
|
|
9433
9435
|
props: {
|
|
@@ -9462,7 +9464,7 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
9462
9464
|
});
|
|
9463
9465
|
//#endregion
|
|
9464
9466
|
//#region src/components/Checkbox/CheckboxSelectAll.vue
|
|
9465
|
-
const _sfc_main$44 =
|
|
9467
|
+
const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
9466
9468
|
name: "CheckboxSelectAll",
|
|
9467
9469
|
inheritAttrs: false,
|
|
9468
9470
|
__name: "CheckboxSelectAll",
|
|
@@ -9715,10 +9717,10 @@ const Checkbox = {
|
|
|
9715
9717
|
//#endregion
|
|
9716
9718
|
//#region src/components/Collapsible/CollapsibleRoot.vue
|
|
9717
9719
|
const [useCollapsible, provideCollapsible] = createContext();
|
|
9718
|
-
const _sfc_main$48 =
|
|
9720
|
+
const _sfc_main$48 = /*@__PURE__*/ defineComponent({
|
|
9719
9721
|
name: "CollapsibleRoot",
|
|
9720
9722
|
__name: "CollapsibleRoot",
|
|
9721
|
-
props:
|
|
9723
|
+
props: /*@__PURE__*/ mergeModels({
|
|
9722
9724
|
namespace: { default: "v0:collapsible" },
|
|
9723
9725
|
disabled: {
|
|
9724
9726
|
type: Boolean,
|
|
@@ -9733,7 +9735,7 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
9733
9735
|
},
|
|
9734
9736
|
"modelModifiers": {}
|
|
9735
9737
|
}),
|
|
9736
|
-
emits:
|
|
9738
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
9737
9739
|
setup(__props) {
|
|
9738
9740
|
const model = useModel(__props, "modelValue");
|
|
9739
9741
|
const isDisabled = toRef(() => __props.disabled);
|
|
@@ -9795,7 +9797,7 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
9795
9797
|
});
|
|
9796
9798
|
//#endregion
|
|
9797
9799
|
//#region src/components/Collapsible/CollapsibleActivator.vue
|
|
9798
|
-
const _sfc_main$45 =
|
|
9800
|
+
const _sfc_main$45 = /*@__PURE__*/ defineComponent({
|
|
9799
9801
|
name: "CollapsibleActivator",
|
|
9800
9802
|
__name: "CollapsibleActivator",
|
|
9801
9803
|
props: {
|
|
@@ -9843,7 +9845,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
9843
9845
|
});
|
|
9844
9846
|
//#endregion
|
|
9845
9847
|
//#region src/components/Collapsible/CollapsibleContent.vue
|
|
9846
|
-
const _sfc_main$46 =
|
|
9848
|
+
const _sfc_main$46 = /*@__PURE__*/ defineComponent({
|
|
9847
9849
|
name: "CollapsibleContent",
|
|
9848
9850
|
__name: "CollapsibleContent",
|
|
9849
9851
|
props: {
|
|
@@ -9877,7 +9879,7 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
9877
9879
|
});
|
|
9878
9880
|
//#endregion
|
|
9879
9881
|
//#region src/components/Collapsible/CollapsibleCue.vue
|
|
9880
|
-
const _sfc_main$47 =
|
|
9882
|
+
const _sfc_main$47 = /*@__PURE__*/ defineComponent({
|
|
9881
9883
|
name: "CollapsibleCue",
|
|
9882
9884
|
__name: "CollapsibleCue",
|
|
9883
9885
|
props: {
|
|
@@ -9957,7 +9959,7 @@ const visuallyHiddenStyle$4 = {
|
|
|
9957
9959
|
whiteSpace: "nowrap",
|
|
9958
9960
|
border: "0"
|
|
9959
9961
|
};
|
|
9960
|
-
const _sfc_main$192 =
|
|
9962
|
+
const _sfc_main$192 = /*@__PURE__*/ defineComponent({
|
|
9961
9963
|
name: "ComboboxHiddenInput",
|
|
9962
9964
|
__name: "ComboboxHiddenInput",
|
|
9963
9965
|
props: { namespace: { default: "v0:combobox" } },
|
|
@@ -10167,7 +10169,9 @@ const SIDE_KEYWORDS = {
|
|
|
10167
10169
|
*/
|
|
10168
10170
|
function toPlacement(positionArea) {
|
|
10169
10171
|
const tokens = positionArea.trim().split(/\s+/);
|
|
10170
|
-
|
|
10172
|
+
/* v8 ignore next -- defensive: split() on a string always yields at least one element */
|
|
10173
|
+
const first = tokens[0] ?? "bottom";
|
|
10174
|
+
const side = SIDE_KEYWORDS[first] ?? "bottom";
|
|
10171
10175
|
let align = "center";
|
|
10172
10176
|
const second = tokens[1];
|
|
10173
10177
|
if (second === "span-left" || second === "span-start" || second === "left") align = "start";
|
|
@@ -10565,7 +10569,6 @@ function createFocusTraversal(items, activate, options = {}) {
|
|
|
10565
10569
|
e.preventDefault();
|
|
10566
10570
|
if (e.ctrlKey) last();
|
|
10567
10571
|
else rowLast();
|
|
10568
|
-
break;
|
|
10569
10572
|
}
|
|
10570
10573
|
return;
|
|
10571
10574
|
}
|
|
@@ -10757,7 +10760,7 @@ function defaultFilter(query, item, keys, mode = "some") {
|
|
|
10757
10760
|
*/
|
|
10758
10761
|
function createFilter(options = {}) {
|
|
10759
10762
|
const { customFilter, keys, mode = "some" } = options;
|
|
10760
|
-
const filterFunction = customFilter ?? ((q, i) => defaultFilter(q, i, keys, mode));
|
|
10763
|
+
const filterFunction = customFilter ?? ((q, i) => defaultFilter(q, i, toValue(keys), mode));
|
|
10761
10764
|
const query = shallowRef("");
|
|
10762
10765
|
function apply(_query, items) {
|
|
10763
10766
|
return { items: computed(() => {
|
|
@@ -11128,10 +11131,10 @@ function useCombobox(namespace = "v0:combobox") {
|
|
|
11128
11131
|
//#endregion
|
|
11129
11132
|
//#region src/components/Combobox/ComboboxRoot.vue
|
|
11130
11133
|
const [useComboboxContext, provideComboboxContext] = createContext();
|
|
11131
|
-
const _sfc_main$57 =
|
|
11134
|
+
const _sfc_main$57 = /*@__PURE__*/ defineComponent({
|
|
11132
11135
|
name: "ComboboxRoot",
|
|
11133
11136
|
__name: "ComboboxRoot",
|
|
11134
|
-
props:
|
|
11137
|
+
props: /*@__PURE__*/ mergeModels({
|
|
11135
11138
|
namespace: { default: "v0:combobox" },
|
|
11136
11139
|
id: {},
|
|
11137
11140
|
name: {},
|
|
@@ -11166,7 +11169,7 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
11166
11169
|
"modelValue": {},
|
|
11167
11170
|
"modelModifiers": {}
|
|
11168
11171
|
}),
|
|
11169
|
-
emits:
|
|
11172
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
11170
11173
|
setup(__props) {
|
|
11171
11174
|
const model = useModel(__props, "modelValue");
|
|
11172
11175
|
const context = createCombobox({
|
|
@@ -11212,7 +11215,7 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
11212
11215
|
});
|
|
11213
11216
|
//#endregion
|
|
11214
11217
|
//#region src/components/Combobox/ComboboxActivator.vue
|
|
11215
|
-
const _sfc_main$49 =
|
|
11218
|
+
const _sfc_main$49 = /*@__PURE__*/ defineComponent({
|
|
11216
11219
|
name: "ComboboxActivator",
|
|
11217
11220
|
__name: "ComboboxActivator",
|
|
11218
11221
|
props: {
|
|
@@ -11320,9 +11323,10 @@ function useLazy(active, options = {}) {
|
|
|
11320
11323
|
isBooted.value = true;
|
|
11321
11324
|
}, { duration: delay }) : void 0;
|
|
11322
11325
|
const stop = watch(() => toValue(active), (value) => {
|
|
11323
|
-
if (value)
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
+
if (value) {
|
|
11327
|
+
if (timer) timer.start();
|
|
11328
|
+
else isBooted.value = true;
|
|
11329
|
+
} else timer?.stop();
|
|
11326
11330
|
}, { immediate: true });
|
|
11327
11331
|
function reset() {
|
|
11328
11332
|
isBooted.value = false;
|
|
@@ -11340,7 +11344,7 @@ function useLazy(active, options = {}) {
|
|
|
11340
11344
|
}
|
|
11341
11345
|
//#endregion
|
|
11342
11346
|
//#region src/components/Combobox/ComboboxContent.vue
|
|
11343
|
-
const _sfc_main$50 =
|
|
11347
|
+
const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
11344
11348
|
name: "ComboboxContent",
|
|
11345
11349
|
__name: "ComboboxContent",
|
|
11346
11350
|
props: {
|
|
@@ -11381,7 +11385,7 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
11381
11385
|
as: __props.as,
|
|
11382
11386
|
renderless: __props.renderless
|
|
11383
11387
|
}), {
|
|
11384
|
-
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(
|
|
11388
|
+
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), void 0, void 0, 0) : createCommentVNode("v-if", true)]),
|
|
11385
11389
|
_: 3
|
|
11386
11390
|
}, 16, ["as", "renderless"]);
|
|
11387
11391
|
};
|
|
@@ -11389,7 +11393,7 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
11389
11393
|
});
|
|
11390
11394
|
//#endregion
|
|
11391
11395
|
//#region src/components/Combobox/ComboboxControl.vue
|
|
11392
|
-
const _sfc_main$51 =
|
|
11396
|
+
const _sfc_main$51 = /*@__PURE__*/ defineComponent({
|
|
11393
11397
|
name: "ComboboxControl",
|
|
11394
11398
|
__name: "ComboboxControl",
|
|
11395
11399
|
props: {
|
|
@@ -11441,14 +11445,12 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
11441
11445
|
}
|
|
11442
11446
|
}
|
|
11443
11447
|
context.cursor.onKeydown(e);
|
|
11444
|
-
break;
|
|
11445
11448
|
}
|
|
11446
11449
|
else switch (e.key) {
|
|
11447
11450
|
case "ArrowDown":
|
|
11448
11451
|
case "ArrowUp":
|
|
11449
11452
|
e.preventDefault();
|
|
11450
11453
|
context.open();
|
|
11451
|
-
break;
|
|
11452
11454
|
}
|
|
11453
11455
|
}
|
|
11454
11456
|
const strict = toRef(() => toValue(context.strict));
|
|
@@ -11491,7 +11493,7 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
11491
11493
|
});
|
|
11492
11494
|
//#endregion
|
|
11493
11495
|
//#region src/components/Combobox/ComboboxCue.vue
|
|
11494
|
-
const _sfc_main$52 =
|
|
11496
|
+
const _sfc_main$52 = /*@__PURE__*/ defineComponent({
|
|
11495
11497
|
name: "ComboboxCue",
|
|
11496
11498
|
__name: "ComboboxCue",
|
|
11497
11499
|
props: {
|
|
@@ -11525,7 +11527,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
|
11525
11527
|
});
|
|
11526
11528
|
//#endregion
|
|
11527
11529
|
//#region src/components/Combobox/ComboboxDescription.vue
|
|
11528
|
-
const _sfc_main$53 =
|
|
11530
|
+
const _sfc_main$53 = /*@__PURE__*/ defineComponent({
|
|
11529
11531
|
name: "ComboboxDescription",
|
|
11530
11532
|
inheritAttrs: false,
|
|
11531
11533
|
__name: "ComboboxDescription",
|
|
@@ -11561,7 +11563,7 @@ const _sfc_main$53 = /* @__PURE__ */ defineComponent({
|
|
|
11561
11563
|
});
|
|
11562
11564
|
//#endregion
|
|
11563
11565
|
//#region src/components/Combobox/ComboboxEmpty.vue
|
|
11564
|
-
const _sfc_main$54 =
|
|
11566
|
+
const _sfc_main$54 = /*@__PURE__*/ defineComponent({
|
|
11565
11567
|
name: "ComboboxEmpty",
|
|
11566
11568
|
__name: "ComboboxEmpty",
|
|
11567
11569
|
props: {
|
|
@@ -11587,7 +11589,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
11587
11589
|
});
|
|
11588
11590
|
//#endregion
|
|
11589
11591
|
//#region src/components/Combobox/ComboboxError.vue
|
|
11590
|
-
const _sfc_main$55 =
|
|
11592
|
+
const _sfc_main$55 = /*@__PURE__*/ defineComponent({
|
|
11591
11593
|
name: "ComboboxError",
|
|
11592
11594
|
inheritAttrs: false,
|
|
11593
11595
|
__name: "ComboboxError",
|
|
@@ -11628,7 +11630,7 @@ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
|
|
|
11628
11630
|
});
|
|
11629
11631
|
//#endregion
|
|
11630
11632
|
//#region src/components/Combobox/ComboboxItem.vue
|
|
11631
|
-
const _sfc_main$56 =
|
|
11633
|
+
const _sfc_main$56 = /*@__PURE__*/ defineComponent({
|
|
11632
11634
|
name: "ComboboxItem",
|
|
11633
11635
|
__name: "ComboboxItem",
|
|
11634
11636
|
props: {
|
|
@@ -12182,7 +12184,7 @@ var DataTableAdapter = class {
|
|
|
12182
12184
|
filter(context) {
|
|
12183
12185
|
const filter = createFilter({
|
|
12184
12186
|
...context.filterOptions,
|
|
12185
|
-
keys:
|
|
12187
|
+
keys: context.filterableKeys,
|
|
12186
12188
|
customFilter: context.filterOptions.customFilter ?? ((query, item) => {
|
|
12187
12189
|
const columnFilters = toValue(context.customColumnFilters);
|
|
12188
12190
|
const keys = toValue(context.filterableKeys);
|
|
@@ -12276,7 +12278,7 @@ var ClientDataTableAdapter = class extends DataTableAdapter {
|
|
|
12276
12278
|
* @param columns Column tree to extract leaves from
|
|
12277
12279
|
* @returns Flat array of leaf columns
|
|
12278
12280
|
*/
|
|
12279
|
-
/*
|
|
12281
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
12280
12282
|
function extractLeaves(columns) {
|
|
12281
12283
|
const leaves = [];
|
|
12282
12284
|
for (const col of columns) if (col.children?.length) leaves.push(.../* @__PURE__ */ extractLeaves(col.children));
|
|
@@ -12289,7 +12291,7 @@ function extractLeaves(columns) {
|
|
|
12289
12291
|
* @param columns Column tree to measure
|
|
12290
12292
|
* @returns Maximum nesting depth
|
|
12291
12293
|
*/
|
|
12292
|
-
/*
|
|
12294
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
12293
12295
|
function computeDepth(columns) {
|
|
12294
12296
|
let max = 0;
|
|
12295
12297
|
for (const col of columns) if (col.children?.length) max = Math.max(max, 1 + /* @__PURE__ */ computeDepth(col.children));
|
|
@@ -12304,7 +12306,7 @@ function computeDepth(columns) {
|
|
|
12304
12306
|
* @param columns Column tree to resolve
|
|
12305
12307
|
* @returns 2D array of header cells with colspan/rowspan
|
|
12306
12308
|
*/
|
|
12307
|
-
/*
|
|
12309
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
12308
12310
|
function resolveHeaders(columns) {
|
|
12309
12311
|
if (columns.length === 0) return [];
|
|
12310
12312
|
const maxDepth = /* @__PURE__ */ computeDepth(columns);
|
|
@@ -12579,9 +12581,10 @@ function createDataTable(options = {}) {
|
|
|
12579
12581
|
if (firstSortOrder === "desc") setDesc();
|
|
12580
12582
|
else setAsc();
|
|
12581
12583
|
order.push(id);
|
|
12582
|
-
} else if (isAsc)
|
|
12583
|
-
|
|
12584
|
-
|
|
12584
|
+
} else if (isAsc) {
|
|
12585
|
+
if (firstSortOrder === "desc" && !mandate) setNone();
|
|
12586
|
+
else setDesc();
|
|
12587
|
+
} else if (firstSortOrder === "asc" && !mandate) setNone();
|
|
12585
12588
|
else setAsc();
|
|
12586
12589
|
}
|
|
12587
12590
|
const sortBy = computed(() => {
|
|
@@ -13535,7 +13538,7 @@ function createRowSpanning(options) {
|
|
|
13535
13538
|
if (!span) return result;
|
|
13536
13539
|
const list = items.value;
|
|
13537
13540
|
const resolved = toValue(columns);
|
|
13538
|
-
const covered = Array.from({ length: resolved.length })
|
|
13541
|
+
const covered = Array.from({ length: resolved.length }, () => 0);
|
|
13539
13542
|
for (let row = 0; row < list.length; row++) {
|
|
13540
13543
|
const item = list[row];
|
|
13541
13544
|
const id = key ? key(item, row) : item[itemKey];
|
|
@@ -13844,10 +13847,10 @@ const [_useDataGridRoot, provideDataGridRoot] = createContext();
|
|
|
13844
13847
|
function useDataGridRoot(namespace = "v0:data-grid") {
|
|
13845
13848
|
return _useDataGridRoot(namespace);
|
|
13846
13849
|
}
|
|
13847
|
-
const _sfc_main$64 =
|
|
13850
|
+
const _sfc_main$64 = /*@__PURE__*/ defineComponent({
|
|
13848
13851
|
name: "DataGridRoot",
|
|
13849
13852
|
__name: "DataGridRoot",
|
|
13850
|
-
props:
|
|
13853
|
+
props: /*@__PURE__*/ mergeModels({
|
|
13851
13854
|
namespace: { default: "v0:data-grid" },
|
|
13852
13855
|
editing: {},
|
|
13853
13856
|
preserveRowOrder: {},
|
|
@@ -13868,7 +13871,7 @@ const _sfc_main$64 = /* @__PURE__ */ defineComponent({
|
|
|
13868
13871
|
"search": { default: "" },
|
|
13869
13872
|
"searchModifiers": {}
|
|
13870
13873
|
}),
|
|
13871
|
-
emits:
|
|
13874
|
+
emits: /*@__PURE__*/ mergeModels(["update:search"], ["update:search"]),
|
|
13872
13875
|
setup(__props) {
|
|
13873
13876
|
const options = createPropsRestProxy(__props, [
|
|
13874
13877
|
"namespace",
|
|
@@ -13907,7 +13910,7 @@ const _sfc_main$64 = /* @__PURE__ */ defineComponent({
|
|
|
13907
13910
|
* The `<tbody>` element wrapper. Exposes the paginated items from the
|
|
13908
13911
|
* context for rendering data rows.
|
|
13909
13912
|
*/
|
|
13910
|
-
const _sfc_main$58 =
|
|
13913
|
+
const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
13911
13914
|
name: "DataGridBody",
|
|
13912
13915
|
inheritAttrs: false,
|
|
13913
13916
|
__name: "DataGridBody",
|
|
@@ -13945,7 +13948,7 @@ const _sfc_main$58 = /* @__PURE__ */ defineComponent({
|
|
|
13945
13948
|
//#endregion
|
|
13946
13949
|
//#region src/components/Splitter/SplitterRoot.vue
|
|
13947
13950
|
const [useSplitterRoot, provideSplitterRoot] = createContext("v0:splitter");
|
|
13948
|
-
const _sfc_main$161 =
|
|
13951
|
+
const _sfc_main$161 = /*@__PURE__*/ defineComponent({
|
|
13949
13952
|
name: "SplitterRoot",
|
|
13950
13953
|
inheritAttrs: false,
|
|
13951
13954
|
__name: "SplitterRoot",
|
|
@@ -14035,54 +14038,58 @@ const _sfc_main$161 = /* @__PURE__ */ defineComponent({
|
|
|
14035
14038
|
let size = /* @__PURE__ */ clamp(before.size + delta, lower, upper);
|
|
14036
14039
|
const beforeCollapsed = !toValue(before.isSelected);
|
|
14037
14040
|
const drag = dragging.value;
|
|
14038
|
-
if (before.collapsible && !beforeCollapsed && size <= before.minSize && delta < 0)
|
|
14039
|
-
if (
|
|
14040
|
-
size
|
|
14041
|
-
|
|
14041
|
+
if (before.collapsible && !beforeCollapsed && size <= before.minSize && delta < 0) {
|
|
14042
|
+
if (drag) {
|
|
14043
|
+
if (before.size >= before.minSize) {
|
|
14044
|
+
size = before.minSize;
|
|
14045
|
+
if (canCollapse(before)) arm(before.id, "collapse", Math.max(0, before.minSize - (before.size + delta)));
|
|
14046
|
+
}
|
|
14047
|
+
} else {
|
|
14048
|
+
size = before.collapsedSize;
|
|
14049
|
+
before.unselect();
|
|
14050
|
+
expandAccum.set(before.id, 0);
|
|
14042
14051
|
}
|
|
14043
|
-
} else {
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
expandAccum.delete(before.id);
|
|
14058
|
-
} else size = before.collapsedSize;
|
|
14059
|
-
}
|
|
14060
|
-
else if (drag) disarm(before.id);
|
|
14052
|
+
} else if (before.collapsible && beforeCollapsed && delta > 0) {
|
|
14053
|
+
if (drag) {
|
|
14054
|
+
size = before.collapsedSize;
|
|
14055
|
+
if (canExpand(before, after)) arm(before.id, "expand", delta);
|
|
14056
|
+
} else {
|
|
14057
|
+
const accum = (expandAccum.get(before.id) ?? 0) + delta;
|
|
14058
|
+
expandAccum.set(before.id, accum);
|
|
14059
|
+
if (accum >= EXPAND_THRESHOLD) {
|
|
14060
|
+
size = /* @__PURE__ */ clamp(accum, before.collapsedSize, before.maxSize);
|
|
14061
|
+
before.select();
|
|
14062
|
+
expandAccum.delete(before.id);
|
|
14063
|
+
} else size = before.collapsedSize;
|
|
14064
|
+
}
|
|
14065
|
+
} else if (drag) disarm(before.id);
|
|
14061
14066
|
const afterSize = total - size;
|
|
14062
14067
|
const afterCollapsed = !toValue(after.isSelected);
|
|
14063
|
-
if (after.collapsible && !afterCollapsed && afterSize <= after.minSize && delta > 0)
|
|
14064
|
-
if (
|
|
14065
|
-
size
|
|
14066
|
-
|
|
14068
|
+
if (after.collapsible && !afterCollapsed && afterSize <= after.minSize && delta > 0) {
|
|
14069
|
+
if (drag) {
|
|
14070
|
+
if (after.size >= after.minSize) {
|
|
14071
|
+
size = total - after.minSize;
|
|
14072
|
+
if (canCollapse(after)) arm(after.id, "collapse", Math.max(0, after.minSize - (after.size - delta)));
|
|
14073
|
+
}
|
|
14074
|
+
} else {
|
|
14075
|
+
size = total - after.collapsedSize;
|
|
14076
|
+
after.unselect();
|
|
14077
|
+
expandAccum.set(after.id, 0);
|
|
14067
14078
|
}
|
|
14068
|
-
} else {
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
|
|
14074
|
-
|
|
14075
|
-
|
|
14076
|
-
|
|
14077
|
-
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
expandAccum.delete(after.id);
|
|
14083
|
-
} else size = total - after.collapsedSize;
|
|
14084
|
-
}
|
|
14085
|
-
else if (drag) disarm(after.id);
|
|
14079
|
+
} else if (after.collapsible && afterCollapsed && delta < 0) {
|
|
14080
|
+
if (drag) {
|
|
14081
|
+
size = total - after.collapsedSize;
|
|
14082
|
+
if (canExpand(after, before)) arm(after.id, "expand", delta);
|
|
14083
|
+
} else {
|
|
14084
|
+
const accum = (expandAccum.get(after.id) ?? 0) + Math.abs(delta);
|
|
14085
|
+
expandAccum.set(after.id, accum);
|
|
14086
|
+
if (accum >= EXPAND_THRESHOLD) {
|
|
14087
|
+
size = total - /* @__PURE__ */ clamp(accum, after.collapsedSize, after.maxSize);
|
|
14088
|
+
after.select();
|
|
14089
|
+
expandAccum.delete(after.id);
|
|
14090
|
+
} else size = total - after.collapsedSize;
|
|
14091
|
+
}
|
|
14092
|
+
} else if (drag) disarm(after.id);
|
|
14086
14093
|
before.size = size;
|
|
14087
14094
|
after.size = total - size;
|
|
14088
14095
|
if (options?.emit) emitLayout();
|
|
@@ -14242,11 +14249,11 @@ const _sfc_main$161 = /* @__PURE__ */ defineComponent({
|
|
|
14242
14249
|
});
|
|
14243
14250
|
//#endregion
|
|
14244
14251
|
//#region src/components/Splitter/SplitterPanel.vue
|
|
14245
|
-
const _sfc_main$160 =
|
|
14252
|
+
const _sfc_main$160 = /*@__PURE__*/ defineComponent({
|
|
14246
14253
|
name: "SplitterPanel",
|
|
14247
14254
|
inheritAttrs: false,
|
|
14248
14255
|
__name: "SplitterPanel",
|
|
14249
|
-
props:
|
|
14256
|
+
props: /*@__PURE__*/ mergeModels({
|
|
14250
14257
|
defaultSize: {},
|
|
14251
14258
|
minSize: { default: 0 },
|
|
14252
14259
|
maxSize: { default: 100 },
|
|
@@ -14261,7 +14268,7 @@ const _sfc_main$160 = /* @__PURE__ */ defineComponent({
|
|
|
14261
14268
|
"collapsed": { type: Boolean },
|
|
14262
14269
|
"collapsedModifiers": {}
|
|
14263
14270
|
}),
|
|
14264
|
-
emits:
|
|
14271
|
+
emits: /*@__PURE__*/ mergeModels(["update:collapsed", "resize"], ["update:collapsed"]),
|
|
14265
14272
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
14266
14273
|
const attrs = useAttrs();
|
|
14267
14274
|
const collapsed = useModel(__props, "collapsed");
|
|
@@ -14453,7 +14460,7 @@ function useRaf(callback) {
|
|
|
14453
14460
|
}
|
|
14454
14461
|
//#endregion
|
|
14455
14462
|
//#region src/components/Splitter/SplitterHandle.vue
|
|
14456
|
-
const _sfc_main$159 =
|
|
14463
|
+
const _sfc_main$159 = /*@__PURE__*/ defineComponent({
|
|
14457
14464
|
name: "SplitterHandle",
|
|
14458
14465
|
inheritAttrs: false,
|
|
14459
14466
|
__name: "SplitterHandle",
|
|
@@ -14573,7 +14580,7 @@ const _sfc_main$159 = /* @__PURE__ */ defineComponent({
|
|
|
14573
14580
|
break;
|
|
14574
14581
|
case backward:
|
|
14575
14582
|
e.preventDefault();
|
|
14576
|
-
splitter.resize(ticket.index, -
|
|
14583
|
+
splitter.resize(ticket.index, -1, { emit: true });
|
|
14577
14584
|
break;
|
|
14578
14585
|
case "PageDown":
|
|
14579
14586
|
e.preventDefault();
|
|
@@ -14581,7 +14588,7 @@ const _sfc_main$159 = /* @__PURE__ */ defineComponent({
|
|
|
14581
14588
|
break;
|
|
14582
14589
|
case "PageUp":
|
|
14583
14590
|
e.preventDefault();
|
|
14584
|
-
splitter.resize(ticket.index, -
|
|
14591
|
+
splitter.resize(ticket.index, -10, { emit: true });
|
|
14585
14592
|
break;
|
|
14586
14593
|
case "Home": {
|
|
14587
14594
|
e.preventDefault();
|
|
@@ -14768,7 +14775,7 @@ const Splitter = {
|
|
|
14768
14775
|
* for rendering nested header rows.
|
|
14769
14776
|
*/
|
|
14770
14777
|
const [useDataGridHeader, provideDataGridHeader] = createContext({ suffix: "header" });
|
|
14771
|
-
const _sfc_main$63 =
|
|
14778
|
+
const _sfc_main$63 = /*@__PURE__*/ defineComponent({
|
|
14772
14779
|
name: "DataGridHeader",
|
|
14773
14780
|
inheritAttrs: false,
|
|
14774
14781
|
__name: "DataGridHeader",
|
|
@@ -14830,7 +14837,7 @@ const _sfc_main$63 = /* @__PURE__ */ defineComponent({
|
|
|
14830
14837
|
* table — pass `as="div"` on the Table/Header/Body/Row/Column/Cell chain.
|
|
14831
14838
|
*/
|
|
14832
14839
|
const [useDataGridRow, provideDataGridRow] = createContext({ suffix: "row" });
|
|
14833
|
-
const _sfc_main$65 =
|
|
14840
|
+
const _sfc_main$65 = /*@__PURE__*/ defineComponent({
|
|
14834
14841
|
name: "DataGridRow",
|
|
14835
14842
|
inheritAttrs: false,
|
|
14836
14843
|
__name: "DataGridRow",
|
|
@@ -15006,7 +15013,7 @@ const _sfc_main$65 = /* @__PURE__ */ defineComponent({
|
|
|
15006
15013
|
* A `<td>` element for data cells. Exposes editing state, row spanning,
|
|
15007
15014
|
* consumer `colspan`, and layout (pin/size/offset) from the grid context.
|
|
15008
15015
|
*/
|
|
15009
|
-
const _sfc_main$59 =
|
|
15016
|
+
const _sfc_main$59 = /*@__PURE__*/ defineComponent({
|
|
15010
15017
|
name: "DataGridCell",
|
|
15011
15018
|
inheritAttrs: false,
|
|
15012
15019
|
__name: "DataGridCell",
|
|
@@ -15106,7 +15113,7 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
15106
15113
|
* When inside a resizable `DataGridRow`, this component composes
|
|
15107
15114
|
* `Splitter.Panel`. Keep the consumer `as` — do not swap `th` for `div`.
|
|
15108
15115
|
*/
|
|
15109
|
-
const _sfc_main$60 =
|
|
15116
|
+
const _sfc_main$60 = /*@__PURE__*/ defineComponent({
|
|
15110
15117
|
name: "DataGridColumn",
|
|
15111
15118
|
inheritAttrs: false,
|
|
15112
15119
|
__name: "DataGridColumn",
|
|
@@ -15241,7 +15248,7 @@ const _sfc_main$60 = /* @__PURE__ */ defineComponent({
|
|
|
15241
15248
|
* Empty state component that renders when the grid has no items.
|
|
15242
15249
|
* Conditionally renders based on the items count.
|
|
15243
15250
|
*/
|
|
15244
|
-
const _sfc_main$61 =
|
|
15251
|
+
const _sfc_main$61 = /*@__PURE__*/ defineComponent({
|
|
15245
15252
|
name: "DataGridEmpty",
|
|
15246
15253
|
inheritAttrs: false,
|
|
15247
15254
|
__name: "DataGridEmpty",
|
|
@@ -15284,7 +15291,7 @@ const _sfc_main$61 = /* @__PURE__ */ defineComponent({
|
|
|
15284
15291
|
* renders nothing so it cannot hijack an ancestor Splitter or throw
|
|
15285
15292
|
* V0_CONTEXT_MISSING.
|
|
15286
15293
|
*/
|
|
15287
|
-
const _sfc_main$62 =
|
|
15294
|
+
const _sfc_main$62 = /*@__PURE__*/ defineComponent({
|
|
15288
15295
|
name: "DataGridHandle",
|
|
15289
15296
|
inheritAttrs: false,
|
|
15290
15297
|
__name: "DataGridHandle",
|
|
@@ -15338,7 +15345,7 @@ const _sfc_main$62 = /* @__PURE__ */ defineComponent({
|
|
|
15338
15345
|
* The `<table>` element wrapper for the DataGrid compound. Renders a semantic
|
|
15339
15346
|
* table with proper ARIA attributes. This is not an APG Grid widget.
|
|
15340
15347
|
*/
|
|
15341
|
-
const _sfc_main$66 =
|
|
15348
|
+
const _sfc_main$66 = /*@__PURE__*/ defineComponent({
|
|
15342
15349
|
name: "DataGridTable",
|
|
15343
15350
|
inheritAttrs: false,
|
|
15344
15351
|
__name: "DataGridTable",
|
|
@@ -15593,10 +15600,10 @@ const [_useDataTableRoot, provideDataTableRoot] = createContext();
|
|
|
15593
15600
|
function useDataTableRoot(namespace = "v0:data-table") {
|
|
15594
15601
|
return _useDataTableRoot(namespace);
|
|
15595
15602
|
}
|
|
15596
|
-
const _sfc_main$72 =
|
|
15603
|
+
const _sfc_main$72 = /*@__PURE__*/ defineComponent({
|
|
15597
15604
|
name: "DataTableRoot",
|
|
15598
15605
|
__name: "DataTableRoot",
|
|
15599
|
-
props:
|
|
15606
|
+
props: /*@__PURE__*/ mergeModels({
|
|
15600
15607
|
namespace: { default: "v0:data-table" },
|
|
15601
15608
|
filter: {},
|
|
15602
15609
|
pagination: {},
|
|
@@ -15614,7 +15621,7 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
15614
15621
|
"search": { default: "" },
|
|
15615
15622
|
"searchModifiers": {}
|
|
15616
15623
|
}),
|
|
15617
|
-
emits:
|
|
15624
|
+
emits: /*@__PURE__*/ mergeModels(["update:search"], ["update:search"]),
|
|
15618
15625
|
setup(__props) {
|
|
15619
15626
|
const context = createDataTable({
|
|
15620
15627
|
filter: __props.filter,
|
|
@@ -15654,7 +15661,7 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
15654
15661
|
* @remarks
|
|
15655
15662
|
* The `<tbody>` element wrapper. Slot exposes `rank`, `items`, and `isEmpty`.
|
|
15656
15663
|
*/
|
|
15657
|
-
const _sfc_main$67 =
|
|
15664
|
+
const _sfc_main$67 = /*@__PURE__*/ defineComponent({
|
|
15658
15665
|
name: "DataTableBody",
|
|
15659
15666
|
inheritAttrs: false,
|
|
15660
15667
|
__name: "DataTableBody",
|
|
@@ -15694,7 +15701,7 @@ const _sfc_main$67 = /* @__PURE__ */ defineComponent({
|
|
|
15694
15701
|
* @remarks
|
|
15695
15702
|
* A `<td>` element for data cells. Use inside DataTable.Row.
|
|
15696
15703
|
*/
|
|
15697
|
-
const _sfc_main$68 =
|
|
15704
|
+
const _sfc_main$68 = /*@__PURE__*/ defineComponent({
|
|
15698
15705
|
name: "DataTableCell",
|
|
15699
15706
|
inheritAttrs: false,
|
|
15700
15707
|
__name: "DataTableCell",
|
|
@@ -15733,7 +15740,7 @@ const _sfc_main$68 = /* @__PURE__ */ defineComponent({
|
|
|
15733
15740
|
* A `<th>` element for header cells. Exposes sort state and controls
|
|
15734
15741
|
* for sortable columns. Use inside DataTable.Row.
|
|
15735
15742
|
*/
|
|
15736
|
-
const _sfc_main$69 =
|
|
15743
|
+
const _sfc_main$69 = /*@__PURE__*/ defineComponent({
|
|
15737
15744
|
name: "DataTableColumn",
|
|
15738
15745
|
inheritAttrs: false,
|
|
15739
15746
|
__name: "DataTableColumn",
|
|
@@ -15822,7 +15829,7 @@ const _sfc_main$69 = /* @__PURE__ */ defineComponent({
|
|
|
15822
15829
|
* Empty state component that renders when the table has no items.
|
|
15823
15830
|
* Conditionally renders based on the items count.
|
|
15824
15831
|
*/
|
|
15825
|
-
const _sfc_main$70 =
|
|
15832
|
+
const _sfc_main$70 = /*@__PURE__*/ defineComponent({
|
|
15826
15833
|
name: "DataTableEmpty",
|
|
15827
15834
|
inheritAttrs: false,
|
|
15828
15835
|
__name: "DataTableEmpty",
|
|
@@ -15863,7 +15870,7 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
|
15863
15870
|
* The `<thead>` element wrapper. Exposes the 2D header grid from the context
|
|
15864
15871
|
* for rendering nested header rows.
|
|
15865
15872
|
*/
|
|
15866
|
-
const _sfc_main$71 =
|
|
15873
|
+
const _sfc_main$71 = /*@__PURE__*/ defineComponent({
|
|
15867
15874
|
name: "DataTableHeader",
|
|
15868
15875
|
inheritAttrs: false,
|
|
15869
15876
|
__name: "DataTableHeader",
|
|
@@ -15902,7 +15909,7 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
15902
15909
|
* DataTable.Body (with Cell). Exposes selection and expansion state
|
|
15903
15910
|
* when bound to a row item.
|
|
15904
15911
|
*/
|
|
15905
|
-
const _sfc_main$73 =
|
|
15912
|
+
const _sfc_main$73 = /*@__PURE__*/ defineComponent({
|
|
15906
15913
|
name: "DataTableRow",
|
|
15907
15914
|
inheritAttrs: false,
|
|
15908
15915
|
__name: "DataTableRow",
|
|
@@ -16028,7 +16035,7 @@ const _sfc_main$73 = /* @__PURE__ */ defineComponent({
|
|
|
16028
16035
|
* The `<table>` element wrapper for the DataTable compound. Renders a semantic
|
|
16029
16036
|
* table with proper ARIA attributes.
|
|
16030
16037
|
*/
|
|
16031
|
-
const _sfc_main$74 =
|
|
16038
|
+
const _sfc_main$74 = /*@__PURE__*/ defineComponent({
|
|
16032
16039
|
name: "DataTableTable",
|
|
16033
16040
|
inheritAttrs: false,
|
|
16034
16041
|
__name: "DataTableTable",
|
|
@@ -16353,10 +16360,10 @@ const DataTable = {
|
|
|
16353
16360
|
//#endregion
|
|
16354
16361
|
//#region src/components/Dialog/DialogRoot.vue
|
|
16355
16362
|
const [useDialogContext, provideDialogContext] = createContext();
|
|
16356
|
-
const _sfc_main$79 =
|
|
16363
|
+
const _sfc_main$79 = /*@__PURE__*/ defineComponent({
|
|
16357
16364
|
name: "DialogRoot",
|
|
16358
16365
|
__name: "DialogRoot",
|
|
16359
|
-
props:
|
|
16366
|
+
props: /*@__PURE__*/ mergeModels({
|
|
16360
16367
|
namespace: { default: "v0:dialog" },
|
|
16361
16368
|
id: {},
|
|
16362
16369
|
as: { default: null },
|
|
@@ -16368,7 +16375,7 @@ const _sfc_main$79 = /* @__PURE__ */ defineComponent({
|
|
|
16368
16375
|
},
|
|
16369
16376
|
"modelModifiers": {}
|
|
16370
16377
|
}),
|
|
16371
|
-
emits:
|
|
16378
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
16372
16379
|
setup(__props) {
|
|
16373
16380
|
const isOpen = useModel(__props, "modelValue");
|
|
16374
16381
|
const id = __props.id ?? /* @__PURE__ */ useId();
|
|
@@ -16411,7 +16418,7 @@ const _sfc_main$79 = /* @__PURE__ */ defineComponent({
|
|
|
16411
16418
|
});
|
|
16412
16419
|
//#endregion
|
|
16413
16420
|
//#region src/components/Dialog/DialogClose.vue
|
|
16414
|
-
const _sfc_main$76 =
|
|
16421
|
+
const _sfc_main$76 = /*@__PURE__*/ defineComponent({
|
|
16415
16422
|
name: "DialogClose",
|
|
16416
16423
|
__name: "DialogClose",
|
|
16417
16424
|
props: {
|
|
@@ -16455,7 +16462,7 @@ const _sfc_main$76 = /* @__PURE__ */ defineComponent({
|
|
|
16455
16462
|
});
|
|
16456
16463
|
//#endregion
|
|
16457
16464
|
//#region src/components/Dialog/DialogContent.vue
|
|
16458
|
-
const _sfc_main$77 =
|
|
16465
|
+
const _sfc_main$77 = /*@__PURE__*/ defineComponent({
|
|
16459
16466
|
name: "DialogContent",
|
|
16460
16467
|
__name: "DialogContent",
|
|
16461
16468
|
props: {
|
|
@@ -16540,7 +16547,7 @@ const _sfc_main$77 = /* @__PURE__ */ defineComponent({
|
|
|
16540
16547
|
});
|
|
16541
16548
|
//#endregion
|
|
16542
16549
|
//#region src/components/Dialog/DialogDescription.vue
|
|
16543
|
-
const _sfc_main$78 =
|
|
16550
|
+
const _sfc_main$78 = /*@__PURE__*/ defineComponent({
|
|
16544
16551
|
name: "DialogDescription",
|
|
16545
16552
|
__name: "DialogDescription",
|
|
16546
16553
|
props: {
|
|
@@ -16570,7 +16577,7 @@ const _sfc_main$78 = /* @__PURE__ */ defineComponent({
|
|
|
16570
16577
|
});
|
|
16571
16578
|
//#endregion
|
|
16572
16579
|
//#region src/components/Dialog/DialogTitle.vue
|
|
16573
|
-
const _sfc_main$80 =
|
|
16580
|
+
const _sfc_main$80 = /*@__PURE__*/ defineComponent({
|
|
16574
16581
|
name: "DialogTitle",
|
|
16575
16582
|
__name: "DialogTitle",
|
|
16576
16583
|
props: {
|
|
@@ -16600,7 +16607,7 @@ const _sfc_main$80 = /* @__PURE__ */ defineComponent({
|
|
|
16600
16607
|
});
|
|
16601
16608
|
//#endregion
|
|
16602
16609
|
//#region src/components/Dialog/DialogActivator.vue
|
|
16603
|
-
const _sfc_main$75 =
|
|
16610
|
+
const _sfc_main$75 = /*@__PURE__*/ defineComponent({
|
|
16604
16611
|
name: "DialogActivator",
|
|
16605
16612
|
__name: "DialogActivator",
|
|
16606
16613
|
props: {
|
|
@@ -16795,10 +16802,10 @@ const Dialog = {
|
|
|
16795
16802
|
//#endregion
|
|
16796
16803
|
//#region src/components/ExpansionPanel/ExpansionPanelGroup.vue
|
|
16797
16804
|
const [useExpansionPanelGroup, provideExpansionPanelGroup] = createContext();
|
|
16798
|
-
const _sfc_main$84 =
|
|
16805
|
+
const _sfc_main$84 = /*@__PURE__*/ defineComponent({
|
|
16799
16806
|
name: "ExpansionPanelGroup",
|
|
16800
16807
|
__name: "ExpansionPanelGroup",
|
|
16801
|
-
props:
|
|
16808
|
+
props: /*@__PURE__*/ mergeModels({
|
|
16802
16809
|
namespace: { default: "v0:expansion-panel" },
|
|
16803
16810
|
disabled: {
|
|
16804
16811
|
type: Boolean,
|
|
@@ -16822,7 +16829,7 @@ const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
|
16822
16829
|
"modelValue": {},
|
|
16823
16830
|
"modelModifiers": {}
|
|
16824
16831
|
}),
|
|
16825
|
-
emits:
|
|
16832
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
16826
16833
|
setup(__props) {
|
|
16827
16834
|
const model = useModel(__props, "modelValue");
|
|
16828
16835
|
const isDisabled = toRef(() => __props.disabled);
|
|
@@ -16855,7 +16862,7 @@ const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
|
16855
16862
|
//#endregion
|
|
16856
16863
|
//#region src/components/ExpansionPanel/ExpansionPanelRoot.vue
|
|
16857
16864
|
const [useExpansionPanelRoot, provideExpansionPanelRoot] = createContext({ suffix: "item" });
|
|
16858
|
-
const _sfc_main$86 =
|
|
16865
|
+
const _sfc_main$86 = /*@__PURE__*/ defineComponent({
|
|
16859
16866
|
name: "ExpansionPanelRoot",
|
|
16860
16867
|
__name: "ExpansionPanelRoot",
|
|
16861
16868
|
props: {
|
|
@@ -16901,7 +16908,7 @@ const _sfc_main$86 = /* @__PURE__ */ defineComponent({
|
|
|
16901
16908
|
});
|
|
16902
16909
|
//#endregion
|
|
16903
16910
|
//#region src/components/ExpansionPanel/ExpansionPanelActivator.vue
|
|
16904
|
-
const _sfc_main$81 =
|
|
16911
|
+
const _sfc_main$81 = /*@__PURE__*/ defineComponent({
|
|
16905
16912
|
name: "ExpansionPanelActivator",
|
|
16906
16913
|
__name: "ExpansionPanelActivator",
|
|
16907
16914
|
props: {
|
|
@@ -16954,7 +16961,7 @@ const _sfc_main$81 = /* @__PURE__ */ defineComponent({
|
|
|
16954
16961
|
});
|
|
16955
16962
|
//#endregion
|
|
16956
16963
|
//#region src/components/ExpansionPanel/ExpansionPanelContent.vue
|
|
16957
|
-
const _sfc_main$82 =
|
|
16964
|
+
const _sfc_main$82 = /*@__PURE__*/ defineComponent({
|
|
16958
16965
|
name: "ExpansionPanelContent",
|
|
16959
16966
|
__name: "ExpansionPanelContent",
|
|
16960
16967
|
props: {
|
|
@@ -16987,7 +16994,7 @@ const _sfc_main$82 = /* @__PURE__ */ defineComponent({
|
|
|
16987
16994
|
});
|
|
16988
16995
|
//#endregion
|
|
16989
16996
|
//#region src/components/ExpansionPanel/ExpansionPanelCue.vue
|
|
16990
|
-
const _sfc_main$83 =
|
|
16997
|
+
const _sfc_main$83 = /*@__PURE__*/ defineComponent({
|
|
16991
16998
|
name: "ExpansionPanelCue",
|
|
16992
16999
|
__name: "ExpansionPanelCue",
|
|
16993
17000
|
props: {
|
|
@@ -17017,7 +17024,7 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
17017
17024
|
});
|
|
17018
17025
|
//#endregion
|
|
17019
17026
|
//#region src/components/ExpansionPanel/ExpansionPanelHeader.vue
|
|
17020
|
-
const _sfc_main$85 =
|
|
17027
|
+
const _sfc_main$85 = /*@__PURE__*/ defineComponent({
|
|
17021
17028
|
name: "ExpansionPanelHeader",
|
|
17022
17029
|
__name: "ExpansionPanelHeader",
|
|
17023
17030
|
props: {
|
|
@@ -17342,11 +17349,11 @@ function useForm(namespace = "v0:form") {
|
|
|
17342
17349
|
}
|
|
17343
17350
|
//#endregion
|
|
17344
17351
|
//#region src/components/Form/Form.vue
|
|
17345
|
-
const _sfc_main$87 =
|
|
17352
|
+
const _sfc_main$87 = /*@__PURE__*/ defineComponent({
|
|
17346
17353
|
name: "Form",
|
|
17347
17354
|
inheritAttrs: false,
|
|
17348
17355
|
__name: "Form",
|
|
17349
|
-
props:
|
|
17356
|
+
props: /*@__PURE__*/ mergeModels({
|
|
17350
17357
|
namespace: { default: "v0:form" },
|
|
17351
17358
|
disabled: {
|
|
17352
17359
|
type: Boolean,
|
|
@@ -17369,7 +17376,7 @@ const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
|
17369
17376
|
},
|
|
17370
17377
|
"modelModifiers": {}
|
|
17371
17378
|
}),
|
|
17372
|
-
emits:
|
|
17379
|
+
emits: /*@__PURE__*/ mergeModels([
|
|
17373
17380
|
"update:model-value",
|
|
17374
17381
|
"submit",
|
|
17375
17382
|
"reset"
|
|
@@ -17388,7 +17395,8 @@ const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
|
17388
17395
|
provideContext(__props.namespace, form);
|
|
17389
17396
|
async function onSubmit(event) {
|
|
17390
17397
|
event.preventDefault();
|
|
17391
|
-
|
|
17398
|
+
const valid = await form.submit();
|
|
17399
|
+
emit("submit", { valid });
|
|
17392
17400
|
}
|
|
17393
17401
|
function onReset(event) {
|
|
17394
17402
|
event.preventDefault();
|
|
@@ -17422,10 +17430,10 @@ const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
|
17422
17430
|
//#endregion
|
|
17423
17431
|
//#region src/components/Group/GroupRoot.vue
|
|
17424
17432
|
const [useGroupRoot, provideGroupRoot] = createContext();
|
|
17425
|
-
const _sfc_main$89 =
|
|
17433
|
+
const _sfc_main$89 = /*@__PURE__*/ defineComponent({
|
|
17426
17434
|
name: "GroupRoot",
|
|
17427
17435
|
__name: "GroupRoot",
|
|
17428
|
-
props:
|
|
17436
|
+
props: /*@__PURE__*/ mergeModels({
|
|
17429
17437
|
namespace: { default: "v0:group" },
|
|
17430
17438
|
disabled: {
|
|
17431
17439
|
type: Boolean,
|
|
@@ -17443,7 +17451,7 @@ const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
|
17443
17451
|
"modelValue": {},
|
|
17444
17452
|
"modelModifiers": {}
|
|
17445
17453
|
}),
|
|
17446
|
-
emits:
|
|
17454
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
17447
17455
|
setup(__props) {
|
|
17448
17456
|
const model = useModel(__props, "modelValue");
|
|
17449
17457
|
const group = createGroup({
|
|
@@ -17474,7 +17482,7 @@ const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
|
17474
17482
|
});
|
|
17475
17483
|
//#endregion
|
|
17476
17484
|
//#region src/components/Group/GroupItem.vue
|
|
17477
|
-
const _sfc_main$88 =
|
|
17485
|
+
const _sfc_main$88 = /*@__PURE__*/ defineComponent({
|
|
17478
17486
|
name: "GroupItem",
|
|
17479
17487
|
__name: "GroupItem",
|
|
17480
17488
|
props: {
|
|
@@ -17763,7 +17771,7 @@ function useElementIntersection(target, options = {}) {
|
|
|
17763
17771
|
//#endregion
|
|
17764
17772
|
//#region src/components/Image/ImageRoot.vue
|
|
17765
17773
|
const [useImageRoot, provideImageRoot] = createContext();
|
|
17766
|
-
const _sfc_main$93 =
|
|
17774
|
+
const _sfc_main$93 = /*@__PURE__*/ defineComponent({
|
|
17767
17775
|
name: "ImageRoot",
|
|
17768
17776
|
__name: "ImageRoot",
|
|
17769
17777
|
props: {
|
|
@@ -17816,7 +17824,7 @@ const _sfc_main$93 = /* @__PURE__ */ defineComponent({
|
|
|
17816
17824
|
});
|
|
17817
17825
|
//#endregion
|
|
17818
17826
|
//#region src/components/Image/ImageFallback.vue
|
|
17819
|
-
const _sfc_main$90 =
|
|
17827
|
+
const _sfc_main$90 = /*@__PURE__*/ defineComponent({
|
|
17820
17828
|
name: "ImageFallback",
|
|
17821
17829
|
__name: "ImageFallback",
|
|
17822
17830
|
props: {
|
|
@@ -17846,7 +17854,7 @@ const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
|
17846
17854
|
});
|
|
17847
17855
|
//#endregion
|
|
17848
17856
|
//#region src/components/Image/ImageImg.vue
|
|
17849
|
-
const _sfc_main$91 =
|
|
17857
|
+
const _sfc_main$91 = /*@__PURE__*/ defineComponent({
|
|
17850
17858
|
name: "ImageImg",
|
|
17851
17859
|
__name: "ImageImg",
|
|
17852
17860
|
props: {
|
|
@@ -17917,7 +17925,7 @@ const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
|
17917
17925
|
});
|
|
17918
17926
|
//#endregion
|
|
17919
17927
|
//#region src/components/Image/ImagePlaceholder.vue
|
|
17920
|
-
const _sfc_main$92 =
|
|
17928
|
+
const _sfc_main$92 = /*@__PURE__*/ defineComponent({
|
|
17921
17929
|
name: "ImagePlaceholder",
|
|
17922
17930
|
__name: "ImagePlaceholder",
|
|
17923
17931
|
props: {
|
|
@@ -18025,7 +18033,7 @@ const Image = {
|
|
|
18025
18033
|
* @param value The value to check.
|
|
18026
18034
|
* @returns `true` if the value conforms to the Standard Schema interface.
|
|
18027
18035
|
*/
|
|
18028
|
-
/*
|
|
18036
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
18029
18037
|
function isStandardSchema(value) {
|
|
18030
18038
|
return /* @__PURE__ */ isObject(value) && "~standard" in value;
|
|
18031
18039
|
}
|
|
@@ -18041,7 +18049,7 @@ function isStandardSchema(value) {
|
|
|
18041
18049
|
*
|
|
18042
18050
|
* @see https://standardschema.dev/
|
|
18043
18051
|
*/
|
|
18044
|
-
/*
|
|
18052
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
18045
18053
|
function toRule(schema) {
|
|
18046
18054
|
return async (value) => {
|
|
18047
18055
|
let result = schema["~standard"].validate(value);
|
|
@@ -18453,11 +18461,11 @@ function parseValidateOn$1(value) {
|
|
|
18453
18461
|
modifier
|
|
18454
18462
|
};
|
|
18455
18463
|
}
|
|
18456
|
-
const _sfc_main$97 =
|
|
18464
|
+
const _sfc_main$97 = /*@__PURE__*/ defineComponent({
|
|
18457
18465
|
name: "InputRoot",
|
|
18458
18466
|
inheritAttrs: false,
|
|
18459
18467
|
__name: "InputRoot",
|
|
18460
|
-
props:
|
|
18468
|
+
props: /*@__PURE__*/ mergeModels({
|
|
18461
18469
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
18462
18470
|
label: {},
|
|
18463
18471
|
name: {},
|
|
@@ -18486,7 +18494,7 @@ const _sfc_main$97 = /* @__PURE__ */ defineComponent({
|
|
|
18486
18494
|
},
|
|
18487
18495
|
"focusedModifiers": {}
|
|
18488
18496
|
}),
|
|
18489
|
-
emits:
|
|
18497
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value", "update:focused"], ["update:modelValue", "update:focused"]),
|
|
18490
18498
|
setup(__props) {
|
|
18491
18499
|
const attrs = useAttrs();
|
|
18492
18500
|
const model = useModel(__props, "modelValue");
|
|
@@ -18600,7 +18608,7 @@ function defined(attrs) {
|
|
|
18600
18608
|
for (const key of Object.keys(attrs)) if (!/* @__PURE__ */ isUndefined(attrs[key])) result[key] = attrs[key];
|
|
18601
18609
|
return result;
|
|
18602
18610
|
}
|
|
18603
|
-
const _sfc_main$94 =
|
|
18611
|
+
const _sfc_main$94 = /*@__PURE__*/ defineComponent({
|
|
18604
18612
|
name: "InputControl",
|
|
18605
18613
|
inheritAttrs: false,
|
|
18606
18614
|
__name: "InputControl",
|
|
@@ -18673,7 +18681,7 @@ const _sfc_main$94 = /* @__PURE__ */ defineComponent({
|
|
|
18673
18681
|
});
|
|
18674
18682
|
//#endregion
|
|
18675
18683
|
//#region src/components/Input/InputDescription.vue
|
|
18676
|
-
const _sfc_main$95 =
|
|
18684
|
+
const _sfc_main$95 = /*@__PURE__*/ defineComponent({
|
|
18677
18685
|
name: "InputDescription",
|
|
18678
18686
|
inheritAttrs: false,
|
|
18679
18687
|
__name: "InputDescription",
|
|
@@ -18703,7 +18711,7 @@ const _sfc_main$95 = /* @__PURE__ */ defineComponent({
|
|
|
18703
18711
|
});
|
|
18704
18712
|
//#endregion
|
|
18705
18713
|
//#region src/components/Input/InputError.vue
|
|
18706
|
-
const _sfc_main$96 =
|
|
18714
|
+
const _sfc_main$96 = /*@__PURE__*/ defineComponent({
|
|
18707
18715
|
name: "InputError",
|
|
18708
18716
|
inheritAttrs: false,
|
|
18709
18717
|
__name: "InputError",
|
|
@@ -18855,7 +18863,7 @@ const Input = {
|
|
|
18855
18863
|
};
|
|
18856
18864
|
//#endregion
|
|
18857
18865
|
//#region src/components/Locale/Locale.vue
|
|
18858
|
-
const _sfc_main$98 =
|
|
18866
|
+
const _sfc_main$98 = /*@__PURE__*/ defineComponent({
|
|
18859
18867
|
name: "Locale",
|
|
18860
18868
|
inheritAttrs: false,
|
|
18861
18869
|
__name: "Locale",
|
|
@@ -18910,10 +18918,7 @@ const _sfc_main$98 = /* @__PURE__ */ defineComponent({
|
|
|
18910
18918
|
"lang": __props.locale
|
|
18911
18919
|
}));
|
|
18912
18920
|
return (_ctx, _cache) => {
|
|
18913
|
-
return __props.renderless ? renderSlot(_ctx.$slots, "default", {
|
|
18914
|
-
key: 0,
|
|
18915
|
-
attrs: attrs.value
|
|
18916
|
-
}) : (openBlock(), createBlock(resolveDynamicComponent(__props.as), normalizeProps(mergeProps({ key: 1 }, attrs.value)), {
|
|
18921
|
+
return __props.renderless ? renderSlot(_ctx.$slots, "default", { attrs: attrs.value }, void 0, void 0, 0) : (openBlock(), createBlock(resolveDynamicComponent(__props.as), normalizeProps(mergeProps({ key: 1 }, attrs.value)), {
|
|
18917
18922
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { attrs: attrs.value })]),
|
|
18918
18923
|
_: 3
|
|
18919
18924
|
}, 16));
|
|
@@ -18955,7 +18960,8 @@ function createNumeric(options = {}) {
|
|
|
18955
18960
|
function snap(value) {
|
|
18956
18961
|
if (!Number.isFinite(value)) return min;
|
|
18957
18962
|
if (step <= 0 || !Number.isFinite(min)) return /* @__PURE__ */ clamp(value, min, max);
|
|
18958
|
-
const
|
|
18963
|
+
const steps = Math.round((/* @__PURE__ */ clamp(value, min, max) - min) / step);
|
|
18964
|
+
const result = min + steps * step;
|
|
18959
18965
|
return /* @__PURE__ */ clamp(decimals > 0 ? +result.toFixed(decimals) : result, min, max);
|
|
18960
18966
|
}
|
|
18961
18967
|
function fromValue(value) {
|
|
@@ -19155,11 +19161,11 @@ function parseValidateOn(value) {
|
|
|
19155
19161
|
modifier
|
|
19156
19162
|
};
|
|
19157
19163
|
}
|
|
19158
|
-
const _sfc_main$104 =
|
|
19164
|
+
const _sfc_main$104 = /*@__PURE__*/ defineComponent({
|
|
19159
19165
|
name: "NumberFieldRoot",
|
|
19160
19166
|
inheritAttrs: false,
|
|
19161
19167
|
__name: "NumberFieldRoot",
|
|
19162
|
-
props:
|
|
19168
|
+
props: /*@__PURE__*/ mergeModels({
|
|
19163
19169
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
19164
19170
|
label: {},
|
|
19165
19171
|
ariaLabelledby: {},
|
|
@@ -19201,7 +19207,7 @@ const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
|
19201
19207
|
"modelValue": { default: null },
|
|
19202
19208
|
"modelModifiers": {}
|
|
19203
19209
|
}),
|
|
19204
|
-
emits:
|
|
19210
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
19205
19211
|
setup(__props) {
|
|
19206
19212
|
const attrs = useAttrs();
|
|
19207
19213
|
const model = useModel(__props, "modelValue");
|
|
@@ -19320,7 +19326,7 @@ const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
|
19320
19326
|
});
|
|
19321
19327
|
//#endregion
|
|
19322
19328
|
//#region src/components/NumberField/NumberFieldControl.vue
|
|
19323
|
-
const _sfc_main$99 =
|
|
19329
|
+
const _sfc_main$99 = /*@__PURE__*/ defineComponent({
|
|
19324
19330
|
name: "NumberFieldControl",
|
|
19325
19331
|
inheritAttrs: false,
|
|
19326
19332
|
__name: "NumberFieldControl",
|
|
@@ -19358,7 +19364,8 @@ const _sfc_main$99 = /* @__PURE__ */ defineComponent({
|
|
|
19358
19364
|
if (!/^-?\d*\.?\d*$/.test(next)) e.preventDefault();
|
|
19359
19365
|
}
|
|
19360
19366
|
function onInput(e) {
|
|
19361
|
-
|
|
19367
|
+
const target = e.target;
|
|
19368
|
+
text.value = target.value;
|
|
19362
19369
|
if (root.commitOn === "input") {
|
|
19363
19370
|
isEagerWrite = true;
|
|
19364
19371
|
root.write(text.value);
|
|
@@ -19479,7 +19486,7 @@ const _sfc_main$99 = /* @__PURE__ */ defineComponent({
|
|
|
19479
19486
|
});
|
|
19480
19487
|
//#endregion
|
|
19481
19488
|
//#region src/components/NumberField/NumberFieldDecrement.vue
|
|
19482
|
-
const _sfc_main$100 =
|
|
19489
|
+
const _sfc_main$100 = /*@__PURE__*/ defineComponent({
|
|
19483
19490
|
name: "NumberFieldDecrement",
|
|
19484
19491
|
inheritAttrs: false,
|
|
19485
19492
|
__name: "NumberFieldDecrement",
|
|
@@ -19553,7 +19560,7 @@ const _sfc_main$100 = /* @__PURE__ */ defineComponent({
|
|
|
19553
19560
|
});
|
|
19554
19561
|
//#endregion
|
|
19555
19562
|
//#region src/components/NumberField/NumberFieldDescription.vue
|
|
19556
|
-
const _sfc_main$101 =
|
|
19563
|
+
const _sfc_main$101 = /*@__PURE__*/ defineComponent({
|
|
19557
19564
|
name: "NumberFieldDescription",
|
|
19558
19565
|
inheritAttrs: false,
|
|
19559
19566
|
__name: "NumberFieldDescription",
|
|
@@ -19583,7 +19590,7 @@ const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
|
19583
19590
|
});
|
|
19584
19591
|
//#endregion
|
|
19585
19592
|
//#region src/components/NumberField/NumberFieldError.vue
|
|
19586
|
-
const _sfc_main$102 =
|
|
19593
|
+
const _sfc_main$102 = /*@__PURE__*/ defineComponent({
|
|
19587
19594
|
name: "NumberFieldError",
|
|
19588
19595
|
inheritAttrs: false,
|
|
19589
19596
|
__name: "NumberFieldError",
|
|
@@ -19620,7 +19627,7 @@ const _sfc_main$102 = /* @__PURE__ */ defineComponent({
|
|
|
19620
19627
|
});
|
|
19621
19628
|
//#endregion
|
|
19622
19629
|
//#region src/components/NumberField/NumberFieldIncrement.vue
|
|
19623
|
-
const _sfc_main$103 =
|
|
19630
|
+
const _sfc_main$103 = /*@__PURE__*/ defineComponent({
|
|
19624
19631
|
name: "NumberFieldIncrement",
|
|
19625
19632
|
inheritAttrs: false,
|
|
19626
19633
|
__name: "NumberFieldIncrement",
|
|
@@ -19694,7 +19701,7 @@ const _sfc_main$103 = /* @__PURE__ */ defineComponent({
|
|
|
19694
19701
|
});
|
|
19695
19702
|
//#endregion
|
|
19696
19703
|
//#region src/components/NumberField/NumberFieldScrub.vue
|
|
19697
|
-
const _sfc_main$105 =
|
|
19704
|
+
const _sfc_main$105 = /*@__PURE__*/ defineComponent({
|
|
19698
19705
|
name: "NumberFieldScrub",
|
|
19699
19706
|
inheritAttrs: false,
|
|
19700
19707
|
__name: "NumberFieldScrub",
|
|
@@ -19916,7 +19923,7 @@ const NumberField = {
|
|
|
19916
19923
|
* `createOverflow` as a getter so capacity recomputes when the prop changes.
|
|
19917
19924
|
*/
|
|
19918
19925
|
const [useOverflowRoot, provideOverflowRoot] = createContext();
|
|
19919
|
-
const _sfc_main$108 =
|
|
19926
|
+
const _sfc_main$108 = /*@__PURE__*/ defineComponent({
|
|
19920
19927
|
name: "OverflowRoot",
|
|
19921
19928
|
__name: "OverflowRoot",
|
|
19922
19929
|
props: {
|
|
@@ -20005,7 +20012,7 @@ const _sfc_main$108 = /* @__PURE__ */ defineComponent({
|
|
|
20005
20012
|
* slot consumer must spread `slotProps.attrs` onto their own element to
|
|
20006
20013
|
* preserve the data hook and live-region semantics.
|
|
20007
20014
|
*/
|
|
20008
|
-
const _sfc_main$106 =
|
|
20015
|
+
const _sfc_main$106 = /*@__PURE__*/ defineComponent({
|
|
20009
20016
|
name: "OverflowIndicator",
|
|
20010
20017
|
__name: "OverflowIndicator",
|
|
20011
20018
|
props: {
|
|
@@ -20074,7 +20081,7 @@ const _sfc_main$106 = /* @__PURE__ */ defineComponent({
|
|
|
20074
20081
|
* so the slot consumer is responsible for honoring `isHidden` themselves —
|
|
20075
20082
|
* read it from `slotProps.isHidden` and conditionally render or apply CSS.
|
|
20076
20083
|
*/
|
|
20077
|
-
const _sfc_main$107 =
|
|
20084
|
+
const _sfc_main$107 = /*@__PURE__*/ defineComponent({
|
|
20078
20085
|
name: "OverflowItem",
|
|
20079
20086
|
__name: "OverflowItem",
|
|
20080
20087
|
props: {
|
|
@@ -20209,10 +20216,10 @@ const Overflow = {
|
|
|
20209
20216
|
const [usePaginationRoot, providePaginationRoot] = createContext();
|
|
20210
20217
|
const [usePaginationControls, providePaginationControls] = createContext({ suffix: "controls" });
|
|
20211
20218
|
const [usePaginationItems, providePaginationItems] = createContext({ suffix: "items" });
|
|
20212
|
-
const _sfc_main$115 =
|
|
20219
|
+
const _sfc_main$115 = /*@__PURE__*/ defineComponent({
|
|
20213
20220
|
name: "PaginationRoot",
|
|
20214
20221
|
__name: "PaginationRoot",
|
|
20215
|
-
props:
|
|
20222
|
+
props: /*@__PURE__*/ mergeModels({
|
|
20216
20223
|
namespace: { default: "v0:pagination" },
|
|
20217
20224
|
size: { default: 1 },
|
|
20218
20225
|
totalVisible: {},
|
|
@@ -20227,7 +20234,7 @@ const _sfc_main$115 = /* @__PURE__ */ defineComponent({
|
|
|
20227
20234
|
"modelValue": { default: 1 },
|
|
20228
20235
|
"modelModifiers": {}
|
|
20229
20236
|
}),
|
|
20230
|
-
emits:
|
|
20237
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
20231
20238
|
setup(__props) {
|
|
20232
20239
|
const page = useModel(__props, "modelValue");
|
|
20233
20240
|
const locale = useLocale();
|
|
@@ -20311,7 +20318,7 @@ const _sfc_main$115 = /* @__PURE__ */ defineComponent({
|
|
|
20311
20318
|
});
|
|
20312
20319
|
//#endregion
|
|
20313
20320
|
//#region src/components/Pagination/PaginationEllipsis.vue
|
|
20314
|
-
const _sfc_main$109 =
|
|
20321
|
+
const _sfc_main$109 = /*@__PURE__*/ defineComponent({
|
|
20315
20322
|
name: "PaginationEllipsis",
|
|
20316
20323
|
__name: "PaginationEllipsis",
|
|
20317
20324
|
props: {
|
|
@@ -20354,7 +20361,7 @@ const _sfc_main$109 = /* @__PURE__ */ defineComponent({
|
|
|
20354
20361
|
});
|
|
20355
20362
|
//#endregion
|
|
20356
20363
|
//#region src/components/Pagination/PaginationFirst.vue
|
|
20357
|
-
const _sfc_main$110 =
|
|
20364
|
+
const _sfc_main$110 = /*@__PURE__*/ defineComponent({
|
|
20358
20365
|
name: "PaginationFirst",
|
|
20359
20366
|
__name: "PaginationFirst",
|
|
20360
20367
|
props: {
|
|
@@ -20419,7 +20426,7 @@ const _sfc_main$110 = /* @__PURE__ */ defineComponent({
|
|
|
20419
20426
|
});
|
|
20420
20427
|
//#endregion
|
|
20421
20428
|
//#region src/components/Pagination/PaginationItem.vue
|
|
20422
|
-
const _sfc_main$111 =
|
|
20429
|
+
const _sfc_main$111 = /*@__PURE__*/ defineComponent({
|
|
20423
20430
|
name: "PaginationItem",
|
|
20424
20431
|
__name: "PaginationItem",
|
|
20425
20432
|
props: {
|
|
@@ -20495,7 +20502,7 @@ const _sfc_main$111 = /* @__PURE__ */ defineComponent({
|
|
|
20495
20502
|
});
|
|
20496
20503
|
//#endregion
|
|
20497
20504
|
//#region src/components/Pagination/PaginationLast.vue
|
|
20498
|
-
const _sfc_main$112 =
|
|
20505
|
+
const _sfc_main$112 = /*@__PURE__*/ defineComponent({
|
|
20499
20506
|
name: "PaginationLast",
|
|
20500
20507
|
__name: "PaginationLast",
|
|
20501
20508
|
props: {
|
|
@@ -20560,7 +20567,7 @@ const _sfc_main$112 = /* @__PURE__ */ defineComponent({
|
|
|
20560
20567
|
});
|
|
20561
20568
|
//#endregion
|
|
20562
20569
|
//#region src/components/Pagination/PaginationNext.vue
|
|
20563
|
-
const _sfc_main$113 =
|
|
20570
|
+
const _sfc_main$113 = /*@__PURE__*/ defineComponent({
|
|
20564
20571
|
name: "PaginationNext",
|
|
20565
20572
|
__name: "PaginationNext",
|
|
20566
20573
|
props: {
|
|
@@ -20625,7 +20632,7 @@ const _sfc_main$113 = /* @__PURE__ */ defineComponent({
|
|
|
20625
20632
|
});
|
|
20626
20633
|
//#endregion
|
|
20627
20634
|
//#region src/components/Pagination/PaginationPrev.vue
|
|
20628
|
-
const _sfc_main$114 =
|
|
20635
|
+
const _sfc_main$114 = /*@__PURE__*/ defineComponent({
|
|
20629
20636
|
name: "PaginationPrev",
|
|
20630
20637
|
__name: "PaginationPrev",
|
|
20631
20638
|
props: {
|
|
@@ -20690,7 +20697,7 @@ const _sfc_main$114 = /* @__PURE__ */ defineComponent({
|
|
|
20690
20697
|
});
|
|
20691
20698
|
//#endregion
|
|
20692
20699
|
//#region src/components/Pagination/PaginationStatus.vue
|
|
20693
|
-
const _sfc_main$116 =
|
|
20700
|
+
const _sfc_main$116 = /*@__PURE__*/ defineComponent({
|
|
20694
20701
|
name: "PaginationStatus",
|
|
20695
20702
|
__name: "PaginationStatus",
|
|
20696
20703
|
props: {
|
|
@@ -20958,10 +20965,10 @@ const Pagination = {
|
|
|
20958
20965
|
//#endregion
|
|
20959
20966
|
//#region src/components/Popover/PopoverRoot.vue
|
|
20960
20967
|
const [usePopoverContext, providePopoverContext] = createContext("v0:popover:root");
|
|
20961
|
-
const _sfc_main$119 =
|
|
20968
|
+
const _sfc_main$119 = /*@__PURE__*/ defineComponent({
|
|
20962
20969
|
name: "PopoverRoot",
|
|
20963
20970
|
__name: "PopoverRoot",
|
|
20964
|
-
props:
|
|
20971
|
+
props: /*@__PURE__*/ mergeModels({
|
|
20965
20972
|
id: {},
|
|
20966
20973
|
positionArea: {},
|
|
20967
20974
|
positionTry: {},
|
|
@@ -21004,7 +21011,7 @@ const _sfc_main$119 = /* @__PURE__ */ defineComponent({
|
|
|
21004
21011
|
});
|
|
21005
21012
|
//#endregion
|
|
21006
21013
|
//#region src/components/Popover/PopoverActivator.vue
|
|
21007
|
-
const _sfc_main$117 =
|
|
21014
|
+
const _sfc_main$117 = /*@__PURE__*/ defineComponent({
|
|
21008
21015
|
name: "PopoverActivator",
|
|
21009
21016
|
__name: "PopoverActivator",
|
|
21010
21017
|
props: {
|
|
@@ -21055,7 +21062,7 @@ const _sfc_main$117 = /* @__PURE__ */ defineComponent({
|
|
|
21055
21062
|
});
|
|
21056
21063
|
//#endregion
|
|
21057
21064
|
//#region src/components/Popover/PopoverContent.vue
|
|
21058
|
-
const _sfc_main$118 =
|
|
21065
|
+
const _sfc_main$118 = /*@__PURE__*/ defineComponent({
|
|
21059
21066
|
name: "PopoverContent",
|
|
21060
21067
|
__name: "PopoverContent",
|
|
21061
21068
|
props: {
|
|
@@ -21197,7 +21204,7 @@ const Popover = {
|
|
|
21197
21204
|
* Standardizes the teleport + stack registration pattern used by
|
|
21198
21205
|
* overlay components (Snackbar, Toast, Dialog, etc.).
|
|
21199
21206
|
*/
|
|
21200
|
-
const _sfc_main$120 =
|
|
21207
|
+
const _sfc_main$120 = /*@__PURE__*/ defineComponent({
|
|
21201
21208
|
name: "Portal",
|
|
21202
21209
|
__name: "Portal",
|
|
21203
21210
|
props: {
|
|
@@ -21345,9 +21352,7 @@ function usePresence(options) {
|
|
|
21345
21352
|
case "mounted":
|
|
21346
21353
|
state.value = "present";
|
|
21347
21354
|
break;
|
|
21348
|
-
case "unmounted":
|
|
21349
|
-
enter();
|
|
21350
|
-
break;
|
|
21355
|
+
case "unmounted": enter();
|
|
21351
21356
|
}
|
|
21352
21357
|
} else if (booted) leave();
|
|
21353
21358
|
}, { immediate: true });
|
|
@@ -21385,10 +21390,10 @@ function usePresence(options) {
|
|
|
21385
21390
|
* - Lifecycle events: `enter`, `leave`, `after-leave`
|
|
21386
21391
|
* - Animation-agnostic: works with CSS, WAAPI, GSAP, or nothing
|
|
21387
21392
|
*/
|
|
21388
|
-
const _sfc_main$121 =
|
|
21393
|
+
const _sfc_main$121 = /*@__PURE__*/ defineComponent({
|
|
21389
21394
|
name: "Presence",
|
|
21390
21395
|
__name: "Presence",
|
|
21391
|
-
props:
|
|
21396
|
+
props: /*@__PURE__*/ mergeModels({
|
|
21392
21397
|
lazy: {
|
|
21393
21398
|
type: Boolean,
|
|
21394
21399
|
default: false
|
|
@@ -21404,7 +21409,7 @@ const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
|
21404
21409
|
},
|
|
21405
21410
|
"modelModifiers": {}
|
|
21406
21411
|
}),
|
|
21407
|
-
emits:
|
|
21412
|
+
emits: /*@__PURE__*/ mergeModels([
|
|
21408
21413
|
"enter",
|
|
21409
21414
|
"leave",
|
|
21410
21415
|
"after-leave"
|
|
@@ -21438,14 +21443,14 @@ const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
|
21438
21443
|
else if (prev === "leaving" && (state === "unmounted" || state === "mounted")) emit("after-leave");
|
|
21439
21444
|
});
|
|
21440
21445
|
return (_ctx, _cache) => {
|
|
21441
|
-
return unref(presence).isMounted.value ? renderSlot(_ctx.$slots, "default", normalizeProps(
|
|
21446
|
+
return unref(presence).isMounted.value ? renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), void 0, void 0, 0) : createCommentVNode("v-if", true);
|
|
21442
21447
|
};
|
|
21443
21448
|
}
|
|
21444
21449
|
});
|
|
21445
21450
|
//#endregion
|
|
21446
21451
|
//#region src/components/Progress/ProgressHiddenInput.vue
|
|
21447
21452
|
const _hoisted_1$5 = ["name", "value"];
|
|
21448
|
-
const _sfc_main$124 =
|
|
21453
|
+
const _sfc_main$124 = /*@__PURE__*/ defineComponent({
|
|
21449
21454
|
name: "ProgressHiddenInput",
|
|
21450
21455
|
__name: "ProgressHiddenInput",
|
|
21451
21456
|
props: { namespace: { default: "v0:progress:root" } },
|
|
@@ -21597,11 +21602,11 @@ function useProgress(namespace = "v0:progress") {
|
|
|
21597
21602
|
//#endregion
|
|
21598
21603
|
//#region src/components/Progress/ProgressRoot.vue
|
|
21599
21604
|
const [useProgressRoot, provideProgressRoot] = createContext();
|
|
21600
|
-
const _sfc_main$126 =
|
|
21605
|
+
const _sfc_main$126 = /*@__PURE__*/ defineComponent({
|
|
21601
21606
|
name: "ProgressRoot",
|
|
21602
21607
|
inheritAttrs: false,
|
|
21603
21608
|
__name: "ProgressRoot",
|
|
21604
|
-
props:
|
|
21609
|
+
props: /*@__PURE__*/ mergeModels({
|
|
21605
21610
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
21606
21611
|
ariaLabel: {},
|
|
21607
21612
|
modelValue: {},
|
|
@@ -21683,7 +21688,7 @@ const _sfc_main$126 = /* @__PURE__ */ defineComponent({
|
|
|
21683
21688
|
});
|
|
21684
21689
|
//#endregion
|
|
21685
21690
|
//#region src/components/Progress/ProgressBuffer.vue
|
|
21686
|
-
const _sfc_main$122 =
|
|
21691
|
+
const _sfc_main$122 = /*@__PURE__*/ defineComponent({
|
|
21687
21692
|
name: "ProgressBuffer",
|
|
21688
21693
|
inheritAttrs: false,
|
|
21689
21694
|
__name: "ProgressBuffer",
|
|
@@ -21729,7 +21734,7 @@ const _sfc_main$122 = /* @__PURE__ */ defineComponent({
|
|
|
21729
21734
|
});
|
|
21730
21735
|
//#endregion
|
|
21731
21736
|
//#region src/components/Progress/ProgressFill.vue
|
|
21732
|
-
const _sfc_main$123 =
|
|
21737
|
+
const _sfc_main$123 = /*@__PURE__*/ defineComponent({
|
|
21733
21738
|
name: "ProgressFill",
|
|
21734
21739
|
inheritAttrs: false,
|
|
21735
21740
|
__name: "ProgressFill",
|
|
@@ -21780,7 +21785,7 @@ const _sfc_main$123 = /* @__PURE__ */ defineComponent({
|
|
|
21780
21785
|
});
|
|
21781
21786
|
//#endregion
|
|
21782
21787
|
//#region src/components/Progress/ProgressLabel.vue
|
|
21783
|
-
const _sfc_main$125 =
|
|
21788
|
+
const _sfc_main$125 = /*@__PURE__*/ defineComponent({
|
|
21784
21789
|
name: "ProgressLabel",
|
|
21785
21790
|
inheritAttrs: false,
|
|
21786
21791
|
__name: "ProgressLabel",
|
|
@@ -21817,7 +21822,7 @@ const _sfc_main$125 = /* @__PURE__ */ defineComponent({
|
|
|
21817
21822
|
});
|
|
21818
21823
|
//#endregion
|
|
21819
21824
|
//#region src/components/Progress/ProgressTrack.vue
|
|
21820
|
-
const _sfc_main$127 =
|
|
21825
|
+
const _sfc_main$127 = /*@__PURE__*/ defineComponent({
|
|
21821
21826
|
name: "ProgressTrack",
|
|
21822
21827
|
inheritAttrs: false,
|
|
21823
21828
|
__name: "ProgressTrack",
|
|
@@ -21843,7 +21848,7 @@ const _sfc_main$127 = /* @__PURE__ */ defineComponent({
|
|
|
21843
21848
|
});
|
|
21844
21849
|
//#endregion
|
|
21845
21850
|
//#region src/components/Progress/ProgressValue.vue
|
|
21846
|
-
const _sfc_main$128 =
|
|
21851
|
+
const _sfc_main$128 = /*@__PURE__*/ defineComponent({
|
|
21847
21852
|
name: "ProgressValue",
|
|
21848
21853
|
inheritAttrs: false,
|
|
21849
21854
|
__name: "ProgressValue",
|
|
@@ -22082,10 +22087,10 @@ const Progress = {
|
|
|
22082
22087
|
//#endregion
|
|
22083
22088
|
//#region src/components/Radio/RadioGroup.vue
|
|
22084
22089
|
const [useRadioGroup, provideRadioGroup] = createContext();
|
|
22085
|
-
const _sfc_main$129 =
|
|
22090
|
+
const _sfc_main$129 = /*@__PURE__*/ defineComponent({
|
|
22086
22091
|
name: "RadioGroup",
|
|
22087
22092
|
__name: "RadioGroup",
|
|
22088
|
-
props:
|
|
22093
|
+
props: /*@__PURE__*/ mergeModels({
|
|
22089
22094
|
namespace: { default: "v0:radio:group" },
|
|
22090
22095
|
disabled: {
|
|
22091
22096
|
type: Boolean,
|
|
@@ -22107,7 +22112,7 @@ const _sfc_main$129 = /* @__PURE__ */ defineComponent({
|
|
|
22107
22112
|
"modelValue": {},
|
|
22108
22113
|
"modelModifiers": {}
|
|
22109
22114
|
}),
|
|
22110
|
-
emits:
|
|
22115
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
22111
22116
|
setup(__props) {
|
|
22112
22117
|
const model = useModel(__props, "modelValue");
|
|
22113
22118
|
const single = createSingle({
|
|
@@ -22147,7 +22152,7 @@ const _sfc_main$129 = /* @__PURE__ */ defineComponent({
|
|
|
22147
22152
|
//#endregion
|
|
22148
22153
|
//#region src/components/Radio/RadioRoot.vue
|
|
22149
22154
|
const [useRadioRoot, provideRadioRoot] = createContext();
|
|
22150
|
-
const _sfc_main$132 =
|
|
22155
|
+
const _sfc_main$132 = /*@__PURE__*/ defineComponent({
|
|
22151
22156
|
name: "RadioRoot",
|
|
22152
22157
|
inheritAttrs: false,
|
|
22153
22158
|
__name: "RadioRoot",
|
|
@@ -22289,7 +22294,7 @@ const visuallyHiddenStyle$3 = {
|
|
|
22289
22294
|
whiteSpace: "nowrap",
|
|
22290
22295
|
border: "0"
|
|
22291
22296
|
};
|
|
22292
|
-
const _sfc_main$130 =
|
|
22297
|
+
const _sfc_main$130 = /*@__PURE__*/ defineComponent({
|
|
22293
22298
|
name: "RadioHiddenInput",
|
|
22294
22299
|
__name: "RadioHiddenInput",
|
|
22295
22300
|
props: {
|
|
@@ -22326,7 +22331,7 @@ const _sfc_main$130 = /* @__PURE__ */ defineComponent({
|
|
|
22326
22331
|
});
|
|
22327
22332
|
//#endregion
|
|
22328
22333
|
//#region src/components/Radio/RadioIndicator.vue
|
|
22329
|
-
const _sfc_main$131 =
|
|
22334
|
+
const _sfc_main$131 = /*@__PURE__*/ defineComponent({
|
|
22330
22335
|
name: "RadioIndicator",
|
|
22331
22336
|
__name: "RadioIndicator",
|
|
22332
22337
|
props: {
|
|
@@ -22658,11 +22663,11 @@ function useRating(namespace = "v0:rating") {
|
|
|
22658
22663
|
//#endregion
|
|
22659
22664
|
//#region src/components/Rating/RatingRoot.vue
|
|
22660
22665
|
const [useRatingRoot, provideRatingRoot] = createContext();
|
|
22661
|
-
const _sfc_main$135 =
|
|
22666
|
+
const _sfc_main$135 = /*@__PURE__*/ defineComponent({
|
|
22662
22667
|
name: "RatingRoot",
|
|
22663
22668
|
inheritAttrs: false,
|
|
22664
22669
|
__name: "RatingRoot",
|
|
22665
|
-
props:
|
|
22670
|
+
props: /*@__PURE__*/ mergeModels({
|
|
22666
22671
|
modelValue: {},
|
|
22667
22672
|
size: { default: 5 },
|
|
22668
22673
|
half: {
|
|
@@ -22766,7 +22771,7 @@ const _hoisted_1$3 = [
|
|
|
22766
22771
|
"name",
|
|
22767
22772
|
"value"
|
|
22768
22773
|
];
|
|
22769
|
-
const _sfc_main$133 =
|
|
22774
|
+
const _sfc_main$133 = /*@__PURE__*/ defineComponent({
|
|
22770
22775
|
name: "RatingHiddenInput",
|
|
22771
22776
|
__name: "RatingHiddenInput",
|
|
22772
22777
|
props: { namespace: { default: "v0:rating:root" } },
|
|
@@ -22787,7 +22792,7 @@ const _sfc_main$133 = /* @__PURE__ */ defineComponent({
|
|
|
22787
22792
|
});
|
|
22788
22793
|
//#endregion
|
|
22789
22794
|
//#region src/components/Rating/RatingItem.vue
|
|
22790
|
-
const _sfc_main$134 =
|
|
22795
|
+
const _sfc_main$134 = /*@__PURE__*/ defineComponent({
|
|
22791
22796
|
name: "RatingItem",
|
|
22792
22797
|
inheritAttrs: false,
|
|
22793
22798
|
__name: "RatingItem",
|
|
@@ -22989,7 +22994,7 @@ const Rating = {
|
|
|
22989
22994
|
};
|
|
22990
22995
|
//#endregion
|
|
22991
22996
|
//#region src/components/Scrim/Scrim.vue
|
|
22992
|
-
const _sfc_main$136 =
|
|
22997
|
+
const _sfc_main$136 = /*@__PURE__*/ defineComponent({
|
|
22993
22998
|
name: "Scrim",
|
|
22994
22999
|
inheritAttrs: false,
|
|
22995
23000
|
__name: "Scrim",
|
|
@@ -23078,7 +23083,7 @@ const visuallyHiddenStyle$2 = {
|
|
|
23078
23083
|
whiteSpace: "nowrap",
|
|
23079
23084
|
border: "0"
|
|
23080
23085
|
};
|
|
23081
|
-
const _sfc_main$191 =
|
|
23086
|
+
const _sfc_main$191 = /*@__PURE__*/ defineComponent({
|
|
23082
23087
|
name: "SelectHiddenInput",
|
|
23083
23088
|
__name: "SelectHiddenInput",
|
|
23084
23089
|
props: { namespace: { default: "v0:select" } },
|
|
@@ -23112,10 +23117,10 @@ const _sfc_main$191 = /* @__PURE__ */ defineComponent({
|
|
|
23112
23117
|
//#endregion
|
|
23113
23118
|
//#region src/components/Select/SelectRoot.vue
|
|
23114
23119
|
const [useSelectContext, provideSelectContext] = createContext();
|
|
23115
|
-
const _sfc_main$142 =
|
|
23120
|
+
const _sfc_main$142 = /*@__PURE__*/ defineComponent({
|
|
23116
23121
|
name: "SelectRoot",
|
|
23117
23122
|
__name: "SelectRoot",
|
|
23118
|
-
props:
|
|
23123
|
+
props: /*@__PURE__*/ mergeModels({
|
|
23119
23124
|
namespace: { default: "v0:select" },
|
|
23120
23125
|
id: {},
|
|
23121
23126
|
name: {},
|
|
@@ -23139,7 +23144,7 @@ const _sfc_main$142 = /* @__PURE__ */ defineComponent({
|
|
|
23139
23144
|
"modelValue": {},
|
|
23140
23145
|
"modelModifiers": {}
|
|
23141
23146
|
}),
|
|
23142
|
-
emits:
|
|
23147
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
23143
23148
|
setup(__props) {
|
|
23144
23149
|
const model = useModel(__props, "modelValue");
|
|
23145
23150
|
const id = __props.id ?? /* @__PURE__ */ useId();
|
|
@@ -23236,7 +23241,7 @@ const _sfc_main$142 = /* @__PURE__ */ defineComponent({
|
|
|
23236
23241
|
});
|
|
23237
23242
|
//#endregion
|
|
23238
23243
|
//#region src/components/Select/SelectActivator.vue
|
|
23239
|
-
const _sfc_main$137 =
|
|
23244
|
+
const _sfc_main$137 = /*@__PURE__*/ defineComponent({
|
|
23240
23245
|
name: "SelectActivator",
|
|
23241
23246
|
__name: "SelectActivator",
|
|
23242
23247
|
props: {
|
|
@@ -23271,9 +23276,7 @@ const _sfc_main$137 = /* @__PURE__ */ defineComponent({
|
|
|
23271
23276
|
case "ArrowDown":
|
|
23272
23277
|
case "ArrowUp":
|
|
23273
23278
|
case "Home":
|
|
23274
|
-
case "End":
|
|
23275
|
-
context.virtualFocus.onKeydown(e);
|
|
23276
|
-
break;
|
|
23279
|
+
case "End": context.virtualFocus.onKeydown(e);
|
|
23277
23280
|
}
|
|
23278
23281
|
else switch (e.key) {
|
|
23279
23282
|
case " ":
|
|
@@ -23282,7 +23285,6 @@ const _sfc_main$137 = /* @__PURE__ */ defineComponent({
|
|
|
23282
23285
|
case "ArrowUp":
|
|
23283
23286
|
e.preventDefault();
|
|
23284
23287
|
context.open();
|
|
23285
|
-
break;
|
|
23286
23288
|
}
|
|
23287
23289
|
}
|
|
23288
23290
|
const slotProps = toRef(() => ({
|
|
@@ -23319,7 +23321,7 @@ const _sfc_main$137 = /* @__PURE__ */ defineComponent({
|
|
|
23319
23321
|
});
|
|
23320
23322
|
//#endregion
|
|
23321
23323
|
//#region src/components/Select/SelectContent.vue
|
|
23322
|
-
const _sfc_main$138 =
|
|
23324
|
+
const _sfc_main$138 = /*@__PURE__*/ defineComponent({
|
|
23323
23325
|
name: "SelectContent",
|
|
23324
23326
|
__name: "SelectContent",
|
|
23325
23327
|
props: {
|
|
@@ -23355,7 +23357,7 @@ const _sfc_main$138 = /* @__PURE__ */ defineComponent({
|
|
|
23355
23357
|
as: __props.as,
|
|
23356
23358
|
renderless: __props.renderless
|
|
23357
23359
|
}, slotProps.value.attrs), {
|
|
23358
|
-
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(
|
|
23360
|
+
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), void 0, void 0, 0) : createCommentVNode("v-if", true)]),
|
|
23359
23361
|
_: 3
|
|
23360
23362
|
}, 16, ["as", "renderless"]);
|
|
23361
23363
|
};
|
|
@@ -23363,7 +23365,7 @@ const _sfc_main$138 = /* @__PURE__ */ defineComponent({
|
|
|
23363
23365
|
});
|
|
23364
23366
|
//#endregion
|
|
23365
23367
|
//#region src/components/Select/SelectCue.vue
|
|
23366
|
-
const _sfc_main$139 =
|
|
23368
|
+
const _sfc_main$139 = /*@__PURE__*/ defineComponent({
|
|
23367
23369
|
name: "SelectCue",
|
|
23368
23370
|
__name: "SelectCue",
|
|
23369
23371
|
props: {
|
|
@@ -23393,7 +23395,7 @@ const _sfc_main$139 = /* @__PURE__ */ defineComponent({
|
|
|
23393
23395
|
});
|
|
23394
23396
|
//#endregion
|
|
23395
23397
|
//#region src/components/Select/SelectItem.vue
|
|
23396
|
-
const _sfc_main$140 =
|
|
23398
|
+
const _sfc_main$140 = /*@__PURE__*/ defineComponent({
|
|
23397
23399
|
name: "SelectItem",
|
|
23398
23400
|
__name: "SelectItem",
|
|
23399
23401
|
props: {
|
|
@@ -23452,7 +23454,7 @@ const _sfc_main$140 = /* @__PURE__ */ defineComponent({
|
|
|
23452
23454
|
});
|
|
23453
23455
|
//#endregion
|
|
23454
23456
|
//#region src/components/Select/SelectPlaceholder.vue
|
|
23455
|
-
const _sfc_main$141 =
|
|
23457
|
+
const _sfc_main$141 = /*@__PURE__*/ defineComponent({
|
|
23456
23458
|
name: "SelectPlaceholder",
|
|
23457
23459
|
__name: "SelectPlaceholder",
|
|
23458
23460
|
props: {
|
|
@@ -23477,7 +23479,7 @@ const _sfc_main$141 = /* @__PURE__ */ defineComponent({
|
|
|
23477
23479
|
});
|
|
23478
23480
|
//#endregion
|
|
23479
23481
|
//#region src/components/Select/SelectValue.vue
|
|
23480
|
-
const _sfc_main$143 =
|
|
23482
|
+
const _sfc_main$143 = /*@__PURE__*/ defineComponent({
|
|
23481
23483
|
name: "SelectValue",
|
|
23482
23484
|
__name: "SelectValue",
|
|
23483
23485
|
props: {
|
|
@@ -23706,10 +23708,10 @@ const Select = {
|
|
|
23706
23708
|
//#endregion
|
|
23707
23709
|
//#region src/components/Selection/SelectionRoot.vue
|
|
23708
23710
|
const [useSelectionRoot, provideSelectionRoot] = createContext();
|
|
23709
|
-
const _sfc_main$145 =
|
|
23711
|
+
const _sfc_main$145 = /*@__PURE__*/ defineComponent({
|
|
23710
23712
|
name: "SelectionRoot",
|
|
23711
23713
|
__name: "SelectionRoot",
|
|
23712
|
-
props:
|
|
23714
|
+
props: /*@__PURE__*/ mergeModels({
|
|
23713
23715
|
namespace: { default: "v0:selection" },
|
|
23714
23716
|
disabled: {
|
|
23715
23717
|
type: Boolean,
|
|
@@ -23731,7 +23733,7 @@ const _sfc_main$145 = /* @__PURE__ */ defineComponent({
|
|
|
23731
23733
|
"modelValue": {},
|
|
23732
23734
|
"modelModifiers": {}
|
|
23733
23735
|
}),
|
|
23734
|
-
emits:
|
|
23736
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
23735
23737
|
setup(__props) {
|
|
23736
23738
|
const model = useModel(__props, "modelValue");
|
|
23737
23739
|
const selection = createSelection({
|
|
@@ -23758,7 +23760,7 @@ const _sfc_main$145 = /* @__PURE__ */ defineComponent({
|
|
|
23758
23760
|
});
|
|
23759
23761
|
//#endregion
|
|
23760
23762
|
//#region src/components/Selection/SelectionItem.vue
|
|
23761
|
-
const _sfc_main$144 =
|
|
23763
|
+
const _sfc_main$144 = /*@__PURE__*/ defineComponent({
|
|
23762
23764
|
name: "SelectionItem",
|
|
23763
23765
|
__name: "SelectionItem",
|
|
23764
23766
|
props: {
|
|
@@ -23869,10 +23871,10 @@ const Selection = {
|
|
|
23869
23871
|
//#endregion
|
|
23870
23872
|
//#region src/components/Single/SingleRoot.vue
|
|
23871
23873
|
const [useSingleRoot, provideSingleRoot] = createContext();
|
|
23872
|
-
const _sfc_main$147 =
|
|
23874
|
+
const _sfc_main$147 = /*@__PURE__*/ defineComponent({
|
|
23873
23875
|
name: "SingleRoot",
|
|
23874
23876
|
__name: "SingleRoot",
|
|
23875
|
-
props:
|
|
23877
|
+
props: /*@__PURE__*/ mergeModels({
|
|
23876
23878
|
namespace: { default: "v0:single" },
|
|
23877
23879
|
disabled: {
|
|
23878
23880
|
type: Boolean,
|
|
@@ -23915,7 +23917,7 @@ const _sfc_main$147 = /* @__PURE__ */ defineComponent({
|
|
|
23915
23917
|
});
|
|
23916
23918
|
//#endregion
|
|
23917
23919
|
//#region src/components/Single/SingleItem.vue
|
|
23918
|
-
const _sfc_main$146 =
|
|
23920
|
+
const _sfc_main$146 = /*@__PURE__*/ defineComponent({
|
|
23919
23921
|
name: "SingleItem",
|
|
23920
23922
|
__name: "SingleItem",
|
|
23921
23923
|
props: {
|
|
@@ -24225,11 +24227,11 @@ function createSlider(options = {}) {
|
|
|
24225
24227
|
//#endregion
|
|
24226
24228
|
//#region src/components/Slider/SliderRoot.vue
|
|
24227
24229
|
const [useSliderRoot, provideSliderRoot] = createContext();
|
|
24228
|
-
const _sfc_main$150 =
|
|
24230
|
+
const _sfc_main$150 = /*@__PURE__*/ defineComponent({
|
|
24229
24231
|
name: "SliderRoot",
|
|
24230
24232
|
inheritAttrs: false,
|
|
24231
24233
|
__name: "SliderRoot",
|
|
24232
|
-
props:
|
|
24234
|
+
props: /*@__PURE__*/ mergeModels({
|
|
24233
24235
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
24234
24236
|
min: { default: 0 },
|
|
24235
24237
|
max: { default: 100 },
|
|
@@ -24257,7 +24259,7 @@ const _sfc_main$150 = /* @__PURE__ */ defineComponent({
|
|
|
24257
24259
|
"modelValue": { default: () => [] },
|
|
24258
24260
|
"modelModifiers": {}
|
|
24259
24261
|
}),
|
|
24260
|
-
emits:
|
|
24262
|
+
emits: /*@__PURE__*/ mergeModels([
|
|
24261
24263
|
"update:model-value",
|
|
24262
24264
|
"start",
|
|
24263
24265
|
"end"
|
|
@@ -24322,7 +24324,8 @@ const _sfc_main$150 = /* @__PURE__ */ defineComponent({
|
|
|
24322
24324
|
event.preventDefault();
|
|
24323
24325
|
if (thumbEl) {
|
|
24324
24326
|
const rect = thumbEl.getBoundingClientRect();
|
|
24325
|
-
|
|
24327
|
+
const isVertical = toValue(slider.orientation) === "vertical";
|
|
24328
|
+
dragOffset.value = isVertical ? event.clientY - (rect.top + rect.height / 2) : event.clientX - (rect.left + rect.width / 2);
|
|
24326
24329
|
} else dragOffset.value = 0;
|
|
24327
24330
|
dragging.value = index;
|
|
24328
24331
|
const values = [...slider.values.value];
|
|
@@ -24390,7 +24393,7 @@ const _hoisted_1$1 = [
|
|
|
24390
24393
|
"name",
|
|
24391
24394
|
"value"
|
|
24392
24395
|
];
|
|
24393
|
-
const _sfc_main$148 =
|
|
24396
|
+
const _sfc_main$148 = /*@__PURE__*/ defineComponent({
|
|
24394
24397
|
name: "SliderHiddenInput",
|
|
24395
24398
|
__name: "SliderHiddenInput",
|
|
24396
24399
|
props: {
|
|
@@ -24415,7 +24418,7 @@ const _sfc_main$148 = /* @__PURE__ */ defineComponent({
|
|
|
24415
24418
|
});
|
|
24416
24419
|
//#endregion
|
|
24417
24420
|
//#region src/components/Slider/SliderRange.vue
|
|
24418
|
-
const _sfc_main$149 =
|
|
24421
|
+
const _sfc_main$149 = /*@__PURE__*/ defineComponent({
|
|
24419
24422
|
name: "SliderRange",
|
|
24420
24423
|
inheritAttrs: false,
|
|
24421
24424
|
__name: "SliderRange",
|
|
@@ -24473,7 +24476,7 @@ const _sfc_main$149 = /* @__PURE__ */ defineComponent({
|
|
|
24473
24476
|
});
|
|
24474
24477
|
//#endregion
|
|
24475
24478
|
//#region src/components/Slider/SliderThumb.vue
|
|
24476
|
-
const _sfc_main$151 =
|
|
24479
|
+
const _sfc_main$151 = /*@__PURE__*/ defineComponent({
|
|
24477
24480
|
name: "SliderThumb",
|
|
24478
24481
|
inheritAttrs: false,
|
|
24479
24482
|
__name: "SliderThumb",
|
|
@@ -24530,7 +24533,8 @@ const _sfc_main$151 = /* @__PURE__ */ defineComponent({
|
|
|
24530
24533
|
if (e.shiftKey && e.key.startsWith("Arrow")) {
|
|
24531
24534
|
e.preventDefault();
|
|
24532
24535
|
const base = e.key === "ArrowRight" || e.key === "ArrowUp" ? "up" : "down";
|
|
24533
|
-
|
|
24536
|
+
const method = (e.key === "ArrowRight" || e.key === "ArrowLeft") && isInverted ? base === "up" ? "down" : "up" : base;
|
|
24537
|
+
root[method](index.value, 10);
|
|
24534
24538
|
return;
|
|
24535
24539
|
}
|
|
24536
24540
|
const action = actions[e.key];
|
|
@@ -24585,7 +24589,7 @@ const _sfc_main$151 = /* @__PURE__ */ defineComponent({
|
|
|
24585
24589
|
});
|
|
24586
24590
|
//#endregion
|
|
24587
24591
|
//#region src/components/Slider/SliderTrack.vue
|
|
24588
|
-
const _sfc_main$152 =
|
|
24592
|
+
const _sfc_main$152 = /*@__PURE__*/ defineComponent({
|
|
24589
24593
|
name: "SliderTrack",
|
|
24590
24594
|
inheritAttrs: false,
|
|
24591
24595
|
__name: "SliderTrack",
|
|
@@ -24806,7 +24810,7 @@ const visuallyHiddenStyle$1 = {
|
|
|
24806
24810
|
whiteSpace: "nowrap",
|
|
24807
24811
|
border: "0"
|
|
24808
24812
|
};
|
|
24809
|
-
const _sfc_main$153 =
|
|
24813
|
+
const _sfc_main$153 = /*@__PURE__*/ defineComponent({
|
|
24810
24814
|
name: "SnackbarAnnouncer",
|
|
24811
24815
|
__name: "SnackbarAnnouncer",
|
|
24812
24816
|
props: { namespace: { default: "v0:notifications" } },
|
|
@@ -24832,7 +24836,7 @@ const _sfc_main$153 = /* @__PURE__ */ defineComponent({
|
|
|
24832
24836
|
//#endregion
|
|
24833
24837
|
//#region src/components/Snackbar/SnackbarPortal.vue
|
|
24834
24838
|
const [usePortal, providePortal] = createContext({ suffix: "portal" });
|
|
24835
|
-
const _sfc_main$156 =
|
|
24839
|
+
const _sfc_main$156 = /*@__PURE__*/ defineComponent({
|
|
24836
24840
|
name: "SnackbarPortal",
|
|
24837
24841
|
inheritAttrs: false,
|
|
24838
24842
|
__name: "SnackbarPortal",
|
|
@@ -24887,7 +24891,8 @@ const _sfc_main$156 = /* @__PURE__ */ defineComponent({
|
|
|
24887
24891
|
};
|
|
24888
24892
|
}
|
|
24889
24893
|
const atomRef = useTemplateRef("atom");
|
|
24890
|
-
|
|
24894
|
+
const el = toRef(() => /* @__PURE__ */ toElement(atomRef.value?.element) ?? null);
|
|
24895
|
+
watch(el, (value) => {
|
|
24891
24896
|
if (!IN_BROWSER || /* @__PURE__ */ isNull(value)) return;
|
|
24892
24897
|
const element = value;
|
|
24893
24898
|
if (getComputedStyle(element).position === "static") element.style.position = "relative";
|
|
@@ -25700,7 +25705,7 @@ const [createNotificationsContext, createNotificationsPlugin, useNotifications]
|
|
|
25700
25705
|
//#endregion
|
|
25701
25706
|
//#region src/components/Snackbar/SnackbarQueue.vue
|
|
25702
25707
|
const [useSnackbarQueueContext, provideSnackbarQueueContext] = createContext({ suffix: "queue" });
|
|
25703
|
-
const _sfc_main$157 =
|
|
25708
|
+
const _sfc_main$157 = /*@__PURE__*/ defineComponent({
|
|
25704
25709
|
name: "SnackbarQueue",
|
|
25705
25710
|
__name: "SnackbarQueue",
|
|
25706
25711
|
props: {
|
|
@@ -25771,7 +25776,7 @@ const _sfc_main$157 = /* @__PURE__ */ defineComponent({
|
|
|
25771
25776
|
//#endregion
|
|
25772
25777
|
//#region src/components/Snackbar/SnackbarRoot.vue
|
|
25773
25778
|
const [useSnackbarRootContext, provideSnackbarRootContext] = createContext({ suffix: "root" });
|
|
25774
|
-
const _sfc_main$158 =
|
|
25779
|
+
const _sfc_main$158 = /*@__PURE__*/ defineComponent({
|
|
25775
25780
|
name: "SnackbarRoot",
|
|
25776
25781
|
__name: "SnackbarRoot",
|
|
25777
25782
|
props: {
|
|
@@ -25820,7 +25825,7 @@ const _sfc_main$158 = /* @__PURE__ */ defineComponent({
|
|
|
25820
25825
|
});
|
|
25821
25826
|
//#endregion
|
|
25822
25827
|
//#region src/components/Snackbar/SnackbarContent.vue
|
|
25823
|
-
const _sfc_main$155 =
|
|
25828
|
+
const _sfc_main$155 = /*@__PURE__*/ defineComponent({
|
|
25824
25829
|
name: "SnackbarContent",
|
|
25825
25830
|
__name: "SnackbarContent",
|
|
25826
25831
|
props: {
|
|
@@ -25841,7 +25846,7 @@ const _sfc_main$155 = /* @__PURE__ */ defineComponent({
|
|
|
25841
25846
|
});
|
|
25842
25847
|
//#endregion
|
|
25843
25848
|
//#region src/components/Snackbar/SnackbarClose.vue
|
|
25844
|
-
const _sfc_main$154 =
|
|
25849
|
+
const _sfc_main$154 = /*@__PURE__*/ defineComponent({
|
|
25845
25850
|
name: "SnackbarClose",
|
|
25846
25851
|
__name: "SnackbarClose",
|
|
25847
25852
|
props: {
|
|
@@ -26045,10 +26050,10 @@ const Snackbar = {
|
|
|
26045
26050
|
//#endregion
|
|
26046
26051
|
//#region src/components/Step/StepRoot.vue
|
|
26047
26052
|
const [useStepRoot, provideStepRoot] = createContext();
|
|
26048
|
-
const _sfc_main$163 =
|
|
26053
|
+
const _sfc_main$163 = /*@__PURE__*/ defineComponent({
|
|
26049
26054
|
name: "StepRoot",
|
|
26050
26055
|
__name: "StepRoot",
|
|
26051
|
-
props:
|
|
26056
|
+
props: /*@__PURE__*/ mergeModels({
|
|
26052
26057
|
namespace: { default: "v0:step" },
|
|
26053
26058
|
disabled: {
|
|
26054
26059
|
type: Boolean,
|
|
@@ -26096,7 +26101,7 @@ const _sfc_main$163 = /* @__PURE__ */ defineComponent({
|
|
|
26096
26101
|
});
|
|
26097
26102
|
//#endregion
|
|
26098
26103
|
//#region src/components/Step/StepItem.vue
|
|
26099
|
-
const _sfc_main$162 =
|
|
26104
|
+
const _sfc_main$162 = /*@__PURE__*/ defineComponent({
|
|
26100
26105
|
name: "StepItem",
|
|
26101
26106
|
__name: "StepItem",
|
|
26102
26107
|
props: {
|
|
@@ -26205,10 +26210,10 @@ const Step = {
|
|
|
26205
26210
|
//#endregion
|
|
26206
26211
|
//#region src/components/Switch/SwitchGroup.vue
|
|
26207
26212
|
const [useSwitchGroup, provideSwitchGroup] = createContext();
|
|
26208
|
-
const _sfc_main$164 =
|
|
26213
|
+
const _sfc_main$164 = /*@__PURE__*/ defineComponent({
|
|
26209
26214
|
name: "SwitchGroup",
|
|
26210
26215
|
__name: "SwitchGroup",
|
|
26211
|
-
props:
|
|
26216
|
+
props: /*@__PURE__*/ mergeModels({
|
|
26212
26217
|
namespace: { default: "v0:switch:group" },
|
|
26213
26218
|
disabled: {
|
|
26214
26219
|
type: Boolean,
|
|
@@ -26231,7 +26236,7 @@ const _sfc_main$164 = /* @__PURE__ */ defineComponent({
|
|
|
26231
26236
|
"modelValue": {},
|
|
26232
26237
|
"modelModifiers": {}
|
|
26233
26238
|
}),
|
|
26234
|
-
emits:
|
|
26239
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
26235
26240
|
setup(__props) {
|
|
26236
26241
|
const model = useModel(__props, "modelValue");
|
|
26237
26242
|
const group = createGroup({
|
|
@@ -26274,11 +26279,11 @@ const _sfc_main$164 = /* @__PURE__ */ defineComponent({
|
|
|
26274
26279
|
//#endregion
|
|
26275
26280
|
//#region src/components/Switch/SwitchRoot.vue
|
|
26276
26281
|
const [useSwitchRoot, provideSwitchRoot] = createContext();
|
|
26277
|
-
const _sfc_main$166 =
|
|
26282
|
+
const _sfc_main$166 = /*@__PURE__*/ defineComponent({
|
|
26278
26283
|
name: "SwitchRoot",
|
|
26279
26284
|
inheritAttrs: false,
|
|
26280
26285
|
__name: "SwitchRoot",
|
|
26281
|
-
props:
|
|
26286
|
+
props: /*@__PURE__*/ mergeModels({
|
|
26282
26287
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
26283
26288
|
label: {},
|
|
26284
26289
|
value: {},
|
|
@@ -26297,7 +26302,7 @@ const _sfc_main$166 = /* @__PURE__ */ defineComponent({
|
|
|
26297
26302
|
"modelValue": { type: Boolean },
|
|
26298
26303
|
"modelModifiers": {}
|
|
26299
26304
|
}),
|
|
26300
|
-
emits:
|
|
26305
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
26301
26306
|
setup(__props) {
|
|
26302
26307
|
const attrs = useAttrs();
|
|
26303
26308
|
let group = null;
|
|
@@ -26425,7 +26430,7 @@ const visuallyHiddenStyle = {
|
|
|
26425
26430
|
whiteSpace: "nowrap",
|
|
26426
26431
|
border: "0"
|
|
26427
26432
|
};
|
|
26428
|
-
const _sfc_main$165 =
|
|
26433
|
+
const _sfc_main$165 = /*@__PURE__*/ defineComponent({
|
|
26429
26434
|
name: "SwitchHiddenInput",
|
|
26430
26435
|
__name: "SwitchHiddenInput",
|
|
26431
26436
|
props: {
|
|
@@ -26463,7 +26468,7 @@ const _sfc_main$165 = /* @__PURE__ */ defineComponent({
|
|
|
26463
26468
|
});
|
|
26464
26469
|
//#endregion
|
|
26465
26470
|
//#region src/components/Switch/SwitchSelectAll.vue
|
|
26466
|
-
const _sfc_main$167 =
|
|
26471
|
+
const _sfc_main$167 = /*@__PURE__*/ defineComponent({
|
|
26467
26472
|
name: "SwitchSelectAll",
|
|
26468
26473
|
inheritAttrs: false,
|
|
26469
26474
|
__name: "SwitchSelectAll",
|
|
@@ -26547,7 +26552,7 @@ const _sfc_main$167 = /* @__PURE__ */ defineComponent({
|
|
|
26547
26552
|
});
|
|
26548
26553
|
//#endregion
|
|
26549
26554
|
//#region src/components/Switch/SwitchThumb.vue
|
|
26550
|
-
const _sfc_main$168 =
|
|
26555
|
+
const _sfc_main$168 = /*@__PURE__*/ defineComponent({
|
|
26551
26556
|
name: "SwitchThumb",
|
|
26552
26557
|
__name: "SwitchThumb",
|
|
26553
26558
|
props: {
|
|
@@ -26581,7 +26586,7 @@ const _sfc_main$168 = /* @__PURE__ */ defineComponent({
|
|
|
26581
26586
|
});
|
|
26582
26587
|
//#endregion
|
|
26583
26588
|
//#region src/components/Switch/SwitchTrack.vue
|
|
26584
|
-
const _sfc_main$169 =
|
|
26589
|
+
const _sfc_main$169 = /*@__PURE__*/ defineComponent({
|
|
26585
26590
|
name: "SwitchTrack",
|
|
26586
26591
|
__name: "SwitchTrack",
|
|
26587
26592
|
props: {
|
|
@@ -26810,10 +26815,10 @@ const Switch = {
|
|
|
26810
26815
|
//#endregion
|
|
26811
26816
|
//#region src/components/Tabs/TabsRoot.vue
|
|
26812
26817
|
const [useTabsRoot, provideTabsRoot] = createContext();
|
|
26813
|
-
const _sfc_main$173 =
|
|
26818
|
+
const _sfc_main$173 = /*@__PURE__*/ defineComponent({
|
|
26814
26819
|
name: "TabsRoot",
|
|
26815
26820
|
__name: "TabsRoot",
|
|
26816
|
-
props:
|
|
26821
|
+
props: /*@__PURE__*/ mergeModels({
|
|
26817
26822
|
namespace: { default: "v0:tabs" },
|
|
26818
26823
|
disabled: {
|
|
26819
26824
|
type: Boolean,
|
|
@@ -26837,7 +26842,7 @@ const _sfc_main$173 = /* @__PURE__ */ defineComponent({
|
|
|
26837
26842
|
"modelValue": {},
|
|
26838
26843
|
"modelModifiers": {}
|
|
26839
26844
|
}),
|
|
26840
|
-
emits:
|
|
26845
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
26841
26846
|
setup(__props) {
|
|
26842
26847
|
const model = useModel(__props, "modelValue");
|
|
26843
26848
|
const rootId = /* @__PURE__ */ useId();
|
|
@@ -26878,7 +26883,7 @@ const _sfc_main$173 = /* @__PURE__ */ defineComponent({
|
|
|
26878
26883
|
});
|
|
26879
26884
|
//#endregion
|
|
26880
26885
|
//#region src/components/Tabs/TabsList.vue
|
|
26881
|
-
const _sfc_main$171 =
|
|
26886
|
+
const _sfc_main$171 = /*@__PURE__*/ defineComponent({
|
|
26882
26887
|
name: "TabsList",
|
|
26883
26888
|
inheritAttrs: false,
|
|
26884
26889
|
__name: "TabsList",
|
|
@@ -26916,7 +26921,7 @@ const _sfc_main$171 = /* @__PURE__ */ defineComponent({
|
|
|
26916
26921
|
});
|
|
26917
26922
|
//#endregion
|
|
26918
26923
|
//#region src/components/Tabs/TabsItem.vue
|
|
26919
|
-
const _sfc_main$170 =
|
|
26924
|
+
const _sfc_main$170 = /*@__PURE__*/ defineComponent({
|
|
26920
26925
|
name: "TabsItem",
|
|
26921
26926
|
inheritAttrs: false,
|
|
26922
26927
|
__name: "TabsItem",
|
|
@@ -27065,7 +27070,7 @@ const _sfc_main$170 = /* @__PURE__ */ defineComponent({
|
|
|
27065
27070
|
});
|
|
27066
27071
|
//#endregion
|
|
27067
27072
|
//#region src/components/Tabs/TabsPanel.vue
|
|
27068
|
-
const _sfc_main$172 =
|
|
27073
|
+
const _sfc_main$172 = /*@__PURE__*/ defineComponent({
|
|
27069
27074
|
name: "TabsPanel",
|
|
27070
27075
|
inheritAttrs: false,
|
|
27071
27076
|
__name: "TabsPanel",
|
|
@@ -27324,7 +27329,7 @@ var ThemeAdapter = class ThemeAdapter {
|
|
|
27324
27329
|
if (!themeColors) continue;
|
|
27325
27330
|
if (!ThemeAdapter.SAFE_IDENT.test(theme)) continue;
|
|
27326
27331
|
const vars = Object.entries(themeColors).filter(([key, val]) => ThemeAdapter.SAFE_IDENT.test(key) && !ThemeAdapter.UNSAFE_CSS.test(val)).map(([key, val]) => ` --${this.prefix}-${key}: ${this.rgb ? this.decompose(val) : val};`).join("\n");
|
|
27327
|
-
css += `[data-theme="${theme}"] {\n${vars}\n
|
|
27332
|
+
css += `[data-theme="${theme}"] {\n${vars}\n}\n`;
|
|
27328
27333
|
}
|
|
27329
27334
|
if (!/* @__PURE__ */ isUndefined(isDark)) css += `:root {\n color-scheme: ${isDark ? "dark" : "light"};\n}\n`;
|
|
27330
27335
|
return css;
|
|
@@ -27724,7 +27729,7 @@ const [createThemeContext, createThemePlugin, useTheme] = createPluginContext("v
|
|
|
27724
27729
|
});
|
|
27725
27730
|
//#endregion
|
|
27726
27731
|
//#region src/components/Theme/Theme.vue
|
|
27727
|
-
const _sfc_main$174 =
|
|
27732
|
+
const _sfc_main$174 = /*@__PURE__*/ defineComponent({
|
|
27728
27733
|
name: "Theme",
|
|
27729
27734
|
inheritAttrs: false,
|
|
27730
27735
|
__name: "Theme",
|
|
@@ -27784,10 +27789,10 @@ const _sfc_main$174 = /* @__PURE__ */ defineComponent({
|
|
|
27784
27789
|
//#endregion
|
|
27785
27790
|
//#region src/components/Toggle/ToggleGroup.vue
|
|
27786
27791
|
const [useToggleGroup, provideToggleGroup] = createContext();
|
|
27787
|
-
const _sfc_main$175 =
|
|
27792
|
+
const _sfc_main$175 = /*@__PURE__*/ defineComponent({
|
|
27788
27793
|
name: "ToggleGroup",
|
|
27789
27794
|
__name: "ToggleGroup",
|
|
27790
|
-
props:
|
|
27795
|
+
props: /*@__PURE__*/ mergeModels({
|
|
27791
27796
|
namespace: { default: "v0:toggle:group" },
|
|
27792
27797
|
disabled: {
|
|
27793
27798
|
type: Boolean,
|
|
@@ -27811,7 +27816,7 @@ const _sfc_main$175 = /* @__PURE__ */ defineComponent({
|
|
|
27811
27816
|
"modelValue": {},
|
|
27812
27817
|
"modelModifiers": {}
|
|
27813
27818
|
}),
|
|
27814
|
-
emits:
|
|
27819
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
27815
27820
|
setup(__props) {
|
|
27816
27821
|
const model = useModel(__props, "modelValue");
|
|
27817
27822
|
const selection = __props.multiple ? createGroup({
|
|
@@ -27856,11 +27861,11 @@ const _sfc_main$175 = /* @__PURE__ */ defineComponent({
|
|
|
27856
27861
|
//#endregion
|
|
27857
27862
|
//#region src/components/Toggle/ToggleRoot.vue
|
|
27858
27863
|
const [useToggleRoot, provideToggleRoot] = createContext();
|
|
27859
|
-
const _sfc_main$177 =
|
|
27864
|
+
const _sfc_main$177 = /*@__PURE__*/ defineComponent({
|
|
27860
27865
|
name: "ToggleRoot",
|
|
27861
27866
|
inheritAttrs: false,
|
|
27862
27867
|
__name: "ToggleRoot",
|
|
27863
|
-
props:
|
|
27868
|
+
props: /*@__PURE__*/ mergeModels({
|
|
27864
27869
|
id: { default: () => /* @__PURE__ */ useId() },
|
|
27865
27870
|
value: {},
|
|
27866
27871
|
disabled: {
|
|
@@ -27875,7 +27880,7 @@ const _sfc_main$177 = /* @__PURE__ */ defineComponent({
|
|
|
27875
27880
|
"modelValue": { type: Boolean },
|
|
27876
27881
|
"modelModifiers": {}
|
|
27877
27882
|
}),
|
|
27878
|
-
emits:
|
|
27883
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
27879
27884
|
setup(__props) {
|
|
27880
27885
|
const attrs = useAttrs();
|
|
27881
27886
|
let group = null;
|
|
@@ -27927,7 +27932,8 @@ const _sfc_main$177 = /* @__PURE__ */ defineComponent({
|
|
|
27927
27932
|
"type": __props.as === "button" ? "button" : void 0,
|
|
27928
27933
|
"role": __props.as === "button" ? void 0 : "button",
|
|
27929
27934
|
"aria-pressed": isPressed.value,
|
|
27930
|
-
"aria-disabled": isDisabled.value,
|
|
27935
|
+
"aria-disabled": __props.as === "button" ? void 0 : isDisabled.value,
|
|
27936
|
+
"disabled": __props.as === "button" ? isDisabled.value : void 0,
|
|
27931
27937
|
"tabindex": isDisabled.value ? -1 : 0,
|
|
27932
27938
|
"data-state": isPressed.value ? "on" : "off",
|
|
27933
27939
|
"data-disabled": isDisabled.value ? true : void 0,
|
|
@@ -27948,7 +27954,7 @@ const _sfc_main$177 = /* @__PURE__ */ defineComponent({
|
|
|
27948
27954
|
});
|
|
27949
27955
|
//#endregion
|
|
27950
27956
|
//#region src/components/Toggle/ToggleIndicator.vue
|
|
27951
|
-
const _sfc_main$176 =
|
|
27957
|
+
const _sfc_main$176 = /*@__PURE__*/ defineComponent({
|
|
27952
27958
|
name: "ToggleIndicator",
|
|
27953
27959
|
__name: "ToggleIndicator",
|
|
27954
27960
|
props: {
|
|
@@ -28145,10 +28151,10 @@ const [createTooltipContext, createTooltipPlugin, useTooltip] = createPluginCont
|
|
|
28145
28151
|
//#endregion
|
|
28146
28152
|
//#region src/components/Tooltip/TooltipRoot.vue
|
|
28147
28153
|
const [useTooltipRoot, provideTooltipRoot] = createContext({ suffix: "root" });
|
|
28148
|
-
const _sfc_main$180 =
|
|
28154
|
+
const _sfc_main$180 = /*@__PURE__*/ defineComponent({
|
|
28149
28155
|
name: "TooltipRoot",
|
|
28150
28156
|
__name: "TooltipRoot",
|
|
28151
|
-
props:
|
|
28157
|
+
props: /*@__PURE__*/ mergeModels({
|
|
28152
28158
|
openDelay: {},
|
|
28153
28159
|
closeDelay: {},
|
|
28154
28160
|
disabled: {
|
|
@@ -28172,7 +28178,7 @@ const _sfc_main$180 = /* @__PURE__ */ defineComponent({
|
|
|
28172
28178
|
},
|
|
28173
28179
|
"modelModifiers": {}
|
|
28174
28180
|
}),
|
|
28175
|
-
emits:
|
|
28181
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
28176
28182
|
setup(__props) {
|
|
28177
28183
|
const isOpen = useModel(__props, "modelValue");
|
|
28178
28184
|
const region = useTooltip();
|
|
@@ -28252,7 +28258,7 @@ const _sfc_main$180 = /* @__PURE__ */ defineComponent({
|
|
|
28252
28258
|
});
|
|
28253
28259
|
//#endregion
|
|
28254
28260
|
//#region src/components/Tooltip/TooltipActivator.vue
|
|
28255
|
-
const _sfc_main$178 =
|
|
28261
|
+
const _sfc_main$178 = /*@__PURE__*/ defineComponent({
|
|
28256
28262
|
name: "TooltipActivator",
|
|
28257
28263
|
inheritAttrs: false,
|
|
28258
28264
|
__name: "TooltipActivator",
|
|
@@ -28327,7 +28333,7 @@ const _sfc_main$178 = /* @__PURE__ */ defineComponent({
|
|
|
28327
28333
|
});
|
|
28328
28334
|
//#endregion
|
|
28329
28335
|
//#region src/components/Tooltip/TooltipContent.vue
|
|
28330
|
-
const _sfc_main$179 =
|
|
28336
|
+
const _sfc_main$179 = /*@__PURE__*/ defineComponent({
|
|
28331
28337
|
name: "TooltipContent",
|
|
28332
28338
|
inheritAttrs: false,
|
|
28333
28339
|
__name: "TooltipContent",
|
|
@@ -28558,7 +28564,7 @@ function createNested(_options = {}) {
|
|
|
28558
28564
|
}
|
|
28559
28565
|
if (revealOnOpen) {
|
|
28560
28566
|
let parentId = parents.get(id);
|
|
28561
|
-
const visited = new Set([id]);
|
|
28567
|
+
const visited = /* @__PURE__ */ new Set([id]);
|
|
28562
28568
|
while (!/* @__PURE__ */ isUndefined(parentId)) {
|
|
28563
28569
|
if (visited.has(parentId)) {
|
|
28564
28570
|
logger.warn(`Circular parent reference detected at "${parentId}".`);
|
|
@@ -28679,7 +28685,7 @@ function createNested(_options = {}) {
|
|
|
28679
28685
|
const initial = children.get(id);
|
|
28680
28686
|
if (!initial) return descendants;
|
|
28681
28687
|
const queue = initial.slice();
|
|
28682
|
-
const visited = new Set([id]);
|
|
28688
|
+
const visited = /* @__PURE__ */ new Set([id]);
|
|
28683
28689
|
let index = 0;
|
|
28684
28690
|
while (index < queue.length) {
|
|
28685
28691
|
const currentId = queue[index++];
|
|
@@ -28709,7 +28715,7 @@ function createNested(_options = {}) {
|
|
|
28709
28715
|
if (!group.has(ancestorId) || !group.has(descendantId)) return false;
|
|
28710
28716
|
if (ancestorId === descendantId) return false;
|
|
28711
28717
|
let currentId = parents.get(descendantId);
|
|
28712
|
-
const visited = new Set([descendantId]);
|
|
28718
|
+
const visited = /* @__PURE__ */ new Set([descendantId]);
|
|
28713
28719
|
while (!/* @__PURE__ */ isUndefined(currentId)) {
|
|
28714
28720
|
if (currentId === ancestorId) return true;
|
|
28715
28721
|
if (visited.has(currentId)) {
|
|
@@ -28777,7 +28783,7 @@ function createNested(_options = {}) {
|
|
|
28777
28783
|
function updateAncestors(id) {
|
|
28778
28784
|
const { selectedIds, mixedIds } = group;
|
|
28779
28785
|
let parentId = parents.get(id);
|
|
28780
|
-
const visited = new Set([id]);
|
|
28786
|
+
const visited = /* @__PURE__ */ new Set([id]);
|
|
28781
28787
|
while (!/* @__PURE__ */ isUndefined(parentId)) {
|
|
28782
28788
|
if (visited.has(parentId)) {
|
|
28783
28789
|
logger.warn(`Circular parent reference detected at "${parentId}".`);
|
|
@@ -28822,13 +28828,14 @@ function createNested(_options = {}) {
|
|
|
28822
28828
|
function select(ids) {
|
|
28823
28829
|
if (toValue(group.disabled)) return;
|
|
28824
28830
|
for (const id of /* @__PURE__ */ toArray(ids)) if (selectionMode === "independent") group.select(id);
|
|
28825
|
-
else if (selectionMode === "leaf")
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28829
|
-
|
|
28830
|
-
|
|
28831
|
-
|
|
28831
|
+
else if (selectionMode === "leaf") {
|
|
28832
|
+
if (isLeaf(id)) group.select(id);
|
|
28833
|
+
else {
|
|
28834
|
+
const item = group.get(id);
|
|
28835
|
+
if (!item || toValue(item.disabled)) continue;
|
|
28836
|
+
for (const lid of getLeafDescendants(id)) group.select(lid);
|
|
28837
|
+
}
|
|
28838
|
+
} else {
|
|
28832
28839
|
const item = group.get(id);
|
|
28833
28840
|
if (!item || toValue(item.disabled)) continue;
|
|
28834
28841
|
if (!toValue(multipleOption)) {
|
|
@@ -28859,7 +28866,7 @@ function createNested(_options = {}) {
|
|
|
28859
28866
|
if (!item || toValue(item.disabled)) continue;
|
|
28860
28867
|
const { selectedIds, mixedIds } = group;
|
|
28861
28868
|
if (toValue(mandatoryOption)) {
|
|
28862
|
-
const toRemove = new Set([id, ...getDescendants(id)]);
|
|
28869
|
+
const toRemove = /* @__PURE__ */ new Set([id, ...getDescendants(id)]);
|
|
28863
28870
|
if ([...selectedIds].every((sid) => toRemove.has(sid))) return;
|
|
28864
28871
|
}
|
|
28865
28872
|
mixedIds.delete(id);
|
|
@@ -28874,15 +28881,16 @@ function createNested(_options = {}) {
|
|
|
28874
28881
|
function toggle(ids) {
|
|
28875
28882
|
if (toValue(group.disabled)) return;
|
|
28876
28883
|
for (const id of /* @__PURE__ */ toArray(ids)) if (selectionMode === "independent") group.toggle(id);
|
|
28877
|
-
else if (selectionMode === "leaf")
|
|
28878
|
-
|
|
28879
|
-
|
|
28880
|
-
|
|
28881
|
-
|
|
28882
|
-
|
|
28883
|
-
|
|
28884
|
-
|
|
28885
|
-
|
|
28884
|
+
else if (selectionMode === "leaf") {
|
|
28885
|
+
if (isLeaf(id)) group.toggle(id);
|
|
28886
|
+
else {
|
|
28887
|
+
const item = group.get(id);
|
|
28888
|
+
if (!item || toValue(item.disabled)) continue;
|
|
28889
|
+
const leafIds = getLeafDescendants(id);
|
|
28890
|
+
if (leafIds.every((lid) => group.selected(lid))) removeLeaves(leafIds);
|
|
28891
|
+
else for (const lid of leafIds) group.select(lid);
|
|
28892
|
+
}
|
|
28893
|
+
} else if (group.selected(id) || group.mixed(id)) unselect(id);
|
|
28886
28894
|
else select(id);
|
|
28887
28895
|
}
|
|
28888
28896
|
function selectAll() {
|
|
@@ -28996,24 +29004,26 @@ function createNested(_options = {}) {
|
|
|
28996
29004
|
}
|
|
28997
29005
|
}
|
|
28998
29006
|
const list = children.get(id);
|
|
28999
|
-
if (list?.length)
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29010
|
-
|
|
29011
|
-
|
|
29012
|
-
|
|
29013
|
-
|
|
29014
|
-
|
|
29015
|
-
|
|
29016
|
-
|
|
29007
|
+
if (list?.length) {
|
|
29008
|
+
if (cascade) {
|
|
29009
|
+
const descendantIds = getDescendants(id);
|
|
29010
|
+
for (const did of descendantIds) {
|
|
29011
|
+
parents.delete(did);
|
|
29012
|
+
children.delete(did);
|
|
29013
|
+
openedIds.delete(did);
|
|
29014
|
+
activeIds.delete(did);
|
|
29015
|
+
rootIds.delete(did);
|
|
29016
|
+
}
|
|
29017
|
+
group.offboard(descendantIds);
|
|
29018
|
+
} else {
|
|
29019
|
+
for (const did of getDescendants(id)) {
|
|
29020
|
+
openedIds.delete(did);
|
|
29021
|
+
activeIds.delete(did);
|
|
29022
|
+
}
|
|
29023
|
+
for (const cid of list) {
|
|
29024
|
+
parents.set(cid, void 0);
|
|
29025
|
+
rootIds.add(cid);
|
|
29026
|
+
}
|
|
29017
29027
|
}
|
|
29018
29028
|
}
|
|
29019
29029
|
parents.delete(id);
|
|
@@ -29158,10 +29168,10 @@ function useNested(namespace = "v0:nested") {
|
|
|
29158
29168
|
//#endregion
|
|
29159
29169
|
//#region src/components/Treeview/TreeviewRoot.vue
|
|
29160
29170
|
const [useTreeviewRoot, provideTreeviewRoot] = createContext();
|
|
29161
|
-
const _sfc_main$189 =
|
|
29171
|
+
const _sfc_main$189 = /*@__PURE__*/ defineComponent({
|
|
29162
29172
|
name: "TreeviewRoot",
|
|
29163
29173
|
__name: "TreeviewRoot",
|
|
29164
|
-
props:
|
|
29174
|
+
props: /*@__PURE__*/ mergeModels({
|
|
29165
29175
|
namespace: { default: "v0:treeview" },
|
|
29166
29176
|
disabled: {
|
|
29167
29177
|
type: Boolean,
|
|
@@ -29194,7 +29204,7 @@ const _sfc_main$189 = /* @__PURE__ */ defineComponent({
|
|
|
29194
29204
|
"modelValue": {},
|
|
29195
29205
|
"modelModifiers": {}
|
|
29196
29206
|
}),
|
|
29197
|
-
emits:
|
|
29207
|
+
emits: /*@__PURE__*/ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
29198
29208
|
setup(__props) {
|
|
29199
29209
|
const model = useModel(__props, "modelValue");
|
|
29200
29210
|
const nested = createNested({
|
|
@@ -29303,7 +29313,7 @@ function useRovingFocus(items, options = {}) {
|
|
|
29303
29313
|
//#region src/components/Treeview/TreeviewList.vue
|
|
29304
29314
|
const FOCUSABLE = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]";
|
|
29305
29315
|
const [useTreeviewList, provideTreeviewList] = createContext({ suffix: "list" });
|
|
29306
|
-
const _sfc_main$188 =
|
|
29316
|
+
const _sfc_main$188 = /*@__PURE__*/ defineComponent({
|
|
29307
29317
|
name: "TreeviewList",
|
|
29308
29318
|
__name: "TreeviewList",
|
|
29309
29319
|
props: {
|
|
@@ -29436,7 +29446,6 @@ const _sfc_main$188 = /* @__PURE__ */ defineComponent({
|
|
|
29436
29446
|
const sibs = nested.siblings(ticket.id);
|
|
29437
29447
|
for (const sibId of sibs) if (expandable(nested.get(sibId))) nested.open(sibId);
|
|
29438
29448
|
}
|
|
29439
|
-
break;
|
|
29440
29449
|
}
|
|
29441
29450
|
}
|
|
29442
29451
|
const slotProps = toRef(() => ({ attrs: {
|
|
@@ -29461,7 +29470,7 @@ const _sfc_main$188 = /* @__PURE__ */ defineComponent({
|
|
|
29461
29470
|
//#endregion
|
|
29462
29471
|
//#region src/components/Treeview/TreeviewItem.vue
|
|
29463
29472
|
const [useTreeviewItem, provideTreeviewItem] = createContext({ suffix: "item" });
|
|
29464
|
-
const _sfc_main$187 =
|
|
29473
|
+
const _sfc_main$187 = /*@__PURE__*/ defineComponent({
|
|
29465
29474
|
name: "TreeviewItem",
|
|
29466
29475
|
__name: "TreeviewItem",
|
|
29467
29476
|
props: {
|
|
@@ -29541,7 +29550,7 @@ const _sfc_main$187 = /* @__PURE__ */ defineComponent({
|
|
|
29541
29550
|
});
|
|
29542
29551
|
//#endregion
|
|
29543
29552
|
//#region src/components/Treeview/TreeviewActivator.vue
|
|
29544
|
-
const _sfc_main$181 =
|
|
29553
|
+
const _sfc_main$181 = /*@__PURE__*/ defineComponent({
|
|
29545
29554
|
name: "TreeviewActivator",
|
|
29546
29555
|
__name: "TreeviewActivator",
|
|
29547
29556
|
props: {
|
|
@@ -29580,7 +29589,7 @@ const _sfc_main$181 = /* @__PURE__ */ defineComponent({
|
|
|
29580
29589
|
});
|
|
29581
29590
|
//#endregion
|
|
29582
29591
|
//#region src/components/Treeview/TreeviewCheckbox.vue
|
|
29583
|
-
const _sfc_main$182 =
|
|
29592
|
+
const _sfc_main$182 = /*@__PURE__*/ defineComponent({
|
|
29584
29593
|
name: "TreeviewCheckbox",
|
|
29585
29594
|
__name: "TreeviewCheckbox",
|
|
29586
29595
|
props: {
|
|
@@ -29621,7 +29630,7 @@ const _sfc_main$182 = /* @__PURE__ */ defineComponent({
|
|
|
29621
29630
|
});
|
|
29622
29631
|
//#endregion
|
|
29623
29632
|
//#region src/components/Treeview/TreeviewContent.vue
|
|
29624
|
-
const _sfc_main$183 =
|
|
29633
|
+
const _sfc_main$183 = /*@__PURE__*/ defineComponent({
|
|
29625
29634
|
name: "TreeviewContent",
|
|
29626
29635
|
__name: "TreeviewContent",
|
|
29627
29636
|
props: { namespace: { default: "v0:treeview" } },
|
|
@@ -29638,16 +29647,13 @@ const _sfc_main$183 = /* @__PURE__ */ defineComponent({
|
|
|
29638
29647
|
item.hasContent.value = false;
|
|
29639
29648
|
});
|
|
29640
29649
|
return (_ctx, _cache) => {
|
|
29641
|
-
return toValue(unref(item).ticket.isOpen) ? renderSlot(_ctx.$slots, "default", {
|
|
29642
|
-
key: 0,
|
|
29643
|
-
isOpen: toValue(unref(item).ticket.isOpen)
|
|
29644
|
-
}) : createCommentVNode("v-if", true);
|
|
29650
|
+
return toValue(unref(item).ticket.isOpen) ? renderSlot(_ctx.$slots, "default", { isOpen: toValue(unref(item).ticket.isOpen) }, void 0, void 0, 0) : createCommentVNode("v-if", true);
|
|
29645
29651
|
};
|
|
29646
29652
|
}
|
|
29647
29653
|
});
|
|
29648
29654
|
//#endregion
|
|
29649
29655
|
//#region src/components/Treeview/TreeviewCue.vue
|
|
29650
|
-
const _sfc_main$184 =
|
|
29656
|
+
const _sfc_main$184 = /*@__PURE__*/ defineComponent({
|
|
29651
29657
|
name: "TreeviewCue",
|
|
29652
29658
|
__name: "TreeviewCue",
|
|
29653
29659
|
props: {
|
|
@@ -29681,7 +29687,7 @@ const _sfc_main$184 = /* @__PURE__ */ defineComponent({
|
|
|
29681
29687
|
});
|
|
29682
29688
|
//#endregion
|
|
29683
29689
|
//#region src/components/Treeview/TreeviewGroup.vue
|
|
29684
|
-
const _sfc_main$185 =
|
|
29690
|
+
const _sfc_main$185 = /*@__PURE__*/ defineComponent({
|
|
29685
29691
|
name: "TreeviewGroup",
|
|
29686
29692
|
__name: "TreeviewGroup",
|
|
29687
29693
|
props: {
|
|
@@ -29703,7 +29709,7 @@ const _sfc_main$185 = /* @__PURE__ */ defineComponent({
|
|
|
29703
29709
|
});
|
|
29704
29710
|
//#endregion
|
|
29705
29711
|
//#region src/components/Treeview/TreeviewIndicator.vue
|
|
29706
|
-
const _sfc_main$186 =
|
|
29712
|
+
const _sfc_main$186 = /*@__PURE__*/ defineComponent({
|
|
29707
29713
|
name: "TreeviewIndicator",
|
|
29708
29714
|
__name: "TreeviewIndicator",
|
|
29709
29715
|
props: {
|
|
@@ -29739,7 +29745,7 @@ const _sfc_main$186 = /* @__PURE__ */ defineComponent({
|
|
|
29739
29745
|
});
|
|
29740
29746
|
//#endregion
|
|
29741
29747
|
//#region src/components/Treeview/TreeviewSelectAll.vue
|
|
29742
|
-
const _sfc_main$190 =
|
|
29748
|
+
const _sfc_main$190 = /*@__PURE__*/ defineComponent({
|
|
29743
29749
|
name: "TreeviewSelectAll",
|
|
29744
29750
|
__name: "TreeviewSelectAll",
|
|
29745
29751
|
props: {
|
|
@@ -31019,7 +31025,7 @@ function find(text, query, options) {
|
|
|
31019
31025
|
* // [{ text: 'Hello ', match: false }, { text: 'World', match: true }]
|
|
31020
31026
|
* ```
|
|
31021
31027
|
*/
|
|
31022
|
-
/*
|
|
31028
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
31023
31029
|
function toHighlight(text, query, options = {}) {
|
|
31024
31030
|
const _text = toValue(text);
|
|
31025
31031
|
const _query = toValue(query);
|
|
@@ -31148,7 +31154,7 @@ function createSetProxy(refObject) {
|
|
|
31148
31154
|
return reactive(setProxy);
|
|
31149
31155
|
}
|
|
31150
31156
|
function createObjectProxy(refObject) {
|
|
31151
|
-
|
|
31157
|
+
const proxy = new Proxy({}, {
|
|
31152
31158
|
get(_, p, receiver) {
|
|
31153
31159
|
return unref(Reflect.get(refObject.value, p, receiver));
|
|
31154
31160
|
},
|
|
@@ -31180,7 +31186,8 @@ function createObjectProxy(refObject) {
|
|
|
31180
31186
|
}
|
|
31181
31187
|
return newDesc;
|
|
31182
31188
|
}
|
|
31183
|
-
})
|
|
31189
|
+
});
|
|
31190
|
+
return reactive(proxy);
|
|
31184
31191
|
}
|
|
31185
31192
|
/**
|
|
31186
31193
|
* Converts a `MaybeRef` to a `UnwrapNestedRefs`.
|
|
@@ -31482,7 +31489,7 @@ function deriveMinimalDays(region) {
|
|
|
31482
31489
|
* @param locale An Intl locale string (e.g. 'de-DE', 'en', 'ar-EG', 'en-u-fw-mon').
|
|
31483
31490
|
* @returns firstDay in v0's 0=Sun...6=Sat convention, plus minimalDays.
|
|
31484
31491
|
*/
|
|
31485
|
-
/*
|
|
31492
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
31486
31493
|
function deriveWeekInfo(locale) {
|
|
31487
31494
|
const region = deriveRegion(locale);
|
|
31488
31495
|
return {
|
|
@@ -31595,13 +31602,15 @@ function createDate(options) {
|
|
|
31595
31602
|
const loc = locale.value;
|
|
31596
31603
|
return loc ? (/* @__PURE__ */ deriveWeekInfo(loc)).firstDay : 0;
|
|
31597
31604
|
});
|
|
31598
|
-
if (hasInjectionContext())
|
|
31599
|
-
const
|
|
31600
|
-
|
|
31601
|
-
|
|
31602
|
-
|
|
31603
|
-
|
|
31604
|
-
|
|
31605
|
+
if (hasInjectionContext()) {
|
|
31606
|
+
const stop = watchEffect(() => {
|
|
31607
|
+
const loc = locale.value;
|
|
31608
|
+
if (loc && adapter.locale !== loc) adapter.locale = loc;
|
|
31609
|
+
const fdow = firstDayOfWeek.value;
|
|
31610
|
+
if (adapter.firstDayOfWeek !== fdow) adapter.firstDayOfWeek = fdow;
|
|
31611
|
+
});
|
|
31612
|
+
onScopeDispose(stop, true);
|
|
31613
|
+
} else {
|
|
31605
31614
|
const loc = locale.value;
|
|
31606
31615
|
if (loc && adapter.locale !== loc) adapter.locale = loc;
|
|
31607
31616
|
const fdow = firstDayOfWeek.value;
|
|
@@ -32075,12 +32084,10 @@ var KeyboardAdapter = class extends DragDropAdapter {
|
|
|
32075
32084
|
y: current.y
|
|
32076
32085
|
};
|
|
32077
32086
|
break;
|
|
32078
|
-
case "ArrowRight":
|
|
32079
|
-
|
|
32080
|
-
|
|
32081
|
-
|
|
32082
|
-
};
|
|
32083
|
-
break;
|
|
32087
|
+
case "ArrowRight": point = {
|
|
32088
|
+
x: current.x + this.step,
|
|
32089
|
+
y: current.y
|
|
32090
|
+
};
|
|
32084
32091
|
}
|
|
32085
32092
|
if (point) {
|
|
32086
32093
|
event.preventDefault();
|
|
@@ -32111,6 +32118,9 @@ var KeyboardAdapter = class extends DragDropAdapter {
|
|
|
32111
32118
|
* const dnd = useDragDrop()
|
|
32112
32119
|
* ```
|
|
32113
32120
|
*/
|
|
32121
|
+
function toSource(source) {
|
|
32122
|
+
return toValue(source);
|
|
32123
|
+
}
|
|
32114
32124
|
/**
|
|
32115
32125
|
* Pure math for resolving where in an oriented zone a pointer would drop.
|
|
32116
32126
|
* Internal — consumers rely on the `position.index` / `position.indicator`
|
|
@@ -32205,7 +32215,7 @@ function useDragDrop(options = {}) {
|
|
|
32205
32215
|
..._draggables,
|
|
32206
32216
|
register(registration) {
|
|
32207
32217
|
const id = registration.id ?? /* @__PURE__ */ useId();
|
|
32208
|
-
const el = toRef(() =>
|
|
32218
|
+
const el = toRef(() => toSource(registration.el));
|
|
32209
32219
|
const dragging = toRef(() => active.value?.id === id);
|
|
32210
32220
|
const input = {
|
|
32211
32221
|
...registration,
|
|
@@ -32221,7 +32231,7 @@ function useDragDrop(options = {}) {
|
|
|
32221
32231
|
register(registration) {
|
|
32222
32232
|
const id = registration.id ?? /* @__PURE__ */ useId();
|
|
32223
32233
|
if (_zones.has(id)) return _zones.register(registration);
|
|
32224
|
-
const el = toRef(() =>
|
|
32234
|
+
const el = toRef(() => toSource(registration.el));
|
|
32225
32235
|
const isOver = toRef(() => active.value?.over === id);
|
|
32226
32236
|
const willAccept = toRef(() => safeAccept(registration.accept, active.value));
|
|
32227
32237
|
const rects = shallowRef([]);
|
|
@@ -32721,7 +32731,7 @@ const keyAliasMap = {
|
|
|
32721
32731
|
minus: "-",
|
|
32722
32732
|
hyphen: "-"
|
|
32723
32733
|
};
|
|
32724
|
-
/*
|
|
32734
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
32725
32735
|
function normalizeKey(key) {
|
|
32726
32736
|
const lowerKey = key.toLowerCase();
|
|
32727
32737
|
return keyAliasMap[lowerKey] ?? lowerKey;
|
|
@@ -32785,19 +32795,19 @@ function splitKeyCombination(combination, isInternal = false) {
|
|
|
32785
32795
|
"/",
|
|
32786
32796
|
"_",
|
|
32787
32797
|
"-"
|
|
32788
|
-
].includes(char))
|
|
32789
|
-
|
|
32790
|
-
|
|
32791
|
-
|
|
32792
|
-
|
|
32793
|
-
|
|
32794
|
-
|
|
32795
|
-
|
|
32796
|
-
|
|
32797
|
-
|
|
32798
|
-
|
|
32799
|
-
|
|
32800
|
-
else buffer += char;
|
|
32798
|
+
].includes(char)) {
|
|
32799
|
+
/* v8 ignore start -- edge case: doubled special chars */
|
|
32800
|
+
if (char === nextChar) {
|
|
32801
|
+
flushBuffer(char);
|
|
32802
|
+
keys.push(char);
|
|
32803
|
+
i++;
|
|
32804
|
+
} else if ([
|
|
32805
|
+
"+",
|
|
32806
|
+
"/",
|
|
32807
|
+
"_"
|
|
32808
|
+
].includes(char)) flushBuffer(char);
|
|
32809
|
+
else buffer += char;
|
|
32810
|
+
} else buffer += char;
|
|
32801
32811
|
}
|
|
32802
32812
|
flushBuffer();
|
|
32803
32813
|
/* v8 ignore start -- edge case: invalid minus in combination */
|
|
@@ -33606,7 +33616,8 @@ function createStorage(options = {}) {
|
|
|
33606
33616
|
function get(key, defaultValue) {
|
|
33607
33617
|
const prefixedKey = `${prefix}${key}`;
|
|
33608
33618
|
if (cache.has(prefixedKey)) return cache.get(prefixedKey);
|
|
33609
|
-
const
|
|
33619
|
+
const initialValue = readStored(prefixedKey) ?? (/* @__PURE__ */ isObject(defaultValue) || /* @__PURE__ */ isArray(defaultValue) ? structuredClone(defaultValue) : defaultValue);
|
|
33620
|
+
const valueRef = ref(initialValue);
|
|
33610
33621
|
const stop = watch(valueRef, (newValue) => {
|
|
33611
33622
|
if (/* @__PURE__ */ isNullOrUndefined(newValue)) adapter?.removeItem(prefixedKey);
|
|
33612
33623
|
else writeStored(prefixedKey, newValue);
|