@vuetify/v0 1.0.0-beta.0 → 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.
Files changed (154) hide show
  1. package/README.md +2 -1
  2. package/dist/{adapter-DZeI0ZbW.d.mts → adapter-CQoi3rdC.d.mts} +1 -1
  3. package/dist/adapter-CVoWg0sw.mjs +99 -0
  4. package/dist/{adapter-oM18AdUc.mjs → adapter-Cj7vxEdB.mjs} +6 -1
  5. package/dist/adapter-Cy7wXVFe.mjs +4 -0
  6. package/dist/{adapter-we-0GbFH.d.mts → adapter-D2ABPTpo.d.mts} +2 -2
  7. package/dist/{adapter-BO75n0Cn.d.mts → adapter-_srNCBEi.d.mts} +3 -3
  8. package/dist/browser/index.js +23639 -23267
  9. package/dist/components/index.d.mts +1 -1
  10. package/dist/components/index.mjs +1 -1
  11. package/dist/{components-_uxZ_Zo3.mjs → components-DcOwIGXt.mjs} +304 -214
  12. package/dist/composables/index.d.mts +20 -20
  13. package/dist/composables/index.mjs +34 -28
  14. package/dist/composables-DxKmYiTj.mjs +4077 -0
  15. package/dist/{consola-CUNHyu8J.d.mts → consola-BPGkJp_q.d.mts} +1 -1
  16. package/dist/constants/index.d.mts +1 -1
  17. package/dist/constants/index.mjs +1 -1
  18. package/dist/{createDataTable-DlFQyBTN.mjs → createDataTable-CBfnCUKU.mjs} +14 -11
  19. package/dist/{createGroup-DsKJMuRd.mjs → createGroup-BTG6xcyp.mjs} +26 -14
  20. package/dist/{adapter-BCVxBtDp.mjs → createPagination-B5dfqY-a.mjs} +3 -98
  21. package/dist/{createRegistry-tJ1PPNIr.mjs → createRegistry-Cb6ftNMU.mjs} +57 -41
  22. package/dist/{createSelection-DEqhvdoj.mjs → createSelection-BMvXj84C.mjs} +7 -4
  23. package/dist/{createSingle-ClzWqRCe.mjs → createSingle-BCUJuV4D.mjs} +3 -3
  24. package/dist/{createTokens-mNxs8DQ3.mjs → createTokens-BSSQAfNX.mjs} +12 -6
  25. package/dist/data-table/adapters/client/index.d.mts +1 -1
  26. package/dist/data-table/adapters/client/index.mjs +1 -1
  27. package/dist/data-table/adapters/index.d.mts +4 -4
  28. package/dist/data-table/adapters/index.mjs +4 -5
  29. package/dist/data-table/adapters/server/index.d.mts +1 -1
  30. package/dist/data-table/adapters/server/index.mjs +1 -1
  31. package/dist/data-table/adapters/virtual/index.d.mts +1 -1
  32. package/dist/data-table/adapters/virtual/index.mjs +1 -1
  33. package/dist/data-table/index.d.mts +5 -5
  34. package/dist/data-table/index.mjs +5 -5
  35. package/dist/date/index.d.mts +1 -1
  36. package/dist/date/index.mjs +36 -33
  37. package/dist/features/adapters/flagsmith/index.d.mts +1 -1
  38. package/dist/features/adapters/flagsmith/index.mjs +47 -1
  39. package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
  40. package/dist/features/adapters/launchdarkly/index.mjs +37 -1
  41. package/dist/features/adapters/posthog/index.d.mts +1 -1
  42. package/dist/features/adapters/posthog/index.mjs +46 -1
  43. package/dist/features/index.d.mts +2 -2
  44. package/dist/features/index.mjs +2 -2
  45. package/dist/{flagsmith-Cn_KVy6v.d.mts → flagsmith-CXzNBqm3.d.mts} +1 -1
  46. package/dist/{globals-DB-krEA-.mjs → globals-C1X-9O7K.mjs} +1 -1
  47. package/dist/{index-DWAgQOBa.d.mts → index-Bmz8PZMY.d.mts} +3 -4
  48. package/dist/{index-BN06veYe.d.mts → index-CKyDkh8J.d.mts} +169 -88
  49. package/dist/{index-B3PDLk_Y.d.mts → index-DLBPM47A.d.mts} +509 -439
  50. package/dist/{index-ZD3hw2Zo.d.mts → index-DRrHHgE7.d.mts} +4 -4
  51. package/dist/{index-ATZqco03.d.mts → index-LMiCHwZl.d.mts} +7 -2
  52. package/dist/{index-BIyQ3OxC.d.mts → index-rJ_lhMYJ.d.mts} +5 -5
  53. package/dist/index.d.mts +24 -24
  54. package/dist/index.mjs +37 -31
  55. package/dist/json/attributes.json +2 -2
  56. package/dist/json/web-types.json +3 -3
  57. package/dist/{launchdarkly-C3Knz7-v.d.mts → launchdarkly-DvhloBts.d.mts} +1 -1
  58. package/dist/locale/adapters/index.d.mts +2 -2
  59. package/dist/locale/adapters/index.mjs +2 -3
  60. package/dist/locale/adapters/v0/index.d.mts +1 -1
  61. package/dist/locale/adapters/v0/index.mjs +1 -1
  62. package/dist/locale/adapters/vue-i18n/index.d.mts +1 -1
  63. package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
  64. package/dist/locale/index.d.mts +3 -3
  65. package/dist/locale/index.mjs +3 -3
  66. package/dist/logger/adapters/consola/index.d.mts +1 -1
  67. package/dist/logger/adapters/index.d.mts +4 -4
  68. package/dist/logger/adapters/index.mjs +1 -2
  69. package/dist/logger/adapters/pino/index.d.mts +1 -1
  70. package/dist/logger/adapters/v0/index.d.mts +1 -1
  71. package/dist/logger/adapters/v0/index.mjs +1 -1
  72. package/dist/logger/index.d.mts +5 -5
  73. package/dist/logger/index.mjs +2 -2
  74. package/dist/notifications/index.d.mts +6 -6
  75. package/dist/notifications/index.mjs +29 -29
  76. package/dist/palettes/ant/index.d.mts +1 -1
  77. package/dist/palettes/index.d.mts +3 -3
  78. package/dist/palettes/material/index.d.mts +1 -1
  79. package/dist/palettes/md1/index.d.mts +1 -1
  80. package/dist/palettes/md2/index.d.mts +1 -1
  81. package/dist/palettes/radix/index.d.mts +1 -1
  82. package/dist/palettes/tailwind/index.d.mts +1 -1
  83. package/dist/permissions/adapters/index.d.mts +1 -1
  84. package/dist/permissions/adapters/index.mjs +1 -2
  85. package/dist/permissions/adapters/v0/index.d.mts +1 -1
  86. package/dist/permissions/adapters/v0/index.mjs +1 -1
  87. package/dist/permissions/index.d.mts +1 -1
  88. package/dist/permissions/index.mjs +2 -2
  89. package/dist/{pino-BaYY_KIN.d.mts → pino-B6BI1AOK.d.mts} +1 -1
  90. package/dist/{posthog-CR8R2ywM.d.mts → posthog-BOT5W7Ds.d.mts} +1 -1
  91. package/dist/rules/index.d.mts +1 -1
  92. package/dist/rules/index.mjs +1 -1
  93. package/dist/{server-CZ83nTn_.mjs → server-D5BJBjB0.mjs} +2 -1
  94. package/dist/{server-7vjHxjNc.d.mts → server-DbtTGb67.d.mts} +1 -1
  95. package/dist/storage/adapters/index.d.mts +2 -2
  96. package/dist/storage/adapters/index.mjs +1 -1
  97. package/dist/storage/adapters/memory/index.d.mts +1 -1
  98. package/dist/storage/adapters/memory/index.mjs +1 -1
  99. package/dist/storage/index.d.mts +3 -3
  100. package/dist/storage/index.mjs +2 -2
  101. package/dist/theme/adapters/index.d.mts +1 -1
  102. package/dist/theme/adapters/index.mjs +3 -4
  103. package/dist/theme/adapters/unhead/index.d.mts +1 -1
  104. package/dist/theme/adapters/unhead/index.mjs +1 -1
  105. package/dist/theme/adapters/v0/index.d.mts +1 -1
  106. package/dist/theme/adapters/v0/index.mjs +1 -1
  107. package/dist/theme/index.d.mts +1 -1
  108. package/dist/theme/index.mjs +5 -4
  109. package/dist/types/index.d.mts +1 -1
  110. package/dist/{unhead-CG672gKh.mjs → unhead-i8ji788n.mjs} +12 -8
  111. package/dist/useEventListener-BK_uaXZv.mjs +103 -0
  112. package/dist/{useFeatures-B-A-eOo-.mjs → useFeatures-BKAK56af.mjs} +4 -8
  113. package/dist/{useLocale-CbpoxbVU.mjs → useLocale-CTwn8uZk.mjs} +4 -5
  114. package/dist/{useLogger-CTgAedNH.mjs → useLogger-D7_hm4e8.mjs} +2 -3
  115. package/dist/{useNotifications-BkKGUl_1.mjs → useNotifications-B2YeotHN.mjs} +15 -8
  116. package/dist/{usePermissions-BYOrKcnk.mjs → usePermissions-CWYXR7ji.mjs} +18 -11
  117. package/dist/{useClickOutside-DoOgNtrj.mjs → useRovingFocus-BdnSUVrD.mjs} +4014 -8138
  118. package/dist/{useRules-mD_DY9dy.mjs → useRules-CB2_tvd0.mjs} +2 -2
  119. package/dist/useStorage-BORz1d1g.mjs +162 -0
  120. package/dist/{useTheme-B1lUya5B.mjs → useTheme-ClUmdmvT.mjs} +12 -9
  121. package/dist/utilities/index.d.mts +2 -2
  122. package/dist/utilities/index.mjs +7 -3
  123. package/dist/{v0-COaQncfZ.mjs → v0-A4GLojAr.mjs} +2 -1
  124. package/dist/{v0-Bx5Mi7qE.mjs → v0-BU39ZO4s.mjs} +21 -10
  125. package/dist/{v0-WzS4GAIp.d.mts → v0-D7NA38Vu.d.mts} +1 -1
  126. package/dist/{v0-CG9o3on7.mjs → v0-DL9JtgCO.mjs} +1 -1
  127. package/dist/{v0-QIjffi4E.d.mts → v0-DotXXGXU.d.mts} +1 -1
  128. package/dist/{v0-CHK79mZX.mjs → v0-SwedwC_b.mjs} +3 -4
  129. package/dist/{v0-DWZ_N2GG.d.mts → v0-rSxMW8FJ.d.mts} +1 -1
  130. package/dist/{virtual-CrgGA-o6.d.mts → virtual-C-NsLue0.d.mts} +1 -1
  131. package/dist/{virtual-UumJ2BQ9.mjs → virtual-DFvOoeG6.mjs} +2 -1
  132. package/package.json +10 -7
  133. package/dist/adapters-BHD1lc-K.mjs +0 -4
  134. package/dist/adapters-BYLWDmYl.mjs +0 -5
  135. package/dist/adapters-BxrTL8E3.mjs +0 -4
  136. package/dist/adapters-CBgBd7VE.mjs +0 -2
  137. package/dist/adapters-D64TORDu.mjs +0 -2
  138. package/dist/flagsmith-Cu93hUIF.mjs +0 -48
  139. package/dist/launchdarkly-CLGtJCsI.mjs +0 -38
  140. package/dist/posthog-B5s_KGhy.mjs +0 -47
  141. /package/dist/{adapter-BEJXp-ie.d.mts → adapter-BYzU4Ey5.d.mts} +0 -0
  142. /package/dist/{adapter-B6IrPwib.d.mts → adapter-C5F2huij.d.mts} +0 -0
  143. /package/dist/{adapter-BSKx9WQ7.mjs → adapter-CTsckKAR.mjs} +0 -0
  144. /package/dist/{adapter-D8zizQVP.mjs → adapter-bwZo7b5p.mjs} +0 -0
  145. /package/dist/{index-DHmuwBdv.d.mts → index-B9YmdGZ3.d.mts} +0 -0
  146. /package/dist/{index-PvkxPev3.d.mts → index-BgCkepP_.d.mts} +0 -0
  147. /package/dist/{index-BOn0AAue.d.mts → index-CROz1VSV.d.mts} +0 -0
  148. /package/dist/{index-H_hl6-4b.d.mts → index-DXMlYoiQ.d.mts} +0 -0
  149. /package/dist/{index-C6NnIuDv.d.mts → index-DidZKN6S.d.mts} +0 -0
  150. /package/dist/{index-CKKoxA9V.d.mts → index-FtE8MXJ_.d.mts} +0 -0
  151. /package/dist/{memory-BMpJcQjQ.mjs → memory-BJjkQzxs.mjs} +0 -0
  152. /package/dist/{memory-D-JbdKXg.d.mts → memory-DbyZeNjg.d.mts} +0 -0
  153. /package/dist/{toArray-CD2-OxAz.mjs → toArray-C89ZaEuF.mjs} +0 -0
  154. /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-DB-krEA-.mjs";
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-CTgAedNH.mjs";
6
- import { t as createRegistry } from "./createRegistry-tJ1PPNIr.mjs";
7
- import { t as createSelection } from "./createSelection-DEqhvdoj.mjs";
8
- import { t as createSingle } from "./createSingle-ClzWqRCe.mjs";
9
- import { a as useLocale } from "./useLocale-CbpoxbVU.mjs";
10
- import { C as useRovingFocus, Dt as createNested, E as usePresence, Jt as usePopover, N as useIntersectionObserver, Nt as createForm, P as useImage, T as useProxyModel, Tt as createNumberField, Vt as createCombobox, Xt as createBreadcrumbs, Yt as useDelay, _t as useResizeObserver, c as useTooltip, g as useStack, gt as useElementSize, j as useLazy, jt as createInput, n as useDocumentEventListener, ot as createSlider, pt as createOverflow, qt as useVirtualFocus, r as useEventListener, rt as createStep, st as createRating, t as useClickOutside, ut as createProgress, vt as toElement, w as useRaf, zt as useToggleScope } from "./useClickOutside-DoOgNtrj.mjs";
11
- import { c as useTimer, i as useNotifications } from "./useNotifications-BkKGUl_1.mjs";
12
- import { n as createPagination } from "./adapter-BCVxBtDp.mjs";
13
- import { t as createGroup } from "./createGroup-DsKJMuRd.mjs";
14
- import { i as useTheme } from "./useTheme-B1lUya5B.mjs";
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({ as: __props.as }, slotProps.value.attrs, { onClick }), {
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({ as: __props.as }, slotProps.value.attrs, { onClick }), {
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({ as: __props.as }, slotProps.value.attrs, { onClick }), {
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({ as: __props.as }, slotProps.value.attrs, { onClick }), {
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
- style: styles.value
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", "style"]);
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({ as: __props.as }, slotProps.value.attrs), {
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({ as: __props.as }, slotProps.value.attrs), {
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
- ticket.select();
909
+ selectBest();
879
910
  }
880
911
  });
881
912
  watch(image.isError, (isError) => {
882
913
  if (isError) {
883
914
  ticket.disabled = true;
884
- const first = context.seek("first");
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.circular && __props.perView > 1) {
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
- const first = toValue(carousel.seek("first")?.el);
2269
- const second = toValue(carousel.seek("first", 1)?.el);
2270
- if (!first) return 0;
2271
- /* v8 ignore next 3 -- happy-dom returns 0 for offset* so layout-dependent branches never reach here */
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({ as: __props.as }, slotProps.value.attrs), {
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: { "data-state": context.isOpen.value ? "open" : "closed" }
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
- style: style.value
4009
+ renderless: __props.renderless
3973
4010
  }), {
3974
4011
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
3975
4012
  _: 3
3976
- }, 16, ["as", "style"]);
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
- style: style.value
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", "style"]);
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
- placeholder: __props.placeholder,
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, { as: __props.as }), {
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, { as: __props.as }), {
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({ as: __props.as }, slotProps.value.attrs, { onClick }), {
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
- style: styles.value
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", "style"]);
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({ as: __props.as }, slotProps.value.attrs), {
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({ as: __props.as }, slotProps.value.attrs), {
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({ as: __props.as }, slotProps.value.attrs, { onClick }), {
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": item.ticket.toggle,
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({ as: __props.as }, slotProps.value.attrs), {
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({ as: __props.as }, unref(attrs), {
5371
- onReset,
5372
- onSubmit
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": ticket.toggle
5547
+ "onClick": onClick
5478
5548
  }
5479
5549
  }));
5480
5550
  return (_ctx, _cache) => {
@@ -5856,7 +5926,11 @@ const _sfc_main$96 = /* @__PURE__ */ defineComponent({
5856
5926
  const { event, modifier } = parsed.value;
5857
5927
  if (event === "submit") return false;
5858
5928
  if (modifier === "lazy" && !input.isTouched.value) return false;
5859
- if (modifier === "eager" && input.isValid.value === false) return true;
5929
+ if (modifier === "eager") {
5930
+ if (input.isValid.value === false) return true;
5931
+ if (trigger === "input") return false;
5932
+ return trigger === event;
5933
+ }
5860
5934
  return trigger === event;
5861
5935
  }
5862
5936
  watch(input.isFocused, (val) => {
@@ -6339,7 +6413,11 @@ const _sfc_main$91 = /* @__PURE__ */ defineComponent({
6339
6413
  const { event, modifier } = parsed.value;
6340
6414
  if (event === "submit") return false;
6341
6415
  if (modifier === "lazy" && !input.isTouched.value) return false;
6342
- if (modifier === "eager" && input.isValid.value === false) return true;
6416
+ if (modifier === "eager") {
6417
+ if (input.isValid.value === false) return true;
6418
+ if (trigger === "input") return false;
6419
+ return trigger === event;
6420
+ }
6343
6421
  return trigger === event;
6344
6422
  }
6345
6423
  watch(input.isFocused, (val) => {
@@ -6821,21 +6899,16 @@ const _sfc_main$85 = /* @__PURE__ */ defineComponent({
6821
6899
  raf.cancel();
6822
6900
  document.exitPointerLock();
6823
6901
  }
6824
- const scrubAttrs = toRef(() => ({
6902
+ const slotProps = toRef(() => ({ attrs: {
6825
6903
  "style": { cursor: "ew-resize" },
6826
6904
  "data-disabled": root.isDisabled.value ? true : void 0,
6827
6905
  "data-readonly": root.isReadonly.value ? true : void 0,
6828
6906
  onPointerdown,
6829
6907
  onPointermove,
6830
6908
  onPointerup
6831
- }));
6832
- const slotProps = toRef(() => ({ attrs: {
6833
- "style": { cursor: "ew-resize" },
6834
- "data-disabled": root.isDisabled.value ? true : void 0,
6835
- "data-readonly": root.isReadonly.value ? true : void 0
6836
6909
  } }));
6837
6910
  return (_ctx, _cache) => {
6838
- return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), scrubAttrs.value), {
6911
+ return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
6839
6912
  as: __props.as,
6840
6913
  renderless: __props.renderless
6841
6914
  }), {
@@ -8072,17 +8145,18 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
8072
8145
  attrs: {
8073
8146
  "popovertarget": toValue(popovertarget),
8074
8147
  "type": __props.as === "button" ? "button" : void 0,
8075
- "data-open": context.isOpen.value || void 0
8148
+ "data-open": context.isOpen.value || void 0,
8149
+ "style": style.value
8076
8150
  }
8077
8151
  }));
8078
8152
  return (_ctx, _cache) => {
8079
8153
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
8080
8154
  as: __props.as,
8081
- style: style.value
8155
+ renderless: __props.renderless
8082
8156
  }, slotProps.value.attrs), {
8083
8157
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
8084
8158
  _: 3
8085
- }, 16, ["as", "style"]);
8159
+ }, 16, ["as", "renderless"]);
8086
8160
  };
8087
8161
  }
8088
8162
  });
@@ -8123,7 +8197,9 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
8123
8197
  isOpen: context.isOpen.value,
8124
8198
  attrs: {
8125
8199
  id: id.value,
8126
- popover: ""
8200
+ popover: "",
8201
+ style: style.value,
8202
+ onBeforetoggle: onBeforeToggle
8127
8203
  }
8128
8204
  }));
8129
8205
  return (_ctx, _cache) => {
@@ -8131,11 +8207,11 @@ const _sfc_main$71 = /* @__PURE__ */ defineComponent({
8131
8207
  ref_key: "ref",
8132
8208
  ref,
8133
8209
  as: __props.as,
8134
- style: style.value
8135
- }, slotProps.value.attrs, { onBeforetoggle: onBeforeToggle }), {
8210
+ renderless: __props.renderless
8211
+ }, slotProps.value.attrs), {
8136
8212
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
8137
8213
  _: 3
8138
- }, 16, ["as", "style"]);
8214
+ }, 16, ["as", "renderless"]);
8139
8215
  };
8140
8216
  }
8141
8217
  });
@@ -8243,7 +8319,6 @@ const _sfc_main$70 = /* @__PURE__ */ defineComponent({
8243
8319
  setup(__props, { emit: __emit }) {
8244
8320
  const emit = __emit;
8245
8321
  const ticket = useStack().register({
8246
- disabled: __props.disabled,
8247
8322
  blocking: __props.blocking,
8248
8323
  onDismiss: () => emit("close")
8249
8324
  });
@@ -9283,8 +9358,8 @@ const _sfc_main$57 = /* @__PURE__ */ defineComponent({
9283
9358
  const attrs = useAttrs();
9284
9359
  const rating = createRating({
9285
9360
  value: useModel(__props, "modelValue"),
9286
- size: __props.size,
9287
- half: __props.half
9361
+ size: toRef(() => __props.size),
9362
+ half: toRef(() => __props.half)
9288
9363
  });
9289
9364
  const hoveredValue = shallowRef(null);
9290
9365
  const isHovering = toRef(() => !/* @__PURE__ */ isNull(hoveredValue.value));
@@ -9610,16 +9685,18 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
9610
9685
  if (!ticket.blocking) ticket.dismiss();
9611
9686
  }
9612
9687
  function getSlotProps(ticket) {
9688
+ const zIndex = ticket.zIndex.value - 1;
9613
9689
  return {
9614
9690
  ticket,
9615
- zIndex: ticket.zIndex.value - 1,
9691
+ zIndex,
9616
9692
  isBlocking: ticket.blocking,
9617
- dismiss: () => onDismiss(ticket)
9693
+ dismiss: () => onDismiss(ticket),
9694
+ attrs: {
9695
+ style: { zIndex },
9696
+ onClick: () => onDismiss(ticket)
9697
+ }
9618
9698
  };
9619
9699
  }
9620
- function getStyle(ticket) {
9621
- return { zIndex: ticket.zIndex.value - 1 };
9622
- }
9623
9700
  return (_ctx, _cache) => {
9624
9701
  return __props.teleport ? (openBlock(), createBlock(Teleport, {
9625
9702
  key: 0,
@@ -9629,15 +9706,11 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
9629
9706
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
9630
9707
  key: ticket.id,
9631
9708
  as: __props.as,
9632
- style: getStyle(ticket)
9633
- }, { ref_for: true }, unref(attrs), { onClick: () => onDismiss(ticket) }), {
9709
+ renderless: __props.renderless
9710
+ }, { ref_for: true }, mergeProps(unref(attrs), getSlotProps(ticket).attrs)), {
9634
9711
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getSlotProps(ticket)))]),
9635
9712
  _: 2
9636
- }, 1040, [
9637
- "as",
9638
- "style",
9639
- "onClick"
9640
- ]);
9713
+ }, 1040, ["as", "renderless"]);
9641
9714
  }), 128))]),
9642
9715
  _: 3
9643
9716
  }, 8, ["name"])], 8, ["to"])) : (openBlock(), createBlock(TransitionGroup, {
@@ -9648,15 +9721,11 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
9648
9721
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
9649
9722
  key: ticket.id,
9650
9723
  as: __props.as,
9651
- style: getStyle(ticket)
9652
- }, { ref_for: true }, unref(attrs), { onClick: () => onDismiss(ticket) }), {
9724
+ renderless: __props.renderless
9725
+ }, { ref_for: true }, mergeProps(unref(attrs), getSlotProps(ticket).attrs)), {
9653
9726
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getSlotProps(ticket)))]),
9654
9727
  _: 2
9655
- }, 1040, [
9656
- "as",
9657
- "style",
9658
- "onClick"
9659
- ]);
9728
+ }, 1040, ["as", "renderless"]);
9660
9729
  }), 128))]),
9661
9730
  _: 3
9662
9731
  }, 8, ["name"]));
@@ -9883,7 +9952,6 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
9883
9952
  break;
9884
9953
  }
9885
9954
  }
9886
- const style = toRef(() => context.popover.anchorStyles.value);
9887
9955
  const slotProps = toRef(() => ({
9888
9956
  isOpen: context.isOpen.value,
9889
9957
  attrs: {
@@ -9893,21 +9961,21 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
9893
9961
  "aria-expanded": context.isOpen.value,
9894
9962
  "aria-haspopup": "listbox",
9895
9963
  "aria-controls": context.listboxId,
9896
- "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
9897
9968
  }
9898
9969
  }));
9899
9970
  return (_ctx, _cache) => {
9900
9971
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
9901
9972
  ref: "activator",
9902
9973
  as: __props.as,
9903
- style: style.value
9904
- }, slotProps.value.attrs, {
9905
- onClick,
9906
- onKeydown
9907
- }), {
9974
+ renderless: __props.renderless
9975
+ }, slotProps.value.attrs), {
9908
9976
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
9909
9977
  _: 3
9910
- }, 16, ["as", "style"]);
9978
+ }, 16, ["as", "renderless"]);
9911
9979
  };
9912
9980
  }
9913
9981
  });
@@ -9937,21 +10005,20 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
9937
10005
  "id": context.listboxId,
9938
10006
  "role": "listbox",
9939
10007
  "aria-multiselectable": context.multiple || void 0,
9940
- "tabindex": -1
10008
+ "tabindex": -1,
10009
+ "style": context.popover.contentStyles.value
9941
10010
  }
9942
10011
  }));
9943
- const style = toRef(() => context.popover.contentStyles.value);
9944
10012
  return (_ctx, _cache) => {
9945
10013
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
9946
10014
  ref_key: "content",
9947
- ref: content
9948
- }, slotProps.value.attrs, {
10015
+ ref: content,
9949
10016
  as: __props.as,
9950
- style: style.value
9951
- }), {
10017
+ renderless: __props.renderless
10018
+ }, slotProps.value.attrs), {
9952
10019
  default: withCtx(() => [unref(hasContent) ? renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 0 }, slotProps.value))) : createCommentVNode("v-if", true)]),
9953
10020
  _: 3
9954
- }, 16, ["as", "style"]);
10021
+ }, 16, ["as", "renderless"]);
9955
10022
  };
9956
10023
  }
9957
10024
  });
@@ -9975,10 +10042,13 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
9975
10042
  }
9976
10043
  }));
9977
10044
  return (_ctx, _cache) => {
9978
- return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({ as: __props.as }, slotProps.value.attrs), {
10045
+ return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
10046
+ as: __props.as,
10047
+ renderless: __props.renderless
10048
+ }, slotProps.value.attrs), {
9979
10049
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
9980
10050
  _: 3
9981
- }, 16, ["as"]);
10051
+ }, 16, ["as", "renderless"]);
9982
10052
  };
9983
10053
  }
9984
10054
  });
@@ -10031,10 +10101,13 @@ const _sfc_main$48 = /* @__PURE__ */ defineComponent({
10031
10101
  }
10032
10102
  }));
10033
10103
  return (_ctx, _cache) => {
10034
- return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({ as: __props.as }, slotProps.value.attrs), {
10104
+ return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
10105
+ as: __props.as,
10106
+ renderless: __props.renderless
10107
+ }, slotProps.value.attrs), {
10035
10108
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
10036
10109
  _: 3
10037
- }, 16, ["as"]);
10110
+ }, 16, ["as", "renderless"]);
10038
10111
  };
10039
10112
  }
10040
10113
  });
@@ -10054,11 +10127,12 @@ const _sfc_main$47 = /* @__PURE__ */ defineComponent({
10054
10127
  return (_ctx, _cache) => {
10055
10128
  return !hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
10056
10129
  key: 0,
10057
- as: __props.as
10130
+ as: __props.as,
10131
+ renderless: __props.renderless
10058
10132
  }, {
10059
10133
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", { hasValue: hasValue.value })]),
10060
10134
  _: 3
10061
- }, 8, ["as"])) : createCommentVNode("v-if", true);
10135
+ }, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
10062
10136
  };
10063
10137
  }
10064
10138
  });
@@ -10097,11 +10171,12 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
10097
10171
  return (_ctx, _cache) => {
10098
10172
  return hasValue.value ? (openBlock(), createBlock(unref(_sfc_main$170), {
10099
10173
  key: 0,
10100
- as: __props.as
10174
+ as: __props.as,
10175
+ renderless: __props.renderless
10101
10176
  }, {
10102
10177
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), () => [createTextVNode(toDisplayString(values.value[0]), 1)])]),
10103
10178
  _: 3
10104
- }, 8, ["as"])) : createCommentVNode("v-if", true);
10179
+ }, 8, ["as", "renderless"])) : createCommentVNode("v-if", true);
10105
10180
  };
10106
10181
  }
10107
10182
  });
@@ -10363,6 +10438,10 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
10363
10438
  disabled: () => toValue(__props.disabled) ?? false
10364
10439
  });
10365
10440
  const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(selection.disabled));
10441
+ function onClick() {
10442
+ if (toValue(isDisabled)) return;
10443
+ ticket.toggle();
10444
+ }
10366
10445
  onBeforeUnmount(() => {
10367
10446
  selection.unregister(ticket.id);
10368
10447
  });
@@ -10380,7 +10459,7 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
10380
10459
  "aria-disabled": toValue(isDisabled),
10381
10460
  "data-selected": toValue(ticket.isSelected) || void 0,
10382
10461
  "data-disabled": toValue(isDisabled) || void 0,
10383
- "onClick": ticket.toggle
10462
+ "onClick": onClick
10384
10463
  }
10385
10464
  }));
10386
10465
  return (_ctx, _cache) => {
@@ -10508,6 +10587,10 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
10508
10587
  disabled: () => toValue(__props.disabled) ?? false
10509
10588
  });
10510
10589
  const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(single.disabled));
10590
+ function onClick() {
10591
+ if (toValue(isDisabled)) return;
10592
+ ticket.toggle();
10593
+ }
10511
10594
  onBeforeUnmount(() => {
10512
10595
  single.unregister(ticket.id);
10513
10596
  });
@@ -10525,7 +10608,7 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
10525
10608
  "aria-disabled": toValue(isDisabled),
10526
10609
  "data-selected": toValue(ticket.isSelected) || void 0,
10527
10610
  "data-disabled": toValue(isDisabled) || void 0,
10528
- "onClick": ticket.toggle
10611
+ "onClick": onClick
10529
10612
  }
10530
10613
  }));
10531
10614
  return (_ctx, _cache) => {
@@ -11168,6 +11251,12 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
11168
11251
  renderless: { type: Boolean }
11169
11252
  },
11170
11253
  setup(__props) {
11254
+ function getSlotProps(zIndex) {
11255
+ return {
11256
+ zIndex,
11257
+ attrs: { style: { zIndex } }
11258
+ };
11259
+ }
11171
11260
  return (_ctx, _cache) => {
11172
11261
  return openBlock(), createBlock(unref(_sfc_main$70), {
11173
11262
  disabled: __props.teleport === false,
@@ -11175,11 +11264,11 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
11175
11264
  }, {
11176
11265
  default: withCtx(({ zIndex }) => [createVNode(unref(_sfc_main$170), mergeProps({
11177
11266
  as: __props.as,
11178
- style: { zIndex }
11179
- }, _ctx.$attrs), {
11180
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ zIndex })))]),
11267
+ renderless: __props.renderless
11268
+ }, mergeProps(_ctx.$attrs, getSlotProps(zIndex).attrs)), {
11269
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(getSlotProps(zIndex))))]),
11181
11270
  _: 2
11182
- }, 1040, ["as", "style"])]),
11271
+ }, 1040, ["as", "renderless"])]),
11183
11272
  _: 3
11184
11273
  }, 8, ["disabled", "to"]);
11185
11274
  };
@@ -11246,11 +11335,13 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
11246
11335
  return (_ctx, _cache) => {
11247
11336
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
11248
11337
  ref_key: "container",
11249
- ref: container
11250
- }, slotProps.value.attrs, { as: __props.as }), {
11338
+ ref: container,
11339
+ as: __props.as,
11340
+ renderless: __props.renderless
11341
+ }, slotProps.value.attrs), {
11251
11342
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
11252
11343
  _: 3
11253
- }, 16, ["as"]);
11344
+ }, 16, ["as", "renderless"]);
11254
11345
  };
11255
11346
  }
11256
11347
  });
@@ -11283,10 +11374,13 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
11283
11374
  attrs: { role: "status" }
11284
11375
  }));
11285
11376
  return (_ctx, _cache) => {
11286
- return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, { as: __props.as }), {
11377
+ return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
11378
+ as: __props.as,
11379
+ renderless: __props.renderless
11380
+ }, slotProps.value.attrs), {
11287
11381
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
11288
11382
  _: 3
11289
- }, 16, ["as"]);
11383
+ }, 16, ["as", "renderless"]);
11290
11384
  };
11291
11385
  }
11292
11386
  });
@@ -11301,10 +11395,13 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
11301
11395
  },
11302
11396
  setup(__props) {
11303
11397
  return (_ctx, _cache) => {
11304
- return openBlock(), createBlock(unref(_sfc_main$170), { as: __props.as }, {
11398
+ return openBlock(), createBlock(unref(_sfc_main$170), {
11399
+ as: __props.as,
11400
+ renderless: __props.renderless
11401
+ }, {
11305
11402
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
11306
11403
  _: 3
11307
- }, 8, ["as"]);
11404
+ }, 8, ["as", "renderless"]);
11308
11405
  };
11309
11406
  }
11310
11407
  });
@@ -11330,10 +11427,13 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
11330
11427
  "onClick": onClick
11331
11428
  } }));
11332
11429
  return (_ctx, _cache) => {
11333
- return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(slotProps.value.attrs, { as: __props.as }), {
11430
+ return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({
11431
+ as: __props.as,
11432
+ renderless: __props.renderless
11433
+ }, slotProps.value.attrs), {
11334
11434
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
11335
11435
  _: 3
11336
- }, 16, ["as"]);
11436
+ }, 16, ["as", "renderless"]);
11337
11437
  };
11338
11438
  }
11339
11439
  });
@@ -12187,6 +12287,10 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
12187
12287
  disabled: () => toValue(__props.disabled) ?? false
12188
12288
  });
12189
12289
  const isDisabled = toRef(() => toValue(ticket.disabled) || toValue(step.disabled));
12290
+ function onClick() {
12291
+ if (toValue(isDisabled)) return;
12292
+ ticket.toggle();
12293
+ }
12190
12294
  onBeforeUnmount(() => {
12191
12295
  step.unregister(ticket.id);
12192
12296
  });
@@ -12204,7 +12308,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
12204
12308
  "aria-disabled": toValue(isDisabled),
12205
12309
  "data-selected": toValue(ticket.isSelected) || void 0,
12206
12310
  "data-disabled": toValue(isDisabled) || void 0,
12207
- "onClick": ticket.toggle
12311
+ "onClick": onClick
12208
12312
  }
12209
12313
  }));
12210
12314
  return (_ctx, _cache) => {
@@ -12590,15 +12694,15 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
12590
12694
  "aria-describedby": __props.ariaDescribedby || void 0,
12591
12695
  "tabindex": isDisabled.value ? void 0 : 0,
12592
12696
  "data-state": dataState.value,
12593
- "data-disabled": isDisabled.value ? true : void 0
12697
+ "data-disabled": isDisabled.value ? true : void 0,
12698
+ onClick,
12699
+ onKeydown
12594
12700
  }
12595
12701
  }));
12596
12702
  return (_ctx, _cache) => {
12597
12703
  return openBlock(), createBlock(unref(_sfc_main$170), mergeProps(mergeProps(unref(attrs), slotProps.value.attrs), {
12598
12704
  as: __props.as,
12599
- renderless: __props.renderless,
12600
- onClick,
12601
- onKeydown
12705
+ renderless: __props.renderless
12602
12706
  }), {
12603
12707
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
12604
12708
  _: 3
@@ -14115,45 +14219,31 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
14115
14219
  open: ticket.open,
14116
14220
  close: ticket.close,
14117
14221
  activate: ticket.activate,
14118
- 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
+ }
14119
14238
  }));
14120
14239
  return (_ctx, _cache) => {
14121
- return openBlock(), createBlock(unref(_sfc_main$170), {
14122
- ref: "root",
14123
- "aria-disabled": slotProps.value.isDisabled,
14124
- "aria-expanded": hasContent.value ? slotProps.value.isOpen : void 0,
14125
- "aria-level": slotProps.value.depth + 1,
14126
- "aria-posinset": unref(ticket).position(),
14127
- "aria-selected": slotProps.value.isSelected,
14128
- "aria-setsize": unref(ticket).siblings().length,
14129
- as: __props.as,
14130
- "data-active": slotProps.value.isActive || void 0,
14131
- "data-disabled": slotProps.value.isDisabled || void 0,
14132
- "data-open": slotProps.value.isOpen || void 0,
14133
- "data-selected": slotProps.value.isSelected || void 0,
14134
- renderless: __props.renderless,
14135
- role: "treeitem",
14136
- style: normalizeStyle({ "--v0-treeview-depth": slotProps.value.depth }),
14137
- tabindex: unref(roving) ? unref(roving).isTabbable(unref(ticket).id) ? 0 : -1 : void 0
14138
- }, {
14240
+ return openBlock(), createBlock(unref(_sfc_main$170), mergeProps({ ref: "root" }, slotProps.value.attrs, {
14241
+ as: __props.as,
14242
+ renderless: __props.renderless
14243
+ }), {
14139
14244
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))]),
14140
14245
  _: 3
14141
- }, 8, [
14142
- "aria-disabled",
14143
- "aria-expanded",
14144
- "aria-level",
14145
- "aria-posinset",
14146
- "aria-selected",
14147
- "aria-setsize",
14148
- "as",
14149
- "data-active",
14150
- "data-disabled",
14151
- "data-open",
14152
- "data-selected",
14153
- "renderless",
14154
- "style",
14155
- "tabindex"
14156
- ]);
14246
+ }, 16, ["as", "renderless"]);
14157
14247
  };
14158
14248
  }
14159
14249
  });