@astryx-vue/core 0.48.2 → 0.48.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) 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/Breadcrumbs/index.js +2 -2
  5. package/dist/{Breadcrumbs-B1LVoSmF.js → Breadcrumbs-CmTe311W.js} +1 -1
  6. package/dist/Button/index.d.ts +1 -1
  7. package/dist/ButtonGroup/index.d.ts +1 -1
  8. package/dist/Calendar/index.d.ts +1 -1
  9. package/dist/Calendar/index.js +2 -2
  10. package/dist/{Calendar-DvbTMsIC.js → Calendar-Bu5tNFCy.js} +2 -2
  11. package/dist/{Calendar-Nh8eFh1z.js → Calendar-Cr3q-XUb.js} +1 -1
  12. package/dist/Carousel/index.d.ts +1 -1
  13. package/dist/Center/index.d.ts +1 -1
  14. package/dist/Chat/index.d.ts +1 -1
  15. package/dist/CheckboxInput/index.d.ts +1 -1
  16. package/dist/CheckboxList/index.d.ts +1 -1
  17. package/dist/CheckboxList/index.js +1 -1
  18. package/dist/{CheckboxListItem-DV3Uh8dj.js → CheckboxListItem-CC-9D_l_.js} +1 -1
  19. package/dist/ClickableCard/index.d.ts +1 -1
  20. package/dist/ContextMenu/index.d.ts +1 -1
  21. package/dist/ContextMenu/index.js +2 -2
  22. package/dist/{ContextMenu--QuYdWDQ.js → ContextMenu-CQlYu1dv.js} +1 -1
  23. package/dist/DateInput/index.d.ts +1 -1
  24. package/dist/DateInput/index.js +1 -1
  25. package/dist/{DateInput-D4o83xnR.js → DateInput-D78SOx0f.js} +34 -11
  26. package/dist/DateRangeInput/index.d.ts +1 -1
  27. package/dist/DateRangeInput/index.js +1 -1
  28. package/dist/{DateRangeInput-A-Hrvnmo.js → DateRangeInput-PnBK_G5d.js} +116 -184
  29. package/dist/DateTimeInput/index.d.ts +1 -1
  30. package/dist/DateTimeInput/index.js +1 -1
  31. package/dist/{DateTimeInput-DWX1Z3S_.js → DateTimeInput-DPoTqJ36.js} +3 -3
  32. package/dist/Dialog/index.d.ts +1 -1
  33. package/dist/Divider/index.d.ts +1 -1
  34. package/dist/Drawer/index.d.ts +1 -1
  35. package/dist/DropdownMenu/index.js +2 -2
  36. package/dist/{DropdownMenu-NqkHivVB.js → DropdownMenu-WuoVaE3D.js} +2 -2
  37. package/dist/HoverCard/index.d.ts +1 -1
  38. package/dist/InfoTip/index.d.ts +1 -1
  39. package/dist/InternationalizationProvider/index.d.ts +1 -1
  40. package/dist/InternationalizationProvider/index.js +1 -1
  41. package/dist/{InternationalizationProvider-B6kMYO4h.js → InternationalizationProvider-B9wQM8hN.js} +1 -1
  42. package/dist/{Item-o9ot81Zr.js → Item-D6y1lkrO.js} +2 -0
  43. package/dist/Link/index.d.ts +1 -1
  44. package/dist/List/index.d.ts +1 -1
  45. package/dist/List/index.js +3 -3
  46. package/dist/{List-Da9fS7xP.js → List-DkH8AKN1.js} +1 -1
  47. package/dist/{ListItem-Cp65x47S.js → ListItem-5d5B-FOb.js} +1 -1
  48. package/dist/Markdown/index.d.ts +1 -1
  49. package/dist/MetadataList/index.js +1 -1
  50. package/dist/{MetadataList-n3YXiP4a.js → MetadataList-BTMI6Ffm.js} +5 -1
  51. package/dist/MoreMenu/index.d.ts +1 -1
  52. package/dist/MoreMenu/index.js +1 -1
  53. package/dist/{MoreMenu-CiYBQ9pt.js → MoreMenu-bUsXdSxn.js} +1 -1
  54. package/dist/MultiSelector/index.d.ts +1 -1
  55. package/dist/MultiSelector/index.js +1 -1
  56. package/dist/NavItem/index.d.ts +1 -1
  57. package/dist/NumberInput/index.d.ts +1 -1
  58. package/dist/OverflowList/index.d.ts +1 -1
  59. package/dist/Pagination/index.d.ts +1 -1
  60. package/dist/PowerSearch/index.d.ts +1 -1
  61. package/dist/PowerSearch/index.js +1 -1
  62. package/dist/{PowerSearch-Cg0Fe7Ne.js → PowerSearch-DB17gW3o.js} +9 -9
  63. package/dist/ProgressBar/index.d.ts +1 -1
  64. package/dist/Radio/index.d.ts +1 -1
  65. package/dist/RadioList/index.d.ts +1 -1
  66. package/dist/RangeCalendar-pTEnYJqX.js +160 -0
  67. package/dist/Resizable/index.d.ts +1 -1
  68. package/dist/ScrollableArea/index.d.ts +1 -1
  69. package/dist/SegmentedControl/index.d.ts +1 -1
  70. package/dist/SelectableCard/index.d.ts +1 -1
  71. package/dist/Selector/index.d.ts +1 -1
  72. package/dist/SideNav/index.d.ts +1 -1
  73. package/dist/Stepper/index.d.ts +1 -1
  74. package/dist/Switch/index.d.ts +1 -1
  75. package/dist/TabList/index.d.ts +1 -1
  76. package/dist/Table/index.d.ts +1 -1
  77. package/dist/Table/index.js +1 -1
  78. package/dist/{Table-D58FbmZl.js → Table-B6EYjM3T.js} +13 -10
  79. package/dist/TextArea/index.d.ts +1 -1
  80. package/dist/TextInput/index.d.ts +1 -1
  81. package/dist/TimeInput/index.d.ts +1 -1
  82. package/dist/TimeInput/index.js +1 -1
  83. package/dist/{TimeInput-CUM1fNsE.js → TimeInput-x5uEONH9.js} +3 -2
  84. package/dist/Timestamp/index.d.ts +1 -1
  85. package/dist/Timestamp/index.js +2 -2
  86. package/dist/{Timestamp-B0dj9IUl.js → Timestamp-CGhrqcmb.js} +28 -14
  87. package/dist/ToggleButton/index.d.ts +1 -1
  88. package/dist/Toolbar/index.d.ts +1 -1
  89. package/dist/Tooltip/index.d.ts +1 -1
  90. package/dist/TopNav/index.d.ts +1 -1
  91. package/dist/TreeList/index.d.ts +1 -1
  92. package/dist/{accessibleName-BSQ6PVw-.js → accessibleName-COG4Ik6i.js} +1 -1
  93. package/dist/composables/index.d.ts +1 -1
  94. package/dist/composables/index.js +2 -2
  95. package/dist/{date-range-input-WnkVv8HN.js → date-range-input-BjM7wgeD.js} +6 -2
  96. package/dist/{formatInstant-B-ukorXg.js → formatInstant-DmQhW6EL.js} +23 -8
  97. package/dist/{index-C5HUsKnf.d.ts → index-B_XTzQhm.d.ts} +2 -2
  98. package/dist/{index-DSsuY9v9.d.ts → index-BaXcJ7eE.d.ts} +1 -1
  99. package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
  100. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  101. package/dist/{index-D3UaSnbN.d.ts → index-BtqvPjAf.d.ts} +1 -1
  102. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  103. package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
  104. package/dist/{index-BaFphczL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  105. package/dist/{index-DsD5qKEe.d.ts → index-CjCJRK-z.d.ts} +2 -1
  106. package/dist/{index-COazJoIt.d.ts → index-DEeR90QP.d.ts} +4 -4
  107. package/dist/{index-BMoR8Uoh.d.ts → index-DZMs9KqG.d.ts} +1 -1
  108. package/dist/{index-C8hyLvk2.d.ts → index-Dmr81uHZ.d.ts} +1 -1
  109. package/dist/{index-m-fFGq2e.d.ts → index-Ds4dOCSy.d.ts} +1 -1
  110. package/dist/{index-ehT_1wO5.d.ts → index-DwG42flu.d.ts} +1 -1
  111. package/dist/{index-anFpazJ1.d.ts → index-DyvHDvtx.d.ts} +2 -2
  112. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  113. package/dist/{index--pZVy2s-.d.ts → index-bXbjUqwx.d.ts} +5 -5
  114. package/dist/{index-aBeGbS1N.d.ts → index-fUpVnYYy.d.ts} +1 -1
  115. package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
  116. package/dist/{index-Bsl8HqR9.d.ts → index-tNq2IJO8.d.ts} +1 -1
  117. package/dist/{index-Pad9p8CU.d.ts → index-tdOyqA_U.d.ts} +2 -2
  118. package/dist/{index-Dqo0KSCZ.d.ts → index-zHX0wDmq.d.ts} +46 -46
  119. package/dist/index.d.ts +23 -23
  120. package/dist/index.js +28 -28
  121. package/dist/{loadCatalog-BLR2kAhy.d.ts → loadCatalog-BY88s6vB.d.ts} +4 -0
  122. package/dist/{loadCatalog-DT1OyK-2.js → loadCatalog-crHU34Cs.js} +9 -1
  123. package/dist/locale/index.d.ts +2 -2
  124. package/dist/locale/index.js +3 -3
  125. package/dist/{locale-DhcPo0et.js → locale-R4jJ5VWu.js} +1 -1
  126. package/dist/{useCalendarGrid-Bz7NJmA3.js → useCalendarGrid-BGFIdfo7.js} +1 -1
  127. package/dist/{useDateRange-D1Szw54e.js → useDateRange-vYk0K9ML.js} +6 -2
  128. package/dist/{useMonthGrid-Bzvlstgc.js → useMonthGrid-xkn79x_J.js} +1 -1
  129. package/package.json +1 -1
  130. package/styles/date-input.css +40 -5
  131. package/styles/date-range-input.css +22 -0
  132. package/styles/tree-list.css +11 -0
  133. package/dist/{MultiSelector-Cd0x_5Cz.js → MultiSelector-gLmtlWmJ.js} +1 -1
  134. package/dist/{TimeField-DzdNGtUE.js → TimeField-Ni4p7bg4.js} +1 -1
@@ -1,181 +1,63 @@
1
- import { t as _sfc_main$2 } from "./Icon-B7x-V572.js";
1
+ import { t as _sfc_main$1 } from "./Icon-B7x-V572.js";
2
2
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
- import { t as _sfc_main$3 } from "./VisuallyHidden-cpmsV-0M.js";
4
- import { t as _sfc_main$4 } from "./ButtonTooltip-ZpQP-aQg.js";
3
+ import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
4
+ import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
5
5
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
6
6
  import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
7
+ import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
7
8
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
8
- import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, r as formatDateRange, s as orderRange, t as applyRangeClick } from "./useDateRange-D1Szw54e.js";
9
- import { t as _sfc_main$5 } from "./FieldIcon-COfz-h_b.js";
10
- import { t as _sfc_main$6 } from "./IconButton-BilMzjDj.js";
11
- import { a as todayISODate } from "./useMonthGrid-Bzvlstgc.js";
9
+ import { a as isRangeWithinSpan, r as formatDateRange, t as applyRangeClick } from "./useDateRange-vYk0K9ML.js";
10
+ import { t as _sfc_main$4 } from "./FieldIcon-COfz-h_b.js";
11
+ import { t as _sfc_main$5 } from "./IconButton-BilMzjDj.js";
12
12
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
13
13
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
14
14
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
15
15
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
16
- import { t as _sfc_main$7 } from "./Spinner-dCnyObWk.js";
16
+ import { t as _sfc_main$6 } from "./Spinner-dCnyObWk.js";
17
17
  import { F as plainDateToday, h as plainDateCreate, i as DATE_FORMAT_SHORT, o as DATE_FORMAT_SHORT_WITH_YEAR, y as plainDateFromDate } from "./plainDate-By2VjeSI.js";
18
18
  import { a as calendarAddMonths, f as calendarMonthOf, g as calendarYearMonthOf, r as useCalendarSystem, y as isGregorianCalendar } from "./calendar-B1G5O29s.js";
19
- import { a as standaloneShortWeekdayNames, n as formatDayNumber, o as weekdayNames } from "./format--_j64_yo.js";
20
- import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
21
- import { i as formatCalendarMonthLabel, n as formatCalendarDate } from "./calendarFormat-CbxpwgAe.js";
22
- import { t as buildMonthWeeks } from "./useCalendarGrid-Bz7NJmA3.js";
19
+ import { n as formatCalendarDate } from "./calendarFormat-CbxpwgAe.js";
23
20
  import { a as useAriaRequired } from "./context-CrVCeUUK.js";
24
- import { t as _sfc_main$8 } from "./Field-2ypSh8vl.js";
21
+ import { t as _sfc_main$7 } from "./Field-2ypSh8vl.js";
25
22
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
26
- import { t as _sfc_main$9 } from "./Popover-CgyIJd4u.js";
23
+ import { t as _sfc_main$8 } from "./Popover-CgyIJd4u.js";
27
24
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
28
- import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
29
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, renderList, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
30
- import "../styles/calendar.css";
31
- import "../styles/date-range-input.css";
25
+ import { t as dateRangeInputMessages } from "./date-range-input-BjM7wgeD.js";
26
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, renderList, resolveDynamicComponent, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
32
27
  import "../styles/bordered-control.css";
33
- //#region src/DateRangeInput/RangeCalendar.vue
34
- const _hoisted_1$1 = { class: "astryx-calendar astryx-date-range-calendar" };
35
- const _hoisted_2$1 = { class: "astryx-calendar-header" };
36
- const _hoisted_3$1 = ["aria-label"];
37
- const _hoisted_4$1 = { class: "astryx-calendar-month-year" };
38
- const _hoisted_5$1 = ["aria-label"];
39
- const _hoisted_6$1 = { class: "astryx-date-range-months" };
40
- const _hoisted_7 = { class: "astryx-calendar-weekdays" };
41
- const _hoisted_8 = ["aria-label"];
42
- const _hoisted_9 = [
43
- "aria-disabled",
44
- "aria-pressed",
45
- "aria-current",
46
- "onClick",
47
- "onMouseenter",
48
- "onFocus"
49
- ];
50
- const _hoisted_10 = { class: "astryx-calendar-day" };
51
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
52
- __name: "RangeCalendar",
53
- props: /*@__PURE__*/ mergeModels({
54
- cursor: {},
55
- calendar: {},
56
- monthCount: { default: 2 },
57
- range: { default: null },
58
- pending: { default: null },
59
- min: {},
60
- max: {},
61
- minRangeSpan: { default: 1 },
62
- maxRangeSpan: {},
63
- weekStartsOn: {},
64
- dateConstraints: {}
65
- }, {
66
- "hover": { default: null },
67
- "hoverModifiers": {}
68
- }),
69
- emits: /*@__PURE__*/ mergeModels(["select", "shift"], ["update:hover"]),
70
- setup(__props, { emit: __emit }) {
71
- const props = __props;
72
- const emit = __emit;
73
- const locale = useAstryxLocale();
74
- const messages = useComponentMessages({ calendar: calendarMessages });
75
- const hover = useModel(__props, "hover");
76
- const today = todayISODate();
77
- const weekStart = computed(() => resolveWeekStart(props.weekStartsOn ?? (locale.value === "zh-CN" ? 1 : 0)));
78
- const weekDays = computed(() => {
79
- const names = standaloneShortWeekdayNames(locale.value);
80
- const labels = weekdayNames(locale.value, "long");
81
- const start = weekStart.value;
82
- return Array.from({ length: 7 }, (_, index) => ({
83
- name: names[(index + start) % 7],
84
- label: labels[(index + start) % 7]
85
- }));
86
- });
87
- const months = computed(() => {
88
- const first = calendarMonthOf(props.calendar, props.cursor);
89
- return Array.from({ length: props.monthCount }, (_, index) => {
90
- const month = calendarAddMonths(props.calendar, first, index);
91
- return {
92
- key: `${month.start.year}-${month.start.month}-${month.start.day}`,
93
- label: formatCalendarMonthLabel(props.calendar, month, locale.value),
94
- weeks: buildMonthWeeks(props.calendar, month, weekStart.value)
95
- };
96
- });
97
- });
98
- const headerLabel = computed(() => months.value.map((month) => month.label).join(" – "));
99
- const preview = computed(() => {
100
- if (props.pending && hover.value && hover.value !== props.pending) return orderRange(props.pending, hover.value);
101
- return props.range;
102
- });
103
- function inSpan(day, range) {
104
- return range != null && day >= range.start && day <= range.end;
105
- }
106
- function dayDate(day) {
107
- const [year, month, date] = day.split("-").map(Number);
108
- return new Date(year, month - 1, date);
109
- }
110
- function isDisabled(day) {
111
- if (props.min && day < props.min) return true;
112
- if (props.max && day > props.max) return true;
113
- if (props.dateConstraints?.some((constraint) => !constraint(dayDate(day)))) return true;
114
- return isDayOutsideSpan(props.pending, day, props.minRangeSpan, props.maxRangeSpan);
28
+ import "../styles/date-range-input.css";
29
+ //#region src/DateRangeInput/rangeCalendarLoader.ts
30
+ /**
31
+ * 日期范围弹层里的月历按需加载:字段第一次有了打开的意图(鼠标或笔移进来、聚焦、按下)才请求,
32
+ * 只放着字段的页面不加载月历。加载好以后 `rangeCalendar` 就是月历组件。
33
+ */
34
+ const rangeCalendar = shallowRef(null);
35
+ let loading = null;
36
+ let hasWarned = false;
37
+ /**
38
+ * 加载月历,返回是否加载成功。失败时开发期警告一次,并且不记住这次失败,
39
+ * 下一次意图或打开会重新请求。
40
+ */
41
+ function loadRangeCalendar() {
42
+ if (rangeCalendar.value != null) return Promise.resolve(true);
43
+ loading ??= import("./RangeCalendar-pTEnYJqX.js").then((module) => {
44
+ rangeCalendar.value = module.default;
45
+ return true;
46
+ }, () => {
47
+ if (!hasWarned) {
48
+ hasWarned = true;
49
+ devWarn("DateRangeInput", "The calendar could not load. Reload the page if it doesn't come back.");
115
50
  }
116
- return (_ctx, _cache) => {
117
- return openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [
118
- createElementVNode("button", {
119
- type: "button",
120
- class: "astryx-calendar-nav-button",
121
- "aria-label": unref(messages).calendar.previousMonth,
122
- onClick: _cache[0] || (_cache[0] = ($event) => emit("shift", -1))
123
- }, [createVNode(_sfc_main$2, {
124
- icon: "chevronLeft",
125
- size: "sm"
126
- })], 8, _hoisted_3$1),
127
- createElementVNode("span", _hoisted_4$1, toDisplayString(headerLabel.value), 1),
128
- createElementVNode("button", {
129
- type: "button",
130
- class: "astryx-calendar-nav-button",
131
- "aria-label": unref(messages).calendar.nextMonth,
132
- onClick: _cache[1] || (_cache[1] = ($event) => emit("shift", 1))
133
- }, [createVNode(_sfc_main$2, {
134
- icon: "chevronRight",
135
- size: "sm"
136
- })], 8, _hoisted_5$1)
137
- ]), createElementVNode("div", _hoisted_6$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
138
- return openBlock(), createElementBlock("div", {
139
- key: month.key,
140
- class: "astryx-date-range-month"
141
- }, [createElementVNode("div", _hoisted_7, [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
142
- return openBlock(), createElementBlock("div", {
143
- key: day.label,
144
- class: "astryx-calendar-weekday",
145
- "aria-label": day.label
146
- }, toDisplayString(day.name), 9, _hoisted_8);
147
- }), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(month.weeks, (week, weekIndex) => {
148
- return openBlock(), createElementBlock("div", {
149
- key: weekIndex,
150
- class: "astryx-calendar-row"
151
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (cell) => {
152
- return openBlock(), createElementBlock("button", {
153
- key: cell.iso,
154
- type: "button",
155
- class: normalizeClass(["astryx-calendar-cell", {
156
- "is-other-month": cell.outside,
157
- "is-today": cell.iso === unref(today),
158
- "is-selected": cell.iso === preview.value?.start || cell.iso === preview.value?.end || cell.iso === __props.pending,
159
- "is-in-range": inSpan(cell.iso, preview.value),
160
- "is-range-start": cell.iso === preview.value?.start,
161
- "is-range-end": cell.iso === preview.value?.end,
162
- "is-disabled": isDisabled(cell.iso)
163
- }]),
164
- "aria-disabled": isDisabled(cell.iso) || void 0,
165
- "aria-pressed": cell.iso === preview.value?.start || cell.iso === preview.value?.end || void 0,
166
- "aria-current": cell.iso === unref(today) ? "date" : void 0,
167
- onClick: ($event) => isDisabled(cell.iso) ? void 0 : emit("select", cell.iso),
168
- onMouseenter: ($event) => hover.value = isDisabled(cell.iso) ? null : cell.iso,
169
- onMouseleave: _cache[2] || (_cache[2] = ($event) => hover.value = null),
170
- onFocus: ($event) => hover.value = isDisabled(cell.iso) ? null : cell.iso,
171
- onBlur: _cache[3] || (_cache[3] = ($event) => hover.value = null)
172
- }, [createElementVNode("span", _hoisted_10, toDisplayString(unref(formatDayNumber)(cell.day, unref(locale))), 1)], 42, _hoisted_9);
173
- }), 128))]);
174
- }), 128))]);
175
- }), 128))])]);
176
- };
177
- }
178
- });
51
+ return false;
52
+ }).finally(() => {
53
+ loading = null;
54
+ });
55
+ return loading;
56
+ }
57
+ /** 月历已经加载好。 */
58
+ function isRangeCalendarLoaded() {
59
+ return rangeCalendar.value != null;
60
+ }
179
61
  //#endregion
180
62
  //#region src/DateRangeInput/rangeDisplay.ts
181
63
  /** 范围里的 `YYYY-MM-DD` 读成公历日期。 */
@@ -185,16 +67,16 @@ function rangeDay(iso) {
185
67
  }
186
68
  /**
187
69
  * 按钮上的范围文字。两端和今天在同一个历法年时省掉年份;今天还不知道(服务端渲染、水合)时写出年份。
188
- * 公历沿用 `formatDateRange` 的写法。
70
+ * 公历沿用 `formatDateRange` 的写法。`join` 是内置文案里把两端写成一句的那条(rangeValue)。
189
71
  */
190
- function formatRangeDisplay(range, locale, calendar, today) {
191
- if (isGregorianCalendar(calendar)) return formatDateRange(range, locale, today?.getFullYear() ?? null);
72
+ function formatRangeDisplay(range, locale, calendar, today, join) {
73
+ if (isGregorianCalendar(calendar)) return formatDateRange(range, locale, today?.getFullYear() ?? null, join);
192
74
  if (range == null) return "";
193
75
  const start = rangeDay(range.start);
194
76
  const end = rangeDay(range.end);
195
77
  const yearOf = (pd) => calendarYearMonthOf(calendar, calendarMonthOf(calendar, pd)).year;
196
78
  const options = today != null && yearOf(start) === yearOf(end) && yearOf(start) === yearOf(plainDateFromDate(today)) ? DATE_FORMAT_SHORT : DATE_FORMAT_SHORT_WITH_YEAR;
197
- return `${formatCalendarDate(calendar, start, options, locale)} – ${formatCalendarDate(calendar, end, options, locale)}`;
79
+ return join(formatCalendarDate(calendar, start, options, locale), formatCalendarDate(calendar, end, options, locale));
198
80
  }
199
81
  //#endregion
200
82
  //#region src/DateRangeInput/DateRangeInput.vue
@@ -345,9 +227,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
345
227
  onMounted(() => {
346
228
  today.value ??= /* @__PURE__ */ new Date();
347
229
  });
348
- const display = computed(() => formatRangeDisplay(model.value, locale.value, calendar.value, today.value));
230
+ const display = computed(() => formatRangeDisplay(model.value, locale.value, calendar.value, today.value, messages.value.dateRangeInput.rangeValue));
349
231
  const placeholder = computed(() => props.placeholder ?? messages.value.dateRangeInput.placeholder);
350
232
  const clearLabel = computed(() => props.clearLabel ?? messages.value.dateRangeInput.clear(props.label));
233
+ const triggerLabel = computed(() => messages.value.dateRangeInput.triggerLabel(props.label, display.value || placeholder.value));
351
234
  function commit(value) {
352
235
  if (locked.value) return;
353
236
  model.value = value;
@@ -366,6 +249,45 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
366
249
  function onShift(amount) {
367
250
  cursor.value = calendarAddMonths(calendar.value, calendarMonthOf(calendar.value, cursor.value), amount).start;
368
251
  }
252
+ let isOpenHeld = false;
253
+ function onHeldOutsidePress(event) {
254
+ const field = containerRef.value;
255
+ if (field != null && event.target instanceof Node && !field.contains(event.target)) dropHeldOpen();
256
+ }
257
+ function dropHeldOpen() {
258
+ isOpenHeld = false;
259
+ document.removeEventListener("pointerdown", onHeldOutsidePress, true);
260
+ }
261
+ function holdOpenUntilLoaded() {
262
+ if (isOpenHeld) return;
263
+ isOpenHeld = true;
264
+ document.addEventListener("pointerdown", onHeldOutsidePress, true);
265
+ loadRangeCalendar().then((isLoaded) => {
266
+ if (!isOpenHeld) return;
267
+ dropHeldOpen();
268
+ if (isLoaded && !locked.value && containerRef.value?.isConnected === true) onOpenChange(true);
269
+ });
270
+ }
271
+ onBeforeUnmount(dropHeldOpen);
272
+ function onFieldFocusOut(event) {
273
+ const next = event.relatedTarget;
274
+ if (isOpenHeld && next instanceof Node && !event.currentTarget.contains(next)) dropHeldOpen();
275
+ }
276
+ function onFieldKeydown(event) {
277
+ if (event.key === "Escape" && isOpenHeld) dropHeldOpen();
278
+ else if ((event.key === "Enter" || event.key === " ") && event.target?.classList.contains("astryx-date-range-trigger")) requestOpenBeforeLoad();
279
+ }
280
+ function preloadCalendar() {
281
+ loadRangeCalendar();
282
+ }
283
+ function onFieldPointerEnter(event) {
284
+ disabledTooltip.onPointerEnter();
285
+ if (event.pointerType !== "touch") preloadCalendar();
286
+ }
287
+ const isCalendarReady = computed(() => rangeCalendar.value != null);
288
+ function requestOpenBeforeLoad() {
289
+ if (!locked.value && !open.value && !isRangeCalendarLoaded()) holdOpenUntilLoaded();
290
+ }
369
291
  function onOpenChange(next) {
370
292
  open.value = next;
371
293
  if (next && model.value) {
@@ -394,16 +316,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
394
316
  function triggerAttrs() {
395
317
  const forwarded = parts.forwardedAttrs();
396
318
  if (locked.value) delete forwarded.onClick;
397
- return forwarded;
319
+ return {
320
+ "aria-label": triggerLabel.value,
321
+ ...forwarded
322
+ };
398
323
  }
399
324
  function onTriggerClick(event) {
400
- if (!locked.value) return;
325
+ if (!locked.value) {
326
+ requestOpenBeforeLoad();
327
+ return;
328
+ }
401
329
  event.preventDefault();
402
330
  event.stopImmediatePropagation();
403
331
  }
404
332
  return (_ctx, _cache) => {
405
333
  return openBlock(), createElementBlock(Fragment, null, [
406
- createVNode(_sfc_main$8, {
334
+ createVNode(_sfc_main$7, {
407
335
  class: normalizeClass(unref(parts).containerClass.value),
408
336
  style: normalizeStyle(unref(parts).containerStyle.value),
409
337
  label: __props.label,
@@ -418,9 +346,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
418
346
  status: __props.status,
419
347
  "status-variant": __props.statusVariant
420
348
  }, {
421
- default: withCtx((field) => [createVNode(_sfc_main$9, {
349
+ default: withCtx((field) => [createVNode(_sfc_main$8, {
422
350
  "is-open": open.value,
423
- "is-enabled": !locked.value,
351
+ "is-enabled": !locked.value && isCalendarReady.value,
424
352
  placement: "below",
425
353
  alignment: "start",
426
354
  padding: 0,
@@ -443,7 +371,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
443
371
  "aria-disabled": presetDisabled(preset) || void 0,
444
372
  onClick: ($event) => applyPreset(preset)
445
373
  }, toDisplayString(preset.label), 9, _hoisted_6);
446
- }), 128))])) : createCommentVNode("v-if", true), open.value ? (openBlock(), createBlock(_sfc_main$1, {
374
+ }), 128))])) : createCommentVNode("v-if", true), open.value && unref(rangeCalendar) ? (openBlock(), createBlock(resolveDynamicComponent(unref(rangeCalendar)), {
447
375
  key: 1,
448
376
  cursor: cursor.value,
449
377
  calendar: unref(calendar),
@@ -458,7 +386,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
458
386
  "week-starts-on": __props.weekStartsOn,
459
387
  onSelect,
460
388
  onShift
461
- }, null, 8, [
389
+ }, null, 40, [
462
390
  "cursor",
463
391
  "calendar",
464
392
  "month-count",
@@ -479,8 +407,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
479
407
  "data-size": unref(size),
480
408
  "data-status": __props.status?.type,
481
409
  "data-disabled": locked.value || void 0,
482
- onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
483
- onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
410
+ onPointerenter: onFieldPointerEnter,
411
+ onPointerdown: preloadCalendar,
412
+ onFocusin: preloadCalendar,
413
+ onFocusout: onFieldFocusOut,
414
+ onKeydown: onFieldKeydown,
415
+ onPointerleave: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
484
416
  }, [
485
417
  createElementVNode("button", mergeProps(triggerAttrs(), {
486
418
  id: inputId.value,
@@ -498,7 +430,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
498
430
  onClick: onTriggerClick,
499
431
  onFocus: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onFocus && unref(disabledTooltip).onFocus(...args)),
500
432
  onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args))
501
- }), [createVNode(_sfc_main$2, {
433
+ }), [createVNode(_sfc_main$1, {
502
434
  class: "astryx-date-range-icon",
503
435
  icon: "calendar",
504
436
  size: "sm"
@@ -506,7 +438,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
506
438
  class: "astryx-date-range-value",
507
439
  "data-placeholder": !display.value || void 0
508
440
  }, toDisplayString(display.value || placeholder.value), 9, _hoisted_3)], 16, _hoisted_2),
509
- __props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$6, {
441
+ __props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$5, {
510
442
  key: 0,
511
443
  class: "astryx-input-clear-button",
512
444
  variant: "ghost",
@@ -514,14 +446,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
514
446
  label: clearLabel.value,
515
447
  onClick: clear
516
448
  }, {
517
- default: withCtx(() => [createVNode(_sfc_main$5, { type: "clear" })]),
449
+ default: withCtx(() => [createVNode(_sfc_main$4, { type: "clear" })]),
518
450
  _: 1
519
451
  }, 8, ["label"])) : createCommentVNode("v-if", true),
520
- busy.value ? (openBlock(), createBlock(_sfc_main$7, {
452
+ busy.value ? (openBlock(), createBlock(_sfc_main$6, {
521
453
  key: 1,
522
454
  size: "sm",
523
455
  "aria-hidden": "true"
524
- })) : __props.status ? (openBlock(), createBlock(_sfc_main$5, {
456
+ })) : __props.status ? (openBlock(), createBlock(_sfc_main$4, {
525
457
  key: 2,
526
458
  type: __props.status.type
527
459
  }, null, 8, ["type"])) : createCommentVNode("v-if", true)
@@ -548,14 +480,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
548
480
  "status",
549
481
  "status-variant"
550
482
  ]),
551
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
483
+ showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
552
484
  key: 0,
553
485
  id: disabledMessageId
554
486
  }, {
555
487
  default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
556
488
  _: 1
557
489
  })) : createCommentVNode("v-if", true),
558
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$4, {
490
+ showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
559
491
  key: 1,
560
492
  id: `${disabledMessageId}-tooltip`,
561
493
  anchor: containerRef.value,
@@ -1,2 +1,2 @@
1
- import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-Dqo0KSCZ.js";
1
+ import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-zHX0wDmq.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-DWX1Z3S_.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-DPoTqJ36.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -15,11 +15,11 @@ import { t as _sfc_main$6 } from "./Spinner-dCnyObWk.js";
15
15
  import { t as _sfc_main$7 } from "./Field-2ypSh8vl.js";
16
16
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
17
17
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
18
- import { i as formatCommittedDate, n as useCalendarPresentation, r as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-D4o83xnR.js";
18
+ import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
19
+ import { i as formatCommittedDate, n as useCalendarPresentation, r as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-D78SOx0f.js";
19
20
  import { c as resolvePickerPresentation } from "./inputPresentation-Br70N2eS.js";
20
21
  import { n as dateTimeInputMessages } from "./time-input-CKOsh84E.js";
21
- import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
22
- import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-DzdNGtUE.js";
22
+ import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-Ni4p7bg4.js";
23
23
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
24
24
  import "../styles/date-time-input.css";
25
25
  //#region src/DateTimeInput/TouchDateTimeField.vue
@@ -1,2 +1,2 @@
1
- import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-CBOv5j3c.js";
1
+ import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-CbA8rR_b.js";
2
2
  export { _default as Dialog, type DialogBlockPosition, type DialogContext, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useDialogContext, useImperativeDialog };
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-D05JGsT3.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-C8wfe0Mr.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -1,2 +1,2 @@
1
- import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-Dqo0KSCZ.js";
1
+ import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-zHX0wDmq.js";
2
2
  export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
@@ -1,3 +1,3 @@
1
- import { d as _sfc_main$5, f as _sfc_main$1, h as useDropdownMenuRadioGroup, m as useDropdownMenuContext, u as _sfc_main$6 } from "../accessibleName-BSQ6PVw-.js";
2
- import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../DropdownMenu-NqkHivVB.js";
1
+ import { d as _sfc_main$5, f as _sfc_main$1, h as useDropdownMenuRadioGroup, m as useDropdownMenuContext, u as _sfc_main$6 } from "../accessibleName-COG4Ik6i.js";
2
+ import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../DropdownMenu-WuoVaE3D.js";
3
3
  export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuCheckboxItem, _sfc_main$2 as DropdownMenuDivider, _sfc_main$3 as DropdownMenuGroup, _sfc_main$4 as DropdownMenuItem, _sfc_main$5 as DropdownMenuRadioGroup, _sfc_main$6 as DropdownMenuRadioItem, _sfc_main$7 as DropdownMenuSubMenu, useDropdownMenuContext, useDropdownMenuRadioGroup };
@@ -13,8 +13,8 @@ import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
13
13
  import { t as useTypeahead } from "./useTypeahead-HlZ9cICe.js";
14
14
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
15
15
  import { n as isModifiedClick, r as keepDisabledRowUnfocused, t as activateMenuItem } from "./menuActivation-BQqnzKAX.js";
16
- import { t as _sfc_main$12 } from "./Item-o9ot81Zr.js";
17
- import { a as readMenuDirection, c as _sfc_main$13, d as _sfc_main$16, f as _sfc_main$15, i as useSubmenuMode, l as useDropdownMenuMessages, m as useDropdownMenuContext, n as readNameReference, o as submenuCloseKey, p as dropdownMenuContextKey, r as useMenuDrillIn, s as submenuOpenKey, t as readAccessibleName, u as _sfc_main$14 } from "./accessibleName-BSQ6PVw-.js";
16
+ import { t as _sfc_main$12 } from "./Item-D6y1lkrO.js";
17
+ import { a as readMenuDirection, c as _sfc_main$13, d as _sfc_main$16, f as _sfc_main$15, i as useSubmenuMode, l as useDropdownMenuMessages, m as useDropdownMenuContext, n as readNameReference, o as submenuCloseKey, p as dropdownMenuContextKey, r as useMenuDrillIn, s as submenuOpenKey, t as readAccessibleName, u as _sfc_main$14 } from "./accessibleName-COG4Ik6i.js";
18
18
  import { n as clampInlineSize, r as isIntrinsicInlineSize, t as LAYER_MAX_INLINE_SIZE } from "./inlineSize-BNe8wggI.js";
19
19
  import { t as useHeldPresentation } from "./useHeldPresentation-0Z0Untra.js";
20
20
  import { t as useMenuEntranceHold } from "./useMenuEntranceHold-Dewv7oTN.js";
@@ -1,2 +1,2 @@
1
- import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-D3UaSnbN.js";
1
+ import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-BtqvPjAf.js";
2
2
  export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger, type UseHoverCardOptions, type UseHoverCardReturn, useHoverCard };
@@ -1,2 +1,2 @@
1
- import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-Dqo0KSCZ.js";
1
+ import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-zHX0wDmq.js";
2
2
  export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
@@ -1,2 +1,2 @@
1
- import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-Bsl8HqR9.js";
1
+ import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-tNq2IJO8.js";
2
2
  export { _default as InternationalizationProvider, type InternationalizationProviderProps, type InternationalizationProviderSlots, type ProviderMessagesByLocale, type ProviderOverrides, type TextDirection, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
@@ -1,4 +1,4 @@
1
1
  import { t as getLocaleDirection } from "../direction-nWTDB0Ko.js";
2
- import { n as resolveProviderMessages, t as _sfc_main } from "../InternationalizationProvider-B6kMYO4h.js";
2
+ import { n as resolveProviderMessages, t as _sfc_main } from "../InternationalizationProvider-B9wQM8hN.js";
3
3
  import { n as useLocaleDirection, t as astryxDirectionKey } from "../context-DVa_OzKt.js";
4
4
  export { _sfc_main as InternationalizationProvider, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
@@ -1,8 +1,8 @@
1
1
  import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
2
2
  import { i as provideAstryxLocale, r as normalizeLocale } from "./context-B8IEFCDR.js";
3
3
  import { t as provideAstryxCalendar } from "./calendar-B1G5O29s.js";
4
- import { g as icuPlaceholderNames, h as formatIcu, n as upstreamMessageMap, r as builtInMessages, t as loadAstryxCatalog } from "./loadCatalog-DT1OyK-2.js";
5
4
  import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
5
+ import { g as icuPlaceholderNames, h as formatIcu, n as upstreamMessageMap, r as builtInMessages, t as loadAstryxCatalog } from "./loadCatalog-crHU34Cs.js";
6
6
  import { t as astryxDirectionKey } from "./context-DVa_OzKt.js";
7
7
  import { computed, defineComponent, provide, renderSlot } from "vue";
8
8
  //#region src/InternationalizationProvider/catalog.ts
@@ -1331,6 +1331,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1331
1331
  return;
1332
1332
  }
1333
1333
  if (target instanceof HTMLElement && target.closest(NATIVE_CONTROL_SELECTOR) != null) return;
1334
+ const row = event.currentTarget;
1335
+ if (target instanceof Element && (!row.contains(target) || target !== row && hasInteractiveAncestor(target, row))) return;
1334
1336
  if (target instanceof Element && isInControlLabel(target, event.currentTarget)) return;
1335
1337
  if (target instanceof Element && isInLayerSurface(target, event.currentTarget)) return;
1336
1338
  props.onClick?.(event);
@@ -1,3 +1,3 @@
1
1
  import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-Dc52pmSr.js";
2
- import { Ia as _default } from "../index-Dqo0KSCZ.js";
2
+ import { Ia as _default } from "../index-zHX0wDmq.js";
3
3
  export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkType, type LinkWeight };
@@ -1,4 +1,4 @@
1
1
  import { r as ItemSwipeBehavior } from "../swipeHost-B2OlVVZt.js";
2
2
  import { _ as ListItemSlots, a as ItemLayout, b as ListSlots, c as ItemSwipeAction, d as ItemTarget, f as ItemText, g as ListItemProps, h as ListEdgeCompensation, i as ItemLabel, l as ItemSwipeActions, m as ListEdge, n as ItemDensity, o as ItemProps, p as ListDensity, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeSide, v as ListMarkerStyle, y as ListProps } from "../types-xOsWAC6i.js";
3
- import { a as _default, c as ListReorderContextValue, i as _default$1, l as adaptReorderable, n as useListReorderScope, o as useItemDescriptionId, r as _default$2, s as useListContext, t as ListReorderScope, u as reorderableOptions } from "../index-anFpazJ1.js";
3
+ import { a as _default, c as ListReorderContextValue, i as _default$1, l as adaptReorderable, n as useListReorderScope, o as useItemDescriptionId, r as _default$2, s as useListContext, t as ListReorderScope, u as reorderableOptions } from "../index-DyvHDvtx.js";
4
4
  export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdge, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, type ListReorderContextValue as unstable_ListReorderContextValue, ListReorderScope as unstable_ListReorderScope, adaptReorderable as unstable_adaptReorderable, reorderableOptions as unstable_reorderableOptions, useListReorderScope as unstable_useListReorderScope, useItemDescriptionId, useListContext };
@@ -1,5 +1,5 @@
1
1
  import { c as useItemDescriptionId, l as useListContext } from "../itemSlots-DtrAXXlG.js";
2
- import { t as _sfc_main } from "../Item-o9ot81Zr.js";
3
- import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-Cp65x47S.js";
4
- import { i as reorderableOptions, n as useListReorderScope, r as adaptReorderable, t as ListReorderScope } from "../List-Da9fS7xP.js";
2
+ import { t as _sfc_main } from "../Item-D6y1lkrO.js";
3
+ import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-5d5B-FOb.js";
4
+ import { i as reorderableOptions, n as useListReorderScope, r as adaptReorderable, t as ListReorderScope } from "../List-DkH8AKN1.js";
5
5
  export { _sfc_main as Item, _sfc_main$1 as List, _sfc_main$2 as ListItem, ListReorderScope as unstable_ListReorderScope, adaptReorderable as unstable_adaptReorderable, reorderableOptions as unstable_reorderableOptions, useListReorderScope as unstable_useListReorderScope, useItemDescriptionId, useListContext };
@@ -1,6 +1,6 @@
1
1
  import { s as listContextKey } from "./itemSlots-DtrAXXlG.js";
2
2
  import { t as REORDER_ENGINE } from "./reorderTypes-CvmAkO-R.js";
3
- import { i as useReorderSession, r as useReorderCommit } from "./ListItem-Cp65x47S.js";
3
+ import { i as useReorderSession, r as useReorderCommit } from "./ListItem-5d5B-FOb.js";
4
4
  import { computed, defineComponent, h, provide } from "vue";
5
5
  //#region src/reorderable/adaptReorderable.ts
6
6
  /** The options `reorderable` was made with by `createReorderable`. */
@@ -4,7 +4,7 @@ import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
4
4
  import { l as useListContext, n as itemTrailingKey, o as itemListRowKey, s as listContextKey, t as itemLabelNeededKey } from "./itemSlots-DtrAXXlG.js";
5
5
  import { a as markLeaving, i as itemKeyOf, n as isLeaving, o as markTravelling, r as itemKeyAttrs, t as REORDER_ENGINE } from "./reorderTypes-CvmAkO-R.js";
6
6
  import { r as holdLayoutExit, s as playLayoutChange, t as reportLayoutChange } from "./reportChange-DIbgqzKF.js";
7
- import { t as _sfc_main$2 } from "./Item-o9ot81Zr.js";
7
+ import { t as _sfc_main$2 } from "./Item-D6y1lkrO.js";
8
8
  import { i as swipeWithItemKey } from "./createSwipe-DXObfkyb.js";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, h, mergeProps, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
10
10
  import "../styles/list.css";
@@ -1,4 +1,4 @@
1
- import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-Dqo0KSCZ.js";
1
+ import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-zHX0wDmq.js";
2
2
  import { K as MarkdownAstRoot, Q as visitMarkdownNodes, U as MarkdownAstPhrasingContent } from "../protocol-DwUmpC5G.js";
3
3
  import { a as ParseOptions, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, m as InlineNode, o as createIncrementalState, s as parseInline, u as parseMarkdownAst, y as SourceRange } from "../publicParser-B6XMcsB2.js";
4
4
  import { t as decodeMarkdownCharacterReferences } from "../index-BkUkm6Al.js";
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-n3YXiP4a.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-BTMI6Ffm.js";
2
2
  export { _sfc_main as MetadataList, _sfc_main$1 as MetadataListItem };
@@ -73,8 +73,12 @@ const _sfc_main$1 = defineComponent({
73
73
  const limit = horizontal ? void 0 : props.maxNumOfItems;
74
74
  const visible = limit != null && nodes.length > limit && !expanded.value ? nodes.slice(0, limit) : nodes;
75
75
  const title = slots.title || props.title ? h("div", { class: "astryx-metadata-list__title" }, slots.title ? slots.title() : props.title) : null;
76
+ const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...rootAttrs } = attrs;
76
77
  const list = h("dl", {
77
78
  "id": contentId,
79
+ "aria-label": ariaLabel,
80
+ "aria-labelledby": ariaLabelledBy,
81
+ "aria-describedby": ariaDescribedBy,
78
82
  "class": "astryx-metadata-list__dl",
79
83
  "data-layout": layout,
80
84
  "style": gridTemplateColumns ? { gridTemplateColumns } : void 0
@@ -89,7 +93,7 @@ const _sfc_main$1 = defineComponent({
89
93
  }
90
94
  }, expanded.value ? messages.value.metadataList.showLess : messages.value.metadataList.showMore) : null;
91
95
  return h("div", {
92
- ...attrs,
96
+ ...rootAttrs,
93
97
  "class": ["astryx-metadata-list", attrs.class],
94
98
  "data-columns": String(props.columns),
95
99
  "data-orientation": orientation