@vuetify/v0 1.0.0-beta.1 → 1.0.0-beta.3
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 +2 -1
- package/dist/{adapter-DZeI0ZbW.d.mts → adapter-CQoi3rdC.d.mts} +1 -1
- package/dist/adapter-CVoWg0sw.mjs +99 -0
- package/dist/{adapter-DdTval2R.mjs → adapter-Cj7vxEdB.mjs} +5 -0
- package/dist/adapter-Cy7wXVFe.mjs +4 -0
- package/dist/{adapter-we-0GbFH.d.mts → adapter-D2ABPTpo.d.mts} +2 -2
- package/dist/{adapter-BO75n0Cn.d.mts → adapter-_srNCBEi.d.mts} +3 -3
- package/dist/browser/index.js +23495 -23168
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{components-B210m9Ye.mjs → components-Df1uIUcB.mjs} +301 -213
- package/dist/composables/index.d.mts +20 -20
- package/dist/composables/index.mjs +34 -28
- package/dist/composables-C7MhsS5q.mjs +4077 -0
- package/dist/{consola-CUNHyu8J.d.mts → consola-BPGkJp_q.d.mts} +1 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-B-Fo-uuL.mjs → createDataTable-DfggVqO1.mjs} +14 -11
- package/dist/{createGroup-CpaW7zEJ.mjs → createGroup-vfCXVfYV.mjs} +2 -2
- package/dist/{adapter-BCVxBtDp.mjs → createPagination-B5dfqY-a.mjs} +3 -98
- package/dist/{createRegistry-8FryYQC-.mjs → createRegistry-Ve2QNpZv.mjs} +3 -2
- package/dist/{createSelection-DPOvmJ5q.mjs → createSelection-CT2UG109.mjs} +7 -4
- package/dist/{createSingle-CYi0RuOy.mjs → createSingle-DTI4qvUd.mjs} +1 -1
- package/dist/{createTokens-DaJ_SYE7.mjs → createTokens-C5bl_n6G.mjs} +3 -4
- 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 +4 -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 +5 -5
- package/dist/data-table/index.mjs +5 -5
- package/dist/date/index.d.mts +1 -1
- package/dist/date/index.mjs +36 -33
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +47 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.mjs +37 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +46 -1
- package/dist/features/index.d.mts +2 -2
- package/dist/features/index.mjs +2 -2
- package/dist/{flagsmith-Cn_KVy6v.d.mts → flagsmith-CXzNBqm3.d.mts} +1 -1
- package/dist/{globals-BBqmW3dM.mjs → globals-D78-6Zqq.mjs} +1 -1
- package/dist/{index-BN06veYe.d.mts → index-B5OhvOR2.d.mts} +182 -88
- package/dist/{index-DWAgQOBa.d.mts → index-Bmz8PZMY.d.mts} +3 -4
- package/dist/{index-BpDzW6zC.d.mts → index-Caq7DXRO.d.mts} +511 -439
- package/dist/{index-ZD3hw2Zo.d.mts → index-DRrHHgE7.d.mts} +4 -4
- package/dist/{index-y-dyBzAF.d.mts → index-LMiCHwZl.d.mts} +5 -1
- package/dist/{index-BIyQ3OxC.d.mts → index-rJ_lhMYJ.d.mts} +5 -5
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +36 -30
- package/dist/json/attributes.json +6 -2
- package/dist/json/tags.json +2 -1
- package/dist/json/web-types.json +13 -3
- package/dist/{launchdarkly-C3Knz7-v.d.mts → launchdarkly-DvhloBts.d.mts} +1 -1
- package/dist/locale/adapters/index.d.mts +2 -2
- package/dist/locale/adapters/index.mjs +2 -3
- 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/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +3 -3
- package/dist/locale/index.mjs +3 -3
- 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 +1 -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 +6 -6
- package/dist/notifications/index.mjs +29 -29
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +3 -3
- 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 +1 -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-BaYY_KIN.d.mts → pino-B6BI1AOK.d.mts} +1 -1
- package/dist/{posthog-CR8R2ywM.d.mts → posthog-BOT5W7Ds.d.mts} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-CZ83nTn_.mjs → server-D5BJBjB0.mjs} +2 -1
- package/dist/{server-7vjHxjNc.d.mts → server-DbtTGb67.d.mts} +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 +3 -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 +5 -4
- package/dist/types/index.d.mts +1 -1
- package/dist/{unhead-l-ZLWtSR.mjs → unhead-t2_gsao2.mjs} +12 -8
- package/dist/useEventListener-BuETafFi.mjs +103 -0
- package/dist/{useFeatures-BWC23LA6.mjs → useFeatures-DyNG1_ge.mjs} +4 -8
- package/dist/{useLocale-yXLswxYa.mjs → useLocale-CYq4yT7b.mjs} +4 -5
- package/dist/{useLogger-JwRA-DZ7.mjs → useLogger-BEG9pAe8.mjs} +11 -9
- package/dist/{useNotifications-8qt26Ha9.mjs → useNotifications-BrZooK2S.mjs} +15 -8
- package/dist/{usePermissions-Bc1-N-lO.mjs → usePermissions-BvaZwUe8.mjs} +9 -8
- package/dist/{useClickOutside-BurEbsu3.mjs → useRovingFocus-4F5-mWO7.mjs} +4006 -8137
- package/dist/{useRules-Dg-pFO8r.mjs → useRules-B3vAa7tc.mjs} +2 -2
- package/dist/useStorage-lqTLed0e.mjs +162 -0
- package/dist/{useTheme-TpMOisy2.mjs → useTheme-BGmROwu-.mjs} +12 -9
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +5 -1
- package/dist/{v0-C7j3bzRU.mjs → v0-4a_MJXIm.mjs} +1 -1
- package/dist/{v0-COaQncfZ.mjs → v0-A4GLojAr.mjs} +2 -1
- package/dist/{v0-BfZc5TNn.mjs → v0-B08xQqj6.mjs} +3 -4
- package/dist/{v0-WzS4GAIp.d.mts → v0-D7NA38Vu.d.mts} +1 -1
- package/dist/{v0-QIjffi4E.d.mts → v0-DotXXGXU.d.mts} +1 -1
- package/dist/{v0-eRmUaRpH.mjs → v0-UJs1EiJ7.mjs} +21 -10
- package/dist/{v0-DWZ_N2GG.d.mts → v0-rSxMW8FJ.d.mts} +1 -1
- package/dist/{virtual-CrgGA-o6.d.mts → virtual-C-NsLue0.d.mts} +1 -1
- package/dist/{virtual-UumJ2BQ9.mjs → virtual-DFvOoeG6.mjs} +2 -1
- package/package.json +10 -7
- package/dist/adapters-B350nY4t.mjs +0 -4
- package/dist/adapters-BYLWDmYl.mjs +0 -5
- package/dist/adapters-D64TORDu.mjs +0 -2
- package/dist/adapters-DKWBbvCe.mjs +0 -4
- package/dist/adapters-Da2jxCo7.mjs +0 -2
- package/dist/flagsmith-Cu93hUIF.mjs +0 -48
- package/dist/launchdarkly-CLGtJCsI.mjs +0 -38
- package/dist/posthog-DPe6ewqN.mjs +0 -47
- /package/dist/{adapter-BEJXp-ie.d.mts → adapter-BYzU4Ey5.d.mts} +0 -0
- /package/dist/{adapter-B6IrPwib.d.mts → adapter-C5F2huij.d.mts} +0 -0
- /package/dist/{adapter-BSKx9WQ7.mjs → adapter-CTsckKAR.mjs} +0 -0
- /package/dist/{adapter-D8zizQVP.mjs → adapter-bwZo7b5p.mjs} +0 -0
- /package/dist/{index-DHmuwBdv.d.mts → index-B9YmdGZ3.d.mts} +0 -0
- /package/dist/{index-PvkxPev3.d.mts → index-BgCkepP_.d.mts} +0 -0
- /package/dist/{index-BOn0AAue.d.mts → index-CROz1VSV.d.mts} +0 -0
- /package/dist/{index-H_hl6-4b.d.mts → index-DXMlYoiQ.d.mts} +0 -0
- /package/dist/{index-C6NnIuDv.d.mts → index-DidZKN6S.d.mts} +0 -0
- /package/dist/{index-CKKoxA9V.d.mts → index-FtE8MXJ_.d.mts} +0 -0
- /package/dist/{memory-BMpJcQjQ.mjs → memory-BJjkQzxs.mjs} +0 -0
- /package/dist/{memory-D-JbdKXg.d.mts → memory-DbyZeNjg.d.mts} +0 -0
- /package/dist/{toArray-CD2-OxAz.mjs → toArray-C89ZaEuF.mjs} +0 -0
- /package/dist/{v0-Dvu8fMl3.mjs → v0-UNyykD27.mjs} +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { n as isSelfClosingTag } from "./htmlElements-CHXZfsZu.mjs";
|
|
2
|
-
import { t as IN_BROWSER } from "./globals-
|
|
2
|
+
import { t as IN_BROWSER } from "./globals-D78-6Zqq.mjs";
|
|
3
3
|
import { clamp, isArray, isElement, isNull, isNullOrUndefined, isNumber, isObject, isString, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
4
4
|
import { n as createContext, r as provideContext } from "./createTrinity-z-3q9QWR.mjs";
|
|
5
|
-
import { i as useLogger } from "./useLogger-
|
|
6
|
-
import { t as createRegistry } from "./createRegistry-
|
|
7
|
-
import { t as createSelection } from "./createSelection-
|
|
8
|
-
import { t as createSingle } from "./createSingle-
|
|
9
|
-
import { a as useLocale } from "./useLocale-
|
|
10
|
-
import {
|
|
11
|
-
import { c as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
5
|
+
import { i as useLogger } from "./useLogger-BEG9pAe8.mjs";
|
|
6
|
+
import { t as createRegistry } from "./createRegistry-Ve2QNpZv.mjs";
|
|
7
|
+
import { t as createSelection } from "./createSelection-CT2UG109.mjs";
|
|
8
|
+
import { t as createSingle } from "./createSingle-DTI4qvUd.mjs";
|
|
9
|
+
import { a as useLocale } from "./useLocale-CYq4yT7b.mjs";
|
|
10
|
+
import { n as useEventListener, t as useDocumentEventListener } from "./useEventListener-BuETafFi.mjs";
|
|
11
|
+
import { B as createBreadcrumbs, C as useIntersectionObserver, D as useLazy, F as useDelay, I as createStep, J as useResizeObserver, N as useVirtualFocus, O as createCombobox, P as usePopover, U as useImage, W as createOverflow, X as toElement, _ as useRaf, b as createInput, c as useTooltip, g as usePresence, l as createSlider, n as createNested, nt as useToggleScope, ot as useStack, p as createProgress, q as useElementSize, st as useClickOutside, t as useRovingFocus, u as createRating, v as createNumberField, w as createForm, z as useProxyModel } from "./useRovingFocus-4F5-mWO7.mjs";
|
|
12
|
+
import { t as createGroup } from "./createGroup-vfCXVfYV.mjs";
|
|
13
|
+
import { c as useTimer, i as useNotifications } from "./useNotifications-BrZooK2S.mjs";
|
|
14
|
+
import { t as createPagination } from "./createPagination-B5dfqY-a.mjs";
|
|
15
|
+
import { i as useTheme } from "./useTheme-BGmROwu-.mjs";
|
|
15
16
|
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";
|
|
16
17
|
//#region src/components/Atom/Atom.vue
|
|
17
18
|
/**
|
|
@@ -166,14 +167,18 @@ const _sfc_main$168 = /* @__PURE__ */ defineComponent({
|
|
|
166
167
|
"type": __props.as === "button" ? "button" : void 0,
|
|
167
168
|
"disabled": __props.disabled || void 0,
|
|
168
169
|
"data-disabled": __props.disabled ? "" : void 0,
|
|
169
|
-
"data-pending": context.isPending.value ? "" : void 0
|
|
170
|
+
"data-pending": context.isPending.value ? "" : void 0,
|
|
171
|
+
"onClick": onClick
|
|
170
172
|
}
|
|
171
173
|
}));
|
|
172
174
|
return (_ctx, _cache) => {
|
|
173
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
175
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
176
|
+
as: __props.as,
|
|
177
|
+
renderless: __props.renderless
|
|
178
|
+
}, slotProps.value.attrs), {
|
|
174
179
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
175
180
|
_: 3
|
|
176
|
-
}, 16, ["as"]);
|
|
181
|
+
}, 16, ["as", "renderless"]);
|
|
177
182
|
};
|
|
178
183
|
}
|
|
179
184
|
});
|
|
@@ -198,14 +203,18 @@ const _sfc_main$167 = /* @__PURE__ */ defineComponent({
|
|
|
198
203
|
"type": __props.as === "button" ? "button" : void 0,
|
|
199
204
|
"aria-haspopup": "dialog",
|
|
200
205
|
"aria-expanded": context.isOpen.value,
|
|
201
|
-
"data-open": context.isOpen.value || void 0
|
|
206
|
+
"data-open": context.isOpen.value || void 0,
|
|
207
|
+
"onClick": onClick
|
|
202
208
|
}
|
|
203
209
|
}));
|
|
204
210
|
return (_ctx, _cache) => {
|
|
205
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
211
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
212
|
+
as: __props.as,
|
|
213
|
+
renderless: __props.renderless
|
|
214
|
+
}, slotProps.value.attrs), {
|
|
206
215
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
207
216
|
_: 3
|
|
208
|
-
}, 16, ["as"]);
|
|
217
|
+
}, 16, ["as", "renderless"]);
|
|
209
218
|
};
|
|
210
219
|
}
|
|
211
220
|
});
|
|
@@ -234,14 +243,18 @@ const _sfc_main$166 = /* @__PURE__ */ defineComponent({
|
|
|
234
243
|
attrs: {
|
|
235
244
|
"type": __props.as === "button" ? "button" : void 0,
|
|
236
245
|
"disabled": __props.disabled || void 0,
|
|
237
|
-
"data-disabled": __props.disabled ? "" : void 0
|
|
246
|
+
"data-disabled": __props.disabled ? "" : void 0,
|
|
247
|
+
"onClick": onClick
|
|
238
248
|
}
|
|
239
249
|
}));
|
|
240
250
|
return (_ctx, _cache) => {
|
|
241
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
251
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
252
|
+
as: __props.as,
|
|
253
|
+
renderless: __props.renderless
|
|
254
|
+
}, slotProps.value.attrs), {
|
|
242
255
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
243
256
|
_: 3
|
|
244
|
-
}, 16, ["as"]);
|
|
257
|
+
}, 16, ["as", "renderless"]);
|
|
245
258
|
};
|
|
246
259
|
}
|
|
247
260
|
});
|
|
@@ -265,14 +278,18 @@ const _sfc_main$165 = /* @__PURE__ */ defineComponent({
|
|
|
265
278
|
isOpen: context.isOpen.value,
|
|
266
279
|
attrs: {
|
|
267
280
|
"type": __props.as === "button" ? "button" : void 0,
|
|
268
|
-
"aria-label": locale.t("AlertDialog.close")
|
|
281
|
+
"aria-label": locale.t("AlertDialog.close"),
|
|
282
|
+
"onClick": onClick
|
|
269
283
|
}
|
|
270
284
|
}));
|
|
271
285
|
return (_ctx, _cache) => {
|
|
272
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
286
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
287
|
+
as: __props.as,
|
|
288
|
+
renderless: __props.renderless
|
|
289
|
+
}, slotProps.value.attrs), {
|
|
273
290
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
274
291
|
_: 3
|
|
275
|
-
}, 16, ["as"]);
|
|
292
|
+
}, 16, ["as", "renderless"]);
|
|
276
293
|
};
|
|
277
294
|
}
|
|
278
295
|
});
|
|
@@ -341,7 +358,6 @@ const _sfc_main$164 = /* @__PURE__ */ defineComponent({
|
|
|
341
358
|
context.close();
|
|
342
359
|
emit("close", e);
|
|
343
360
|
}
|
|
344
|
-
const styles = toRef(() => ({ zIndex: ticket.zIndex.value }));
|
|
345
361
|
const slotProps = toRef(() => ({
|
|
346
362
|
isOpen: context.isOpen.value,
|
|
347
363
|
globalTop: ticket.globalTop.value,
|
|
@@ -351,21 +367,21 @@ const _sfc_main$164 = /* @__PURE__ */ defineComponent({
|
|
|
351
367
|
"role": "alertdialog",
|
|
352
368
|
"aria-modal": "true",
|
|
353
369
|
"aria-labelledby": context.titleId,
|
|
354
|
-
"aria-describedby": context.descriptionId
|
|
370
|
+
"aria-describedby": context.descriptionId,
|
|
371
|
+
"style": { zIndex: ticket.zIndex.value },
|
|
372
|
+
"onCancel": onCancel,
|
|
373
|
+
"onClose": onClose
|
|
355
374
|
}
|
|
356
375
|
}));
|
|
357
376
|
return (_ctx, _cache) => {
|
|
358
377
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
359
378
|
ref: "content",
|
|
360
379
|
as: __props.as,
|
|
361
|
-
|
|
362
|
-
}, slotProps.value.attrs, {
|
|
363
|
-
onCancel,
|
|
364
|
-
onClose
|
|
365
|
-
}), {
|
|
380
|
+
renderless: __props.renderless
|
|
381
|
+
}, slotProps.value.attrs), {
|
|
366
382
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
367
383
|
_: 3
|
|
368
|
-
}, 16, ["as", "
|
|
384
|
+
}, 16, ["as", "renderless"]);
|
|
369
385
|
};
|
|
370
386
|
}
|
|
371
387
|
});
|
|
@@ -383,10 +399,13 @@ const _sfc_main$163 = /* @__PURE__ */ defineComponent({
|
|
|
383
399
|
const context = useAlertDialogContext(__props.namespace);
|
|
384
400
|
const slotProps = toRef(() => ({ attrs: { id: context.descriptionId } }));
|
|
385
401
|
return (_ctx, _cache) => {
|
|
386
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
402
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
403
|
+
as: __props.as,
|
|
404
|
+
renderless: __props.renderless
|
|
405
|
+
}, slotProps.value.attrs), {
|
|
387
406
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
388
407
|
_: 3
|
|
389
|
-
}, 16, ["as"]);
|
|
408
|
+
}, 16, ["as", "renderless"]);
|
|
390
409
|
};
|
|
391
410
|
}
|
|
392
411
|
});
|
|
@@ -404,10 +423,13 @@ const _sfc_main$162 = /* @__PURE__ */ defineComponent({
|
|
|
404
423
|
const context = useAlertDialogContext(__props.namespace);
|
|
405
424
|
const slotProps = toRef(() => ({ attrs: { id: context.titleId } }));
|
|
406
425
|
return (_ctx, _cache) => {
|
|
407
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
426
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
427
|
+
as: __props.as,
|
|
428
|
+
renderless: __props.renderless
|
|
429
|
+
}, slotProps.value.attrs), {
|
|
408
430
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
409
431
|
_: 3
|
|
410
|
-
}, 16, ["as"]);
|
|
432
|
+
}, 16, ["as", "renderless"]);
|
|
411
433
|
};
|
|
412
434
|
}
|
|
413
435
|
});
|
|
@@ -872,17 +894,25 @@ const _sfc_main$157 = /* @__PURE__ */ defineComponent({
|
|
|
872
894
|
image.onError(e);
|
|
873
895
|
emit("error", e);
|
|
874
896
|
}
|
|
897
|
+
function selectBest() {
|
|
898
|
+
let best;
|
|
899
|
+
for (const candidate of context.values()) {
|
|
900
|
+
if (candidate.type !== "image" || toValue(candidate.disabled)) continue;
|
|
901
|
+
if (!best || (candidate.priority ?? 0) > (best.priority ?? 0)) best = candidate;
|
|
902
|
+
}
|
|
903
|
+
const target = best ?? context.seek("first");
|
|
904
|
+
if (target) context.select(target.id);
|
|
905
|
+
}
|
|
875
906
|
watch(image.isLoaded, (isLoaded) => {
|
|
876
907
|
if (isLoaded) {
|
|
877
908
|
ticket.disabled = false;
|
|
878
|
-
|
|
909
|
+
selectBest();
|
|
879
910
|
}
|
|
880
911
|
});
|
|
881
912
|
watch(image.isError, (isError) => {
|
|
882
913
|
if (isError) {
|
|
883
914
|
ticket.disabled = true;
|
|
884
|
-
|
|
885
|
-
if (first) context.select(first.id);
|
|
915
|
+
selectBest();
|
|
886
916
|
}
|
|
887
917
|
});
|
|
888
918
|
onBeforeUnmount(() => {
|
|
@@ -2124,10 +2154,10 @@ const _sfc_main$142 = /* @__PURE__ */ defineComponent({
|
|
|
2124
2154
|
});
|
|
2125
2155
|
useProxyModel(step, model, { multiple: false });
|
|
2126
2156
|
function next() {
|
|
2127
|
-
if (__props.
|
|
2157
|
+
if (__props.perView > 1) {
|
|
2128
2158
|
const maxStart = Math.max(0, step.size - __props.perView);
|
|
2129
2159
|
if (step.selectedIndex.value >= maxStart) {
|
|
2130
|
-
step.first();
|
|
2160
|
+
if (__props.circular) step.first();
|
|
2131
2161
|
return;
|
|
2132
2162
|
}
|
|
2133
2163
|
}
|
|
@@ -2265,12 +2295,14 @@ const _sfc_main$141 = /* @__PURE__ */ defineComponent({
|
|
|
2265
2295
|
/* v8 ignore next -- defensive: getter only invoked after viewport mounts */
|
|
2266
2296
|
if (!el.value) return 0;
|
|
2267
2297
|
if ((isVertical.value ? height.value : width.value) === 0) return 0;
|
|
2268
|
-
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
|
|
2298
|
+
/* v8 ignore start -- happy-dom has no layout engine: width/height and offset* read 0, so this measurement block is unreachable in tests */
|
|
2299
|
+
const ticket = carousel.seek("first");
|
|
2300
|
+
const first = toValue(ticket?.el);
|
|
2301
|
+
if (!ticket || !first) return 0;
|
|
2302
|
+
const second = toValue(carousel.seek("first", ticket.index + 1)?.el);
|
|
2272
2303
|
if (!second) return isVertical.value ? first.offsetHeight : first.offsetWidth;
|
|
2273
2304
|
return isVertical.value ? second.offsetTop - first.offsetTop : second.offsetLeft - first.offsetLeft;
|
|
2305
|
+
/* v8 ignore stop */
|
|
2274
2306
|
});
|
|
2275
2307
|
if (IN_BROWSER) {
|
|
2276
2308
|
useEventListener(el, "scrollend", () => {
|
|
@@ -3409,15 +3441,15 @@ const _sfc_main$130 = /* @__PURE__ */ defineComponent({
|
|
|
3409
3441
|
"aria-describedby": __props.ariaDescribedby || void 0,
|
|
3410
3442
|
"tabindex": isDisabled.value ? void 0 : 0,
|
|
3411
3443
|
"data-state": dataState.value,
|
|
3412
|
-
"data-disabled": isDisabled.value ? true : void 0
|
|
3444
|
+
"data-disabled": isDisabled.value ? true : void 0,
|
|
3445
|
+
onClick,
|
|
3446
|
+
onKeydown
|
|
3413
3447
|
}
|
|
3414
3448
|
}));
|
|
3415
3449
|
return (_ctx, _cache) => {
|
|
3416
3450
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
3417
3451
|
as: __props.as,
|
|
3418
|
-
renderless: __props.renderless
|
|
3419
|
-
onClick,
|
|
3420
|
-
onKeydown
|
|
3452
|
+
renderless: __props.renderless
|
|
3421
3453
|
}), {
|
|
3422
3454
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3423
3455
|
_: 3
|
|
@@ -3776,10 +3808,13 @@ const _sfc_main$126 = /* @__PURE__ */ defineComponent({
|
|
|
3776
3808
|
}
|
|
3777
3809
|
}));
|
|
3778
3810
|
return (_ctx, _cache) => {
|
|
3779
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
3811
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
3812
|
+
as: __props.as,
|
|
3813
|
+
renderless: __props.renderless
|
|
3814
|
+
}, slotProps.value.attrs), {
|
|
3780
3815
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3781
3816
|
_: 3
|
|
3782
|
-
}, 16, ["as"]);
|
|
3817
|
+
}, 16, ["as", "renderless"]);
|
|
3783
3818
|
};
|
|
3784
3819
|
}
|
|
3785
3820
|
});
|
|
@@ -3961,19 +3996,21 @@ const _sfc_main$123 = /* @__PURE__ */ defineComponent({
|
|
|
3961
3996
|
},
|
|
3962
3997
|
setup(__props) {
|
|
3963
3998
|
const context = useComboboxContext(__props.namespace);
|
|
3964
|
-
const style = toRef(() => context.popover.anchorStyles.value);
|
|
3965
3999
|
const slotProps = toRef(() => ({
|
|
3966
4000
|
isOpen: context.isOpen.value,
|
|
3967
|
-
attrs: {
|
|
4001
|
+
attrs: {
|
|
4002
|
+
"data-state": context.isOpen.value ? "open" : "closed",
|
|
4003
|
+
"style": context.popover.anchorStyles.value
|
|
4004
|
+
}
|
|
3968
4005
|
}));
|
|
3969
4006
|
return (_ctx, _cache) => {
|
|
3970
4007
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, {
|
|
3971
4008
|
as: __props.as,
|
|
3972
|
-
|
|
4009
|
+
renderless: __props.renderless
|
|
3973
4010
|
}), {
|
|
3974
4011
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
3975
4012
|
_: 3
|
|
3976
|
-
}, 16, ["as", "
|
|
4013
|
+
}, 16, ["as", "renderless"]);
|
|
3977
4014
|
};
|
|
3978
4015
|
}
|
|
3979
4016
|
});
|
|
@@ -4008,21 +4045,21 @@ const _sfc_main$122 = /* @__PURE__ */ defineComponent({
|
|
|
4008
4045
|
"aria-labelledby": context.inputId,
|
|
4009
4046
|
"aria-multiselectable": context.multiple || void 0,
|
|
4010
4047
|
"popover": "manual",
|
|
4011
|
-
"tabindex": -1
|
|
4048
|
+
"tabindex": -1,
|
|
4049
|
+
"style": context.popover.contentStyles.value
|
|
4012
4050
|
}
|
|
4013
4051
|
}));
|
|
4014
|
-
const style = toRef(() => context.popover.contentStyles.value);
|
|
4015
4052
|
return (_ctx, _cache) => {
|
|
4016
4053
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4017
4054
|
ref_key: "content",
|
|
4018
4055
|
ref: content
|
|
4019
4056
|
}, slotProps.value.attrs, {
|
|
4020
4057
|
as: __props.as,
|
|
4021
|
-
|
|
4058
|
+
renderless: __props.renderless
|
|
4022
4059
|
}), {
|
|
4023
4060
|
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 0 }, slotProps.value))) : createCommentVNode("v-if", true)]),
|
|
4024
4061
|
_: 3
|
|
4025
|
-
}, 16, ["as", "
|
|
4062
|
+
}, 16, ["as", "renderless"]);
|
|
4026
4063
|
};
|
|
4027
4064
|
}
|
|
4028
4065
|
});
|
|
@@ -4107,6 +4144,8 @@ const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
|
4107
4144
|
"aria-invalid": invalid.value || void 0,
|
|
4108
4145
|
"aria-disabled": toValue(context.disabled),
|
|
4109
4146
|
"disabled": toValue(context.disabled) || void 0,
|
|
4147
|
+
"placeholder": __props.placeholder,
|
|
4148
|
+
"value": context.display.value,
|
|
4110
4149
|
"onInput": onInput,
|
|
4111
4150
|
"onFocus": onFocus,
|
|
4112
4151
|
"onKeydown": onKeydown
|
|
@@ -4118,16 +4157,11 @@ const _sfc_main$121 = /* @__PURE__ */ defineComponent({
|
|
|
4118
4157
|
ref: input
|
|
4119
4158
|
}, slotProps.value.attrs, {
|
|
4120
4159
|
as: __props.as,
|
|
4121
|
-
|
|
4122
|
-
value: unref(context).display.value
|
|
4160
|
+
renderless: __props.renderless
|
|
4123
4161
|
}), {
|
|
4124
4162
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4125
4163
|
_: 3
|
|
4126
|
-
}, 16, [
|
|
4127
|
-
"as",
|
|
4128
|
-
"placeholder",
|
|
4129
|
-
"value"
|
|
4130
|
-
]);
|
|
4164
|
+
}, 16, ["as", "renderless"]);
|
|
4131
4165
|
};
|
|
4132
4166
|
}
|
|
4133
4167
|
});
|
|
@@ -4155,10 +4189,13 @@ const _sfc_main$120 = /* @__PURE__ */ defineComponent({
|
|
|
4155
4189
|
}
|
|
4156
4190
|
}));
|
|
4157
4191
|
return (_ctx, _cache) => {
|
|
4158
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, {
|
|
4192
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, {
|
|
4193
|
+
as: __props.as,
|
|
4194
|
+
renderless: __props.renderless
|
|
4195
|
+
}), {
|
|
4159
4196
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4160
4197
|
_: 3
|
|
4161
|
-
}, 16, ["as"]);
|
|
4198
|
+
}, 16, ["as", "renderless"]);
|
|
4162
4199
|
};
|
|
4163
4200
|
}
|
|
4164
4201
|
});
|
|
@@ -4214,11 +4251,12 @@ const _sfc_main$118 = /* @__PURE__ */ defineComponent({
|
|
|
4214
4251
|
return (_ctx, _cache) => {
|
|
4215
4252
|
return unref(context).isEmpty.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
|
|
4216
4253
|
key: 0,
|
|
4217
|
-
as: __props.as
|
|
4254
|
+
as: __props.as,
|
|
4255
|
+
renderless: __props.renderless
|
|
4218
4256
|
}, {
|
|
4219
4257
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), () => [_cache[0] || (_cache[0] = createTextVNode("No results", -1))])]),
|
|
4220
4258
|
_: 3
|
|
4221
|
-
}, 8, ["as"])) : createCommentVNode("v-if", true);
|
|
4259
|
+
}, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
4222
4260
|
};
|
|
4223
4261
|
}
|
|
4224
4262
|
});
|
|
@@ -4314,10 +4352,13 @@ const _sfc_main$116 = /* @__PURE__ */ defineComponent({
|
|
|
4314
4352
|
}
|
|
4315
4353
|
}));
|
|
4316
4354
|
return (_ctx, _cache) => {
|
|
4317
|
-
return withDirectives((openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, {
|
|
4355
|
+
return withDirectives((openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, {
|
|
4356
|
+
as: __props.as,
|
|
4357
|
+
renderless: __props.renderless
|
|
4358
|
+
}), {
|
|
4318
4359
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4319
4360
|
_: 3
|
|
4320
|
-
}, 16, ["as"])), [[vShow, isFiltered.value]]);
|
|
4361
|
+
}, 16, ["as", "renderless"])), [[vShow, isFiltered.value]]);
|
|
4321
4362
|
};
|
|
4322
4363
|
}
|
|
4323
4364
|
});
|
|
@@ -4602,14 +4643,18 @@ const _sfc_main$114 = /* @__PURE__ */ defineComponent({
|
|
|
4602
4643
|
isOpen: context.isOpen.value,
|
|
4603
4644
|
attrs: {
|
|
4604
4645
|
"type": __props.as === "button" ? "button" : void 0,
|
|
4605
|
-
"aria-label": locale.t("Dialog.close")
|
|
4646
|
+
"aria-label": locale.t("Dialog.close"),
|
|
4647
|
+
"onClick": onClick
|
|
4606
4648
|
}
|
|
4607
4649
|
}));
|
|
4608
4650
|
return (_ctx, _cache) => {
|
|
4609
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4651
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4652
|
+
as: __props.as,
|
|
4653
|
+
renderless: __props.renderless
|
|
4654
|
+
}, slotProps.value.attrs), {
|
|
4610
4655
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4611
4656
|
_: 3
|
|
4612
|
-
}, 16, ["as"]);
|
|
4657
|
+
}, 16, ["as", "renderless"]);
|
|
4613
4658
|
};
|
|
4614
4659
|
}
|
|
4615
4660
|
});
|
|
@@ -4670,7 +4715,6 @@ const _sfc_main$113 = /* @__PURE__ */ defineComponent({
|
|
|
4670
4715
|
context.isOpen.value = false;
|
|
4671
4716
|
emit("close", e);
|
|
4672
4717
|
}
|
|
4673
|
-
const styles = toRef(() => ({ zIndex: ticket.zIndex.value }));
|
|
4674
4718
|
const slotProps = toRef(() => ({
|
|
4675
4719
|
isOpen: context.isOpen.value,
|
|
4676
4720
|
globalTop: ticket.globalTop.value,
|
|
@@ -4680,21 +4724,21 @@ const _sfc_main$113 = /* @__PURE__ */ defineComponent({
|
|
|
4680
4724
|
"role": "dialog",
|
|
4681
4725
|
"aria-modal": "true",
|
|
4682
4726
|
"aria-labelledby": context.titleId,
|
|
4683
|
-
"aria-describedby": context.descriptionId
|
|
4727
|
+
"aria-describedby": context.descriptionId,
|
|
4728
|
+
"style": { zIndex: ticket.zIndex.value },
|
|
4729
|
+
"onCancel": onCancel,
|
|
4730
|
+
"onClose": onClose
|
|
4684
4731
|
}
|
|
4685
4732
|
}));
|
|
4686
4733
|
return (_ctx, _cache) => {
|
|
4687
4734
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4688
4735
|
ref: "content",
|
|
4689
4736
|
as: __props.as,
|
|
4690
|
-
|
|
4691
|
-
}, slotProps.value.attrs, {
|
|
4692
|
-
onCancel,
|
|
4693
|
-
onClose
|
|
4694
|
-
}), {
|
|
4737
|
+
renderless: __props.renderless
|
|
4738
|
+
}, slotProps.value.attrs), {
|
|
4695
4739
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4696
4740
|
_: 3
|
|
4697
|
-
}, 16, ["as", "
|
|
4741
|
+
}, 16, ["as", "renderless"]);
|
|
4698
4742
|
};
|
|
4699
4743
|
}
|
|
4700
4744
|
});
|
|
@@ -4712,10 +4756,13 @@ const _sfc_main$112 = /* @__PURE__ */ defineComponent({
|
|
|
4712
4756
|
const context = useDialogContext(__props.namespace);
|
|
4713
4757
|
const slotProps = toRef(() => ({ attrs: { id: context.descriptionId } }));
|
|
4714
4758
|
return (_ctx, _cache) => {
|
|
4715
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4759
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4760
|
+
as: __props.as,
|
|
4761
|
+
renderless: __props.renderless
|
|
4762
|
+
}, slotProps.value.attrs), {
|
|
4716
4763
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4717
4764
|
_: 3
|
|
4718
|
-
}, 16, ["as"]);
|
|
4765
|
+
}, 16, ["as", "renderless"]);
|
|
4719
4766
|
};
|
|
4720
4767
|
}
|
|
4721
4768
|
});
|
|
@@ -4733,10 +4780,13 @@ const _sfc_main$111 = /* @__PURE__ */ defineComponent({
|
|
|
4733
4780
|
const context = useDialogContext(__props.namespace);
|
|
4734
4781
|
const slotProps = toRef(() => ({ attrs: { id: context.titleId } }));
|
|
4735
4782
|
return (_ctx, _cache) => {
|
|
4736
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4783
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4784
|
+
as: __props.as,
|
|
4785
|
+
renderless: __props.renderless
|
|
4786
|
+
}, slotProps.value.attrs), {
|
|
4737
4787
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4738
4788
|
_: 3
|
|
4739
|
-
}, 16, ["as"]);
|
|
4789
|
+
}, 16, ["as", "renderless"]);
|
|
4740
4790
|
};
|
|
4741
4791
|
}
|
|
4742
4792
|
});
|
|
@@ -4761,14 +4811,18 @@ const _sfc_main$110 = /* @__PURE__ */ defineComponent({
|
|
|
4761
4811
|
"type": __props.as === "button" ? "button" : void 0,
|
|
4762
4812
|
"aria-haspopup": "dialog",
|
|
4763
4813
|
"aria-expanded": context.isOpen.value,
|
|
4764
|
-
"data-open": context.isOpen.value || void 0
|
|
4814
|
+
"data-open": context.isOpen.value || void 0,
|
|
4815
|
+
"onClick": onClick
|
|
4765
4816
|
}
|
|
4766
4817
|
}));
|
|
4767
4818
|
return (_ctx, _cache) => {
|
|
4768
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4819
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
4820
|
+
as: __props.as,
|
|
4821
|
+
renderless: __props.renderless
|
|
4822
|
+
}, slotProps.value.attrs), {
|
|
4769
4823
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
4770
4824
|
_: 3
|
|
4771
|
-
}, 16, ["as"]);
|
|
4825
|
+
}, 16, ["as", "renderless"]);
|
|
4772
4826
|
};
|
|
4773
4827
|
}
|
|
4774
4828
|
});
|
|
@@ -5040,7 +5094,12 @@ const _sfc_main$107 = /* @__PURE__ */ defineComponent({
|
|
|
5040
5094
|
},
|
|
5041
5095
|
setup(__props) {
|
|
5042
5096
|
const item = useExpansionPanelRoot(__props.namespace);
|
|
5097
|
+
function onClick() {
|
|
5098
|
+
if (item.isDisabled.value) return;
|
|
5099
|
+
item.ticket.toggle();
|
|
5100
|
+
}
|
|
5043
5101
|
function onKeydown(e) {
|
|
5102
|
+
if (item.isDisabled.value) return;
|
|
5044
5103
|
if (e.key === "Enter" || e.key === " ") {
|
|
5045
5104
|
e.preventDefault();
|
|
5046
5105
|
item.ticket.toggle();
|
|
@@ -5061,7 +5120,7 @@ const _sfc_main$107 = /* @__PURE__ */ defineComponent({
|
|
|
5061
5120
|
"data-selected": item.ticket.isSelected.value || void 0,
|
|
5062
5121
|
"disabled": __props.as === "button" ? item.isDisabled.value : void 0,
|
|
5063
5122
|
"type": __props.as === "button" ? "button" : void 0,
|
|
5064
|
-
"onClick":
|
|
5123
|
+
"onClick": onClick,
|
|
5065
5124
|
onKeydown
|
|
5066
5125
|
}
|
|
5067
5126
|
}));
|
|
@@ -5129,10 +5188,13 @@ const _sfc_main$105 = /* @__PURE__ */ defineComponent({
|
|
|
5129
5188
|
}
|
|
5130
5189
|
}));
|
|
5131
5190
|
return (_ctx, _cache) => {
|
|
5132
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
5191
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
5192
|
+
as: __props.as,
|
|
5193
|
+
renderless: __props.renderless
|
|
5194
|
+
}, slotProps.value.attrs), {
|
|
5133
5195
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
5134
5196
|
_: 3
|
|
5135
|
-
}, 16, ["as"]);
|
|
5197
|
+
}, 16, ["as", "renderless"]);
|
|
5136
5198
|
};
|
|
5137
5199
|
}
|
|
5138
5200
|
});
|
|
@@ -5364,16 +5426,20 @@ const _sfc_main$103 = /* @__PURE__ */ defineComponent({
|
|
|
5364
5426
|
isDisabled: toValue(form.disabled),
|
|
5365
5427
|
isReadonly: toValue(form.readonly),
|
|
5366
5428
|
submit: form.submit,
|
|
5367
|
-
reset: form.reset
|
|
5429
|
+
reset: form.reset,
|
|
5430
|
+
attrs: {
|
|
5431
|
+
onSubmit,
|
|
5432
|
+
onReset
|
|
5433
|
+
}
|
|
5368
5434
|
}));
|
|
5369
5435
|
return (_ctx, _cache) => {
|
|
5370
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(
|
|
5371
|
-
|
|
5372
|
-
|
|
5436
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
5437
|
+
as: __props.as,
|
|
5438
|
+
renderless: __props.renderless
|
|
5373
5439
|
}), {
|
|
5374
5440
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
5375
5441
|
_: 3
|
|
5376
|
-
}, 16, ["as"]);
|
|
5442
|
+
}, 16, ["as", "renderless"]);
|
|
5377
5443
|
};
|
|
5378
5444
|
}
|
|
5379
5445
|
});
|
|
@@ -5452,6 +5518,10 @@ const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
|
5452
5518
|
indeterminate: () => toValue(__props.indeterminate) ?? false
|
|
5453
5519
|
});
|
|
5454
5520
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(group.disabled));
|
|
5521
|
+
function onClick() {
|
|
5522
|
+
if (toValue(isDisabled)) return;
|
|
5523
|
+
ticket.toggle();
|
|
5524
|
+
}
|
|
5455
5525
|
onBeforeUnmount(() => {
|
|
5456
5526
|
group.unregister(ticket.id);
|
|
5457
5527
|
});
|
|
@@ -5474,7 +5544,7 @@ const _sfc_main$101 = /* @__PURE__ */ defineComponent({
|
|
|
5474
5544
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
5475
5545
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
5476
5546
|
"data-mixed": toValue(ticket.isMixed) || void 0,
|
|
5477
|
-
"onClick":
|
|
5547
|
+
"onClick": onClick
|
|
5478
5548
|
}
|
|
5479
5549
|
}));
|
|
5480
5550
|
return (_ctx, _cache) => {
|
|
@@ -6829,21 +6899,16 @@ const _sfc_main$85 = /* @__PURE__ */ defineComponent({
|
|
|
6829
6899
|
raf.cancel();
|
|
6830
6900
|
document.exitPointerLock();
|
|
6831
6901
|
}
|
|
6832
|
-
const
|
|
6902
|
+
const slotProps = toRef(() => ({ attrs: {
|
|
6833
6903
|
"style": { cursor: "ew-resize" },
|
|
6834
6904
|
"data-disabled": root.isDisabled.value ? true : void 0,
|
|
6835
6905
|
"data-readonly": root.isReadonly.value ? true : void 0,
|
|
6836
6906
|
onPointerdown,
|
|
6837
6907
|
onPointermove,
|
|
6838
6908
|
onPointerup
|
|
6839
|
-
}));
|
|
6840
|
-
const slotProps = toRef(() => ({ attrs: {
|
|
6841
|
-
"style": { cursor: "ew-resize" },
|
|
6842
|
-
"data-disabled": root.isDisabled.value ? true : void 0,
|
|
6843
|
-
"data-readonly": root.isReadonly.value ? true : void 0
|
|
6844
6909
|
} }));
|
|
6845
6910
|
return (_ctx, _cache) => {
|
|
6846
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs),
|
|
6911
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
6847
6912
|
as: __props.as,
|
|
6848
6913
|
renderless: __props.renderless
|
|
6849
6914
|
}), {
|
|
@@ -8080,17 +8145,18 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
8080
8145
|
attrs: {
|
|
8081
8146
|
"popovertarget": toValue(popovertarget),
|
|
8082
8147
|
"type": __props.as === "button" ? "button" : void 0,
|
|
8083
|
-
"data-open": context.isOpen.value || void 0
|
|
8148
|
+
"data-open": context.isOpen.value || void 0,
|
|
8149
|
+
"style": style.value
|
|
8084
8150
|
}
|
|
8085
8151
|
}));
|
|
8086
8152
|
return (_ctx, _cache) => {
|
|
8087
8153
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
8088
8154
|
as: __props.as,
|
|
8089
|
-
|
|
8155
|
+
renderless: __props.renderless
|
|
8090
8156
|
}, slotProps.value.attrs), {
|
|
8091
8157
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
8092
8158
|
_: 3
|
|
8093
|
-
}, 16, ["as", "
|
|
8159
|
+
}, 16, ["as", "renderless"]);
|
|
8094
8160
|
};
|
|
8095
8161
|
}
|
|
8096
8162
|
});
|
|
@@ -8131,7 +8197,9 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
8131
8197
|
isOpen: context.isOpen.value,
|
|
8132
8198
|
attrs: {
|
|
8133
8199
|
id: id.value,
|
|
8134
|
-
popover: ""
|
|
8200
|
+
popover: "",
|
|
8201
|
+
style: style.value,
|
|
8202
|
+
onBeforetoggle: onBeforeToggle
|
|
8135
8203
|
}
|
|
8136
8204
|
}));
|
|
8137
8205
|
return (_ctx, _cache) => {
|
|
@@ -8139,11 +8207,11 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
|
|
|
8139
8207
|
ref_key: "ref",
|
|
8140
8208
|
ref,
|
|
8141
8209
|
as: __props.as,
|
|
8142
|
-
|
|
8143
|
-
}, slotProps.value.attrs
|
|
8210
|
+
renderless: __props.renderless
|
|
8211
|
+
}, slotProps.value.attrs), {
|
|
8144
8212
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
8145
8213
|
_: 3
|
|
8146
|
-
}, 16, ["as", "
|
|
8214
|
+
}, 16, ["as", "renderless"]);
|
|
8147
8215
|
};
|
|
8148
8216
|
}
|
|
8149
8217
|
});
|
|
@@ -8245,14 +8313,18 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
|
8245
8313
|
blocking: {
|
|
8246
8314
|
type: Boolean,
|
|
8247
8315
|
default: false
|
|
8316
|
+
},
|
|
8317
|
+
scrim: {
|
|
8318
|
+
type: Boolean,
|
|
8319
|
+
default: true
|
|
8248
8320
|
}
|
|
8249
8321
|
},
|
|
8250
8322
|
emits: ["close"],
|
|
8251
8323
|
setup(__props, { emit: __emit }) {
|
|
8252
8324
|
const emit = __emit;
|
|
8253
8325
|
const ticket = useStack().register({
|
|
8254
|
-
disabled: __props.disabled,
|
|
8255
8326
|
blocking: __props.blocking,
|
|
8327
|
+
scrim: __props.scrim,
|
|
8256
8328
|
onDismiss: () => emit("close")
|
|
8257
8329
|
});
|
|
8258
8330
|
ticket.select();
|
|
@@ -9291,8 +9363,8 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
9291
9363
|
const attrs = useAttrs();
|
|
9292
9364
|
const rating = createRating({
|
|
9293
9365
|
value: useModel(__props, "modelValue"),
|
|
9294
|
-
size: __props.size,
|
|
9295
|
-
half: __props.half
|
|
9366
|
+
size: toRef(() => __props.size),
|
|
9367
|
+
half: toRef(() => __props.half)
|
|
9296
9368
|
});
|
|
9297
9369
|
const hoveredValue = shallowRef(null);
|
|
9298
9370
|
const isHovering = toRef(() => !/* @__PURE__ */ isNull(hoveredValue.value));
|
|
@@ -9613,21 +9685,23 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
9613
9685
|
setup(__props) {
|
|
9614
9686
|
const attrs = useAttrs();
|
|
9615
9687
|
const stack = useStack();
|
|
9616
|
-
const tickets = computed(() => Array.from(stack.selectedItems.value));
|
|
9688
|
+
const tickets = computed(() => Array.from(stack.selectedItems.value).filter((ticket) => ticket.scrim !== false));
|
|
9617
9689
|
function onDismiss(ticket) {
|
|
9618
9690
|
if (!ticket.blocking) ticket.dismiss();
|
|
9619
9691
|
}
|
|
9620
9692
|
function getSlotProps(ticket) {
|
|
9693
|
+
const zIndex = ticket.zIndex.value - 1;
|
|
9621
9694
|
return {
|
|
9622
9695
|
ticket,
|
|
9623
|
-
zIndex
|
|
9696
|
+
zIndex,
|
|
9624
9697
|
isBlocking: ticket.blocking,
|
|
9625
|
-
dismiss: () => onDismiss(ticket)
|
|
9698
|
+
dismiss: () => onDismiss(ticket),
|
|
9699
|
+
attrs: {
|
|
9700
|
+
style: { zIndex },
|
|
9701
|
+
onClick: () => onDismiss(ticket)
|
|
9702
|
+
}
|
|
9626
9703
|
};
|
|
9627
9704
|
}
|
|
9628
|
-
function getStyle(ticket) {
|
|
9629
|
-
return { zIndex: ticket.zIndex.value - 1 };
|
|
9630
|
-
}
|
|
9631
9705
|
return (_ctx, _cache) => {
|
|
9632
9706
|
return __props.teleport ? (openBlock(), createBlock(Teleport, {
|
|
9633
9707
|
key: 0,
|
|
@@ -9637,15 +9711,11 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
9637
9711
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9638
9712
|
key: ticket.id,
|
|
9639
9713
|
as: __props.as,
|
|
9640
|
-
|
|
9641
|
-
}, { ref_for: true }, unref(attrs),
|
|
9714
|
+
renderless: __props.renderless
|
|
9715
|
+
}, { ref_for: true }, mergeProps(unref(attrs), getSlotProps(ticket).attrs)), {
|
|
9642
9716
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getSlotProps(ticket)))]),
|
|
9643
9717
|
_: 2
|
|
9644
|
-
}, 1040, [
|
|
9645
|
-
"as",
|
|
9646
|
-
"style",
|
|
9647
|
-
"onClick"
|
|
9648
|
-
]);
|
|
9718
|
+
}, 1040, ["as", "renderless"]);
|
|
9649
9719
|
}), 128))]),
|
|
9650
9720
|
_: 3
|
|
9651
9721
|
}, 8, ["name"])], 8, ["to"])) : (openBlock(), createBlock(TransitionGroup, {
|
|
@@ -9656,15 +9726,11 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
9656
9726
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9657
9727
|
key: ticket.id,
|
|
9658
9728
|
as: __props.as,
|
|
9659
|
-
|
|
9660
|
-
}, { ref_for: true }, unref(attrs),
|
|
9729
|
+
renderless: __props.renderless
|
|
9730
|
+
}, { ref_for: true }, mergeProps(unref(attrs), getSlotProps(ticket).attrs)), {
|
|
9661
9731
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getSlotProps(ticket)))]),
|
|
9662
9732
|
_: 2
|
|
9663
|
-
}, 1040, [
|
|
9664
|
-
"as",
|
|
9665
|
-
"style",
|
|
9666
|
-
"onClick"
|
|
9667
|
-
]);
|
|
9733
|
+
}, 1040, ["as", "renderless"]);
|
|
9668
9734
|
}), 128))]),
|
|
9669
9735
|
_: 3
|
|
9670
9736
|
}, 8, ["name"]));
|
|
@@ -9891,7 +9957,6 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
9891
9957
|
break;
|
|
9892
9958
|
}
|
|
9893
9959
|
}
|
|
9894
|
-
const style = toRef(() => context.popover.anchorStyles.value);
|
|
9895
9960
|
const slotProps = toRef(() => ({
|
|
9896
9961
|
isOpen: context.isOpen.value,
|
|
9897
9962
|
attrs: {
|
|
@@ -9901,21 +9966,21 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
9901
9966
|
"aria-expanded": context.isOpen.value,
|
|
9902
9967
|
"aria-haspopup": "listbox",
|
|
9903
9968
|
"aria-controls": context.listboxId,
|
|
9904
|
-
"data-open": context.isOpen.value || void 0
|
|
9969
|
+
"data-open": context.isOpen.value || void 0,
|
|
9970
|
+
"style": context.popover.anchorStyles.value,
|
|
9971
|
+
onClick,
|
|
9972
|
+
onKeydown
|
|
9905
9973
|
}
|
|
9906
9974
|
}));
|
|
9907
9975
|
return (_ctx, _cache) => {
|
|
9908
9976
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9909
9977
|
ref: "activator",
|
|
9910
9978
|
as: __props.as,
|
|
9911
|
-
|
|
9912
|
-
}, slotProps.value.attrs, {
|
|
9913
|
-
onClick,
|
|
9914
|
-
onKeydown
|
|
9915
|
-
}), {
|
|
9979
|
+
renderless: __props.renderless
|
|
9980
|
+
}, slotProps.value.attrs), {
|
|
9916
9981
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
9917
9982
|
_: 3
|
|
9918
|
-
}, 16, ["as", "
|
|
9983
|
+
}, 16, ["as", "renderless"]);
|
|
9919
9984
|
};
|
|
9920
9985
|
}
|
|
9921
9986
|
});
|
|
@@ -9945,21 +10010,20 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
9945
10010
|
"id": context.listboxId,
|
|
9946
10011
|
"role": "listbox",
|
|
9947
10012
|
"aria-multiselectable": context.multiple || void 0,
|
|
9948
|
-
"tabindex": -1
|
|
10013
|
+
"tabindex": -1,
|
|
10014
|
+
"style": context.popover.contentStyles.value
|
|
9949
10015
|
}
|
|
9950
10016
|
}));
|
|
9951
|
-
const style = toRef(() => context.popover.contentStyles.value);
|
|
9952
10017
|
return (_ctx, _cache) => {
|
|
9953
10018
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9954
10019
|
ref_key: "content",
|
|
9955
|
-
ref: content
|
|
9956
|
-
}, slotProps.value.attrs, {
|
|
10020
|
+
ref: content,
|
|
9957
10021
|
as: __props.as,
|
|
9958
|
-
|
|
9959
|
-
}), {
|
|
10022
|
+
renderless: __props.renderless
|
|
10023
|
+
}, slotProps.value.attrs), {
|
|
9960
10024
|
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 0 }, slotProps.value))) : createCommentVNode("v-if", true)]),
|
|
9961
10025
|
_: 3
|
|
9962
|
-
}, 16, ["as", "
|
|
10026
|
+
}, 16, ["as", "renderless"]);
|
|
9963
10027
|
};
|
|
9964
10028
|
}
|
|
9965
10029
|
});
|
|
@@ -9983,10 +10047,13 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
9983
10047
|
}
|
|
9984
10048
|
}));
|
|
9985
10049
|
return (_ctx, _cache) => {
|
|
9986
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10050
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10051
|
+
as: __props.as,
|
|
10052
|
+
renderless: __props.renderless
|
|
10053
|
+
}, slotProps.value.attrs), {
|
|
9987
10054
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
9988
10055
|
_: 3
|
|
9989
|
-
}, 16, ["as"]);
|
|
10056
|
+
}, 16, ["as", "renderless"]);
|
|
9990
10057
|
};
|
|
9991
10058
|
}
|
|
9992
10059
|
});
|
|
@@ -10039,10 +10106,13 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
10039
10106
|
}
|
|
10040
10107
|
}));
|
|
10041
10108
|
return (_ctx, _cache) => {
|
|
10042
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10109
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10110
|
+
as: __props.as,
|
|
10111
|
+
renderless: __props.renderless
|
|
10112
|
+
}, slotProps.value.attrs), {
|
|
10043
10113
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
10044
10114
|
_: 3
|
|
10045
|
-
}, 16, ["as"]);
|
|
10115
|
+
}, 16, ["as", "renderless"]);
|
|
10046
10116
|
};
|
|
10047
10117
|
}
|
|
10048
10118
|
});
|
|
@@ -10062,11 +10132,12 @@ const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
|
10062
10132
|
return (_ctx, _cache) => {
|
|
10063
10133
|
return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
|
|
10064
10134
|
key: 0,
|
|
10065
|
-
as: __props.as
|
|
10135
|
+
as: __props.as,
|
|
10136
|
+
renderless: __props.renderless
|
|
10066
10137
|
}, {
|
|
10067
10138
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { hasValue: hasValue.value })]),
|
|
10068
10139
|
_: 3
|
|
10069
|
-
}, 8, ["as"])) : createCommentVNode("v-if", true);
|
|
10140
|
+
}, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
10070
10141
|
};
|
|
10071
10142
|
}
|
|
10072
10143
|
});
|
|
@@ -10105,11 +10176,12 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
10105
10176
|
return (_ctx, _cache) => {
|
|
10106
10177
|
return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
|
|
10107
10178
|
key: 0,
|
|
10108
|
-
as: __props.as
|
|
10179
|
+
as: __props.as,
|
|
10180
|
+
renderless: __props.renderless
|
|
10109
10181
|
}, {
|
|
10110
10182
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), () => [createTextVNode(toDisplayString(values.value[0]), 1)])]),
|
|
10111
10183
|
_: 3
|
|
10112
|
-
}, 8, ["as"])) : createCommentVNode("v-if", true);
|
|
10184
|
+
}, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
10113
10185
|
};
|
|
10114
10186
|
}
|
|
10115
10187
|
});
|
|
@@ -10371,6 +10443,10 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
10371
10443
|
disabled: () => toValue(__props.disabled) ?? false
|
|
10372
10444
|
});
|
|
10373
10445
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(selection.disabled));
|
|
10446
|
+
function onClick() {
|
|
10447
|
+
if (toValue(isDisabled)) return;
|
|
10448
|
+
ticket.toggle();
|
|
10449
|
+
}
|
|
10374
10450
|
onBeforeUnmount(() => {
|
|
10375
10451
|
selection.unregister(ticket.id);
|
|
10376
10452
|
});
|
|
@@ -10388,7 +10464,7 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
10388
10464
|
"aria-disabled": toValue(isDisabled),
|
|
10389
10465
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
10390
10466
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
10391
|
-
"onClick":
|
|
10467
|
+
"onClick": onClick
|
|
10392
10468
|
}
|
|
10393
10469
|
}));
|
|
10394
10470
|
return (_ctx, _cache) => {
|
|
@@ -10516,6 +10592,10 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
10516
10592
|
disabled: () => toValue(__props.disabled) ?? false
|
|
10517
10593
|
});
|
|
10518
10594
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(single.disabled));
|
|
10595
|
+
function onClick() {
|
|
10596
|
+
if (toValue(isDisabled)) return;
|
|
10597
|
+
ticket.toggle();
|
|
10598
|
+
}
|
|
10519
10599
|
onBeforeUnmount(() => {
|
|
10520
10600
|
single.unregister(ticket.id);
|
|
10521
10601
|
});
|
|
@@ -10533,7 +10613,7 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
10533
10613
|
"aria-disabled": toValue(isDisabled),
|
|
10534
10614
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
10535
10615
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
10536
|
-
"onClick":
|
|
10616
|
+
"onClick": onClick
|
|
10537
10617
|
}
|
|
10538
10618
|
}));
|
|
10539
10619
|
return (_ctx, _cache) => {
|
|
@@ -11176,18 +11256,25 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
11176
11256
|
renderless: { type: Boolean }
|
|
11177
11257
|
},
|
|
11178
11258
|
setup(__props) {
|
|
11259
|
+
function getSlotProps(zIndex) {
|
|
11260
|
+
return {
|
|
11261
|
+
zIndex,
|
|
11262
|
+
attrs: { style: { zIndex } }
|
|
11263
|
+
};
|
|
11264
|
+
}
|
|
11179
11265
|
return (_ctx, _cache) => {
|
|
11180
11266
|
return openBlock(), createBlock(unref(_sfc_main$70), {
|
|
11181
11267
|
disabled: __props.teleport === false,
|
|
11268
|
+
scrim: false,
|
|
11182
11269
|
to: __props.teleport || "body"
|
|
11183
11270
|
}, {
|
|
11184
11271
|
default: withCtx(({ zIndex }) => [createVNode(unref(_sfc_main$170), mergeProps({
|
|
11185
11272
|
as: __props.as,
|
|
11186
|
-
|
|
11187
|
-
}, _ctx.$attrs), {
|
|
11188
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(
|
|
11273
|
+
renderless: __props.renderless
|
|
11274
|
+
}, mergeProps(_ctx.$attrs, getSlotProps(zIndex).attrs)), {
|
|
11275
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(getSlotProps(zIndex))))]),
|
|
11189
11276
|
_: 2
|
|
11190
|
-
}, 1040, ["as", "
|
|
11277
|
+
}, 1040, ["as", "renderless"])]),
|
|
11191
11278
|
_: 3
|
|
11192
11279
|
}, 8, ["disabled", "to"]);
|
|
11193
11280
|
};
|
|
@@ -11254,11 +11341,13 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
11254
11341
|
return (_ctx, _cache) => {
|
|
11255
11342
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
11256
11343
|
ref_key: "container",
|
|
11257
|
-
ref: container
|
|
11258
|
-
|
|
11344
|
+
ref: container,
|
|
11345
|
+
as: __props.as,
|
|
11346
|
+
renderless: __props.renderless
|
|
11347
|
+
}, slotProps.value.attrs), {
|
|
11259
11348
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
11260
11349
|
_: 3
|
|
11261
|
-
}, 16, ["as"]);
|
|
11350
|
+
}, 16, ["as", "renderless"]);
|
|
11262
11351
|
};
|
|
11263
11352
|
}
|
|
11264
11353
|
});
|
|
@@ -11291,10 +11380,13 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
11291
11380
|
attrs: { role: "status" }
|
|
11292
11381
|
}));
|
|
11293
11382
|
return (_ctx, _cache) => {
|
|
11294
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(
|
|
11383
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
11384
|
+
as: __props.as,
|
|
11385
|
+
renderless: __props.renderless
|
|
11386
|
+
}, slotProps.value.attrs), {
|
|
11295
11387
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
11296
11388
|
_: 3
|
|
11297
|
-
}, 16, ["as"]);
|
|
11389
|
+
}, 16, ["as", "renderless"]);
|
|
11298
11390
|
};
|
|
11299
11391
|
}
|
|
11300
11392
|
});
|
|
@@ -11309,10 +11401,13 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
11309
11401
|
},
|
|
11310
11402
|
setup(__props) {
|
|
11311
11403
|
return (_ctx, _cache) => {
|
|
11312
|
-
return openBlock(), createBlock(unref(_sfc_main$170), {
|
|
11404
|
+
return openBlock(), createBlock(unref(_sfc_main$170), {
|
|
11405
|
+
as: __props.as,
|
|
11406
|
+
renderless: __props.renderless
|
|
11407
|
+
}, {
|
|
11313
11408
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
11314
11409
|
_: 3
|
|
11315
|
-
}, 8, ["as"]);
|
|
11410
|
+
}, 8, ["as", "renderless"]);
|
|
11316
11411
|
};
|
|
11317
11412
|
}
|
|
11318
11413
|
});
|
|
@@ -11338,10 +11433,13 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
11338
11433
|
"onClick": onClick
|
|
11339
11434
|
} }));
|
|
11340
11435
|
return (_ctx, _cache) => {
|
|
11341
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(
|
|
11436
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
11437
|
+
as: __props.as,
|
|
11438
|
+
renderless: __props.renderless
|
|
11439
|
+
}, slotProps.value.attrs), {
|
|
11342
11440
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
11343
11441
|
_: 3
|
|
11344
|
-
}, 16, ["as"]);
|
|
11442
|
+
}, 16, ["as", "renderless"]);
|
|
11345
11443
|
};
|
|
11346
11444
|
}
|
|
11347
11445
|
});
|
|
@@ -12195,6 +12293,10 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
12195
12293
|
disabled: () => toValue(__props.disabled) ?? false
|
|
12196
12294
|
});
|
|
12197
12295
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(step.disabled));
|
|
12296
|
+
function onClick() {
|
|
12297
|
+
if (toValue(isDisabled)) return;
|
|
12298
|
+
ticket.toggle();
|
|
12299
|
+
}
|
|
12198
12300
|
onBeforeUnmount(() => {
|
|
12199
12301
|
step.unregister(ticket.id);
|
|
12200
12302
|
});
|
|
@@ -12212,7 +12314,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
12212
12314
|
"aria-disabled": toValue(isDisabled),
|
|
12213
12315
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
12214
12316
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
12215
|
-
"onClick":
|
|
12317
|
+
"onClick": onClick
|
|
12216
12318
|
}
|
|
12217
12319
|
}));
|
|
12218
12320
|
return (_ctx, _cache) => {
|
|
@@ -12598,15 +12700,15 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
12598
12700
|
"aria-describedby": __props.ariaDescribedby || void 0,
|
|
12599
12701
|
"tabindex": isDisabled.value ? void 0 : 0,
|
|
12600
12702
|
"data-state": dataState.value,
|
|
12601
|
-
"data-disabled": isDisabled.value ? true : void 0
|
|
12703
|
+
"data-disabled": isDisabled.value ? true : void 0,
|
|
12704
|
+
onClick,
|
|
12705
|
+
onKeydown
|
|
12602
12706
|
}
|
|
12603
12707
|
}));
|
|
12604
12708
|
return (_ctx, _cache) => {
|
|
12605
12709
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
12606
12710
|
as: __props.as,
|
|
12607
|
-
renderless: __props.renderless
|
|
12608
|
-
onClick,
|
|
12609
|
-
onKeydown
|
|
12711
|
+
renderless: __props.renderless
|
|
12610
12712
|
}), {
|
|
12611
12713
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
12612
12714
|
_: 3
|
|
@@ -14123,45 +14225,31 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
14123
14225
|
open: ticket.open,
|
|
14124
14226
|
close: ticket.close,
|
|
14125
14227
|
activate: ticket.activate,
|
|
14126
|
-
deactivate: ticket.deactivate
|
|
14228
|
+
deactivate: ticket.deactivate,
|
|
14229
|
+
attrs: {
|
|
14230
|
+
"role": "treeitem",
|
|
14231
|
+
"aria-disabled": toValue(isDisabled),
|
|
14232
|
+
"aria-expanded": hasContent.value ? toValue(ticket.isOpen) : void 0,
|
|
14233
|
+
"aria-level": toValue(ticket.depth) + 1,
|
|
14234
|
+
"aria-posinset": ticket.position(),
|
|
14235
|
+
"aria-selected": toValue(ticket.isSelected),
|
|
14236
|
+
"aria-setsize": ticket.siblings().length,
|
|
14237
|
+
"data-active": toValue(ticket.isActive) || void 0,
|
|
14238
|
+
"data-disabled": toValue(isDisabled) || void 0,
|
|
14239
|
+
"data-open": toValue(ticket.isOpen) || void 0,
|
|
14240
|
+
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
14241
|
+
"tabindex": roving ? roving.isTabbable(ticket.id) ? 0 : -1 : void 0,
|
|
14242
|
+
"style": { "--v0-treeview-depth": toValue(ticket.depth) }
|
|
14243
|
+
}
|
|
14127
14244
|
}));
|
|
14128
14245
|
return (_ctx, _cache) => {
|
|
14129
|
-
return openBlock(), createBlock(unref(_sfc_main$170), {
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
"aria-level": slotProps.value.depth + 1,
|
|
14134
|
-
"aria-posinset": unref(ticket).position(),
|
|
14135
|
-
"aria-selected": slotProps.value.isSelected,
|
|
14136
|
-
"aria-setsize": unref(ticket).siblings().length,
|
|
14137
|
-
as: __props.as,
|
|
14138
|
-
"data-active": slotProps.value.isActive || void 0,
|
|
14139
|
-
"data-disabled": slotProps.value.isDisabled || void 0,
|
|
14140
|
-
"data-open": slotProps.value.isOpen || void 0,
|
|
14141
|
-
"data-selected": slotProps.value.isSelected || void 0,
|
|
14142
|
-
renderless: __props.renderless,
|
|
14143
|
-
role: "treeitem",
|
|
14144
|
-
style: normalizeStyle({ "--v0-treeview-depth": slotProps.value.depth }),
|
|
14145
|
-
tabindex: unref(roving) ? unref(roving).isTabbable(unref(ticket).id) ? 0 : -1 : void 0
|
|
14146
|
-
}, {
|
|
14246
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({ ref: "root" }, slotProps.value.attrs, {
|
|
14247
|
+
as: __props.as,
|
|
14248
|
+
renderless: __props.renderless
|
|
14249
|
+
}), {
|
|
14147
14250
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
14148
14251
|
_: 3
|
|
14149
|
-
},
|
|
14150
|
-
"aria-disabled",
|
|
14151
|
-
"aria-expanded",
|
|
14152
|
-
"aria-level",
|
|
14153
|
-
"aria-posinset",
|
|
14154
|
-
"aria-selected",
|
|
14155
|
-
"aria-setsize",
|
|
14156
|
-
"as",
|
|
14157
|
-
"data-active",
|
|
14158
|
-
"data-disabled",
|
|
14159
|
-
"data-open",
|
|
14160
|
-
"data-selected",
|
|
14161
|
-
"renderless",
|
|
14162
|
-
"style",
|
|
14163
|
-
"tabindex"
|
|
14164
|
-
]);
|
|
14252
|
+
}, 16, ["as", "renderless"]);
|
|
14165
14253
|
};
|
|
14166
14254
|
}
|
|
14167
14255
|
});
|