@vuetify/v0 0.1.10 → 0.1.12
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/dist/{adapter-CqP9Z4JU.d.mts → adapter-BWMm0JAQ.d.mts} +7 -7
- package/dist/{adapter-B4zE-hA5.mjs → adapter-DXRKF27V.mjs} +7 -4
- package/dist/{adapter-hDuQ9aNN.d.mts → adapter-DvT8lTup.d.mts} +3 -3
- package/dist/browser/index.js +1277 -232
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +24 -24
- package/dist/{components-TiigKVsl.mjs → components-CrZmJSH3.mjs} +1148 -346
- package/dist/composables/index.d.mts +7 -7
- package/dist/composables/index.mjs +22 -22
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-DoqbfLt0.mjs → createDataTable-DKCm5-7f.mjs} +3 -3
- package/dist/{createGroup-DpbGTwFy.mjs → createGroup-CFMocwej.mjs} +1 -1
- package/dist/{createPagination-DZSJ8aO5.mjs → createPagination-CeGMgKCx.mjs} +10 -1
- package/dist/{createSelection-B6bQNyuF.mjs → createSelection-Cl1nX0he.mjs} +1 -1
- package/dist/{createSingle-fWHREEJO.mjs → createSingle-BxOPkL3l.mjs} +1 -1
- package/dist/{createTokens-N8QIWw_D.mjs → createTokens-C67MMcZJ.mjs} +2 -3
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +4 -4
- package/dist/data-table/adapters/index.d.mts +4 -4
- package/dist/data-table/adapters/index.mjs +6 -6
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +3 -3
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +4 -4
- package/dist/data-table/index.d.mts +5 -5
- package/dist/data-table/index.mjs +15 -15
- package/dist/date/index.d.mts +9 -6
- package/dist/date/index.mjs +44 -21
- package/dist/features/adapters/launchdarkly/index.mjs +1 -1
- package/dist/features/adapters/posthog/index.mjs +2 -2
- package/dist/features/index.d.mts +1 -1
- package/dist/features/index.mjs +8 -8
- package/dist/{globals-F7fiJVG1.mjs → globals-uLTsqsl2.mjs} +1 -1
- package/dist/{index-DXdQb5BV.d.mts → index-BN-lmMJM.d.mts} +1377 -358
- package/dist/{index-Cv1XUHyA.d.mts → index-B_pScNDG.d.mts} +20 -1
- package/dist/{index-Dfa5Wb4T.d.mts → index-CBER-Sxt.d.mts} +33 -6
- package/dist/{index-CLDBngUs.d.mts → index-CdUIc68E.d.mts} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +25 -25
- package/dist/json/attributes.json +193 -1
- package/dist/json/importMap.json +52 -0
- package/dist/json/tags.json +108 -0
- package/dist/json/web-types.json +627 -3
- package/dist/{launchdarkly-jF2KZGoH.mjs → launchdarkly-DEqUn7qm.mjs} +7 -5
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.mjs +2 -2
- package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +1 -1
- package/dist/locale/index.mjs +8 -8
- package/dist/logger/adapters/index.mjs +2 -2
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.mjs +2 -2
- package/dist/logger/index.d.mts +1 -1
- package/dist/logger/index.mjs +3 -3
- package/dist/notifications/index.d.mts +1 -1
- package/dist/notifications/index.mjs +1 -1
- package/dist/palettes/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +2 -2
- 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 +5 -5
- package/dist/posthog-DSkHSLCw.mjs +45 -0
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +9 -9
- package/dist/{server-Ct-h4-OA.d.mts → server-CSLVeyyI.d.mts} +1 -1
- package/dist/{server-DHET3KNW.mjs → server-CYYGvVps.mjs} +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.mjs +22 -22
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +2 -2
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +2 -2
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +8 -8
- package/dist/{useClickOutside-DNuJQ9EG.mjs → useClickOutside-hbi0BOL-.mjs} +143 -25
- package/dist/{useFeatures-CWNXTIXk.mjs → useFeatures-DNQ8V1So.mjs} +3 -3
- package/dist/{useLocale-Dzl6lCCF.mjs → useLocale-BpjMU7hm.mjs} +4 -4
- package/dist/{useLogger-Bw836Jbg.mjs → useLogger-jmvgVE6N.mjs} +3 -3
- package/dist/{usePermissions-DrRVDeVy.mjs → usePermissions-TIV4dGj1.mjs} +2 -2
- package/dist/{useRules-TMGuA8al.mjs → useRules-sRYyyrvM.mjs} +2 -2
- package/dist/{useTheme-qMpg3Ti6.mjs → useTheme-vAXldHit.mjs} +14 -7
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +125 -21
- package/dist/{v0-BBRwZ3at.d.mts → v0-B6ILFiMN.d.mts} +1 -1
- package/dist/{v0-CMeh39LQ.d.mts → v0-CQ2qHo5-.d.mts} +1 -1
- package/dist/{v0-BoWQ8RK0.mjs → v0-D87sooe0.mjs} +2 -2
- package/dist/{v0-BsuBuBSa.mjs → v0-Dem6wjKF.mjs} +1 -1
- package/dist/{v0-DgaVf3xM.mjs → v0-JMByI2xs.mjs} +1 -1
- package/dist/{v0-CIEQpOK2.mjs → v0-vIA3663g.mjs} +8 -3
- package/dist/{virtual-D0_D5gkh.mjs → virtual-D75KhU6Q.mjs} +2 -2
- package/dist/{virtual-B1lRbO7Q.d.mts → virtual-Dg0Cm5Hn.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/posthog-CdcdfMYS.mjs +0 -48
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { r as isSelfClosingTag } from "./htmlElements-DcYtv0hg.mjs";
|
|
2
|
-
import { t as IN_BROWSER } from "./globals-
|
|
2
|
+
import { t as IN_BROWSER } from "./globals-uLTsqsl2.mjs";
|
|
3
3
|
import { clamp, isArray, isElement, isNull, isNullOrUndefined, isObject, isString, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
4
4
|
import { n as createContext, r as provideContext } from "./createTrinity-C_c8eedz.mjs";
|
|
5
|
-
import { a as createRegistry } from "./createTokens-
|
|
6
|
-
import { t as createSelection } from "./createSelection-
|
|
7
|
-
import { t as createSingle } from "./createSingle-
|
|
8
|
-
import { Dt as createBreadcrumbs, N as useRaf, P as usePopover, Q as useLazy, R as useNotifications, T as createSlider, a as useVirtualFocus, gt as createOverflow, ht as useProxyModel, l as useToggleScope, mt as useTimer, n as useDocumentEventListener, nt as createForm, t as useClickOutside, u as createValidation, v as createStep, w as useStack } from "./useClickOutside-
|
|
9
|
-
import { t as createGroup } from "./createGroup-
|
|
5
|
+
import { a as createRegistry } from "./createTokens-C67MMcZJ.mjs";
|
|
6
|
+
import { t as createSelection } from "./createSelection-Cl1nX0he.mjs";
|
|
7
|
+
import { t as createSingle } from "./createSingle-BxOPkL3l.mjs";
|
|
8
|
+
import { Dt as createBreadcrumbs, H as createNested, M as useRovingFocus, N as useRaf, P as usePopover, Q as useLazy, R as useNotifications, T as createSlider, a as useVirtualFocus, bt as useResizeObserver, gt as createOverflow, ht as useProxyModel, l as useToggleScope, mt as useTimer, n as useDocumentEventListener, nt as createForm, t as useClickOutside, u as createValidation, v as createStep, w as useStack } from "./useClickOutside-hbi0BOL-.mjs";
|
|
9
|
+
import { t as createGroup } from "./createGroup-CFMocwej.mjs";
|
|
10
10
|
import { t as toArray } from "./toArray-VdROPpy-.mjs";
|
|
11
|
-
import { a as useLocale } from "./useLocale-
|
|
12
|
-
import { t as createPagination } from "./createPagination-
|
|
13
|
-
import {
|
|
11
|
+
import { a as useLocale } from "./useLocale-BpjMU7hm.mjs";
|
|
12
|
+
import { t as createPagination } from "./createPagination-CeGMgKCx.mjs";
|
|
13
|
+
import { i as useTheme } from "./useTheme-vAXldHit.mjs";
|
|
14
|
+
import { Fragment, Teleport, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onDeactivated, onMounted, onScopeDispose, onUnmounted, openBlock, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, watchEffect, withCtx, withDirectives } from "vue";
|
|
14
15
|
//#region src/components/Atom/Atom.vue
|
|
15
16
|
/**
|
|
16
17
|
* @module Atom
|
|
@@ -33,7 +34,7 @@ import { Fragment, Teleport, TransitionGroup, computed, createBlock, createComme
|
|
|
33
34
|
* serving as the foundation for all other components that need polymorphic
|
|
34
35
|
* rendering capabilities.
|
|
35
36
|
*/
|
|
36
|
-
const _sfc_main$
|
|
37
|
+
const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
37
38
|
name: "Atom",
|
|
38
39
|
__name: "Atom",
|
|
39
40
|
props: {
|
|
@@ -67,7 +68,7 @@ const _sfc_main$92 = /* @__PURE__ */ defineComponent({
|
|
|
67
68
|
//#endregion
|
|
68
69
|
//#region src/components/Avatar/AvatarRoot.vue
|
|
69
70
|
const [useAvatarRoot, provideAvatarRoot] = createContext();
|
|
70
|
-
const _sfc_main$
|
|
71
|
+
const _sfc_main$103 = /* @__PURE__ */ defineComponent({
|
|
71
72
|
name: "AvatarRoot",
|
|
72
73
|
__name: "AvatarRoot",
|
|
73
74
|
props: {
|
|
@@ -82,7 +83,7 @@ const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
|
82
83
|
});
|
|
83
84
|
provideAvatarRoot(__props.namespace, selection);
|
|
84
85
|
return (_ctx, _cache) => {
|
|
85
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
86
|
+
return openBlock(), createBlock(unref(_sfc_main$104), {
|
|
86
87
|
as: __props.as,
|
|
87
88
|
renderless: __props.renderless
|
|
88
89
|
}, {
|
|
@@ -94,7 +95,7 @@ const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
|
94
95
|
});
|
|
95
96
|
//#endregion
|
|
96
97
|
//#region src/components/Avatar/AvatarFallback.vue
|
|
97
|
-
const _sfc_main$
|
|
98
|
+
const _sfc_main$102 = /* @__PURE__ */ defineComponent({
|
|
98
99
|
name: "AvatarFallback",
|
|
99
100
|
__name: "AvatarFallback",
|
|
100
101
|
props: {
|
|
@@ -108,7 +109,7 @@ const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
|
108
109
|
const slotProps = toRef(() => ({ isSelected: ticket.isSelected.value }));
|
|
109
110
|
onUnmounted(() => context.unregister(ticket.id));
|
|
110
111
|
return (_ctx, _cache) => {
|
|
111
|
-
return unref(ticket).isSelected.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
112
|
+
return unref(ticket).isSelected.value ? (openBlock(), createBlock(unref(_sfc_main$104), {
|
|
112
113
|
key: 0,
|
|
113
114
|
as: __props.as,
|
|
114
115
|
renderless: __props.renderless
|
|
@@ -121,7 +122,7 @@ const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
|
121
122
|
});
|
|
122
123
|
//#endregion
|
|
123
124
|
//#region src/components/Avatar/AvatarImage.vue
|
|
124
|
-
const _sfc_main$
|
|
125
|
+
const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
125
126
|
name: "AvatarImage",
|
|
126
127
|
inheritAttrs: false,
|
|
127
128
|
__name: "AvatarImage",
|
|
@@ -134,12 +135,6 @@ const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
|
134
135
|
},
|
|
135
136
|
emits: ["load", "error"],
|
|
136
137
|
setup(__props, { emit: __emit }) {
|
|
137
|
-
const props = createPropsRestProxy(__props, [
|
|
138
|
-
"as",
|
|
139
|
-
"renderless",
|
|
140
|
-
"priority",
|
|
141
|
-
"namespace"
|
|
142
|
-
]);
|
|
143
138
|
const emit = __emit;
|
|
144
139
|
const context = useAvatarRoot(__props.namespace);
|
|
145
140
|
const ticket = context.register({
|
|
@@ -165,13 +160,13 @@ const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
|
165
160
|
isSelected: ticket.isSelected.value,
|
|
166
161
|
attrs: {
|
|
167
162
|
role: "img",
|
|
163
|
+
src: __props.src,
|
|
168
164
|
onLoad,
|
|
169
|
-
onError
|
|
170
|
-
...props
|
|
165
|
+
onError
|
|
171
166
|
}
|
|
172
167
|
}));
|
|
173
168
|
return (_ctx, _cache) => {
|
|
174
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
169
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
175
170
|
as: __props.as,
|
|
176
171
|
renderless: __props.renderless
|
|
177
172
|
}), {
|
|
@@ -189,14 +184,14 @@ const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
|
189
184
|
* @see https://0.vuetifyjs.com/components/avatar
|
|
190
185
|
*/
|
|
191
186
|
const Avatar = {
|
|
192
|
-
Root: _sfc_main$
|
|
193
|
-
Image: _sfc_main$
|
|
194
|
-
Fallback: _sfc_main$
|
|
187
|
+
Root: _sfc_main$103,
|
|
188
|
+
Image: _sfc_main$101,
|
|
189
|
+
Fallback: _sfc_main$102
|
|
195
190
|
};
|
|
196
191
|
//#endregion
|
|
197
192
|
//#region src/components/Breadcrumbs/BreadcrumbsRoot.vue
|
|
198
193
|
const [useBreadcrumbsRoot, provideBreadcrumbsRoot] = createContext();
|
|
199
|
-
const _sfc_main$
|
|
194
|
+
const _sfc_main$100 = /* @__PURE__ */ defineComponent({
|
|
200
195
|
name: "BreadcrumbsRoot",
|
|
201
196
|
__name: "BreadcrumbsRoot",
|
|
202
197
|
props: {
|
|
@@ -324,7 +319,7 @@ const _sfc_main$88 = /* @__PURE__ */ defineComponent({
|
|
|
324
319
|
}
|
|
325
320
|
}));
|
|
326
321
|
return (_ctx, _cache) => {
|
|
327
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
322
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
328
323
|
ref: "container",
|
|
329
324
|
as: __props.as,
|
|
330
325
|
renderless: __props.renderless
|
|
@@ -337,7 +332,7 @@ const _sfc_main$88 = /* @__PURE__ */ defineComponent({
|
|
|
337
332
|
});
|
|
338
333
|
//#endregion
|
|
339
334
|
//#region src/components/Breadcrumbs/BreadcrumbsDivider.vue
|
|
340
|
-
const _sfc_main$
|
|
335
|
+
const _sfc_main$99 = /* @__PURE__ */ defineComponent({
|
|
341
336
|
name: "BreadcrumbsDivider",
|
|
342
337
|
__name: "BreadcrumbsDivider",
|
|
343
338
|
props: {
|
|
@@ -373,7 +368,7 @@ const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
|
373
368
|
}
|
|
374
369
|
}));
|
|
375
370
|
return (_ctx, _cache) => {
|
|
376
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
371
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
377
372
|
ref: "el",
|
|
378
373
|
as: __props.as,
|
|
379
374
|
renderless: __props.renderless
|
|
@@ -386,7 +381,7 @@ const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
|
386
381
|
});
|
|
387
382
|
//#endregion
|
|
388
383
|
//#region src/components/Breadcrumbs/BreadcrumbsEllipsis.vue
|
|
389
|
-
const _sfc_main$
|
|
384
|
+
const _sfc_main$98 = /* @__PURE__ */ defineComponent({
|
|
390
385
|
name: "BreadcrumbsEllipsis",
|
|
391
386
|
__name: "BreadcrumbsEllipsis",
|
|
392
387
|
props: {
|
|
@@ -429,7 +424,7 @@ const _sfc_main$86 = /* @__PURE__ */ defineComponent({
|
|
|
429
424
|
}
|
|
430
425
|
}));
|
|
431
426
|
return (_ctx, _cache) => {
|
|
432
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
427
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
433
428
|
ref: "el",
|
|
434
429
|
as: __props.as,
|
|
435
430
|
renderless: __props.renderless
|
|
@@ -442,7 +437,7 @@ const _sfc_main$86 = /* @__PURE__ */ defineComponent({
|
|
|
442
437
|
});
|
|
443
438
|
//#endregion
|
|
444
439
|
//#region src/components/Breadcrumbs/BreadcrumbsItem.vue
|
|
445
|
-
const _sfc_main$
|
|
440
|
+
const _sfc_main$97 = /* @__PURE__ */ defineComponent({
|
|
446
441
|
name: "BreadcrumbsItem",
|
|
447
442
|
__name: "BreadcrumbsItem",
|
|
448
443
|
props: {
|
|
@@ -481,7 +476,7 @@ const _sfc_main$85 = /* @__PURE__ */ defineComponent({
|
|
|
481
476
|
attrs: { "data-selected": isSelected.value || void 0 }
|
|
482
477
|
}));
|
|
483
478
|
return (_ctx, _cache) => {
|
|
484
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
479
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
485
480
|
ref: "el",
|
|
486
481
|
as: __props.as,
|
|
487
482
|
renderless: __props.renderless
|
|
@@ -494,7 +489,7 @@ const _sfc_main$85 = /* @__PURE__ */ defineComponent({
|
|
|
494
489
|
});
|
|
495
490
|
//#endregion
|
|
496
491
|
//#region src/components/Breadcrumbs/BreadcrumbsLink.vue
|
|
497
|
-
const _sfc_main$
|
|
492
|
+
const _sfc_main$96 = /* @__PURE__ */ defineComponent({
|
|
498
493
|
name: "BreadcrumbsLink",
|
|
499
494
|
__name: "BreadcrumbsLink",
|
|
500
495
|
props: {
|
|
@@ -503,7 +498,7 @@ const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
|
503
498
|
},
|
|
504
499
|
setup(__props) {
|
|
505
500
|
return (_ctx, _cache) => {
|
|
506
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
501
|
+
return openBlock(), createBlock(unref(_sfc_main$104), {
|
|
507
502
|
as: __props.as,
|
|
508
503
|
renderless: __props.renderless
|
|
509
504
|
}, {
|
|
@@ -515,7 +510,7 @@ const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
|
515
510
|
});
|
|
516
511
|
//#endregion
|
|
517
512
|
//#region src/components/Breadcrumbs/BreadcrumbsList.vue
|
|
518
|
-
const _sfc_main$
|
|
513
|
+
const _sfc_main$95 = /* @__PURE__ */ defineComponent({
|
|
519
514
|
name: "BreadcrumbsList",
|
|
520
515
|
__name: "BreadcrumbsList",
|
|
521
516
|
props: {
|
|
@@ -525,7 +520,7 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
525
520
|
setup(__props) {
|
|
526
521
|
const slotProps = toRef(() => ({ attrs: { role: "list" } }));
|
|
527
522
|
return (_ctx, _cache) => {
|
|
528
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
523
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
529
524
|
as: __props.as,
|
|
530
525
|
renderless: __props.renderless
|
|
531
526
|
}, slotProps.value.attrs), {
|
|
@@ -537,7 +532,7 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
537
532
|
});
|
|
538
533
|
//#endregion
|
|
539
534
|
//#region src/components/Breadcrumbs/BreadcrumbsPage.vue
|
|
540
|
-
const _sfc_main$
|
|
535
|
+
const _sfc_main$94 = /* @__PURE__ */ defineComponent({
|
|
541
536
|
name: "BreadcrumbsPage",
|
|
542
537
|
__name: "BreadcrumbsPage",
|
|
543
538
|
props: {
|
|
@@ -547,7 +542,7 @@ const _sfc_main$82 = /* @__PURE__ */ defineComponent({
|
|
|
547
542
|
setup(__props) {
|
|
548
543
|
const slotProps = toRef(() => ({ attrs: { "aria-current": "page" } }));
|
|
549
544
|
return (_ctx, _cache) => {
|
|
550
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
545
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
551
546
|
as: __props.as,
|
|
552
547
|
renderless: __props.renderless
|
|
553
548
|
}, slotProps.value.attrs), {
|
|
@@ -565,18 +560,18 @@ const _sfc_main$82 = /* @__PURE__ */ defineComponent({
|
|
|
565
560
|
* @see https://0.vuetifyjs.com/components/breadcrumbs
|
|
566
561
|
*/
|
|
567
562
|
const Breadcrumbs = {
|
|
568
|
-
Root: _sfc_main$
|
|
569
|
-
List: _sfc_main$
|
|
570
|
-
Item: _sfc_main$
|
|
571
|
-
Link: _sfc_main$
|
|
572
|
-
Page: _sfc_main$
|
|
573
|
-
Divider: _sfc_main$
|
|
574
|
-
Ellipsis: _sfc_main$
|
|
563
|
+
Root: _sfc_main$100,
|
|
564
|
+
List: _sfc_main$95,
|
|
565
|
+
Item: _sfc_main$97,
|
|
566
|
+
Link: _sfc_main$96,
|
|
567
|
+
Page: _sfc_main$94,
|
|
568
|
+
Divider: _sfc_main$99,
|
|
569
|
+
Ellipsis: _sfc_main$98
|
|
575
570
|
};
|
|
576
571
|
//#endregion
|
|
577
572
|
//#region src/components/Button/ButtonGroup.vue
|
|
578
573
|
const [useButtonGroup, provideButtonGroup] = createContext();
|
|
579
|
-
const _sfc_main$
|
|
574
|
+
const _sfc_main$93 = /* @__PURE__ */ defineComponent({
|
|
580
575
|
name: "ButtonGroup",
|
|
581
576
|
__name: "ButtonGroup",
|
|
582
577
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -623,7 +618,7 @@ const _sfc_main$81 = /* @__PURE__ */ defineComponent({
|
|
|
623
618
|
}
|
|
624
619
|
}));
|
|
625
620
|
return (_ctx, _cache) => {
|
|
626
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
621
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
627
622
|
as: __props.as,
|
|
628
623
|
renderless: __props.renderless
|
|
629
624
|
}), {
|
|
@@ -653,7 +648,7 @@ const visuallyHiddenStyle$4 = {
|
|
|
653
648
|
whiteSpace: "nowrap",
|
|
654
649
|
border: "0"
|
|
655
650
|
};
|
|
656
|
-
const _sfc_main$
|
|
651
|
+
const _sfc_main$92 = /* @__PURE__ */ defineComponent({
|
|
657
652
|
name: "ButtonHiddenInput",
|
|
658
653
|
__name: "ButtonHiddenInput",
|
|
659
654
|
props: {
|
|
@@ -691,7 +686,7 @@ const _sfc_main$80 = /* @__PURE__ */ defineComponent({
|
|
|
691
686
|
//#endregion
|
|
692
687
|
//#region src/components/Button/ButtonRoot.vue
|
|
693
688
|
const [useButtonRoot, provideButtonRoot] = createContext();
|
|
694
|
-
const _sfc_main$
|
|
689
|
+
const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
695
690
|
name: "ButtonRoot",
|
|
696
691
|
inheritAttrs: false,
|
|
697
692
|
__name: "ButtonRoot",
|
|
@@ -786,7 +781,7 @@ const _sfc_main$79 = /* @__PURE__ */ defineComponent({
|
|
|
786
781
|
"data-disabled": isDisabled.value ? true : void 0,
|
|
787
782
|
"data-selected": group && isSelected.value ? true : void 0,
|
|
788
783
|
"data-solo": isSolo.value ? true : void 0,
|
|
789
|
-
"onClick": onClick
|
|
784
|
+
"onClick": ticket ? onClick : void 0
|
|
790
785
|
}));
|
|
791
786
|
const slotProps = toRef(() => ({
|
|
792
787
|
isLoading: isLoading.value,
|
|
@@ -797,22 +792,23 @@ const _sfc_main$79 = /* @__PURE__ */ defineComponent({
|
|
|
797
792
|
attrs: elementAttrs.value
|
|
798
793
|
}));
|
|
799
794
|
return (_ctx, _cache) => {
|
|
800
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
795
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$104), mergeProps({
|
|
801
796
|
...unref(attrs),
|
|
802
797
|
...slotProps.value.attrs
|
|
803
798
|
}, {
|
|
804
799
|
as: __props.as,
|
|
805
|
-
renderless: __props.renderless
|
|
800
|
+
renderless: __props.renderless,
|
|
801
|
+
onClick
|
|
806
802
|
}), {
|
|
807
803
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
808
804
|
_: 3
|
|
809
|
-
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
805
|
+
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$92, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
810
806
|
};
|
|
811
807
|
}
|
|
812
808
|
});
|
|
813
809
|
//#endregion
|
|
814
810
|
//#region src/components/Button/ButtonContent.vue
|
|
815
|
-
const _sfc_main$
|
|
811
|
+
const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
816
812
|
name: "ButtonContent",
|
|
817
813
|
__name: "ButtonContent",
|
|
818
814
|
props: {
|
|
@@ -830,7 +826,7 @@ const _sfc_main$78 = /* @__PURE__ */ defineComponent({
|
|
|
830
826
|
});
|
|
831
827
|
//#endregion
|
|
832
828
|
//#region src/components/Button/ButtonIcon.vue
|
|
833
|
-
const _sfc_main$
|
|
829
|
+
const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
834
830
|
name: "ButtonIcon",
|
|
835
831
|
__name: "ButtonIcon",
|
|
836
832
|
props: {
|
|
@@ -849,7 +845,7 @@ const _sfc_main$77 = /* @__PURE__ */ defineComponent({
|
|
|
849
845
|
attrs: { "aria-hidden": true }
|
|
850
846
|
}));
|
|
851
847
|
return (_ctx, _cache) => {
|
|
852
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
848
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
853
849
|
as: __props.as,
|
|
854
850
|
renderless: __props.renderless
|
|
855
851
|
}), {
|
|
@@ -861,7 +857,7 @@ const _sfc_main$77 = /* @__PURE__ */ defineComponent({
|
|
|
861
857
|
});
|
|
862
858
|
//#endregion
|
|
863
859
|
//#region src/components/Button/ButtonLoading.vue
|
|
864
|
-
const _sfc_main$
|
|
860
|
+
const _sfc_main$88 = /* @__PURE__ */ defineComponent({
|
|
865
861
|
name: "ButtonLoading",
|
|
866
862
|
__name: "ButtonLoading",
|
|
867
863
|
props: {
|
|
@@ -912,17 +908,17 @@ const _sfc_main$76 = /* @__PURE__ */ defineComponent({
|
|
|
912
908
|
* ```
|
|
913
909
|
*/
|
|
914
910
|
const Button = {
|
|
915
|
-
Content: _sfc_main$
|
|
916
|
-
Group: _sfc_main$
|
|
917
|
-
HiddenInput: _sfc_main$
|
|
918
|
-
Icon: _sfc_main$
|
|
919
|
-
Loading: _sfc_main$
|
|
920
|
-
Root: _sfc_main$
|
|
911
|
+
Content: _sfc_main$90,
|
|
912
|
+
Group: _sfc_main$93,
|
|
913
|
+
HiddenInput: _sfc_main$92,
|
|
914
|
+
Icon: _sfc_main$89,
|
|
915
|
+
Loading: _sfc_main$88,
|
|
916
|
+
Root: _sfc_main$91
|
|
921
917
|
};
|
|
922
918
|
//#endregion
|
|
923
919
|
//#region src/components/Checkbox/CheckboxGroup.vue
|
|
924
920
|
const [useCheckboxGroup, provideCheckboxGroup] = createContext();
|
|
925
|
-
const _sfc_main$
|
|
921
|
+
const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
926
922
|
name: "CheckboxGroup",
|
|
927
923
|
__name: "CheckboxGroup",
|
|
928
924
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -978,7 +974,7 @@ const _sfc_main$75 = /* @__PURE__ */ defineComponent({
|
|
|
978
974
|
}
|
|
979
975
|
}));
|
|
980
976
|
return (_ctx, _cache) => {
|
|
981
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
977
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
982
978
|
as: __props.as,
|
|
983
979
|
renderless: __props.renderless
|
|
984
980
|
}), {
|
|
@@ -991,7 +987,7 @@ const _sfc_main$75 = /* @__PURE__ */ defineComponent({
|
|
|
991
987
|
//#endregion
|
|
992
988
|
//#region src/components/Checkbox/CheckboxRoot.vue
|
|
993
989
|
const [useCheckboxRoot, provideCheckboxRoot] = createContext();
|
|
994
|
-
const _sfc_main$
|
|
990
|
+
const _sfc_main$86 = /* @__PURE__ */ defineComponent({
|
|
995
991
|
name: "CheckboxRoot",
|
|
996
992
|
inheritAttrs: false,
|
|
997
993
|
__name: "CheckboxRoot",
|
|
@@ -1110,7 +1106,7 @@ const _sfc_main$74 = /* @__PURE__ */ defineComponent({
|
|
|
1110
1106
|
}
|
|
1111
1107
|
}));
|
|
1112
1108
|
return (_ctx, _cache) => {
|
|
1113
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
1109
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$104), mergeProps({
|
|
1114
1110
|
...unref(attrs),
|
|
1115
1111
|
...slotProps.value.attrs
|
|
1116
1112
|
}, {
|
|
@@ -1121,7 +1117,7 @@ const _sfc_main$74 = /* @__PURE__ */ defineComponent({
|
|
|
1121
1117
|
}), {
|
|
1122
1118
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1123
1119
|
_: 3
|
|
1124
|
-
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
1120
|
+
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$85, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
1125
1121
|
};
|
|
1126
1122
|
}
|
|
1127
1123
|
});
|
|
@@ -1145,7 +1141,7 @@ const visuallyHiddenStyle$3 = {
|
|
|
1145
1141
|
whiteSpace: "nowrap",
|
|
1146
1142
|
border: "0"
|
|
1147
1143
|
};
|
|
1148
|
-
const _sfc_main$
|
|
1144
|
+
const _sfc_main$85 = /* @__PURE__ */ defineComponent({
|
|
1149
1145
|
name: "CheckboxHiddenInput",
|
|
1150
1146
|
__name: "CheckboxHiddenInput",
|
|
1151
1147
|
props: {
|
|
@@ -1183,7 +1179,7 @@ const _sfc_main$73 = /* @__PURE__ */ defineComponent({
|
|
|
1183
1179
|
});
|
|
1184
1180
|
//#endregion
|
|
1185
1181
|
//#region src/components/Checkbox/CheckboxIndicator.vue
|
|
1186
|
-
const _sfc_main$
|
|
1182
|
+
const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
1187
1183
|
name: "CheckboxIndicator",
|
|
1188
1184
|
__name: "CheckboxIndicator",
|
|
1189
1185
|
props: {
|
|
@@ -1206,7 +1202,7 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
1206
1202
|
}
|
|
1207
1203
|
}));
|
|
1208
1204
|
return (_ctx, _cache) => {
|
|
1209
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1205
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
1210
1206
|
as: __props.as,
|
|
1211
1207
|
renderless: __props.renderless
|
|
1212
1208
|
}), {
|
|
@@ -1218,29 +1214,27 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
1218
1214
|
});
|
|
1219
1215
|
//#endregion
|
|
1220
1216
|
//#region src/components/Checkbox/CheckboxSelectAll.vue
|
|
1221
|
-
const _sfc_main$
|
|
1217
|
+
const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
1222
1218
|
name: "CheckboxSelectAll",
|
|
1223
1219
|
inheritAttrs: false,
|
|
1224
1220
|
__name: "CheckboxSelectAll",
|
|
1225
1221
|
props: {
|
|
1226
1222
|
label: {},
|
|
1227
1223
|
disabled: { type: Boolean },
|
|
1228
|
-
namespace: {},
|
|
1229
|
-
groupNamespace: {},
|
|
1224
|
+
namespace: { default: "v0:checkbox:root" },
|
|
1225
|
+
groupNamespace: { default: "v0:checkbox:group" },
|
|
1230
1226
|
ariaLabelledby: {},
|
|
1231
1227
|
ariaDescribedby: {},
|
|
1232
|
-
as: {},
|
|
1228
|
+
as: { default: "button" },
|
|
1233
1229
|
renderless: { type: Boolean }
|
|
1234
1230
|
},
|
|
1235
1231
|
setup(__props) {
|
|
1236
1232
|
const attrs = useAttrs();
|
|
1237
|
-
const
|
|
1238
|
-
const { as = "button", renderless, label, namespace = "v0:checkbox:root", groupNamespace = "v0:checkbox:group" } = props;
|
|
1239
|
-
const group = useCheckboxGroup(groupNamespace);
|
|
1233
|
+
const group = useCheckboxGroup(__props.groupNamespace);
|
|
1240
1234
|
const id = useId();
|
|
1241
1235
|
const isAllSelected = toRef(() => group.isAllSelected.value);
|
|
1242
1236
|
const isMixed = toRef(() => group.isMixed.value);
|
|
1243
|
-
const isDisabled = toRef(() => toValue(
|
|
1237
|
+
const isDisabled = toRef(() => toValue(__props.disabled) || toValue(group.disabled));
|
|
1244
1238
|
const dataState = toRef(() => isMixed.value ? "indeterminate" : isAllSelected.value ? "checked" : "unchecked");
|
|
1245
1239
|
function onClick() {
|
|
1246
1240
|
if (isDisabled.value) return;
|
|
@@ -1252,9 +1246,9 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
1252
1246
|
if (isDisabled.value) return;
|
|
1253
1247
|
group.toggleAll();
|
|
1254
1248
|
}
|
|
1255
|
-
|
|
1249
|
+
const context = {
|
|
1256
1250
|
id,
|
|
1257
|
-
label,
|
|
1251
|
+
label: __props.label,
|
|
1258
1252
|
value: void 0,
|
|
1259
1253
|
name: void 0,
|
|
1260
1254
|
form: void 0,
|
|
@@ -1266,9 +1260,10 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
1266
1260
|
toggle: group.toggleAll,
|
|
1267
1261
|
mix: () => {},
|
|
1268
1262
|
unmix: () => {}
|
|
1269
|
-
}
|
|
1263
|
+
};
|
|
1264
|
+
provideCheckboxRoot(__props.namespace, context);
|
|
1270
1265
|
const slotProps = toRef(() => ({
|
|
1271
|
-
label,
|
|
1266
|
+
label: __props.label,
|
|
1272
1267
|
isAllSelected: isAllSelected.value,
|
|
1273
1268
|
isMixed: isMixed.value,
|
|
1274
1269
|
isDisabled: isDisabled.value,
|
|
@@ -1276,25 +1271,25 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
1276
1271
|
unselectAll: group.unselectAll,
|
|
1277
1272
|
toggleAll: group.toggleAll,
|
|
1278
1273
|
attrs: {
|
|
1279
|
-
"type": as === "button" ? "button" : void 0,
|
|
1274
|
+
"type": __props.as === "button" ? "button" : void 0,
|
|
1280
1275
|
"role": "checkbox",
|
|
1281
1276
|
"aria-checked": isMixed.value ? "mixed" : isAllSelected.value,
|
|
1282
1277
|
"aria-disabled": isDisabled.value || void 0,
|
|
1283
|
-
"aria-label": label || void 0,
|
|
1284
|
-
"aria-labelledby":
|
|
1285
|
-
"aria-describedby":
|
|
1278
|
+
"aria-label": __props.label || void 0,
|
|
1279
|
+
"aria-labelledby": __props.ariaLabelledby || void 0,
|
|
1280
|
+
"aria-describedby": __props.ariaDescribedby || void 0,
|
|
1286
1281
|
"tabindex": isDisabled.value ? void 0 : 0,
|
|
1287
1282
|
"data-state": dataState.value,
|
|
1288
1283
|
"data-disabled": isDisabled.value ? true : void 0
|
|
1289
1284
|
}
|
|
1290
1285
|
}));
|
|
1291
1286
|
return (_ctx, _cache) => {
|
|
1292
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1287
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
1293
1288
|
...unref(attrs),
|
|
1294
1289
|
...slotProps.value.attrs
|
|
1295
1290
|
}, {
|
|
1296
|
-
as:
|
|
1297
|
-
renderless:
|
|
1291
|
+
as: __props.as,
|
|
1292
|
+
renderless: __props.renderless,
|
|
1298
1293
|
onClick,
|
|
1299
1294
|
onKeydown
|
|
1300
1295
|
}), {
|
|
@@ -1328,16 +1323,16 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
1328
1323
|
* ```
|
|
1329
1324
|
*/
|
|
1330
1325
|
const Checkbox = {
|
|
1331
|
-
Group: _sfc_main$
|
|
1332
|
-
HiddenInput: _sfc_main$
|
|
1333
|
-
Indicator: _sfc_main$
|
|
1334
|
-
Root: _sfc_main$
|
|
1335
|
-
SelectAll: _sfc_main$
|
|
1326
|
+
Group: _sfc_main$87,
|
|
1327
|
+
HiddenInput: _sfc_main$85,
|
|
1328
|
+
Indicator: _sfc_main$84,
|
|
1329
|
+
Root: _sfc_main$86,
|
|
1330
|
+
SelectAll: _sfc_main$83
|
|
1336
1331
|
};
|
|
1337
1332
|
//#endregion
|
|
1338
1333
|
//#region src/components/Dialog/DialogRoot.vue
|
|
1339
1334
|
const [useDialogContext, provideDialogContext] = createContext();
|
|
1340
|
-
const _sfc_main$
|
|
1335
|
+
const _sfc_main$82 = /* @__PURE__ */ defineComponent({
|
|
1341
1336
|
name: "DialogRoot",
|
|
1342
1337
|
__name: "DialogRoot",
|
|
1343
1338
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1379,7 +1374,7 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
|
1379
1374
|
close
|
|
1380
1375
|
}));
|
|
1381
1376
|
return (_ctx, _cache) => {
|
|
1382
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1377
|
+
return openBlock(), createBlock(unref(_sfc_main$104), {
|
|
1383
1378
|
as: __props.as,
|
|
1384
1379
|
renderless: ""
|
|
1385
1380
|
}, {
|
|
@@ -1391,7 +1386,7 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
|
1391
1386
|
});
|
|
1392
1387
|
//#endregion
|
|
1393
1388
|
//#region src/components/Dialog/DialogClose.vue
|
|
1394
|
-
const _sfc_main$
|
|
1389
|
+
const _sfc_main$81 = /* @__PURE__ */ defineComponent({
|
|
1395
1390
|
name: "DialogClose",
|
|
1396
1391
|
__name: "DialogClose",
|
|
1397
1392
|
props: {
|
|
@@ -1412,7 +1407,7 @@ const _sfc_main$69 = /* @__PURE__ */ defineComponent({
|
|
|
1412
1407
|
}
|
|
1413
1408
|
}));
|
|
1414
1409
|
return (_ctx, _cache) => {
|
|
1415
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1410
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
1416
1411
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1417
1412
|
_: 3
|
|
1418
1413
|
}, 16, ["as"]);
|
|
@@ -1421,7 +1416,7 @@ const _sfc_main$69 = /* @__PURE__ */ defineComponent({
|
|
|
1421
1416
|
});
|
|
1422
1417
|
//#endregion
|
|
1423
1418
|
//#region src/components/Dialog/DialogContent.vue
|
|
1424
|
-
const _sfc_main$
|
|
1419
|
+
const _sfc_main$80 = /* @__PURE__ */ defineComponent({
|
|
1425
1420
|
name: "DialogContent",
|
|
1426
1421
|
__name: "DialogContent",
|
|
1427
1422
|
props: {
|
|
@@ -1489,7 +1484,7 @@ const _sfc_main$68 = /* @__PURE__ */ defineComponent({
|
|
|
1489
1484
|
}
|
|
1490
1485
|
}));
|
|
1491
1486
|
return (_ctx, _cache) => {
|
|
1492
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1487
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
1493
1488
|
ref: "content",
|
|
1494
1489
|
as: __props.as,
|
|
1495
1490
|
style: styles.value
|
|
@@ -1505,7 +1500,7 @@ const _sfc_main$68 = /* @__PURE__ */ defineComponent({
|
|
|
1505
1500
|
});
|
|
1506
1501
|
//#endregion
|
|
1507
1502
|
//#region src/components/Dialog/DialogDescription.vue
|
|
1508
|
-
const _sfc_main$
|
|
1503
|
+
const _sfc_main$79 = /* @__PURE__ */ defineComponent({
|
|
1509
1504
|
name: "DialogDescription",
|
|
1510
1505
|
__name: "DialogDescription",
|
|
1511
1506
|
props: {
|
|
@@ -1517,7 +1512,7 @@ const _sfc_main$67 = /* @__PURE__ */ defineComponent({
|
|
|
1517
1512
|
const context = useDialogContext(__props.namespace);
|
|
1518
1513
|
const slotProps = toRef(() => ({ attrs: { id: context.descriptionId } }));
|
|
1519
1514
|
return (_ctx, _cache) => {
|
|
1520
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1515
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
1521
1516
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1522
1517
|
_: 3
|
|
1523
1518
|
}, 16, ["as"]);
|
|
@@ -1526,7 +1521,7 @@ const _sfc_main$67 = /* @__PURE__ */ defineComponent({
|
|
|
1526
1521
|
});
|
|
1527
1522
|
//#endregion
|
|
1528
1523
|
//#region src/components/Dialog/DialogTitle.vue
|
|
1529
|
-
const _sfc_main$
|
|
1524
|
+
const _sfc_main$78 = /* @__PURE__ */ defineComponent({
|
|
1530
1525
|
name: "DialogTitle",
|
|
1531
1526
|
__name: "DialogTitle",
|
|
1532
1527
|
props: {
|
|
@@ -1538,7 +1533,7 @@ const _sfc_main$66 = /* @__PURE__ */ defineComponent({
|
|
|
1538
1533
|
const context = useDialogContext(__props.namespace);
|
|
1539
1534
|
const slotProps = toRef(() => ({ attrs: { id: context.titleId } }));
|
|
1540
1535
|
return (_ctx, _cache) => {
|
|
1541
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1536
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
1542
1537
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1543
1538
|
_: 3
|
|
1544
1539
|
}, 16, ["as"]);
|
|
@@ -1547,7 +1542,7 @@ const _sfc_main$66 = /* @__PURE__ */ defineComponent({
|
|
|
1547
1542
|
});
|
|
1548
1543
|
//#endregion
|
|
1549
1544
|
//#region src/components/Dialog/DialogActivator.vue
|
|
1550
|
-
const _sfc_main$
|
|
1545
|
+
const _sfc_main$77 = /* @__PURE__ */ defineComponent({
|
|
1551
1546
|
name: "DialogActivator",
|
|
1552
1547
|
__name: "DialogActivator",
|
|
1553
1548
|
props: {
|
|
@@ -1570,7 +1565,7 @@ const _sfc_main$65 = /* @__PURE__ */ defineComponent({
|
|
|
1570
1565
|
}
|
|
1571
1566
|
}));
|
|
1572
1567
|
return (_ctx, _cache) => {
|
|
1573
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1568
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
1574
1569
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1575
1570
|
_: 3
|
|
1576
1571
|
}, 16, ["as"]);
|
|
@@ -1609,17 +1604,17 @@ const _sfc_main$65 = /* @__PURE__ */ defineComponent({
|
|
|
1609
1604
|
* ```
|
|
1610
1605
|
*/
|
|
1611
1606
|
const Dialog = {
|
|
1612
|
-
Root: _sfc_main$
|
|
1613
|
-
Activator: _sfc_main$
|
|
1614
|
-
Content: _sfc_main$
|
|
1615
|
-
Title: _sfc_main$
|
|
1616
|
-
Description: _sfc_main$
|
|
1617
|
-
Close: _sfc_main$
|
|
1607
|
+
Root: _sfc_main$82,
|
|
1608
|
+
Activator: _sfc_main$77,
|
|
1609
|
+
Content: _sfc_main$80,
|
|
1610
|
+
Title: _sfc_main$78,
|
|
1611
|
+
Description: _sfc_main$79,
|
|
1612
|
+
Close: _sfc_main$81
|
|
1618
1613
|
};
|
|
1619
1614
|
//#endregion
|
|
1620
1615
|
//#region src/components/ExpansionPanel/ExpansionPanelRoot.vue
|
|
1621
1616
|
const [useExpansionPanelRoot, provideExpansionPanelRoot] = createContext();
|
|
1622
|
-
const _sfc_main$
|
|
1617
|
+
const _sfc_main$76 = /* @__PURE__ */ defineComponent({
|
|
1623
1618
|
name: "ExpansionPanelRoot",
|
|
1624
1619
|
__name: "ExpansionPanelRoot",
|
|
1625
1620
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1666,7 +1661,7 @@ const _sfc_main$64 = /* @__PURE__ */ defineComponent({
|
|
|
1666
1661
|
}));
|
|
1667
1662
|
provideExpansionPanelRoot(__props.namespace, selection);
|
|
1668
1663
|
return (_ctx, _cache) => {
|
|
1669
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1664
|
+
return openBlock(), createBlock(unref(_sfc_main$104), {
|
|
1670
1665
|
as: __props.as,
|
|
1671
1666
|
renderless: __props.renderless
|
|
1672
1667
|
}, {
|
|
@@ -1679,7 +1674,7 @@ const _sfc_main$64 = /* @__PURE__ */ defineComponent({
|
|
|
1679
1674
|
//#endregion
|
|
1680
1675
|
//#region src/components/ExpansionPanel/ExpansionPanelItem.vue
|
|
1681
1676
|
const [useExpansionPanelItem, provideExpansionPanelItem] = createContext({ suffix: "item" });
|
|
1682
|
-
const _sfc_main$
|
|
1677
|
+
const _sfc_main$75 = /* @__PURE__ */ defineComponent({
|
|
1683
1678
|
name: "ExpansionPanelItem",
|
|
1684
1679
|
__name: "ExpansionPanelItem",
|
|
1685
1680
|
props: {
|
|
@@ -1713,7 +1708,7 @@ const _sfc_main$63 = /* @__PURE__ */ defineComponent({
|
|
|
1713
1708
|
isDisabled
|
|
1714
1709
|
});
|
|
1715
1710
|
return (_ctx, _cache) => {
|
|
1716
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1711
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
1717
1712
|
as: __props.as,
|
|
1718
1713
|
renderless: __props.renderless
|
|
1719
1714
|
}), {
|
|
@@ -1725,7 +1720,7 @@ const _sfc_main$63 = /* @__PURE__ */ defineComponent({
|
|
|
1725
1720
|
});
|
|
1726
1721
|
//#endregion
|
|
1727
1722
|
//#region src/components/ExpansionPanel/ExpansionPanelActivator.vue
|
|
1728
|
-
const _sfc_main$
|
|
1723
|
+
const _sfc_main$74 = /* @__PURE__ */ defineComponent({
|
|
1729
1724
|
name: "ExpansionPanelActivator",
|
|
1730
1725
|
__name: "ExpansionPanelActivator",
|
|
1731
1726
|
props: {
|
|
@@ -1761,7 +1756,7 @@ const _sfc_main$62 = /* @__PURE__ */ defineComponent({
|
|
|
1761
1756
|
}
|
|
1762
1757
|
}));
|
|
1763
1758
|
return (_ctx, _cache) => {
|
|
1764
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1759
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
1765
1760
|
as: __props.as,
|
|
1766
1761
|
renderless: __props.renderless
|
|
1767
1762
|
}), {
|
|
@@ -1773,7 +1768,7 @@ const _sfc_main$62 = /* @__PURE__ */ defineComponent({
|
|
|
1773
1768
|
});
|
|
1774
1769
|
//#endregion
|
|
1775
1770
|
//#region src/components/ExpansionPanel/ExpansionPanelContent.vue
|
|
1776
|
-
const _sfc_main$
|
|
1771
|
+
const _sfc_main$73 = /* @__PURE__ */ defineComponent({
|
|
1777
1772
|
name: "ExpansionPanelContent",
|
|
1778
1773
|
__name: "ExpansionPanelContent",
|
|
1779
1774
|
props: {
|
|
@@ -1794,7 +1789,7 @@ const _sfc_main$61 = /* @__PURE__ */ defineComponent({
|
|
|
1794
1789
|
}
|
|
1795
1790
|
}));
|
|
1796
1791
|
return (_ctx, _cache) => {
|
|
1797
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1792
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
1798
1793
|
as: __props.as,
|
|
1799
1794
|
renderless: __props.renderless
|
|
1800
1795
|
}), {
|
|
@@ -1806,7 +1801,7 @@ const _sfc_main$61 = /* @__PURE__ */ defineComponent({
|
|
|
1806
1801
|
});
|
|
1807
1802
|
//#endregion
|
|
1808
1803
|
//#region src/components/ExpansionPanel/ExpansionPanelHeader.vue
|
|
1809
|
-
const _sfc_main$
|
|
1804
|
+
const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
1810
1805
|
name: "ExpansionPanelHeader",
|
|
1811
1806
|
__name: "ExpansionPanelHeader",
|
|
1812
1807
|
props: {
|
|
@@ -1821,7 +1816,7 @@ const _sfc_main$60 = /* @__PURE__ */ defineComponent({
|
|
|
1821
1816
|
attrs: { "data-selected": item.ticket.isSelected.value || void 0 }
|
|
1822
1817
|
}));
|
|
1823
1818
|
return (_ctx, _cache) => {
|
|
1824
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1819
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
1825
1820
|
as: __props.as,
|
|
1826
1821
|
renderless: __props.renderless
|
|
1827
1822
|
}), {
|
|
@@ -1839,15 +1834,15 @@ const _sfc_main$60 = /* @__PURE__ */ defineComponent({
|
|
|
1839
1834
|
* @see https://0.vuetifyjs.com/components/expansion-panels
|
|
1840
1835
|
*/
|
|
1841
1836
|
const ExpansionPanel = {
|
|
1842
|
-
Root: _sfc_main$
|
|
1843
|
-
Item: _sfc_main$
|
|
1844
|
-
Header: _sfc_main$
|
|
1845
|
-
Activator: _sfc_main$
|
|
1846
|
-
Content: _sfc_main$
|
|
1837
|
+
Root: _sfc_main$76,
|
|
1838
|
+
Item: _sfc_main$75,
|
|
1839
|
+
Header: _sfc_main$72,
|
|
1840
|
+
Activator: _sfc_main$74,
|
|
1841
|
+
Content: _sfc_main$73
|
|
1847
1842
|
};
|
|
1848
1843
|
//#endregion
|
|
1849
1844
|
//#region src/components/Form/Form.vue
|
|
1850
|
-
const _sfc_main$
|
|
1845
|
+
const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
1851
1846
|
name: "Form",
|
|
1852
1847
|
inheritAttrs: false,
|
|
1853
1848
|
__name: "Form",
|
|
@@ -1905,7 +1900,7 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
1905
1900
|
reset: form.reset
|
|
1906
1901
|
}));
|
|
1907
1902
|
return (_ctx, _cache) => {
|
|
1908
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1903
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, unref(attrs), {
|
|
1909
1904
|
onReset,
|
|
1910
1905
|
onSubmit
|
|
1911
1906
|
}), {
|
|
@@ -1918,7 +1913,7 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
1918
1913
|
//#endregion
|
|
1919
1914
|
//#region src/components/Group/GroupRoot.vue
|
|
1920
1915
|
const [useGroupRoot, provideGroupRoot] = createContext();
|
|
1921
|
-
const _sfc_main$
|
|
1916
|
+
const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
1922
1917
|
name: "GroupRoot",
|
|
1923
1918
|
__name: "GroupRoot",
|
|
1924
1919
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1970,7 +1965,7 @@ const _sfc_main$58 = /* @__PURE__ */ defineComponent({
|
|
|
1970
1965
|
});
|
|
1971
1966
|
//#endregion
|
|
1972
1967
|
//#region src/components/Group/GroupItem.vue
|
|
1973
|
-
const _sfc_main$
|
|
1968
|
+
const _sfc_main$69 = /* @__PURE__ */ defineComponent({
|
|
1974
1969
|
name: "GroupItem",
|
|
1975
1970
|
__name: "GroupItem",
|
|
1976
1971
|
props: {
|
|
@@ -2027,8 +2022,8 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
2027
2022
|
* @see https://0.vuetifyjs.com/components/group
|
|
2028
2023
|
*/
|
|
2029
2024
|
const Group = {
|
|
2030
|
-
Root: _sfc_main$
|
|
2031
|
-
Item: _sfc_main$
|
|
2025
|
+
Root: _sfc_main$70,
|
|
2026
|
+
Item: _sfc_main$69
|
|
2032
2027
|
};
|
|
2033
2028
|
//#endregion
|
|
2034
2029
|
//#region src/components/Input/InputRoot.vue
|
|
@@ -2044,7 +2039,7 @@ function parseValidateOn(value) {
|
|
|
2044
2039
|
modifier
|
|
2045
2040
|
};
|
|
2046
2041
|
}
|
|
2047
|
-
const _sfc_main$
|
|
2042
|
+
const _sfc_main$68 = /* @__PURE__ */ defineComponent({
|
|
2048
2043
|
name: "InputRoot",
|
|
2049
2044
|
inheritAttrs: false,
|
|
2050
2045
|
__name: "InputRoot",
|
|
@@ -2111,18 +2106,23 @@ const _sfc_main$56 = /* @__PURE__ */ defineComponent({
|
|
|
2111
2106
|
touched.value = true;
|
|
2112
2107
|
if (shouldValidate("blur")) validation.validate();
|
|
2113
2108
|
});
|
|
2109
|
+
let resetting = false;
|
|
2114
2110
|
watch(model, (val) => {
|
|
2115
2111
|
isPristine.value = val === initialValue;
|
|
2116
|
-
if (shouldValidate("input")) validation.validate();
|
|
2112
|
+
if (!resetting && shouldValidate("input")) validation.validate();
|
|
2117
2113
|
});
|
|
2118
2114
|
function validate() {
|
|
2119
2115
|
return validation.validate();
|
|
2120
2116
|
}
|
|
2121
2117
|
function reset() {
|
|
2118
|
+
resetting = true;
|
|
2122
2119
|
model.value = initialValue;
|
|
2123
2120
|
isPristine.value = true;
|
|
2124
2121
|
touched.value = false;
|
|
2125
2122
|
validation.reset();
|
|
2123
|
+
nextTick(() => {
|
|
2124
|
+
resetting = false;
|
|
2125
|
+
});
|
|
2126
2126
|
}
|
|
2127
2127
|
const state = toRef(() => {
|
|
2128
2128
|
if (isValid.value === false) return "invalid";
|
|
@@ -2176,7 +2176,7 @@ const _sfc_main$56 = /* @__PURE__ */ defineComponent({
|
|
|
2176
2176
|
}
|
|
2177
2177
|
}));
|
|
2178
2178
|
return (_ctx, _cache) => {
|
|
2179
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2179
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2180
2180
|
...unref(attrs),
|
|
2181
2181
|
...slotProps.value.attrs
|
|
2182
2182
|
}, {
|
|
@@ -2191,7 +2191,7 @@ const _sfc_main$56 = /* @__PURE__ */ defineComponent({
|
|
|
2191
2191
|
});
|
|
2192
2192
|
//#endregion
|
|
2193
2193
|
//#region src/components/Input/InputControl.vue
|
|
2194
|
-
const _sfc_main$
|
|
2194
|
+
const _sfc_main$67 = /* @__PURE__ */ defineComponent({
|
|
2195
2195
|
name: "InputControl",
|
|
2196
2196
|
inheritAttrs: false,
|
|
2197
2197
|
__name: "InputControl",
|
|
@@ -2249,7 +2249,7 @@ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
|
|
|
2249
2249
|
attrs: controlAttrs.value
|
|
2250
2250
|
}));
|
|
2251
2251
|
return (_ctx, _cache) => {
|
|
2252
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2252
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2253
2253
|
...unref(attrs),
|
|
2254
2254
|
...controlAttrs.value
|
|
2255
2255
|
}, {
|
|
@@ -2267,7 +2267,7 @@ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
|
|
|
2267
2267
|
});
|
|
2268
2268
|
//#endregion
|
|
2269
2269
|
//#region src/components/Input/InputDescription.vue
|
|
2270
|
-
const _sfc_main$
|
|
2270
|
+
const _sfc_main$66 = /* @__PURE__ */ defineComponent({
|
|
2271
2271
|
name: "InputDescription",
|
|
2272
2272
|
inheritAttrs: false,
|
|
2273
2273
|
__name: "InputDescription",
|
|
@@ -2286,7 +2286,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
2286
2286
|
root.hasDescription.value = false;
|
|
2287
2287
|
});
|
|
2288
2288
|
return (_ctx, _cache) => {
|
|
2289
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2289
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(unref(attrs), {
|
|
2290
2290
|
id: unref(root).descriptionId,
|
|
2291
2291
|
as: __props.as,
|
|
2292
2292
|
renderless: __props.renderless
|
|
@@ -2303,7 +2303,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
2303
2303
|
});
|
|
2304
2304
|
//#endregion
|
|
2305
2305
|
//#region src/components/Input/InputError.vue
|
|
2306
|
-
const _sfc_main$
|
|
2306
|
+
const _sfc_main$65 = /* @__PURE__ */ defineComponent({
|
|
2307
2307
|
name: "InputError",
|
|
2308
2308
|
inheritAttrs: false,
|
|
2309
2309
|
__name: "InputError",
|
|
@@ -2332,7 +2332,7 @@ const _sfc_main$53 = /* @__PURE__ */ defineComponent({
|
|
|
2332
2332
|
}
|
|
2333
2333
|
}));
|
|
2334
2334
|
return (_ctx, _cache) => {
|
|
2335
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2335
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2336
2336
|
...unref(attrs),
|
|
2337
2337
|
...slotProps.value.attrs
|
|
2338
2338
|
}, {
|
|
@@ -2377,17 +2377,83 @@ const _sfc_main$53 = /* @__PURE__ */ defineComponent({
|
|
|
2377
2377
|
* ```
|
|
2378
2378
|
*/
|
|
2379
2379
|
const Input = {
|
|
2380
|
-
Control: _sfc_main$
|
|
2381
|
-
Description: _sfc_main$
|
|
2382
|
-
Error: _sfc_main$
|
|
2383
|
-
Root: _sfc_main$
|
|
2380
|
+
Control: _sfc_main$67,
|
|
2381
|
+
Description: _sfc_main$66,
|
|
2382
|
+
Error: _sfc_main$65,
|
|
2383
|
+
Root: _sfc_main$68
|
|
2384
2384
|
};
|
|
2385
2385
|
//#endregion
|
|
2386
|
+
//#region src/components/Locale/Locale.vue
|
|
2387
|
+
const _sfc_main$64 = /* @__PURE__ */ defineComponent({
|
|
2388
|
+
name: "Locale",
|
|
2389
|
+
inheritAttrs: false,
|
|
2390
|
+
__name: "Locale",
|
|
2391
|
+
props: {
|
|
2392
|
+
locale: {},
|
|
2393
|
+
renderless: {
|
|
2394
|
+
type: Boolean,
|
|
2395
|
+
default: false
|
|
2396
|
+
},
|
|
2397
|
+
as: { default: "div" }
|
|
2398
|
+
},
|
|
2399
|
+
setup(__props) {
|
|
2400
|
+
const parent = useLocale();
|
|
2401
|
+
const selectedId = toRef(() => __props.locale);
|
|
2402
|
+
const selectedItem = toRef(() => parent.get(__props.locale));
|
|
2403
|
+
const rootT = parent._rootT ?? parent.t;
|
|
2404
|
+
const rootN = parent._rootN ?? parent.n;
|
|
2405
|
+
function t(key, ...params) {
|
|
2406
|
+
const prev = new Set(parent.selectedIds);
|
|
2407
|
+
parent.selectedIds.clear();
|
|
2408
|
+
parent.selectedIds.add(__props.locale);
|
|
2409
|
+
try {
|
|
2410
|
+
return rootT(key, ...params);
|
|
2411
|
+
} finally {
|
|
2412
|
+
parent.selectedIds.clear();
|
|
2413
|
+
for (const id of prev) parent.selectedIds.add(id);
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
function n(value) {
|
|
2417
|
+
const prev = new Set(parent.selectedIds);
|
|
2418
|
+
parent.selectedIds.clear();
|
|
2419
|
+
parent.selectedIds.add(__props.locale);
|
|
2420
|
+
try {
|
|
2421
|
+
return rootN(value);
|
|
2422
|
+
} finally {
|
|
2423
|
+
parent.selectedIds.clear();
|
|
2424
|
+
for (const id of prev) parent.selectedIds.add(id);
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
provideContext("v0:locale", {
|
|
2428
|
+
...parent,
|
|
2429
|
+
selectedId,
|
|
2430
|
+
selectedItem,
|
|
2431
|
+
t,
|
|
2432
|
+
n,
|
|
2433
|
+
_rootT: rootT,
|
|
2434
|
+
_rootN: rootN
|
|
2435
|
+
});
|
|
2436
|
+
const attrs = toRef(() => ({
|
|
2437
|
+
"data-locale": __props.locale,
|
|
2438
|
+
"lang": __props.locale
|
|
2439
|
+
}));
|
|
2440
|
+
return (_ctx, _cache) => {
|
|
2441
|
+
return __props.renderless ? renderSlot(_ctx.$slots, "default", {
|
|
2442
|
+
key: 0,
|
|
2443
|
+
attrs: attrs.value
|
|
2444
|
+
}) : (openBlock(), createBlock(resolveDynamicComponent(__props.as), normalizeProps(mergeProps({ key: 1 }, attrs.value)), {
|
|
2445
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { attrs: attrs.value })]),
|
|
2446
|
+
_: 3
|
|
2447
|
+
}, 16));
|
|
2448
|
+
};
|
|
2449
|
+
}
|
|
2450
|
+
});
|
|
2451
|
+
//#endregion
|
|
2386
2452
|
//#region src/components/Pagination/PaginationRoot.vue
|
|
2387
2453
|
const [usePaginationRoot, providePaginationRoot] = createContext();
|
|
2388
2454
|
const [usePaginationControls, providePaginationControls] = createContext({ suffix: "controls" });
|
|
2389
2455
|
const [usePaginationItems, providePaginationItems] = createContext({ suffix: "items" });
|
|
2390
|
-
const _sfc_main$
|
|
2456
|
+
const _sfc_main$63 = /* @__PURE__ */ defineComponent({
|
|
2391
2457
|
name: "PaginationRoot",
|
|
2392
2458
|
__name: "PaginationRoot",
|
|
2393
2459
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2474,7 +2540,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
|
2474
2540
|
providePaginationControls(__props.namespace, controls);
|
|
2475
2541
|
providePaginationItems(__props.namespace, items);
|
|
2476
2542
|
return (_ctx, _cache) => {
|
|
2477
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2543
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2478
2544
|
ref_key: "atom",
|
|
2479
2545
|
ref: atom
|
|
2480
2546
|
}, slotProps.value.attrs, {
|
|
@@ -2489,7 +2555,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
|
2489
2555
|
});
|
|
2490
2556
|
//#endregion
|
|
2491
2557
|
//#region src/components/Pagination/PaginationEllipsis.vue
|
|
2492
|
-
const _sfc_main$
|
|
2558
|
+
const _sfc_main$62 = /* @__PURE__ */ defineComponent({
|
|
2493
2559
|
name: "PaginationEllipsis",
|
|
2494
2560
|
__name: "PaginationEllipsis",
|
|
2495
2561
|
props: {
|
|
@@ -2517,7 +2583,7 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
2517
2583
|
}));
|
|
2518
2584
|
onBeforeUnmount(() => items.unregister(__props.id));
|
|
2519
2585
|
return (_ctx, _cache) => {
|
|
2520
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2586
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2521
2587
|
ref_key: "atom",
|
|
2522
2588
|
ref: atom
|
|
2523
2589
|
}, slotProps.value.attrs, {
|
|
@@ -2532,7 +2598,7 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
2532
2598
|
});
|
|
2533
2599
|
//#endregion
|
|
2534
2600
|
//#region src/components/Pagination/PaginationFirst.vue
|
|
2535
|
-
const _sfc_main$
|
|
2601
|
+
const _sfc_main$61 = /* @__PURE__ */ defineComponent({
|
|
2536
2602
|
name: "PaginationFirst",
|
|
2537
2603
|
__name: "PaginationFirst",
|
|
2538
2604
|
props: {
|
|
@@ -2574,7 +2640,7 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
2574
2640
|
}));
|
|
2575
2641
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
2576
2642
|
return (_ctx, _cache) => {
|
|
2577
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2643
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2578
2644
|
ref_key: "atom",
|
|
2579
2645
|
ref: atom
|
|
2580
2646
|
}, slotProps.value.attrs, {
|
|
@@ -2589,7 +2655,7 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
2589
2655
|
});
|
|
2590
2656
|
//#endregion
|
|
2591
2657
|
//#region src/components/Pagination/PaginationItem.vue
|
|
2592
|
-
const _sfc_main$
|
|
2658
|
+
const _sfc_main$60 = /* @__PURE__ */ defineComponent({
|
|
2593
2659
|
name: "PaginationItem",
|
|
2594
2660
|
__name: "PaginationItem",
|
|
2595
2661
|
props: {
|
|
@@ -2642,7 +2708,7 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
2642
2708
|
}));
|
|
2643
2709
|
onBeforeUnmount(() => items.unregister(__props.id));
|
|
2644
2710
|
return (_ctx, _cache) => {
|
|
2645
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2711
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2646
2712
|
ref_key: "atom",
|
|
2647
2713
|
ref: atom
|
|
2648
2714
|
}, slotProps.value.attrs, {
|
|
@@ -2657,7 +2723,7 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
2657
2723
|
});
|
|
2658
2724
|
//#endregion
|
|
2659
2725
|
//#region src/components/Pagination/PaginationLast.vue
|
|
2660
|
-
const _sfc_main$
|
|
2726
|
+
const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
2661
2727
|
name: "PaginationLast",
|
|
2662
2728
|
__name: "PaginationLast",
|
|
2663
2729
|
props: {
|
|
@@ -2699,7 +2765,7 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
2699
2765
|
}));
|
|
2700
2766
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
2701
2767
|
return (_ctx, _cache) => {
|
|
2702
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2768
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2703
2769
|
ref_key: "atom",
|
|
2704
2770
|
ref: atom
|
|
2705
2771
|
}, slotProps.value.attrs, {
|
|
@@ -2714,7 +2780,7 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
2714
2780
|
});
|
|
2715
2781
|
//#endregion
|
|
2716
2782
|
//#region src/components/Pagination/PaginationNext.vue
|
|
2717
|
-
const _sfc_main$
|
|
2783
|
+
const _sfc_main$58 = /* @__PURE__ */ defineComponent({
|
|
2718
2784
|
name: "PaginationNext",
|
|
2719
2785
|
__name: "PaginationNext",
|
|
2720
2786
|
props: {
|
|
@@ -2756,7 +2822,7 @@ const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
|
2756
2822
|
}));
|
|
2757
2823
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
2758
2824
|
return (_ctx, _cache) => {
|
|
2759
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2825
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2760
2826
|
ref_key: "atom",
|
|
2761
2827
|
ref: atom
|
|
2762
2828
|
}, slotProps.value.attrs, {
|
|
@@ -2771,7 +2837,7 @@ const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
|
2771
2837
|
});
|
|
2772
2838
|
//#endregion
|
|
2773
2839
|
//#region src/components/Pagination/PaginationPrev.vue
|
|
2774
|
-
const _sfc_main$
|
|
2840
|
+
const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
2775
2841
|
name: "PaginationPrev",
|
|
2776
2842
|
__name: "PaginationPrev",
|
|
2777
2843
|
props: {
|
|
@@ -2813,7 +2879,7 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
2813
2879
|
}));
|
|
2814
2880
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
2815
2881
|
return (_ctx, _cache) => {
|
|
2816
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2882
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2817
2883
|
ref_key: "atom",
|
|
2818
2884
|
ref: atom
|
|
2819
2885
|
}, slotProps.value.attrs, {
|
|
@@ -2828,7 +2894,7 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
2828
2894
|
});
|
|
2829
2895
|
//#endregion
|
|
2830
2896
|
//#region src/components/Pagination/PaginationStatus.vue
|
|
2831
|
-
const _sfc_main$
|
|
2897
|
+
const _sfc_main$56 = /* @__PURE__ */ defineComponent({
|
|
2832
2898
|
name: "PaginationStatus",
|
|
2833
2899
|
__name: "PaginationStatus",
|
|
2834
2900
|
props: {
|
|
@@ -2862,7 +2928,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
2862
2928
|
}
|
|
2863
2929
|
}));
|
|
2864
2930
|
return (_ctx, _cache) => {
|
|
2865
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2931
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
2866
2932
|
as: __props.as,
|
|
2867
2933
|
renderless: __props.renderless
|
|
2868
2934
|
}), {
|
|
@@ -2880,19 +2946,19 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
2880
2946
|
* @see https://0.vuetifyjs.com/components/pagination
|
|
2881
2947
|
*/
|
|
2882
2948
|
const Pagination = {
|
|
2883
|
-
Root: _sfc_main$
|
|
2884
|
-
Item: _sfc_main$
|
|
2885
|
-
First: _sfc_main$
|
|
2886
|
-
Prev: _sfc_main$
|
|
2887
|
-
Ellipsis: _sfc_main$
|
|
2888
|
-
Next: _sfc_main$
|
|
2889
|
-
Last: _sfc_main$
|
|
2890
|
-
Status: _sfc_main$
|
|
2949
|
+
Root: _sfc_main$63,
|
|
2950
|
+
Item: _sfc_main$60,
|
|
2951
|
+
First: _sfc_main$61,
|
|
2952
|
+
Prev: _sfc_main$57,
|
|
2953
|
+
Ellipsis: _sfc_main$62,
|
|
2954
|
+
Next: _sfc_main$58,
|
|
2955
|
+
Last: _sfc_main$59,
|
|
2956
|
+
Status: _sfc_main$56
|
|
2891
2957
|
};
|
|
2892
2958
|
//#endregion
|
|
2893
2959
|
//#region src/components/Popover/PopoverRoot.vue
|
|
2894
2960
|
const [usePopoverContext, providePopoverContext] = createContext("Popover");
|
|
2895
|
-
const _sfc_main$
|
|
2961
|
+
const _sfc_main$55 = /* @__PURE__ */ defineComponent({
|
|
2896
2962
|
name: "PopoverRoot",
|
|
2897
2963
|
__name: "PopoverRoot",
|
|
2898
2964
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2923,7 +2989,7 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
2923
2989
|
toggle: popover.toggle
|
|
2924
2990
|
}));
|
|
2925
2991
|
return (_ctx, _cache) => {
|
|
2926
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2992
|
+
return openBlock(), createBlock(unref(_sfc_main$104), {
|
|
2927
2993
|
as: __props.as,
|
|
2928
2994
|
renderless: ""
|
|
2929
2995
|
}, {
|
|
@@ -2935,7 +3001,7 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
2935
3001
|
});
|
|
2936
3002
|
//#endregion
|
|
2937
3003
|
//#region src/components/Popover/PopoverActivator.vue
|
|
2938
|
-
const _sfc_main$
|
|
3004
|
+
const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
2939
3005
|
name: "PopoverActivator",
|
|
2940
3006
|
__name: "PopoverActivator",
|
|
2941
3007
|
props: {
|
|
@@ -2944,11 +3010,10 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
|
2944
3010
|
renderless: { type: Boolean }
|
|
2945
3011
|
},
|
|
2946
3012
|
setup(__props) {
|
|
2947
|
-
const props = createPropsRestProxy(__props, ["as"]);
|
|
2948
3013
|
const context = usePopoverContext();
|
|
2949
|
-
const popovertarget = toRef(() =>
|
|
3014
|
+
const popovertarget = toRef(() => __props.target ?? context.id);
|
|
2950
3015
|
const style = toRef(() => {
|
|
2951
|
-
if (
|
|
3016
|
+
if (__props.target) return { anchorName: `--${__props.target}` };
|
|
2952
3017
|
return context.anchorStyles.value;
|
|
2953
3018
|
});
|
|
2954
3019
|
const slotProps = toRef(() => ({
|
|
@@ -2960,7 +3025,7 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
|
2960
3025
|
}
|
|
2961
3026
|
}));
|
|
2962
3027
|
return (_ctx, _cache) => {
|
|
2963
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3028
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
2964
3029
|
as: __props.as,
|
|
2965
3030
|
style: style.value
|
|
2966
3031
|
}, slotProps.value.attrs), {
|
|
@@ -2972,7 +3037,7 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
|
2972
3037
|
});
|
|
2973
3038
|
//#endregion
|
|
2974
3039
|
//#region src/components/Popover/PopoverContent.vue
|
|
2975
|
-
const _sfc_main$
|
|
3040
|
+
const _sfc_main$53 = /* @__PURE__ */ defineComponent({
|
|
2976
3041
|
name: "PopoverContent",
|
|
2977
3042
|
__name: "PopoverContent",
|
|
2978
3043
|
props: {
|
|
@@ -2984,18 +3049,17 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
2984
3049
|
},
|
|
2985
3050
|
emits: ["beforetoggle"],
|
|
2986
3051
|
setup(__props, { emit: __emit }) {
|
|
2987
|
-
const props = createPropsRestProxy(__props, ["positionArea", "positionTry"]);
|
|
2988
3052
|
const emit = __emit;
|
|
2989
3053
|
const context = usePopoverContext();
|
|
2990
3054
|
const ref = useTemplateRef("ref");
|
|
2991
|
-
const id = toRef(() =>
|
|
3055
|
+
const id = toRef(() => __props.id ?? context.id);
|
|
2992
3056
|
const style = toRef(() => {
|
|
2993
|
-
if (
|
|
3057
|
+
if (__props.id) return {
|
|
2994
3058
|
"position": "fixed",
|
|
2995
3059
|
"margin": "unset",
|
|
2996
3060
|
"inset-area": __props.positionArea ?? "bottom",
|
|
2997
3061
|
"position-area": __props.positionArea ?? "bottom",
|
|
2998
|
-
"position-anchor": `--${
|
|
3062
|
+
"position-anchor": `--${__props.id}`,
|
|
2999
3063
|
"position-try-fallbacks": __props.positionTry ?? "most-width bottom"
|
|
3000
3064
|
};
|
|
3001
3065
|
return context.contentStyles.value;
|
|
@@ -3012,10 +3076,10 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
3012
3076
|
}
|
|
3013
3077
|
}));
|
|
3014
3078
|
return (_ctx, _cache) => {
|
|
3015
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3079
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
3016
3080
|
ref_key: "ref",
|
|
3017
3081
|
ref,
|
|
3018
|
-
as:
|
|
3082
|
+
as: __props.as,
|
|
3019
3083
|
style: style.value
|
|
3020
3084
|
}, slotProps.value.attrs, { onBeforetoggle: onBeforeToggle }), {
|
|
3021
3085
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
@@ -3032,14 +3096,14 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
3032
3096
|
* @see https://0.vuetifyjs.com/components/popover
|
|
3033
3097
|
*/
|
|
3034
3098
|
const Popover = {
|
|
3035
|
-
Root: _sfc_main$
|
|
3036
|
-
Activator: _sfc_main$
|
|
3037
|
-
Content: _sfc_main$
|
|
3099
|
+
Root: _sfc_main$55,
|
|
3100
|
+
Activator: _sfc_main$54,
|
|
3101
|
+
Content: _sfc_main$53
|
|
3038
3102
|
};
|
|
3039
3103
|
//#endregion
|
|
3040
3104
|
//#region src/components/Radio/RadioGroup.vue
|
|
3041
3105
|
const [useRadioGroup, provideRadioGroup] = createContext();
|
|
3042
|
-
const _sfc_main$
|
|
3106
|
+
const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
3043
3107
|
name: "RadioGroup",
|
|
3044
3108
|
__name: "RadioGroup",
|
|
3045
3109
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3091,7 +3155,7 @@ const _sfc_main$41 = /* @__PURE__ */ defineComponent({
|
|
|
3091
3155
|
}
|
|
3092
3156
|
}));
|
|
3093
3157
|
return (_ctx, _cache) => {
|
|
3094
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3158
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
3095
3159
|
as: __props.as,
|
|
3096
3160
|
renderless: __props.renderless
|
|
3097
3161
|
}), {
|
|
@@ -3104,7 +3168,7 @@ const _sfc_main$41 = /* @__PURE__ */ defineComponent({
|
|
|
3104
3168
|
//#endregion
|
|
3105
3169
|
//#region src/components/Radio/RadioRoot.vue
|
|
3106
3170
|
const [useRadioRoot, provideRadioRoot] = createContext();
|
|
3107
|
-
const _sfc_main$
|
|
3171
|
+
const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
3108
3172
|
name: "RadioRoot",
|
|
3109
3173
|
inheritAttrs: false,
|
|
3110
3174
|
__name: "RadioRoot",
|
|
@@ -3214,7 +3278,7 @@ const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
|
3214
3278
|
}
|
|
3215
3279
|
}));
|
|
3216
3280
|
return (_ctx, _cache) => {
|
|
3217
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
3281
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$104), mergeProps({ ref: "root" }, {
|
|
3218
3282
|
...unref(attrs),
|
|
3219
3283
|
...slotProps.value.attrs
|
|
3220
3284
|
}, {
|
|
@@ -3225,7 +3289,7 @@ const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
|
3225
3289
|
}), {
|
|
3226
3290
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3227
3291
|
_: 3
|
|
3228
|
-
}, 16, ["as", "renderless"]), unref(name) ? (openBlock(), createBlock(_sfc_main$
|
|
3292
|
+
}, 16, ["as", "renderless"]), unref(name) ? (openBlock(), createBlock(_sfc_main$50, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
3229
3293
|
};
|
|
3230
3294
|
}
|
|
3231
3295
|
});
|
|
@@ -3249,7 +3313,7 @@ const visuallyHiddenStyle$2 = {
|
|
|
3249
3313
|
whiteSpace: "nowrap",
|
|
3250
3314
|
border: "0"
|
|
3251
3315
|
};
|
|
3252
|
-
const _sfc_main$
|
|
3316
|
+
const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
3253
3317
|
name: "RadioHiddenInput",
|
|
3254
3318
|
__name: "RadioHiddenInput",
|
|
3255
3319
|
props: {
|
|
@@ -3286,7 +3350,7 @@ const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
|
3286
3350
|
});
|
|
3287
3351
|
//#endregion
|
|
3288
3352
|
//#region src/components/Radio/RadioIndicator.vue
|
|
3289
|
-
const _sfc_main$
|
|
3353
|
+
const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
3290
3354
|
name: "RadioIndicator",
|
|
3291
3355
|
__name: "RadioIndicator",
|
|
3292
3356
|
props: {
|
|
@@ -3306,7 +3370,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
|
3306
3370
|
}
|
|
3307
3371
|
}));
|
|
3308
3372
|
return (_ctx, _cache) => {
|
|
3309
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3373
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
3310
3374
|
as: __props.as,
|
|
3311
3375
|
renderless: __props.renderless
|
|
3312
3376
|
}), {
|
|
@@ -3351,14 +3415,14 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
|
3351
3415
|
* ```
|
|
3352
3416
|
*/
|
|
3353
3417
|
const Radio = {
|
|
3354
|
-
Group: _sfc_main$
|
|
3355
|
-
HiddenInput: _sfc_main$
|
|
3356
|
-
Indicator: _sfc_main$
|
|
3357
|
-
Root: _sfc_main$
|
|
3418
|
+
Group: _sfc_main$52,
|
|
3419
|
+
HiddenInput: _sfc_main$50,
|
|
3420
|
+
Indicator: _sfc_main$49,
|
|
3421
|
+
Root: _sfc_main$51
|
|
3358
3422
|
};
|
|
3359
3423
|
//#endregion
|
|
3360
3424
|
//#region src/components/Scrim/Scrim.vue
|
|
3361
|
-
const _sfc_main$
|
|
3425
|
+
const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
3362
3426
|
name: "Scrim",
|
|
3363
3427
|
inheritAttrs: false,
|
|
3364
3428
|
__name: "Scrim",
|
|
@@ -3396,7 +3460,7 @@ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
|
3396
3460
|
to: __props.teleportTo
|
|
3397
3461
|
}, [createVNode(TransitionGroup, { name: __props.transition }, {
|
|
3398
3462
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(tickets.value, (ticket) => {
|
|
3399
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3463
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
3400
3464
|
key: ticket.id,
|
|
3401
3465
|
as: __props.as,
|
|
3402
3466
|
style: getStyle(ticket)
|
|
@@ -3415,7 +3479,7 @@ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
|
3415
3479
|
name: __props.transition
|
|
3416
3480
|
}, {
|
|
3417
3481
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(tickets.value, (ticket) => {
|
|
3418
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3482
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
3419
3483
|
key: ticket.id,
|
|
3420
3484
|
as: __props.as,
|
|
3421
3485
|
style: getStyle(ticket)
|
|
@@ -3452,7 +3516,7 @@ const visuallyHiddenStyle$1 = {
|
|
|
3452
3516
|
whiteSpace: "nowrap",
|
|
3453
3517
|
border: "0"
|
|
3454
3518
|
};
|
|
3455
|
-
const _sfc_main$
|
|
3519
|
+
const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
3456
3520
|
name: "SelectHiddenInput",
|
|
3457
3521
|
__name: "SelectHiddenInput",
|
|
3458
3522
|
props: { namespace: { default: "v0:select" } },
|
|
@@ -3486,7 +3550,7 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
3486
3550
|
//#endregion
|
|
3487
3551
|
//#region src/components/Select/SelectRoot.vue
|
|
3488
3552
|
const [useSelectContext, provideSelectContext] = createContext();
|
|
3489
|
-
const _sfc_main$
|
|
3553
|
+
const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
3490
3554
|
name: "SelectRoot",
|
|
3491
3555
|
__name: "SelectRoot",
|
|
3492
3556
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3592,19 +3656,19 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
3592
3656
|
toggle
|
|
3593
3657
|
}));
|
|
3594
3658
|
return (_ctx, _cache) => {
|
|
3595
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
3659
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$104), {
|
|
3596
3660
|
as: __props.as,
|
|
3597
3661
|
renderless: ""
|
|
3598
3662
|
}, {
|
|
3599
3663
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3600
3664
|
_: 3
|
|
3601
|
-
}, 8, ["as"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
3665
|
+
}, 8, ["as"]), __props.name ? (openBlock(), createBlock(_sfc_main$47, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
3602
3666
|
};
|
|
3603
3667
|
}
|
|
3604
3668
|
});
|
|
3605
3669
|
//#endregion
|
|
3606
3670
|
//#region src/components/Select/SelectActivator.vue
|
|
3607
|
-
const _sfc_main$
|
|
3671
|
+
const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
3608
3672
|
name: "SelectActivator",
|
|
3609
3673
|
__name: "SelectActivator",
|
|
3610
3674
|
props: {
|
|
@@ -3666,7 +3730,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
3666
3730
|
}
|
|
3667
3731
|
}));
|
|
3668
3732
|
return (_ctx, _cache) => {
|
|
3669
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3733
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
3670
3734
|
ref: "activator",
|
|
3671
3735
|
as: __props.as,
|
|
3672
3736
|
style: style.value
|
|
@@ -3682,7 +3746,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
3682
3746
|
});
|
|
3683
3747
|
//#endregion
|
|
3684
3748
|
//#region src/components/Select/SelectContent.vue
|
|
3685
|
-
const _sfc_main$
|
|
3749
|
+
const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
3686
3750
|
name: "SelectContent",
|
|
3687
3751
|
__name: "SelectContent",
|
|
3688
3752
|
props: {
|
|
@@ -3705,7 +3769,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
3705
3769
|
}));
|
|
3706
3770
|
const style = toRef(() => context.popover.contentStyles.value);
|
|
3707
3771
|
return (_ctx, _cache) => {
|
|
3708
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3772
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
3709
3773
|
ref_key: "content",
|
|
3710
3774
|
ref: content,
|
|
3711
3775
|
as: __props.as,
|
|
@@ -3719,7 +3783,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
3719
3783
|
});
|
|
3720
3784
|
//#endregion
|
|
3721
3785
|
//#region src/components/Select/SelectCue.vue
|
|
3722
|
-
const _sfc_main$
|
|
3786
|
+
const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
3723
3787
|
name: "SelectCue",
|
|
3724
3788
|
__name: "SelectCue",
|
|
3725
3789
|
props: {
|
|
@@ -3737,7 +3801,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
3737
3801
|
}
|
|
3738
3802
|
}));
|
|
3739
3803
|
return (_ctx, _cache) => {
|
|
3740
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3804
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
3741
3805
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3742
3806
|
_: 3
|
|
3743
3807
|
}, 16, ["as"]);
|
|
@@ -3746,7 +3810,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
3746
3810
|
});
|
|
3747
3811
|
//#endregion
|
|
3748
3812
|
//#region src/components/Select/SelectItem.vue
|
|
3749
|
-
const _sfc_main$
|
|
3813
|
+
const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
3750
3814
|
name: "SelectItem",
|
|
3751
3815
|
__name: "SelectItem",
|
|
3752
3816
|
props: {
|
|
@@ -3792,7 +3856,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
|
3792
3856
|
}
|
|
3793
3857
|
}));
|
|
3794
3858
|
return (_ctx, _cache) => {
|
|
3795
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3859
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
3796
3860
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3797
3861
|
_: 3
|
|
3798
3862
|
}, 16, ["as"]);
|
|
@@ -3801,7 +3865,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
|
3801
3865
|
});
|
|
3802
3866
|
//#endregion
|
|
3803
3867
|
//#region src/components/Select/SelectPlaceholder.vue
|
|
3804
|
-
const _sfc_main$
|
|
3868
|
+
const _sfc_main$41 = /* @__PURE__ */ defineComponent({
|
|
3805
3869
|
name: "SelectPlaceholder",
|
|
3806
3870
|
__name: "SelectPlaceholder",
|
|
3807
3871
|
props: {
|
|
@@ -3813,7 +3877,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
3813
3877
|
const context = useSelectContext(__props.namespace);
|
|
3814
3878
|
const hasValue = toRef(() => context.selection.selectedIds.size > 0);
|
|
3815
3879
|
return (_ctx, _cache) => {
|
|
3816
|
-
return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3880
|
+
return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$104), {
|
|
3817
3881
|
key: 0,
|
|
3818
3882
|
as: __props.as
|
|
3819
3883
|
}, {
|
|
@@ -3825,7 +3889,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
3825
3889
|
});
|
|
3826
3890
|
//#endregion
|
|
3827
3891
|
//#region src/components/Select/SelectValue.vue
|
|
3828
|
-
const _sfc_main$
|
|
3892
|
+
const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
3829
3893
|
name: "SelectValue",
|
|
3830
3894
|
__name: "SelectValue",
|
|
3831
3895
|
props: {
|
|
@@ -3847,7 +3911,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
3847
3911
|
attrs: {}
|
|
3848
3912
|
}));
|
|
3849
3913
|
return (_ctx, _cache) => {
|
|
3850
|
-
return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3914
|
+
return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$104), {
|
|
3851
3915
|
key: 0,
|
|
3852
3916
|
as: __props.as
|
|
3853
3917
|
}, {
|
|
@@ -3903,18 +3967,18 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
3903
3967
|
* ```
|
|
3904
3968
|
*/
|
|
3905
3969
|
const Select = {
|
|
3906
|
-
Root: _sfc_main$
|
|
3907
|
-
Activator: _sfc_main$
|
|
3908
|
-
Value: _sfc_main$
|
|
3909
|
-
Content: _sfc_main$
|
|
3910
|
-
Cue: _sfc_main$
|
|
3911
|
-
Item: _sfc_main$
|
|
3912
|
-
Placeholder: _sfc_main$
|
|
3970
|
+
Root: _sfc_main$46,
|
|
3971
|
+
Activator: _sfc_main$45,
|
|
3972
|
+
Value: _sfc_main$40,
|
|
3973
|
+
Content: _sfc_main$44,
|
|
3974
|
+
Cue: _sfc_main$43,
|
|
3975
|
+
Item: _sfc_main$42,
|
|
3976
|
+
Placeholder: _sfc_main$41
|
|
3913
3977
|
};
|
|
3914
3978
|
//#endregion
|
|
3915
3979
|
//#region src/components/Selection/SelectionRoot.vue
|
|
3916
3980
|
const [useSelectionRoot, provideSelectionRoot] = createContext();
|
|
3917
|
-
const _sfc_main$
|
|
3981
|
+
const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
3918
3982
|
name: "SelectionRoot",
|
|
3919
3983
|
__name: "SelectionRoot",
|
|
3920
3984
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3966,7 +4030,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
3966
4030
|
});
|
|
3967
4031
|
//#endregion
|
|
3968
4032
|
//#region src/components/Selection/SelectionItem.vue
|
|
3969
|
-
const _sfc_main$
|
|
4033
|
+
const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
3970
4034
|
name: "SelectionItem",
|
|
3971
4035
|
__name: "SelectionItem",
|
|
3972
4036
|
props: {
|
|
@@ -4016,12 +4080,12 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
4016
4080
|
* @see https://0.vuetifyjs.com/components/selection
|
|
4017
4081
|
*/
|
|
4018
4082
|
const Selection = {
|
|
4019
|
-
Root: _sfc_main$
|
|
4020
|
-
Item: _sfc_main$
|
|
4083
|
+
Root: _sfc_main$39,
|
|
4084
|
+
Item: _sfc_main$38
|
|
4021
4085
|
};
|
|
4022
4086
|
//#endregion
|
|
4023
4087
|
//#region src/components/Snackbar/SnackbarPortal.vue
|
|
4024
|
-
const _sfc_main$
|
|
4088
|
+
const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
4025
4089
|
name: "SnackbarPortal",
|
|
4026
4090
|
inheritAttrs: false,
|
|
4027
4091
|
__name: "SnackbarPortal",
|
|
@@ -4042,13 +4106,13 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
4042
4106
|
return __props.teleport ? (openBlock(), createBlock(Teleport, {
|
|
4043
4107
|
key: 0,
|
|
4044
4108
|
to: __props.teleport
|
|
4045
|
-
}, [createVNode(unref(_sfc_main$
|
|
4109
|
+
}, [createVNode(unref(_sfc_main$104), mergeProps({
|
|
4046
4110
|
as: __props.as,
|
|
4047
4111
|
style: styles.value
|
|
4048
4112
|
}, _ctx.$attrs), {
|
|
4049
4113
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4050
4114
|
_: 3
|
|
4051
|
-
}, 16, ["as", "style"])], 8, ["to"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
4115
|
+
}, 16, ["as", "style"])], 8, ["to"])) : (openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
4052
4116
|
key: 1,
|
|
4053
4117
|
as: __props.as,
|
|
4054
4118
|
style: styles.value
|
|
@@ -4062,7 +4126,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
4062
4126
|
//#endregion
|
|
4063
4127
|
//#region src/components/Snackbar/SnackbarQueue.vue
|
|
4064
4128
|
const [useSnackbarQueueContext, provideSnackbarQueueContext] = createContext({ suffix: "queue" });
|
|
4065
|
-
const _sfc_main$
|
|
4129
|
+
const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
4066
4130
|
name: "SnackbarQueue",
|
|
4067
4131
|
__name: "SnackbarQueue",
|
|
4068
4132
|
props: {
|
|
@@ -4118,7 +4182,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
4118
4182
|
}
|
|
4119
4183
|
}));
|
|
4120
4184
|
return (_ctx, _cache) => {
|
|
4121
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4185
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
4122
4186
|
ref_key: "container",
|
|
4123
4187
|
ref: container
|
|
4124
4188
|
}, slotProps.value.attrs, { as: __props.as }), {
|
|
@@ -4131,7 +4195,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
4131
4195
|
//#endregion
|
|
4132
4196
|
//#region src/components/Snackbar/SnackbarRoot.vue
|
|
4133
4197
|
const [useSnackbarRootContext, provideSnackbarRootContext] = createContext({ suffix: "root" });
|
|
4134
|
-
const _sfc_main$
|
|
4198
|
+
const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
4135
4199
|
name: "SnackbarRoot",
|
|
4136
4200
|
__name: "SnackbarRoot",
|
|
4137
4201
|
props: {
|
|
@@ -4157,7 +4221,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
4157
4221
|
attrs: { role: "status" }
|
|
4158
4222
|
}));
|
|
4159
4223
|
return (_ctx, _cache) => {
|
|
4160
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4224
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, { as: __props.as }), {
|
|
4161
4225
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4162
4226
|
_: 3
|
|
4163
4227
|
}, 16, ["as"]);
|
|
@@ -4166,7 +4230,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
4166
4230
|
});
|
|
4167
4231
|
//#endregion
|
|
4168
4232
|
//#region src/components/Snackbar/SnackbarContent.vue
|
|
4169
|
-
const _sfc_main$
|
|
4233
|
+
const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
4170
4234
|
name: "SnackbarContent",
|
|
4171
4235
|
__name: "SnackbarContent",
|
|
4172
4236
|
props: {
|
|
@@ -4175,7 +4239,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
4175
4239
|
},
|
|
4176
4240
|
setup(__props) {
|
|
4177
4241
|
return (_ctx, _cache) => {
|
|
4178
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4242
|
+
return openBlock(), createBlock(unref(_sfc_main$104), { as: __props.as }, {
|
|
4179
4243
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
4180
4244
|
_: 3
|
|
4181
4245
|
}, 8, ["as"]);
|
|
@@ -4184,7 +4248,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
4184
4248
|
});
|
|
4185
4249
|
//#endregion
|
|
4186
4250
|
//#region src/components/Snackbar/SnackbarClose.vue
|
|
4187
|
-
const _sfc_main$
|
|
4251
|
+
const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
4188
4252
|
name: "SnackbarClose",
|
|
4189
4253
|
__name: "SnackbarClose",
|
|
4190
4254
|
props: {
|
|
@@ -4203,7 +4267,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
4203
4267
|
"onClick": onClick
|
|
4204
4268
|
} }));
|
|
4205
4269
|
return (_ctx, _cache) => {
|
|
4206
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4270
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, { as: __props.as }), {
|
|
4207
4271
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4208
4272
|
_: 3
|
|
4209
4273
|
}, 16, ["as"]);
|
|
@@ -4238,16 +4302,16 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
4238
4302
|
* ```
|
|
4239
4303
|
*/
|
|
4240
4304
|
const Snackbar = {
|
|
4241
|
-
Portal: _sfc_main$
|
|
4242
|
-
Queue: _sfc_main$
|
|
4243
|
-
Root: _sfc_main$
|
|
4244
|
-
Content: _sfc_main$
|
|
4245
|
-
Close: _sfc_main$
|
|
4305
|
+
Portal: _sfc_main$37,
|
|
4306
|
+
Queue: _sfc_main$36,
|
|
4307
|
+
Root: _sfc_main$35,
|
|
4308
|
+
Content: _sfc_main$34,
|
|
4309
|
+
Close: _sfc_main$33
|
|
4246
4310
|
};
|
|
4247
4311
|
//#endregion
|
|
4248
4312
|
//#region src/components/Slider/SliderRoot.vue
|
|
4249
4313
|
const [useSliderRoot, provideSliderRoot] = createContext();
|
|
4250
|
-
const _sfc_main$
|
|
4314
|
+
const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
4251
4315
|
name: "SliderRoot",
|
|
4252
4316
|
inheritAttrs: false,
|
|
4253
4317
|
__name: "SliderRoot",
|
|
@@ -4369,7 +4433,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
4369
4433
|
}
|
|
4370
4434
|
}));
|
|
4371
4435
|
return (_ctx, _cache) => {
|
|
4372
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
4436
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$104), mergeProps({
|
|
4373
4437
|
...unref(attrs),
|
|
4374
4438
|
...slotProps.value.attrs
|
|
4375
4439
|
}, {
|
|
@@ -4379,7 +4443,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
4379
4443
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4380
4444
|
_: 3
|
|
4381
4445
|
}, 16, ["as", "renderless"]), __props.name ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(slider).values.value, (_, index) => {
|
|
4382
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4446
|
+
return openBlock(), createBlock(_sfc_main$31, {
|
|
4383
4447
|
key: index,
|
|
4384
4448
|
index
|
|
4385
4449
|
}, null, 8, ["index"]);
|
|
@@ -4395,7 +4459,7 @@ const _hoisted_1$1 = [
|
|
|
4395
4459
|
"name",
|
|
4396
4460
|
"value"
|
|
4397
4461
|
];
|
|
4398
|
-
const _sfc_main$
|
|
4462
|
+
const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
4399
4463
|
name: "SliderHiddenInput",
|
|
4400
4464
|
__name: "SliderHiddenInput",
|
|
4401
4465
|
props: {
|
|
@@ -4420,7 +4484,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
4420
4484
|
});
|
|
4421
4485
|
//#endregion
|
|
4422
4486
|
//#region src/components/Slider/SliderRange.vue
|
|
4423
|
-
const _sfc_main$
|
|
4487
|
+
const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
4424
4488
|
name: "SliderRange",
|
|
4425
4489
|
inheritAttrs: false,
|
|
4426
4490
|
__name: "SliderRange",
|
|
@@ -4461,7 +4525,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
4461
4525
|
}
|
|
4462
4526
|
}));
|
|
4463
4527
|
return (_ctx, _cache) => {
|
|
4464
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4528
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
4465
4529
|
...unref(attrs),
|
|
4466
4530
|
...slotProps.value.attrs
|
|
4467
4531
|
}, {
|
|
@@ -4481,7 +4545,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
4481
4545
|
});
|
|
4482
4546
|
//#endregion
|
|
4483
4547
|
//#region src/components/Slider/SliderThumb.vue
|
|
4484
|
-
const _sfc_main$
|
|
4548
|
+
const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
4485
4549
|
name: "SliderThumb",
|
|
4486
4550
|
inheritAttrs: false,
|
|
4487
4551
|
__name: "SliderThumb",
|
|
@@ -4575,7 +4639,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4575
4639
|
}
|
|
4576
4640
|
}));
|
|
4577
4641
|
return (_ctx, _cache) => {
|
|
4578
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4642
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ ref: "thumb" }, {
|
|
4579
4643
|
...unref(attrs),
|
|
4580
4644
|
...slotProps.value.attrs
|
|
4581
4645
|
}, {
|
|
@@ -4595,7 +4659,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4595
4659
|
});
|
|
4596
4660
|
//#endregion
|
|
4597
4661
|
//#region src/components/Slider/SliderTrack.vue
|
|
4598
|
-
const _sfc_main$
|
|
4662
|
+
const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
4599
4663
|
name: "SliderTrack",
|
|
4600
4664
|
inheritAttrs: false,
|
|
4601
4665
|
__name: "SliderTrack",
|
|
@@ -4644,7 +4708,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
4644
4708
|
"onPointerdown": onPointerdown
|
|
4645
4709
|
} }));
|
|
4646
4710
|
return (_ctx, _cache) => {
|
|
4647
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4711
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ ref: "track" }, {
|
|
4648
4712
|
...unref(attrs),
|
|
4649
4713
|
...slotProps.value.attrs
|
|
4650
4714
|
}, {
|
|
@@ -4689,16 +4753,16 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
4689
4753
|
* ```
|
|
4690
4754
|
*/
|
|
4691
4755
|
const Slider = {
|
|
4692
|
-
Root: _sfc_main$
|
|
4693
|
-
Track: _sfc_main$
|
|
4694
|
-
Range: _sfc_main$
|
|
4695
|
-
Thumb: _sfc_main$
|
|
4696
|
-
HiddenInput: _sfc_main$
|
|
4756
|
+
Root: _sfc_main$32,
|
|
4757
|
+
Track: _sfc_main$28,
|
|
4758
|
+
Range: _sfc_main$30,
|
|
4759
|
+
Thumb: _sfc_main$29,
|
|
4760
|
+
HiddenInput: _sfc_main$31
|
|
4697
4761
|
};
|
|
4698
4762
|
//#endregion
|
|
4699
4763
|
//#region src/components/Splitter/SplitterRoot.vue
|
|
4700
4764
|
const [useSplitterRoot, provideSplitterRoot] = createContext("v0:splitter");
|
|
4701
|
-
const _sfc_main$
|
|
4765
|
+
const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
4702
4766
|
name: "SplitterRoot",
|
|
4703
4767
|
inheritAttrs: false,
|
|
4704
4768
|
__name: "SplitterRoot",
|
|
@@ -4719,6 +4783,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4719
4783
|
const rootEl = toRef(() => rootAtom.value?.element ?? null);
|
|
4720
4784
|
const draggingHandle = shallowRef(null);
|
|
4721
4785
|
const dragging = toRef(() => !/* @__PURE__ */ isNull(draggingHandle.value));
|
|
4786
|
+
const expandAccum = /* @__PURE__ */ new Map();
|
|
4787
|
+
const EXPAND_THRESHOLD = 5;
|
|
4722
4788
|
const panels = createSelection({
|
|
4723
4789
|
multiple: true,
|
|
4724
4790
|
enroll: true,
|
|
@@ -4748,15 +4814,38 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4748
4814
|
const min2 = effectiveMin(after);
|
|
4749
4815
|
const lower = Math.max(min1, total - after.maxSize);
|
|
4750
4816
|
const upper = Math.min(before.maxSize, total - min2);
|
|
4751
|
-
|
|
4817
|
+
let size = /* @__PURE__ */ clamp(before.size + delta, lower, upper);
|
|
4818
|
+
const beforeCollapsed = !toValue(before.isSelected);
|
|
4819
|
+
if (before.collapsible && !beforeCollapsed && size <= before.minSize && delta < 0) {
|
|
4820
|
+
size = before.collapsedSize;
|
|
4821
|
+
before.unselect();
|
|
4822
|
+
expandAccum.set(before.id, 0);
|
|
4823
|
+
} else if (before.collapsible && beforeCollapsed && delta > 0) {
|
|
4824
|
+
const accum = (expandAccum.get(before.id) ?? 0) + delta;
|
|
4825
|
+
expandAccum.set(before.id, accum);
|
|
4826
|
+
if (accum >= EXPAND_THRESHOLD) {
|
|
4827
|
+
size = /* @__PURE__ */ clamp(Math.max(accum, before.minSize), before.minSize, before.maxSize);
|
|
4828
|
+
before.select();
|
|
4829
|
+
expandAccum.delete(before.id);
|
|
4830
|
+
} else size = before.collapsedSize;
|
|
4831
|
+
}
|
|
4832
|
+
const afterSize = total - size;
|
|
4833
|
+
const afterCollapsed = !toValue(after.isSelected);
|
|
4834
|
+
if (after.collapsible && !afterCollapsed && afterSize <= after.minSize && delta > 0) {
|
|
4835
|
+
size = total - after.collapsedSize;
|
|
4836
|
+
after.unselect();
|
|
4837
|
+
expandAccum.set(after.id, 0);
|
|
4838
|
+
} else if (after.collapsible && afterCollapsed && delta < 0) {
|
|
4839
|
+
const accum = (expandAccum.get(after.id) ?? 0) + Math.abs(delta);
|
|
4840
|
+
expandAccum.set(after.id, accum);
|
|
4841
|
+
if (accum >= EXPAND_THRESHOLD) {
|
|
4842
|
+
size = total - /* @__PURE__ */ clamp(Math.max(accum, after.minSize), after.minSize, after.maxSize);
|
|
4843
|
+
after.select();
|
|
4844
|
+
expandAccum.delete(after.id);
|
|
4845
|
+
} else size = total - after.collapsedSize;
|
|
4846
|
+
}
|
|
4752
4847
|
before.size = size;
|
|
4753
4848
|
after.size = total - size;
|
|
4754
|
-
for (const p of [before, after]) {
|
|
4755
|
-
if (!p.collapsible) continue;
|
|
4756
|
-
const collapsed = !toValue(p.isSelected);
|
|
4757
|
-
if (!collapsed && p.size <= p.collapsedSize) p.unselect();
|
|
4758
|
-
else if (collapsed && p.size > p.collapsedSize) p.select();
|
|
4759
|
-
}
|
|
4760
4849
|
if (options?.emit) emitLayout();
|
|
4761
4850
|
}
|
|
4762
4851
|
function collapse(index, neighborIndex) {
|
|
@@ -4823,6 +4912,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4823
4912
|
}
|
|
4824
4913
|
function onEndDrag() {
|
|
4825
4914
|
draggingHandle.value = null;
|
|
4915
|
+
expandAccum.clear();
|
|
4826
4916
|
emitLayout();
|
|
4827
4917
|
}
|
|
4828
4918
|
function emitLayout() {
|
|
@@ -4857,7 +4947,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4857
4947
|
}
|
|
4858
4948
|
}));
|
|
4859
4949
|
return (_ctx, _cache) => {
|
|
4860
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4950
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ ref: "root" }, {
|
|
4861
4951
|
...unref(attrs),
|
|
4862
4952
|
...slotProps.value.attrs
|
|
4863
4953
|
}, {
|
|
@@ -4884,7 +4974,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4884
4974
|
});
|
|
4885
4975
|
//#endregion
|
|
4886
4976
|
//#region src/components/Splitter/SplitterPanel.vue
|
|
4887
|
-
const _sfc_main$
|
|
4977
|
+
const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
4888
4978
|
name: "SplitterPanel",
|
|
4889
4979
|
inheritAttrs: false,
|
|
4890
4980
|
__name: "SplitterPanel",
|
|
@@ -4913,18 +5003,29 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4913
5003
|
const emit = __emit;
|
|
4914
5004
|
const splitter = useSplitterRoot();
|
|
4915
5005
|
const panelId = /* @__PURE__ */ useId$1();
|
|
5006
|
+
const rootSize = shallowRef(0);
|
|
5007
|
+
if (/* @__PURE__ */ isString(__props.maxSize)) useResizeObserver(splitter.rootEl, (entries) => {
|
|
5008
|
+
const rect = entries[0]?.contentRect;
|
|
5009
|
+
rootSize.value = splitter.orientation.value === "horizontal" ? rect?.width ?? 0 : rect?.height ?? 0;
|
|
5010
|
+
});
|
|
5011
|
+
function resolveMaxSize() {
|
|
5012
|
+
if (!/* @__PURE__ */ isString(__props.maxSize)) return __props.maxSize;
|
|
5013
|
+
const px = Number.parseFloat(__props.maxSize);
|
|
5014
|
+
const dimension = rootSize.value || (splitter.orientation.value === "horizontal" ? splitter.rootEl.value?.offsetWidth : splitter.rootEl.value?.offsetHeight) || 0;
|
|
5015
|
+
return dimension > 0 ? px / dimension * 100 : 100;
|
|
5016
|
+
}
|
|
4916
5017
|
const ticket = splitter.panels.register({
|
|
4917
5018
|
id: panelId,
|
|
4918
5019
|
size: __props.defaultSize,
|
|
4919
5020
|
minSize: __props.minSize,
|
|
4920
|
-
maxSize:
|
|
5021
|
+
maxSize: resolveMaxSize(),
|
|
4921
5022
|
collapsible: __props.collapsible,
|
|
4922
5023
|
collapsedSize: __props.collapsedSize,
|
|
4923
5024
|
defaultSize: __props.defaultSize
|
|
4924
5025
|
});
|
|
4925
5026
|
watchEffect(() => {
|
|
4926
5027
|
ticket.minSize = __props.minSize;
|
|
4927
|
-
ticket.maxSize =
|
|
5028
|
+
ticket.maxSize = resolveMaxSize();
|
|
4928
5029
|
ticket.collapsible = __props.collapsible;
|
|
4929
5030
|
ticket.collapsedSize = __props.collapsedSize;
|
|
4930
5031
|
ticket.defaultSize = __props.defaultSize;
|
|
@@ -4972,7 +5073,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4972
5073
|
}
|
|
4973
5074
|
}));
|
|
4974
5075
|
return (_ctx, _cache) => {
|
|
4975
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5076
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
4976
5077
|
...unref(attrs),
|
|
4977
5078
|
...slotProps.value.attrs
|
|
4978
5079
|
}, {
|
|
@@ -5001,7 +5102,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
5001
5102
|
});
|
|
5002
5103
|
//#endregion
|
|
5003
5104
|
//#region src/components/Splitter/SplitterHandle.vue
|
|
5004
|
-
const _sfc_main$
|
|
5105
|
+
const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
5005
5106
|
name: "SplitterHandle",
|
|
5006
5107
|
inheritAttrs: false,
|
|
5007
5108
|
__name: "SplitterHandle",
|
|
@@ -5173,7 +5274,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
5173
5274
|
}
|
|
5174
5275
|
}));
|
|
5175
5276
|
return (_ctx, _cache) => {
|
|
5176
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5277
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
5177
5278
|
...unref(attrs),
|
|
5178
5279
|
...slotProps.value.attrs
|
|
5179
5280
|
}, {
|
|
@@ -5224,14 +5325,14 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
5224
5325
|
* ```
|
|
5225
5326
|
*/
|
|
5226
5327
|
const Splitter = {
|
|
5227
|
-
Root: _sfc_main$
|
|
5228
|
-
Panel: _sfc_main$
|
|
5229
|
-
Handle: _sfc_main$
|
|
5328
|
+
Root: _sfc_main$27,
|
|
5329
|
+
Panel: _sfc_main$26,
|
|
5330
|
+
Handle: _sfc_main$25
|
|
5230
5331
|
};
|
|
5231
5332
|
//#endregion
|
|
5232
5333
|
//#region src/components/Switch/SwitchGroup.vue
|
|
5233
5334
|
const [useSwitchGroup, provideSwitchGroup] = createContext();
|
|
5234
|
-
const _sfc_main$
|
|
5335
|
+
const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
5235
5336
|
name: "SwitchGroup",
|
|
5236
5337
|
__name: "SwitchGroup",
|
|
5237
5338
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -5287,7 +5388,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
5287
5388
|
}
|
|
5288
5389
|
}));
|
|
5289
5390
|
return (_ctx, _cache) => {
|
|
5290
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5391
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
5291
5392
|
as: __props.as,
|
|
5292
5393
|
renderless: __props.renderless
|
|
5293
5394
|
}), {
|
|
@@ -5300,7 +5401,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
5300
5401
|
//#endregion
|
|
5301
5402
|
//#region src/components/Switch/SwitchRoot.vue
|
|
5302
5403
|
const [useSwitchRoot, provideSwitchRoot] = createContext();
|
|
5303
|
-
const _sfc_main$
|
|
5404
|
+
const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
5304
5405
|
name: "SwitchRoot",
|
|
5305
5406
|
inheritAttrs: false,
|
|
5306
5407
|
__name: "SwitchRoot",
|
|
@@ -5419,7 +5520,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
5419
5520
|
}
|
|
5420
5521
|
}));
|
|
5421
5522
|
return (_ctx, _cache) => {
|
|
5422
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
5523
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$104), mergeProps({
|
|
5423
5524
|
...unref(attrs),
|
|
5424
5525
|
...slotProps.value.attrs
|
|
5425
5526
|
}, {
|
|
@@ -5430,7 +5531,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
5430
5531
|
}), {
|
|
5431
5532
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
5432
5533
|
_: 3
|
|
5433
|
-
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
5534
|
+
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$22, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
5434
5535
|
};
|
|
5435
5536
|
}
|
|
5436
5537
|
});
|
|
@@ -5454,7 +5555,7 @@ const visuallyHiddenStyle = {
|
|
|
5454
5555
|
whiteSpace: "nowrap",
|
|
5455
5556
|
border: "0"
|
|
5456
5557
|
};
|
|
5457
|
-
const _sfc_main$
|
|
5558
|
+
const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
5458
5559
|
name: "SwitchHiddenInput",
|
|
5459
5560
|
__name: "SwitchHiddenInput",
|
|
5460
5561
|
props: {
|
|
@@ -5492,29 +5593,27 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
5492
5593
|
});
|
|
5493
5594
|
//#endregion
|
|
5494
5595
|
//#region src/components/Switch/SwitchSelectAll.vue
|
|
5495
|
-
const _sfc_main$
|
|
5596
|
+
const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
5496
5597
|
name: "SwitchSelectAll",
|
|
5497
5598
|
inheritAttrs: false,
|
|
5498
5599
|
__name: "SwitchSelectAll",
|
|
5499
5600
|
props: {
|
|
5500
5601
|
label: {},
|
|
5501
5602
|
disabled: { type: Boolean },
|
|
5502
|
-
namespace: {},
|
|
5503
|
-
groupNamespace: {},
|
|
5603
|
+
namespace: { default: "v0:switch:root" },
|
|
5604
|
+
groupNamespace: { default: "v0:switch:group" },
|
|
5504
5605
|
ariaLabelledby: {},
|
|
5505
5606
|
ariaDescribedby: {},
|
|
5506
|
-
as: {},
|
|
5607
|
+
as: { default: "button" },
|
|
5507
5608
|
renderless: { type: Boolean }
|
|
5508
5609
|
},
|
|
5509
5610
|
setup(__props) {
|
|
5510
5611
|
const attrs = useAttrs();
|
|
5511
|
-
const
|
|
5512
|
-
const { as = "button", renderless, label, namespace = "v0:switch:root", groupNamespace = "v0:switch:group" } = props;
|
|
5513
|
-
const group = useSwitchGroup(groupNamespace);
|
|
5612
|
+
const group = useSwitchGroup(__props.groupNamespace);
|
|
5514
5613
|
const id = useId();
|
|
5515
5614
|
const isAllSelected = toRef(() => group.isAllSelected.value);
|
|
5516
5615
|
const isMixed = toRef(() => group.isMixed.value);
|
|
5517
|
-
const isDisabled = toRef(() => toValue(
|
|
5616
|
+
const isDisabled = toRef(() => toValue(__props.disabled) || toValue(group.disabled));
|
|
5518
5617
|
const dataState = toRef(() => isMixed.value ? "indeterminate" : isAllSelected.value ? "checked" : "unchecked");
|
|
5519
5618
|
function onClick() {
|
|
5520
5619
|
if (isDisabled.value) return;
|
|
@@ -5526,9 +5625,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
5526
5625
|
if (isDisabled.value) return;
|
|
5527
5626
|
group.toggleAll();
|
|
5528
5627
|
}
|
|
5529
|
-
|
|
5628
|
+
const context = {
|
|
5530
5629
|
id,
|
|
5531
|
-
label,
|
|
5630
|
+
label: __props.label,
|
|
5532
5631
|
value: void 0,
|
|
5533
5632
|
name: void 0,
|
|
5534
5633
|
form: void 0,
|
|
@@ -5540,9 +5639,10 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
5540
5639
|
toggle: group.toggleAll,
|
|
5541
5640
|
mix: () => {},
|
|
5542
5641
|
unmix: () => {}
|
|
5543
|
-
}
|
|
5642
|
+
};
|
|
5643
|
+
provideSwitchRoot(__props.namespace, context);
|
|
5544
5644
|
const slotProps = toRef(() => ({
|
|
5545
|
-
label,
|
|
5645
|
+
label: __props.label,
|
|
5546
5646
|
isAllSelected: isAllSelected.value,
|
|
5547
5647
|
isMixed: isMixed.value,
|
|
5548
5648
|
isDisabled: isDisabled.value,
|
|
@@ -5550,25 +5650,25 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
5550
5650
|
unselectAll: group.unselectAll,
|
|
5551
5651
|
toggleAll: group.toggleAll,
|
|
5552
5652
|
attrs: {
|
|
5553
|
-
"type": as === "button" ? "button" : void 0,
|
|
5653
|
+
"type": __props.as === "button" ? "button" : void 0,
|
|
5554
5654
|
"role": "switch",
|
|
5555
5655
|
"aria-checked": isMixed.value ? "mixed" : isAllSelected.value,
|
|
5556
5656
|
"aria-disabled": isDisabled.value || void 0,
|
|
5557
|
-
"aria-label": label || void 0,
|
|
5558
|
-
"aria-labelledby":
|
|
5559
|
-
"aria-describedby":
|
|
5657
|
+
"aria-label": __props.label || void 0,
|
|
5658
|
+
"aria-labelledby": __props.ariaLabelledby || void 0,
|
|
5659
|
+
"aria-describedby": __props.ariaDescribedby || void 0,
|
|
5560
5660
|
"tabindex": isDisabled.value ? void 0 : 0,
|
|
5561
5661
|
"data-state": dataState.value,
|
|
5562
5662
|
"data-disabled": isDisabled.value ? true : void 0
|
|
5563
5663
|
}
|
|
5564
5664
|
}));
|
|
5565
5665
|
return (_ctx, _cache) => {
|
|
5566
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5666
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
5567
5667
|
...unref(attrs),
|
|
5568
5668
|
...slotProps.value.attrs
|
|
5569
5669
|
}, {
|
|
5570
|
-
as:
|
|
5571
|
-
renderless:
|
|
5670
|
+
as: __props.as,
|
|
5671
|
+
renderless: __props.renderless,
|
|
5572
5672
|
onClick,
|
|
5573
5673
|
onKeydown
|
|
5574
5674
|
}), {
|
|
@@ -5580,7 +5680,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
5580
5680
|
});
|
|
5581
5681
|
//#endregion
|
|
5582
5682
|
//#region src/components/Switch/SwitchThumb.vue
|
|
5583
|
-
const _sfc_main$
|
|
5683
|
+
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
5584
5684
|
name: "SwitchThumb",
|
|
5585
5685
|
__name: "SwitchThumb",
|
|
5586
5686
|
props: {
|
|
@@ -5603,7 +5703,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5603
5703
|
}
|
|
5604
5704
|
}));
|
|
5605
5705
|
return (_ctx, _cache) => {
|
|
5606
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5706
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
5607
5707
|
as: __props.as,
|
|
5608
5708
|
renderless: __props.renderless
|
|
5609
5709
|
}), {
|
|
@@ -5615,7 +5715,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5615
5715
|
});
|
|
5616
5716
|
//#endregion
|
|
5617
5717
|
//#region src/components/Switch/SwitchTrack.vue
|
|
5618
|
-
const _sfc_main$
|
|
5718
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
5619
5719
|
name: "SwitchTrack",
|
|
5620
5720
|
__name: "SwitchTrack",
|
|
5621
5721
|
props: {
|
|
@@ -5634,7 +5734,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
5634
5734
|
attrs: { "data-state": dataState.value }
|
|
5635
5735
|
}));
|
|
5636
5736
|
return (_ctx, _cache) => {
|
|
5637
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5737
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
5638
5738
|
as: __props.as,
|
|
5639
5739
|
dir: "ltr",
|
|
5640
5740
|
renderless: __props.renderless
|
|
@@ -5674,17 +5774,17 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
5674
5774
|
* ```
|
|
5675
5775
|
*/
|
|
5676
5776
|
const Switch = {
|
|
5677
|
-
Group: _sfc_main$
|
|
5678
|
-
HiddenInput: _sfc_main$
|
|
5679
|
-
Root: _sfc_main$
|
|
5680
|
-
SelectAll: _sfc_main$
|
|
5681
|
-
Thumb: _sfc_main$
|
|
5682
|
-
Track: _sfc_main$
|
|
5777
|
+
Group: _sfc_main$24,
|
|
5778
|
+
HiddenInput: _sfc_main$22,
|
|
5779
|
+
Root: _sfc_main$23,
|
|
5780
|
+
SelectAll: _sfc_main$21,
|
|
5781
|
+
Thumb: _sfc_main$20,
|
|
5782
|
+
Track: _sfc_main$19
|
|
5683
5783
|
};
|
|
5684
5784
|
//#endregion
|
|
5685
5785
|
//#region src/components/Single/SingleRoot.vue
|
|
5686
5786
|
const [useSingleRoot, provideSingleRoot] = createContext();
|
|
5687
|
-
const _sfc_main$
|
|
5787
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
5688
5788
|
name: "SingleRoot",
|
|
5689
5789
|
__name: "SingleRoot",
|
|
5690
5790
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -5730,7 +5830,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
5730
5830
|
});
|
|
5731
5831
|
//#endregion
|
|
5732
5832
|
//#region src/components/Single/SingleItem.vue
|
|
5733
|
-
const _sfc_main$
|
|
5833
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
5734
5834
|
name: "SingleItem",
|
|
5735
5835
|
__name: "SingleItem",
|
|
5736
5836
|
props: {
|
|
@@ -5780,13 +5880,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5780
5880
|
* @see https://0.vuetifyjs.com/components/single
|
|
5781
5881
|
*/
|
|
5782
5882
|
const Single = {
|
|
5783
|
-
Root: _sfc_main$
|
|
5784
|
-
Item: _sfc_main$
|
|
5883
|
+
Root: _sfc_main$18,
|
|
5884
|
+
Item: _sfc_main$17
|
|
5785
5885
|
};
|
|
5786
5886
|
//#endregion
|
|
5787
5887
|
//#region src/components/Step/StepRoot.vue
|
|
5788
5888
|
const [useStepRoot, provideStepRoot] = createContext();
|
|
5789
|
-
const _sfc_main$
|
|
5889
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
5790
5890
|
name: "StepRoot",
|
|
5791
5891
|
__name: "StepRoot",
|
|
5792
5892
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -5837,7 +5937,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
5837
5937
|
});
|
|
5838
5938
|
//#endregion
|
|
5839
5939
|
//#region src/components/Step/StepItem.vue
|
|
5840
|
-
const _sfc_main$
|
|
5940
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
5841
5941
|
name: "StepItem",
|
|
5842
5942
|
__name: "StepItem",
|
|
5843
5943
|
props: {
|
|
@@ -5887,13 +5987,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5887
5987
|
* @see https://0.vuetifyjs.com/components/step
|
|
5888
5988
|
*/
|
|
5889
5989
|
const Step = {
|
|
5890
|
-
Root: _sfc_main$
|
|
5891
|
-
Item: _sfc_main$
|
|
5990
|
+
Root: _sfc_main$16,
|
|
5991
|
+
Item: _sfc_main$15
|
|
5892
5992
|
};
|
|
5893
5993
|
//#endregion
|
|
5894
5994
|
//#region src/components/Tabs/TabsRoot.vue
|
|
5895
5995
|
const [useTabsRoot, provideTabsRoot] = createContext();
|
|
5896
|
-
const _sfc_main$
|
|
5996
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
5897
5997
|
name: "TabsRoot",
|
|
5898
5998
|
__name: "TabsRoot",
|
|
5899
5999
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -5961,7 +6061,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
5961
6061
|
});
|
|
5962
6062
|
//#endregion
|
|
5963
6063
|
//#region src/components/Tabs/TabsList.vue
|
|
5964
|
-
const _sfc_main$
|
|
6064
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
5965
6065
|
name: "TabsList",
|
|
5966
6066
|
inheritAttrs: false,
|
|
5967
6067
|
__name: "TabsList",
|
|
@@ -5987,7 +6087,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5987
6087
|
}
|
|
5988
6088
|
}));
|
|
5989
6089
|
return (_ctx, _cache) => {
|
|
5990
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6090
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
5991
6091
|
...unref(attrs),
|
|
5992
6092
|
...slotProps.value.attrs
|
|
5993
6093
|
}, {
|
|
@@ -6002,7 +6102,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6002
6102
|
});
|
|
6003
6103
|
//#endregion
|
|
6004
6104
|
//#region src/components/Tabs/TabsItem.vue
|
|
6005
|
-
const _sfc_main$
|
|
6105
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
6006
6106
|
name: "TabsItem",
|
|
6007
6107
|
inheritAttrs: false,
|
|
6008
6108
|
__name: "TabsItem",
|
|
@@ -6040,33 +6140,69 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6040
6140
|
if (selected) toValue(selected.el)?.focus();
|
|
6041
6141
|
});
|
|
6042
6142
|
}
|
|
6143
|
+
function focusAdjacent(direction) {
|
|
6144
|
+
const all = tabs.values();
|
|
6145
|
+
const current = all.findIndex((t) => t.id === ticket.id);
|
|
6146
|
+
const length = all.length;
|
|
6147
|
+
const circular = tabs.circular.value;
|
|
6148
|
+
let index = current + direction;
|
|
6149
|
+
let hops = 0;
|
|
6150
|
+
while (hops < length) {
|
|
6151
|
+
if (circular) index = (index % length + length) % length;
|
|
6152
|
+
else if (index < 0 || index >= length) return;
|
|
6153
|
+
const item = all[index];
|
|
6154
|
+
if (item && !toValue(item.disabled)) {
|
|
6155
|
+
nextTick(() => toValue(item.el)?.focus());
|
|
6156
|
+
return;
|
|
6157
|
+
}
|
|
6158
|
+
index += direction;
|
|
6159
|
+
hops++;
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
function focusEdge(edge) {
|
|
6163
|
+
const item = tabs.seek(edge);
|
|
6164
|
+
if (item) nextTick(() => toValue(item.el)?.focus());
|
|
6165
|
+
}
|
|
6043
6166
|
function onKeydown(e) {
|
|
6044
6167
|
const isHorizontal = tabs.orientation.value === "horizontal";
|
|
6168
|
+
const manual = tabs.activation.value === "manual";
|
|
6045
6169
|
if (isHorizontal && e.key === "ArrowRight" || !isHorizontal && e.key === "ArrowDown") {
|
|
6046
6170
|
e.preventDefault();
|
|
6047
|
-
|
|
6048
|
-
|
|
6171
|
+
if (manual) focusAdjacent(1);
|
|
6172
|
+
else {
|
|
6173
|
+
tabs.next();
|
|
6174
|
+
focusSelectedTab();
|
|
6175
|
+
}
|
|
6049
6176
|
return;
|
|
6050
6177
|
}
|
|
6051
6178
|
if (isHorizontal && e.key === "ArrowLeft" || !isHorizontal && e.key === "ArrowUp") {
|
|
6052
6179
|
e.preventDefault();
|
|
6053
|
-
|
|
6054
|
-
|
|
6180
|
+
if (manual) focusAdjacent(-1);
|
|
6181
|
+
else {
|
|
6182
|
+
tabs.prev();
|
|
6183
|
+
focusSelectedTab();
|
|
6184
|
+
}
|
|
6055
6185
|
return;
|
|
6056
6186
|
}
|
|
6057
6187
|
if (e.key === "Home") {
|
|
6058
6188
|
e.preventDefault();
|
|
6059
|
-
|
|
6060
|
-
|
|
6189
|
+
if (manual) focusEdge("first");
|
|
6190
|
+
else {
|
|
6191
|
+
tabs.first();
|
|
6192
|
+
focusSelectedTab();
|
|
6193
|
+
}
|
|
6061
6194
|
return;
|
|
6062
6195
|
}
|
|
6063
6196
|
if (e.key === "End") {
|
|
6064
6197
|
e.preventDefault();
|
|
6065
|
-
|
|
6066
|
-
|
|
6198
|
+
if (manual) focusEdge("last");
|
|
6199
|
+
else {
|
|
6200
|
+
tabs.last();
|
|
6201
|
+
focusSelectedTab();
|
|
6202
|
+
}
|
|
6067
6203
|
return;
|
|
6068
6204
|
}
|
|
6069
|
-
if (
|
|
6205
|
+
if (manual && (e.key === "Enter" || e.key === " ")) {
|
|
6070
6206
|
e.preventDefault();
|
|
6071
6207
|
ticket.select();
|
|
6072
6208
|
}
|
|
@@ -6102,7 +6238,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6102
6238
|
}
|
|
6103
6239
|
}));
|
|
6104
6240
|
return (_ctx, _cache) => {
|
|
6105
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6241
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({ ref: "root" }, {
|
|
6106
6242
|
...unref(attrs),
|
|
6107
6243
|
...slotProps.value.attrs
|
|
6108
6244
|
}, {
|
|
@@ -6117,7 +6253,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6117
6253
|
});
|
|
6118
6254
|
//#endregion
|
|
6119
6255
|
//#region src/components/Tabs/TabsPanel.vue
|
|
6120
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6256
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
6121
6257
|
name: "TabsPanel",
|
|
6122
6258
|
inheritAttrs: false,
|
|
6123
6259
|
__name: "TabsPanel",
|
|
@@ -6154,7 +6290,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6154
6290
|
}
|
|
6155
6291
|
}));
|
|
6156
6292
|
return (_ctx, _cache) => {
|
|
6157
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6293
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps({
|
|
6158
6294
|
...unref(attrs),
|
|
6159
6295
|
...slotProps.value.attrs
|
|
6160
6296
|
}, {
|
|
@@ -6198,10 +6334,676 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6198
6334
|
* ```
|
|
6199
6335
|
*/
|
|
6200
6336
|
const Tabs = {
|
|
6201
|
-
Root: _sfc_main$
|
|
6202
|
-
List: _sfc_main$
|
|
6203
|
-
Item: _sfc_main$
|
|
6204
|
-
Panel: _sfc_main
|
|
6337
|
+
Root: _sfc_main$14,
|
|
6338
|
+
List: _sfc_main$13,
|
|
6339
|
+
Item: _sfc_main$12,
|
|
6340
|
+
Panel: _sfc_main$11
|
|
6341
|
+
};
|
|
6342
|
+
//#endregion
|
|
6343
|
+
//#region src/components/Theme/Theme.vue
|
|
6344
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
6345
|
+
name: "Theme",
|
|
6346
|
+
inheritAttrs: false,
|
|
6347
|
+
__name: "Theme",
|
|
6348
|
+
props: {
|
|
6349
|
+
theme: {},
|
|
6350
|
+
renderless: {
|
|
6351
|
+
type: Boolean,
|
|
6352
|
+
default: false
|
|
6353
|
+
},
|
|
6354
|
+
as: { default: "div" }
|
|
6355
|
+
},
|
|
6356
|
+
setup(__props) {
|
|
6357
|
+
const parent = useTheme();
|
|
6358
|
+
const selectedId = toRef(() => __props.theme);
|
|
6359
|
+
const selectedItem = toRef(() => parent.get(__props.theme));
|
|
6360
|
+
const isDark = toRef(() => selectedItem.value?.dark ?? false);
|
|
6361
|
+
provideContext("v0:theme", {
|
|
6362
|
+
...parent,
|
|
6363
|
+
selectedId,
|
|
6364
|
+
selectedItem,
|
|
6365
|
+
isDark
|
|
6366
|
+
});
|
|
6367
|
+
const attrs = toRef(() => ({ "data-theme": __props.theme }));
|
|
6368
|
+
return (_ctx, _cache) => {
|
|
6369
|
+
return __props.renderless ? renderSlot(_ctx.$slots, "default", {
|
|
6370
|
+
key: 0,
|
|
6371
|
+
attrs: attrs.value
|
|
6372
|
+
}) : (openBlock(), createBlock(resolveDynamicComponent(__props.as), normalizeProps(mergeProps({ key: 1 }, attrs.value)), {
|
|
6373
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { attrs: attrs.value })]),
|
|
6374
|
+
_: 3
|
|
6375
|
+
}, 16));
|
|
6376
|
+
};
|
|
6377
|
+
}
|
|
6378
|
+
});
|
|
6379
|
+
//#endregion
|
|
6380
|
+
//#region src/components/Treeview/TreeviewRoot.vue
|
|
6381
|
+
const [useTreeviewRoot, provideTreeviewRoot] = createContext();
|
|
6382
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
6383
|
+
name: "TreeviewRoot",
|
|
6384
|
+
__name: "TreeviewRoot",
|
|
6385
|
+
props: /* @__PURE__ */ mergeModels({
|
|
6386
|
+
namespace: { default: "v0:treeview" },
|
|
6387
|
+
disabled: {
|
|
6388
|
+
type: Boolean,
|
|
6389
|
+
default: false
|
|
6390
|
+
},
|
|
6391
|
+
enroll: {
|
|
6392
|
+
type: Boolean,
|
|
6393
|
+
default: false
|
|
6394
|
+
},
|
|
6395
|
+
mandatory: {
|
|
6396
|
+
type: [Boolean, String],
|
|
6397
|
+
default: false
|
|
6398
|
+
},
|
|
6399
|
+
multiple: {
|
|
6400
|
+
type: Boolean,
|
|
6401
|
+
default: true
|
|
6402
|
+
},
|
|
6403
|
+
open: { default: "multiple" },
|
|
6404
|
+
openAll: {
|
|
6405
|
+
type: Boolean,
|
|
6406
|
+
default: false
|
|
6407
|
+
},
|
|
6408
|
+
reveal: {
|
|
6409
|
+
type: Boolean,
|
|
6410
|
+
default: false
|
|
6411
|
+
},
|
|
6412
|
+
selection: { default: "cascade" },
|
|
6413
|
+
active: { default: "single" }
|
|
6414
|
+
}, {
|
|
6415
|
+
"modelValue": {},
|
|
6416
|
+
"modelModifiers": {}
|
|
6417
|
+
}),
|
|
6418
|
+
emits: /* @__PURE__ */ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
6419
|
+
setup(__props) {
|
|
6420
|
+
const model = useModel(__props, "modelValue");
|
|
6421
|
+
const nested = createNested({
|
|
6422
|
+
disabled: toRef(() => __props.disabled),
|
|
6423
|
+
enroll: __props.enroll,
|
|
6424
|
+
mandatory: __props.mandatory,
|
|
6425
|
+
multiple: __props.multiple,
|
|
6426
|
+
open: __props.open,
|
|
6427
|
+
openAll: __props.openAll,
|
|
6428
|
+
reveal: __props.reveal,
|
|
6429
|
+
selection: __props.selection,
|
|
6430
|
+
active: __props.active,
|
|
6431
|
+
events: true
|
|
6432
|
+
});
|
|
6433
|
+
useProxyModel(nested, model, { multiple: __props.multiple });
|
|
6434
|
+
provideTreeviewRoot(__props.namespace, nested);
|
|
6435
|
+
const slotProps = toRef(() => ({
|
|
6436
|
+
isDisabled: toValue(nested.disabled),
|
|
6437
|
+
isNoneSelected: nested.isNoneSelected.value,
|
|
6438
|
+
isAllSelected: nested.isAllSelected.value,
|
|
6439
|
+
isMixed: nested.isMixed.value,
|
|
6440
|
+
select: nested.select,
|
|
6441
|
+
unselect: nested.unselect,
|
|
6442
|
+
toggle: nested.toggle,
|
|
6443
|
+
selectAll: nested.selectAll,
|
|
6444
|
+
unselectAll: nested.unselectAll,
|
|
6445
|
+
expandAll: nested.expandAll,
|
|
6446
|
+
collapseAll: nested.collapseAll
|
|
6447
|
+
}));
|
|
6448
|
+
return (_ctx, _cache) => {
|
|
6449
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)));
|
|
6450
|
+
};
|
|
6451
|
+
}
|
|
6452
|
+
});
|
|
6453
|
+
//#endregion
|
|
6454
|
+
//#region src/components/Treeview/TreeviewList.vue
|
|
6455
|
+
const [useTreeviewList, provideTreeviewList] = createContext({ suffix: "list" });
|
|
6456
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
6457
|
+
name: "TreeviewList",
|
|
6458
|
+
__name: "TreeviewList",
|
|
6459
|
+
props: {
|
|
6460
|
+
namespace: { default: "v0:treeview" },
|
|
6461
|
+
multiselectable: { type: Boolean },
|
|
6462
|
+
label: {},
|
|
6463
|
+
as: { default: "ul" },
|
|
6464
|
+
renderless: { type: Boolean }
|
|
6465
|
+
},
|
|
6466
|
+
setup(__props) {
|
|
6467
|
+
const nested = useTreeviewRoot(__props.namespace);
|
|
6468
|
+
const roving = useRovingFocus(() => nested.visibleItems().map((item) => ({
|
|
6469
|
+
id: item.id,
|
|
6470
|
+
el: item.el,
|
|
6471
|
+
disabled: toRef(() => toValue(item.disabled))
|
|
6472
|
+
})), { orientation: "vertical" });
|
|
6473
|
+
provideTreeviewList(__props.namespace, roving);
|
|
6474
|
+
function onFocusin(e) {
|
|
6475
|
+
const target = e.target;
|
|
6476
|
+
if (target.getAttribute("role") !== "treeitem") return;
|
|
6477
|
+
const match = nested.visibleItems().find((item) => toValue(item.el) === target);
|
|
6478
|
+
if (match && roving.focusedId.value !== match.id) roving.focusedId.value = match.id;
|
|
6479
|
+
}
|
|
6480
|
+
function expandable(ticket) {
|
|
6481
|
+
if (!ticket) return false;
|
|
6482
|
+
return (toValue(ticket.el)?.hasAttribute("aria-expanded") ?? false) || !toValue(ticket.isLeaf);
|
|
6483
|
+
}
|
|
6484
|
+
function isRtl(e) {
|
|
6485
|
+
if (!IN_BROWSER) return false;
|
|
6486
|
+
const el = e.currentTarget;
|
|
6487
|
+
return el ? getComputedStyle(el).direction === "rtl" : false;
|
|
6488
|
+
}
|
|
6489
|
+
function openOrChild(ticket) {
|
|
6490
|
+
if (expandable(ticket) && !toValue(ticket.isOpen)) nested.open(ticket.id);
|
|
6491
|
+
else if (toValue(ticket.isOpen)) {
|
|
6492
|
+
const childIds = nested.children.get(ticket.id);
|
|
6493
|
+
if (childIds?.length) roving.focus(childIds[0]);
|
|
6494
|
+
}
|
|
6495
|
+
}
|
|
6496
|
+
function closeOrParent(ticket) {
|
|
6497
|
+
if (toValue(ticket.isOpen) && expandable(ticket)) nested.close(ticket.id);
|
|
6498
|
+
else if (!/* @__PURE__ */ isNullOrUndefined(ticket.parentId)) roving.focus(ticket.parentId);
|
|
6499
|
+
}
|
|
6500
|
+
function onKeydown(e) {
|
|
6501
|
+
const id = roving.focusedId.value;
|
|
6502
|
+
const ticket = /* @__PURE__ */ isNullOrUndefined(id) ? void 0 : nested.get(id);
|
|
6503
|
+
const rtl = isRtl(e);
|
|
6504
|
+
switch (e.key) {
|
|
6505
|
+
case "ArrowUp":
|
|
6506
|
+
e.preventDefault();
|
|
6507
|
+
roving.prev();
|
|
6508
|
+
break;
|
|
6509
|
+
case "ArrowDown":
|
|
6510
|
+
e.preventDefault();
|
|
6511
|
+
roving.next();
|
|
6512
|
+
break;
|
|
6513
|
+
case "ArrowRight":
|
|
6514
|
+
e.preventDefault();
|
|
6515
|
+
if (!ticket) break;
|
|
6516
|
+
if (rtl) closeOrParent(ticket);
|
|
6517
|
+
else openOrChild(ticket);
|
|
6518
|
+
break;
|
|
6519
|
+
case "ArrowLeft":
|
|
6520
|
+
e.preventDefault();
|
|
6521
|
+
if (!ticket) break;
|
|
6522
|
+
if (rtl) openOrChild(ticket);
|
|
6523
|
+
else closeOrParent(ticket);
|
|
6524
|
+
break;
|
|
6525
|
+
case "Home":
|
|
6526
|
+
e.preventDefault();
|
|
6527
|
+
roving.first();
|
|
6528
|
+
break;
|
|
6529
|
+
case "End":
|
|
6530
|
+
e.preventDefault();
|
|
6531
|
+
roving.last();
|
|
6532
|
+
break;
|
|
6533
|
+
case "Enter":
|
|
6534
|
+
e.preventDefault();
|
|
6535
|
+
if (ticket) {
|
|
6536
|
+
if (expandable(ticket)) nested.flip(ticket.id);
|
|
6537
|
+
nested.activate(ticket.id);
|
|
6538
|
+
}
|
|
6539
|
+
break;
|
|
6540
|
+
case " ":
|
|
6541
|
+
e.preventDefault();
|
|
6542
|
+
if (ticket) nested.toggle(ticket.id);
|
|
6543
|
+
break;
|
|
6544
|
+
case "*":
|
|
6545
|
+
e.preventDefault();
|
|
6546
|
+
if (ticket) {
|
|
6547
|
+
const sibs = nested.siblings(ticket.id);
|
|
6548
|
+
for (const sibId of sibs) if (expandable(nested.get(sibId))) nested.open(sibId);
|
|
6549
|
+
}
|
|
6550
|
+
break;
|
|
6551
|
+
}
|
|
6552
|
+
}
|
|
6553
|
+
const slotProps = toRef(() => ({ attrs: {
|
|
6554
|
+
"role": "tree",
|
|
6555
|
+
"aria-multiselectable": __props.multiselectable ?? nested.multiple,
|
|
6556
|
+
"aria-label": __props.label || void 0,
|
|
6557
|
+
onKeydown,
|
|
6558
|
+
onFocusin
|
|
6559
|
+
} }));
|
|
6560
|
+
return (_ctx, _cache) => {
|
|
6561
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6562
|
+
as: __props.as,
|
|
6563
|
+
renderless: __props.renderless
|
|
6564
|
+
}), {
|
|
6565
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6566
|
+
_: 3
|
|
6567
|
+
}, 16, ["as", "renderless"]);
|
|
6568
|
+
};
|
|
6569
|
+
}
|
|
6570
|
+
});
|
|
6571
|
+
//#endregion
|
|
6572
|
+
//#region src/components/Treeview/TreeviewItem.vue
|
|
6573
|
+
const [useTreeviewItem, provideTreeviewItem] = createContext({ suffix: "item" });
|
|
6574
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
6575
|
+
name: "TreeviewItem",
|
|
6576
|
+
__name: "TreeviewItem",
|
|
6577
|
+
props: {
|
|
6578
|
+
id: {},
|
|
6579
|
+
value: {},
|
|
6580
|
+
disabled: {},
|
|
6581
|
+
namespace: { default: "v0:treeview" },
|
|
6582
|
+
as: { default: "li" },
|
|
6583
|
+
renderless: { type: Boolean }
|
|
6584
|
+
},
|
|
6585
|
+
setup(__props) {
|
|
6586
|
+
const nested = useTreeviewRoot(__props.namespace);
|
|
6587
|
+
const rootRef = useTemplateRef("root");
|
|
6588
|
+
const el = toRef(() => rootRef.value?.element ?? void 0);
|
|
6589
|
+
const parentId = useTreeviewItem(__props.namespace, null)?.ticket.id;
|
|
6590
|
+
const ticket = nested.register({
|
|
6591
|
+
id: __props.id,
|
|
6592
|
+
value: __props.value,
|
|
6593
|
+
disabled: __props.disabled,
|
|
6594
|
+
parentId,
|
|
6595
|
+
el
|
|
6596
|
+
});
|
|
6597
|
+
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(nested.disabled));
|
|
6598
|
+
const hasContent = shallowRef(false);
|
|
6599
|
+
const roving = useTreeviewList(__props.namespace, null);
|
|
6600
|
+
onBeforeUnmount(() => nested.unregister(ticket.id));
|
|
6601
|
+
provideTreeviewItem(__props.namespace, {
|
|
6602
|
+
ticket,
|
|
6603
|
+
isDisabled,
|
|
6604
|
+
hasContent
|
|
6605
|
+
});
|
|
6606
|
+
const slotProps = toRef(() => ({
|
|
6607
|
+
id: ticket.id,
|
|
6608
|
+
value: __props.value,
|
|
6609
|
+
isSelected: toValue(ticket.isSelected),
|
|
6610
|
+
isMixed: toValue(ticket.isMixed),
|
|
6611
|
+
isDisabled: toValue(isDisabled),
|
|
6612
|
+
isOpen: toValue(ticket.isOpen),
|
|
6613
|
+
isActive: toValue(ticket.isActive),
|
|
6614
|
+
isLeaf: toValue(ticket.isLeaf),
|
|
6615
|
+
depth: toValue(ticket.depth),
|
|
6616
|
+
select: ticket.select,
|
|
6617
|
+
unselect: ticket.unselect,
|
|
6618
|
+
toggle: ticket.toggle,
|
|
6619
|
+
flip: ticket.flip,
|
|
6620
|
+
open: ticket.open,
|
|
6621
|
+
close: ticket.close,
|
|
6622
|
+
activate: ticket.activate,
|
|
6623
|
+
deactivate: ticket.deactivate
|
|
6624
|
+
}));
|
|
6625
|
+
return (_ctx, _cache) => {
|
|
6626
|
+
return openBlock(), createBlock(unref(_sfc_main$104), {
|
|
6627
|
+
ref: "root",
|
|
6628
|
+
"aria-disabled": slotProps.value.isDisabled || void 0,
|
|
6629
|
+
"aria-expanded": hasContent.value ? slotProps.value.isOpen : void 0,
|
|
6630
|
+
"aria-level": slotProps.value.depth + 1,
|
|
6631
|
+
"aria-posinset": unref(ticket).position(),
|
|
6632
|
+
"aria-selected": slotProps.value.isSelected,
|
|
6633
|
+
"aria-setsize": unref(ticket).siblings().length,
|
|
6634
|
+
as: __props.as,
|
|
6635
|
+
"data-active": slotProps.value.isActive || void 0,
|
|
6636
|
+
"data-disabled": slotProps.value.isDisabled || void 0,
|
|
6637
|
+
"data-open": slotProps.value.isOpen || void 0,
|
|
6638
|
+
"data-selected": slotProps.value.isSelected || void 0,
|
|
6639
|
+
renderless: __props.renderless,
|
|
6640
|
+
role: "treeitem",
|
|
6641
|
+
style: normalizeStyle({ "--v0-treeview-depth": slotProps.value.depth }),
|
|
6642
|
+
tabindex: unref(roving) ? unref(roving).isTabbable(unref(ticket).id) ? 0 : -1 : void 0
|
|
6643
|
+
}, {
|
|
6644
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6645
|
+
_: 3
|
|
6646
|
+
}, 8, [
|
|
6647
|
+
"aria-disabled",
|
|
6648
|
+
"aria-expanded",
|
|
6649
|
+
"aria-level",
|
|
6650
|
+
"aria-posinset",
|
|
6651
|
+
"aria-selected",
|
|
6652
|
+
"aria-setsize",
|
|
6653
|
+
"as",
|
|
6654
|
+
"data-active",
|
|
6655
|
+
"data-disabled",
|
|
6656
|
+
"data-open",
|
|
6657
|
+
"data-selected",
|
|
6658
|
+
"renderless",
|
|
6659
|
+
"style",
|
|
6660
|
+
"tabindex"
|
|
6661
|
+
]);
|
|
6662
|
+
};
|
|
6663
|
+
}
|
|
6664
|
+
});
|
|
6665
|
+
//#endregion
|
|
6666
|
+
//#region src/components/Treeview/TreeviewActivator.vue
|
|
6667
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
6668
|
+
name: "TreeviewActivator",
|
|
6669
|
+
__name: "TreeviewActivator",
|
|
6670
|
+
props: {
|
|
6671
|
+
namespace: { default: "v0:treeview" },
|
|
6672
|
+
as: { default: "button" },
|
|
6673
|
+
renderless: { type: Boolean }
|
|
6674
|
+
},
|
|
6675
|
+
setup(__props) {
|
|
6676
|
+
const item = useTreeviewItem(__props.namespace);
|
|
6677
|
+
const slotProps = toRef(() => ({
|
|
6678
|
+
isOpen: toValue(item.ticket.isOpen),
|
|
6679
|
+
isLeaf: toValue(item.ticket.isLeaf),
|
|
6680
|
+
isDisabled: item.isDisabled.value,
|
|
6681
|
+
flip: item.ticket.flip,
|
|
6682
|
+
attrs: {
|
|
6683
|
+
"role": __props.as === "button" ? void 0 : "button",
|
|
6684
|
+
"tabindex": -1,
|
|
6685
|
+
"aria-disabled": item.isDisabled.value || void 0,
|
|
6686
|
+
"data-disabled": item.isDisabled.value || void 0,
|
|
6687
|
+
"data-open": toValue(item.ticket.isOpen) || void 0,
|
|
6688
|
+
"disabled": __props.as === "button" ? item.isDisabled.value : void 0,
|
|
6689
|
+
"type": __props.as === "button" ? "button" : void 0,
|
|
6690
|
+
"onClick": item.ticket.flip
|
|
6691
|
+
}
|
|
6692
|
+
}));
|
|
6693
|
+
return (_ctx, _cache) => {
|
|
6694
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6695
|
+
as: __props.as,
|
|
6696
|
+
renderless: __props.renderless
|
|
6697
|
+
}), {
|
|
6698
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6699
|
+
_: 3
|
|
6700
|
+
}, 16, ["as", "renderless"]);
|
|
6701
|
+
};
|
|
6702
|
+
}
|
|
6703
|
+
});
|
|
6704
|
+
//#endregion
|
|
6705
|
+
//#region src/components/Treeview/TreeviewCheckbox.vue
|
|
6706
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
6707
|
+
name: "TreeviewCheckbox",
|
|
6708
|
+
__name: "TreeviewCheckbox",
|
|
6709
|
+
props: {
|
|
6710
|
+
namespace: { default: "v0:treeview" },
|
|
6711
|
+
as: { default: "div" },
|
|
6712
|
+
renderless: { type: Boolean }
|
|
6713
|
+
},
|
|
6714
|
+
setup(__props) {
|
|
6715
|
+
const item = useTreeviewItem(__props.namespace);
|
|
6716
|
+
const slotProps = toRef(() => ({
|
|
6717
|
+
isSelected: toValue(item.ticket.isSelected),
|
|
6718
|
+
isMixed: toValue(item.ticket.isMixed),
|
|
6719
|
+
isDisabled: item.isDisabled.value,
|
|
6720
|
+
toggle: item.ticket.toggle,
|
|
6721
|
+
select: item.ticket.select,
|
|
6722
|
+
unselect: item.ticket.unselect,
|
|
6723
|
+
attrs: {
|
|
6724
|
+
"role": "checkbox",
|
|
6725
|
+
"aria-checked": toValue(item.ticket.isMixed) ? "mixed" : toValue(item.ticket.isSelected),
|
|
6726
|
+
"aria-disabled": item.isDisabled.value || void 0,
|
|
6727
|
+
"tabindex": -1,
|
|
6728
|
+
"data-selected": toValue(item.ticket.isSelected) || void 0,
|
|
6729
|
+
"data-disabled": item.isDisabled.value || void 0,
|
|
6730
|
+
"data-mixed": toValue(item.ticket.isMixed) || void 0,
|
|
6731
|
+
"onClick": item.ticket.toggle
|
|
6732
|
+
}
|
|
6733
|
+
}));
|
|
6734
|
+
return (_ctx, _cache) => {
|
|
6735
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6736
|
+
as: __props.as,
|
|
6737
|
+
renderless: __props.renderless
|
|
6738
|
+
}), {
|
|
6739
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6740
|
+
_: 3
|
|
6741
|
+
}, 16, ["as", "renderless"]);
|
|
6742
|
+
};
|
|
6743
|
+
}
|
|
6744
|
+
});
|
|
6745
|
+
//#endregion
|
|
6746
|
+
//#region src/components/Treeview/TreeviewContent.vue
|
|
6747
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
6748
|
+
name: "TreeviewContent",
|
|
6749
|
+
__name: "TreeviewContent",
|
|
6750
|
+
props: { namespace: { default: "v0:treeview" } },
|
|
6751
|
+
setup(__props) {
|
|
6752
|
+
const item = useTreeviewItem(__props.namespace);
|
|
6753
|
+
item.hasContent.value = true;
|
|
6754
|
+
onDeactivated(() => {
|
|
6755
|
+
item.hasContent.value = false;
|
|
6756
|
+
});
|
|
6757
|
+
onActivated(() => {
|
|
6758
|
+
item.hasContent.value = true;
|
|
6759
|
+
});
|
|
6760
|
+
onBeforeUnmount(() => {
|
|
6761
|
+
item.hasContent.value = false;
|
|
6762
|
+
});
|
|
6763
|
+
return (_ctx, _cache) => {
|
|
6764
|
+
return toValue(unref(item).ticket.isOpen) ? renderSlot(_ctx.$slots, "default", {
|
|
6765
|
+
key: 0,
|
|
6766
|
+
isOpen: toValue(unref(item).ticket.isOpen)
|
|
6767
|
+
}) : createCommentVNode("v-if", true);
|
|
6768
|
+
};
|
|
6769
|
+
}
|
|
6770
|
+
});
|
|
6771
|
+
//#endregion
|
|
6772
|
+
//#region src/components/Treeview/TreeviewCue.vue
|
|
6773
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
6774
|
+
name: "TreeviewCue",
|
|
6775
|
+
__name: "TreeviewCue",
|
|
6776
|
+
props: {
|
|
6777
|
+
namespace: { default: "v0:treeview" },
|
|
6778
|
+
as: { default: "span" },
|
|
6779
|
+
renderless: { type: Boolean }
|
|
6780
|
+
},
|
|
6781
|
+
setup(__props) {
|
|
6782
|
+
const item = useTreeviewItem(__props.namespace);
|
|
6783
|
+
const isOpen = toRef(() => toValue(item.ticket.isOpen));
|
|
6784
|
+
const state = toRef(() => isOpen.value ? "open" : "closed");
|
|
6785
|
+
const slotProps = toRef(() => ({
|
|
6786
|
+
isOpen: isOpen.value,
|
|
6787
|
+
isLeaf: !item.hasContent.value,
|
|
6788
|
+
attrs: {
|
|
6789
|
+
"aria-hidden": true,
|
|
6790
|
+
"data-state": state.value,
|
|
6791
|
+
"style": { visibility: item.hasContent.value ? "visible" : "hidden" }
|
|
6792
|
+
}
|
|
6793
|
+
}));
|
|
6794
|
+
return (_ctx, _cache) => {
|
|
6795
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6796
|
+
as: __props.as,
|
|
6797
|
+
renderless: __props.renderless
|
|
6798
|
+
}), {
|
|
6799
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6800
|
+
_: 3
|
|
6801
|
+
}, 16, ["as", "renderless"]);
|
|
6802
|
+
};
|
|
6803
|
+
}
|
|
6804
|
+
});
|
|
6805
|
+
//#endregion
|
|
6806
|
+
//#region src/components/Treeview/TreeviewGroup.vue
|
|
6807
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
6808
|
+
name: "TreeviewGroup",
|
|
6809
|
+
__name: "TreeviewGroup",
|
|
6810
|
+
props: {
|
|
6811
|
+
as: { default: "ul" },
|
|
6812
|
+
renderless: { type: Boolean }
|
|
6813
|
+
},
|
|
6814
|
+
setup(__props) {
|
|
6815
|
+
const slotProps = toRef(() => ({ attrs: { role: "group" } }));
|
|
6816
|
+
return (_ctx, _cache) => {
|
|
6817
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6818
|
+
as: __props.as,
|
|
6819
|
+
renderless: __props.renderless
|
|
6820
|
+
}), {
|
|
6821
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6822
|
+
_: 3
|
|
6823
|
+
}, 16, ["as", "renderless"]);
|
|
6824
|
+
};
|
|
6825
|
+
}
|
|
6826
|
+
});
|
|
6827
|
+
//#endregion
|
|
6828
|
+
//#region src/components/Treeview/TreeviewIndicator.vue
|
|
6829
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6830
|
+
name: "TreeviewIndicator",
|
|
6831
|
+
__name: "TreeviewIndicator",
|
|
6832
|
+
props: {
|
|
6833
|
+
namespace: { default: "v0:treeview" },
|
|
6834
|
+
as: { default: "span" },
|
|
6835
|
+
renderless: { type: Boolean }
|
|
6836
|
+
},
|
|
6837
|
+
setup(__props) {
|
|
6838
|
+
const item = useTreeviewItem(__props.namespace);
|
|
6839
|
+
const isSelected = toRef(() => toValue(item.ticket.isSelected));
|
|
6840
|
+
const isMixed = toRef(() => toValue(item.ticket.isMixed));
|
|
6841
|
+
const isVisible = toRef(() => isSelected.value || isMixed.value);
|
|
6842
|
+
const state = toRef(() => isMixed.value ? "indeterminate" : isSelected.value ? "checked" : "unchecked");
|
|
6843
|
+
const slotProps = toRef(() => ({
|
|
6844
|
+
isSelected: isSelected.value,
|
|
6845
|
+
isMixed: isMixed.value,
|
|
6846
|
+
attrs: {
|
|
6847
|
+
"aria-hidden": true,
|
|
6848
|
+
"data-state": state.value,
|
|
6849
|
+
"style": { visibility: isVisible.value ? "visible" : "hidden" }
|
|
6850
|
+
}
|
|
6851
|
+
}));
|
|
6852
|
+
return (_ctx, _cache) => {
|
|
6853
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6854
|
+
as: __props.as,
|
|
6855
|
+
renderless: __props.renderless
|
|
6856
|
+
}), {
|
|
6857
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6858
|
+
_: 3
|
|
6859
|
+
}, 16, ["as", "renderless"]);
|
|
6860
|
+
};
|
|
6861
|
+
}
|
|
6862
|
+
});
|
|
6863
|
+
//#endregion
|
|
6864
|
+
//#region src/components/Treeview/TreeviewSelectAll.vue
|
|
6865
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6866
|
+
name: "TreeviewSelectAll",
|
|
6867
|
+
__name: "TreeviewSelectAll",
|
|
6868
|
+
props: {
|
|
6869
|
+
label: {},
|
|
6870
|
+
disabled: {
|
|
6871
|
+
type: Boolean,
|
|
6872
|
+
default: false
|
|
6873
|
+
},
|
|
6874
|
+
namespace: { default: "v0:treeview" },
|
|
6875
|
+
as: { default: "div" },
|
|
6876
|
+
renderless: { type: Boolean }
|
|
6877
|
+
},
|
|
6878
|
+
setup(__props) {
|
|
6879
|
+
const nested = useTreeviewRoot(__props.namespace);
|
|
6880
|
+
const isAllSelected = toRef(() => nested.isAllSelected.value);
|
|
6881
|
+
const isMixed = toRef(() => nested.isMixed.value);
|
|
6882
|
+
const isDisabled = toRef(() => __props.disabled || toValue(nested.disabled));
|
|
6883
|
+
const state = toRef(() => isMixed.value ? "indeterminate" : isAllSelected.value ? "checked" : "unchecked");
|
|
6884
|
+
function onClick() {
|
|
6885
|
+
if (isDisabled.value) return;
|
|
6886
|
+
nested.toggleAll();
|
|
6887
|
+
}
|
|
6888
|
+
function onKeydown(e) {
|
|
6889
|
+
if (e.key !== "Enter" && e.key !== " ") return;
|
|
6890
|
+
e.preventDefault();
|
|
6891
|
+
if (isDisabled.value) return;
|
|
6892
|
+
nested.toggleAll();
|
|
6893
|
+
}
|
|
6894
|
+
function noop() {}
|
|
6895
|
+
const empty = [];
|
|
6896
|
+
provideTreeviewItem(__props.namespace, {
|
|
6897
|
+
ticket: {
|
|
6898
|
+
id: "__select-all__",
|
|
6899
|
+
index: -1,
|
|
6900
|
+
value: void 0,
|
|
6901
|
+
valueIsIndex: false,
|
|
6902
|
+
unregister: noop,
|
|
6903
|
+
disabled: isDisabled,
|
|
6904
|
+
isSelected: isAllSelected,
|
|
6905
|
+
select: nested.selectAll,
|
|
6906
|
+
unselect: nested.unselectAll,
|
|
6907
|
+
toggle: nested.toggleAll,
|
|
6908
|
+
isMixed,
|
|
6909
|
+
mix: noop,
|
|
6910
|
+
unmix: noop,
|
|
6911
|
+
el: void 0,
|
|
6912
|
+
parentId: void 0,
|
|
6913
|
+
isOpen: shallowRef(false),
|
|
6914
|
+
isActive: shallowRef(false),
|
|
6915
|
+
isLeaf: shallowRef(true),
|
|
6916
|
+
depth: shallowRef(0),
|
|
6917
|
+
open: noop,
|
|
6918
|
+
close: noop,
|
|
6919
|
+
flip: noop,
|
|
6920
|
+
reveal: noop,
|
|
6921
|
+
activate: noop,
|
|
6922
|
+
deactivate: noop,
|
|
6923
|
+
getPath: () => [],
|
|
6924
|
+
getAncestors: () => [],
|
|
6925
|
+
getDescendants: () => [],
|
|
6926
|
+
isAncestorOf: () => false,
|
|
6927
|
+
hasAncestor: () => false,
|
|
6928
|
+
siblings: () => empty,
|
|
6929
|
+
position: () => 0
|
|
6930
|
+
},
|
|
6931
|
+
isDisabled,
|
|
6932
|
+
hasContent: shallowRef(false)
|
|
6933
|
+
});
|
|
6934
|
+
const slotProps = toRef(() => ({
|
|
6935
|
+
label: __props.label,
|
|
6936
|
+
isAllSelected: isAllSelected.value,
|
|
6937
|
+
isMixed: isMixed.value,
|
|
6938
|
+
isDisabled: isDisabled.value,
|
|
6939
|
+
selectAll: nested.selectAll,
|
|
6940
|
+
unselectAll: nested.unselectAll,
|
|
6941
|
+
toggleAll: nested.toggleAll,
|
|
6942
|
+
attrs: {
|
|
6943
|
+
"role": "checkbox",
|
|
6944
|
+
"aria-checked": isMixed.value ? "mixed" : isAllSelected.value,
|
|
6945
|
+
"aria-disabled": isDisabled.value || void 0,
|
|
6946
|
+
"aria-label": __props.label || void 0,
|
|
6947
|
+
"tabindex": isDisabled.value ? void 0 : 0,
|
|
6948
|
+
"data-state": state.value,
|
|
6949
|
+
"data-disabled": isDisabled.value ? true : void 0,
|
|
6950
|
+
"onClick": onClick,
|
|
6951
|
+
"onKeydown": onKeydown
|
|
6952
|
+
}
|
|
6953
|
+
}));
|
|
6954
|
+
return (_ctx, _cache) => {
|
|
6955
|
+
return openBlock(), createBlock(unref(_sfc_main$104), mergeProps(slotProps.value.attrs, {
|
|
6956
|
+
as: __props.as,
|
|
6957
|
+
renderless: __props.renderless
|
|
6958
|
+
}), {
|
|
6959
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6960
|
+
_: 3
|
|
6961
|
+
}, 16, ["as", "renderless"]);
|
|
6962
|
+
};
|
|
6963
|
+
}
|
|
6964
|
+
});
|
|
6965
|
+
//#endregion
|
|
6966
|
+
//#region src/components/Treeview/index.ts
|
|
6967
|
+
/**
|
|
6968
|
+
* Treeview component with sub-components for hierarchical data.
|
|
6969
|
+
*
|
|
6970
|
+
* @see https://0.vuetifyjs.com/components/treeview
|
|
6971
|
+
*
|
|
6972
|
+
* @example
|
|
6973
|
+
* ```vue
|
|
6974
|
+
* <script setup lang="ts">
|
|
6975
|
+
* import { Treeview } from '@vuetify/v0'
|
|
6976
|
+
* <\/script>
|
|
6977
|
+
*
|
|
6978
|
+
* <template>
|
|
6979
|
+
* <Treeview.Root>
|
|
6980
|
+
* <Treeview.List>
|
|
6981
|
+
* <Treeview.Item>
|
|
6982
|
+
* <Treeview.Activator>Documents</Treeview.Activator>
|
|
6983
|
+
* <Treeview.Content>
|
|
6984
|
+
* <Treeview.Group>
|
|
6985
|
+
* <Treeview.Item>
|
|
6986
|
+
* <Treeview.Activator>Resume.pdf</Treeview.Activator>
|
|
6987
|
+
* </Treeview.Item>
|
|
6988
|
+
* </Treeview.Group>
|
|
6989
|
+
* </Treeview.Content>
|
|
6990
|
+
* </Treeview.Item>
|
|
6991
|
+
* </Treeview.List>
|
|
6992
|
+
* </Treeview.Root>
|
|
6993
|
+
* </template>
|
|
6994
|
+
* ```
|
|
6995
|
+
*/
|
|
6996
|
+
const Treeview = {
|
|
6997
|
+
Root: _sfc_main$9,
|
|
6998
|
+
List: _sfc_main$8,
|
|
6999
|
+
Item: _sfc_main$7,
|
|
7000
|
+
Activator: _sfc_main$6,
|
|
7001
|
+
Content: _sfc_main$4,
|
|
7002
|
+
Cue: _sfc_main$3,
|
|
7003
|
+
Group: _sfc_main$2,
|
|
7004
|
+
Checkbox: _sfc_main$5,
|
|
7005
|
+
Indicator: _sfc_main$1,
|
|
7006
|
+
SelectAll: _sfc_main
|
|
6205
7007
|
};
|
|
6206
7008
|
//#endregion
|
|
6207
|
-
export {
|
|
7009
|
+
export { Slider as $, _sfc_main$88 as $n, _sfc_main$60 as $t, useStepRoot as A, _sfc_main$76 as An, provideSelectContext as At, _sfc_main$22 as B, provideDialogContext as Bn, provideRadioGroup as Bt, _sfc_main$14 as C, ExpansionPanel as Cn, provideAvatarRoot as Cr, _sfc_main$40 as Ct, _sfc_main$15 as D, _sfc_main$75 as Dn, _sfc_main$44 as Dt, Step as E, _sfc_main$74 as En, _sfc_main$43 as Et, useSingleRoot as F, _sfc_main$78 as Fn, _sfc_main$50 as Ft, provideSwitchGroup as G, _sfc_main$85 as Gn, _sfc_main$55 as Gt, provideSwitchRoot as H, Checkbox as Hn, Popover as Ht, Switch as I, _sfc_main$79 as In, _sfc_main$51 as It, _sfc_main$25 as J, useCheckboxRoot as Jn, Pagination as Jt, useSwitchGroup as K, _sfc_main$86 as Kn, providePopoverContext as Kt, _sfc_main$19 as L, _sfc_main$80 as Ln, provideRadioRoot as Lt, _sfc_main$17 as M, useExpansionPanelRoot as Mn, _sfc_main$48 as Mt, _sfc_main$18 as N, Dialog as Nn, Radio as Nt, _sfc_main$16 as O, provideExpansionPanelItem as On, _sfc_main$45 as Ot, provideSingleRoot as P, _sfc_main$77 as Pn, _sfc_main$49 as Pt, useSplitterRoot as Q, Button as Qn, _sfc_main$59 as Qt, _sfc_main$20 as R, _sfc_main$81 as Rn, useRadioRoot as Rt, _sfc_main$13 as S, _sfc_main$71 as Sn, _sfc_main$103 as Sr, Select as St, useTabsRoot as T, _sfc_main$73 as Tn, _sfc_main$104 as Tr, _sfc_main$42 as Tt, useSwitchRoot as U, _sfc_main$83 as Un, _sfc_main$53 as Ut, _sfc_main$23 as V, useDialogContext as Vn, useRadioGroup as Vt, _sfc_main$24 as W, _sfc_main$84 as Wn, _sfc_main$54 as Wt, _sfc_main$27 as X, provideCheckboxGroup as Xn, _sfc_main$57 as Xt, _sfc_main$26 as Y, _sfc_main$87 as Yn, _sfc_main$56 as Yt, provideSplitterRoot as Z, useCheckboxGroup as Zn, _sfc_main$58 as Zt, useTreeviewRoot as _, Group as _n, provideBreadcrumbsRoot as _r, Selection as _t, _sfc_main$3 as a, providePaginationRoot as an, _sfc_main$92 as ar, provideSliderRoot as at, _sfc_main$11 as b, provideGroupRoot as bn, _sfc_main$101 as br, provideSelectionRoot as bt, _sfc_main$6 as c, usePaginationRoot as cn, useButtonGroup as cr, _sfc_main$33 as ct, useTreeviewItem as d, _sfc_main$65 as dn, _sfc_main$95 as dr, provideSnackbarRootContext as dt, _sfc_main$61 as en, _sfc_main$89 as er, _sfc_main$28 as et, _sfc_main$8 as f, _sfc_main$66 as fn, _sfc_main$96 as fr, useSnackbarRootContext as ft, provideTreeviewRoot as g, useInputRoot as gn, _sfc_main$100 as gr, _sfc_main$37 as gt, _sfc_main$9 as h, provideInputRoot as hn, _sfc_main$99 as hr, useSnackbarQueueContext as ht, _sfc_main$2 as i, providePaginationItems as in, useButtonRoot as ir, _sfc_main$32 as it, Single as j, provideExpansionPanelRoot as jn, useSelectContext as jt, provideStepRoot as k, useExpansionPanelItem as kn, _sfc_main$46 as kt, _sfc_main$7 as l, _sfc_main$64 as ln, Breadcrumbs as lr, _sfc_main$34 as lt, useTreeviewList as m, _sfc_main$68 as mn, _sfc_main$98 as mr, provideSnackbarQueueContext as mt, _sfc_main as n, _sfc_main$63 as nn, _sfc_main$91 as nr, _sfc_main$30 as nt, _sfc_main$4 as o, usePaginationControls as on, _sfc_main$93 as or, useSliderRoot as ot, provideTreeviewList as p, _sfc_main$67 as pn, _sfc_main$97 as pr, _sfc_main$36 as pt, Splitter as q, provideCheckboxRoot as qn, usePopoverContext as qt, _sfc_main$1 as r, providePaginationControls as rn, provideButtonRoot as rr, _sfc_main$31 as rt, _sfc_main$5 as s, usePaginationItems as sn, provideButtonGroup as sr, Snackbar as st, Treeview as t, _sfc_main$62 as tn, _sfc_main$90 as tr, _sfc_main$29 as tt, provideTreeviewItem as u, Input as un, _sfc_main$94 as ur, _sfc_main$35 as ut, _sfc_main$10 as v, _sfc_main$69 as vn, useBreadcrumbsRoot as vr, _sfc_main$38 as vt, provideTabsRoot as w, _sfc_main$72 as wn, useAvatarRoot as wr, _sfc_main$41 as wt, _sfc_main$12 as x, useGroupRoot as xn, _sfc_main$102 as xr, useSelectionRoot as xt, Tabs as y, _sfc_main$70 as yn, Avatar as yr, _sfc_main$39 as yt, _sfc_main$21 as z, _sfc_main$82 as zn, _sfc_main$52 as zt };
|