@astryx-vue/core 0.17.0 → 0.19.0

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 (122) hide show
  1. package/dist/AvatarGroup/index.d.ts +1 -1
  2. package/dist/Banner/index.d.ts +1 -1
  3. package/dist/BottomSheet/index.d.ts +1 -1
  4. package/dist/ButtonGroup/index.d.ts +1 -1
  5. package/dist/Calendar/index.d.ts +1 -1
  6. package/dist/Calendar/index.js +1 -1
  7. package/dist/{Calendar-Bk2nGoT-.js → Calendar-DSRNuw3y.js} +37 -13
  8. package/dist/Carousel/index.d.ts +1 -1
  9. package/dist/Center/index.d.ts +1 -1
  10. package/dist/Chat/index.js +1 -1
  11. package/dist/{Chat-Wq7e98zS.js → Chat-CXwXzlZ0.js} +1 -1
  12. package/dist/CheckboxInput/index.d.ts +1 -1
  13. package/dist/CheckboxList/index.d.ts +1 -1
  14. package/dist/ClickableCard/index.d.ts +1 -1
  15. package/dist/Collapsible/index.d.ts +1 -1
  16. package/dist/Collapsible/index.js +1 -1
  17. package/dist/{Collapsible-Dk9BQQbT.js → Collapsible-ExzU7vC0.js} +104 -40
  18. package/dist/ContextMenu/index.d.ts +1 -1
  19. package/dist/DateInput/index.d.ts +1 -1
  20. package/dist/DateInput/index.js +1 -1
  21. package/dist/{DateInput-BitZfGEY.js → DateInput-s2H0orUW.js} +3 -3
  22. package/dist/DateRangeInput/index.d.ts +1 -1
  23. package/dist/DateRangeInput/index.js +1 -1
  24. package/dist/{DateRangeInput-kxXBsUTU.js → DateRangeInput-Dn9I2PMM.js} +7 -7
  25. package/dist/DateTimeInput/index.d.ts +1 -1
  26. package/dist/DateTimeInput/index.js +1 -1
  27. package/dist/{DateTimeInput-Cfkuec_h.js → DateTimeInput-BR_tdURg.js} +47 -17
  28. package/dist/Dialog/index.d.ts +1 -1
  29. package/dist/Drawer/index.d.ts +1 -1
  30. package/dist/FileInput/index.d.ts +1 -1
  31. package/dist/HoverCard/index.d.ts +1 -1
  32. package/dist/HoverCard/index.js +1 -1
  33. package/dist/{HoverCard-DVPLeccv.js → HoverCard-FHYH3VXg.js} +50 -2
  34. package/dist/InfoTip/index.d.ts +1 -1
  35. package/dist/InternationalizationProvider/index.d.ts +1 -1
  36. package/dist/InternationalizationProvider/index.js +1 -1
  37. package/dist/{InternationalizationProvider-Dr5GE6f0.js → InternationalizationProvider-Ddo_-tLK.js} +1 -1
  38. package/dist/Link/index.d.ts +1 -1
  39. package/dist/{MediaTheme-Bkj-_DFN.js → MediaTheme-DfcdEWx-.js} +2 -36
  40. package/dist/MoreMenu/index.d.ts +1 -1
  41. package/dist/MultiSelector/index.d.ts +1 -1
  42. package/dist/NumberInput/index.d.ts +1 -1
  43. package/dist/NumberInput/index.js +1 -1
  44. package/dist/{NumberInput-BPeesTRv.js → NumberInput-BsWTXomE.js} +2 -23
  45. package/dist/OverflowList/index.d.ts +1 -1
  46. package/dist/PowerSearch/index.d.ts +1 -1
  47. package/dist/PowerSearch/index.js +1 -1
  48. package/dist/{PowerSearch-BAOqpQag.js → PowerSearch-CDEn08Pe.js} +6 -6
  49. package/dist/Radio/index.d.ts +1 -1
  50. package/dist/RadioList/index.d.ts +1 -1
  51. package/dist/ScrollableArea/index.d.ts +1 -1
  52. package/dist/SelectableCard/index.d.ts +1 -1
  53. package/dist/Selector/index.d.ts +1 -1
  54. package/dist/SideNav/index.d.ts +1 -1
  55. package/dist/Switch/index.d.ts +1 -1
  56. package/dist/Table/index.d.ts +1 -1
  57. package/dist/Table/index.js +1 -1
  58. package/dist/{Table-CRKljXg4.js → Table-WukSceMV.js} +376 -5
  59. package/dist/TextArea/index.d.ts +1 -1
  60. package/dist/TextInput/index.d.ts +1 -1
  61. package/dist/Theme/index.js +3 -2
  62. package/dist/{Theme-iqi6AvU_.js → Theme-1RJVaRgz.js} +3 -38
  63. package/dist/{TimeField-CBWgdA1Y.js → TimeField-BM-rVFhC.js} +419 -140
  64. package/dist/TimeInput/index.d.ts +2 -2
  65. package/dist/TimeInput/index.js +1 -1
  66. package/dist/{TimeInput-8ASOMV3B.js → TimeInput-CkZfhhAr.js} +28 -8
  67. package/dist/Timer/index.d.ts +1 -1
  68. package/dist/Timer/index.js +1 -1
  69. package/dist/{Timer-C8evnsTE.js → Timer-DiIs5GLA.js} +24 -15
  70. package/dist/Timestamp/index.d.ts +1 -1
  71. package/dist/Timestamp/index.js +1 -1
  72. package/dist/{Timestamp-CgvZe6vH.js → Timestamp-D9Jyk9sD.js} +152 -96
  73. package/dist/Toast/index.js +1 -1
  74. package/dist/{Toast-CzbqvHDN.js → Toast-D4Q6wvYu.js} +1 -1
  75. package/dist/ToggleButton/index.d.ts +1 -1
  76. package/dist/Token/index.d.ts +1 -1
  77. package/dist/Toolbar/index.d.ts +1 -1
  78. package/dist/Tooltip/index.d.ts +1 -1
  79. package/dist/TopNav/index.d.ts +1 -1
  80. package/dist/TreeList/index.d.ts +1 -1
  81. package/dist/TreeList/index.js +1 -1
  82. package/dist/{TreeList-CNj4KnHH.js → TreeList-ugSF9DWj.js} +117 -2
  83. package/dist/composables/index.d.ts +3 -2
  84. package/dist/composables/index.js +3 -3
  85. package/dist/{composables-BKHcPgN0.js → composables-BgfubKnk.js} +39 -332
  86. package/dist/{format-CMHyAMn3.js → format-mffyPc-L.js} +34 -4
  87. package/dist/handle-BPXdHbkr.js +458 -0
  88. package/dist/{index-9eluGe3a.d.ts → index-BA8exXNP.d.ts} +2 -1
  89. package/dist/{index-tuNsmJxw.d.ts → index-BLnvQ4Oj.d.ts} +9 -2
  90. package/dist/{index-B0iRA00v.d.ts → index-BapQGST1.d.ts} +2 -2
  91. package/dist/{index-D31bgBoy.d.ts → index-BdZCLUgY.d.ts} +1 -1
  92. package/dist/{index-DK0Wdo9N.d.ts → index-C9OzEvE_.d.ts} +3 -3
  93. package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
  94. package/dist/{index-CMLnSg3T.d.ts → index-CKnr0JlT.d.ts} +7 -0
  95. package/dist/{index-C1qJlC65.d.ts → index-CQ-sq76o.d.ts} +1 -1
  96. package/dist/{index-85RFPeV0.d.ts → index-CULdl3Dg.d.ts} +3 -3
  97. package/dist/{index-BxWCX2pJ.d.ts → index-DFLPv9io.d.ts} +3 -3
  98. package/dist/{index-DofC9Rll.d.ts → index-Otl047R1.d.ts} +1 -1
  99. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  100. package/dist/{index-DYabo8TI.d.ts → index-eCp-ElSp.d.ts} +1 -1
  101. package/dist/{index-B95VIgRl.d.ts → index-t27MvEzT.d.ts} +70 -23
  102. package/dist/{index-wY6dKz6c.d.ts → index-yQc-te9a.d.ts} +7 -0
  103. package/dist/index.d.ts +19 -18
  104. package/dist/index.js +25 -24
  105. package/dist/landing-Bs0aMIsR.js +2049 -0
  106. package/dist/{loadCatalog-BJwcyX8i.d.ts → loadCatalog-C4h9SmJs.d.ts} +2 -0
  107. package/dist/{loadCatalog-C1kms5sO.js → loadCatalog-DsEKSY3U.js} +5 -1
  108. package/dist/locale/index.d.ts +2 -2
  109. package/dist/locale/index.js +4 -4
  110. package/dist/{locale-CHhsd9Mq.js → locale-C-Y-13BP.js} +1 -1
  111. package/dist/motionTokenDefaults-EFzpiAF5.js +38 -0
  112. package/dist/timeFormat-CqrwFE42.js +203 -0
  113. package/dist/{timestamp-BMYQsFDj.js → timestamp-saJUedIU.js} +4 -2
  114. package/dist/tokenName-0U-WEH09.js +36 -0
  115. package/dist/unicodeDigits-_BYIJcAu.js +46 -0
  116. package/dist/useAnimatedLayout-C0koWm4a.d.ts +56 -0
  117. package/dist/{useTimeValue-_XW9g2V1.js → useTimeValue-CcKrnO8z.js} +13 -6
  118. package/package.json +1 -1
  119. package/styles/calendar.css +5 -1
  120. package/styles/table.css +19 -0
  121. package/styles/timestamp.css +22 -10
  122. package/dist/{index-D8lv2BiD.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
@@ -1,2 +1,2 @@
1
- import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-B95VIgRl.js";
1
+ import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-t27MvEzT.js";
2
2
  export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
@@ -1,2 +1,2 @@
1
- import { Co as BannerStatus, So as BannerSlots, bo as BannerEmits, vo as _default, xo as BannerProps, yo as BannerContainer } from "../index-B95VIgRl.js";
1
+ import { Co as BannerSlots, So as BannerProps, bo as BannerContainer, wo as BannerStatus, xo as BannerEmits, yo as _default } from "../index-t27MvEzT.js";
2
2
  export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
@@ -1,2 +1,2 @@
1
- import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-BxWCX2pJ.js";
1
+ import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-DFLPv9io.js";
2
2
  export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
@@ -1,2 +1,2 @@
1
- import { _o as ButtonGroupOrientation, go as ButtonGroupSlots, ho as ButtonGroupProps, mo as _default } from "../index-B95VIgRl.js";
1
+ import { _o as ButtonGroupSlots, go as ButtonGroupProps, ho as _default, vo as ButtonGroupOrientation } from "../index-t27MvEzT.js";
2
2
  export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
@@ -1,2 +1,2 @@
1
- import { co as CalendarEmits, do as CalendarProps, fo as CalendarRangeValue, lo as CalendarHandle, po as CalendarSlots, so as _default, uo as CalendarHandleRef } from "../index-B95VIgRl.js";
1
+ import { co as _default, do as CalendarHandleRef, fo as CalendarProps, lo as CalendarEmits, mo as CalendarSlots, po as CalendarRangeValue, uo as CalendarHandle } from "../index-t27MvEzT.js";
2
2
  export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Calendar-Bk2nGoT-.js";
1
+ import { t as _sfc_main } from "../Calendar-DSRNuw3y.js";
2
2
  export { _sfc_main as Calendar };
@@ -4,7 +4,7 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
4
4
  import { c as resolveWeekStart } from "./useDateRange-CIXoE_8k.js";
5
5
  import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
6
6
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
7
- import { n as standaloneShortWeekdayNames, r as weekdayNames, t as formatCalendarMonth } from "./format-CMHyAMn3.js";
7
+ import { i as weekdayNames, n as formatDayNumber, r as standaloneShortWeekdayNames, t as formatCalendarMonth } from "./format-mffyPc-L.js";
8
8
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
9
9
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, nextTick, normalizeClass, onMounted, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
10
10
  import { CalendarDate } from "@internationalized/date";
@@ -68,24 +68,48 @@ function formatWeekdayDate(date, locale) {
68
68
  }).format(fromCalendarDate(date));
69
69
  }
70
70
  /**
71
- * The month the calendar opens on. An explicit focus date wins, then the
72
- * selection. Otherwise today is clamped into the min/max window so the first
73
- * paint is not an all-disabled month.
71
+ * The month the calendar opens on. An explicit focus date wins and is never
72
+ * second-guessed. Then the selection, whose month is shown even when it lies
73
+ * outside min/max. Otherwise today is clamped into the min/max window so the
74
+ * first paint is not an all-disabled month.
75
+ *
76
+ * With two months, a selection or today inside max's month still opens one
77
+ * pane earlier, so max's month is the last pane and the panes before it keep
78
+ * selectable days. That shift never crosses min's month.
74
79
  */
75
80
  function initialCalendarFocus(options) {
76
81
  if (options.focusDate) return toCalendarDate(options.focusDate);
77
- if (options.selected) return toCalendarDate(options.selected);
78
- if (options.rangeStart) return toCalendarDate(options.rangeStart);
79
- const today = options.today ? toCalendarDate(options.today) : toCalendarDate(/* @__PURE__ */ new Date());
80
82
  const min = options.min ? toCalendarDate(options.min) : null;
81
83
  const max = options.max ? toCalendarDate(options.max) : null;
84
+ const panes = options.numberOfMonths;
85
+ if (options.selected) return keepLastPaneWithinMax(toCalendarDate(options.selected), min, max, panes);
86
+ if (options.rangeStart) return keepLastPaneWithinMax(toCalendarDate(options.rangeStart), min, max, panes);
87
+ const today = options.today ? toCalendarDate(options.today) : toCalendarDate(/* @__PURE__ */ new Date());
82
88
  if (min && today.compare(min) < 0) return min;
83
89
  if (max && today.compare(max) > 0) {
84
- const shifted = shiftMonth(max, -Math.max(0, options.numberOfMonths - 1));
90
+ const shifted = shiftMonth(max, -Math.max(0, panes - 1));
85
91
  if (min && shifted.compare(new CalendarDate(min.year, min.month, 1)) < 0) return min;
86
92
  return shifted;
87
93
  }
88
- return today;
94
+ return keepLastPaneWithinMax(today, min, max, panes);
95
+ }
96
+ /**
97
+ * `date` 所在的月份显示着,但后面的窗格会整个落在 max 之后时,把起始月往前挪:
98
+ * 最后一个窗格落在 max 所在的月份,第一个窗格不早于 min 所在的月份。
99
+ * 窗格本来就在 max 的月份结束,或者 `date` 自己的月份已经晚于 max 的月份,就原样返回。
100
+ */
101
+ function keepLastPaneWithinMax(date, min, max, numberOfMonths) {
102
+ const lastPane = Math.max(0, numberOfMonths - 1);
103
+ if (!max || lastPane === 0) return date;
104
+ const month = monthIndex(date);
105
+ const maxMonth = monthIndex(max);
106
+ const latestFirstPane = maxMonth - lastPane;
107
+ if (month <= latestFirstPane || month > maxMonth) return date;
108
+ const earliest = shiftMonth(max, -lastPane);
109
+ if (!min) return earliest;
110
+ const minMonth = monthIndex(min);
111
+ if (latestFirstPane >= minMonth) return earliest;
112
+ return month > minMonth ? min : date;
89
113
  }
90
114
  /** `date` 在 `start` 和 `end` 之间(含两端)。任何一端缺了就不在。 */
91
115
  function inSpan(date, start, end) {
@@ -141,9 +165,9 @@ function buildCalendarWeeks(year, month, weekStartsOn = 0, variableRows = false)
141
165
  });
142
166
  cursor = cursor.add({ days: 1 });
143
167
  }
144
- const anchor = days.find((day) => !day.outside)?.date ?? days[0].date;
168
+ const thursday = days[(4 - weekStartsOn + 7) % 7].date;
145
169
  weeks.push({
146
- number: isoWeekNumber(anchor),
170
+ number: isoWeekNumber(thursday),
147
171
  days
148
172
  });
149
173
  }
@@ -664,7 +688,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
664
688
  key: `${month.year}-${month.month}-${rowIndex}`,
665
689
  class: "astryx-calendar-row",
666
690
  role: "row"
667
- }, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(week.number), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(paint(week), (day) => {
691
+ }, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(unref(formatDayNumber)(week.number, unref(locale))), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(paint(week), (day) => {
668
692
  return openBlock(), createElementBlock("div", {
669
693
  key: day.iso,
670
694
  class: "astryx-calendar-gridcell",
@@ -704,7 +728,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
704
728
  isDisabled: day.disabled,
705
729
  isToday: day.today,
706
730
  isInMonth: !day.outside
707
- }, () => [createElementVNode("span", _hoisted_14, toDisplayString(day.text), 1)])], 42, _hoisted_13)) : createCommentVNode("v-if", true)], 8, _hoisted_12);
731
+ }, () => [createElementVNode("span", _hoisted_14, toDisplayString(unref(formatDayNumber)(day.text, unref(locale))), 1)])], 42, _hoisted_13)) : createCommentVNode("v-if", true)], 8, _hoisted_12);
708
732
  }), 128))]);
709
733
  }), 128))], 40, _hoisted_7)]);
710
734
  }), 128))])], 10, _hoisted_1);
@@ -1,2 +1,2 @@
1
- import { ao as CarouselProps, io as CarouselHandle, no as _default, oo as CarouselSlots, ro as CarouselGap } from "../index-B95VIgRl.js";
1
+ import { ao as CarouselHandle, io as CarouselGap, oo as CarouselProps, ro as _default, so as CarouselSlots } from "../index-t27MvEzT.js";
2
2
  export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
@@ -1,2 +1,2 @@
1
- import { a as CenterSlots, i as CenterSizeValue, n as CenterAxis, r as CenterProps, t as _default } from "../index-BKnyTWPM.js";
1
+ import { a as CenterSlots, i as CenterSizeValue, n as CenterAxis, r as CenterProps, t as _default } from "../index-ZbNwGVkS.js";
2
2
  export { _default as Center, type CenterAxis, type CenterProps, type CenterSizeValue, type CenterSlots };
@@ -1,2 +1,2 @@
1
- import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-Wq7e98zS.js";
1
+ import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-CXwXzlZ0.js";
2
2
  export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
@@ -13,7 +13,7 @@ import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
13
13
  import { t as _sfc_main$27 } from "./Badge-BbPS_49c.js";
14
14
  import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
15
15
  import { t as chatMessages } from "./chat-BUFYB3bA.js";
16
- import { t as _sfc_main$29 } from "./HoverCard-DVPLeccv.js";
16
+ import { t as _sfc_main$29 } from "./HoverCard-FHYH3VXg.js";
17
17
  import { t as _sfc_main$30 } from "./Spinner-DEVPDsD0.js";
18
18
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
19
19
  import "../styles/layer.css";
@@ -1,2 +1,2 @@
1
- import { $a as CheckboxInputProps, Qa as CheckboxInputEmits, Xa as CheckboxInputChangeAction, Ya as _default, Za as CheckboxInputChangeEvent, eo as CheckboxInputSlots, to as CheckboxValue } from "../index-B95VIgRl.js";
1
+ import { $a as CheckboxInputEmits, Qa as CheckboxInputChangeEvent, Xa as _default, Za as CheckboxInputChangeAction, eo as CheckboxInputProps, no as CheckboxValue, to as CheckboxInputSlots } from "../index-t27MvEzT.js";
2
2
  export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
@@ -1,2 +1,2 @@
1
- import { Ga as CheckboxListEmits, Ja as CheckboxListProps, Ka as CheckboxListItemEmits, Ua as _default$1, Wa as _default, qa as CheckboxListItemProps } from "../index-B95VIgRl.js";
1
+ import { Ga as _default, Ja as CheckboxListItemProps, Ka as CheckboxListEmits, Wa as _default$1, Ya as CheckboxListProps, qa as CheckboxListItemEmits } from "../index-t27MvEzT.js";
2
2
  export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
@@ -1,2 +1,2 @@
1
- import { Ba as ClickableCardEmits, Ha as ClickableCardSlots, Va as ClickableCardProps, za as _default } from "../index-B95VIgRl.js";
1
+ import { Ba as _default, Ha as ClickableCardProps, Ua as ClickableCardSlots, Va as ClickableCardEmits } from "../index-t27MvEzT.js";
2
2
  export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
@@ -1,2 +1,2 @@
1
- import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-wY6dKz6c.js";
1
+ import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-yQc-te9a.js";
2
2
  export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, r as useCollapsible, t as _sfc_main$1 } from "../Collapsible-Dk9BQQbT.js";
1
+ import { n as _sfc_main, r as useCollapsible, t as _sfc_main$1 } from "../Collapsible-ExzU7vC0.js";
2
2
  export { _sfc_main as Collapsible, _sfc_main$1 as CollapsibleGroup, useCollapsible };
@@ -1,8 +1,53 @@
1
1
  import { t as usePressFeedback } from "./usePressFeedback-2YAzGB6C.js";
2
2
  import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
3
3
  import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
4
- import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeModels, mergeProps, openBlock, provide, renderSlot, shallowRef, toDisplayString, toValue, unref, useId, useModel, useTemplateRef, vShow, withCtx, withDirectives } from "vue";
4
+ import { a as playLayoutChange, i as releaseLayoutExit, n as reportLayoutChange, r as holdLayoutExit, t as applyLayoutChangeTransition } from "./landing-Bs0aMIsR.js";
5
+ import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeModels, mergeProps, onMounted, openBlock, provide, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
5
6
  import "../styles/collapsible.css";
7
+ //#region src/composables/internal/layoutDisclosure.ts
8
+ function useLayoutDisclosure(options) {
9
+ const isExiting = ref(false);
10
+ let pending = null;
11
+ function endExit() {
12
+ isExiting.value = false;
13
+ }
14
+ watch(options.isOpen, (isOpen, wasOpen) => {
15
+ options.onBeforeChange?.(wasOpen);
16
+ const handle = options.animatedLayout();
17
+ if (handle != null) {
18
+ applyLayoutChangeTransition(handle, options.chevron());
19
+ pending = reportLayoutChange(handle, options.content);
20
+ pending.measureBefore();
21
+ }
22
+ isExiting.value = !isOpen && handle != null;
23
+ }, { flush: "pre" });
24
+ watch(options.isOpen, (isOpen) => {
25
+ const change = pending;
26
+ pending = null;
27
+ const content = options.content();
28
+ if (content == null) return;
29
+ const isMeasured = change?.animate() ?? false;
30
+ const handle = options.animatedLayout();
31
+ if (isOpen) {
32
+ releaseLayoutExit(content);
33
+ if (isMeasured) playLayoutChange(handle, content);
34
+ return;
35
+ }
36
+ const isHeld = isExiting.value && isMeasured && holdLayoutExit(handle, content, endExit);
37
+ if (isExiting.value && !isHeld) endExit();
38
+ }, { flush: "post" });
39
+ watch(() => !options.isOpen() && !isExiting.value, (isHidden) => {
40
+ const content = options.content();
41
+ if (isHidden && content != null) releaseLayoutExit(content);
42
+ }, { flush: "post" });
43
+ function clearChevronWithoutHandle() {
44
+ if (options.animatedLayout() == null) applyLayoutChangeTransition(null, options.chevron());
45
+ }
46
+ onMounted(clearChevronWithoutHandle);
47
+ watch(options.animatedLayout, clearChevronWithoutHandle, { flush: "post" });
48
+ return { isExiting };
49
+ }
50
+ //#endregion
6
51
  //#region src/Collapsible/context.ts
7
52
  const collapsibleGroupKey = defineLayerScopedKey("collapsibleGroup", null);
8
53
  const collapsibleGroupPresentationKey = defineLayerScopedKey("collapsibleGroupPresentation", null);
@@ -85,7 +130,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
85
130
  default: false
86
131
  },
87
132
  chevronPosition: {},
88
- value: {}
133
+ value: {},
134
+ animatedLayout: {}
89
135
  }, {
90
136
  "isOpen": {
91
137
  type: Boolean,
@@ -114,7 +160,16 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
114
160
  const { pressableProps } = usePressFeedback({ hasOverlay: false });
115
161
  const contentId = `astryx-collapsible-${useId()}`;
116
162
  const root = useTemplateRef("root");
117
- __expose({ element: computed(() => root.value ?? null) });
163
+ const element = computed(() => root.value ?? null);
164
+ const triggerButton = useTemplateRef("triggerButton");
165
+ const content = useTemplateRef("content");
166
+ const { isExiting } = useLayoutDisclosure({
167
+ animatedLayout: () => props.animatedLayout,
168
+ isOpen: () => isOpen.value,
169
+ content: () => content.value ?? null,
170
+ chevron: () => triggerButton.value?.querySelector(".astryx-collapsible-chevron") ?? null
171
+ });
172
+ __expose({ element });
118
173
  function toggle() {
119
174
  if (props.isDisabled) return;
120
175
  collapsible.toggle();
@@ -126,43 +181,52 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
126
181
  class: "astryx-collapsible",
127
182
  "data-density": density.value || void 0,
128
183
  "data-dividers": hasDividers.value || void 0
129
- }, [createElementVNode("button", mergeProps({
130
- type: "button",
131
- class: "astryx-collapsible-trigger",
132
- "data-chevron-position": chevronPosition.value,
133
- "data-open": unref(isOpen) ? "open" : void 0,
134
- "data-disabled": __props.isDisabled ? "disabled" : void 0,
135
- "aria-expanded": unref(isOpen),
136
- "aria-controls": contentId,
137
- "aria-disabled": __props.isDisabled || void 0,
138
- tabindex: __props.isDisabled ? -1 : void 0
139
- }, unref(pressableProps), { onClick: toggle }), [
140
- isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
141
- key: 0,
142
- class: "astryx-collapsible-chevron",
143
- color: "secondary",
144
- icon: "chevronRight",
145
- size: "sm"
146
- })) : createCommentVNode("v-if", true),
147
- createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.trigger), 1)])]),
148
- !isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
149
- key: 1,
150
- class: "astryx-collapsible-chevron",
151
- color: "secondary",
152
- icon: "chevronDown",
153
- size: "sm"
154
- })) : createCommentVNode("v-if", true)
155
- ], 16, _hoisted_2), createVNode(Transition, {
156
- name: "astryx-collapsible-reveal",
157
- persisted: ""
158
- }, {
159
- default: withCtx(() => [withDirectives(createElementVNode("div", {
160
- id: contentId,
161
- class: "astryx-collapsible-content",
162
- "data-open": unref(isOpen) ? "open" : void 0
163
- }, [createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_4), [[vShow, unref(isOpen)]])]),
164
- _: 3
165
- })], 8, _hoisted_1$1);
184
+ }, [
185
+ createElementVNode("button", mergeProps({
186
+ ref_key: "triggerButton",
187
+ ref: triggerButton,
188
+ type: "button",
189
+ class: "astryx-collapsible-trigger",
190
+ "data-chevron-position": chevronPosition.value,
191
+ "data-open": unref(isOpen) ? "open" : void 0,
192
+ "data-disabled": __props.isDisabled ? "disabled" : void 0,
193
+ "aria-expanded": unref(isOpen),
194
+ "aria-controls": contentId,
195
+ "aria-disabled": __props.isDisabled || void 0,
196
+ tabindex: __props.isDisabled ? -1 : void 0
197
+ }, unref(pressableProps), { onClick: toggle }), [
198
+ isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
199
+ key: 0,
200
+ class: "astryx-collapsible-chevron",
201
+ color: "secondary",
202
+ icon: "chevronRight",
203
+ size: "sm"
204
+ })) : createCommentVNode("v-if", true),
205
+ createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.trigger), 1)])]),
206
+ !isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
207
+ key: 1,
208
+ class: "astryx-collapsible-chevron",
209
+ color: "secondary",
210
+ icon: "chevronDown",
211
+ size: "sm"
212
+ })) : createCommentVNode("v-if", true)
213
+ ], 16, _hoisted_2),
214
+ createCommentVNode(" 有句柄时开合交给布局动效,不再走 CSS 过渡;收起后内容播完退场才隐藏。 "),
215
+ createVNode(Transition, {
216
+ name: "astryx-collapsible-reveal",
217
+ css: __props.animatedLayout == null,
218
+ persisted: ""
219
+ }, {
220
+ default: withCtx(() => [withDirectives(createElementVNode("div", {
221
+ id: contentId,
222
+ ref_key: "content",
223
+ ref: content,
224
+ class: "astryx-collapsible-content",
225
+ "data-open": unref(isOpen) ? "open" : void 0
226
+ }, [createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_4), [[vShow, unref(isOpen) || unref(isExiting)]])]),
227
+ _: 3
228
+ }, 8, ["css"])
229
+ ], 8, _hoisted_1$1);
166
230
  };
167
231
  }
168
232
  });
@@ -1,3 +1,3 @@
1
- import { Aa as ContextMenuSection, Ca as ContextMenuItemSlots, Da as ContextMenuProps, Ea as ContextMenuPresentation, Fa as ContextMenuSubMenuSlots, Ia as ContextMenuTriggerElement, La as ContextMenuVariant, Ma as ContextMenuSlots, Na as ContextMenuSubMenuEmits, Oa as ContextMenuRadioData, Pa as ContextMenuSubMenuProps, Ra as ContextMenuWidth, Sa as ContextMenuItemProps, Ta as ContextMenuOption, _a as ContextMenuGroupProps, aa as _default$7, ba as ContextMenuItemEmits, ca as _default$2, da as useContextMenuSize, fa as ContextMenuCheckboxData, ga as ContextMenuEntry, ha as ContextMenuEmits, ja as ContextMenuSize, ka as ContextMenuRadioOptionData, la as _default, ma as ContextMenuDividerProps, oa as _default$4, pa as ContextMenuDividerData, sa as _default$3, ua as useContextMenu, va as ContextMenuGroupSlots, wa as ContextMenuItemTarget, xa as ContextMenuItemIcon, ya as ContextMenuItemData } from "../index-B95VIgRl.js";
1
+ import { Aa as ContextMenuRadioOptionData, Ca as ContextMenuItemProps, Da as ContextMenuPresentation, Ea as ContextMenuOption, Fa as ContextMenuSubMenuProps, Ia as ContextMenuSubMenuSlots, La as ContextMenuTriggerElement, Ma as ContextMenuSize, Na as ContextMenuSlots, Oa as ContextMenuProps, Pa as ContextMenuSubMenuEmits, Ra as ContextMenuVariant, Sa as ContextMenuItemIcon, Ta as ContextMenuItemTarget, _a as ContextMenuEntry, ba as ContextMenuItemData, ca as _default$3, da as useContextMenu, fa as useContextMenuSize, ga as ContextMenuEmits, ha as ContextMenuDividerProps, ja as ContextMenuSection, ka as ContextMenuRadioData, la as _default$2, ma as ContextMenuDividerData, oa as _default$7, pa as ContextMenuCheckboxData, sa as _default$4, ua as _default, va as ContextMenuGroupProps, wa as ContextMenuItemSlots, xa as ContextMenuItemEmits, ya as ContextMenuGroupSlots, za as ContextMenuWidth } from "../index-t27MvEzT.js";
2
2
  import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-C9DdN6UE.js";
3
3
  export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
@@ -1,2 +1,2 @@
1
- import { $i as DateInputNativePicker, Ji as _default, Qi as DateInputFormatName, Xi as DateInputEmits, Yi as DateInputEntryError, Zi as DateInputFormat, ea as DateInputPresentation, ia as DateInputStatusType, na as DateInputSlots, ra as DateInputStatus, ta as DateInputProps } from "../index-B95VIgRl.js";
1
+ import { $i as DateInputFormatName, Qi as DateInputFormat, Xi as DateInputEntryError, Yi as _default, Zi as DateInputEmits, aa as DateInputStatusType, ea as DateInputNativePicker, ia as DateInputStatus, na as DateInputProps, ra as DateInputSlots, ta as DateInputPresentation } from "../index-t27MvEzT.js";
2
2
  export { _default as DateInput, type DateInputEmits, type DateInputEntryError, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateInput-BitZfGEY.js";
1
+ import { t as _sfc_main } from "../DateInput-s2H0orUW.js";
2
2
  export { _sfc_main as DateInput };
@@ -12,9 +12,9 @@ import { t as _sfc_main$8 } from "./FieldIcon-DMtfe1Ne.js";
12
12
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
13
13
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
14
14
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
15
- import { n as standaloneShortWeekdayNames, r as weekdayNames, t as formatCalendarMonth } from "./format-CMHyAMn3.js";
15
+ import { i as weekdayNames, n as formatDayNumber, r as standaloneShortWeekdayNames, t as formatCalendarMonth } from "./format-mffyPc-L.js";
16
16
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
17
- import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-Bk2nGoT-.js";
17
+ import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-DSRNuw3y.js";
18
18
  import { t as _sfc_main$10 } from "./Spinner-DEVPDsD0.js";
19
19
  import { a as useEntryErrorBehavior, i as useAriaRequired } from "./context-DsNhYm5O.js";
20
20
  import { t as _sfc_main$11 } from "./Field-BXkGR8H0.js";
@@ -701,7 +701,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
701
701
  "aria-current": !day.outside && unref(sameCalendarDay)(day.date, todayDate.value) ? "date" : void 0,
702
702
  "aria-label": unref(formatWeekdayDate)(day.date, unref(locale)),
703
703
  onClick: ($event) => pick(day.date, day.outside)
704
- }, [createElementVNode("span", _hoisted_5$2, toDisplayString(day.day), 1)], 10, _hoisted_4$2)]);
704
+ }, [createElementVNode("span", _hoisted_5$2, toDisplayString(unref(formatDayNumber)(day.day, unref(locale))), 1)], 10, _hoisted_4$2)]);
705
705
  }), 128))]);
706
706
  }), 128))], 40, _hoisted_1$2);
707
707
  };
@@ -1,2 +1,2 @@
1
- import { Gi as DateRangeInputEmits, Ki as DateRangeInputProps, Ui as _default, Wi as DateRange, qi as DateRangePreset } from "../index-B95VIgRl.js";
1
+ import { Gi as DateRange, Ji as DateRangePreset, Ki as DateRangeInputEmits, Wi as _default, qi as DateRangeInputProps } from "../index-t27MvEzT.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateRangeInput-kxXBsUTU.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-Dn9I2PMM.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -11,7 +11,7 @@ import { a as todayISODate, n as buildMonthGrid, t as addMonths } from "./useMon
11
11
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
12
12
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
13
13
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
14
- import { n as standaloneShortWeekdayNames, r as weekdayNames, t as formatCalendarMonth } from "./format-CMHyAMn3.js";
14
+ import { i as weekdayNames, n as formatDayNumber, r as standaloneShortWeekdayNames, t as formatCalendarMonth } from "./format-mffyPc-L.js";
15
15
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
16
16
  import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
17
17
  import { i as useAriaRequired } from "./context-DsNhYm5O.js";
@@ -35,7 +35,7 @@ const _hoisted_6$1 = { class: "astryx-date-range-months" };
35
35
  const _hoisted_7 = { class: "astryx-calendar-weekdays" };
36
36
  const _hoisted_8 = ["aria-label"];
37
37
  const _hoisted_9 = [
38
- "disabled",
38
+ "aria-disabled",
39
39
  "aria-pressed",
40
40
  "aria-current",
41
41
  "onClick",
@@ -156,15 +156,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
156
156
  "is-range-end": day === preview.value?.end,
157
157
  "is-disabled": isDisabled(day)
158
158
  }]),
159
- disabled: isDisabled(day),
159
+ "aria-disabled": isDisabled(day) || void 0,
160
160
  "aria-pressed": day === preview.value?.start || day === preview.value?.end || void 0,
161
161
  "aria-current": day === unref(today) ? "date" : void 0,
162
- onClick: ($event) => emit("select", day),
163
- onMouseenter: ($event) => hover.value = day,
162
+ onClick: ($event) => isDisabled(day) ? void 0 : emit("select", day),
163
+ onMouseenter: ($event) => hover.value = isDisabled(day) ? null : day,
164
164
  onMouseleave: _cache[2] || (_cache[2] = ($event) => hover.value = null),
165
- onFocus: ($event) => hover.value = day,
165
+ onFocus: ($event) => hover.value = isDisabled(day) ? null : day,
166
166
  onBlur: _cache[3] || (_cache[3] = ($event) => hover.value = null)
167
- }, [createElementVNode("span", _hoisted_10, toDisplayString(Number(day.slice(8))), 1)], 42, _hoisted_9);
167
+ }, [createElementVNode("span", _hoisted_10, toDisplayString(unref(formatDayNumber)(Number(day.slice(8)), unref(locale))), 1)], 42, _hoisted_9);
168
168
  }), 128))]);
169
169
  }), 128))]);
170
170
  }), 128))])]);
@@ -1,2 +1,2 @@
1
- import { Bi as DateTimeInputEmits, Hi as DateTimeInputSize, Vi as DateTimeInputProps, zi as _default } from "../index-B95VIgRl.js";
1
+ import { Bi as _default, Hi as DateTimeInputProps, Ui as DateTimeInputSize, Vi as DateTimeInputEmits } from "../index-t27MvEzT.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-Cfkuec_h.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-BR_tdURg.js";
2
2
  export { _sfc_main as DateTimeInput };