@vuetify/v0 1.0.0-alpha.0 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/{adapter-T7AedXkz.d.mts → adapter-58IvIfAZ.d.mts} +1 -1
- package/dist/{adapter-Drq1v5wV.mjs → adapter-Be9zUc-n.mjs} +6 -3
- package/dist/{adapter-CcHB7rs3.d.mts → adapter-BvWEd9w-.d.mts} +2 -2
- package/dist/{adapter-BZjmDNJF.d.mts → adapter-DlX3FA3A.d.mts} +2 -2
- package/dist/{adapter-CCIeOzqr.mjs → adapter-gQ2SNKZq.mjs} +31 -22
- package/dist/{adapters-D49L7m2R.mjs → adapters-BJ5n7rgh.mjs} +1 -1
- package/dist/adapters-BnKW0BF_.mjs +2 -0
- package/dist/adapters-CBrvizWb.mjs +4 -0
- package/dist/adapters-CMJGA1k7.mjs +2 -0
- package/dist/adapters-Dse4bPxk.mjs +5 -0
- package/dist/browser/index.js +4845 -3272
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{components-Dc7sUTsg.mjs → components-CqDewYTU.mjs} +1407 -411
- package/dist/composables/index.d.mts +19 -19
- package/dist/composables/index.mjs +28 -26
- package/dist/{consola-Byg0ybzh.d.mts → consola-BdgyPEfx.d.mts} +1 -1
- package/dist/constants/index.d.mts +2 -2
- package/dist/constants/index.mjs +3 -3
- package/dist/{createDataTable-BbUL9Vva.mjs → createDataTable-rXBqGglI.mjs} +105 -32
- package/dist/{createGroup-C2WCfYPB.mjs → createGroup-BU4olYtB.mjs} +29 -14
- package/dist/{createPagination-Tp4C4He8.mjs → createPagination-CHF7SmmK.mjs} +11 -7
- package/dist/{createTokens-qv02qq4_.mjs → createRegistry-Dl-bSSTr.mjs} +21 -302
- package/dist/{createSelection-AmMX6sjc.mjs → createSelection-Csaa-C8p.mjs} +28 -21
- package/dist/{createSingle-CffpxK__.mjs → createSingle-8xbHAIpY.mjs} +13 -17
- package/dist/createTokens-lNg2M_P_.mjs +302 -0
- package/dist/{createTrinity-vvXk0ARD.mjs → createTrinity-BTCs1pYx.mjs} +34 -31
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +1 -1
- package/dist/data-table/adapters/index.d.mts +4 -4
- package/dist/data-table/adapters/index.mjs +5 -5
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +1 -1
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +1 -1
- package/dist/data-table/index.d.mts +6 -6
- package/dist/data-table/index.mjs +6 -6
- package/dist/date/index.d.mts +2 -2
- package/dist/date/index.mjs +4 -4
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.mjs +1 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +1 -1
- package/dist/features/index.d.mts +2 -2
- package/dist/features/index.mjs +1 -1
- package/dist/{globals-CAv9vqkP.mjs → globals-CKdzjeLe.mjs} +1 -1
- package/dist/htmlElements-D4oMQZPJ.mjs +28 -0
- package/dist/{index-M8EpGjjA.d.mts → index-1XdASTjp.d.mts} +1 -1
- package/dist/{index-D26_u_WI.d.mts → index-B7cqgTBL.d.mts} +1599 -468
- package/dist/{index-DoGxDgdN.d.mts → index-BJGcVy7e.d.mts} +57 -6
- package/dist/index-BgCkepP_.d.mts +31 -0
- package/dist/{index-B_XLHftL.d.mts → index-BxKMMWnQ.d.mts} +301 -263
- package/dist/{index-tyzwWFHS.d.mts → index-BzFHTW59.d.mts} +1 -1
- package/dist/{index-CDcl4wPo.d.mts → index-CT5SCLzW.d.mts} +1 -1
- package/dist/{index-BUsrN1vL.d.mts → index-DE3bWw11.d.mts} +2 -2
- package/dist/{index-76fQGkkO.d.mts → index-DTvqw22G.d.mts} +8 -11
- package/dist/{index-F2Fmxnzi.d.mts → index-Dp1HjBxJ.d.mts} +1 -1
- package/dist/{index-B_AlCD7t.d.mts → index-DuddF-NR.d.mts} +2 -9
- package/dist/{index-Dxx0eMLi.d.mts → index-GOpjKzaJ.d.mts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.mjs +31 -29
- package/dist/json/attributes.json +280 -4
- package/dist/json/importMap.json +60 -0
- package/dist/json/tags.json +136 -2
- package/dist/json/web-types.json +1186 -347
- package/dist/locale/adapters/index.d.mts +2 -2
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -1
- package/dist/locale/index.d.mts +3 -3
- package/dist/locale/index.mjs +2 -2
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +2 -2
- package/dist/logger/adapters/pino/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +5 -5
- package/dist/logger/index.mjs +2 -2
- package/dist/notifications/index.d.mts +2 -2
- package/dist/notifications/index.mjs +3 -54
- package/dist/palettes/ant/generate/index.mjs +1 -0
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +3 -3
- package/dist/palettes/leonardo/generate/index.mjs +1 -0
- package/dist/palettes/material/generate/index.mjs +1 -0
- package/dist/palettes/material/index.d.mts +1 -1
- package/dist/palettes/md1/index.d.mts +1 -1
- package/dist/palettes/md2/index.d.mts +1 -1
- package/dist/palettes/radix/index.d.mts +1 -1
- package/dist/palettes/tailwind/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/index.mjs +2 -2
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.mjs +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +2 -2
- package/dist/{pino-BxddSW2l.d.mts → pino-DNfCEb0p.d.mts} +1 -1
- package/dist/{posthog-B8PEtlFr.mjs → posthog-DZNnPXxS.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-DNUTnISs.d.mts → server-3ilWFwqe.d.mts} +1 -1
- package/dist/{server-CIftA0pK.mjs → server-y7zLSCSx.mjs} +1 -1
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/index.mjs +1 -1
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/adapters/memory/index.mjs +1 -1
- package/dist/storage/index.d.mts +3 -3
- package/dist/storage/index.mjs +2 -2
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +4 -4
- package/dist/theme/adapters/unhead/index.d.mts +1 -1
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +3 -3
- package/dist/{toArray-doLQVI56.mjs → toArray-as9BWxBK.mjs} +10 -0
- package/dist/types/index.d.mts +2 -2
- package/dist/{unhead-BYw3a366.mjs → unhead-DZiD-4Tx.mjs} +2 -2
- package/dist/{useClickOutside-CnCQkh7M.mjs → useClickOutside-CmCUD_Pf.mjs} +577 -1024
- package/dist/{useFeatures-CMpkbU8Q.mjs → useFeatures-ZIvzzuEV.mjs} +16 -6
- package/dist/{useLocale-BYmoHpo6.mjs → useLocale-DTJx3aKR.mjs} +19 -7
- package/dist/{useLogger-BfaFH-Bi.mjs → useLogger-BBTcMN61.mjs} +33 -16
- package/dist/useNotifications-H4knpvNw.mjs +869 -0
- package/dist/{usePermissions-y3Uum3nO.mjs → usePermissions-B_G12Dwd.mjs} +14 -6
- package/dist/{useRules-eqSXpP9V.mjs → useRules--7Qoo60I.mjs} +15 -5
- package/dist/{useTheme-CFH6I91x.mjs → useTheme-Co05TEeD.mjs} +20 -8
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +14 -9
- package/dist/{v0-DXqYgj7J.mjs → v0-BrTEO5sv.mjs} +2 -2
- package/dist/{v0-BAG8p0si.d.mts → v0-CdusXjY_.d.mts} +1 -1
- package/dist/{v0-CFV8A5PF.mjs → v0-D0Mh3EVG.mjs} +1 -1
- package/dist/{v0-BpgPZ1qB.d.mts → v0-D7Fm2C3Y.d.mts} +1 -1
- package/dist/{v0-BqikIgl0.mjs → v0-DeiZuexg.mjs} +1 -1
- package/dist/{v0-DOq_Ia5H.mjs → v0-Dq3zhexO.mjs} +2 -2
- package/dist/{v0-C2UMaHUa.d.mts → v0-DrOub-e1.d.mts} +1 -1
- package/dist/{virtual-D1HwNBLS.mjs → virtual-C0yHf1DC.mjs} +2 -2
- package/dist/{virtual-BaQWQ9ji.d.mts → virtual-D4fckewC.d.mts} +1 -1
- package/package.json +10 -7
- package/SKILL.md +0 -95
- package/dist/adapters-BOVGPozf.mjs +0 -2
- package/dist/adapters-BbNfjyvY.mjs +0 -5
- package/dist/adapters-BhNTUuxE.mjs +0 -2
- package/dist/adapters-RwNU3wNj.mjs +0 -4
- package/dist/htmlElements-DcYtv0hg.mjs +0 -75
- package/dist/index-D6mQAEs2.d.mts +0 -79
- /package/dist/{adapter-DNKjooxI.d.mts → adapter-Dhq68tz0.d.mts} +0 -0
- /package/dist/{flagsmith-DQnnahG5.mjs → flagsmith-Dbh1h8WF.mjs} +0 -0
- /package/dist/{index-DxruGeVY.d.mts → index-C6rdXZ7j.d.mts} +0 -0
- /package/dist/{index-PWQavSPf.d.mts → index-CFhUdAHM.d.mts} +0 -0
- /package/dist/{index-c55Utzva.d.mts → index-CROz1VSV.d.mts} +0 -0
- /package/dist/{launchdarkly-2_48EJ1_.mjs → launchdarkly-BKtW-idu.mjs} +0 -0
- /package/dist/{memory-DUyWthic.d.mts → memory-CeSQE-QV.d.mts} +0 -0
- /package/dist/{memory-XCMtkld1.mjs → memory-oYBvtkgx.mjs} +0 -0
- /package/dist/{v0-4OQBCeda.mjs → v0-Bmow1q_x.mjs} +0 -0
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as createContext, r as provideContext } from "./createTrinity-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { a as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-CKdzjeLe.mjs";
|
|
2
|
+
import { clamp, isArray, isElement, isNull, isNullOrUndefined, isNumber, isObject, isString, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
|
+
import { n as isSelfClosingTag } from "./htmlElements-D4oMQZPJ.mjs";
|
|
4
|
+
import { n as createContext, r as provideContext } from "./createTrinity-BTCs1pYx.mjs";
|
|
5
|
+
import { i as useLogger } from "./useLogger-BBTcMN61.mjs";
|
|
6
|
+
import { t as createRegistry } from "./createRegistry-Dl-bSSTr.mjs";
|
|
7
|
+
import { t as createSelection } from "./createSelection-Csaa-C8p.mjs";
|
|
8
|
+
import { t as createSingle } from "./createSingle-8xbHAIpY.mjs";
|
|
9
|
+
import { a as useLocale } from "./useLocale-DTJx3aKR.mjs";
|
|
10
|
+
import { $ as createRating, C as usePresence, Ct as createForm, Et as createCombobox, M as useImage, Mt as usePopover, Nt as createBreadcrumbs, Q as createSlider, S as useProxyModel, Y as createStep, a as useToggleScope, at as createOverflow, b as useRovingFocus, ct as useElementSize, gt as createNumberField, j as useIntersectionObserver, jt as useVirtualFocus, k as useLazy, lt as useResizeObserver, n as useDocumentEventListener, nt as createProgress, p as useStack, r as useEventListener, t as useClickOutside, ut as toElement, vt as createNested, x as useRaf, xt as createInput } from "./useClickOutside-CmCUD_Pf.mjs";
|
|
11
|
+
import { c as useTimer, i as useNotifications } from "./useNotifications-H4knpvNw.mjs";
|
|
12
|
+
import { t as createGroup } from "./createGroup-BU4olYtB.mjs";
|
|
13
|
+
import { t as createPagination } from "./createPagination-CHF7SmmK.mjs";
|
|
14
|
+
import { i as useTheme } from "./useTheme-Co05TEeD.mjs";
|
|
15
|
+
import { Fragment, Teleport, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onDeactivated, onMounted, onScopeDispose, openBlock, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useModel, useTemplateRef, vShow, watch, watchEffect, withCtx, withDirectives } from "vue";
|
|
14
16
|
//#region src/components/Atom/Atom.vue
|
|
15
17
|
/**
|
|
16
18
|
* @module Atom
|
|
@@ -35,7 +37,7 @@ import { Fragment, Teleport, TransitionGroup, computed, createBlock, createComme
|
|
|
35
37
|
* serving as the foundation for all other components that need polymorphic
|
|
36
38
|
* rendering capabilities.
|
|
37
39
|
*/
|
|
38
|
-
const _sfc_main$
|
|
40
|
+
const _sfc_main$162 = /* @__PURE__ */ defineComponent({
|
|
39
41
|
name: "Atom",
|
|
40
42
|
__name: "Atom",
|
|
41
43
|
props: {
|
|
@@ -49,7 +51,7 @@ const _sfc_main$149 = /* @__PURE__ */ defineComponent({
|
|
|
49
51
|
const element = useTemplateRef("element");
|
|
50
52
|
__expose({ element });
|
|
51
53
|
const attrs = useAttrs();
|
|
52
|
-
const isSelfClosing = toRef(() => /* @__PURE__ */ isString(__props.as) && isSelfClosingTag(__props.as));
|
|
54
|
+
const isSelfClosing = toRef(() => /* @__PURE__ */ isString(__props.as) && /* @__PURE__ */ isSelfClosingTag(__props.as));
|
|
53
55
|
const slotProps = toRef(() => attrs);
|
|
54
56
|
return (_ctx, _cache) => {
|
|
55
57
|
return __props.renderless || unref(isNull)(__props.as) ? renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 0 }, slotProps.value))) : !isSelfClosing.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({ key: 1 }, slotProps.value, {
|
|
@@ -69,7 +71,7 @@ const _sfc_main$149 = /* @__PURE__ */ defineComponent({
|
|
|
69
71
|
//#endregion
|
|
70
72
|
//#region src/components/AlertDialog/AlertDialogRoot.vue
|
|
71
73
|
const [useAlertDialogContext, provideAlertDialogContext] = createContext();
|
|
72
|
-
const _sfc_main$
|
|
74
|
+
const _sfc_main$161 = /* @__PURE__ */ defineComponent({
|
|
73
75
|
name: "AlertDialogRoot",
|
|
74
76
|
__name: "AlertDialogRoot",
|
|
75
77
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -86,7 +88,7 @@ const _sfc_main$148 = /* @__PURE__ */ defineComponent({
|
|
|
86
88
|
}),
|
|
87
89
|
emits: /* @__PURE__ */ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
88
90
|
setup(__props) {
|
|
89
|
-
const id = __props.id ?? useId();
|
|
91
|
+
const id = __props.id ?? /* @__PURE__ */ useId$1();
|
|
90
92
|
const isOpen = useModel(__props, "modelValue");
|
|
91
93
|
const isPending = shallowRef(false);
|
|
92
94
|
const titleId = `${id}-title`;
|
|
@@ -115,7 +117,7 @@ const _sfc_main$148 = /* @__PURE__ */ defineComponent({
|
|
|
115
117
|
close
|
|
116
118
|
}));
|
|
117
119
|
return (_ctx, _cache) => {
|
|
118
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
120
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
119
121
|
as: __props.as,
|
|
120
122
|
renderless: ""
|
|
121
123
|
}, {
|
|
@@ -127,7 +129,7 @@ const _sfc_main$148 = /* @__PURE__ */ defineComponent({
|
|
|
127
129
|
});
|
|
128
130
|
//#endregion
|
|
129
131
|
//#region src/components/AlertDialog/AlertDialogAction.vue
|
|
130
|
-
const _sfc_main$
|
|
132
|
+
const _sfc_main$160 = /* @__PURE__ */ defineComponent({
|
|
131
133
|
name: "AlertDialogAction",
|
|
132
134
|
__name: "AlertDialogAction",
|
|
133
135
|
props: {
|
|
@@ -168,7 +170,7 @@ const _sfc_main$147 = /* @__PURE__ */ defineComponent({
|
|
|
168
170
|
}
|
|
169
171
|
}));
|
|
170
172
|
return (_ctx, _cache) => {
|
|
171
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
173
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
172
174
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
173
175
|
_: 3
|
|
174
176
|
}, 16, ["as"]);
|
|
@@ -177,7 +179,7 @@ const _sfc_main$147 = /* @__PURE__ */ defineComponent({
|
|
|
177
179
|
});
|
|
178
180
|
//#endregion
|
|
179
181
|
//#region src/components/AlertDialog/AlertDialogActivator.vue
|
|
180
|
-
const _sfc_main$
|
|
182
|
+
const _sfc_main$159 = /* @__PURE__ */ defineComponent({
|
|
181
183
|
name: "AlertDialogActivator",
|
|
182
184
|
__name: "AlertDialogActivator",
|
|
183
185
|
props: {
|
|
@@ -196,11 +198,11 @@ const _sfc_main$146 = /* @__PURE__ */ defineComponent({
|
|
|
196
198
|
"type": __props.as === "button" ? "button" : void 0,
|
|
197
199
|
"aria-haspopup": "dialog",
|
|
198
200
|
"aria-expanded": context.isOpen.value,
|
|
199
|
-
"data-
|
|
201
|
+
"data-open": context.isOpen.value || void 0
|
|
200
202
|
}
|
|
201
203
|
}));
|
|
202
204
|
return (_ctx, _cache) => {
|
|
203
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
205
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
204
206
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
205
207
|
_: 3
|
|
206
208
|
}, 16, ["as"]);
|
|
@@ -209,7 +211,7 @@ const _sfc_main$146 = /* @__PURE__ */ defineComponent({
|
|
|
209
211
|
});
|
|
210
212
|
//#endregion
|
|
211
213
|
//#region src/components/AlertDialog/AlertDialogCancel.vue
|
|
212
|
-
const _sfc_main$
|
|
214
|
+
const _sfc_main$158 = /* @__PURE__ */ defineComponent({
|
|
213
215
|
name: "AlertDialogCancel",
|
|
214
216
|
__name: "AlertDialogCancel",
|
|
215
217
|
props: {
|
|
@@ -236,7 +238,7 @@ const _sfc_main$145 = /* @__PURE__ */ defineComponent({
|
|
|
236
238
|
}
|
|
237
239
|
}));
|
|
238
240
|
return (_ctx, _cache) => {
|
|
239
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
241
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
240
242
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
241
243
|
_: 3
|
|
242
244
|
}, 16, ["as"]);
|
|
@@ -245,7 +247,7 @@ const _sfc_main$145 = /* @__PURE__ */ defineComponent({
|
|
|
245
247
|
});
|
|
246
248
|
//#endregion
|
|
247
249
|
//#region src/components/AlertDialog/AlertDialogClose.vue
|
|
248
|
-
const _sfc_main$
|
|
250
|
+
const _sfc_main$157 = /* @__PURE__ */ defineComponent({
|
|
249
251
|
name: "AlertDialogClose",
|
|
250
252
|
__name: "AlertDialogClose",
|
|
251
253
|
props: {
|
|
@@ -255,6 +257,7 @@ const _sfc_main$144 = /* @__PURE__ */ defineComponent({
|
|
|
255
257
|
},
|
|
256
258
|
setup(__props) {
|
|
257
259
|
const context = useAlertDialogContext(__props.namespace);
|
|
260
|
+
const locale = useLocale();
|
|
258
261
|
function onClick() {
|
|
259
262
|
context.close();
|
|
260
263
|
}
|
|
@@ -262,11 +265,11 @@ const _sfc_main$144 = /* @__PURE__ */ defineComponent({
|
|
|
262
265
|
isOpen: context.isOpen.value,
|
|
263
266
|
attrs: {
|
|
264
267
|
"type": __props.as === "button" ? "button" : void 0,
|
|
265
|
-
"aria-label": "
|
|
268
|
+
"aria-label": locale.t("AlertDialog.close")
|
|
266
269
|
}
|
|
267
270
|
}));
|
|
268
271
|
return (_ctx, _cache) => {
|
|
269
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
272
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
270
273
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
271
274
|
_: 3
|
|
272
275
|
}, 16, ["as"]);
|
|
@@ -275,7 +278,7 @@ const _sfc_main$144 = /* @__PURE__ */ defineComponent({
|
|
|
275
278
|
});
|
|
276
279
|
//#endregion
|
|
277
280
|
//#region src/components/AlertDialog/AlertDialogContent.vue
|
|
278
|
-
const _sfc_main$
|
|
281
|
+
const _sfc_main$156 = /* @__PURE__ */ defineComponent({
|
|
279
282
|
name: "AlertDialogContent",
|
|
280
283
|
__name: "AlertDialogContent",
|
|
281
284
|
props: {
|
|
@@ -351,7 +354,7 @@ const _sfc_main$143 = /* @__PURE__ */ defineComponent({
|
|
|
351
354
|
}
|
|
352
355
|
}));
|
|
353
356
|
return (_ctx, _cache) => {
|
|
354
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
357
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
355
358
|
ref: "content",
|
|
356
359
|
as: __props.as,
|
|
357
360
|
style: styles.value
|
|
@@ -367,7 +370,7 @@ const _sfc_main$143 = /* @__PURE__ */ defineComponent({
|
|
|
367
370
|
});
|
|
368
371
|
//#endregion
|
|
369
372
|
//#region src/components/AlertDialog/AlertDialogDescription.vue
|
|
370
|
-
const _sfc_main$
|
|
373
|
+
const _sfc_main$155 = /* @__PURE__ */ defineComponent({
|
|
371
374
|
name: "AlertDialogDescription",
|
|
372
375
|
__name: "AlertDialogDescription",
|
|
373
376
|
props: {
|
|
@@ -379,7 +382,7 @@ const _sfc_main$142 = /* @__PURE__ */ defineComponent({
|
|
|
379
382
|
const context = useAlertDialogContext(__props.namespace);
|
|
380
383
|
const slotProps = toRef(() => ({ attrs: { id: context.descriptionId } }));
|
|
381
384
|
return (_ctx, _cache) => {
|
|
382
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
385
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
383
386
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
384
387
|
_: 3
|
|
385
388
|
}, 16, ["as"]);
|
|
@@ -388,7 +391,7 @@ const _sfc_main$142 = /* @__PURE__ */ defineComponent({
|
|
|
388
391
|
});
|
|
389
392
|
//#endregion
|
|
390
393
|
//#region src/components/AlertDialog/AlertDialogTitle.vue
|
|
391
|
-
const _sfc_main$
|
|
394
|
+
const _sfc_main$154 = /* @__PURE__ */ defineComponent({
|
|
392
395
|
name: "AlertDialogTitle",
|
|
393
396
|
__name: "AlertDialogTitle",
|
|
394
397
|
props: {
|
|
@@ -400,7 +403,7 @@ const _sfc_main$141 = /* @__PURE__ */ defineComponent({
|
|
|
400
403
|
const context = useAlertDialogContext(__props.namespace);
|
|
401
404
|
const slotProps = toRef(() => ({ attrs: { id: context.titleId } }));
|
|
402
405
|
return (_ctx, _cache) => {
|
|
403
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
406
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
404
407
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
405
408
|
_: 3
|
|
406
409
|
}, 16, ["as"]);
|
|
@@ -438,19 +441,46 @@ const _sfc_main$141 = /* @__PURE__ */ defineComponent({
|
|
|
438
441
|
* ```
|
|
439
442
|
*/
|
|
440
443
|
const AlertDialog = {
|
|
441
|
-
Root: _sfc_main$
|
|
442
|
-
Activator: _sfc_main$
|
|
443
|
-
Content: _sfc_main$
|
|
444
|
-
Title: _sfc_main$
|
|
445
|
-
Description: _sfc_main$
|
|
446
|
-
Cancel: _sfc_main$
|
|
447
|
-
Close: _sfc_main$
|
|
448
|
-
Action: _sfc_main$
|
|
444
|
+
Root: _sfc_main$161,
|
|
445
|
+
Activator: _sfc_main$159,
|
|
446
|
+
Content: _sfc_main$156,
|
|
447
|
+
Title: _sfc_main$154,
|
|
448
|
+
Description: _sfc_main$155,
|
|
449
|
+
Cancel: _sfc_main$158,
|
|
450
|
+
Close: _sfc_main$157,
|
|
451
|
+
Action: _sfc_main$160
|
|
449
452
|
};
|
|
450
453
|
//#endregion
|
|
454
|
+
//#region src/components/AspectRatio/AspectRatio.vue
|
|
455
|
+
const _sfc_main$153 = /* @__PURE__ */ defineComponent({
|
|
456
|
+
name: "AspectRatio",
|
|
457
|
+
__name: "AspectRatio",
|
|
458
|
+
props: {
|
|
459
|
+
ratio: { default: 1 },
|
|
460
|
+
as: { default: "div" },
|
|
461
|
+
renderless: { type: Boolean }
|
|
462
|
+
},
|
|
463
|
+
setup(__props) {
|
|
464
|
+
const resolved = toRef(() => /* @__PURE__ */ isNumber(__props.ratio) ? String(__props.ratio) : __props.ratio);
|
|
465
|
+
const slotProps = toRef(() => ({
|
|
466
|
+
ratio: resolved.value,
|
|
467
|
+
attrs: { style: { aspectRatio: resolved.value } }
|
|
468
|
+
}));
|
|
469
|
+
return (_ctx, _cache) => {
|
|
470
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
471
|
+
as: __props.as,
|
|
472
|
+
renderless: __props.renderless
|
|
473
|
+
}), {
|
|
474
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
475
|
+
_: 3
|
|
476
|
+
}, 16, ["as", "renderless"]);
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
//#endregion
|
|
451
481
|
//#region src/components/Avatar/AvatarRoot.vue
|
|
452
482
|
const [useAvatarRoot, provideAvatarRoot] = createContext();
|
|
453
|
-
const _sfc_main$
|
|
483
|
+
const _sfc_main$152 = /* @__PURE__ */ defineComponent({
|
|
454
484
|
name: "AvatarRoot",
|
|
455
485
|
__name: "AvatarRoot",
|
|
456
486
|
props: {
|
|
@@ -465,7 +495,7 @@ const _sfc_main$140 = /* @__PURE__ */ defineComponent({
|
|
|
465
495
|
});
|
|
466
496
|
provideAvatarRoot(__props.namespace, selection);
|
|
467
497
|
return (_ctx, _cache) => {
|
|
468
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
498
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
469
499
|
as: __props.as,
|
|
470
500
|
renderless: __props.renderless
|
|
471
501
|
}, {
|
|
@@ -477,7 +507,7 @@ const _sfc_main$140 = /* @__PURE__ */ defineComponent({
|
|
|
477
507
|
});
|
|
478
508
|
//#endregion
|
|
479
509
|
//#region src/components/Avatar/AvatarFallback.vue
|
|
480
|
-
const _sfc_main$
|
|
510
|
+
const _sfc_main$151 = /* @__PURE__ */ defineComponent({
|
|
481
511
|
name: "AvatarFallback",
|
|
482
512
|
__name: "AvatarFallback",
|
|
483
513
|
props: {
|
|
@@ -489,9 +519,9 @@ const _sfc_main$139 = /* @__PURE__ */ defineComponent({
|
|
|
489
519
|
const context = useAvatarRoot(__props.namespace);
|
|
490
520
|
const ticket = context.register({ type: "fallback" });
|
|
491
521
|
const slotProps = toRef(() => ({ isSelected: ticket.isSelected.value }));
|
|
492
|
-
|
|
522
|
+
onBeforeUnmount(() => context.unregister(ticket.id));
|
|
493
523
|
return (_ctx, _cache) => {
|
|
494
|
-
return unref(ticket).isSelected.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
524
|
+
return unref(ticket).isSelected.value ? (openBlock(), createBlock(unref(_sfc_main$162), {
|
|
495
525
|
key: 0,
|
|
496
526
|
as: __props.as,
|
|
497
527
|
renderless: __props.renderless
|
|
@@ -504,7 +534,7 @@ const _sfc_main$139 = /* @__PURE__ */ defineComponent({
|
|
|
504
534
|
});
|
|
505
535
|
//#endregion
|
|
506
536
|
//#region src/components/Avatar/AvatarImage.vue
|
|
507
|
-
const _sfc_main$
|
|
537
|
+
const _sfc_main$150 = /* @__PURE__ */ defineComponent({
|
|
508
538
|
name: "AvatarImage",
|
|
509
539
|
inheritAttrs: false,
|
|
510
540
|
__name: "AvatarImage",
|
|
@@ -519,36 +549,51 @@ const _sfc_main$138 = /* @__PURE__ */ defineComponent({
|
|
|
519
549
|
setup(__props, { emit: __emit }) {
|
|
520
550
|
const emit = __emit;
|
|
521
551
|
const context = useAvatarRoot(__props.namespace);
|
|
552
|
+
const image = useImage({ src: toRef(() => __props.src) });
|
|
522
553
|
const ticket = context.register({
|
|
523
554
|
priority: __props.priority,
|
|
524
555
|
type: "image",
|
|
525
556
|
disabled: true
|
|
526
557
|
});
|
|
527
558
|
function onLoad(e) {
|
|
528
|
-
|
|
529
|
-
ticket.select();
|
|
559
|
+
image.onLoad(e);
|
|
530
560
|
emit("load", e);
|
|
531
561
|
}
|
|
532
562
|
function onError(e) {
|
|
533
|
-
|
|
534
|
-
const first = context.seek("first");
|
|
535
|
-
if (first) context.select(first.id);
|
|
563
|
+
image.onError(e);
|
|
536
564
|
emit("error", e);
|
|
537
565
|
}
|
|
538
|
-
|
|
566
|
+
watch(image.isLoaded, (isLoaded) => {
|
|
567
|
+
if (isLoaded) {
|
|
568
|
+
ticket.disabled = false;
|
|
569
|
+
ticket.select();
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
watch(image.isError, (isError) => {
|
|
573
|
+
if (isError) {
|
|
574
|
+
ticket.disabled = true;
|
|
575
|
+
const first = context.seek("first");
|
|
576
|
+
if (first) context.select(first.id);
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
onBeforeUnmount(() => {
|
|
539
580
|
context.unregister(ticket.id);
|
|
540
581
|
});
|
|
541
582
|
const slotProps = toRef(() => ({
|
|
542
583
|
isSelected: ticket.isSelected.value,
|
|
584
|
+
status: image.status.value,
|
|
585
|
+
isLoaded: image.isLoaded.value,
|
|
586
|
+
isError: image.isError.value,
|
|
587
|
+
retry: image.retry,
|
|
543
588
|
attrs: {
|
|
544
589
|
role: "img",
|
|
545
|
-
src:
|
|
590
|
+
src: image.source.value,
|
|
546
591
|
onLoad,
|
|
547
592
|
onError
|
|
548
593
|
}
|
|
549
594
|
}));
|
|
550
595
|
return (_ctx, _cache) => {
|
|
551
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
596
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
552
597
|
as: __props.as,
|
|
553
598
|
renderless: __props.renderless
|
|
554
599
|
}), {
|
|
@@ -566,14 +611,14 @@ const _sfc_main$138 = /* @__PURE__ */ defineComponent({
|
|
|
566
611
|
* @see https://0.vuetifyjs.com/components/semantic/avatar
|
|
567
612
|
*/
|
|
568
613
|
const Avatar = {
|
|
569
|
-
Root: _sfc_main$
|
|
570
|
-
Image: _sfc_main$
|
|
571
|
-
Fallback: _sfc_main$
|
|
614
|
+
Root: _sfc_main$152,
|
|
615
|
+
Image: _sfc_main$150,
|
|
616
|
+
Fallback: _sfc_main$151
|
|
572
617
|
};
|
|
573
618
|
//#endregion
|
|
574
619
|
//#region src/components/Breadcrumbs/BreadcrumbsRoot.vue
|
|
575
620
|
const [useBreadcrumbsRoot, provideBreadcrumbsRoot] = createContext();
|
|
576
|
-
const _sfc_main$
|
|
621
|
+
const _sfc_main$149 = /* @__PURE__ */ defineComponent({
|
|
577
622
|
name: "BreadcrumbsRoot",
|
|
578
623
|
__name: "BreadcrumbsRoot",
|
|
579
624
|
props: {
|
|
@@ -701,7 +746,7 @@ const _sfc_main$137 = /* @__PURE__ */ defineComponent({
|
|
|
701
746
|
}
|
|
702
747
|
}));
|
|
703
748
|
return (_ctx, _cache) => {
|
|
704
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
749
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
705
750
|
ref: "container",
|
|
706
751
|
as: __props.as,
|
|
707
752
|
renderless: __props.renderless
|
|
@@ -714,7 +759,7 @@ const _sfc_main$137 = /* @__PURE__ */ defineComponent({
|
|
|
714
759
|
});
|
|
715
760
|
//#endregion
|
|
716
761
|
//#region src/components/Breadcrumbs/BreadcrumbsDivider.vue
|
|
717
|
-
const _sfc_main$
|
|
762
|
+
const _sfc_main$148 = /* @__PURE__ */ defineComponent({
|
|
718
763
|
name: "BreadcrumbsDivider",
|
|
719
764
|
__name: "BreadcrumbsDivider",
|
|
720
765
|
props: {
|
|
@@ -734,7 +779,7 @@ const _sfc_main$136 = /* @__PURE__ */ defineComponent({
|
|
|
734
779
|
watch(() => elRef.value?.element, (element) => {
|
|
735
780
|
context.measureElement(ticket.index, "divider", element ?? void 0);
|
|
736
781
|
}, { immediate: true });
|
|
737
|
-
|
|
782
|
+
onBeforeUnmount(() => {
|
|
738
783
|
context.measureElement(ticket.index, "divider", void 0);
|
|
739
784
|
context.group.unregister(ticket.id);
|
|
740
785
|
});
|
|
@@ -750,7 +795,7 @@ const _sfc_main$136 = /* @__PURE__ */ defineComponent({
|
|
|
750
795
|
}
|
|
751
796
|
}));
|
|
752
797
|
return (_ctx, _cache) => {
|
|
753
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
798
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
754
799
|
ref: "el",
|
|
755
800
|
as: __props.as,
|
|
756
801
|
renderless: __props.renderless
|
|
@@ -763,7 +808,7 @@ const _sfc_main$136 = /* @__PURE__ */ defineComponent({
|
|
|
763
808
|
});
|
|
764
809
|
//#endregion
|
|
765
810
|
//#region src/components/Breadcrumbs/BreadcrumbsEllipsis.vue
|
|
766
|
-
const _sfc_main$
|
|
811
|
+
const _sfc_main$147 = /* @__PURE__ */ defineComponent({
|
|
767
812
|
name: "BreadcrumbsEllipsis",
|
|
768
813
|
__name: "BreadcrumbsEllipsis",
|
|
769
814
|
props: {
|
|
@@ -790,7 +835,7 @@ const _sfc_main$135 = /* @__PURE__ */ defineComponent({
|
|
|
790
835
|
const marginX = Number.parseFloat(style.marginLeft) + Number.parseFloat(style.marginRight);
|
|
791
836
|
context.ellipsisWidth.value = el.offsetWidth + marginX;
|
|
792
837
|
}, { immediate: true });
|
|
793
|
-
|
|
838
|
+
onBeforeUnmount(() => {
|
|
794
839
|
context.ellipsisWidth.value = 0;
|
|
795
840
|
context.group.unregister(ticket.id);
|
|
796
841
|
});
|
|
@@ -806,7 +851,7 @@ const _sfc_main$135 = /* @__PURE__ */ defineComponent({
|
|
|
806
851
|
}
|
|
807
852
|
}));
|
|
808
853
|
return (_ctx, _cache) => {
|
|
809
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
854
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
810
855
|
ref: "el",
|
|
811
856
|
as: __props.as,
|
|
812
857
|
renderless: __props.renderless
|
|
@@ -819,7 +864,7 @@ const _sfc_main$135 = /* @__PURE__ */ defineComponent({
|
|
|
819
864
|
});
|
|
820
865
|
//#endregion
|
|
821
866
|
//#region src/components/Breadcrumbs/BreadcrumbsItem.vue
|
|
822
|
-
const _sfc_main$
|
|
867
|
+
const _sfc_main$146 = /* @__PURE__ */ defineComponent({
|
|
823
868
|
name: "BreadcrumbsItem",
|
|
824
869
|
__name: "BreadcrumbsItem",
|
|
825
870
|
props: {
|
|
@@ -846,7 +891,7 @@ const _sfc_main$134 = /* @__PURE__ */ defineComponent({
|
|
|
846
891
|
watch(() => elRef.value?.element, (element) => {
|
|
847
892
|
context.measureElement(ticket.index, "item", element ?? void 0);
|
|
848
893
|
}, { immediate: true });
|
|
849
|
-
|
|
894
|
+
onBeforeUnmount(() => {
|
|
850
895
|
context.measureElement(ticket.index, "item", void 0);
|
|
851
896
|
context.group.unregister(ticket.id);
|
|
852
897
|
context.breadcrumbs.unregister(crumb.id);
|
|
@@ -858,7 +903,7 @@ const _sfc_main$134 = /* @__PURE__ */ defineComponent({
|
|
|
858
903
|
attrs: { "data-selected": isSelected.value || void 0 }
|
|
859
904
|
}));
|
|
860
905
|
return (_ctx, _cache) => {
|
|
861
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
906
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
862
907
|
ref: "el",
|
|
863
908
|
as: __props.as,
|
|
864
909
|
renderless: __props.renderless
|
|
@@ -871,7 +916,7 @@ const _sfc_main$134 = /* @__PURE__ */ defineComponent({
|
|
|
871
916
|
});
|
|
872
917
|
//#endregion
|
|
873
918
|
//#region src/components/Breadcrumbs/BreadcrumbsLink.vue
|
|
874
|
-
const _sfc_main$
|
|
919
|
+
const _sfc_main$145 = /* @__PURE__ */ defineComponent({
|
|
875
920
|
name: "BreadcrumbsLink",
|
|
876
921
|
__name: "BreadcrumbsLink",
|
|
877
922
|
props: {
|
|
@@ -880,7 +925,7 @@ const _sfc_main$133 = /* @__PURE__ */ defineComponent({
|
|
|
880
925
|
},
|
|
881
926
|
setup(__props) {
|
|
882
927
|
return (_ctx, _cache) => {
|
|
883
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
928
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
884
929
|
as: __props.as,
|
|
885
930
|
renderless: __props.renderless
|
|
886
931
|
}, {
|
|
@@ -892,7 +937,7 @@ const _sfc_main$133 = /* @__PURE__ */ defineComponent({
|
|
|
892
937
|
});
|
|
893
938
|
//#endregion
|
|
894
939
|
//#region src/components/Breadcrumbs/BreadcrumbsList.vue
|
|
895
|
-
const _sfc_main$
|
|
940
|
+
const _sfc_main$144 = /* @__PURE__ */ defineComponent({
|
|
896
941
|
name: "BreadcrumbsList",
|
|
897
942
|
__name: "BreadcrumbsList",
|
|
898
943
|
props: {
|
|
@@ -902,7 +947,7 @@ const _sfc_main$132 = /* @__PURE__ */ defineComponent({
|
|
|
902
947
|
setup(__props) {
|
|
903
948
|
const slotProps = toRef(() => ({ attrs: { role: "list" } }));
|
|
904
949
|
return (_ctx, _cache) => {
|
|
905
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
950
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
906
951
|
as: __props.as,
|
|
907
952
|
renderless: __props.renderless
|
|
908
953
|
}, slotProps.value.attrs), {
|
|
@@ -914,7 +959,7 @@ const _sfc_main$132 = /* @__PURE__ */ defineComponent({
|
|
|
914
959
|
});
|
|
915
960
|
//#endregion
|
|
916
961
|
//#region src/components/Breadcrumbs/BreadcrumbsPage.vue
|
|
917
|
-
const _sfc_main$
|
|
962
|
+
const _sfc_main$143 = /* @__PURE__ */ defineComponent({
|
|
918
963
|
name: "BreadcrumbsPage",
|
|
919
964
|
__name: "BreadcrumbsPage",
|
|
920
965
|
props: {
|
|
@@ -924,7 +969,7 @@ const _sfc_main$131 = /* @__PURE__ */ defineComponent({
|
|
|
924
969
|
setup(__props) {
|
|
925
970
|
const slotProps = toRef(() => ({ attrs: { "aria-current": "page" } }));
|
|
926
971
|
return (_ctx, _cache) => {
|
|
927
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
972
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
928
973
|
as: __props.as,
|
|
929
974
|
renderless: __props.renderless
|
|
930
975
|
}, slotProps.value.attrs), {
|
|
@@ -942,18 +987,18 @@ const _sfc_main$131 = /* @__PURE__ */ defineComponent({
|
|
|
942
987
|
* @see https://0.vuetifyjs.com/components/semantic/breadcrumbs
|
|
943
988
|
*/
|
|
944
989
|
const Breadcrumbs = {
|
|
945
|
-
Root: _sfc_main$
|
|
946
|
-
List: _sfc_main$
|
|
947
|
-
Item: _sfc_main$
|
|
948
|
-
Link: _sfc_main$
|
|
949
|
-
Page: _sfc_main$
|
|
950
|
-
Divider: _sfc_main$
|
|
951
|
-
Ellipsis: _sfc_main$
|
|
990
|
+
Root: _sfc_main$149,
|
|
991
|
+
List: _sfc_main$144,
|
|
992
|
+
Item: _sfc_main$146,
|
|
993
|
+
Link: _sfc_main$145,
|
|
994
|
+
Page: _sfc_main$143,
|
|
995
|
+
Divider: _sfc_main$148,
|
|
996
|
+
Ellipsis: _sfc_main$147
|
|
952
997
|
};
|
|
953
998
|
//#endregion
|
|
954
999
|
//#region src/components/Button/ButtonGroup.vue
|
|
955
1000
|
const [useButtonGroup, provideButtonGroup] = createContext();
|
|
956
|
-
const _sfc_main$
|
|
1001
|
+
const _sfc_main$142 = /* @__PURE__ */ defineComponent({
|
|
957
1002
|
name: "ButtonGroup",
|
|
958
1003
|
__name: "ButtonGroup",
|
|
959
1004
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1000,7 +1045,7 @@ const _sfc_main$130 = /* @__PURE__ */ defineComponent({
|
|
|
1000
1045
|
}
|
|
1001
1046
|
}));
|
|
1002
1047
|
return (_ctx, _cache) => {
|
|
1003
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1048
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1004
1049
|
as: __props.as,
|
|
1005
1050
|
renderless: __props.renderless
|
|
1006
1051
|
}), {
|
|
@@ -1030,7 +1075,7 @@ const visuallyHiddenStyle$5 = {
|
|
|
1030
1075
|
whiteSpace: "nowrap",
|
|
1031
1076
|
border: "0"
|
|
1032
1077
|
};
|
|
1033
|
-
const _sfc_main$
|
|
1078
|
+
const _sfc_main$141 = /* @__PURE__ */ defineComponent({
|
|
1034
1079
|
name: "ButtonHiddenInput",
|
|
1035
1080
|
__name: "ButtonHiddenInput",
|
|
1036
1081
|
props: {
|
|
@@ -1068,7 +1113,7 @@ const _sfc_main$129 = /* @__PURE__ */ defineComponent({
|
|
|
1068
1113
|
//#endregion
|
|
1069
1114
|
//#region src/components/Button/ButtonRoot.vue
|
|
1070
1115
|
const [useButtonRoot, provideButtonRoot] = createContext();
|
|
1071
|
-
const _sfc_main$
|
|
1116
|
+
const _sfc_main$140 = /* @__PURE__ */ defineComponent({
|
|
1072
1117
|
name: "ButtonRoot",
|
|
1073
1118
|
inheritAttrs: false,
|
|
1074
1119
|
__name: "ButtonRoot",
|
|
@@ -1131,7 +1176,7 @@ const _sfc_main$128 = /* @__PURE__ */ defineComponent({
|
|
|
1131
1176
|
if (isDisabled.value || isReadonly.value || isPassive.value || __props.loading || !ticket) return;
|
|
1132
1177
|
ticket.toggle();
|
|
1133
1178
|
}
|
|
1134
|
-
|
|
1179
|
+
onBeforeUnmount(() => {
|
|
1135
1180
|
timer.stop();
|
|
1136
1181
|
ticket?.unregister();
|
|
1137
1182
|
});
|
|
@@ -1174,28 +1219,28 @@ const _sfc_main$128 = /* @__PURE__ */ defineComponent({
|
|
|
1174
1219
|
attrs: elementAttrs.value
|
|
1175
1220
|
}));
|
|
1176
1221
|
return (_ctx, _cache) => {
|
|
1177
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
1222
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1178
1223
|
as: __props.as,
|
|
1179
1224
|
renderless: __props.renderless
|
|
1180
1225
|
}), {
|
|
1181
1226
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1182
1227
|
_: 3
|
|
1183
|
-
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
1228
|
+
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$141, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
1184
1229
|
};
|
|
1185
1230
|
}
|
|
1186
1231
|
});
|
|
1187
1232
|
//#endregion
|
|
1188
1233
|
//#region src/components/Button/ButtonContent.vue
|
|
1189
|
-
const _sfc_main$
|
|
1234
|
+
const _sfc_main$139 = /* @__PURE__ */ defineComponent({
|
|
1190
1235
|
name: "ButtonContent",
|
|
1191
1236
|
__name: "ButtonContent",
|
|
1192
1237
|
props: {
|
|
1193
|
-
id: { default: () => useId() },
|
|
1238
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
1194
1239
|
namespace: { default: "v0:button:root" }
|
|
1195
1240
|
},
|
|
1196
1241
|
setup(__props) {
|
|
1197
1242
|
const ticket = useButtonRoot(__props.namespace).single.register({ id: __props.id });
|
|
1198
|
-
|
|
1243
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1199
1244
|
const slotProps = toRef(() => ({ isSelected: ticket.isSelected.value }));
|
|
1200
1245
|
return (_ctx, _cache) => {
|
|
1201
1246
|
return openBlock(), createElementBlock("span", { style: normalizeStyle({ visibility: unref(ticket).isSelected.value ? "visible" : "hidden" }) }, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))], 4);
|
|
@@ -1204,7 +1249,7 @@ const _sfc_main$127 = /* @__PURE__ */ defineComponent({
|
|
|
1204
1249
|
});
|
|
1205
1250
|
//#endregion
|
|
1206
1251
|
//#region src/components/Button/ButtonIcon.vue
|
|
1207
|
-
const _sfc_main$
|
|
1252
|
+
const _sfc_main$138 = /* @__PURE__ */ defineComponent({
|
|
1208
1253
|
name: "ButtonIcon",
|
|
1209
1254
|
__name: "ButtonIcon",
|
|
1210
1255
|
props: {
|
|
@@ -1223,7 +1268,7 @@ const _sfc_main$126 = /* @__PURE__ */ defineComponent({
|
|
|
1223
1268
|
attrs: { "aria-hidden": true }
|
|
1224
1269
|
}));
|
|
1225
1270
|
return (_ctx, _cache) => {
|
|
1226
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1271
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1227
1272
|
as: __props.as,
|
|
1228
1273
|
renderless: __props.renderless
|
|
1229
1274
|
}), {
|
|
@@ -1235,11 +1280,11 @@ const _sfc_main$126 = /* @__PURE__ */ defineComponent({
|
|
|
1235
1280
|
});
|
|
1236
1281
|
//#endregion
|
|
1237
1282
|
//#region src/components/Button/ButtonLoading.vue
|
|
1238
|
-
const _sfc_main$
|
|
1283
|
+
const _sfc_main$137 = /* @__PURE__ */ defineComponent({
|
|
1239
1284
|
name: "ButtonLoading",
|
|
1240
1285
|
__name: "ButtonLoading",
|
|
1241
1286
|
props: {
|
|
1242
|
-
id: { default: () => useId() },
|
|
1287
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
1243
1288
|
namespace: { default: "v0:button:root" }
|
|
1244
1289
|
},
|
|
1245
1290
|
setup(__props) {
|
|
@@ -1258,7 +1303,7 @@ const _sfc_main$125 = /* @__PURE__ */ defineComponent({
|
|
|
1258
1303
|
if (fallback) fallback.select();
|
|
1259
1304
|
}
|
|
1260
1305
|
}, { immediate: true });
|
|
1261
|
-
|
|
1306
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1262
1307
|
const slotProps = toRef(() => ({ isSelected: ticket.isSelected.value }));
|
|
1263
1308
|
return (_ctx, _cache) => {
|
|
1264
1309
|
return unref(ticket).isSelected.value ? renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 0 }, slotProps.value))) : createCommentVNode("v-if", true);
|
|
@@ -1266,37 +1311,812 @@ const _sfc_main$125 = /* @__PURE__ */ defineComponent({
|
|
|
1266
1311
|
}
|
|
1267
1312
|
});
|
|
1268
1313
|
//#endregion
|
|
1269
|
-
//#region src/components/Button/index.ts
|
|
1314
|
+
//#region src/components/Button/index.ts
|
|
1315
|
+
/**
|
|
1316
|
+
* Button component with sub-components for interactive button controls.
|
|
1317
|
+
*
|
|
1318
|
+
* @see https://0.vuetifyjs.com/components/actions/button
|
|
1319
|
+
*
|
|
1320
|
+
* @example
|
|
1321
|
+
* ```vue
|
|
1322
|
+
* <script setup lang="ts">
|
|
1323
|
+
* import { Button } from '@vuetify/v0'
|
|
1324
|
+
* <\/script>
|
|
1325
|
+
*
|
|
1326
|
+
* <template>
|
|
1327
|
+
* <Button.Root>
|
|
1328
|
+
* <Button.Content>Click me</Button.Content>
|
|
1329
|
+
* </Button.Root>
|
|
1330
|
+
* </template>
|
|
1331
|
+
* ```
|
|
1332
|
+
*/
|
|
1333
|
+
const Button = {
|
|
1334
|
+
Content: _sfc_main$139,
|
|
1335
|
+
Group: _sfc_main$142,
|
|
1336
|
+
HiddenInput: _sfc_main$141,
|
|
1337
|
+
Icon: _sfc_main$138,
|
|
1338
|
+
Loading: _sfc_main$137,
|
|
1339
|
+
Root: _sfc_main$140
|
|
1340
|
+
};
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region src/components/Carousel/CarouselRoot.vue
|
|
1343
|
+
const [useCarouselRoot, provideCarouselRoot] = createContext();
|
|
1344
|
+
const _sfc_main$136 = /* @__PURE__ */ defineComponent({
|
|
1345
|
+
name: "CarouselRoot",
|
|
1346
|
+
__name: "CarouselRoot",
|
|
1347
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1348
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
1349
|
+
label: {},
|
|
1350
|
+
namespace: { default: "v0:carousel" },
|
|
1351
|
+
disabled: {
|
|
1352
|
+
type: Boolean,
|
|
1353
|
+
default: false
|
|
1354
|
+
},
|
|
1355
|
+
circular: {
|
|
1356
|
+
type: Boolean,
|
|
1357
|
+
default: false
|
|
1358
|
+
},
|
|
1359
|
+
orientation: { default: "horizontal" },
|
|
1360
|
+
perView: { default: 1 },
|
|
1361
|
+
autoplay: { default: 0 },
|
|
1362
|
+
behavior: { default: "smooth" },
|
|
1363
|
+
as: { default: "div" },
|
|
1364
|
+
renderless: { type: Boolean }
|
|
1365
|
+
}, {
|
|
1366
|
+
"modelValue": {},
|
|
1367
|
+
"modelModifiers": {}
|
|
1368
|
+
}),
|
|
1369
|
+
emits: ["update:modelValue"],
|
|
1370
|
+
setup(__props) {
|
|
1371
|
+
const locale = useLocale();
|
|
1372
|
+
const model = useModel(__props, "modelValue");
|
|
1373
|
+
const step = createStep({
|
|
1374
|
+
disabled: toRef(() => __props.disabled),
|
|
1375
|
+
mandatory: "force",
|
|
1376
|
+
circular: __props.circular,
|
|
1377
|
+
events: true,
|
|
1378
|
+
reactive: true
|
|
1379
|
+
});
|
|
1380
|
+
useProxyModel(step, model, { multiple: false });
|
|
1381
|
+
function next() {
|
|
1382
|
+
if (__props.circular && __props.perView > 1) {
|
|
1383
|
+
const maxStart = Math.max(0, step.size - __props.perView);
|
|
1384
|
+
if (step.selectedIndex.value >= maxStart) {
|
|
1385
|
+
step.first();
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
step.next();
|
|
1390
|
+
}
|
|
1391
|
+
function prev() {
|
|
1392
|
+
if (__props.circular && __props.perView > 1 && step.selectedIndex.value === 0) {
|
|
1393
|
+
step.step(Math.max(0, step.size - __props.perView));
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
step.prev();
|
|
1397
|
+
}
|
|
1398
|
+
const timer = __props.autoplay > 0 ? useTimer(() => next(), {
|
|
1399
|
+
duration: __props.autoplay,
|
|
1400
|
+
repeat: true
|
|
1401
|
+
}) : null;
|
|
1402
|
+
function pause() {
|
|
1403
|
+
timer?.pause();
|
|
1404
|
+
}
|
|
1405
|
+
function resume() {
|
|
1406
|
+
timer?.resume();
|
|
1407
|
+
}
|
|
1408
|
+
function play() {
|
|
1409
|
+
timer?.start();
|
|
1410
|
+
}
|
|
1411
|
+
function stop() {
|
|
1412
|
+
timer?.stop();
|
|
1413
|
+
}
|
|
1414
|
+
const parts = createRegistry();
|
|
1415
|
+
const context = {
|
|
1416
|
+
...step,
|
|
1417
|
+
next,
|
|
1418
|
+
prev,
|
|
1419
|
+
play,
|
|
1420
|
+
pause,
|
|
1421
|
+
resume,
|
|
1422
|
+
orientation: toRef(() => __props.orientation),
|
|
1423
|
+
perView: toRef(() => __props.perView),
|
|
1424
|
+
circular: toRef(() => __props.circular),
|
|
1425
|
+
rootId: __props.id,
|
|
1426
|
+
behavior: toRef(() => __props.behavior),
|
|
1427
|
+
parts,
|
|
1428
|
+
autoplay: toRef(() => __props.autoplay),
|
|
1429
|
+
remaining: toRef(() => timer?.remaining.value ?? 0),
|
|
1430
|
+
isAutoplay: toRef(() => timer?.isActive.value ?? false),
|
|
1431
|
+
isPaused: toRef(() => timer?.isPaused.value ?? false),
|
|
1432
|
+
get size() {
|
|
1433
|
+
return step.size;
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
provideCarouselRoot(__props.namespace, context);
|
|
1437
|
+
const slotProps = toRef(() => ({
|
|
1438
|
+
isDisabled: toValue(step.disabled),
|
|
1439
|
+
orientation: __props.orientation,
|
|
1440
|
+
perView: __props.perView,
|
|
1441
|
+
first: step.first,
|
|
1442
|
+
last: step.last,
|
|
1443
|
+
next,
|
|
1444
|
+
prev,
|
|
1445
|
+
step: step.step,
|
|
1446
|
+
select: step.select,
|
|
1447
|
+
isAutoplay: timer?.isActive.value ?? false,
|
|
1448
|
+
isPaused: timer?.isPaused.value ?? false,
|
|
1449
|
+
remaining: timer?.remaining.value ?? 0,
|
|
1450
|
+
play,
|
|
1451
|
+
stop,
|
|
1452
|
+
pause,
|
|
1453
|
+
resume,
|
|
1454
|
+
attrs: {
|
|
1455
|
+
"role": "region",
|
|
1456
|
+
"aria-roledescription": "carousel",
|
|
1457
|
+
"aria-label": __props.label ?? locale.t("Carousel.label"),
|
|
1458
|
+
"aria-disabled": toValue(step.disabled),
|
|
1459
|
+
"data-disabled": toValue(step.disabled) || void 0
|
|
1460
|
+
}
|
|
1461
|
+
}));
|
|
1462
|
+
return (_ctx, _cache) => {
|
|
1463
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1464
|
+
as: __props.as,
|
|
1465
|
+
renderless: __props.renderless
|
|
1466
|
+
}), {
|
|
1467
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1468
|
+
_: 3
|
|
1469
|
+
}, 16, ["as", "renderless"]);
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
//#endregion
|
|
1474
|
+
//#region src/components/Carousel/CarouselViewport.vue
|
|
1475
|
+
const _sfc_main$135 = /* @__PURE__ */ defineComponent({
|
|
1476
|
+
name: "CarouselViewport",
|
|
1477
|
+
inheritAttrs: false,
|
|
1478
|
+
__name: "CarouselViewport",
|
|
1479
|
+
props: {
|
|
1480
|
+
namespace: { default: "v0:carousel" },
|
|
1481
|
+
as: { default: "div" },
|
|
1482
|
+
renderless: { type: Boolean }
|
|
1483
|
+
},
|
|
1484
|
+
setup(__props) {
|
|
1485
|
+
const attrs = useAttrs();
|
|
1486
|
+
const viewportRef = useTemplateRef("viewport");
|
|
1487
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
1488
|
+
const isVertical = toRef(() => carousel.orientation.value === "vertical");
|
|
1489
|
+
const isDragging = shallowRef(false);
|
|
1490
|
+
const syncing = shallowRef(false);
|
|
1491
|
+
const snapDisabled = shallowRef(false);
|
|
1492
|
+
const viewportId = `${carousel.rootId}-viewport`;
|
|
1493
|
+
const el = toRef(() => /* @__PURE__ */ toElement(viewportRef.value?.element) ?? null);
|
|
1494
|
+
const ticket = carousel.parts.register({
|
|
1495
|
+
type: "viewport",
|
|
1496
|
+
el
|
|
1497
|
+
});
|
|
1498
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1499
|
+
const { width, height } = useElementSize(el);
|
|
1500
|
+
const scrollPaddingStart = shallowRef();
|
|
1501
|
+
const scrollPaddingEnd = shallowRef();
|
|
1502
|
+
function syncScrollPadding() {
|
|
1503
|
+
const element = el.value;
|
|
1504
|
+
if (!element) {
|
|
1505
|
+
scrollPaddingStart.value = void 0;
|
|
1506
|
+
scrollPaddingEnd.value = void 0;
|
|
1507
|
+
return;
|
|
1508
|
+
}
|
|
1509
|
+
const cs = getComputedStyle(element);
|
|
1510
|
+
const start = isVertical.value ? cs.paddingBlockStart : cs.paddingInlineStart;
|
|
1511
|
+
const end = isVertical.value ? cs.paddingBlockEnd : cs.paddingInlineEnd;
|
|
1512
|
+
scrollPaddingStart.value = start && start !== "0px" ? start : void 0;
|
|
1513
|
+
scrollPaddingEnd.value = end && end !== "0px" ? end : void 0;
|
|
1514
|
+
}
|
|
1515
|
+
useResizeObserver(el, syncScrollPadding, { immediate: true });
|
|
1516
|
+
watch(isVertical, syncScrollPadding);
|
|
1517
|
+
const slideStep = toRef(() => {
|
|
1518
|
+
if (!el.value) return 0;
|
|
1519
|
+
if ((isVertical.value ? height.value : width.value) === 0) return 0;
|
|
1520
|
+
const first = toValue(carousel.seek("first")?.el);
|
|
1521
|
+
const second = toValue(carousel.seek("first", 1)?.el);
|
|
1522
|
+
if (!first) return 0;
|
|
1523
|
+
if (!second) return isVertical.value ? first.offsetHeight : first.offsetWidth;
|
|
1524
|
+
return isVertical.value ? second.offsetTop - first.offsetTop : second.offsetLeft - first.offsetLeft;
|
|
1525
|
+
});
|
|
1526
|
+
if (IN_BROWSER) {
|
|
1527
|
+
useEventListener(el, "scrollend", () => {
|
|
1528
|
+
if (syncing.value || snapDisabled.value) {
|
|
1529
|
+
syncing.value = false;
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
const viewport = el.value;
|
|
1533
|
+
if (!viewport || slideStep.value === 0) return;
|
|
1534
|
+
isDragging.value = false;
|
|
1535
|
+
const scrollPos = isVertical.value ? viewport.scrollTop : viewport.scrollLeft;
|
|
1536
|
+
const snapIndex = Math.round(scrollPos / slideStep.value);
|
|
1537
|
+
const id = carousel.lookup(snapIndex);
|
|
1538
|
+
if (!/* @__PURE__ */ isUndefined(id) && id !== carousel.selectedItem.value?.id) carousel.select(id);
|
|
1539
|
+
});
|
|
1540
|
+
useEventListener(el, "scroll", () => {
|
|
1541
|
+
if (!syncing.value) isDragging.value = true;
|
|
1542
|
+
});
|
|
1543
|
+
let lastWheel = 0;
|
|
1544
|
+
useEventListener(el, "wheel", (e) => {
|
|
1545
|
+
if (e.shiftKey === isVertical.value) return;
|
|
1546
|
+
const delta = e.deltaY || e.deltaX;
|
|
1547
|
+
if (delta === 0) return;
|
|
1548
|
+
e.preventDefault();
|
|
1549
|
+
const now = performance.now();
|
|
1550
|
+
if (now - lastWheel < 300) return;
|
|
1551
|
+
lastWheel = now;
|
|
1552
|
+
if (delta > 0) carousel.next();
|
|
1553
|
+
else carousel.prev();
|
|
1554
|
+
}, { passive: false });
|
|
1555
|
+
let dragStart = 0;
|
|
1556
|
+
let scrollStart = 0;
|
|
1557
|
+
useEventListener(el, "mousedown", (e) => {
|
|
1558
|
+
if (e.button !== 0) return;
|
|
1559
|
+
const viewport = el.value;
|
|
1560
|
+
if (!viewport) return;
|
|
1561
|
+
carousel.pause();
|
|
1562
|
+
dragStart = isVertical.value ? e.clientY : e.clientX;
|
|
1563
|
+
scrollStart = isVertical.value ? viewport.scrollTop : viewport.scrollLeft;
|
|
1564
|
+
snapDisabled.value = true;
|
|
1565
|
+
});
|
|
1566
|
+
useToggleScope(() => snapDisabled.value, () => {
|
|
1567
|
+
useDocumentEventListener("mousemove", (e) => {
|
|
1568
|
+
const viewport = el.value;
|
|
1569
|
+
if (!viewport) return;
|
|
1570
|
+
e.preventDefault();
|
|
1571
|
+
const delta = (isVertical.value ? e.clientY : e.clientX) - dragStart;
|
|
1572
|
+
if (isVertical.value) viewport.scrollTop = scrollStart - delta;
|
|
1573
|
+
else viewport.scrollLeft = scrollStart - delta;
|
|
1574
|
+
});
|
|
1575
|
+
useDocumentEventListener("mouseup", () => {
|
|
1576
|
+
const viewport = el.value;
|
|
1577
|
+
carousel.resume();
|
|
1578
|
+
if (!viewport || slideStep.value === 0) {
|
|
1579
|
+
snapDisabled.value = false;
|
|
1580
|
+
isDragging.value = false;
|
|
1581
|
+
return;
|
|
1582
|
+
}
|
|
1583
|
+
const scrollPos = isVertical.value ? viewport.scrollTop : viewport.scrollLeft;
|
|
1584
|
+
const snapIndex = Math.round(scrollPos / slideStep.value);
|
|
1585
|
+
const position = snapIndex * slideStep.value;
|
|
1586
|
+
syncing.value = true;
|
|
1587
|
+
viewport.scrollTo({
|
|
1588
|
+
[isVertical.value ? "top" : "left"]: position,
|
|
1589
|
+
behavior: carousel.behavior.value
|
|
1590
|
+
});
|
|
1591
|
+
const id = carousel.lookup(snapIndex);
|
|
1592
|
+
if (!/* @__PURE__ */ isUndefined(id) && id !== carousel.selectedItem.value?.id) carousel.select(id);
|
|
1593
|
+
snapDisabled.value = false;
|
|
1594
|
+
isDragging.value = false;
|
|
1595
|
+
});
|
|
1596
|
+
onScopeDispose(() => {
|
|
1597
|
+
carousel.resume();
|
|
1598
|
+
snapDisabled.value = false;
|
|
1599
|
+
isDragging.value = false;
|
|
1600
|
+
});
|
|
1601
|
+
});
|
|
1602
|
+
useEventListener(el, "touchstart", () => carousel.pause(), { passive: true });
|
|
1603
|
+
useEventListener(el, "touchend", () => carousel.resume(), { passive: true });
|
|
1604
|
+
}
|
|
1605
|
+
watch(() => carousel.selectedIndex.value, (index) => {
|
|
1606
|
+
const viewport = el.value;
|
|
1607
|
+
if (!viewport || slideStep.value === 0) return;
|
|
1608
|
+
syncing.value = true;
|
|
1609
|
+
const position = index * slideStep.value;
|
|
1610
|
+
viewport.scrollTo({
|
|
1611
|
+
[isVertical.value ? "top" : "left"]: position,
|
|
1612
|
+
behavior: carousel.behavior.value
|
|
1613
|
+
});
|
|
1614
|
+
});
|
|
1615
|
+
const viewportStyle = toRef(() => {
|
|
1616
|
+
const axis = isVertical.value ? "block" : "inline";
|
|
1617
|
+
return {
|
|
1618
|
+
"display": "flex",
|
|
1619
|
+
"flex-direction": isVertical.value ? "column" : "row",
|
|
1620
|
+
[isVertical.value ? "overflow-y" : "overflow-x"]: "auto",
|
|
1621
|
+
[isVertical.value ? "overflow-x" : "overflow-y"]: "hidden",
|
|
1622
|
+
"scroll-snap-type": snapDisabled.value ? "none" : `${isVertical.value ? "y" : "x"} mandatory`,
|
|
1623
|
+
"scrollbar-width": "none",
|
|
1624
|
+
...scrollPaddingStart.value ? { [`scroll-padding-${axis}-start`]: scrollPaddingStart.value } : {},
|
|
1625
|
+
...scrollPaddingEnd.value ? { [`scroll-padding-${axis}-end`]: scrollPaddingEnd.value } : {},
|
|
1626
|
+
...snapDisabled.value ? { "user-select": "none" } : {}
|
|
1627
|
+
};
|
|
1628
|
+
});
|
|
1629
|
+
const slotProps = toRef(() => ({
|
|
1630
|
+
isDragging: isDragging.value,
|
|
1631
|
+
attrs: {
|
|
1632
|
+
"id": viewportId,
|
|
1633
|
+
"data-orientation": carousel.orientation.value,
|
|
1634
|
+
"data-dragging": isDragging.value || void 0,
|
|
1635
|
+
"style": viewportStyle.value
|
|
1636
|
+
}
|
|
1637
|
+
}));
|
|
1638
|
+
return (_ctx, _cache) => {
|
|
1639
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "viewport" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1640
|
+
as: __props.as,
|
|
1641
|
+
renderless: __props.renderless,
|
|
1642
|
+
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
1643
|
+
}), {
|
|
1644
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1645
|
+
_: 3
|
|
1646
|
+
}, 16, [
|
|
1647
|
+
"as",
|
|
1648
|
+
"renderless",
|
|
1649
|
+
"style"
|
|
1650
|
+
]);
|
|
1651
|
+
};
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region src/components/Carousel/CarouselItem.vue
|
|
1656
|
+
const _sfc_main$134 = /* @__PURE__ */ defineComponent({
|
|
1657
|
+
name: "CarouselItem",
|
|
1658
|
+
inheritAttrs: false,
|
|
1659
|
+
__name: "CarouselItem",
|
|
1660
|
+
props: {
|
|
1661
|
+
id: {},
|
|
1662
|
+
value: {},
|
|
1663
|
+
disabled: {},
|
|
1664
|
+
namespace: { default: "v0:carousel" },
|
|
1665
|
+
as: { default: "div" },
|
|
1666
|
+
renderless: { type: Boolean }
|
|
1667
|
+
},
|
|
1668
|
+
setup(__props) {
|
|
1669
|
+
const attrs = useAttrs();
|
|
1670
|
+
const rootEl = useTemplateRef("root");
|
|
1671
|
+
const locale = useLocale();
|
|
1672
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
1673
|
+
const el = toRef(() => /* @__PURE__ */ toElement(rootEl.value?.element) ?? null);
|
|
1674
|
+
const ticket = carousel.register({
|
|
1675
|
+
id: __props.id,
|
|
1676
|
+
value: __props.value,
|
|
1677
|
+
disabled: __props.disabled,
|
|
1678
|
+
el
|
|
1679
|
+
});
|
|
1680
|
+
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(carousel.disabled));
|
|
1681
|
+
onBeforeUnmount(() => {
|
|
1682
|
+
ticket.unregister();
|
|
1683
|
+
});
|
|
1684
|
+
const isActive = toRef(() => {
|
|
1685
|
+
const selected = carousel.selectedIndex.value;
|
|
1686
|
+
const perView = carousel.perView.value;
|
|
1687
|
+
const index = ticket.index;
|
|
1688
|
+
return index >= selected && index < selected + perView;
|
|
1689
|
+
});
|
|
1690
|
+
const slideStyle = { "scroll-snap-align": "start" };
|
|
1691
|
+
const slotProps = toRef(() => ({
|
|
1692
|
+
id: String(ticket.id),
|
|
1693
|
+
isSelected: toValue(ticket.isSelected),
|
|
1694
|
+
isActive: isActive.value,
|
|
1695
|
+
isDisabled: isDisabled.value,
|
|
1696
|
+
index: ticket.index,
|
|
1697
|
+
select: ticket.select,
|
|
1698
|
+
unselect: ticket.unselect,
|
|
1699
|
+
toggle: ticket.toggle,
|
|
1700
|
+
attrs: {
|
|
1701
|
+
"id": `${carousel.rootId}-slide-${ticket.index}`,
|
|
1702
|
+
"role": "group",
|
|
1703
|
+
"aria-roledescription": "slide",
|
|
1704
|
+
"aria-label": locale.t("Carousel.slide", {
|
|
1705
|
+
current: ticket.index + 1,
|
|
1706
|
+
size: carousel.size
|
|
1707
|
+
}),
|
|
1708
|
+
"aria-hidden": isActive.value ? void 0 : true,
|
|
1709
|
+
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
1710
|
+
"data-active": isActive.value || void 0,
|
|
1711
|
+
"data-disabled": isDisabled.value || void 0,
|
|
1712
|
+
"data-index": ticket.index,
|
|
1713
|
+
"style": slideStyle
|
|
1714
|
+
}
|
|
1715
|
+
}));
|
|
1716
|
+
return (_ctx, _cache) => {
|
|
1717
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1718
|
+
as: __props.as,
|
|
1719
|
+
renderless: __props.renderless,
|
|
1720
|
+
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
1721
|
+
}), {
|
|
1722
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1723
|
+
_: 3
|
|
1724
|
+
}, 16, [
|
|
1725
|
+
"as",
|
|
1726
|
+
"renderless",
|
|
1727
|
+
"style"
|
|
1728
|
+
]);
|
|
1729
|
+
};
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
//#endregion
|
|
1733
|
+
//#region src/components/Carousel/CarouselPrevious.vue
|
|
1734
|
+
const _sfc_main$133 = /* @__PURE__ */ defineComponent({
|
|
1735
|
+
name: "CarouselPrevious",
|
|
1736
|
+
inheritAttrs: false,
|
|
1737
|
+
__name: "CarouselPrevious",
|
|
1738
|
+
props: {
|
|
1739
|
+
namespace: { default: "v0:carousel" },
|
|
1740
|
+
as: { default: "button" },
|
|
1741
|
+
renderless: { type: Boolean }
|
|
1742
|
+
},
|
|
1743
|
+
setup(__props) {
|
|
1744
|
+
const attrs = useAttrs();
|
|
1745
|
+
const rootEl = useTemplateRef("root");
|
|
1746
|
+
const locale = useLocale();
|
|
1747
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
1748
|
+
const el = toRef(() => /* @__PURE__ */ toElement(rootEl.value?.element) ?? null);
|
|
1749
|
+
const ticket = carousel.parts.register({
|
|
1750
|
+
type: "previous",
|
|
1751
|
+
el
|
|
1752
|
+
});
|
|
1753
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1754
|
+
const viewportId = `${carousel.rootId}-viewport`;
|
|
1755
|
+
const isAtEdge = toRef(() => !carousel.circular.value && carousel.selectedIndex.value === 0);
|
|
1756
|
+
const isDisabled = toRef(() => toValue(carousel.disabled) || isAtEdge.value);
|
|
1757
|
+
function onClick() {
|
|
1758
|
+
if (!isDisabled.value) carousel.prev();
|
|
1759
|
+
}
|
|
1760
|
+
const slotProps = toRef(() => ({
|
|
1761
|
+
isDisabled: isDisabled.value,
|
|
1762
|
+
isAtEdge: isAtEdge.value,
|
|
1763
|
+
attrs: {
|
|
1764
|
+
"type": __props.as === "button" ? "button" : void 0,
|
|
1765
|
+
"aria-label": locale.t("Carousel.prev"),
|
|
1766
|
+
"aria-controls": viewportId,
|
|
1767
|
+
"aria-disabled": isDisabled.value,
|
|
1768
|
+
"disabled": __props.as === "button" ? isDisabled.value : void 0,
|
|
1769
|
+
"data-disabled": isDisabled.value || void 0,
|
|
1770
|
+
"data-edge": isAtEdge.value || void 0,
|
|
1771
|
+
"onClick": onClick
|
|
1772
|
+
}
|
|
1773
|
+
}));
|
|
1774
|
+
return (_ctx, _cache) => {
|
|
1775
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1776
|
+
as: __props.as,
|
|
1777
|
+
renderless: __props.renderless
|
|
1778
|
+
}), {
|
|
1779
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1780
|
+
_: 3
|
|
1781
|
+
}, 16, ["as", "renderless"]);
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1785
|
+
//#endregion
|
|
1786
|
+
//#region src/components/Carousel/CarouselNext.vue
|
|
1787
|
+
const _sfc_main$132 = /* @__PURE__ */ defineComponent({
|
|
1788
|
+
name: "CarouselNext",
|
|
1789
|
+
inheritAttrs: false,
|
|
1790
|
+
__name: "CarouselNext",
|
|
1791
|
+
props: {
|
|
1792
|
+
namespace: { default: "v0:carousel" },
|
|
1793
|
+
as: { default: "button" },
|
|
1794
|
+
renderless: { type: Boolean }
|
|
1795
|
+
},
|
|
1796
|
+
setup(__props) {
|
|
1797
|
+
const attrs = useAttrs();
|
|
1798
|
+
const rootEl = useTemplateRef("root");
|
|
1799
|
+
const locale = useLocale();
|
|
1800
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
1801
|
+
const el = toRef(() => /* @__PURE__ */ toElement(rootEl.value?.element) ?? null);
|
|
1802
|
+
const ticket = carousel.parts.register({
|
|
1803
|
+
type: "next",
|
|
1804
|
+
el
|
|
1805
|
+
});
|
|
1806
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1807
|
+
const viewportId = `${carousel.rootId}-viewport`;
|
|
1808
|
+
const isAtEdge = toRef(() => {
|
|
1809
|
+
if (carousel.circular.value) return false;
|
|
1810
|
+
return carousel.selectedIndex.value >= carousel.size - carousel.perView.value;
|
|
1811
|
+
});
|
|
1812
|
+
const isDisabled = toRef(() => toValue(carousel.disabled) || isAtEdge.value);
|
|
1813
|
+
function onClick() {
|
|
1814
|
+
if (!isDisabled.value) carousel.next();
|
|
1815
|
+
}
|
|
1816
|
+
const slotProps = toRef(() => ({
|
|
1817
|
+
isDisabled: isDisabled.value,
|
|
1818
|
+
isAtEdge: isAtEdge.value,
|
|
1819
|
+
attrs: {
|
|
1820
|
+
"type": __props.as === "button" ? "button" : void 0,
|
|
1821
|
+
"aria-label": locale.t("Carousel.next"),
|
|
1822
|
+
"aria-controls": viewportId,
|
|
1823
|
+
"aria-disabled": isDisabled.value,
|
|
1824
|
+
"disabled": __props.as === "button" ? isDisabled.value : void 0,
|
|
1825
|
+
"data-disabled": isDisabled.value || void 0,
|
|
1826
|
+
"data-edge": isAtEdge.value || void 0,
|
|
1827
|
+
"onClick": onClick
|
|
1828
|
+
}
|
|
1829
|
+
}));
|
|
1830
|
+
return (_ctx, _cache) => {
|
|
1831
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1832
|
+
as: __props.as,
|
|
1833
|
+
renderless: __props.renderless
|
|
1834
|
+
}), {
|
|
1835
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1836
|
+
_: 3
|
|
1837
|
+
}, 16, ["as", "renderless"]);
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
});
|
|
1841
|
+
//#endregion
|
|
1842
|
+
//#region src/components/Carousel/CarouselIndicator.vue
|
|
1843
|
+
const _sfc_main$131 = /* @__PURE__ */ defineComponent({
|
|
1844
|
+
name: "CarouselIndicator",
|
|
1845
|
+
inheritAttrs: false,
|
|
1846
|
+
__name: "CarouselIndicator",
|
|
1847
|
+
props: {
|
|
1848
|
+
label: {},
|
|
1849
|
+
namespace: { default: "v0:carousel" },
|
|
1850
|
+
as: { default: "div" },
|
|
1851
|
+
renderless: { type: Boolean }
|
|
1852
|
+
},
|
|
1853
|
+
setup(__props) {
|
|
1854
|
+
const attrs = useAttrs();
|
|
1855
|
+
const rootEl = useTemplateRef("root");
|
|
1856
|
+
const locale = useLocale();
|
|
1857
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
1858
|
+
const el = toRef(() => /* @__PURE__ */ toElement(rootEl.value?.element) ?? null);
|
|
1859
|
+
const ticket = carousel.parts.register({
|
|
1860
|
+
type: "indicator",
|
|
1861
|
+
el
|
|
1862
|
+
});
|
|
1863
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1864
|
+
function selectIndex(index) {
|
|
1865
|
+
const id = carousel.lookup(index);
|
|
1866
|
+
if (!/* @__PURE__ */ isUndefined(id)) carousel.select(id);
|
|
1867
|
+
}
|
|
1868
|
+
function focusSelected() {
|
|
1869
|
+
nextTick(() => {
|
|
1870
|
+
(/* @__PURE__ */ toElement(rootEl.value?.element))?.querySelector("[tabindex=\"0\"]")?.focus();
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
function onKeydown(index, e) {
|
|
1874
|
+
const horizontal = carousel.orientation.value === "horizontal";
|
|
1875
|
+
const size = carousel.size;
|
|
1876
|
+
if (horizontal && e.key === "ArrowRight" || !horizontal && e.key === "ArrowDown") {
|
|
1877
|
+
e.preventDefault();
|
|
1878
|
+
selectIndex(index + 1 < size ? index + 1 : carousel.circular.value ? 0 : index);
|
|
1879
|
+
focusSelected();
|
|
1880
|
+
return;
|
|
1881
|
+
}
|
|
1882
|
+
if (horizontal && e.key === "ArrowLeft" || !horizontal && e.key === "ArrowUp") {
|
|
1883
|
+
e.preventDefault();
|
|
1884
|
+
selectIndex(index - 1 >= 0 ? index - 1 : carousel.circular.value ? size - 1 : index);
|
|
1885
|
+
focusSelected();
|
|
1886
|
+
return;
|
|
1887
|
+
}
|
|
1888
|
+
if (e.key === "Home") {
|
|
1889
|
+
e.preventDefault();
|
|
1890
|
+
carousel.first();
|
|
1891
|
+
focusSelected();
|
|
1892
|
+
return;
|
|
1893
|
+
}
|
|
1894
|
+
if (e.key === "End") {
|
|
1895
|
+
e.preventDefault();
|
|
1896
|
+
carousel.last();
|
|
1897
|
+
focusSelected();
|
|
1898
|
+
return;
|
|
1899
|
+
}
|
|
1900
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1901
|
+
e.preventDefault();
|
|
1902
|
+
selectIndex(index);
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
const slotProps = toRef(() => {
|
|
1906
|
+
const selected = carousel.selectedIndex.value;
|
|
1907
|
+
const size = carousel.size;
|
|
1908
|
+
const perView = carousel.perView.value;
|
|
1909
|
+
return {
|
|
1910
|
+
size,
|
|
1911
|
+
selectedIndex: selected,
|
|
1912
|
+
items: Array.from({ length: size }, (_, i) => {
|
|
1913
|
+
const isSelected = i === selected;
|
|
1914
|
+
const isActive = i >= selected && i < selected + perView;
|
|
1915
|
+
return {
|
|
1916
|
+
index: i,
|
|
1917
|
+
isSelected,
|
|
1918
|
+
isActive,
|
|
1919
|
+
attrs: {
|
|
1920
|
+
"role": "tab",
|
|
1921
|
+
"tabindex": isSelected ? 0 : -1,
|
|
1922
|
+
"aria-selected": isSelected,
|
|
1923
|
+
"aria-controls": `${carousel.rootId}-slide-${i}`,
|
|
1924
|
+
"aria-label": locale.t("Carousel.indicator", {
|
|
1925
|
+
current: i + 1,
|
|
1926
|
+
size
|
|
1927
|
+
}),
|
|
1928
|
+
"data-selected": isSelected || void 0,
|
|
1929
|
+
"data-active": isActive || void 0,
|
|
1930
|
+
"onClick"() {
|
|
1931
|
+
selectIndex(i);
|
|
1932
|
+
},
|
|
1933
|
+
"onKeydown": (e) => onKeydown(i, e)
|
|
1934
|
+
}
|
|
1935
|
+
};
|
|
1936
|
+
}),
|
|
1937
|
+
attrs: {
|
|
1938
|
+
"role": "tablist",
|
|
1939
|
+
"aria-label": __props.label ?? locale.t("Carousel.indicators"),
|
|
1940
|
+
"aria-orientation": carousel.orientation.value
|
|
1941
|
+
}
|
|
1942
|
+
};
|
|
1943
|
+
});
|
|
1944
|
+
return (_ctx, _cache) => {
|
|
1945
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1946
|
+
as: __props.as,
|
|
1947
|
+
renderless: __props.renderless
|
|
1948
|
+
}), {
|
|
1949
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1950
|
+
_: 3
|
|
1951
|
+
}, 16, ["as", "renderless"]);
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1955
|
+
//#endregion
|
|
1956
|
+
//#region src/components/Carousel/CarouselProgress.vue
|
|
1957
|
+
const _sfc_main$130 = /* @__PURE__ */ defineComponent({
|
|
1958
|
+
name: "CarouselProgress",
|
|
1959
|
+
inheritAttrs: false,
|
|
1960
|
+
__name: "CarouselProgress",
|
|
1961
|
+
props: {
|
|
1962
|
+
namespace: { default: "v0:carousel" },
|
|
1963
|
+
as: { default: "div" },
|
|
1964
|
+
renderless: { type: Boolean }
|
|
1965
|
+
},
|
|
1966
|
+
setup(__props) {
|
|
1967
|
+
const attrs = useAttrs();
|
|
1968
|
+
const rootEl = useTemplateRef("root");
|
|
1969
|
+
const locale = useLocale();
|
|
1970
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
1971
|
+
const el = toRef(() => /* @__PURE__ */ toElement(rootEl.value?.element) ?? null);
|
|
1972
|
+
const ticket = carousel.parts.register({
|
|
1973
|
+
type: "progress",
|
|
1974
|
+
el
|
|
1975
|
+
});
|
|
1976
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
1977
|
+
const progress = toRef(() => {
|
|
1978
|
+
const duration = carousel.autoplay.value;
|
|
1979
|
+
if (duration <= 0) return 0;
|
|
1980
|
+
return 1 - carousel.remaining.value / duration;
|
|
1981
|
+
});
|
|
1982
|
+
const state = toRef(() => {
|
|
1983
|
+
if (!carousel.isAutoplay.value) return "idle";
|
|
1984
|
+
if (carousel.isPaused.value) return "paused";
|
|
1985
|
+
return "active";
|
|
1986
|
+
});
|
|
1987
|
+
const slotProps = toRef(() => {
|
|
1988
|
+
const percent = Math.round(progress.value * 100);
|
|
1989
|
+
return {
|
|
1990
|
+
progress: progress.value,
|
|
1991
|
+
isAutoplay: carousel.isAutoplay.value,
|
|
1992
|
+
isPaused: carousel.isPaused.value,
|
|
1993
|
+
attrs: {
|
|
1994
|
+
"role": "progressbar",
|
|
1995
|
+
"aria-valuenow": percent,
|
|
1996
|
+
"aria-valuemin": 0,
|
|
1997
|
+
"aria-valuemax": 100,
|
|
1998
|
+
"aria-valuetext": locale.t("Carousel.progress", { percent }),
|
|
1999
|
+
"aria-label": locale.t("Carousel.progressLabel"),
|
|
2000
|
+
"data-state": state.value,
|
|
2001
|
+
"style": { width: `${percent}%` }
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
});
|
|
2005
|
+
return (_ctx, _cache) => {
|
|
2006
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
2007
|
+
as: __props.as,
|
|
2008
|
+
renderless: __props.renderless,
|
|
2009
|
+
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
2010
|
+
}), {
|
|
2011
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2012
|
+
_: 3
|
|
2013
|
+
}, 16, [
|
|
2014
|
+
"as",
|
|
2015
|
+
"renderless",
|
|
2016
|
+
"style"
|
|
2017
|
+
]);
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
});
|
|
2021
|
+
//#endregion
|
|
2022
|
+
//#region src/components/Carousel/CarouselLiveRegion.vue
|
|
2023
|
+
const _sfc_main$129 = /* @__PURE__ */ defineComponent({
|
|
2024
|
+
name: "CarouselLiveRegion",
|
|
2025
|
+
inheritAttrs: false,
|
|
2026
|
+
__name: "CarouselLiveRegion",
|
|
2027
|
+
props: {
|
|
2028
|
+
namespace: { default: "v0:carousel" },
|
|
2029
|
+
as: { default: "div" },
|
|
2030
|
+
renderless: { type: Boolean }
|
|
2031
|
+
},
|
|
2032
|
+
setup(__props) {
|
|
2033
|
+
const attrs = useAttrs();
|
|
2034
|
+
const rootEl = useTemplateRef("root");
|
|
2035
|
+
const locale = useLocale();
|
|
2036
|
+
const carousel = useCarouselRoot(__props.namespace);
|
|
2037
|
+
const el = toRef(() => /* @__PURE__ */ toElement(rootEl.value?.element) ?? null);
|
|
2038
|
+
const ticket = carousel.parts.register({
|
|
2039
|
+
type: "live-region",
|
|
2040
|
+
el
|
|
2041
|
+
});
|
|
2042
|
+
onBeforeUnmount(() => ticket.unregister());
|
|
2043
|
+
const text = shallowRef("");
|
|
2044
|
+
/* v8 ignore start -- watch fires after mount, setTimeout callback requires timer */
|
|
2045
|
+
let pending;
|
|
2046
|
+
watch(() => carousel.selectedIndex.value, (index, prevIndex) => {
|
|
2047
|
+
if (/* @__PURE__ */ isUndefined(prevIndex)) return;
|
|
2048
|
+
clearTimeout(pending);
|
|
2049
|
+
pending = setTimeout(() => {
|
|
2050
|
+
text.value = locale.t("Carousel.liveRegion", {
|
|
2051
|
+
current: index + 1,
|
|
2052
|
+
size: carousel.size
|
|
2053
|
+
});
|
|
2054
|
+
}, 100);
|
|
2055
|
+
});
|
|
2056
|
+
onBeforeUnmount(() => clearTimeout(pending));
|
|
2057
|
+
/* v8 ignore stop */
|
|
2058
|
+
const slotProps = toRef(() => ({
|
|
2059
|
+
current: carousel.selectedIndex.value + 1,
|
|
2060
|
+
size: carousel.size,
|
|
2061
|
+
text: text.value,
|
|
2062
|
+
attrs: {
|
|
2063
|
+
"aria-atomic": true,
|
|
2064
|
+
"aria-live": "polite",
|
|
2065
|
+
"role": "status"
|
|
2066
|
+
}
|
|
2067
|
+
}));
|
|
2068
|
+
return (_ctx, _cache) => {
|
|
2069
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
2070
|
+
as: __props.as,
|
|
2071
|
+
renderless: __props.renderless
|
|
2072
|
+
}), {
|
|
2073
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), () => [createTextVNode(toDisplayString(text.value), 1)])]),
|
|
2074
|
+
_: 3
|
|
2075
|
+
}, 16, ["as", "renderless"]);
|
|
2076
|
+
};
|
|
2077
|
+
}
|
|
2078
|
+
});
|
|
2079
|
+
//#endregion
|
|
2080
|
+
//#region src/components/Carousel/index.ts
|
|
1270
2081
|
/**
|
|
1271
|
-
*
|
|
2082
|
+
* Carousel component with sub-components for building accessible slide navigation.
|
|
1272
2083
|
*
|
|
1273
|
-
* @see https://0.vuetifyjs.com/components/
|
|
2084
|
+
* @see https://0.vuetifyjs.com/components/semantic/carousel
|
|
1274
2085
|
*
|
|
1275
2086
|
* @example
|
|
1276
2087
|
* ```vue
|
|
1277
2088
|
* <script setup lang="ts">
|
|
1278
|
-
* import {
|
|
2089
|
+
* import { Carousel } from '@vuetify/v0'
|
|
1279
2090
|
* <\/script>
|
|
1280
2091
|
*
|
|
1281
2092
|
* <template>
|
|
1282
|
-
* <
|
|
1283
|
-
* <
|
|
1284
|
-
*
|
|
2093
|
+
* <Carousel.Root circular>
|
|
2094
|
+
* <Carousel.Viewport>
|
|
2095
|
+
* <Carousel.Item v-for="i in 5" :key="i" :value="i">
|
|
2096
|
+
* Slide {{ i }}
|
|
2097
|
+
* </Carousel.Item>
|
|
2098
|
+
* </Carousel.Viewport>
|
|
2099
|
+
*
|
|
2100
|
+
* <Carousel.Previous>Previous</Carousel.Previous>
|
|
2101
|
+
* <Carousel.Next>Next</Carousel.Next>
|
|
2102
|
+
* </Carousel.Root>
|
|
1285
2103
|
* </template>
|
|
1286
2104
|
* ```
|
|
1287
2105
|
*/
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
2106
|
+
const Carousel = {
|
|
2107
|
+
Root: _sfc_main$136,
|
|
2108
|
+
Viewport: _sfc_main$135,
|
|
2109
|
+
Item: _sfc_main$134,
|
|
2110
|
+
Previous: _sfc_main$133,
|
|
2111
|
+
Next: _sfc_main$132,
|
|
2112
|
+
Indicator: _sfc_main$131,
|
|
2113
|
+
Progress: _sfc_main$130,
|
|
2114
|
+
LiveRegion: _sfc_main$129
|
|
1295
2115
|
};
|
|
1296
2116
|
//#endregion
|
|
1297
2117
|
//#region src/components/Checkbox/CheckboxGroup.vue
|
|
1298
2118
|
const [useCheckboxGroup, provideCheckboxGroup] = createContext();
|
|
1299
|
-
const _sfc_main$
|
|
2119
|
+
const _sfc_main$128 = /* @__PURE__ */ defineComponent({
|
|
1300
2120
|
name: "CheckboxGroup",
|
|
1301
2121
|
__name: "CheckboxGroup",
|
|
1302
2122
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1352,7 +2172,7 @@ const _sfc_main$124 = /* @__PURE__ */ defineComponent({
|
|
|
1352
2172
|
}
|
|
1353
2173
|
}));
|
|
1354
2174
|
return (_ctx, _cache) => {
|
|
1355
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2175
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1356
2176
|
as: __props.as,
|
|
1357
2177
|
renderless: __props.renderless
|
|
1358
2178
|
}), {
|
|
@@ -1365,12 +2185,12 @@ const _sfc_main$124 = /* @__PURE__ */ defineComponent({
|
|
|
1365
2185
|
//#endregion
|
|
1366
2186
|
//#region src/components/Checkbox/CheckboxRoot.vue
|
|
1367
2187
|
const [useCheckboxRoot, provideCheckboxRoot] = createContext();
|
|
1368
|
-
const _sfc_main$
|
|
2188
|
+
const _sfc_main$127 = /* @__PURE__ */ defineComponent({
|
|
1369
2189
|
name: "CheckboxRoot",
|
|
1370
2190
|
inheritAttrs: false,
|
|
1371
2191
|
__name: "CheckboxRoot",
|
|
1372
2192
|
props: /* @__PURE__ */ mergeModels({
|
|
1373
|
-
id: { default: () => useId() },
|
|
2193
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
1374
2194
|
label: {},
|
|
1375
2195
|
value: {},
|
|
1376
2196
|
name: {},
|
|
@@ -1437,7 +2257,7 @@ const _sfc_main$123 = /* @__PURE__ */ defineComponent({
|
|
|
1437
2257
|
e.preventDefault();
|
|
1438
2258
|
toggle();
|
|
1439
2259
|
}
|
|
1440
|
-
|
|
2260
|
+
onBeforeUnmount(() => {
|
|
1441
2261
|
if (!ticket || !group) return;
|
|
1442
2262
|
group.unregister(ticket.id);
|
|
1443
2263
|
});
|
|
@@ -1484,10 +2304,7 @@ const _sfc_main$123 = /* @__PURE__ */ defineComponent({
|
|
|
1484
2304
|
}
|
|
1485
2305
|
}));
|
|
1486
2306
|
return (_ctx, _cache) => {
|
|
1487
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
1488
|
-
...unref(attrs),
|
|
1489
|
-
...slotProps.value.attrs
|
|
1490
|
-
}, {
|
|
2307
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1491
2308
|
as: __props.as,
|
|
1492
2309
|
renderless: __props.renderless,
|
|
1493
2310
|
onClick,
|
|
@@ -1495,7 +2312,7 @@ const _sfc_main$123 = /* @__PURE__ */ defineComponent({
|
|
|
1495
2312
|
}), {
|
|
1496
2313
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1497
2314
|
_: 3
|
|
1498
|
-
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
2315
|
+
}, 16, ["as", "renderless"]), __props.name ? (openBlock(), createBlock(_sfc_main$126, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
1499
2316
|
};
|
|
1500
2317
|
}
|
|
1501
2318
|
});
|
|
@@ -1519,7 +2336,7 @@ const visuallyHiddenStyle$4 = {
|
|
|
1519
2336
|
whiteSpace: "nowrap",
|
|
1520
2337
|
border: "0"
|
|
1521
2338
|
};
|
|
1522
|
-
const _sfc_main$
|
|
2339
|
+
const _sfc_main$126 = /* @__PURE__ */ defineComponent({
|
|
1523
2340
|
name: "CheckboxHiddenInput",
|
|
1524
2341
|
__name: "CheckboxHiddenInput",
|
|
1525
2342
|
props: {
|
|
@@ -1557,7 +2374,7 @@ const _sfc_main$122 = /* @__PURE__ */ defineComponent({
|
|
|
1557
2374
|
});
|
|
1558
2375
|
//#endregion
|
|
1559
2376
|
//#region src/components/Checkbox/CheckboxIndicator.vue
|
|
1560
|
-
const _sfc_main$
|
|
2377
|
+
const _sfc_main$125 = /* @__PURE__ */ defineComponent({
|
|
1561
2378
|
name: "CheckboxIndicator",
|
|
1562
2379
|
__name: "CheckboxIndicator",
|
|
1563
2380
|
props: {
|
|
@@ -1580,7 +2397,7 @@ const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
|
1580
2397
|
}
|
|
1581
2398
|
}));
|
|
1582
2399
|
return (_ctx, _cache) => {
|
|
1583
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2400
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1584
2401
|
as: __props.as,
|
|
1585
2402
|
renderless: __props.renderless
|
|
1586
2403
|
}), {
|
|
@@ -1592,7 +2409,7 @@ const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
|
1592
2409
|
});
|
|
1593
2410
|
//#endregion
|
|
1594
2411
|
//#region src/components/Checkbox/CheckboxSelectAll.vue
|
|
1595
|
-
const _sfc_main$
|
|
2412
|
+
const _sfc_main$124 = /* @__PURE__ */ defineComponent({
|
|
1596
2413
|
name: "CheckboxSelectAll",
|
|
1597
2414
|
inheritAttrs: false,
|
|
1598
2415
|
__name: "CheckboxSelectAll",
|
|
@@ -1609,7 +2426,7 @@ const _sfc_main$120 = /* @__PURE__ */ defineComponent({
|
|
|
1609
2426
|
setup(__props) {
|
|
1610
2427
|
const attrs = useAttrs();
|
|
1611
2428
|
const group = useCheckboxGroup(__props.groupNamespace);
|
|
1612
|
-
const id = useId();
|
|
2429
|
+
const id = /* @__PURE__ */ useId$1();
|
|
1613
2430
|
const isAllSelected = toRef(() => group.isAllSelected.value);
|
|
1614
2431
|
const isMixed = toRef(() => group.isMixed.value);
|
|
1615
2432
|
const isDisabled = toRef(() => toValue(__props.disabled) || toValue(group.disabled));
|
|
@@ -1662,10 +2479,7 @@ const _sfc_main$120 = /* @__PURE__ */ defineComponent({
|
|
|
1662
2479
|
}
|
|
1663
2480
|
}));
|
|
1664
2481
|
return (_ctx, _cache) => {
|
|
1665
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1666
|
-
...unref(attrs),
|
|
1667
|
-
...slotProps.value.attrs
|
|
1668
|
-
}, {
|
|
2482
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
1669
2483
|
as: __props.as,
|
|
1670
2484
|
renderless: __props.renderless,
|
|
1671
2485
|
onClick,
|
|
@@ -1701,16 +2515,16 @@ const _sfc_main$120 = /* @__PURE__ */ defineComponent({
|
|
|
1701
2515
|
* ```
|
|
1702
2516
|
*/
|
|
1703
2517
|
const Checkbox = {
|
|
1704
|
-
Group: _sfc_main$
|
|
1705
|
-
HiddenInput: _sfc_main$
|
|
1706
|
-
Indicator: _sfc_main$
|
|
1707
|
-
Root: _sfc_main$
|
|
1708
|
-
SelectAll: _sfc_main$
|
|
2518
|
+
Group: _sfc_main$128,
|
|
2519
|
+
HiddenInput: _sfc_main$126,
|
|
2520
|
+
Indicator: _sfc_main$125,
|
|
2521
|
+
Root: _sfc_main$127,
|
|
2522
|
+
SelectAll: _sfc_main$124
|
|
1709
2523
|
};
|
|
1710
2524
|
//#endregion
|
|
1711
2525
|
//#region src/components/Collapsible/CollapsibleRoot.vue
|
|
1712
2526
|
const [useCollapsible, provideCollapsible] = createContext();
|
|
1713
|
-
const _sfc_main$
|
|
2527
|
+
const _sfc_main$123 = /* @__PURE__ */ defineComponent({
|
|
1714
2528
|
name: "CollapsibleRoot",
|
|
1715
2529
|
__name: "CollapsibleRoot",
|
|
1716
2530
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1736,7 +2550,7 @@ const _sfc_main$119 = /* @__PURE__ */ defineComponent({
|
|
|
1736
2550
|
disabled: isDisabled,
|
|
1737
2551
|
events: true
|
|
1738
2552
|
});
|
|
1739
|
-
const id = useId();
|
|
2553
|
+
const id = /* @__PURE__ */ useId$1();
|
|
1740
2554
|
const activatorId = toRef(() => id);
|
|
1741
2555
|
const contentId = toRef(() => `${id}-content`);
|
|
1742
2556
|
const ticket = selection.register({
|
|
@@ -1778,7 +2592,7 @@ const _sfc_main$119 = /* @__PURE__ */ defineComponent({
|
|
|
1778
2592
|
}
|
|
1779
2593
|
}));
|
|
1780
2594
|
return (_ctx, _cache) => {
|
|
1781
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2595
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1782
2596
|
as: __props.as,
|
|
1783
2597
|
renderless: __props.renderless
|
|
1784
2598
|
}), {
|
|
@@ -1790,7 +2604,7 @@ const _sfc_main$119 = /* @__PURE__ */ defineComponent({
|
|
|
1790
2604
|
});
|
|
1791
2605
|
//#endregion
|
|
1792
2606
|
//#region src/components/Collapsible/CollapsibleActivator.vue
|
|
1793
|
-
const _sfc_main$
|
|
2607
|
+
const _sfc_main$122 = /* @__PURE__ */ defineComponent({
|
|
1794
2608
|
name: "CollapsibleActivator",
|
|
1795
2609
|
__name: "CollapsibleActivator",
|
|
1796
2610
|
props: {
|
|
@@ -1826,7 +2640,7 @@ const _sfc_main$118 = /* @__PURE__ */ defineComponent({
|
|
|
1826
2640
|
}
|
|
1827
2641
|
}));
|
|
1828
2642
|
return (_ctx, _cache) => {
|
|
1829
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2643
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1830
2644
|
as: __props.as,
|
|
1831
2645
|
renderless: __props.renderless
|
|
1832
2646
|
}), {
|
|
@@ -1838,7 +2652,7 @@ const _sfc_main$118 = /* @__PURE__ */ defineComponent({
|
|
|
1838
2652
|
});
|
|
1839
2653
|
//#endregion
|
|
1840
2654
|
//#region src/components/Collapsible/CollapsibleContent.vue
|
|
1841
|
-
const _sfc_main$
|
|
2655
|
+
const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
1842
2656
|
name: "CollapsibleContent",
|
|
1843
2657
|
__name: "CollapsibleContent",
|
|
1844
2658
|
props: {
|
|
@@ -1860,7 +2674,7 @@ const _sfc_main$117 = /* @__PURE__ */ defineComponent({
|
|
|
1860
2674
|
}
|
|
1861
2675
|
}));
|
|
1862
2676
|
return (_ctx, _cache) => {
|
|
1863
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2677
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
1864
2678
|
as: __props.as,
|
|
1865
2679
|
renderless: __props.renderless
|
|
1866
2680
|
}), {
|
|
@@ -1872,7 +2686,7 @@ const _sfc_main$117 = /* @__PURE__ */ defineComponent({
|
|
|
1872
2686
|
});
|
|
1873
2687
|
//#endregion
|
|
1874
2688
|
//#region src/components/Collapsible/CollapsibleCue.vue
|
|
1875
|
-
const _sfc_main$
|
|
2689
|
+
const _sfc_main$120 = /* @__PURE__ */ defineComponent({
|
|
1876
2690
|
name: "CollapsibleCue",
|
|
1877
2691
|
__name: "CollapsibleCue",
|
|
1878
2692
|
props: {
|
|
@@ -1890,7 +2704,7 @@ const _sfc_main$116 = /* @__PURE__ */ defineComponent({
|
|
|
1890
2704
|
}
|
|
1891
2705
|
}));
|
|
1892
2706
|
return (_ctx, _cache) => {
|
|
1893
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2707
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
1894
2708
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
1895
2709
|
_: 3
|
|
1896
2710
|
}, 16, ["as"]);
|
|
@@ -1925,10 +2739,10 @@ const _sfc_main$116 = /* @__PURE__ */ defineComponent({
|
|
|
1925
2739
|
* ```
|
|
1926
2740
|
*/
|
|
1927
2741
|
const Collapsible = {
|
|
1928
|
-
Root: _sfc_main$
|
|
1929
|
-
Activator: _sfc_main$
|
|
1930
|
-
Cue: _sfc_main$
|
|
1931
|
-
Content: _sfc_main$
|
|
2742
|
+
Root: _sfc_main$123,
|
|
2743
|
+
Activator: _sfc_main$122,
|
|
2744
|
+
Cue: _sfc_main$120,
|
|
2745
|
+
Content: _sfc_main$121
|
|
1932
2746
|
};
|
|
1933
2747
|
//#endregion
|
|
1934
2748
|
//#region src/components/Combobox/ComboboxHiddenInput.vue
|
|
@@ -1949,7 +2763,7 @@ const visuallyHiddenStyle$3 = {
|
|
|
1949
2763
|
whiteSpace: "nowrap",
|
|
1950
2764
|
border: "0"
|
|
1951
2765
|
};
|
|
1952
|
-
const _sfc_main$
|
|
2766
|
+
const _sfc_main$119 = /* @__PURE__ */ defineComponent({
|
|
1953
2767
|
name: "ComboboxHiddenInput",
|
|
1954
2768
|
__name: "ComboboxHiddenInput",
|
|
1955
2769
|
props: { namespace: { default: "v0:combobox" } },
|
|
@@ -1983,7 +2797,7 @@ const _sfc_main$115 = /* @__PURE__ */ defineComponent({
|
|
|
1983
2797
|
//#endregion
|
|
1984
2798
|
//#region src/components/Combobox/ComboboxRoot.vue
|
|
1985
2799
|
const [useComboboxContext, provideComboboxContext] = createContext();
|
|
1986
|
-
const _sfc_main$
|
|
2800
|
+
const _sfc_main$118 = /* @__PURE__ */ defineComponent({
|
|
1987
2801
|
name: "ComboboxRoot",
|
|
1988
2802
|
__name: "ComboboxRoot",
|
|
1989
2803
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2053,19 +2867,19 @@ const _sfc_main$114 = /* @__PURE__ */ defineComponent({
|
|
|
2053
2867
|
clear: context.clear
|
|
2054
2868
|
}));
|
|
2055
2869
|
return (_ctx, _cache) => {
|
|
2056
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
2870
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), {
|
|
2057
2871
|
as: __props.as,
|
|
2058
2872
|
renderless: ""
|
|
2059
2873
|
}, {
|
|
2060
2874
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2061
2875
|
_: 3
|
|
2062
|
-
}, 8, ["as"]), __props.name ? (openBlock(), createBlock(_sfc_main$
|
|
2876
|
+
}, 8, ["as"]), __props.name ? (openBlock(), createBlock(_sfc_main$119, { key: 0 })) : createCommentVNode("v-if", true)], 64);
|
|
2063
2877
|
};
|
|
2064
2878
|
}
|
|
2065
2879
|
});
|
|
2066
2880
|
//#endregion
|
|
2067
2881
|
//#region src/components/Combobox/ComboboxActivator.vue
|
|
2068
|
-
const _sfc_main$
|
|
2882
|
+
const _sfc_main$117 = /* @__PURE__ */ defineComponent({
|
|
2069
2883
|
name: "ComboboxActivator",
|
|
2070
2884
|
__name: "ComboboxActivator",
|
|
2071
2885
|
props: {
|
|
@@ -2081,7 +2895,7 @@ const _sfc_main$113 = /* @__PURE__ */ defineComponent({
|
|
|
2081
2895
|
attrs: { "data-state": context.isOpen.value ? "open" : "closed" }
|
|
2082
2896
|
}));
|
|
2083
2897
|
return (_ctx, _cache) => {
|
|
2084
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2898
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
2085
2899
|
as: __props.as,
|
|
2086
2900
|
style: style.value
|
|
2087
2901
|
}), {
|
|
@@ -2093,7 +2907,7 @@ const _sfc_main$113 = /* @__PURE__ */ defineComponent({
|
|
|
2093
2907
|
});
|
|
2094
2908
|
//#endregion
|
|
2095
2909
|
//#region src/components/Combobox/ComboboxContent.vue
|
|
2096
|
-
const _sfc_main$
|
|
2910
|
+
const _sfc_main$116 = /* @__PURE__ */ defineComponent({
|
|
2097
2911
|
name: "ComboboxContent",
|
|
2098
2912
|
__name: "ComboboxContent",
|
|
2099
2913
|
props: {
|
|
@@ -2127,7 +2941,7 @@ const _sfc_main$112 = /* @__PURE__ */ defineComponent({
|
|
|
2127
2941
|
}));
|
|
2128
2942
|
const style = toRef(() => context.popover.contentStyles.value);
|
|
2129
2943
|
return (_ctx, _cache) => {
|
|
2130
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2944
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
2131
2945
|
ref_key: "content",
|
|
2132
2946
|
ref: content
|
|
2133
2947
|
}, slotProps.value.attrs, {
|
|
@@ -2142,7 +2956,7 @@ const _sfc_main$112 = /* @__PURE__ */ defineComponent({
|
|
|
2142
2956
|
});
|
|
2143
2957
|
//#endregion
|
|
2144
2958
|
//#region src/components/Combobox/ComboboxControl.vue
|
|
2145
|
-
const _sfc_main$
|
|
2959
|
+
const _sfc_main$115 = /* @__PURE__ */ defineComponent({
|
|
2146
2960
|
name: "ComboboxControl",
|
|
2147
2961
|
__name: "ComboboxControl",
|
|
2148
2962
|
props: {
|
|
@@ -2227,7 +3041,7 @@ const _sfc_main$111 = /* @__PURE__ */ defineComponent({
|
|
|
2227
3041
|
}
|
|
2228
3042
|
}));
|
|
2229
3043
|
return (_ctx, _cache) => {
|
|
2230
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3044
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
2231
3045
|
ref_key: "input",
|
|
2232
3046
|
ref: input
|
|
2233
3047
|
}, slotProps.value.attrs, {
|
|
@@ -2247,7 +3061,7 @@ const _sfc_main$111 = /* @__PURE__ */ defineComponent({
|
|
|
2247
3061
|
});
|
|
2248
3062
|
//#endregion
|
|
2249
3063
|
//#region src/components/Combobox/ComboboxCue.vue
|
|
2250
|
-
const _sfc_main$
|
|
3064
|
+
const _sfc_main$114 = /* @__PURE__ */ defineComponent({
|
|
2251
3065
|
name: "ComboboxCue",
|
|
2252
3066
|
__name: "ComboboxCue",
|
|
2253
3067
|
props: {
|
|
@@ -2269,7 +3083,7 @@ const _sfc_main$110 = /* @__PURE__ */ defineComponent({
|
|
|
2269
3083
|
}
|
|
2270
3084
|
}));
|
|
2271
3085
|
return (_ctx, _cache) => {
|
|
2272
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3086
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, { as: __props.as }), {
|
|
2273
3087
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2274
3088
|
_: 3
|
|
2275
3089
|
}, 16, ["as"]);
|
|
@@ -2278,7 +3092,7 @@ const _sfc_main$110 = /* @__PURE__ */ defineComponent({
|
|
|
2278
3092
|
});
|
|
2279
3093
|
//#endregion
|
|
2280
3094
|
//#region src/components/Combobox/ComboboxDescription.vue
|
|
2281
|
-
const _sfc_main$
|
|
3095
|
+
const _sfc_main$113 = /* @__PURE__ */ defineComponent({
|
|
2282
3096
|
name: "ComboboxDescription",
|
|
2283
3097
|
inheritAttrs: false,
|
|
2284
3098
|
__name: "ComboboxDescription",
|
|
@@ -2297,7 +3111,7 @@ const _sfc_main$109 = /* @__PURE__ */ defineComponent({
|
|
|
2297
3111
|
context.hasDescription.value = false;
|
|
2298
3112
|
});
|
|
2299
3113
|
return (_ctx, _cache) => {
|
|
2300
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3114
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(unref(attrs), {
|
|
2301
3115
|
id: unref(context).descriptionId,
|
|
2302
3116
|
as: __props.as,
|
|
2303
3117
|
renderless: __props.renderless
|
|
@@ -2314,7 +3128,7 @@ const _sfc_main$109 = /* @__PURE__ */ defineComponent({
|
|
|
2314
3128
|
});
|
|
2315
3129
|
//#endregion
|
|
2316
3130
|
//#region src/components/Combobox/ComboboxEmpty.vue
|
|
2317
|
-
const _sfc_main$
|
|
3131
|
+
const _sfc_main$112 = /* @__PURE__ */ defineComponent({
|
|
2318
3132
|
name: "ComboboxEmpty",
|
|
2319
3133
|
__name: "ComboboxEmpty",
|
|
2320
3134
|
props: {
|
|
@@ -2326,7 +3140,7 @@ const _sfc_main$108 = /* @__PURE__ */ defineComponent({
|
|
|
2326
3140
|
const context = useComboboxContext(__props.namespace);
|
|
2327
3141
|
const slotProps = toRef(() => ({ query: context.query.value }));
|
|
2328
3142
|
return (_ctx, _cache) => {
|
|
2329
|
-
return unref(context).isEmpty.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3143
|
+
return unref(context).isEmpty.value ? (openBlock(), createBlock(unref(_sfc_main$162), {
|
|
2330
3144
|
key: 0,
|
|
2331
3145
|
as: __props.as
|
|
2332
3146
|
}, {
|
|
@@ -2338,7 +3152,7 @@ const _sfc_main$108 = /* @__PURE__ */ defineComponent({
|
|
|
2338
3152
|
});
|
|
2339
3153
|
//#endregion
|
|
2340
3154
|
//#region src/components/Combobox/ComboboxError.vue
|
|
2341
|
-
const _sfc_main$
|
|
3155
|
+
const _sfc_main$111 = /* @__PURE__ */ defineComponent({
|
|
2342
3156
|
name: "ComboboxError",
|
|
2343
3157
|
inheritAttrs: false,
|
|
2344
3158
|
__name: "ComboboxError",
|
|
@@ -2367,10 +3181,7 @@ const _sfc_main$107 = /* @__PURE__ */ defineComponent({
|
|
|
2367
3181
|
}
|
|
2368
3182
|
}));
|
|
2369
3183
|
return (_ctx, _cache) => {
|
|
2370
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2371
|
-
...unref(attrs),
|
|
2372
|
-
...slotProps.value.attrs
|
|
2373
|
-
}, {
|
|
3184
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
2374
3185
|
as: __props.as,
|
|
2375
3186
|
renderless: __props.renderless
|
|
2376
3187
|
}), {
|
|
@@ -2382,7 +3193,7 @@ const _sfc_main$107 = /* @__PURE__ */ defineComponent({
|
|
|
2382
3193
|
});
|
|
2383
3194
|
//#endregion
|
|
2384
3195
|
//#region src/components/Combobox/ComboboxItem.vue
|
|
2385
|
-
const _sfc_main$
|
|
3196
|
+
const _sfc_main$110 = /* @__PURE__ */ defineComponent({
|
|
2386
3197
|
name: "ComboboxItem",
|
|
2387
3198
|
__name: "ComboboxItem",
|
|
2388
3199
|
props: {
|
|
@@ -2408,7 +3219,7 @@ const _sfc_main$106 = /* @__PURE__ */ defineComponent({
|
|
|
2408
3219
|
function onClick() {
|
|
2409
3220
|
if (!toValue(isDisabled)) context.select(ticket.id);
|
|
2410
3221
|
}
|
|
2411
|
-
|
|
3222
|
+
onBeforeUnmount(() => {
|
|
2412
3223
|
context.selection.unregister(ticket.id);
|
|
2413
3224
|
});
|
|
2414
3225
|
const slotProps = toRef(() => ({
|
|
@@ -2430,7 +3241,7 @@ const _sfc_main$106 = /* @__PURE__ */ defineComponent({
|
|
|
2430
3241
|
}
|
|
2431
3242
|
}));
|
|
2432
3243
|
return (_ctx, _cache) => {
|
|
2433
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
3244
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
2434
3245
|
as: __props.as,
|
|
2435
3246
|
onClick
|
|
2436
3247
|
}), {
|
|
@@ -2485,20 +3296,20 @@ const _sfc_main$106 = /* @__PURE__ */ defineComponent({
|
|
|
2485
3296
|
* ```
|
|
2486
3297
|
*/
|
|
2487
3298
|
const Combobox = {
|
|
2488
|
-
Root: _sfc_main$
|
|
2489
|
-
Activator: _sfc_main$
|
|
2490
|
-
Control: _sfc_main$
|
|
2491
|
-
Cue: _sfc_main$
|
|
2492
|
-
Content: _sfc_main$
|
|
2493
|
-
Item: _sfc_main$
|
|
2494
|
-
Empty: _sfc_main$
|
|
2495
|
-
Description: _sfc_main$
|
|
2496
|
-
Error: _sfc_main$
|
|
3299
|
+
Root: _sfc_main$118,
|
|
3300
|
+
Activator: _sfc_main$117,
|
|
3301
|
+
Control: _sfc_main$115,
|
|
3302
|
+
Cue: _sfc_main$114,
|
|
3303
|
+
Content: _sfc_main$116,
|
|
3304
|
+
Item: _sfc_main$110,
|
|
3305
|
+
Empty: _sfc_main$112,
|
|
3306
|
+
Description: _sfc_main$113,
|
|
3307
|
+
Error: _sfc_main$111
|
|
2497
3308
|
};
|
|
2498
3309
|
//#endregion
|
|
2499
3310
|
//#region src/components/Dialog/DialogRoot.vue
|
|
2500
3311
|
const [useDialogContext, provideDialogContext] = createContext();
|
|
2501
|
-
const _sfc_main$
|
|
3312
|
+
const _sfc_main$109 = /* @__PURE__ */ defineComponent({
|
|
2502
3313
|
name: "DialogRoot",
|
|
2503
3314
|
__name: "DialogRoot",
|
|
2504
3315
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2516,7 +3327,7 @@ const _sfc_main$105 = /* @__PURE__ */ defineComponent({
|
|
|
2516
3327
|
emits: /* @__PURE__ */ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
2517
3328
|
setup(__props) {
|
|
2518
3329
|
const isOpen = useModel(__props, "modelValue");
|
|
2519
|
-
const id = __props.id ?? useId();
|
|
3330
|
+
const id = __props.id ?? /* @__PURE__ */ useId$1();
|
|
2520
3331
|
const titleId = `${id}-title`;
|
|
2521
3332
|
const descriptionId = `${id}-description`;
|
|
2522
3333
|
function open() {
|
|
@@ -2540,7 +3351,7 @@ const _sfc_main$105 = /* @__PURE__ */ defineComponent({
|
|
|
2540
3351
|
close
|
|
2541
3352
|
}));
|
|
2542
3353
|
return (_ctx, _cache) => {
|
|
2543
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3354
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
2544
3355
|
as: __props.as,
|
|
2545
3356
|
renderless: ""
|
|
2546
3357
|
}, {
|
|
@@ -2552,7 +3363,7 @@ const _sfc_main$105 = /* @__PURE__ */ defineComponent({
|
|
|
2552
3363
|
});
|
|
2553
3364
|
//#endregion
|
|
2554
3365
|
//#region src/components/Dialog/DialogClose.vue
|
|
2555
|
-
const _sfc_main$
|
|
3366
|
+
const _sfc_main$108 = /* @__PURE__ */ defineComponent({
|
|
2556
3367
|
name: "DialogClose",
|
|
2557
3368
|
__name: "DialogClose",
|
|
2558
3369
|
props: {
|
|
@@ -2562,6 +3373,7 @@ const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
|
2562
3373
|
},
|
|
2563
3374
|
setup(__props) {
|
|
2564
3375
|
const context = useDialogContext(__props.namespace);
|
|
3376
|
+
const locale = useLocale();
|
|
2565
3377
|
function onClick() {
|
|
2566
3378
|
context.close();
|
|
2567
3379
|
}
|
|
@@ -2569,11 +3381,11 @@ const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
|
2569
3381
|
isOpen: context.isOpen.value,
|
|
2570
3382
|
attrs: {
|
|
2571
3383
|
"type": __props.as === "button" ? "button" : void 0,
|
|
2572
|
-
"aria-label": "
|
|
3384
|
+
"aria-label": locale.t("Dialog.close")
|
|
2573
3385
|
}
|
|
2574
3386
|
}));
|
|
2575
3387
|
return (_ctx, _cache) => {
|
|
2576
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3388
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
2577
3389
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2578
3390
|
_: 3
|
|
2579
3391
|
}, 16, ["as"]);
|
|
@@ -2582,7 +3394,7 @@ const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
|
2582
3394
|
});
|
|
2583
3395
|
//#endregion
|
|
2584
3396
|
//#region src/components/Dialog/DialogContent.vue
|
|
2585
|
-
const _sfc_main$
|
|
3397
|
+
const _sfc_main$107 = /* @__PURE__ */ defineComponent({
|
|
2586
3398
|
name: "DialogContent",
|
|
2587
3399
|
__name: "DialogContent",
|
|
2588
3400
|
props: {
|
|
@@ -2650,7 +3462,7 @@ const _sfc_main$103 = /* @__PURE__ */ defineComponent({
|
|
|
2650
3462
|
}
|
|
2651
3463
|
}));
|
|
2652
3464
|
return (_ctx, _cache) => {
|
|
2653
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3465
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
2654
3466
|
ref: "content",
|
|
2655
3467
|
as: __props.as,
|
|
2656
3468
|
style: styles.value
|
|
@@ -2666,7 +3478,7 @@ const _sfc_main$103 = /* @__PURE__ */ defineComponent({
|
|
|
2666
3478
|
});
|
|
2667
3479
|
//#endregion
|
|
2668
3480
|
//#region src/components/Dialog/DialogDescription.vue
|
|
2669
|
-
const _sfc_main$
|
|
3481
|
+
const _sfc_main$106 = /* @__PURE__ */ defineComponent({
|
|
2670
3482
|
name: "DialogDescription",
|
|
2671
3483
|
__name: "DialogDescription",
|
|
2672
3484
|
props: {
|
|
@@ -2678,7 +3490,7 @@ const _sfc_main$102 = /* @__PURE__ */ defineComponent({
|
|
|
2678
3490
|
const context = useDialogContext(__props.namespace);
|
|
2679
3491
|
const slotProps = toRef(() => ({ attrs: { id: context.descriptionId } }));
|
|
2680
3492
|
return (_ctx, _cache) => {
|
|
2681
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3493
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
2682
3494
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2683
3495
|
_: 3
|
|
2684
3496
|
}, 16, ["as"]);
|
|
@@ -2687,7 +3499,7 @@ const _sfc_main$102 = /* @__PURE__ */ defineComponent({
|
|
|
2687
3499
|
});
|
|
2688
3500
|
//#endregion
|
|
2689
3501
|
//#region src/components/Dialog/DialogTitle.vue
|
|
2690
|
-
const _sfc_main$
|
|
3502
|
+
const _sfc_main$105 = /* @__PURE__ */ defineComponent({
|
|
2691
3503
|
name: "DialogTitle",
|
|
2692
3504
|
__name: "DialogTitle",
|
|
2693
3505
|
props: {
|
|
@@ -2699,7 +3511,7 @@ const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
|
2699
3511
|
const context = useDialogContext(__props.namespace);
|
|
2700
3512
|
const slotProps = toRef(() => ({ attrs: { id: context.titleId } }));
|
|
2701
3513
|
return (_ctx, _cache) => {
|
|
2702
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3514
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
2703
3515
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2704
3516
|
_: 3
|
|
2705
3517
|
}, 16, ["as"]);
|
|
@@ -2708,7 +3520,7 @@ const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
|
2708
3520
|
});
|
|
2709
3521
|
//#endregion
|
|
2710
3522
|
//#region src/components/Dialog/DialogActivator.vue
|
|
2711
|
-
const _sfc_main$
|
|
3523
|
+
const _sfc_main$104 = /* @__PURE__ */ defineComponent({
|
|
2712
3524
|
name: "DialogActivator",
|
|
2713
3525
|
__name: "DialogActivator",
|
|
2714
3526
|
props: {
|
|
@@ -2727,11 +3539,11 @@ const _sfc_main$100 = /* @__PURE__ */ defineComponent({
|
|
|
2727
3539
|
"type": __props.as === "button" ? "button" : void 0,
|
|
2728
3540
|
"aria-haspopup": "dialog",
|
|
2729
3541
|
"aria-expanded": context.isOpen.value,
|
|
2730
|
-
"data-
|
|
3542
|
+
"data-open": context.isOpen.value || void 0
|
|
2731
3543
|
}
|
|
2732
3544
|
}));
|
|
2733
3545
|
return (_ctx, _cache) => {
|
|
2734
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3546
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
2735
3547
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2736
3548
|
_: 3
|
|
2737
3549
|
}, 16, ["as"]);
|
|
@@ -2770,17 +3582,17 @@ const _sfc_main$100 = /* @__PURE__ */ defineComponent({
|
|
|
2770
3582
|
* ```
|
|
2771
3583
|
*/
|
|
2772
3584
|
const Dialog = {
|
|
2773
|
-
Root: _sfc_main$
|
|
2774
|
-
Activator: _sfc_main$
|
|
2775
|
-
Content: _sfc_main$
|
|
2776
|
-
Title: _sfc_main$
|
|
2777
|
-
Description: _sfc_main$
|
|
2778
|
-
Close: _sfc_main$
|
|
3585
|
+
Root: _sfc_main$109,
|
|
3586
|
+
Activator: _sfc_main$104,
|
|
3587
|
+
Content: _sfc_main$107,
|
|
3588
|
+
Title: _sfc_main$105,
|
|
3589
|
+
Description: _sfc_main$106,
|
|
3590
|
+
Close: _sfc_main$108
|
|
2779
3591
|
};
|
|
2780
3592
|
//#endregion
|
|
2781
3593
|
//#region src/components/ExpansionPanel/ExpansionPanelGroup.vue
|
|
2782
3594
|
const [useExpansionPanelGroup, provideExpansionPanelGroup] = createContext();
|
|
2783
|
-
const _sfc_main$
|
|
3595
|
+
const _sfc_main$103 = /* @__PURE__ */ defineComponent({
|
|
2784
3596
|
name: "ExpansionPanelGroup",
|
|
2785
3597
|
__name: "ExpansionPanelGroup",
|
|
2786
3598
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2827,7 +3639,7 @@ const _sfc_main$99 = /* @__PURE__ */ defineComponent({
|
|
|
2827
3639
|
}));
|
|
2828
3640
|
provideExpansionPanelGroup(__props.namespace, selection);
|
|
2829
3641
|
return (_ctx, _cache) => {
|
|
2830
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3642
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
2831
3643
|
as: __props.as,
|
|
2832
3644
|
renderless: __props.renderless
|
|
2833
3645
|
}, {
|
|
@@ -2840,7 +3652,7 @@ const _sfc_main$99 = /* @__PURE__ */ defineComponent({
|
|
|
2840
3652
|
//#endregion
|
|
2841
3653
|
//#region src/components/ExpansionPanel/ExpansionPanelRoot.vue
|
|
2842
3654
|
const [useExpansionPanelRoot, provideExpansionPanelRoot] = createContext({ suffix: "item" });
|
|
2843
|
-
const _sfc_main$
|
|
3655
|
+
const _sfc_main$102 = /* @__PURE__ */ defineComponent({
|
|
2844
3656
|
name: "ExpansionPanelRoot",
|
|
2845
3657
|
__name: "ExpansionPanelRoot",
|
|
2846
3658
|
props: {
|
|
@@ -2874,7 +3686,7 @@ const _sfc_main$98 = /* @__PURE__ */ defineComponent({
|
|
|
2874
3686
|
isDisabled
|
|
2875
3687
|
});
|
|
2876
3688
|
return (_ctx, _cache) => {
|
|
2877
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3689
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
2878
3690
|
as: __props.as,
|
|
2879
3691
|
renderless: __props.renderless
|
|
2880
3692
|
}), {
|
|
@@ -2886,7 +3698,7 @@ const _sfc_main$98 = /* @__PURE__ */ defineComponent({
|
|
|
2886
3698
|
});
|
|
2887
3699
|
//#endregion
|
|
2888
3700
|
//#region src/components/ExpansionPanel/ExpansionPanelActivator.vue
|
|
2889
|
-
const _sfc_main$
|
|
3701
|
+
const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
2890
3702
|
name: "ExpansionPanelActivator",
|
|
2891
3703
|
__name: "ExpansionPanelActivator",
|
|
2892
3704
|
props: {
|
|
@@ -2922,7 +3734,7 @@ const _sfc_main$97 = /* @__PURE__ */ defineComponent({
|
|
|
2922
3734
|
}
|
|
2923
3735
|
}));
|
|
2924
3736
|
return (_ctx, _cache) => {
|
|
2925
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3737
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
2926
3738
|
as: __props.as,
|
|
2927
3739
|
renderless: __props.renderless
|
|
2928
3740
|
}), {
|
|
@@ -2934,7 +3746,7 @@ const _sfc_main$97 = /* @__PURE__ */ defineComponent({
|
|
|
2934
3746
|
});
|
|
2935
3747
|
//#endregion
|
|
2936
3748
|
//#region src/components/ExpansionPanel/ExpansionPanelContent.vue
|
|
2937
|
-
const _sfc_main$
|
|
3749
|
+
const _sfc_main$100 = /* @__PURE__ */ defineComponent({
|
|
2938
3750
|
name: "ExpansionPanelContent",
|
|
2939
3751
|
__name: "ExpansionPanelContent",
|
|
2940
3752
|
props: {
|
|
@@ -2955,7 +3767,7 @@ const _sfc_main$96 = /* @__PURE__ */ defineComponent({
|
|
|
2955
3767
|
}
|
|
2956
3768
|
}));
|
|
2957
3769
|
return (_ctx, _cache) => {
|
|
2958
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3770
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
2959
3771
|
as: __props.as,
|
|
2960
3772
|
renderless: __props.renderless
|
|
2961
3773
|
}), {
|
|
@@ -2967,7 +3779,7 @@ const _sfc_main$96 = /* @__PURE__ */ defineComponent({
|
|
|
2967
3779
|
});
|
|
2968
3780
|
//#endregion
|
|
2969
3781
|
//#region src/components/ExpansionPanel/ExpansionPanelCue.vue
|
|
2970
|
-
const _sfc_main$
|
|
3782
|
+
const _sfc_main$99 = /* @__PURE__ */ defineComponent({
|
|
2971
3783
|
name: "ExpansionPanelCue",
|
|
2972
3784
|
__name: "ExpansionPanelCue",
|
|
2973
3785
|
props: {
|
|
@@ -2985,7 +3797,7 @@ const _sfc_main$95 = /* @__PURE__ */ defineComponent({
|
|
|
2985
3797
|
}
|
|
2986
3798
|
}));
|
|
2987
3799
|
return (_ctx, _cache) => {
|
|
2988
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3800
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
2989
3801
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
2990
3802
|
_: 3
|
|
2991
3803
|
}, 16, ["as"]);
|
|
@@ -2994,7 +3806,7 @@ const _sfc_main$95 = /* @__PURE__ */ defineComponent({
|
|
|
2994
3806
|
});
|
|
2995
3807
|
//#endregion
|
|
2996
3808
|
//#region src/components/ExpansionPanel/ExpansionPanelHeader.vue
|
|
2997
|
-
const _sfc_main$
|
|
3809
|
+
const _sfc_main$98 = /* @__PURE__ */ defineComponent({
|
|
2998
3810
|
name: "ExpansionPanelHeader",
|
|
2999
3811
|
__name: "ExpansionPanelHeader",
|
|
3000
3812
|
props: {
|
|
@@ -3009,7 +3821,7 @@ const _sfc_main$94 = /* @__PURE__ */ defineComponent({
|
|
|
3009
3821
|
attrs: { "data-selected": item.ticket.isSelected.value || void 0 }
|
|
3010
3822
|
}));
|
|
3011
3823
|
return (_ctx, _cache) => {
|
|
3012
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3824
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
3013
3825
|
as: __props.as,
|
|
3014
3826
|
renderless: __props.renderless
|
|
3015
3827
|
}), {
|
|
@@ -3050,16 +3862,16 @@ const _sfc_main$94 = /* @__PURE__ */ defineComponent({
|
|
|
3050
3862
|
* ```
|
|
3051
3863
|
*/
|
|
3052
3864
|
const ExpansionPanel = {
|
|
3053
|
-
Group: _sfc_main$
|
|
3054
|
-
Root: _sfc_main$
|
|
3055
|
-
Header: _sfc_main$
|
|
3056
|
-
Activator: _sfc_main$
|
|
3057
|
-
Cue: _sfc_main$
|
|
3058
|
-
Content: _sfc_main$
|
|
3865
|
+
Group: _sfc_main$103,
|
|
3866
|
+
Root: _sfc_main$102,
|
|
3867
|
+
Header: _sfc_main$98,
|
|
3868
|
+
Activator: _sfc_main$101,
|
|
3869
|
+
Cue: _sfc_main$99,
|
|
3870
|
+
Content: _sfc_main$100
|
|
3059
3871
|
};
|
|
3060
3872
|
//#endregion
|
|
3061
3873
|
//#region src/components/Form/Form.vue
|
|
3062
|
-
const _sfc_main$
|
|
3874
|
+
const _sfc_main$97 = /* @__PURE__ */ defineComponent({
|
|
3063
3875
|
name: "Form",
|
|
3064
3876
|
inheritAttrs: false,
|
|
3065
3877
|
__name: "Form",
|
|
@@ -3117,7 +3929,7 @@ const _sfc_main$93 = /* @__PURE__ */ defineComponent({
|
|
|
3117
3929
|
reset: form.reset
|
|
3118
3930
|
}));
|
|
3119
3931
|
return (_ctx, _cache) => {
|
|
3120
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3932
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, unref(attrs), {
|
|
3121
3933
|
onReset,
|
|
3122
3934
|
onSubmit
|
|
3123
3935
|
}), {
|
|
@@ -3130,7 +3942,7 @@ const _sfc_main$93 = /* @__PURE__ */ defineComponent({
|
|
|
3130
3942
|
//#endregion
|
|
3131
3943
|
//#region src/components/Group/GroupRoot.vue
|
|
3132
3944
|
const [useGroupRoot, provideGroupRoot] = createContext();
|
|
3133
|
-
const _sfc_main$
|
|
3945
|
+
const _sfc_main$96 = /* @__PURE__ */ defineComponent({
|
|
3134
3946
|
name: "GroupRoot",
|
|
3135
3947
|
__name: "GroupRoot",
|
|
3136
3948
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3182,7 +3994,7 @@ const _sfc_main$92 = /* @__PURE__ */ defineComponent({
|
|
|
3182
3994
|
});
|
|
3183
3995
|
//#endregion
|
|
3184
3996
|
//#region src/components/Group/GroupItem.vue
|
|
3185
|
-
const _sfc_main$
|
|
3997
|
+
const _sfc_main$95 = /* @__PURE__ */ defineComponent({
|
|
3186
3998
|
name: "GroupItem",
|
|
3187
3999
|
__name: "GroupItem",
|
|
3188
4000
|
props: {
|
|
@@ -3202,7 +4014,7 @@ const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
|
3202
4014
|
indeterminate: __props.indeterminate
|
|
3203
4015
|
});
|
|
3204
4016
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(group.disabled));
|
|
3205
|
-
|
|
4017
|
+
onBeforeUnmount(() => {
|
|
3206
4018
|
group.unregister(ticket.id);
|
|
3207
4019
|
});
|
|
3208
4020
|
const slotProps = toRef(() => ({
|
|
@@ -3240,8 +4052,207 @@ const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
|
3240
4052
|
* @see https://0.vuetifyjs.com/components/providers/group
|
|
3241
4053
|
*/
|
|
3242
4054
|
const Group = {
|
|
3243
|
-
Root: _sfc_main$
|
|
3244
|
-
Item: _sfc_main$
|
|
4055
|
+
Root: _sfc_main$96,
|
|
4056
|
+
Item: _sfc_main$95
|
|
4057
|
+
};
|
|
4058
|
+
//#endregion
|
|
4059
|
+
//#region src/components/Image/ImageRoot.vue
|
|
4060
|
+
const [useImageRoot, provideImageRoot] = createContext();
|
|
4061
|
+
const _sfc_main$94 = /* @__PURE__ */ defineComponent({
|
|
4062
|
+
name: "ImageRoot",
|
|
4063
|
+
__name: "ImageRoot",
|
|
4064
|
+
props: {
|
|
4065
|
+
src: {},
|
|
4066
|
+
lazy: {
|
|
4067
|
+
type: Boolean,
|
|
4068
|
+
default: false
|
|
4069
|
+
},
|
|
4070
|
+
rootMargin: { default: "0px" },
|
|
4071
|
+
threshold: { default: 0 },
|
|
4072
|
+
root: { default: null },
|
|
4073
|
+
namespace: { default: "v0:image" },
|
|
4074
|
+
as: { default: "div" },
|
|
4075
|
+
renderless: { type: Boolean }
|
|
4076
|
+
},
|
|
4077
|
+
setup(__props) {
|
|
4078
|
+
const atomRef = useTemplateRef("atom");
|
|
4079
|
+
const rootEl = toRef(() => /* @__PURE__ */ toElement(atomRef.value?.element) ?? null);
|
|
4080
|
+
if (__props.lazy && __props.renderless) useLogger().warn("[v0:image] `lazy` requires a wrapper element but `renderless` is set — the image will never load. Remove `renderless` or use useIntersectionObserver manually.");
|
|
4081
|
+
const { isIntersecting } = __props.lazy ? useIntersectionObserver(rootEl, () => {}, {
|
|
4082
|
+
once: true,
|
|
4083
|
+
rootMargin: __props.rootMargin,
|
|
4084
|
+
threshold: __props.threshold,
|
|
4085
|
+
root: __props.root
|
|
4086
|
+
}) : { isIntersecting: shallowRef(true) };
|
|
4087
|
+
const image = useImage({
|
|
4088
|
+
src: toRef(() => __props.src),
|
|
4089
|
+
eager: isIntersecting
|
|
4090
|
+
});
|
|
4091
|
+
provideImageRoot(__props.namespace, image);
|
|
4092
|
+
const slotProps = toRef(() => ({
|
|
4093
|
+
status: image.status.value,
|
|
4094
|
+
isIdle: image.isIdle.value,
|
|
4095
|
+
isLoading: image.isLoading.value,
|
|
4096
|
+
isLoaded: image.isLoaded.value,
|
|
4097
|
+
isError: image.isError.value,
|
|
4098
|
+
retry: image.retry,
|
|
4099
|
+
attrs: { "data-state": image.status.value }
|
|
4100
|
+
}));
|
|
4101
|
+
return (_ctx, _cache) => {
|
|
4102
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "atom" }, slotProps.value.attrs, {
|
|
4103
|
+
as: __props.as,
|
|
4104
|
+
renderless: __props.renderless
|
|
4105
|
+
}), {
|
|
4106
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4107
|
+
_: 3
|
|
4108
|
+
}, 16, ["as", "renderless"]);
|
|
4109
|
+
};
|
|
4110
|
+
}
|
|
4111
|
+
});
|
|
4112
|
+
//#endregion
|
|
4113
|
+
//#region src/components/Image/ImageFallback.vue
|
|
4114
|
+
const _sfc_main$93 = /* @__PURE__ */ defineComponent({
|
|
4115
|
+
name: "ImageFallback",
|
|
4116
|
+
__name: "ImageFallback",
|
|
4117
|
+
props: {
|
|
4118
|
+
namespace: { default: "v0:image" },
|
|
4119
|
+
as: { default: "div" },
|
|
4120
|
+
renderless: { type: Boolean }
|
|
4121
|
+
},
|
|
4122
|
+
setup(__props) {
|
|
4123
|
+
const context = useImageRoot(__props.namespace);
|
|
4124
|
+
const slotProps = toRef(() => ({
|
|
4125
|
+
retry: context.retry,
|
|
4126
|
+
attrs: {
|
|
4127
|
+
"role": "img",
|
|
4128
|
+
"data-state": "error"
|
|
4129
|
+
}
|
|
4130
|
+
}));
|
|
4131
|
+
return (_ctx, _cache) => {
|
|
4132
|
+
return unref(context).isError.value ? (openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ key: 0 }, slotProps.value.attrs, {
|
|
4133
|
+
as: __props.as,
|
|
4134
|
+
renderless: __props.renderless
|
|
4135
|
+
}), {
|
|
4136
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4137
|
+
_: 3
|
|
4138
|
+
}, 16, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
4139
|
+
};
|
|
4140
|
+
}
|
|
4141
|
+
});
|
|
4142
|
+
//#endregion
|
|
4143
|
+
//#region src/components/Image/ImageImg.vue
|
|
4144
|
+
const _sfc_main$92 = /* @__PURE__ */ defineComponent({
|
|
4145
|
+
name: "ImageImg",
|
|
4146
|
+
__name: "ImageImg",
|
|
4147
|
+
props: {
|
|
4148
|
+
alt: {},
|
|
4149
|
+
srcset: {},
|
|
4150
|
+
sizes: {},
|
|
4151
|
+
width: {},
|
|
4152
|
+
height: {},
|
|
4153
|
+
crossorigin: {},
|
|
4154
|
+
referrerpolicy: {},
|
|
4155
|
+
decoding: { default: "async" },
|
|
4156
|
+
loading: {},
|
|
4157
|
+
fetchpriority: {},
|
|
4158
|
+
namespace: { default: "v0:image" },
|
|
4159
|
+
as: { default: "img" },
|
|
4160
|
+
renderless: { type: Boolean }
|
|
4161
|
+
},
|
|
4162
|
+
emits: [
|
|
4163
|
+
"load",
|
|
4164
|
+
"error",
|
|
4165
|
+
"loadstart"
|
|
4166
|
+
],
|
|
4167
|
+
setup(__props, { emit: __emit }) {
|
|
4168
|
+
const emit = __emit;
|
|
4169
|
+
const context = useImageRoot(__props.namespace);
|
|
4170
|
+
function onLoad(e) {
|
|
4171
|
+
context.onLoad(e);
|
|
4172
|
+
emit("load", e);
|
|
4173
|
+
}
|
|
4174
|
+
function onError(e) {
|
|
4175
|
+
context.onError(e);
|
|
4176
|
+
emit("error", e);
|
|
4177
|
+
}
|
|
4178
|
+
watch(context.status, (status, prev) => {
|
|
4179
|
+
if (status === "loading" && prev !== "loading" && context.source.value) emit("loadstart", context.source.value);
|
|
4180
|
+
}, { immediate: true });
|
|
4181
|
+
const slotProps = toRef(() => ({
|
|
4182
|
+
isLoaded: context.isLoaded.value,
|
|
4183
|
+
status: context.status.value,
|
|
4184
|
+
attrs: {
|
|
4185
|
+
"role": "img",
|
|
4186
|
+
"src": context.source.value,
|
|
4187
|
+
srcset: __props.srcset,
|
|
4188
|
+
sizes: __props.sizes,
|
|
4189
|
+
alt: __props.alt,
|
|
4190
|
+
width: __props.width,
|
|
4191
|
+
height: __props.height,
|
|
4192
|
+
crossorigin: __props.crossorigin,
|
|
4193
|
+
referrerpolicy: __props.referrerpolicy,
|
|
4194
|
+
decoding: __props.decoding,
|
|
4195
|
+
loading: __props.loading,
|
|
4196
|
+
fetchpriority: __props.fetchpriority,
|
|
4197
|
+
"data-state": context.status.value,
|
|
4198
|
+
onLoad,
|
|
4199
|
+
onError
|
|
4200
|
+
}
|
|
4201
|
+
}));
|
|
4202
|
+
return (_ctx, _cache) => {
|
|
4203
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
4204
|
+
as: __props.as,
|
|
4205
|
+
renderless: __props.renderless
|
|
4206
|
+
}), {
|
|
4207
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4208
|
+
_: 3
|
|
4209
|
+
}, 16, ["as", "renderless"]);
|
|
4210
|
+
};
|
|
4211
|
+
}
|
|
4212
|
+
});
|
|
4213
|
+
//#endregion
|
|
4214
|
+
//#region src/components/Image/ImagePlaceholder.vue
|
|
4215
|
+
const _sfc_main$91 = /* @__PURE__ */ defineComponent({
|
|
4216
|
+
name: "ImagePlaceholder",
|
|
4217
|
+
__name: "ImagePlaceholder",
|
|
4218
|
+
props: {
|
|
4219
|
+
namespace: { default: "v0:image" },
|
|
4220
|
+
as: { default: "div" },
|
|
4221
|
+
renderless: { type: Boolean }
|
|
4222
|
+
},
|
|
4223
|
+
setup(__props) {
|
|
4224
|
+
const context = useImageRoot(__props.namespace);
|
|
4225
|
+
const isVisible = toRef(() => context.isIdle.value || context.isLoading.value);
|
|
4226
|
+
const slotProps = toRef(() => ({
|
|
4227
|
+
status: context.status.value,
|
|
4228
|
+
attrs: {
|
|
4229
|
+
"aria-hidden": true,
|
|
4230
|
+
"data-state": context.status.value
|
|
4231
|
+
}
|
|
4232
|
+
}));
|
|
4233
|
+
return (_ctx, _cache) => {
|
|
4234
|
+
return isVisible.value ? (openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ key: 0 }, slotProps.value.attrs, {
|
|
4235
|
+
as: __props.as,
|
|
4236
|
+
renderless: __props.renderless
|
|
4237
|
+
}), {
|
|
4238
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4239
|
+
_: 3
|
|
4240
|
+
}, 16, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
4241
|
+
};
|
|
4242
|
+
}
|
|
4243
|
+
});
|
|
4244
|
+
//#endregion
|
|
4245
|
+
//#region src/components/Image/index.ts
|
|
4246
|
+
/**
|
|
4247
|
+
* Image component with sub-components for managing image loading lifecycle.
|
|
4248
|
+
*
|
|
4249
|
+
* @see https://0.vuetifyjs.com/components/semantic/image
|
|
4250
|
+
*/
|
|
4251
|
+
const Image = {
|
|
4252
|
+
Root: _sfc_main$94,
|
|
4253
|
+
Img: _sfc_main$92,
|
|
4254
|
+
Placeholder: _sfc_main$91,
|
|
4255
|
+
Fallback: _sfc_main$93
|
|
3245
4256
|
};
|
|
3246
4257
|
//#endregion
|
|
3247
4258
|
//#region src/components/Input/InputRoot.vue
|
|
@@ -3282,12 +4293,18 @@ const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
|
3282
4293
|
renderless: { type: Boolean }
|
|
3283
4294
|
}, {
|
|
3284
4295
|
"modelValue": { default: "" },
|
|
3285
|
-
"modelModifiers": {}
|
|
4296
|
+
"modelModifiers": {},
|
|
4297
|
+
"focused": {
|
|
4298
|
+
type: Boolean,
|
|
4299
|
+
default: false
|
|
4300
|
+
},
|
|
4301
|
+
"focusedModifiers": {}
|
|
3286
4302
|
}),
|
|
3287
|
-
emits: /* @__PURE__ */ mergeModels(["update:model-value", "update:
|
|
4303
|
+
emits: /* @__PURE__ */ mergeModels(["update:model-value", "update:focused"], ["update:modelValue", "update:focused"]),
|
|
3288
4304
|
setup(__props) {
|
|
3289
4305
|
const attrs = useAttrs();
|
|
3290
4306
|
const model = useModel(__props, "modelValue");
|
|
4307
|
+
const focused = useModel(__props, "focused");
|
|
3291
4308
|
const input = createInput({
|
|
3292
4309
|
value: model,
|
|
3293
4310
|
id: __props.id,
|
|
@@ -3310,6 +4327,7 @@ const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
|
3310
4327
|
return trigger === event;
|
|
3311
4328
|
}
|
|
3312
4329
|
watch(input.isFocused, (val) => {
|
|
4330
|
+
focused.value = val;
|
|
3313
4331
|
if (val) return;
|
|
3314
4332
|
input.isTouched.value = true;
|
|
3315
4333
|
if (shouldValidate("blur")) input.validate();
|
|
@@ -3374,10 +4392,7 @@ const _sfc_main$90 = /* @__PURE__ */ defineComponent({
|
|
|
3374
4392
|
}
|
|
3375
4393
|
}));
|
|
3376
4394
|
return (_ctx, _cache) => {
|
|
3377
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3378
|
-
...unref(attrs),
|
|
3379
|
-
...slotProps.value.attrs
|
|
3380
|
-
}, {
|
|
4395
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
3381
4396
|
as: __props.as,
|
|
3382
4397
|
renderless: __props.renderless
|
|
3383
4398
|
}), {
|
|
@@ -3450,10 +4465,7 @@ const _sfc_main$89 = /* @__PURE__ */ defineComponent({
|
|
|
3450
4465
|
attrs: controlAttrs.value
|
|
3451
4466
|
}));
|
|
3452
4467
|
return (_ctx, _cache) => {
|
|
3453
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3454
|
-
...unref(attrs),
|
|
3455
|
-
...controlAttrs.value
|
|
3456
|
-
}, {
|
|
4468
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), controlAttrs.value), {
|
|
3457
4469
|
as: __props.as,
|
|
3458
4470
|
renderless: __props.renderless
|
|
3459
4471
|
}), {
|
|
@@ -3483,7 +4495,7 @@ const _sfc_main$88 = /* @__PURE__ */ defineComponent({
|
|
|
3483
4495
|
const descriptionAttrs = toRef(() => ({ id: root.descriptionId }));
|
|
3484
4496
|
const slotProps = toRef(() => ({ id: root.descriptionId }));
|
|
3485
4497
|
return (_ctx, _cache) => {
|
|
3486
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4498
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), descriptionAttrs.value), {
|
|
3487
4499
|
as: __props.as,
|
|
3488
4500
|
renderless: __props.renderless
|
|
3489
4501
|
}), {
|
|
@@ -3520,10 +4532,7 @@ const _sfc_main$87 = /* @__PURE__ */ defineComponent({
|
|
|
3520
4532
|
}
|
|
3521
4533
|
}));
|
|
3522
4534
|
return (_ctx, _cache) => {
|
|
3523
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3524
|
-
...unref(attrs),
|
|
3525
|
-
...slotProps.value.attrs
|
|
3526
|
-
}, {
|
|
4535
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
3527
4536
|
as: __props.as,
|
|
3528
4537
|
renderless: __props.renderless
|
|
3529
4538
|
}), {
|
|
@@ -3586,10 +4595,11 @@ const _sfc_main$86 = /* @__PURE__ */ defineComponent({
|
|
|
3586
4595
|
},
|
|
3587
4596
|
setup(__props) {
|
|
3588
4597
|
const parent = useLocale();
|
|
4598
|
+
const scopedParent = parent;
|
|
3589
4599
|
const selectedId = toRef(() => __props.locale);
|
|
3590
4600
|
const selectedItem = toRef(() => parent.get(__props.locale));
|
|
3591
|
-
const rootT =
|
|
3592
|
-
const rootN =
|
|
4601
|
+
const rootT = scopedParent._rootT ?? parent.t;
|
|
4602
|
+
const rootN = scopedParent._rootN ?? parent.n;
|
|
3593
4603
|
function t(key, ...params) {
|
|
3594
4604
|
const prev = new Set(parent.selectedIds);
|
|
3595
4605
|
parent.selectedIds.clear();
|
|
@@ -3789,7 +4799,7 @@ const _sfc_main$85 = /* @__PURE__ */ defineComponent({
|
|
|
3789
4799
|
}
|
|
3790
4800
|
}));
|
|
3791
4801
|
return (_ctx, _cache) => {
|
|
3792
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4802
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
3793
4803
|
as: __props.as,
|
|
3794
4804
|
renderless: __props.renderless
|
|
3795
4805
|
}), {
|
|
@@ -3819,9 +4829,7 @@ const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
|
3819
4829
|
text.value = /* @__PURE__ */ isNull(root.value.value) ? "" : String(root.value.value);
|
|
3820
4830
|
}
|
|
3821
4831
|
onMounted(syncText);
|
|
3822
|
-
watch(() => root.value.value,
|
|
3823
|
-
if (!root.isFocused.value) syncText();
|
|
3824
|
-
});
|
|
4832
|
+
watch(() => root.value.value, syncText);
|
|
3825
4833
|
const displayValue = toRef(() => {
|
|
3826
4834
|
return root.isFocused.value ? text.value : root.display.value;
|
|
3827
4835
|
});
|
|
@@ -3934,7 +4942,7 @@ const _sfc_main$84 = /* @__PURE__ */ defineComponent({
|
|
|
3934
4942
|
attrs: controlAttrs.value
|
|
3935
4943
|
}));
|
|
3936
4944
|
return (_ctx, _cache) => {
|
|
3937
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4945
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), controlAttrs.value), {
|
|
3938
4946
|
as: __props.as,
|
|
3939
4947
|
renderless: __props.renderless
|
|
3940
4948
|
}), {
|
|
@@ -3958,6 +4966,7 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
3958
4966
|
setup(__props) {
|
|
3959
4967
|
const attrs = useAttrs();
|
|
3960
4968
|
const root = useNumberFieldRoot(__props.namespace);
|
|
4969
|
+
const locale = useLocale();
|
|
3961
4970
|
const isDisabled = toRef(() => {
|
|
3962
4971
|
return root.isDisabled.value || root.isReadonly.value || !root.canDecrement.value;
|
|
3963
4972
|
});
|
|
@@ -3991,7 +5000,7 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
3991
5000
|
return {
|
|
3992
5001
|
"type": "button",
|
|
3993
5002
|
"tabindex": -1,
|
|
3994
|
-
"aria-label": "
|
|
5003
|
+
"aria-label": locale.t("NumberField.decrement"),
|
|
3995
5004
|
"disabled": disabled || void 0,
|
|
3996
5005
|
"data-disabled": disabled ? true : void 0,
|
|
3997
5006
|
onBlur,
|
|
@@ -4005,7 +5014,7 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
4005
5014
|
attrs: controlAttrs.value
|
|
4006
5015
|
}));
|
|
4007
5016
|
return (_ctx, _cache) => {
|
|
4008
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5017
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), controlAttrs.value), {
|
|
4009
5018
|
as: __props.as,
|
|
4010
5019
|
renderless: __props.renderless
|
|
4011
5020
|
}), {
|
|
@@ -4035,7 +5044,7 @@ const _sfc_main$82 = /* @__PURE__ */ defineComponent({
|
|
|
4035
5044
|
const descriptionAttrs = toRef(() => ({ id: root.descriptionId }));
|
|
4036
5045
|
const slotProps = toRef(() => ({ id: root.descriptionId }));
|
|
4037
5046
|
return (_ctx, _cache) => {
|
|
4038
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5047
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), descriptionAttrs.value), {
|
|
4039
5048
|
as: __props.as,
|
|
4040
5049
|
renderless: __props.renderless
|
|
4041
5050
|
}), {
|
|
@@ -4072,7 +5081,7 @@ const _sfc_main$81 = /* @__PURE__ */ defineComponent({
|
|
|
4072
5081
|
}
|
|
4073
5082
|
}));
|
|
4074
5083
|
return (_ctx, _cache) => {
|
|
4075
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5084
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
4076
5085
|
as: __props.as,
|
|
4077
5086
|
renderless: __props.renderless
|
|
4078
5087
|
}), {
|
|
@@ -4096,6 +5105,7 @@ const _sfc_main$80 = /* @__PURE__ */ defineComponent({
|
|
|
4096
5105
|
setup(__props) {
|
|
4097
5106
|
const attrs = useAttrs();
|
|
4098
5107
|
const root = useNumberFieldRoot(__props.namespace);
|
|
5108
|
+
const locale = useLocale();
|
|
4099
5109
|
const isDisabled = toRef(() => {
|
|
4100
5110
|
return root.isDisabled.value || root.isReadonly.value || !root.canIncrement.value;
|
|
4101
5111
|
});
|
|
@@ -4129,7 +5139,7 @@ const _sfc_main$80 = /* @__PURE__ */ defineComponent({
|
|
|
4129
5139
|
return {
|
|
4130
5140
|
"type": "button",
|
|
4131
5141
|
"tabindex": -1,
|
|
4132
|
-
"aria-label": "
|
|
5142
|
+
"aria-label": locale.t("NumberField.increment"),
|
|
4133
5143
|
"disabled": disabled || void 0,
|
|
4134
5144
|
"data-disabled": disabled ? true : void 0,
|
|
4135
5145
|
onBlur,
|
|
@@ -4143,7 +5153,7 @@ const _sfc_main$80 = /* @__PURE__ */ defineComponent({
|
|
|
4143
5153
|
attrs: controlAttrs.value
|
|
4144
5154
|
}));
|
|
4145
5155
|
return (_ctx, _cache) => {
|
|
4146
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5156
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), controlAttrs.value), {
|
|
4147
5157
|
as: __props.as,
|
|
4148
5158
|
renderless: __props.renderless
|
|
4149
5159
|
}), {
|
|
@@ -4210,7 +5220,7 @@ const _sfc_main$79 = /* @__PURE__ */ defineComponent({
|
|
|
4210
5220
|
"data-readonly": root.isReadonly.value ? true : void 0
|
|
4211
5221
|
} }));
|
|
4212
5222
|
return (_ctx, _cache) => {
|
|
4213
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5223
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), scrubAttrs.value), {
|
|
4214
5224
|
as: __props.as,
|
|
4215
5225
|
renderless: __props.renderless
|
|
4216
5226
|
}), {
|
|
@@ -4346,7 +5356,7 @@ const _sfc_main$78 = /* @__PURE__ */ defineComponent({
|
|
|
4346
5356
|
providePaginationControls(__props.namespace, controls);
|
|
4347
5357
|
providePaginationItems(__props.namespace, items);
|
|
4348
5358
|
return (_ctx, _cache) => {
|
|
4349
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5359
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4350
5360
|
ref_key: "atom",
|
|
4351
5361
|
ref: atom
|
|
4352
5362
|
}, slotProps.value.attrs, {
|
|
@@ -4367,7 +5377,7 @@ const _sfc_main$77 = /* @__PURE__ */ defineComponent({
|
|
|
4367
5377
|
props: {
|
|
4368
5378
|
namespace: { default: "v0:pagination" },
|
|
4369
5379
|
ellipsis: {},
|
|
4370
|
-
id: { default: () => useId() },
|
|
5380
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
4371
5381
|
as: { default: "span" },
|
|
4372
5382
|
renderless: { type: Boolean }
|
|
4373
5383
|
},
|
|
@@ -4389,7 +5399,7 @@ const _sfc_main$77 = /* @__PURE__ */ defineComponent({
|
|
|
4389
5399
|
}));
|
|
4390
5400
|
onBeforeUnmount(() => items.unregister(__props.id));
|
|
4391
5401
|
return (_ctx, _cache) => {
|
|
4392
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5402
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4393
5403
|
ref_key: "atom",
|
|
4394
5404
|
ref: atom
|
|
4395
5405
|
}, slotProps.value.attrs, {
|
|
@@ -4410,7 +5420,7 @@ const _sfc_main$76 = /* @__PURE__ */ defineComponent({
|
|
|
4410
5420
|
props: {
|
|
4411
5421
|
namespace: { default: "v0:pagination" },
|
|
4412
5422
|
disabled: { type: Boolean },
|
|
4413
|
-
id: { default: () => useId() },
|
|
5423
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
4414
5424
|
as: { default: "button" },
|
|
4415
5425
|
renderless: { type: Boolean }
|
|
4416
5426
|
},
|
|
@@ -4446,7 +5456,7 @@ const _sfc_main$76 = /* @__PURE__ */ defineComponent({
|
|
|
4446
5456
|
}));
|
|
4447
5457
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
4448
5458
|
return (_ctx, _cache) => {
|
|
4449
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5459
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4450
5460
|
ref_key: "atom",
|
|
4451
5461
|
ref: atom
|
|
4452
5462
|
}, slotProps.value.attrs, {
|
|
@@ -4471,7 +5481,7 @@ const _sfc_main$75 = /* @__PURE__ */ defineComponent({
|
|
|
4471
5481
|
type: Boolean,
|
|
4472
5482
|
default: false
|
|
4473
5483
|
},
|
|
4474
|
-
id: { default: () => useId() },
|
|
5484
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
4475
5485
|
as: { default: "button" },
|
|
4476
5486
|
renderless: { type: Boolean }
|
|
4477
5487
|
},
|
|
@@ -4514,7 +5524,7 @@ const _sfc_main$75 = /* @__PURE__ */ defineComponent({
|
|
|
4514
5524
|
}));
|
|
4515
5525
|
onBeforeUnmount(() => items.unregister(__props.id));
|
|
4516
5526
|
return (_ctx, _cache) => {
|
|
4517
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5527
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4518
5528
|
ref_key: "atom",
|
|
4519
5529
|
ref: atom
|
|
4520
5530
|
}, slotProps.value.attrs, {
|
|
@@ -4535,7 +5545,7 @@ const _sfc_main$74 = /* @__PURE__ */ defineComponent({
|
|
|
4535
5545
|
props: {
|
|
4536
5546
|
namespace: { default: "v0:pagination" },
|
|
4537
5547
|
disabled: { type: Boolean },
|
|
4538
|
-
id: { default: () => useId() },
|
|
5548
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
4539
5549
|
as: { default: "button" },
|
|
4540
5550
|
renderless: { type: Boolean }
|
|
4541
5551
|
},
|
|
@@ -4571,7 +5581,7 @@ const _sfc_main$74 = /* @__PURE__ */ defineComponent({
|
|
|
4571
5581
|
}));
|
|
4572
5582
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
4573
5583
|
return (_ctx, _cache) => {
|
|
4574
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5584
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4575
5585
|
ref_key: "atom",
|
|
4576
5586
|
ref: atom
|
|
4577
5587
|
}, slotProps.value.attrs, {
|
|
@@ -4592,7 +5602,7 @@ const _sfc_main$73 = /* @__PURE__ */ defineComponent({
|
|
|
4592
5602
|
props: {
|
|
4593
5603
|
namespace: { default: "v0:pagination" },
|
|
4594
5604
|
disabled: { type: Boolean },
|
|
4595
|
-
id: { default: () => useId() },
|
|
5605
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
4596
5606
|
as: { default: "button" },
|
|
4597
5607
|
renderless: { type: Boolean }
|
|
4598
5608
|
},
|
|
@@ -4628,7 +5638,7 @@ const _sfc_main$73 = /* @__PURE__ */ defineComponent({
|
|
|
4628
5638
|
}));
|
|
4629
5639
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
4630
5640
|
return (_ctx, _cache) => {
|
|
4631
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5641
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4632
5642
|
ref_key: "atom",
|
|
4633
5643
|
ref: atom
|
|
4634
5644
|
}, slotProps.value.attrs, {
|
|
@@ -4649,7 +5659,7 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
4649
5659
|
props: {
|
|
4650
5660
|
namespace: { default: "v0:pagination" },
|
|
4651
5661
|
disabled: { type: Boolean },
|
|
4652
|
-
id: { default: () => useId() },
|
|
5662
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
4653
5663
|
as: { default: "button" },
|
|
4654
5664
|
renderless: { type: Boolean }
|
|
4655
5665
|
},
|
|
@@ -4685,7 +5695,7 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
4685
5695
|
}));
|
|
4686
5696
|
onBeforeUnmount(() => controls.unregister(__props.id));
|
|
4687
5697
|
return (_ctx, _cache) => {
|
|
4688
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5698
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4689
5699
|
ref_key: "atom",
|
|
4690
5700
|
ref: atom
|
|
4691
5701
|
}, slotProps.value.attrs, {
|
|
@@ -4734,7 +5744,7 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
4734
5744
|
}
|
|
4735
5745
|
}));
|
|
4736
5746
|
return (_ctx, _cache) => {
|
|
4737
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5747
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
4738
5748
|
as: __props.as,
|
|
4739
5749
|
renderless: __props.renderless
|
|
4740
5750
|
}), {
|
|
@@ -4763,7 +5773,7 @@ const Pagination = {
|
|
|
4763
5773
|
};
|
|
4764
5774
|
//#endregion
|
|
4765
5775
|
//#region src/components/Popover/PopoverRoot.vue
|
|
4766
|
-
const [usePopoverContext, providePopoverContext] = createContext("
|
|
5776
|
+
const [usePopoverContext, providePopoverContext] = createContext("v0:popover");
|
|
4767
5777
|
const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
4768
5778
|
name: "PopoverRoot",
|
|
4769
5779
|
__name: "PopoverRoot",
|
|
@@ -4785,17 +5795,14 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
|
4785
5795
|
id: __props.id,
|
|
4786
5796
|
isOpen: isSelected
|
|
4787
5797
|
});
|
|
4788
|
-
providePopoverContext(
|
|
4789
|
-
...popover,
|
|
4790
|
-
isSelected
|
|
4791
|
-
});
|
|
5798
|
+
providePopoverContext(popover);
|
|
4792
5799
|
const slotProps = toRef(() => ({
|
|
4793
5800
|
id: popover.id,
|
|
4794
5801
|
isSelected: isSelected.value,
|
|
4795
5802
|
toggle: popover.toggle
|
|
4796
5803
|
}));
|
|
4797
5804
|
return (_ctx, _cache) => {
|
|
4798
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5805
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
4799
5806
|
as: __props.as,
|
|
4800
5807
|
renderless: ""
|
|
4801
5808
|
}, {
|
|
@@ -4827,11 +5834,11 @@ const _sfc_main$69 = /* @__PURE__ */ defineComponent({
|
|
|
4827
5834
|
attrs: {
|
|
4828
5835
|
"popovertarget": toValue(popovertarget),
|
|
4829
5836
|
"type": __props.as === "button" ? "button" : void 0,
|
|
4830
|
-
"data-
|
|
5837
|
+
"data-open": context.isOpen.value || void 0
|
|
4831
5838
|
}
|
|
4832
5839
|
}));
|
|
4833
5840
|
return (_ctx, _cache) => {
|
|
4834
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5841
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4835
5842
|
as: __props.as,
|
|
4836
5843
|
style: style.value
|
|
4837
5844
|
}, slotProps.value.attrs), {
|
|
@@ -4882,7 +5889,7 @@ const _sfc_main$68 = /* @__PURE__ */ defineComponent({
|
|
|
4882
5889
|
}
|
|
4883
5890
|
}));
|
|
4884
5891
|
return (_ctx, _cache) => {
|
|
4885
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5892
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
4886
5893
|
ref_key: "ref",
|
|
4887
5894
|
ref,
|
|
4888
5895
|
as: __props.as,
|
|
@@ -4928,12 +5935,25 @@ const _sfc_main$67 = /* @__PURE__ */ defineComponent({
|
|
|
4928
5935
|
disabled: {
|
|
4929
5936
|
type: Boolean,
|
|
4930
5937
|
default: false
|
|
5938
|
+
},
|
|
5939
|
+
blocking: {
|
|
5940
|
+
type: Boolean,
|
|
5941
|
+
default: false
|
|
4931
5942
|
}
|
|
4932
5943
|
},
|
|
4933
|
-
|
|
4934
|
-
|
|
5944
|
+
emits: ["close"],
|
|
5945
|
+
setup(__props, { emit: __emit }) {
|
|
5946
|
+
const emit = __emit;
|
|
5947
|
+
const ticket = useStack().register({
|
|
5948
|
+
disabled: __props.disabled,
|
|
5949
|
+
blocking: __props.blocking,
|
|
5950
|
+
onDismiss: () => emit("close")
|
|
5951
|
+
});
|
|
4935
5952
|
ticket.select();
|
|
4936
|
-
const slotProps = toRef(() => ({
|
|
5953
|
+
const slotProps = toRef(() => ({
|
|
5954
|
+
zIndex: ticket.zIndex.value,
|
|
5955
|
+
close: ticket.dismiss
|
|
5956
|
+
}));
|
|
4937
5957
|
return (_ctx, _cache) => {
|
|
4938
5958
|
return openBlock(), createBlock(Teleport, {
|
|
4939
5959
|
disabled: __props.disabled,
|
|
@@ -5113,7 +6133,7 @@ const _sfc_main$64 = /* @__PURE__ */ defineComponent({
|
|
|
5113
6133
|
};
|
|
5114
6134
|
});
|
|
5115
6135
|
return (_ctx, _cache) => {
|
|
5116
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
6136
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5117
6137
|
as: __props.as,
|
|
5118
6138
|
renderless: __props.renderless
|
|
5119
6139
|
}), {
|
|
@@ -5154,7 +6174,7 @@ const _sfc_main$63 = /* @__PURE__ */ defineComponent({
|
|
|
5154
6174
|
}
|
|
5155
6175
|
}));
|
|
5156
6176
|
return (_ctx, _cache) => {
|
|
5157
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6177
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5158
6178
|
as: __props.as,
|
|
5159
6179
|
renderless: __props.renderless,
|
|
5160
6180
|
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
@@ -5185,7 +6205,7 @@ const _sfc_main$62 = /* @__PURE__ */ defineComponent({
|
|
|
5185
6205
|
const attrs = useAttrs();
|
|
5186
6206
|
const root = useProgressRoot(__props.namespace);
|
|
5187
6207
|
const ticket = root.register({ value: toRef(() => __props.value ?? 0) });
|
|
5188
|
-
|
|
6208
|
+
onBeforeUnmount(() => {
|
|
5189
6209
|
ticket.unregister();
|
|
5190
6210
|
});
|
|
5191
6211
|
const current = toRef(() => toValue(ticket.value) ?? 0);
|
|
@@ -5201,7 +6221,7 @@ const _sfc_main$62 = /* @__PURE__ */ defineComponent({
|
|
|
5201
6221
|
}
|
|
5202
6222
|
}));
|
|
5203
6223
|
return (_ctx, _cache) => {
|
|
5204
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6224
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5205
6225
|
as: __props.as,
|
|
5206
6226
|
renderless: __props.renderless,
|
|
5207
6227
|
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
@@ -5237,7 +6257,7 @@ const _sfc_main$61 = /* @__PURE__ */ defineComponent({
|
|
|
5237
6257
|
attrs: { id: root.labelId }
|
|
5238
6258
|
}));
|
|
5239
6259
|
return (_ctx, _cache) => {
|
|
5240
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6260
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5241
6261
|
as: __props.as,
|
|
5242
6262
|
renderless: __props.renderless
|
|
5243
6263
|
}), {
|
|
@@ -5263,7 +6283,7 @@ const _sfc_main$60 = /* @__PURE__ */ defineComponent({
|
|
|
5263
6283
|
const root = useProgressRoot(__props.namespace);
|
|
5264
6284
|
const slotProps = toRef(() => ({ attrs: { "data-state": root.isIndeterminate.value ? "indeterminate" : "determinate" } }));
|
|
5265
6285
|
return (_ctx, _cache) => {
|
|
5266
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6286
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5267
6287
|
as: __props.as,
|
|
5268
6288
|
renderless: __props.renderless
|
|
5269
6289
|
}), {
|
|
@@ -5295,7 +6315,7 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
5295
6315
|
attrs: {}
|
|
5296
6316
|
}));
|
|
5297
6317
|
return (_ctx, _cache) => {
|
|
5298
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6318
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5299
6319
|
as: __props.as,
|
|
5300
6320
|
renderless: __props.renderless
|
|
5301
6321
|
}), {
|
|
@@ -5401,7 +6421,7 @@ const _sfc_main$58 = /* @__PURE__ */ defineComponent({
|
|
|
5401
6421
|
}
|
|
5402
6422
|
}));
|
|
5403
6423
|
return (_ctx, _cache) => {
|
|
5404
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6424
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
5405
6425
|
as: __props.as,
|
|
5406
6426
|
renderless: __props.renderless
|
|
5407
6427
|
}), {
|
|
@@ -5419,7 +6439,7 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
5419
6439
|
inheritAttrs: false,
|
|
5420
6440
|
__name: "RadioRoot",
|
|
5421
6441
|
props: {
|
|
5422
|
-
id: { default: () => useId() },
|
|
6442
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
5423
6443
|
label: {},
|
|
5424
6444
|
value: {},
|
|
5425
6445
|
name: {},
|
|
@@ -5487,7 +6507,7 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
5487
6507
|
if (group.activation.value === "automatic") nextItem.select();
|
|
5488
6508
|
toValue(nextItem.el)?.focus();
|
|
5489
6509
|
}
|
|
5490
|
-
|
|
6510
|
+
onBeforeUnmount(() => {
|
|
5491
6511
|
group.unregister(ticket.id);
|
|
5492
6512
|
});
|
|
5493
6513
|
const context = {
|
|
@@ -5524,10 +6544,7 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
5524
6544
|
}
|
|
5525
6545
|
}));
|
|
5526
6546
|
return (_ctx, _cache) => {
|
|
5527
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
5528
|
-
...unref(attrs),
|
|
5529
|
-
...slotProps.value.attrs
|
|
5530
|
-
}, {
|
|
6547
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5531
6548
|
as: __props.as,
|
|
5532
6549
|
renderless: __props.renderless,
|
|
5533
6550
|
onClick,
|
|
@@ -5616,7 +6633,7 @@ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
|
|
|
5616
6633
|
}
|
|
5617
6634
|
}));
|
|
5618
6635
|
return (_ctx, _cache) => {
|
|
5619
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6636
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
5620
6637
|
as: __props.as,
|
|
5621
6638
|
renderless: __props.renderless
|
|
5622
6639
|
}), {
|
|
@@ -5728,6 +6745,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
5728
6745
|
isDisabled,
|
|
5729
6746
|
isReadonly
|
|
5730
6747
|
};
|
|
6748
|
+
const locale = useLocale();
|
|
5731
6749
|
provideRatingRoot(__props.namespace, context);
|
|
5732
6750
|
const slotProps = toRef(() => ({
|
|
5733
6751
|
value: displayValue.value,
|
|
@@ -5741,7 +6759,10 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
5741
6759
|
"aria-valuenow": rating.value.value,
|
|
5742
6760
|
"aria-valuemin": 0,
|
|
5743
6761
|
"aria-valuemax": rating.size,
|
|
5744
|
-
"aria-valuetext":
|
|
6762
|
+
"aria-valuetext": locale.t("Rating.valueText", {
|
|
6763
|
+
value: rating.value.value,
|
|
6764
|
+
size: rating.size
|
|
6765
|
+
}),
|
|
5745
6766
|
"aria-disabled": isDisabled.value ? true : void 0,
|
|
5746
6767
|
"aria-readonly": isReadonly.value ? true : void 0,
|
|
5747
6768
|
"data-disabled": isDisabled.value ? true : void 0,
|
|
@@ -5752,10 +6773,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
5752
6773
|
}
|
|
5753
6774
|
}));
|
|
5754
6775
|
return (_ctx, _cache) => {
|
|
5755
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
5756
|
-
...unref(attrs),
|
|
5757
|
-
...slotProps.value.attrs
|
|
5758
|
-
}, {
|
|
6776
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5759
6777
|
as: __props.as,
|
|
5760
6778
|
renderless: __props.renderless
|
|
5761
6779
|
}), {
|
|
@@ -5846,10 +6864,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
|
5846
6864
|
}
|
|
5847
6865
|
}));
|
|
5848
6866
|
return (_ctx, _cache) => {
|
|
5849
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5850
|
-
...unref(attrs),
|
|
5851
|
-
...slotProps.value.attrs
|
|
5852
|
-
}, {
|
|
6867
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5853
6868
|
as: __props.as,
|
|
5854
6869
|
renderless: __props.renderless
|
|
5855
6870
|
}), {
|
|
@@ -5940,7 +6955,7 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
5940
6955
|
to: __props.teleportTo
|
|
5941
6956
|
}, [createVNode(TransitionGroup, { name: __props.transition }, {
|
|
5942
6957
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(tickets.value, (ticket) => {
|
|
5943
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6958
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
5944
6959
|
key: ticket.id,
|
|
5945
6960
|
as: __props.as,
|
|
5946
6961
|
style: getStyle(ticket)
|
|
@@ -5959,7 +6974,7 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
5959
6974
|
name: __props.transition
|
|
5960
6975
|
}, {
|
|
5961
6976
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(tickets.value, (ticket) => {
|
|
5962
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6977
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
5963
6978
|
key: ticket.id,
|
|
5964
6979
|
as: __props.as,
|
|
5965
6980
|
style: getStyle(ticket)
|
|
@@ -6059,7 +7074,7 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
6059
7074
|
emits: /* @__PURE__ */ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
6060
7075
|
setup(__props) {
|
|
6061
7076
|
const model = useModel(__props, "modelValue");
|
|
6062
|
-
const id = __props.id ?? useId();
|
|
7077
|
+
const id = __props.id ?? /* @__PURE__ */ useId$1();
|
|
6063
7078
|
const listboxId = `${id}-listbox`;
|
|
6064
7079
|
const activatorId = `${id}-activator`;
|
|
6065
7080
|
const selection = createSelection({
|
|
@@ -6075,7 +7090,7 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
6075
7090
|
const activatorEl = shallowRef(null);
|
|
6076
7091
|
const virtualFocus = useVirtualFocus(() => selection.values().map((ticket) => ({
|
|
6077
7092
|
id: ticket.id,
|
|
6078
|
-
el: () => document.querySelector(`#${CSS.escape(`${id}-option-${ticket.id}`)}`),
|
|
7093
|
+
el: () => IN_BROWSER ? document.querySelector(`#${CSS.escape(`${id}-option-${ticket.id}`)}`) : null,
|
|
6079
7094
|
disabled: ticket.disabled
|
|
6080
7095
|
})), {
|
|
6081
7096
|
control: activatorEl,
|
|
@@ -6137,7 +7152,7 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
6137
7152
|
toggle
|
|
6138
7153
|
}));
|
|
6139
7154
|
return (_ctx, _cache) => {
|
|
6140
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
7155
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), {
|
|
6141
7156
|
as: __props.as,
|
|
6142
7157
|
renderless: ""
|
|
6143
7158
|
}, {
|
|
@@ -6207,11 +7222,11 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
6207
7222
|
"aria-expanded": context.isOpen.value,
|
|
6208
7223
|
"aria-haspopup": "listbox",
|
|
6209
7224
|
"aria-controls": context.listboxId,
|
|
6210
|
-
"data-
|
|
7225
|
+
"data-open": context.isOpen.value || void 0
|
|
6211
7226
|
}
|
|
6212
7227
|
}));
|
|
6213
7228
|
return (_ctx, _cache) => {
|
|
6214
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7229
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
6215
7230
|
ref: "activator",
|
|
6216
7231
|
as: __props.as,
|
|
6217
7232
|
style: style.value
|
|
@@ -6256,7 +7271,7 @@ const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
|
6256
7271
|
}));
|
|
6257
7272
|
const style = toRef(() => context.popover.contentStyles.value);
|
|
6258
7273
|
return (_ctx, _cache) => {
|
|
6259
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7274
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
6260
7275
|
ref_key: "content",
|
|
6261
7276
|
ref: content
|
|
6262
7277
|
}, slotProps.value.attrs, {
|
|
@@ -6289,7 +7304,7 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
6289
7304
|
}
|
|
6290
7305
|
}));
|
|
6291
7306
|
return (_ctx, _cache) => {
|
|
6292
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7307
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs), {
|
|
6293
7308
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6294
7309
|
_: 3
|
|
6295
7310
|
}, 16, ["as"]);
|
|
@@ -6323,7 +7338,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
6323
7338
|
function onClick() {
|
|
6324
7339
|
if (!toValue(isDisabled)) context.select(ticket.id);
|
|
6325
7340
|
}
|
|
6326
|
-
|
|
7341
|
+
onBeforeUnmount(() => {
|
|
6327
7342
|
context.selection.unregister(ticket.id);
|
|
6328
7343
|
});
|
|
6329
7344
|
const slotProps = toRef(() => ({
|
|
@@ -6344,7 +7359,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
6344
7359
|
}
|
|
6345
7360
|
}));
|
|
6346
7361
|
return (_ctx, _cache) => {
|
|
6347
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7362
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ as: __props.as }, slotProps.value.attrs, { onClick }), {
|
|
6348
7363
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
6349
7364
|
_: 3
|
|
6350
7365
|
}, 16, ["as"]);
|
|
@@ -6365,7 +7380,7 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
6365
7380
|
const context = useSelectContext(__props.namespace);
|
|
6366
7381
|
const hasValue = toRef(() => context.selection.selectedIds.size > 0 || !/* @__PURE__ */ isNullOrUndefined(context.modelValue.value));
|
|
6367
7382
|
return (_ctx, _cache) => {
|
|
6368
|
-
return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7383
|
+
return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$162), {
|
|
6369
7384
|
key: 0,
|
|
6370
7385
|
as: __props.as
|
|
6371
7386
|
}, {
|
|
@@ -6408,7 +7423,7 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
|
6408
7423
|
};
|
|
6409
7424
|
});
|
|
6410
7425
|
return (_ctx, _cache) => {
|
|
6411
|
-
return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7426
|
+
return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$162), {
|
|
6412
7427
|
key: 0,
|
|
6413
7428
|
as: __props.as
|
|
6414
7429
|
}, {
|
|
@@ -6545,7 +7560,7 @@ const _sfc_main$41 = /* @__PURE__ */ defineComponent({
|
|
|
6545
7560
|
disabled: __props.disabled
|
|
6546
7561
|
});
|
|
6547
7562
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(selection.disabled));
|
|
6548
|
-
|
|
7563
|
+
onBeforeUnmount(() => {
|
|
6549
7564
|
selection.unregister(ticket.id);
|
|
6550
7565
|
});
|
|
6551
7566
|
const slotProps = toRef(() => ({
|
|
@@ -6648,7 +7663,7 @@ const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
|
6648
7663
|
disabled: __props.disabled
|
|
6649
7664
|
});
|
|
6650
7665
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(single.disabled));
|
|
6651
|
-
|
|
7666
|
+
onBeforeUnmount(() => {
|
|
6652
7667
|
single.unregister(ticket.id);
|
|
6653
7668
|
});
|
|
6654
7669
|
const slotProps = toRef(() => ({
|
|
@@ -6692,7 +7707,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
|
6692
7707
|
inheritAttrs: false,
|
|
6693
7708
|
__name: "SliderRoot",
|
|
6694
7709
|
props: /* @__PURE__ */ mergeModels({
|
|
6695
|
-
id: { default: () => useId() },
|
|
7710
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
6696
7711
|
min: { default: 0 },
|
|
6697
7712
|
max: { default: 100 },
|
|
6698
7713
|
step: { default: 1 },
|
|
@@ -6817,10 +7832,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
|
6817
7832
|
}
|
|
6818
7833
|
}));
|
|
6819
7834
|
return (_ctx, _cache) => {
|
|
6820
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
6821
|
-
...unref(attrs),
|
|
6822
|
-
...slotProps.value.attrs
|
|
6823
|
-
}, {
|
|
7835
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
6824
7836
|
as: __props.as,
|
|
6825
7837
|
renderless: __props.renderless
|
|
6826
7838
|
}), {
|
|
@@ -6909,10 +7921,7 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
6909
7921
|
}
|
|
6910
7922
|
}));
|
|
6911
7923
|
return (_ctx, _cache) => {
|
|
6912
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6913
|
-
...unref(attrs),
|
|
6914
|
-
...slotProps.value.attrs
|
|
6915
|
-
}, {
|
|
7924
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
6916
7925
|
as: __props.as,
|
|
6917
7926
|
renderless: __props.renderless,
|
|
6918
7927
|
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
@@ -6946,7 +7955,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
6946
7955
|
const root = useSliderRoot(__props.namespace);
|
|
6947
7956
|
const thumbRef = useTemplateRef("thumb");
|
|
6948
7957
|
const ticket = root.register();
|
|
6949
|
-
|
|
7958
|
+
onBeforeUnmount(() => {
|
|
6950
7959
|
root.unregister(ticket.id);
|
|
6951
7960
|
});
|
|
6952
7961
|
const index = toRef(() => ticket.index);
|
|
@@ -7023,7 +8032,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
7023
8032
|
}
|
|
7024
8033
|
}));
|
|
7025
8034
|
return (_ctx, _cache) => {
|
|
7026
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8035
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "thumb" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
7027
8036
|
as: __props.as,
|
|
7028
8037
|
renderless: __props.renderless,
|
|
7029
8038
|
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
@@ -7089,7 +8098,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
7089
8098
|
"onPointerdown": onPointerdown
|
|
7090
8099
|
} }));
|
|
7091
8100
|
return (_ctx, _cache) => {
|
|
7092
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8101
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "track" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
7093
8102
|
as: __props.as,
|
|
7094
8103
|
renderless: __props.renderless,
|
|
7095
8104
|
style: [unref(attrs).style, slotProps.value.attrs.style]
|
|
@@ -7157,7 +8166,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
7157
8166
|
disabled: __props.teleport === false,
|
|
7158
8167
|
to: __props.teleport || "body"
|
|
7159
8168
|
}, {
|
|
7160
|
-
default: withCtx(({ zIndex }) => [createVNode(unref(_sfc_main$
|
|
8169
|
+
default: withCtx(({ zIndex }) => [createVNode(unref(_sfc_main$162), mergeProps({
|
|
7161
8170
|
as: __props.as,
|
|
7162
8171
|
style: { zIndex }
|
|
7163
8172
|
}, _ctx.$attrs), {
|
|
@@ -7212,7 +8221,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
7212
8221
|
if (/* @__PURE__ */ isElement(el) && /* @__PURE__ */ isElement(e.relatedTarget) && el.contains(e.relatedTarget)) return;
|
|
7213
8222
|
resume("focus");
|
|
7214
8223
|
}
|
|
7215
|
-
|
|
8224
|
+
onBeforeUnmount(() => {
|
|
7216
8225
|
if (reasons.size > 0) {
|
|
7217
8226
|
reasons.clear();
|
|
7218
8227
|
notifications.queue.resume();
|
|
@@ -7228,7 +8237,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
7228
8237
|
}
|
|
7229
8238
|
}));
|
|
7230
8239
|
return (_ctx, _cache) => {
|
|
7231
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8240
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
7232
8241
|
ref_key: "container",
|
|
7233
8242
|
ref: container
|
|
7234
8243
|
}, slotProps.value.attrs, { as: __props.as }), {
|
|
@@ -7267,7 +8276,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
|
7267
8276
|
attrs: { role: "status" }
|
|
7268
8277
|
}));
|
|
7269
8278
|
return (_ctx, _cache) => {
|
|
7270
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8279
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, { as: __props.as }), {
|
|
7271
8280
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
7272
8281
|
_: 3
|
|
7273
8282
|
}, 16, ["as"]);
|
|
@@ -7285,7 +8294,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
7285
8294
|
},
|
|
7286
8295
|
setup(__props) {
|
|
7287
8296
|
return (_ctx, _cache) => {
|
|
7288
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8297
|
+
return openBlock(), createBlock(unref(_sfc_main$162), { as: __props.as }, {
|
|
7289
8298
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
7290
8299
|
_: 3
|
|
7291
8300
|
}, 8, ["as"]);
|
|
@@ -7304,16 +8313,17 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
7304
8313
|
},
|
|
7305
8314
|
setup(__props) {
|
|
7306
8315
|
const context = useSnackbarRootContext(__props.namespace);
|
|
8316
|
+
const locale = useLocale();
|
|
7307
8317
|
function onClick() {
|
|
7308
8318
|
context.onDismiss();
|
|
7309
8319
|
}
|
|
7310
8320
|
const slotProps = toRef(() => ({ attrs: {
|
|
7311
8321
|
"type": __props.as === "button" ? "button" : void 0,
|
|
7312
|
-
"aria-label": "
|
|
8322
|
+
"aria-label": locale.t("Snackbar.close"),
|
|
7313
8323
|
"onClick": onClick
|
|
7314
8324
|
} }));
|
|
7315
8325
|
return (_ctx, _cache) => {
|
|
7316
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8326
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, { as: __props.as }), {
|
|
7317
8327
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
7318
8328
|
_: 3
|
|
7319
8329
|
}, 16, ["as"]);
|
|
@@ -7548,10 +8558,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
7548
8558
|
}
|
|
7549
8559
|
}));
|
|
7550
8560
|
return (_ctx, _cache) => {
|
|
7551
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7552
|
-
...unref(attrs),
|
|
7553
|
-
...slotProps.value.attrs
|
|
7554
|
-
}, {
|
|
8561
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
7555
8562
|
as: __props.as,
|
|
7556
8563
|
renderless: __props.renderless,
|
|
7557
8564
|
style: [
|
|
@@ -7605,33 +8612,40 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
7605
8612
|
const splitter = useSplitterRoot();
|
|
7606
8613
|
const panelId = /* @__PURE__ */ useId$1();
|
|
7607
8614
|
const rootSize = shallowRef(0);
|
|
7608
|
-
|
|
8615
|
+
function isPx(value) {
|
|
8616
|
+
return /* @__PURE__ */ isString(value) && value.endsWith("px");
|
|
8617
|
+
}
|
|
8618
|
+
if (isPx(__props.defaultSize) || isPx(__props.minSize) || isPx(__props.maxSize) || isPx(__props.collapsedSize)) useResizeObserver(splitter.rootEl, (entries) => {
|
|
7609
8619
|
const rect = entries[0]?.contentRect;
|
|
7610
8620
|
rootSize.value = splitter.orientation.value === "horizontal" ? rect?.width ?? 0 : rect?.height ?? 0;
|
|
7611
8621
|
});
|
|
7612
|
-
function
|
|
7613
|
-
if (!/* @__PURE__ */ isString(
|
|
7614
|
-
const
|
|
7615
|
-
|
|
7616
|
-
|
|
8622
|
+
function percent(value, fallback) {
|
|
8623
|
+
if (!/* @__PURE__ */ isString(value)) return value;
|
|
8624
|
+
const num = Number.parseFloat(value);
|
|
8625
|
+
if (Number.isNaN(num)) return fallback;
|
|
8626
|
+
if (value.endsWith("px")) {
|
|
8627
|
+
const dimension = rootSize.value || (splitter.orientation.value === "horizontal" ? splitter.rootEl.value?.offsetWidth : splitter.rootEl.value?.offsetHeight) || 0;
|
|
8628
|
+
return dimension > 0 ? num / dimension * 100 : fallback;
|
|
8629
|
+
}
|
|
8630
|
+
return num;
|
|
7617
8631
|
}
|
|
7618
8632
|
const ticket = splitter.panels.register({
|
|
7619
8633
|
id: panelId,
|
|
7620
|
-
size: __props.defaultSize,
|
|
7621
|
-
minSize: __props.minSize,
|
|
7622
|
-
maxSize:
|
|
8634
|
+
size: percent(__props.defaultSize, 0),
|
|
8635
|
+
minSize: percent(__props.minSize, 0),
|
|
8636
|
+
maxSize: percent(__props.maxSize, 100),
|
|
7623
8637
|
collapsible: __props.collapsible,
|
|
7624
|
-
collapsedSize: __props.collapsedSize,
|
|
7625
|
-
defaultSize: __props.defaultSize
|
|
8638
|
+
collapsedSize: percent(__props.collapsedSize, 0),
|
|
8639
|
+
defaultSize: percent(__props.defaultSize, 0)
|
|
7626
8640
|
});
|
|
7627
8641
|
watchEffect(() => {
|
|
7628
|
-
ticket.minSize = __props.minSize;
|
|
7629
|
-
ticket.maxSize =
|
|
8642
|
+
ticket.minSize = percent(__props.minSize, 0);
|
|
8643
|
+
ticket.maxSize = percent(__props.maxSize, 100);
|
|
7630
8644
|
ticket.collapsible = __props.collapsible;
|
|
7631
|
-
ticket.collapsedSize = __props.collapsedSize;
|
|
7632
|
-
ticket.defaultSize = __props.defaultSize;
|
|
8645
|
+
ticket.collapsedSize = percent(__props.collapsedSize, 0);
|
|
8646
|
+
ticket.defaultSize = percent(__props.defaultSize, 0);
|
|
7633
8647
|
});
|
|
7634
|
-
|
|
8648
|
+
onBeforeUnmount(() => {
|
|
7635
8649
|
splitter.panels.unregister(ticket.id);
|
|
7636
8650
|
});
|
|
7637
8651
|
const size = toRef(() => ticket.size);
|
|
@@ -7674,10 +8688,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
7674
8688
|
}
|
|
7675
8689
|
}));
|
|
7676
8690
|
return (_ctx, _cache) => {
|
|
7677
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7678
|
-
...unref(attrs),
|
|
7679
|
-
...slotProps.value.attrs
|
|
7680
|
-
}, {
|
|
8691
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
7681
8692
|
as: __props.as,
|
|
7682
8693
|
renderless: __props.renderless,
|
|
7683
8694
|
style: [
|
|
@@ -7722,7 +8733,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
7722
8733
|
const PAGE_STEP = 10;
|
|
7723
8734
|
const splitter = useSplitterRoot();
|
|
7724
8735
|
const ticket = splitter.handles.register();
|
|
7725
|
-
|
|
8736
|
+
onBeforeUnmount(() => {
|
|
7726
8737
|
splitter.handles.unregister(ticket.id);
|
|
7727
8738
|
});
|
|
7728
8739
|
const hovering = shallowRef(false);
|
|
@@ -7875,7 +8886,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
7875
8886
|
}
|
|
7876
8887
|
}));
|
|
7877
8888
|
return (_ctx, _cache) => {
|
|
7878
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8889
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
7879
8890
|
as: __props.as,
|
|
7880
8891
|
renderless: __props.renderless,
|
|
7881
8892
|
style: [
|
|
@@ -7999,7 +9010,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
7999
9010
|
disabled: __props.disabled
|
|
8000
9011
|
});
|
|
8001
9012
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(step.disabled));
|
|
8002
|
-
|
|
9013
|
+
onBeforeUnmount(() => {
|
|
8003
9014
|
step.unregister(ticket.id);
|
|
8004
9015
|
});
|
|
8005
9016
|
const slotProps = toRef(() => ({
|
|
@@ -8094,7 +9105,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
8094
9105
|
}
|
|
8095
9106
|
}));
|
|
8096
9107
|
return (_ctx, _cache) => {
|
|
8097
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9108
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
8098
9109
|
as: __props.as,
|
|
8099
9110
|
renderless: __props.renderless
|
|
8100
9111
|
}), {
|
|
@@ -8112,7 +9123,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
8112
9123
|
inheritAttrs: false,
|
|
8113
9124
|
__name: "SwitchRoot",
|
|
8114
9125
|
props: /* @__PURE__ */ mergeModels({
|
|
8115
|
-
id: { default: () => useId() },
|
|
9126
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
8116
9127
|
label: {},
|
|
8117
9128
|
value: {},
|
|
8118
9129
|
name: {},
|
|
@@ -8179,7 +9190,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
8179
9190
|
e.preventDefault();
|
|
8180
9191
|
toggle();
|
|
8181
9192
|
}
|
|
8182
|
-
|
|
9193
|
+
onBeforeUnmount(() => {
|
|
8183
9194
|
if (!ticket || !group) return;
|
|
8184
9195
|
group.unregister(ticket.id);
|
|
8185
9196
|
});
|
|
@@ -8226,10 +9237,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
8226
9237
|
}
|
|
8227
9238
|
}));
|
|
8228
9239
|
return (_ctx, _cache) => {
|
|
8229
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$
|
|
8230
|
-
...unref(attrs),
|
|
8231
|
-
...slotProps.value.attrs
|
|
8232
|
-
}, {
|
|
9240
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
8233
9241
|
as: __props.as,
|
|
8234
9242
|
renderless: __props.renderless,
|
|
8235
9243
|
onClick,
|
|
@@ -8316,7 +9324,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
8316
9324
|
setup(__props) {
|
|
8317
9325
|
const attrs = useAttrs();
|
|
8318
9326
|
const group = useSwitchGroup(__props.groupNamespace);
|
|
8319
|
-
const id = useId();
|
|
9327
|
+
const id = /* @__PURE__ */ useId$1();
|
|
8320
9328
|
const isAllSelected = toRef(() => group.isAllSelected.value);
|
|
8321
9329
|
const isMixed = toRef(() => group.isMixed.value);
|
|
8322
9330
|
const isDisabled = toRef(() => toValue(__props.disabled) || toValue(group.disabled));
|
|
@@ -8369,10 +9377,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
8369
9377
|
}
|
|
8370
9378
|
}));
|
|
8371
9379
|
return (_ctx, _cache) => {
|
|
8372
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8373
|
-
...unref(attrs),
|
|
8374
|
-
...slotProps.value.attrs
|
|
8375
|
-
}, {
|
|
9380
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
8376
9381
|
as: __props.as,
|
|
8377
9382
|
renderless: __props.renderless,
|
|
8378
9383
|
onClick,
|
|
@@ -8409,7 +9414,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8409
9414
|
}
|
|
8410
9415
|
}));
|
|
8411
9416
|
return (_ctx, _cache) => {
|
|
8412
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9417
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
8413
9418
|
as: __props.as,
|
|
8414
9419
|
renderless: __props.renderless
|
|
8415
9420
|
}), {
|
|
@@ -8440,7 +9445,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8440
9445
|
attrs: { "data-state": dataState.value }
|
|
8441
9446
|
}));
|
|
8442
9447
|
return (_ctx, _cache) => {
|
|
8443
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9448
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
8444
9449
|
as: __props.as,
|
|
8445
9450
|
dir: "ltr",
|
|
8446
9451
|
renderless: __props.renderless
|
|
@@ -8520,7 +9525,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8520
9525
|
emits: /* @__PURE__ */ mergeModels(["update:model-value"], ["update:modelValue"]),
|
|
8521
9526
|
setup(__props) {
|
|
8522
9527
|
const model = useModel(__props, "modelValue");
|
|
8523
|
-
const rootId = useId();
|
|
9528
|
+
const rootId = /* @__PURE__ */ useId$1();
|
|
8524
9529
|
const step = createStep({
|
|
8525
9530
|
disabled: toRef(() => __props.disabled),
|
|
8526
9531
|
enroll: __props.enroll,
|
|
@@ -8584,10 +9589,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8584
9589
|
}
|
|
8585
9590
|
}));
|
|
8586
9591
|
return (_ctx, _cache) => {
|
|
8587
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8588
|
-
...unref(attrs),
|
|
8589
|
-
...slotProps.value.attrs
|
|
8590
|
-
}, {
|
|
9592
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
8591
9593
|
as: __props.as,
|
|
8592
9594
|
renderless: __props.renderless
|
|
8593
9595
|
}), {
|
|
@@ -8628,7 +9630,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8628
9630
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(tabs.disabled));
|
|
8629
9631
|
const tabId = toRef(() => `${tabs.rootId}-tab-${ticket.id}`);
|
|
8630
9632
|
const panelId = toRef(() => `${tabs.rootId}-panel-${ticket.id}`);
|
|
8631
|
-
|
|
9633
|
+
onBeforeUnmount(() => {
|
|
8632
9634
|
tabs.unregister(ticket.id);
|
|
8633
9635
|
});
|
|
8634
9636
|
function focusSelectedTab() {
|
|
@@ -8735,7 +9737,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8735
9737
|
}
|
|
8736
9738
|
}));
|
|
8737
9739
|
return (_ctx, _cache) => {
|
|
8738
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9740
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({ ref: "root" }, mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
8739
9741
|
as: __props.as,
|
|
8740
9742
|
renderless: __props.renderless
|
|
8741
9743
|
}), {
|
|
@@ -8784,10 +9786,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8784
9786
|
}
|
|
8785
9787
|
}));
|
|
8786
9788
|
return (_ctx, _cache) => {
|
|
8787
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
8788
|
-
...unref(attrs),
|
|
8789
|
-
...slotProps.value.attrs
|
|
8790
|
-
}, {
|
|
9789
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
8791
9790
|
as: __props.as,
|
|
8792
9791
|
renderless: __props.renderless
|
|
8793
9792
|
}), {
|
|
@@ -8877,7 +9876,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8877
9876
|
isDark: isDark.value
|
|
8878
9877
|
}));
|
|
8879
9878
|
return (_ctx, _cache) => {
|
|
8880
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9879
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps({
|
|
8881
9880
|
as: __props.as,
|
|
8882
9881
|
"data-theme": selectedId.value,
|
|
8883
9882
|
renderless: __props.renderless
|
|
@@ -8948,7 +9947,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8948
9947
|
}
|
|
8949
9948
|
}));
|
|
8950
9949
|
return (_ctx, _cache) => {
|
|
8951
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9950
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
8952
9951
|
as: __props.as,
|
|
8953
9952
|
renderless: __props.renderless
|
|
8954
9953
|
}), {
|
|
@@ -8966,7 +9965,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8966
9965
|
inheritAttrs: false,
|
|
8967
9966
|
__name: "ToggleRoot",
|
|
8968
9967
|
props: /* @__PURE__ */ mergeModels({
|
|
8969
|
-
id: { default: () => useId() },
|
|
9968
|
+
id: { default: () => /* @__PURE__ */ useId$1() },
|
|
8970
9969
|
value: {},
|
|
8971
9970
|
disabled: {
|
|
8972
9971
|
type: Boolean,
|
|
@@ -9015,7 +10014,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
9015
10014
|
e.preventDefault();
|
|
9016
10015
|
toggle();
|
|
9017
10016
|
}
|
|
9018
|
-
|
|
10017
|
+
onBeforeUnmount(() => {
|
|
9019
10018
|
ticket?.unregister();
|
|
9020
10019
|
});
|
|
9021
10020
|
const context = {
|
|
@@ -9038,10 +10037,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
9038
10037
|
}
|
|
9039
10038
|
}));
|
|
9040
10039
|
return (_ctx, _cache) => {
|
|
9041
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9042
|
-
...unref(attrs),
|
|
9043
|
-
...slotProps.value.attrs
|
|
9044
|
-
}, {
|
|
10040
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
9045
10041
|
as: __props.as,
|
|
9046
10042
|
renderless: __props.renderless,
|
|
9047
10043
|
onClick,
|
|
@@ -9074,7 +10070,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
9074
10070
|
}
|
|
9075
10071
|
}));
|
|
9076
10072
|
return (_ctx, _cache) => {
|
|
9077
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10073
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9078
10074
|
as: __props.as,
|
|
9079
10075
|
renderless: __props.renderless
|
|
9080
10076
|
}), {
|
|
@@ -9292,7 +10288,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
9292
10288
|
onFocusin
|
|
9293
10289
|
} }));
|
|
9294
10290
|
return (_ctx, _cache) => {
|
|
9295
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10291
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9296
10292
|
as: __props.as,
|
|
9297
10293
|
renderless: __props.renderless
|
|
9298
10294
|
}), {
|
|
@@ -9357,7 +10353,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
9357
10353
|
deactivate: ticket.deactivate
|
|
9358
10354
|
}));
|
|
9359
10355
|
return (_ctx, _cache) => {
|
|
9360
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10356
|
+
return openBlock(), createBlock(unref(_sfc_main$162), {
|
|
9361
10357
|
ref: "root",
|
|
9362
10358
|
"aria-disabled": slotProps.value.isDisabled || void 0,
|
|
9363
10359
|
"aria-expanded": hasContent.value ? slotProps.value.isOpen : void 0,
|
|
@@ -9425,7 +10421,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
9425
10421
|
}
|
|
9426
10422
|
}));
|
|
9427
10423
|
return (_ctx, _cache) => {
|
|
9428
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10424
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9429
10425
|
as: __props.as,
|
|
9430
10426
|
renderless: __props.renderless
|
|
9431
10427
|
}), {
|
|
@@ -9466,7 +10462,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
9466
10462
|
}
|
|
9467
10463
|
}));
|
|
9468
10464
|
return (_ctx, _cache) => {
|
|
9469
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10465
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9470
10466
|
as: __props.as,
|
|
9471
10467
|
renderless: __props.renderless
|
|
9472
10468
|
}), {
|
|
@@ -9526,7 +10522,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9526
10522
|
}
|
|
9527
10523
|
}));
|
|
9528
10524
|
return (_ctx, _cache) => {
|
|
9529
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10525
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9530
10526
|
as: __props.as,
|
|
9531
10527
|
renderless: __props.renderless
|
|
9532
10528
|
}), {
|
|
@@ -9548,7 +10544,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9548
10544
|
setup(__props) {
|
|
9549
10545
|
const slotProps = toRef(() => ({ attrs: { role: "group" } }));
|
|
9550
10546
|
return (_ctx, _cache) => {
|
|
9551
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10547
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9552
10548
|
as: __props.as,
|
|
9553
10549
|
renderless: __props.renderless
|
|
9554
10550
|
}), {
|
|
@@ -9584,7 +10580,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9584
10580
|
}
|
|
9585
10581
|
}));
|
|
9586
10582
|
return (_ctx, _cache) => {
|
|
9587
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10583
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9588
10584
|
as: __props.as,
|
|
9589
10585
|
renderless: __props.renderless
|
|
9590
10586
|
}), {
|
|
@@ -9686,7 +10682,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9686
10682
|
}
|
|
9687
10683
|
}));
|
|
9688
10684
|
return (_ctx, _cache) => {
|
|
9689
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
10685
|
+
return openBlock(), createBlock(unref(_sfc_main$162), mergeProps(slotProps.value.attrs, {
|
|
9690
10686
|
as: __props.as,
|
|
9691
10687
|
renderless: __props.renderless
|
|
9692
10688
|
}), {
|
|
@@ -9740,4 +10736,4 @@ const Treeview = {
|
|
|
9740
10736
|
SelectAll: _sfc_main
|
|
9741
10737
|
};
|
|
9742
10738
|
//#endregion
|
|
9743
|
-
export { _sfc_main$28 as $,
|
|
10739
|
+
export { _sfc_main$28 as $, _sfc_main$160 as $i, Image as $n, _sfc_main$125 as $r, _sfc_main$58 as $t, _sfc_main$16 as A, _sfc_main$143 as Ai, providePaginationItems as An, provideDialogContext as Ar, Select as At, provideSwitchRoot as B, _sfc_main$150 as Bi, _sfc_main$83 as Bn, _sfc_main$117 as Br, _sfc_main$51 as Bt, _sfc_main$12 as C, provideButtonRoot as Ci, _sfc_main$73 as Cn, Dialog as Cr, provideSingleRoot as Ct, Tabs as D, provideButtonGroup as Di, _sfc_main$77 as Dn, _sfc_main$107 as Dr, _sfc_main$42 as Dt, _sfc_main$13 as E, _sfc_main$142 as Ei, _sfc_main$76 as En, _sfc_main$106 as Er, _sfc_main$41 as Et, _sfc_main$18 as F, _sfc_main$148 as Fi, NumberField as Fn, _sfc_main$112 as Fr, _sfc_main$47 as Ft, Step as G, _sfc_main$153 as Gi, _sfc_main$86 as Gn, _sfc_main$120 as Gr, provideRatingRoot as Gt, _sfc_main$23 as H, _sfc_main$152 as Hi, _sfc_main$85 as Hn, provideComboboxContext as Hr, _sfc_main$52 as Ht, _sfc_main$19 as I, _sfc_main$149 as Ii, _sfc_main$79 as In, _sfc_main$113 as Ir, _sfc_main$48 as It, provideStepRoot as J, _sfc_main$155 as Ji, _sfc_main$88 as Jn, _sfc_main$123 as Jr, _sfc_main$55 as Jt, _sfc_main$24 as K, AlertDialog as Ki, Input as Kn, _sfc_main$121 as Kr, useRatingRoot as Kt, _sfc_main$20 as L, provideBreadcrumbsRoot as Li, _sfc_main$80 as Ln, _sfc_main$114 as Lr, _sfc_main$49 as Lt, provideTabsRoot as M, _sfc_main$145 as Mi, usePaginationControls as Mn, Combobox as Mr, _sfc_main$44 as Mt, useTabsRoot as N, _sfc_main$146 as Ni, usePaginationItems as Nn, _sfc_main$110 as Nr, _sfc_main$45 as Nt, _sfc_main$14 as O, useButtonGroup as Oi, _sfc_main$78 as On, _sfc_main$108 as Or, provideSelectionRoot as Ot, Switch as P, _sfc_main$147 as Pi, usePaginationRoot as Pn, _sfc_main$111 as Pr, _sfc_main$46 as Pt, _sfc_main$27 as Q, _sfc_main$159 as Qi, useInputRoot as Qn, _sfc_main$124 as Qr, useRadioRoot as Qt, _sfc_main$21 as R, useBreadcrumbsRoot as Ri, _sfc_main$81 as Rn, _sfc_main$115 as Rr, provideSelectContext as Rt, useToggleRoot as S, _sfc_main$140 as Si, _sfc_main$72 as Sn, useExpansionPanelGroup as Sr, _sfc_main$40 as St, useToggleGroup as T, _sfc_main$141 as Ti, _sfc_main$75 as Tn, _sfc_main$105 as Tr, Selection as Tt, provideSwitchGroup as U, provideAvatarRoot as Ui, provideNumberFieldRoot as Un, useComboboxContext as Ur, _sfc_main$53 as Ut, useSwitchRoot as V, _sfc_main$151 as Vi, _sfc_main$84 as Vn, _sfc_main$118 as Vr, Rating as Vt, useSwitchGroup as W, useAvatarRoot as Wi, useNumberFieldRoot as Wn, Collapsible as Wr, _sfc_main$54 as Wt, Splitter as X, _sfc_main$157 as Xi, _sfc_main$90 as Xn, useCollapsible as Xr, _sfc_main$57 as Xt, useStepRoot as Y, _sfc_main$156 as Yi, _sfc_main$89 as Yn, provideCollapsible as Yr, _sfc_main$56 as Yt, _sfc_main$26 as Z, _sfc_main$158 as Zi, provideInputRoot as Zn, Checkbox as Zr, provideRadioRoot as Zt, useTreeviewRoot as _, useCarouselRoot as _i, _sfc_main$70 as _n, _sfc_main$102 as _r, _sfc_main$38 as _t, _sfc_main$3 as a, provideCheckboxGroup as ai, _sfc_main$61 as an, useImageRoot as ar, _sfc_main$31 as at, _sfc_main$11 as b, _sfc_main$138 as bi, Pagination as bn, _sfc_main$103 as br, Single as bt, _sfc_main$6 as c, _sfc_main$129 as ci, _sfc_main$64 as cn, _sfc_main$96 as cr, _sfc_main$32 as ct, useTreeviewItem as d, _sfc_main$132 as di, _sfc_main$65 as dn, _sfc_main$97 as dr, _sfc_main$33 as dt, _sfc_main$161 as ea, _sfc_main$126 as ei, provideRadioGroup as en, _sfc_main$91 as er, provideSplitterRoot as et, _sfc_main$8 as f, _sfc_main$133 as fi, _sfc_main$66 as fn, ExpansionPanel as fr, Slider as ft, provideTreeviewRoot as g, provideCarouselRoot as gi, _sfc_main$69 as gn, _sfc_main$101 as gr, _sfc_main$37 as gt, _sfc_main$9 as h, _sfc_main$136 as hi, _sfc_main$68 as hn, _sfc_main$100 as hr, _sfc_main$36 as ht, _sfc_main$2 as i, _sfc_main$128 as ii, _sfc_main$60 as in, provideImageRoot as ir, _sfc_main$30 as it, _sfc_main$17 as j, _sfc_main$144 as ji, providePaginationRoot as jn, useDialogContext as jr, _sfc_main$43 as jt, _sfc_main$15 as k, Breadcrumbs as ki, providePaginationControls as kn, _sfc_main$109 as kr, useSelectionRoot as kt, _sfc_main$7 as l, _sfc_main$130 as li, provideProgressRoot as ln, provideGroupRoot as lr, provideSnackbarQueueContext as lt, useTreeviewList as m, _sfc_main$135 as mi, Popover as mn, _sfc_main$99 as mr, _sfc_main$35 as mt, _sfc_main as n, useAlertDialogContext as na, provideCheckboxRoot as ni, Progress as nn, _sfc_main$93 as nr, Snackbar as nt, _sfc_main$4 as o, useCheckboxGroup as oi, _sfc_main$62 as on, Group as or, provideSnackbarRootContext as ot, provideTreeviewList as p, _sfc_main$134 as pi, _sfc_main$67 as pn, _sfc_main$98 as pr, _sfc_main$34 as pt, _sfc_main$25 as q, _sfc_main$154 as qi, _sfc_main$87 as qn, _sfc_main$122 as qr, Radio as qt, _sfc_main$1 as r, _sfc_main$162 as ra, useCheckboxRoot as ri, _sfc_main$59 as rn, _sfc_main$94 as rr, _sfc_main$29 as rt, _sfc_main$5 as s, Carousel as si, _sfc_main$63 as sn, _sfc_main$95 as sr, useSnackbarRootContext as st, Treeview as t, provideAlertDialogContext as ta, _sfc_main$127 as ti, useRadioGroup as tn, _sfc_main$92 as tr, useSplitterRoot as tt, provideTreeviewItem as u, _sfc_main$131 as ui, useProgressRoot as un, useGroupRoot as ur, useSnackbarQueueContext as ut, Toggle as v, Button as vi, providePopoverContext as vn, provideExpansionPanelRoot as vr, provideSliderRoot as vt, provideToggleGroup as w, useButtonRoot as wi, _sfc_main$74 as wn, _sfc_main$104 as wr, useSingleRoot as wt, provideToggleRoot as x, _sfc_main$139 as xi, _sfc_main$71 as xn, provideExpansionPanelGroup as xr, _sfc_main$39 as xt, _sfc_main$10 as y, _sfc_main$137 as yi, usePopoverContext as yn, useExpansionPanelRoot as yr, useSliderRoot as yt, _sfc_main$22 as z, Avatar as zi, _sfc_main$82 as zn, _sfc_main$116 as zr, useSelectContext as zt };
|