@vuetify/v0 1.0.0-beta.1 → 1.0.0-beta.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 +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 +23559 -23242
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{components-B210m9Ye.mjs → components-DcOwIGXt.mjs} +294 -212
- package/dist/composables/index.d.mts +20 -20
- package/dist/composables/index.mjs +34 -28
- package/dist/composables-DxKmYiTj.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-CBfnCUKU.mjs} +14 -11
- package/dist/{createGroup-CpaW7zEJ.mjs → createGroup-BTG6xcyp.mjs} +2 -2
- package/dist/{adapter-BCVxBtDp.mjs → createPagination-B5dfqY-a.mjs} +3 -98
- package/dist/{createRegistry-8FryYQC-.mjs → createRegistry-Cb6ftNMU.mjs} +3 -2
- package/dist/{createSelection-DPOvmJ5q.mjs → createSelection-BMvXj84C.mjs} +7 -4
- package/dist/{createSingle-CYi0RuOy.mjs → createSingle-BCUJuV4D.mjs} +1 -1
- package/dist/{createTokens-DaJ_SYE7.mjs → createTokens-BSSQAfNX.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-C1X-9O7K.mjs} +1 -1
- package/dist/{index-DWAgQOBa.d.mts → index-Bmz8PZMY.d.mts} +3 -4
- package/dist/{index-BN06veYe.d.mts → index-CKyDkh8J.d.mts} +169 -88
- package/dist/{index-BpDzW6zC.d.mts → index-DLBPM47A.d.mts} +416 -346
- 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 +2 -2
- package/dist/json/web-types.json +3 -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-i8ji788n.mjs} +12 -8
- package/dist/useEventListener-BK_uaXZv.mjs +103 -0
- package/dist/{useFeatures-BWC23LA6.mjs → useFeatures-BKAK56af.mjs} +4 -8
- package/dist/{useLocale-yXLswxYa.mjs → useLocale-CTwn8uZk.mjs} +4 -5
- package/dist/{useLogger-JwRA-DZ7.mjs → useLogger-D7_hm4e8.mjs} +2 -3
- package/dist/{useNotifications-8qt26Ha9.mjs → useNotifications-B2YeotHN.mjs} +15 -8
- package/dist/{usePermissions-Bc1-N-lO.mjs → usePermissions-CWYXR7ji.mjs} +9 -8
- package/dist/{useClickOutside-BurEbsu3.mjs → useRovingFocus-BdnSUVrD.mjs} +4002 -8134
- package/dist/{useRules-Dg-pFO8r.mjs → useRules-CB2_tvd0.mjs} +2 -2
- package/dist/useStorage-BORz1d1g.mjs +162 -0
- package/dist/{useTheme-TpMOisy2.mjs → useTheme-ClUmdmvT.mjs} +12 -9
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +5 -1
- package/dist/{v0-COaQncfZ.mjs → v0-A4GLojAr.mjs} +2 -1
- package/dist/{v0-eRmUaRpH.mjs → v0-BU39ZO4s.mjs} +21 -10
- package/dist/{v0-WzS4GAIp.d.mts → v0-D7NA38Vu.d.mts} +1 -1
- package/dist/{v0-C7j3bzRU.mjs → v0-DL9JtgCO.mjs} +1 -1
- package/dist/{v0-QIjffi4E.d.mts → v0-DotXXGXU.d.mts} +1 -1
- package/dist/{v0-BfZc5TNn.mjs → v0-SwedwC_b.mjs} +3 -4
- 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-C1X-9O7K.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-D7_hm4e8.mjs";
|
|
6
|
+
import { t as createRegistry } from "./createRegistry-Cb6ftNMU.mjs";
|
|
7
|
+
import { t as createSelection } from "./createSelection-BMvXj84C.mjs";
|
|
8
|
+
import { t as createSingle } from "./createSingle-BCUJuV4D.mjs";
|
|
9
|
+
import { a as useLocale } from "./useLocale-CTwn8uZk.mjs";
|
|
10
|
+
import { n as useEventListener, t as useDocumentEventListener } from "./useEventListener-BK_uaXZv.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-BdnSUVrD.mjs";
|
|
12
|
+
import { t as createGroup } from "./createGroup-BTG6xcyp.mjs";
|
|
13
|
+
import { c as useTimer, i as useNotifications } from "./useNotifications-B2YeotHN.mjs";
|
|
14
|
+
import { t as createPagination } from "./createPagination-B5dfqY-a.mjs";
|
|
15
|
+
import { i as useTheme } from "./useTheme-ClUmdmvT.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
|
});
|
|
@@ -8251,7 +8319,6 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
|
|
|
8251
8319
|
setup(__props, { emit: __emit }) {
|
|
8252
8320
|
const emit = __emit;
|
|
8253
8321
|
const ticket = useStack().register({
|
|
8254
|
-
disabled: __props.disabled,
|
|
8255
8322
|
blocking: __props.blocking,
|
|
8256
8323
|
onDismiss: () => emit("close")
|
|
8257
8324
|
});
|
|
@@ -9291,8 +9358,8 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
|
|
|
9291
9358
|
const attrs = useAttrs();
|
|
9292
9359
|
const rating = createRating({
|
|
9293
9360
|
value: useModel(__props, "modelValue"),
|
|
9294
|
-
size: __props.size,
|
|
9295
|
-
half: __props.half
|
|
9361
|
+
size: toRef(() => __props.size),
|
|
9362
|
+
half: toRef(() => __props.half)
|
|
9296
9363
|
});
|
|
9297
9364
|
const hoveredValue = shallowRef(null);
|
|
9298
9365
|
const isHovering = toRef(() => !/* @__PURE__ */ isNull(hoveredValue.value));
|
|
@@ -9618,16 +9685,18 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
9618
9685
|
if (!ticket.blocking) ticket.dismiss();
|
|
9619
9686
|
}
|
|
9620
9687
|
function getSlotProps(ticket) {
|
|
9688
|
+
const zIndex = ticket.zIndex.value - 1;
|
|
9621
9689
|
return {
|
|
9622
9690
|
ticket,
|
|
9623
|
-
zIndex
|
|
9691
|
+
zIndex,
|
|
9624
9692
|
isBlocking: ticket.blocking,
|
|
9625
|
-
dismiss: () => onDismiss(ticket)
|
|
9693
|
+
dismiss: () => onDismiss(ticket),
|
|
9694
|
+
attrs: {
|
|
9695
|
+
style: { zIndex },
|
|
9696
|
+
onClick: () => onDismiss(ticket)
|
|
9697
|
+
}
|
|
9626
9698
|
};
|
|
9627
9699
|
}
|
|
9628
|
-
function getStyle(ticket) {
|
|
9629
|
-
return { zIndex: ticket.zIndex.value - 1 };
|
|
9630
|
-
}
|
|
9631
9700
|
return (_ctx, _cache) => {
|
|
9632
9701
|
return __props.teleport ? (openBlock(), createBlock(Teleport, {
|
|
9633
9702
|
key: 0,
|
|
@@ -9637,15 +9706,11 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
9637
9706
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9638
9707
|
key: ticket.id,
|
|
9639
9708
|
as: __props.as,
|
|
9640
|
-
|
|
9641
|
-
}, { ref_for: true }, unref(attrs),
|
|
9709
|
+
renderless: __props.renderless
|
|
9710
|
+
}, { ref_for: true }, mergeProps(unref(attrs), getSlotProps(ticket).attrs)), {
|
|
9642
9711
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getSlotProps(ticket)))]),
|
|
9643
9712
|
_: 2
|
|
9644
|
-
}, 1040, [
|
|
9645
|
-
"as",
|
|
9646
|
-
"style",
|
|
9647
|
-
"onClick"
|
|
9648
|
-
]);
|
|
9713
|
+
}, 1040, ["as", "renderless"]);
|
|
9649
9714
|
}), 128))]),
|
|
9650
9715
|
_: 3
|
|
9651
9716
|
}, 8, ["name"])], 8, ["to"])) : (openBlock(), createBlock(TransitionGroup, {
|
|
@@ -9656,15 +9721,11 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
9656
9721
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9657
9722
|
key: ticket.id,
|
|
9658
9723
|
as: __props.as,
|
|
9659
|
-
|
|
9660
|
-
}, { ref_for: true }, unref(attrs),
|
|
9724
|
+
renderless: __props.renderless
|
|
9725
|
+
}, { ref_for: true }, mergeProps(unref(attrs), getSlotProps(ticket).attrs)), {
|
|
9661
9726
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getSlotProps(ticket)))]),
|
|
9662
9727
|
_: 2
|
|
9663
|
-
}, 1040, [
|
|
9664
|
-
"as",
|
|
9665
|
-
"style",
|
|
9666
|
-
"onClick"
|
|
9667
|
-
]);
|
|
9728
|
+
}, 1040, ["as", "renderless"]);
|
|
9668
9729
|
}), 128))]),
|
|
9669
9730
|
_: 3
|
|
9670
9731
|
}, 8, ["name"]));
|
|
@@ -9891,7 +9952,6 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
9891
9952
|
break;
|
|
9892
9953
|
}
|
|
9893
9954
|
}
|
|
9894
|
-
const style = toRef(() => context.popover.anchorStyles.value);
|
|
9895
9955
|
const slotProps = toRef(() => ({
|
|
9896
9956
|
isOpen: context.isOpen.value,
|
|
9897
9957
|
attrs: {
|
|
@@ -9901,21 +9961,21 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
9901
9961
|
"aria-expanded": context.isOpen.value,
|
|
9902
9962
|
"aria-haspopup": "listbox",
|
|
9903
9963
|
"aria-controls": context.listboxId,
|
|
9904
|
-
"data-open": context.isOpen.value || void 0
|
|
9964
|
+
"data-open": context.isOpen.value || void 0,
|
|
9965
|
+
"style": context.popover.anchorStyles.value,
|
|
9966
|
+
onClick,
|
|
9967
|
+
onKeydown
|
|
9905
9968
|
}
|
|
9906
9969
|
}));
|
|
9907
9970
|
return (_ctx, _cache) => {
|
|
9908
9971
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9909
9972
|
ref: "activator",
|
|
9910
9973
|
as: __props.as,
|
|
9911
|
-
|
|
9912
|
-
}, slotProps.value.attrs, {
|
|
9913
|
-
onClick,
|
|
9914
|
-
onKeydown
|
|
9915
|
-
}), {
|
|
9974
|
+
renderless: __props.renderless
|
|
9975
|
+
}, slotProps.value.attrs), {
|
|
9916
9976
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
9917
9977
|
_: 3
|
|
9918
|
-
}, 16, ["as", "
|
|
9978
|
+
}, 16, ["as", "renderless"]);
|
|
9919
9979
|
};
|
|
9920
9980
|
}
|
|
9921
9981
|
});
|
|
@@ -9945,21 +10005,20 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
9945
10005
|
"id": context.listboxId,
|
|
9946
10006
|
"role": "listbox",
|
|
9947
10007
|
"aria-multiselectable": context.multiple || void 0,
|
|
9948
|
-
"tabindex": -1
|
|
10008
|
+
"tabindex": -1,
|
|
10009
|
+
"style": context.popover.contentStyles.value
|
|
9949
10010
|
}
|
|
9950
10011
|
}));
|
|
9951
|
-
const style = toRef(() => context.popover.contentStyles.value);
|
|
9952
10012
|
return (_ctx, _cache) => {
|
|
9953
10013
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
9954
10014
|
ref_key: "content",
|
|
9955
|
-
ref: content
|
|
9956
|
-
}, slotProps.value.attrs, {
|
|
10015
|
+
ref: content,
|
|
9957
10016
|
as: __props.as,
|
|
9958
|
-
|
|
9959
|
-
}), {
|
|
10017
|
+
renderless: __props.renderless
|
|
10018
|
+
}, slotProps.value.attrs), {
|
|
9960
10019
|
default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 0 }, slotProps.value))) : createCommentVNode("v-if", true)]),
|
|
9961
10020
|
_: 3
|
|
9962
|
-
}, 16, ["as", "
|
|
10021
|
+
}, 16, ["as", "renderless"]);
|
|
9963
10022
|
};
|
|
9964
10023
|
}
|
|
9965
10024
|
});
|
|
@@ -9983,10 +10042,13 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
9983
10042
|
}
|
|
9984
10043
|
}));
|
|
9985
10044
|
return (_ctx, _cache) => {
|
|
9986
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10045
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10046
|
+
as: __props.as,
|
|
10047
|
+
renderless: __props.renderless
|
|
10048
|
+
}, slotProps.value.attrs), {
|
|
9987
10049
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
9988
10050
|
_: 3
|
|
9989
|
-
}, 16, ["as"]);
|
|
10051
|
+
}, 16, ["as", "renderless"]);
|
|
9990
10052
|
};
|
|
9991
10053
|
}
|
|
9992
10054
|
});
|
|
@@ -10039,10 +10101,13 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
|
10039
10101
|
}
|
|
10040
10102
|
}));
|
|
10041
10103
|
return (_ctx, _cache) => {
|
|
10042
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10104
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
10105
|
+
as: __props.as,
|
|
10106
|
+
renderless: __props.renderless
|
|
10107
|
+
}, slotProps.value.attrs), {
|
|
10043
10108
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
10044
10109
|
_: 3
|
|
10045
|
-
}, 16, ["as"]);
|
|
10110
|
+
}, 16, ["as", "renderless"]);
|
|
10046
10111
|
};
|
|
10047
10112
|
}
|
|
10048
10113
|
});
|
|
@@ -10062,11 +10127,12 @@ const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
|
10062
10127
|
return (_ctx, _cache) => {
|
|
10063
10128
|
return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
|
|
10064
10129
|
key: 0,
|
|
10065
|
-
as: __props.as
|
|
10130
|
+
as: __props.as,
|
|
10131
|
+
renderless: __props.renderless
|
|
10066
10132
|
}, {
|
|
10067
10133
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { hasValue: hasValue.value })]),
|
|
10068
10134
|
_: 3
|
|
10069
|
-
}, 8, ["as"])) : createCommentVNode("v-if", true);
|
|
10135
|
+
}, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
10070
10136
|
};
|
|
10071
10137
|
}
|
|
10072
10138
|
});
|
|
@@ -10105,11 +10171,12 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
10105
10171
|
return (_ctx, _cache) => {
|
|
10106
10172
|
return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
|
|
10107
10173
|
key: 0,
|
|
10108
|
-
as: __props.as
|
|
10174
|
+
as: __props.as,
|
|
10175
|
+
renderless: __props.renderless
|
|
10109
10176
|
}, {
|
|
10110
10177
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), () => [createTextVNode(toDisplayString(values.value[0]), 1)])]),
|
|
10111
10178
|
_: 3
|
|
10112
|
-
}, 8, ["as"])) : createCommentVNode("v-if", true);
|
|
10179
|
+
}, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
|
|
10113
10180
|
};
|
|
10114
10181
|
}
|
|
10115
10182
|
});
|
|
@@ -10371,6 +10438,10 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
10371
10438
|
disabled: () => toValue(__props.disabled) ?? false
|
|
10372
10439
|
});
|
|
10373
10440
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(selection.disabled));
|
|
10441
|
+
function onClick() {
|
|
10442
|
+
if (toValue(isDisabled)) return;
|
|
10443
|
+
ticket.toggle();
|
|
10444
|
+
}
|
|
10374
10445
|
onBeforeUnmount(() => {
|
|
10375
10446
|
selection.unregister(ticket.id);
|
|
10376
10447
|
});
|
|
@@ -10388,7 +10459,7 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
10388
10459
|
"aria-disabled": toValue(isDisabled),
|
|
10389
10460
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
10390
10461
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
10391
|
-
"onClick":
|
|
10462
|
+
"onClick": onClick
|
|
10392
10463
|
}
|
|
10393
10464
|
}));
|
|
10394
10465
|
return (_ctx, _cache) => {
|
|
@@ -10516,6 +10587,10 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
10516
10587
|
disabled: () => toValue(__props.disabled) ?? false
|
|
10517
10588
|
});
|
|
10518
10589
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(single.disabled));
|
|
10590
|
+
function onClick() {
|
|
10591
|
+
if (toValue(isDisabled)) return;
|
|
10592
|
+
ticket.toggle();
|
|
10593
|
+
}
|
|
10519
10594
|
onBeforeUnmount(() => {
|
|
10520
10595
|
single.unregister(ticket.id);
|
|
10521
10596
|
});
|
|
@@ -10533,7 +10608,7 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
|
10533
10608
|
"aria-disabled": toValue(isDisabled),
|
|
10534
10609
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
10535
10610
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
10536
|
-
"onClick":
|
|
10611
|
+
"onClick": onClick
|
|
10537
10612
|
}
|
|
10538
10613
|
}));
|
|
10539
10614
|
return (_ctx, _cache) => {
|
|
@@ -11176,6 +11251,12 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
11176
11251
|
renderless: { type: Boolean }
|
|
11177
11252
|
},
|
|
11178
11253
|
setup(__props) {
|
|
11254
|
+
function getSlotProps(zIndex) {
|
|
11255
|
+
return {
|
|
11256
|
+
zIndex,
|
|
11257
|
+
attrs: { style: { zIndex } }
|
|
11258
|
+
};
|
|
11259
|
+
}
|
|
11179
11260
|
return (_ctx, _cache) => {
|
|
11180
11261
|
return openBlock(), createBlock(unref(_sfc_main$70), {
|
|
11181
11262
|
disabled: __props.teleport === false,
|
|
@@ -11183,11 +11264,11 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
11183
11264
|
}, {
|
|
11184
11265
|
default: withCtx(({ zIndex }) => [createVNode(unref(_sfc_main$170), mergeProps({
|
|
11185
11266
|
as: __props.as,
|
|
11186
|
-
|
|
11187
|
-
}, _ctx.$attrs), {
|
|
11188
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(
|
|
11267
|
+
renderless: __props.renderless
|
|
11268
|
+
}, mergeProps(_ctx.$attrs, getSlotProps(zIndex).attrs)), {
|
|
11269
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(getSlotProps(zIndex))))]),
|
|
11189
11270
|
_: 2
|
|
11190
|
-
}, 1040, ["as", "
|
|
11271
|
+
}, 1040, ["as", "renderless"])]),
|
|
11191
11272
|
_: 3
|
|
11192
11273
|
}, 8, ["disabled", "to"]);
|
|
11193
11274
|
};
|
|
@@ -11254,11 +11335,13 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
11254
11335
|
return (_ctx, _cache) => {
|
|
11255
11336
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
11256
11337
|
ref_key: "container",
|
|
11257
|
-
ref: container
|
|
11258
|
-
|
|
11338
|
+
ref: container,
|
|
11339
|
+
as: __props.as,
|
|
11340
|
+
renderless: __props.renderless
|
|
11341
|
+
}, slotProps.value.attrs), {
|
|
11259
11342
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
11260
11343
|
_: 3
|
|
11261
|
-
}, 16, ["as"]);
|
|
11344
|
+
}, 16, ["as", "renderless"]);
|
|
11262
11345
|
};
|
|
11263
11346
|
}
|
|
11264
11347
|
});
|
|
@@ -11291,10 +11374,13 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
11291
11374
|
attrs: { role: "status" }
|
|
11292
11375
|
}));
|
|
11293
11376
|
return (_ctx, _cache) => {
|
|
11294
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(
|
|
11377
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
11378
|
+
as: __props.as,
|
|
11379
|
+
renderless: __props.renderless
|
|
11380
|
+
}, slotProps.value.attrs), {
|
|
11295
11381
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
11296
11382
|
_: 3
|
|
11297
|
-
}, 16, ["as"]);
|
|
11383
|
+
}, 16, ["as", "renderless"]);
|
|
11298
11384
|
};
|
|
11299
11385
|
}
|
|
11300
11386
|
});
|
|
@@ -11309,10 +11395,13 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
11309
11395
|
},
|
|
11310
11396
|
setup(__props) {
|
|
11311
11397
|
return (_ctx, _cache) => {
|
|
11312
|
-
return openBlock(), createBlock(unref(_sfc_main$170), {
|
|
11398
|
+
return openBlock(), createBlock(unref(_sfc_main$170), {
|
|
11399
|
+
as: __props.as,
|
|
11400
|
+
renderless: __props.renderless
|
|
11401
|
+
}, {
|
|
11313
11402
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
11314
11403
|
_: 3
|
|
11315
|
-
}, 8, ["as"]);
|
|
11404
|
+
}, 8, ["as", "renderless"]);
|
|
11316
11405
|
};
|
|
11317
11406
|
}
|
|
11318
11407
|
});
|
|
@@ -11338,10 +11427,13 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
11338
11427
|
"onClick": onClick
|
|
11339
11428
|
} }));
|
|
11340
11429
|
return (_ctx, _cache) => {
|
|
11341
|
-
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(
|
|
11430
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
|
|
11431
|
+
as: __props.as,
|
|
11432
|
+
renderless: __props.renderless
|
|
11433
|
+
}, slotProps.value.attrs), {
|
|
11342
11434
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
11343
11435
|
_: 3
|
|
11344
|
-
}, 16, ["as"]);
|
|
11436
|
+
}, 16, ["as", "renderless"]);
|
|
11345
11437
|
};
|
|
11346
11438
|
}
|
|
11347
11439
|
});
|
|
@@ -12195,6 +12287,10 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
12195
12287
|
disabled: () => toValue(__props.disabled) ?? false
|
|
12196
12288
|
});
|
|
12197
12289
|
const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(step.disabled));
|
|
12290
|
+
function onClick() {
|
|
12291
|
+
if (toValue(isDisabled)) return;
|
|
12292
|
+
ticket.toggle();
|
|
12293
|
+
}
|
|
12198
12294
|
onBeforeUnmount(() => {
|
|
12199
12295
|
step.unregister(ticket.id);
|
|
12200
12296
|
});
|
|
@@ -12212,7 +12308,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
12212
12308
|
"aria-disabled": toValue(isDisabled),
|
|
12213
12309
|
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
12214
12310
|
"data-disabled": toValue(isDisabled) || void 0,
|
|
12215
|
-
"onClick":
|
|
12311
|
+
"onClick": onClick
|
|
12216
12312
|
}
|
|
12217
12313
|
}));
|
|
12218
12314
|
return (_ctx, _cache) => {
|
|
@@ -12598,15 +12694,15 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
12598
12694
|
"aria-describedby": __props.ariaDescribedby || void 0,
|
|
12599
12695
|
"tabindex": isDisabled.value ? void 0 : 0,
|
|
12600
12696
|
"data-state": dataState.value,
|
|
12601
|
-
"data-disabled": isDisabled.value ? true : void 0
|
|
12697
|
+
"data-disabled": isDisabled.value ? true : void 0,
|
|
12698
|
+
onClick,
|
|
12699
|
+
onKeydown
|
|
12602
12700
|
}
|
|
12603
12701
|
}));
|
|
12604
12702
|
return (_ctx, _cache) => {
|
|
12605
12703
|
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
|
|
12606
12704
|
as: __props.as,
|
|
12607
|
-
renderless: __props.renderless
|
|
12608
|
-
onClick,
|
|
12609
|
-
onKeydown
|
|
12705
|
+
renderless: __props.renderless
|
|
12610
12706
|
}), {
|
|
12611
12707
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
12612
12708
|
_: 3
|
|
@@ -14123,45 +14219,31 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
14123
14219
|
open: ticket.open,
|
|
14124
14220
|
close: ticket.close,
|
|
14125
14221
|
activate: ticket.activate,
|
|
14126
|
-
deactivate: ticket.deactivate
|
|
14222
|
+
deactivate: ticket.deactivate,
|
|
14223
|
+
attrs: {
|
|
14224
|
+
"role": "treeitem",
|
|
14225
|
+
"aria-disabled": toValue(isDisabled),
|
|
14226
|
+
"aria-expanded": hasContent.value ? toValue(ticket.isOpen) : void 0,
|
|
14227
|
+
"aria-level": toValue(ticket.depth) + 1,
|
|
14228
|
+
"aria-posinset": ticket.position(),
|
|
14229
|
+
"aria-selected": toValue(ticket.isSelected),
|
|
14230
|
+
"aria-setsize": ticket.siblings().length,
|
|
14231
|
+
"data-active": toValue(ticket.isActive) || void 0,
|
|
14232
|
+
"data-disabled": toValue(isDisabled) || void 0,
|
|
14233
|
+
"data-open": toValue(ticket.isOpen) || void 0,
|
|
14234
|
+
"data-selected": toValue(ticket.isSelected) || void 0,
|
|
14235
|
+
"tabindex": roving ? roving.isTabbable(ticket.id) ? 0 : -1 : void 0,
|
|
14236
|
+
"style": { "--v0-treeview-depth": toValue(ticket.depth) }
|
|
14237
|
+
}
|
|
14127
14238
|
}));
|
|
14128
14239
|
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
|
-
}, {
|
|
14240
|
+
return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({ ref: "root" }, slotProps.value.attrs, {
|
|
14241
|
+
as: __props.as,
|
|
14242
|
+
renderless: __props.renderless
|
|
14243
|
+
}), {
|
|
14147
14244
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
|
|
14148
14245
|
_: 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
|
-
]);
|
|
14246
|
+
}, 16, ["as", "renderless"]);
|
|
14165
14247
|
};
|
|
14166
14248
|
}
|
|
14167
14249
|
});
|