@astryx-vue/core 0.46.4 → 0.47.1

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 (137) 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/Button/index.d.ts +1 -1
  5. package/dist/ButtonGroup/index.d.ts +1 -1
  6. package/dist/Calendar/index.d.ts +1 -1
  7. package/dist/Calendar/index.js +2 -2
  8. package/dist/{Calendar-BGn9PQI8.js → Calendar-D4nAvj5U.js} +5 -5
  9. package/dist/{Calendar-DpqfOjgX.js → Calendar-DvbTMsIC.js} +5 -5
  10. package/dist/Carousel/index.d.ts +1 -1
  11. package/dist/Center/index.d.ts +1 -1
  12. package/dist/Chat/index.d.ts +1 -1
  13. package/dist/CheckboxInput/index.d.ts +1 -1
  14. package/dist/CheckboxList/index.d.ts +1 -1
  15. package/dist/ClickableCard/index.d.ts +1 -1
  16. package/dist/Collapsible/index.d.ts +1 -1
  17. package/dist/CommandPalette/index.d.ts +1 -1
  18. package/dist/ComplexSelector/index.d.ts +1 -1
  19. package/dist/ContextMenu/index.d.ts +1 -1
  20. package/dist/DateInput/index.d.ts +1 -1
  21. package/dist/DateInput/index.js +1 -1
  22. package/dist/{DateInput-BU_M6g1j.js → DateInput-Bg4jkwQ_.js} +9 -8
  23. package/dist/DateRangeInput/index.d.ts +1 -1
  24. package/dist/DateRangeInput/index.js +1 -1
  25. package/dist/{DateRangeInput-B7z6QEYg.js → DateRangeInput-BVN7ZvDc.js} +5 -5
  26. package/dist/DateTimeInput/index.d.ts +1 -1
  27. package/dist/DateTimeInput/index.js +1 -1
  28. package/dist/{DateTimeInput-BhZHEX1C.js → DateTimeInput-DPnBGL6l.js} +4 -4
  29. package/dist/Divider/index.d.ts +1 -1
  30. package/dist/Drawer/index.d.ts +1 -1
  31. package/dist/FileInput/index.js +1 -1
  32. package/dist/{FileInput-cbbH72PV.js → FileInput-CQP-VdDl.js} +1 -1
  33. package/dist/HoverCard/index.d.ts +1 -1
  34. package/dist/InfoTip/index.d.ts +1 -1
  35. package/dist/InputGroup/index.d.ts +1 -1
  36. package/dist/InternationalizationProvider/index.d.ts +1 -1
  37. package/dist/InternationalizationProvider/index.js +3 -3
  38. package/dist/{InternationalizationProvider-CyxgZ6jv.js → InternationalizationProvider-B6kMYO4h.js} +4 -4
  39. package/dist/Link/index.d.ts +1 -1
  40. package/dist/List/index.d.ts +1 -1
  41. package/dist/Markdown/index.d.ts +1 -1
  42. package/dist/Markdown/index.js +1 -1
  43. package/dist/{Markdown-CGT2VGto.js → Markdown-DEwHt1xG.js} +1 -1
  44. package/dist/MoreMenu/index.d.ts +1 -1
  45. package/dist/MultiSelector/index.d.ts +1 -1
  46. package/dist/MultiSelector/index.js +1 -1
  47. package/dist/{MultiSelector-DO33TcAb.js → MultiSelector-DPRe_xUK.js} +2 -2
  48. package/dist/NavItem/index.d.ts +1 -1
  49. package/dist/NumberInput/index.d.ts +1 -1
  50. package/dist/OverflowList/index.d.ts +1 -1
  51. package/dist/Overlay/index.d.ts +1 -1
  52. package/dist/Popover/index.d.ts +1 -1
  53. package/dist/PowerSearch/index.d.ts +1 -1
  54. package/dist/PowerSearch/index.js +1 -1
  55. package/dist/{PowerSearch-s0zd_q_u.js → PowerSearch-DiAS6eY3.js} +87 -82
  56. package/dist/ProgressBar/index.d.ts +1 -1
  57. package/dist/ProgressBar/index.js +1 -1
  58. package/dist/{ProgressBar-EB4C8g83.js → ProgressBar-CDhK30fZ.js} +4 -1
  59. package/dist/Radio/index.d.ts +1 -1
  60. package/dist/RadioList/index.d.ts +1 -1
  61. package/dist/Resizable/index.d.ts +1 -1
  62. package/dist/ScrollableArea/index.d.ts +1 -1
  63. package/dist/SegmentedControl/index.d.ts +1 -1
  64. package/dist/SelectableCard/index.d.ts +1 -1
  65. package/dist/Selector/index.d.ts +1 -1
  66. package/dist/SideNav/index.d.ts +1 -1
  67. package/dist/Switch/index.d.ts +1 -1
  68. package/dist/TabList/index.d.ts +1 -1
  69. package/dist/Table/index.d.ts +1 -1
  70. package/dist/Table/index.js +1 -1
  71. package/dist/{Table-CDlpFNZo.js → Table-CkWBUcAh.js} +4 -4
  72. package/dist/TextArea/index.d.ts +1 -1
  73. package/dist/TextInput/index.d.ts +1 -1
  74. package/dist/Thumbnail/index.js +1 -1
  75. package/dist/{Thumbnail-CYvBjbkJ.js → Thumbnail-D60-nKWf.js} +2 -2
  76. package/dist/{TimeField-CyXcvqrc.js → TimeField-BJ8S3TXa.js} +1 -1
  77. package/dist/TimeInput/index.d.ts +1 -1
  78. package/dist/TimeInput/index.js +1 -1
  79. package/dist/{TimeInput-C6eMxL8g.js → TimeInput-rUkF0qJc.js} +1 -1
  80. package/dist/Timestamp/index.d.ts +1 -1
  81. package/dist/Timestamp/index.js +2 -2
  82. package/dist/{Timestamp-C1y_Uo2J.js → Timestamp-CFTG2jF2.js} +2 -2
  83. package/dist/ToggleButton/index.d.ts +1 -1
  84. package/dist/Token/index.d.ts +1 -1
  85. package/dist/Tokenizer/index.d.ts +1 -1
  86. package/dist/Toolbar/index.d.ts +1 -1
  87. package/dist/Tooltip/index.d.ts +1 -1
  88. package/dist/TopNav/index.d.ts +1 -1
  89. package/dist/{calendar-C7py_wtb.js → calendar-B1G5O29s.js} +2 -1
  90. package/dist/{calendarFormat-DTC8AICa.js → calendarFormat-CbxpwgAe.js} +4 -3
  91. package/dist/{context-DPVQjlFy.js → context-DVa_OzKt.js} +1 -1
  92. package/dist/dateTimeFormatCache-CSsvHOhO.js +31 -0
  93. package/dist/direction-nWTDB0Ko.js +64 -0
  94. package/dist/{format-lexzIzDb.js → format--_j64_yo.js} +9 -2
  95. package/dist/{formatInstant-DKbYRamj.js → formatInstant-B-ukorXg.js} +1 -1
  96. package/dist/{index-DSAtZP4A.d.ts → index-B8NGDyIe.d.ts} +1 -1
  97. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  98. package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
  99. package/dist/{index-D3onyhSs.d.ts → index-BPnP3Abd.d.ts} +4 -4
  100. package/dist/{index-DV_07j3S.d.ts → index-BXr7LtAh.d.ts} +3 -3
  101. package/dist/{index-DSsuY9v9.d.ts → index-BaXcJ7eE.d.ts} +1 -1
  102. package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
  103. package/dist/{index-CqSUm878.d.ts → index-Bsl8HqR9.d.ts} +3 -3
  104. package/dist/{index-C8hyLvk2.d.ts → index-C7uGs5Cl.d.ts} +2 -2
  105. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  106. package/dist/{index-CmqD5Ya9.d.ts → index-CD1-Hqm0.d.ts} +2 -2
  107. package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
  108. package/dist/{index-KmUnBSAl.d.ts → index-CWCkAA0e.d.ts} +9 -9
  109. package/dist/{index-DYU4kE-q.d.ts → index-Cg6pihUE.d.ts} +3 -3
  110. package/dist/{index-iGHM85Y1.d.ts → index-CpLGbFCR.d.ts} +4 -4
  111. package/dist/{index-BxlyJ9ui.d.ts → index-DMQqZbs3.d.ts} +69 -64
  112. package/dist/{index-BMoR8Uoh.d.ts → index-DZMs9KqG.d.ts} +1 -1
  113. package/dist/{index-Br41ynrM.d.ts → index-Dh1ZiUCu.d.ts} +2 -2
  114. package/dist/{index-D3UaSnbN.d.ts → index-DofC9Rll.d.ts} +2 -2
  115. package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
  116. package/dist/{index-B2BJ8L8S.d.ts → index-DsxkdygE.d.ts} +8 -8
  117. package/dist/{index-vCRf5fyK.d.ts → index-ZKBj_1nu.d.ts} +1 -1
  118. package/dist/{index-DyikW_sN.d.ts → index-aBeGbS1N.d.ts} +1 -1
  119. package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
  120. package/dist/index.d.ts +27 -27
  121. package/dist/index.js +24 -24
  122. package/dist/{inputPresentation-DES0JwkL.js → inputPresentation-Br70N2eS.js} +1 -1
  123. package/dist/{loadCatalog-YkQJ7sxu.d.ts → loadCatalog-BLR2kAhy.d.ts} +27 -2
  124. package/dist/{loadCatalog--oXKoMve.js → loadCatalog-DT1OyK-2.js} +54 -7
  125. package/dist/locale/index.d.ts +3 -3
  126. package/dist/locale/index.js +5 -5
  127. package/dist/{locale-BH7q40Eo.js → locale-DhcPo0et.js} +2 -2
  128. package/dist/{plainDate-CaTDErKr.js → plainDate-By2VjeSI.js} +2 -31
  129. package/dist/{thumbnail-BI82Ijpj.js → thumbnail-ASg6cXnd.js} +4 -2
  130. package/dist/{useCalendarGrid-BjOvk9HI.js → useCalendarGrid-Bz7NJmA3.js} +2 -2
  131. package/dist/{useListFormatter-CFDqZ9jK.js → useListFormatter-kggOt7I2.js} +17 -10
  132. package/dist/utils/index.js +2 -2
  133. package/locales/en.json +74 -10
  134. package/locales/vi-VN.json +1336 -0
  135. package/package.json +1 -1
  136. package/dist/direction-CNotzbN9.js +0 -44
  137. package/dist/{index-DrIxH3YE.d.ts → index-CNZCQgHF.d.ts} +1 -1
@@ -17,29 +17,30 @@ import { t as _sfc_main$17 } from "./Heading-DHuEWiNg.js";
17
17
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
18
18
  import { t as _sfc_main$18 } from "./Text-S8qRNR8c.js";
19
19
  import { t as LazyBottomSheet } from "./lazyBottomSheet-1hbBBtDy.js";
20
- import { r as useCalendarSystem } from "./calendar-C7py_wtb.js";
21
- import { r as formatCalendarInstant } from "./calendarFormat-DTC8AICa.js";
22
- import { t as _sfc_main$19 } from "./Calendar-BGn9PQI8.js";
20
+ import { r as useCalendarSystem } from "./calendar-B1G5O29s.js";
21
+ import { r as formatCalendarInstant } from "./calendarFormat-CbxpwgAe.js";
22
+ import { t as _sfc_main$19 } from "./Calendar-D4nAvj5U.js";
23
23
  import { t as _sfc_main$20 } from "./Field-BiLdRQCq.js";
24
24
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
25
25
  import { n as _sfc_main$21, t as _sfc_main$22 } from "./ListItem-Ds5nLB5D.js";
26
26
  import { n as _sfc_main$23, t as _sfc_main$24 } from "./CheckboxListItem-BItPhY6_.js";
27
- import { t as _sfc_main$25 } from "./DateInput-BU_M6g1j.js";
27
+ import { t as _sfc_main$25 } from "./DateInput-Bg4jkwQ_.js";
28
28
  import { t as tokenizerMessages } from "./tokenizer-C1y-55Ft.js";
29
- import { l as powerSearchMessages, u as powerSearchSheetMessages } from "./loadCatalog--oXKoMve.js";
30
- import { t as _sfc_main$26 } from "./DateRangeInput-B7z6QEYg.js";
31
- import { t as _sfc_main$27 } from "./DateTimeInput-BhZHEX1C.js";
29
+ import { d as powerSearchSheetMessages, u as powerSearchMessages } from "./loadCatalog-DT1OyK-2.js";
30
+ import { t as _sfc_main$26 } from "./DateRangeInput-BVN7ZvDc.js";
31
+ import { t as _sfc_main$27 } from "./DateTimeInput-DPnBGL6l.js";
32
32
  import { t as _sfc_main$28 } from "./EmptyState-Dd1opiK7.js";
33
+ import { r as createListFormatter } from "./useListFormatter-kggOt7I2.js";
33
34
  import { n as tokenNamingKey, t as _sfc_main$29 } from "./Token-Dmz6vEMX.js";
34
35
  import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-BMwmHp6q.js";
35
- import { t as _sfc_main$30 } from "./MultiSelector-DO33TcAb.js";
36
+ import { t as _sfc_main$30 } from "./MultiSelector-DPRe_xUK.js";
36
37
  import { n as resolveNumberInputCommit, t as _sfc_main$31 } from "./NumberInput-DC1ALFjZ.js";
37
38
  import { t as _sfc_main$32 } from "./Selector-ChAPYgNU.js";
38
39
  import { o as useTypeaheadMenu } from "./useTypeaheadMenuConfig-DDxBm-a1.js";
39
40
  import { a as _sfc_main$34, i as dismissSearchOnTouchDrag, n as useSheetPresentation, r as useTokenRemoveTap, t as _sfc_main$33 } from "./Tokenizer-YPRYXnaq.js";
40
41
  import { t as _sfc_main$35 } from "./TextInput-9KSEUhQ8.js";
41
42
  import { n as _sfc_main$36, t as _sfc_main$37 } from "./RadioListItem-D1N5d2ei.js";
42
- import { t as _sfc_main$38 } from "./TimeInput-C6eMxL8g.js";
43
+ import { t as _sfc_main$38 } from "./TimeInput-rUkF0qJc.js";
43
44
  import { t as _sfc_main$39 } from "./Typeahead-CO_0iW0V.js";
44
45
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
45
46
  import "../styles/layer.css";
@@ -282,6 +283,66 @@ function absoluteRange(start, end, zone) {
282
283
  };
283
284
  }
284
285
  //#endregion
286
+ //#region src/PowerSearch/relativeDates.ts
287
+ const RELATIVE_DATE_UNITS = [
288
+ {
289
+ unit: "day",
290
+ amounts: [
291
+ 1,
292
+ 3,
293
+ 7,
294
+ 14,
295
+ 30
296
+ ],
297
+ ago: "relativeDaysAgo",
298
+ fromNow: "relativeDaysFromNow"
299
+ },
300
+ {
301
+ unit: "week",
302
+ amounts: [
303
+ 1,
304
+ 2,
305
+ 4
306
+ ],
307
+ ago: "relativeWeeksAgo",
308
+ fromNow: "relativeWeeksFromNow"
309
+ },
310
+ {
311
+ unit: "month",
312
+ amounts: [
313
+ 1,
314
+ 3,
315
+ 6,
316
+ 12
317
+ ],
318
+ ago: "relativeMonthsAgo",
319
+ fromNow: "relativeMonthsFromNow"
320
+ }
321
+ ];
322
+ /**
323
+ * 相对日期运算符提供的选项,按显示顺序排列。桌面浮层的 Selector 和底部弹层的单选行共用这一份,
324
+ * 两边列出的值一样。值写成 `3d_ago`、`2w_from_now` 这种形式;`isPastAllowed` / `isFutureAllowed`
325
+ * 写 false 时去掉对应方向的选项。
326
+ */
327
+ function buildRelativeDateOptions(operatorValue, messages) {
328
+ const options = [];
329
+ for (const { unit, amounts, ago, fromNow } of RELATIVE_DATE_UNITS) for (const amount of amounts) {
330
+ if (operatorValue.isPastAllowed !== false) options.push({
331
+ value: `${amount}${unit[0]}_ago`,
332
+ label: messages[ago](amount)
333
+ });
334
+ if (operatorValue.isFutureAllowed !== false) options.push({
335
+ value: `${amount}${unit[0]}_from_now`,
336
+ label: messages[fromNow](amount)
337
+ });
338
+ }
339
+ return options;
340
+ }
341
+ /** 存下的相对日期值(`3d_ago`)读作提供它的那个选项的文字(「3 天前」);没有选项提供它时原样显示。 */
342
+ function relativeDateLabel(operatorValue, value, messages) {
343
+ return buildRelativeDateOptions(operatorValue, messages).find((option) => option.value === value)?.label ?? value;
344
+ }
345
+ //#endregion
285
346
  //#region src/PowerSearch/format.ts
286
347
  function truncate(value, maxLength) {
287
348
  return truncateCharacters(value, maxLength);
@@ -311,26 +372,32 @@ function formatDateAbsoluteCompact(unixSeconds, locale, timeZone, calendar = "gr
311
372
  day: "numeric"
312
373
  }, locale, timeZone || void 0);
313
374
  }
314
- function joinOrCount(labels, maxLength, countLabel) {
375
+ /** 几项按 `locale` 的列表格式连起来(德语是 "a, b und c");放不下时改写成数量。 */
376
+ function joinOrCount(labels, maxLength, locale, countLabel) {
315
377
  if (labels.length === 0) return "";
316
378
  if (labels.length === 1) return truncate(labels[0] ?? "", maxLength);
317
- const joined = labels.join(", ");
379
+ const joined = createListFormatter(locale)(labels);
318
380
  if (characterCount(joined) <= maxLength) return joined;
319
381
  return countLabel(labels.length);
320
382
  }
321
- function formatFilterValue(operatorValue, filterValue, maxLength, messages, locale, timeZone, calendar = "gregory") {
383
+ /**
384
+ * 筛选标签上值的文字,按 `locale` 写:多项按这门语言的列表格式连起来,数字用它的数字格式,
385
+ * 相对日期读作选项上的文字(「3 天前」,不是存下的 `3d_ago`),文字由 `sheetMessages` 给出,
386
+ * 不传时用英文。放不下 `maxLength` 时列表改写成数量。
387
+ */
388
+ function formatFilterValue(operatorValue, filterValue, maxLength, messages, locale, timeZone, calendar = "gregory", sheetMessages = powerSearchSheetMessages.en) {
322
389
  switch (filterValue.type) {
323
390
  case "empty": return "";
324
391
  case "string": return truncate(filterValue.value, maxLength);
325
392
  case "integer": return formatNumber(filterValue.value, locale, operatorValue.type === "integer" ? operatorValue.units : void 0);
326
393
  case "float": return formatNumber(filterValue.value, locale, operatorValue.type === "float" ? operatorValue.units : void 0);
327
394
  case "enum": return truncate(operatorValue.type === "enum" ? enumLabel(filterValue.value, operatorValue.values) : filterValue.value, maxLength);
328
- case "string_list": return joinOrCount(filterValue.value, maxLength, messages.itemsCount);
329
- case "enum_list": return joinOrCount(operatorValue.type === "enum_list" ? filterValue.value.map((value) => enumLabel(value, operatorValue.values)) : filterValue.value, maxLength, messages.itemsCount);
330
- case "entity_list": return joinOrCount(filterValue.value.map((entity) => entity.label), maxLength, messages.entitiesCount);
395
+ case "string_list": return joinOrCount(filterValue.value, maxLength, locale, messages.itemsCount);
396
+ case "enum_list": return joinOrCount(operatorValue.type === "enum_list" ? filterValue.value.map((value) => enumLabel(value, operatorValue.values)) : filterValue.value, maxLength, locale, messages.itemsCount);
397
+ case "entity_list": return joinOrCount(filterValue.value.map((entity) => entity.label), maxLength, locale, messages.entitiesCount);
331
398
  case "time": return filterValue.value;
332
399
  case "date_absolute": return truncate(isDateOnlyOperator(operatorValue) ? formatDateAbsoluteCompact(filterValue.unixSeconds, locale, resolveDateZone(timeZone, true), calendar) : formatDateAbsolute(filterValue.unixSeconds, locale, timeZone, calendar), maxLength);
333
- case "date_relative": return filterValue.value;
400
+ case "date_relative": return truncate(operatorValue.type === "date_relative" ? relativeDateLabel(operatorValue, filterValue.value, sheetMessages) : filterValue.value, maxLength);
334
401
  case "date_range": return messages.dateRange;
335
402
  case "custom": return truncate(operatorValue.type === "custom" ? operatorValue.getString(filterValue.value) : filterValue.value, maxLength);
336
403
  case "nested": return messages.filtersCount(filterValue.value.length);
@@ -492,11 +559,12 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
492
559
  const props = __props;
493
560
  const emit = __emit;
494
561
  const calendar = useCalendarSystem(void 0, "PowerSearch");
562
+ const sheetMessages = useComponentMessages({ powerSearchSheet: powerSearchSheetMessages });
495
563
  const operatorLabel = computed(() => resolveOperatorLabel(props.operator, props.messages));
496
564
  const tokenLabel = computed(() => formatTokenLabel(props.messages, props.fieldLabel, operatorLabel.value));
497
565
  const valueText = computed(() => {
498
566
  const room = Math.max(props.maxLength - characterCount(props.fieldLabel) - characterCount(operatorLabel.value), 10);
499
- return formatFilterValue(props.operator.value, props.filter.value, room, props.messages, props.locale, props.timeZone, calendar.value);
567
+ return formatFilterValue(props.operator.value, props.filter.value, room, props.messages, props.locale, props.timeZone, calendar.value, sheetMessages.value.powerSearchSheet);
500
568
  });
501
569
  /** 标签的全部可见文字:字段、运算符和值。按钮、删除按钮和编辑器都按它命名,同一字段的两个条件读出来不再一样。 */
502
570
  const visibleText = computed(() => valueText.value ? formatTokenText(props.messages, tokenLabel.value, valueText.value) : tokenLabel.value);
@@ -1051,66 +1119,10 @@ const _sfc_main$9 = /*@__PURE__*/ defineComponent({
1051
1119
  }
1052
1120
  });
1053
1121
  //#endregion
1054
- //#region src/PowerSearch/relativeDates.ts
1055
- const RELATIVE_DATE_UNITS = [
1056
- {
1057
- unit: "day",
1058
- amounts: [
1059
- 1,
1060
- 3,
1061
- 7,
1062
- 14,
1063
- 30
1064
- ],
1065
- ago: "relativeDaysAgo",
1066
- fromNow: "relativeDaysFromNow"
1067
- },
1068
- {
1069
- unit: "week",
1070
- amounts: [
1071
- 1,
1072
- 2,
1073
- 4
1074
- ],
1075
- ago: "relativeWeeksAgo",
1076
- fromNow: "relativeWeeksFromNow"
1077
- },
1078
- {
1079
- unit: "month",
1080
- amounts: [
1081
- 1,
1082
- 3,
1083
- 6,
1084
- 12
1085
- ],
1086
- ago: "relativeMonthsAgo",
1087
- fromNow: "relativeMonthsFromNow"
1088
- }
1089
- ];
1090
- /**
1091
- * 相对日期运算符提供的选项,按显示顺序排列。桌面浮层的 Selector 和底部弹层的单选行共用这一份,
1092
- * 两边列出的值一样。值写成 `3d_ago`、`2w_from_now` 这种形式;`isPastAllowed` / `isFutureAllowed`
1093
- * 写 false 时去掉对应方向的选项。
1094
- */
1095
- function buildRelativeDateOptions(operatorValue, messages) {
1096
- const options = [];
1097
- for (const { unit, amounts, ago, fromNow } of RELATIVE_DATE_UNITS) for (const amount of amounts) {
1098
- if (operatorValue.isPastAllowed !== false) options.push({
1099
- value: `${amount}${unit[0]}_ago`,
1100
- label: messages[ago](amount)
1101
- });
1102
- if (operatorValue.isFutureAllowed !== false) options.push({
1103
- value: `${amount}${unit[0]}_from_now`,
1104
- label: messages[fromNow](amount)
1105
- });
1106
- }
1107
- return options;
1108
- }
1109
- //#endregion
1110
1122
  //#region src/PowerSearch/sheetFilterText.ts
1111
1123
  /**
1112
1124
  * 「筛选条件」一行的两部分文字。配置里已经没有的字段或运算符按原始键显示,和触发器上的标签一致。
1113
- * 相对日期存的是键(`3d_ago`),这里读成值那一步选项上的文字(「3 天前」)。
1125
+ * 相对日期存的是键(`3d_ago`),读成值那一步选项上的文字(「3 天前」),和标签上一致。
1114
1126
  */
1115
1127
  function describeSheetFilterParts(filter, context) {
1116
1128
  const field = context.lookup.getField(filter.field);
@@ -1122,16 +1134,9 @@ function describeSheetFilterParts(filter, context) {
1122
1134
  label,
1123
1135
  value: null
1124
1136
  };
1125
- if (operator.value.type === "date_relative" && filter.value.type === "date_relative") {
1126
- const relative = filter.value.value;
1127
- return {
1128
- label,
1129
- value: buildRelativeDateOptions(operator.value, context.sheet).find((option) => option.value === relative)?.label ?? relative
1130
- };
1131
- }
1132
1137
  return {
1133
1138
  label,
1134
- value: formatFilterValue(operator.value, filter.value, Number.MAX_SAFE_INTEGER, context.messages, context.locale, context.timeZone, context.calendar) || null
1139
+ value: formatFilterValue(operator.value, filter.value, Number.MAX_SAFE_INTEGER, context.messages, context.locale, context.timeZone, context.calendar, context.sheet) || null
1135
1140
  };
1136
1141
  }
1137
1142
  /** 整行读出来的文字:删除时播报用,和行上显示的一致。 */
@@ -1,2 +1,2 @@
1
- import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-BaFphczL.js";
1
+ import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-COgrQZIL.js";
2
2
  export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../ProgressBar-EB4C8g83.js";
1
+ import { t as _sfc_main } from "../ProgressBar-CDhK30fZ.js";
2
2
  export { _sfc_main as ProgressBar };
@@ -2,7 +2,9 @@ import { s as formatMotionRoleValue } from "./roles-D6hLs7Rg.js";
2
2
  import { o as timing } from "./linearEasing-CDsqxyiS.js";
3
3
  import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
4
4
  import { t as resolveMotion } from "./resolveMotion-BHR1cz0Q.js";
5
+ import { a as useAstryxLocale } from "./context-B8IEFCDR.js";
5
6
  import { t as _sfc_main$1 } from "./Tooltip-Du2qh5Oz.js";
7
+ import { r as formatPercent } from "./format--_j64_yo.js";
6
8
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
7
9
  import "../styles/visually-hidden.css";
8
10
  import "../styles/progress-bar.css";
@@ -239,11 +241,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
239
241
  }));
240
242
  const pulseVars = reducedMotionPulseVars();
241
243
  const widthStyle = computed(() => ({ width: typeof props.width === "number" ? `${props.width}px` : props.width }));
244
+ const locale = useAstryxLocale();
242
245
  const showsValue = computed(() => Boolean(props.showValue || props.hasValueLabel));
243
246
  const displayValue = computed(() => {
244
247
  if (props.valueText != null) return props.valueText;
245
248
  if (props.formatValueLabel) return props.formatValueLabel(clamped.value, max.value);
246
- return `${Math.round(percentage.value)}%`;
249
+ return formatPercent(Math.round(percentage.value), locale.value);
247
250
  });
248
251
  const labelledBy = computed(() => [labelId.value, attrs["aria-labelledby"]].filter(Boolean).join(" ") || void 0);
249
252
  const describedBy = computed(() => [descriptionId.value, attrs["aria-describedby"]].filter(Boolean).join(" ") || void 0);
@@ -1,2 +1,2 @@
1
- import { $r as RadioValue, Br as _default, Hr as RadioGroupEmits, Jr as RadioProps, Kr as RadioOption, Qr as RadioStatusType, Ur as RadioGroupProps, Vr as RadioChangeEvent, Wr as RadioGroupSlots, Xr as RadioSlots, Yr as RadioSize, Zr as RadioStatus, qr as RadioOrientation, zr as _default$1 } from "../index-BxlyJ9ui.js";
1
+ import { $r as RadioValue, Br as _default, Hr as RadioGroupEmits, Jr as RadioProps, Kr as RadioOption, Qr as RadioStatusType, Ur as RadioGroupProps, Vr as RadioChangeEvent, Wr as RadioGroupSlots, Xr as RadioSlots, Yr as RadioSize, Zr as RadioStatus, qr as RadioOrientation, zr as _default$1 } from "../index-DMQqZbs3.js";
2
2
  export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
@@ -1,2 +1,2 @@
1
- import { Gr as RadioListProps, Ir as _default$1, Lr as RadioListItemProps, Rr as _default } from "../index-BxlyJ9ui.js";
1
+ import { Gr as RadioListProps, Ir as _default$1, Lr as RadioListItemProps, Rr as _default } from "../index-DMQqZbs3.js";
2
2
  export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
@@ -1,2 +1,2 @@
1
- import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-BMoR8Uoh.js";
1
+ import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-DZMs9KqG.js";
2
2
  export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };
@@ -1,2 +1,2 @@
1
- import { Fr as ScrollableAreaSlots, Nr as _default, Pr as ScrollableAreaProps } from "../index-BxlyJ9ui.js";
1
+ import { Fr as ScrollableAreaSlots, Nr as _default, Pr as ScrollableAreaProps } from "../index-DMQqZbs3.js";
2
2
  export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
@@ -1,2 +1,2 @@
1
- import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-DSsuY9v9.js";
1
+ import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-BaXcJ7eE.js";
2
2
  export { _default as SegmentedControl, type SegmentedControlContextValue, type SegmentedControlEmits, _default$1 as SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlItemSlots, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlSize, type SegmentedControlSlots };
@@ -1,2 +1,2 @@
1
- import { Ar as SelectableCardEmits, Dr as SelectableCardInput, Mr as SelectableCardSlots, Or as selectableCardInputKey, jr as SelectableCardProps, kr as _default } from "../index-BxlyJ9ui.js";
1
+ import { Ar as SelectableCardEmits, Dr as SelectableCardInput, Mr as SelectableCardSlots, Or as selectableCardInputKey, jr as SelectableCardProps, kr as _default } from "../index-DMQqZbs3.js";
2
2
  export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardInput, type SelectableCardProps, type SelectableCardSlots, selectableCardInputKey };
@@ -1,2 +1,2 @@
1
- import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-KmUnBSAl.js";
1
+ import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-CWCkAA0e.js";
2
2
  export { _default as Selector, type SelectorEmits, type SelectorEntry, type SelectorIndicatorPosition, type SelectorOption, type SelectorOptionInput, type SelectorPresentation, type SelectorProps, type SelectorSection, type SelectorSize, type SelectorSlots, type SelectorStatus, type SelectorStatusInput, type SelectorStatusVariant, type SelectorVariant };
@@ -1,2 +1,2 @@
1
- import { Cr as SideNavResizable, Er as useSideNavCollapse, Sr as SideNavProps, Tr as SideNavCollapseContext, _r as SideNavEmits, br as SideNavItemEmits, cr as _default$3, dr as _default, fr as SideNavCollapseButtonProps, gr as SideNavControlledCollapsible, hr as SideNavCollapsible, lr as _default$2, mr as SideNavCollapseButtonSlots, pr as SideNavCollapseButtonSize, sr as _default$4, ur as _default$1, vr as SideNavHandle, wr as SideNavSectionProps, xr as SideNavItemProps, yr as SideNavHeadingProps } from "../index-BxlyJ9ui.js";
1
+ import { Cr as SideNavResizable, Er as useSideNavCollapse, Sr as SideNavProps, Tr as SideNavCollapseContext, _r as SideNavEmits, br as SideNavItemEmits, cr as _default$3, dr as _default, fr as SideNavCollapseButtonProps, gr as SideNavControlledCollapsible, hr as SideNavCollapsible, lr as _default$2, mr as SideNavCollapseButtonSlots, pr as SideNavCollapseButtonSize, sr as _default$4, ur as _default$1, vr as SideNavHandle, wr as SideNavSectionProps, xr as SideNavItemProps, yr as SideNavHeadingProps } from "../index-DMQqZbs3.js";
2
2
  export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseButtonSize, type SideNavCollapseButtonSlots, type SideNavCollapseContext, type SideNavCollapsible, type SideNavControlledCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
@@ -1,2 +1,2 @@
1
- import { $n as SwitchEmits, Qn as SwitchChangeEvent, Xn as _default, Zn as SwitchChangeAction, ar as SwitchStatus, er as SwitchLabelPosition, ir as SwitchSlots, nr as SwitchProps, or as SwitchStatusType, rr as SwitchSize, tr as SwitchLabelSpacing } from "../index-BxlyJ9ui.js";
1
+ import { $n as SwitchEmits, Qn as SwitchChangeEvent, Xn as _default, Zn as SwitchChangeAction, ar as SwitchStatus, er as SwitchLabelPosition, ir as SwitchSlots, nr as SwitchProps, or as SwitchStatusType, rr as SwitchSize, tr as SwitchLabelSpacing } from "../index-DMQqZbs3.js";
2
2
  export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchLabelPosition, type SwitchLabelSpacing, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
@@ -1,2 +1,2 @@
1
- import { a as TabListLayout, c as TabListSize, d as TabMenuProps, f as TabProps, i as TabListEdgeCompensation, l as TabListTab, n as _default$1, o as TabListOverflow, p as TabSlots, r as _default, s as TabListProps, t as _default$2, u as TabMenuOption } from "../index-Cm36VS1A.js";
1
+ import { a as TabListLayout, c as TabListSize, d as TabMenuProps, f as TabProps, i as TabListEdgeCompensation, l as TabListTab, n as _default$1, o as TabListOverflow, p as TabSlots, r as _default, s as TabListProps, t as _default$2, u as TabMenuOption } from "../index-mK1ICsVg.js";
2
2
  export { _default as Tab, _default$1 as TabList, type TabListEdgeCompensation, type TabListLayout, type TabListOverflow, type TabListProps, type TabListSize, type TabListTab, _default$2 as TabMenu, type TabMenuOption, type TabMenuProps, type TabProps, type TabSlots };
@@ -1,3 +1,3 @@
1
- import { $t as useTableSortableState, An as useTableColumnSettings, At as _default$5, Bn as useTableColumnResize, Bt as TableTreeRowMeta, Cn as UseTableFilteringConfig, Dn as ColumnSettingsOption, En as useTableFiltering, Fn as columnResizeDirectionSign, Ft as _default, Gn as pixel, Gt as useTableTreeState, Hn as cellText, Ht as UseTableTreeStateConfig, In as columnResizeMinWidth, It as UseTableColumnsVirtualizationConfig, Jn as resolveColumnWidths, Jt as resolveStickySide, Kn as proportional, Kt as StickySide, Ln as columnResizeStep, Lt as UseTableRowsVirtualizationConfig, Mn as ColumnResizePlan, Mt as _default$3, Nn as ColumnResizeSnapshot, Nt as _default$2, On as TableColumnSettingsState, Ot as _default$7, Pn as UseTableColumnResizeConfig, Pt as _default$1, Qt as useTableSortable, Rn as isProportionalColumnWidth, Rt as useTableColumnsVirtualization, Sn as UseTableFilterStateOptions, Tn as useTableFilterState, Un as generateColumns, Ut as flattenTree, Vn as capitalize, Vt as UseTableTreeDataConfig, Wn as paginateData, Wt as useTableTreeData, Xt as useTableStickyColumns, Yn as sortRows, Yt as stickyOffsets, Zt as UseTableSortableConfig, _n as UseTableGroupedRowsConfig, an as UseTableRowStatusConfig, bn as useTableGroupedRows, cn as useTableRowIndex, dn as TablePaginationVariant, en as TableCustomRowStatus, fn as UseTablePaginationConfig, gn as useTableInfiniteScroll, hn as UseTableInfiniteScrollConfig, in as TableSemanticRowStatus, jn as useTableColumnSettingsState, jt as _default$4, kn as UseTableColumnSettingsConfig, kt as _default$6, ln as UseTableRowExpansionConfig, mn as isInteractiveRowClick, nn as TableRowStatusColor, on as useTableRowStatus, pn as useTablePagination, qn as resolveColumnFloorWidths, qt as UseTableStickyColumnsConfig, rn as TableRowStatusName, sn as UseTableRowIndexConfig, tn as TableRowStatus, un as useTableRowExpansion, vn as buildGroupedRows, wn as applyTableFilters, xn as TableFilterStateHandle, yn as isTableGroupHeader, zn as resizeColumnWidths, zt as useTableRowsVirtualization } from "../index-BxlyJ9ui.js";
1
+ import { $t as useTableSortableState, An as useTableColumnSettings, At as _default$5, Bn as useTableColumnResize, Bt as TableTreeRowMeta, Cn as UseTableFilteringConfig, Dn as ColumnSettingsOption, En as useTableFiltering, Fn as columnResizeDirectionSign, Ft as _default, Gn as pixel, Gt as useTableTreeState, Hn as cellText, Ht as UseTableTreeStateConfig, In as columnResizeMinWidth, It as UseTableColumnsVirtualizationConfig, Jn as resolveColumnWidths, Jt as resolveStickySide, Kn as proportional, Kt as StickySide, Ln as columnResizeStep, Lt as UseTableRowsVirtualizationConfig, Mn as ColumnResizePlan, Mt as _default$3, Nn as ColumnResizeSnapshot, Nt as _default$2, On as TableColumnSettingsState, Ot as _default$7, Pn as UseTableColumnResizeConfig, Pt as _default$1, Qt as useTableSortable, Rn as isProportionalColumnWidth, Rt as useTableColumnsVirtualization, Sn as UseTableFilterStateOptions, Tn as useTableFilterState, Un as generateColumns, Ut as flattenTree, Vn as capitalize, Vt as UseTableTreeDataConfig, Wn as paginateData, Wt as useTableTreeData, Xt as useTableStickyColumns, Yn as sortRows, Yt as stickyOffsets, Zt as UseTableSortableConfig, _n as UseTableGroupedRowsConfig, an as UseTableRowStatusConfig, bn as useTableGroupedRows, cn as useTableRowIndex, dn as TablePaginationVariant, en as TableCustomRowStatus, fn as UseTablePaginationConfig, gn as useTableInfiniteScroll, hn as UseTableInfiniteScrollConfig, in as TableSemanticRowStatus, jn as useTableColumnSettingsState, jt as _default$4, kn as UseTableColumnSettingsConfig, kt as _default$6, ln as UseTableRowExpansionConfig, mn as isInteractiveRowClick, nn as TableRowStatusColor, on as useTableRowStatus, pn as useTablePagination, qn as resolveColumnFloorWidths, qt as UseTableStickyColumnsConfig, rn as TableRowStatusName, sn as UseTableRowIndexConfig, tn as TableRowStatus, un as useTableRowExpansion, vn as buildGroupedRows, wn as applyTableFilters, xn as TableFilterStateHandle, yn as isTableGroupHeader, zn as resizeColumnWidths, zt as useTableRowsVirtualization } from "../index-DMQqZbs3.js";
2
2
  import { $ as useTableSelectionState, A as TableLoadingState, B as TableSelectionToolbarSlots, C as TableFilterField, D as TableFilterVariant, E as TableFilterValue, F as TableRowMenuItem, G as TableTextOverflow, H as TableSortDirection, I as TableRowModel, J as TableSelectedKeysSetter, K as TableVerticalAlign, L as TableRowPatch, M as TablePlugin, N as TableProps, O as TableGroupPatch, P as TableRowListeners, Q as useTableSelection, R as TableRowProps, S as TableDividers, T as TableFilterState, U as TableSortEntry, W as TableSortState, X as UseTableSelectionConfig, Y as TableSelectionState, Z as UseTableSelectionStateConfig, _ as TableCellProps, b as TableColumnResizeContribution, g as TableCellPatch, h as ProportionalWidth, j as TablePanelPatch, k as TableHeaderPatch, m as PixelWidth, p as ColumnWidth, q as TableVirtualizationContribution, v as TableColumn, w as TableFilterFieldType, x as TableDensity, y as TableColumnAlign, z as TableSelectionToolbarProps } from "../useResizable-if_cP4fs.js";
3
3
  export { type ColumnResizePlan, type ColumnResizeSnapshot, type ColumnSettingsOption, type ColumnWidth, type PixelWidth, type ProportionalWidth, type StickySide, _default as Table, _default$1 as TableBody, _default$2 as TableCell, type TableCellPatch, type TableCellProps, type TableColumn, type TableColumnAlign, type TableColumnResizeContribution, type TableColumnSettingsState, type TableCustomRowStatus, type TableDensity, type TableDividers, type TableFilterField, type TableFilterFieldType, type TableFilterState, type TableFilterStateHandle, type TableFilterValue, type TableFilterVariant, _default$3 as TableFooter, type TableGroupPatch, _default$4 as TableHeader, _default$5 as TableHeaderCell, type TableHeaderPatch, type TableLoadingState, type TablePaginationVariant, type TablePanelPatch, type TablePlugin, type TableProps, _default$6 as TableRow, type TableRowListeners, type TableRowMenuItem, type TableRowModel, type TableRowPatch, type TableRowProps, type TableRowStatus, type TableRowStatusColor, type TableRowStatusName, type TableSelectedKeysSetter, type TableSelectionState, _default$7 as TableSelectionToolbar, type TableSelectionToolbarProps, type TableSelectionToolbarSlots, type TableSemanticRowStatus, type TableSortDirection, type TableSortEntry, type TableSortState, type TableTextOverflow, type TableTreeRowMeta, type TableVerticalAlign, type TableVirtualizationContribution, type UseTableColumnResizeConfig, type UseTableColumnSettingsConfig, type UseTableColumnsVirtualizationConfig, type UseTableFilterStateOptions, type UseTableFilteringConfig, type UseTableGroupedRowsConfig, type UseTableInfiniteScrollConfig, type UseTablePaginationConfig, type UseTableRowExpansionConfig, type UseTableRowIndexConfig, type UseTableRowStatusConfig, type UseTableRowsVirtualizationConfig, type UseTableSelectionConfig, type UseTableSelectionStateConfig, type UseTableSortableConfig, type UseTableStickyColumnsConfig, type UseTableTreeDataConfig, type UseTableTreeStateConfig, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableColumnsVirtualization, useTableFilterState, useTableFiltering, useTableGroupedRows, useTableInfiniteScroll, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableRowsVirtualization, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
@@ -1,2 +1,2 @@
1
- import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$3, b as useTableSelectionState, c as _sfc_main, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$4, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$6, o as _sfc_main$2, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "../Table-CDlpFNZo.js";
1
+ import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$3, b as useTableSelectionState, c as _sfc_main, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$4, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$6, o as _sfc_main$2, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "../Table-CkWBUcAh.js";
2
2
  export { _sfc_main as Table, _sfc_main$1 as TableBody, _sfc_main$2 as TableCell, _sfc_main$3 as TableFooter, _sfc_main$4 as TableHeader, _sfc_main$5 as TableHeaderCell, _sfc_main$6 as TableRow, _sfc_main$7 as TableSelectionToolbar, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableColumnsVirtualization, useTableFilterState, useTableFiltering, useTableGroupedRows, useTableInfiniteScroll, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableRowsVirtualization, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
@@ -20,10 +20,10 @@ import { t as useAnnounceRenderedText } from "./announceRenderedText-BaV4uiLs.js
20
20
  import { t as _sfc_main$21 } from "./CheckboxInput-D7uMSWmO.js";
21
21
  import { t as _sfc_main$22 } from "./ComponentIcon-B67QcA-d.js";
22
22
  import { t as _sfc_main$23 } from "./Popover-ChbuU4Nc.js";
23
- import { t as _sfc_main$24 } from "./DateInput-BU_M6g1j.js";
24
- import { s as tableMessages } from "./loadCatalog--oXKoMve.js";
25
- import { r as useCollator } from "./locale-BH7q40Eo.js";
26
- import { t as _sfc_main$25 } from "./MultiSelector-DO33TcAb.js";
23
+ import { t as _sfc_main$24 } from "./DateInput-Bg4jkwQ_.js";
24
+ import { c as tableMessages } from "./loadCatalog-DT1OyK-2.js";
25
+ import { r as useCollator } from "./locale-DhcPo0et.js";
26
+ import { t as _sfc_main$25 } from "./MultiSelector-DPRe_xUK.js";
27
27
  import { t as _sfc_main$26 } from "./NumberInput-DC1ALFjZ.js";
28
28
  import { t as _sfc_main$27 } from "./Pagination-CR64PGww.js";
29
29
  import { t as _sfc_main$28 } from "./Selector-ChAPYgNU.js";
@@ -1,2 +1,2 @@
1
- import { Ct as TextAreaSize, Dt as TextAreaWrap, Et as TextAreaStatusType, St as TextAreaResize, Tt as TextAreaStatus, _t as _default, bt as TextAreaEmits, vt as TextAreaChangeAction, wt as TextAreaSlots, xt as TextAreaProps, yt as TextAreaChangeEvent } from "../index-BxlyJ9ui.js";
1
+ import { Ct as TextAreaSize, Dt as TextAreaWrap, Et as TextAreaStatusType, St as TextAreaResize, Tt as TextAreaStatus, _t as _default, bt as TextAreaEmits, vt as TextAreaChangeAction, wt as TextAreaSlots, xt as TextAreaProps, yt as TextAreaChangeEvent } from "../index-DMQqZbs3.js";
2
2
  export { _default as TextArea, type TextAreaChangeAction, type TextAreaChangeEvent, type TextAreaEmits, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaSlots, type TextAreaStatus, type TextAreaStatusType, type TextAreaWrap };
@@ -1,2 +1,2 @@
1
- import { ct as TextInputChangeAction, dt as TextInputProps, ft as TextInputSize, gt as TextInputType, ht as TextInputStatusType, lt as TextInputChangeEvent, mt as TextInputStatus, pt as TextInputSlots, st as _default, ut as TextInputEmits } from "../index-BxlyJ9ui.js";
1
+ import { ct as TextInputChangeAction, dt as TextInputProps, ft as TextInputSize, gt as TextInputType, ht as TextInputStatusType, lt as TextInputChangeEvent, mt as TextInputStatus, pt as TextInputSlots, st as _default, ut as TextInputEmits } from "../index-DMQqZbs3.js";
2
2
  export { _default as TextInput, type TextInputChangeAction, type TextInputChangeEvent, type TextInputEmits, type TextInputProps, type TextInputSize, type TextInputSlots, type TextInputStatus, type TextInputStatusType, type TextInputType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Thumbnail-CYvBjbkJ.js";
1
+ import { t as _sfc_main } from "../Thumbnail-D60-nKWf.js";
2
2
  export { _sfc_main as Thumbnail };
@@ -6,7 +6,7 @@ import { t as _sfc_main$2 } from "./IconButton-Bd0TmKGO.js";
6
6
  import { t as _sfc_main$3 } from "./Tooltip-Du2qh5Oz.js";
7
7
  import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
8
8
  import { t as _sfc_main$4 } from "./Spinner-CQXQ0RqS.js";
9
- import { t as thumbnailMessages } from "./thumbnail-BI82Ijpj.js";
9
+ import { t as thumbnailMessages } from "./thumbnail-ASg6cXnd.js";
10
10
  import { t as _sfc_main$5 } from "./Skeleton-CrgWxJgr.js";
11
11
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, unref, watch, withCtx } from "vue";
12
12
  import "../styles/thumbnail.css";
@@ -93,7 +93,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
93
93
  }, { immediate: true });
94
94
  const showPlaceholder = computed(() => !props.isLoading && !hasSrc.value || Boolean(hasError.value));
95
95
  const accessibleName = computed(() => {
96
- if (props.label && props.alt) return `${props.label} — ${props.alt}`;
96
+ if (props.label && props.alt) return messages.value.thumbnail.nameWithAlt(props.label, props.alt);
97
97
  return props.label ?? props.alt ?? messages.value.thumbnail.fallbackName;
98
98
  });
99
99
  /**
@@ -20,7 +20,7 @@ import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
20
20
  import { t as _sfc_main$9 } from "./PickerWheel-BN_Ad6FQ.js";
21
21
  import { n as dateTimeInputMessages, t as timeInputMessages } from "./time-input-CKOsh84E.js";
22
22
  import { t as useEntryErrorReport } from "./useEntryErrorReport-Wee3N8IA.js";
23
- import { t as getLocaleDirection } from "./direction-CNotzbN9.js";
23
+ import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
24
24
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
25
25
  import "../styles/layer.css";
26
26
  import "../styles/cut-text.css";
@@ -1,2 +1,2 @@
1
- import { at as TimeInputSize, it as TimeInputProps, nt as _default, ot as TimeInputEntryError, rt as TimeInputEmits } from "../index-BxlyJ9ui.js";
1
+ import { at as TimeInputSize, it as TimeInputProps, nt as _default, ot as TimeInputEntryError, rt as TimeInputEmits } from "../index-DMQqZbs3.js";
2
2
  export { _default as TimeInput, type TimeInputEmits, type TimeInputEntryError, type TimeInputProps, type TimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../TimeInput-C6eMxL8g.js";
1
+ import { t as _sfc_main } from "../TimeInput-rUkF0qJc.js";
2
2
  export { _sfc_main as TimeInput };
@@ -3,7 +3,7 @@ import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
3
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
4
4
  import { t as _sfc_main$1 } from "./Field-BiLdRQCq.js";
5
5
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
6
- import { t as _sfc_main$2 } from "./TimeField-CyXcvqrc.js";
6
+ import { t as _sfc_main$2 } from "./TimeField-BJ8S3TXa.js";
7
7
  import { computed, createBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, shallowRef, unref, useAttrs, useId, useModel, withCtx } from "vue";
8
8
  //#region src/TimeInput/TimeInput.vue
9
9
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -1,2 +1,2 @@
1
- import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-BxlyJ9ui.js";
1
+ import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-DMQqZbs3.js";
2
2
  export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
@@ -1,3 +1,3 @@
1
- import { t as formatInstant } from "../formatInstant-DKbYRamj.js";
2
- import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-C1y_Uo2J.js";
1
+ import { t as formatInstant } from "../formatInstant-B-ukorXg.js";
2
+ import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-CFTG2jF2.js";
3
3
  export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
@@ -4,10 +4,10 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
4
4
  import { t as writeClipboardText } from "./clipboardWrite-Ds6fxmZc.js";
5
5
  import { t as _sfc_main$2 } from "./IconButton-Bd0TmKGO.js";
6
6
  import { t as _sfc_main$3 } from "./Text-S8qRNR8c.js";
7
- import { r as useCalendarSystem } from "./calendar-C7py_wtb.js";
7
+ import { r as useCalendarSystem } from "./calendar-B1G5O29s.js";
8
8
  import { t as _sfc_main$4 } from "./HoverCard-DWr12brr.js";
9
9
  import { t as _sfc_main$5 } from "./ComponentIcon-B67QcA-d.js";
10
- import { t as formatInstant } from "./formatInstant-DKbYRamj.js";
10
+ import { t as formatInstant } from "./formatInstant-B-ukorXg.js";
11
11
  import { t as timestampMessages } from "./timestamp-saJUedIU.js";
12
12
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useTemplateRef, watch, withCtx } from "vue";
13
13
  import "../styles/timestamp.css";
@@ -1,2 +1,2 @@
1
- import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-BxlyJ9ui.js";
1
+ import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-DMQqZbs3.js";
2
2
  export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
@@ -1,2 +1,2 @@
1
- import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-DrIxH3YE.js";
1
+ import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-CNZCQgHF.js";
2
2
  export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
@@ -1,2 +1,2 @@
1
- import { a as TokenizerPresentation, c as TokenizerSlots, i as TokenizerOverflow, l as TokenizerStatus, n as TokenizerChange, o as TokenizerProps, r as TokenizerEmits, s as TokenizerSize, t as _default } from "../index-DYU4kE-q.js";
1
+ import { a as TokenizerPresentation, c as TokenizerSlots, i as TokenizerOverflow, l as TokenizerStatus, n as TokenizerChange, o as TokenizerProps, r as TokenizerEmits, s as TokenizerSize, t as _default } from "../index-Cg6pihUE.js";
2
2
  export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerPresentation, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };
@@ -1,3 +1,3 @@
1
- import { T as _default } from "../index-BxlyJ9ui.js";
1
+ import { T as _default } from "../index-DMQqZbs3.js";
2
2
  import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-if_cP4fs.js";
3
3
  export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
@@ -1,2 +1,2 @@
1
- import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipOptions, o as TooltipFocusTrigger, r as UseTooltipReturn, s as TooltipPlacement, t as useTooltip } from "../index-C8hyLvk2.js";
1
+ import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipOptions, o as TooltipFocusTrigger, r as UseTooltipReturn, s as TooltipPlacement, t as useTooltip } from "../index-C7uGs5Cl.js";
2
2
  export { _default as Tooltip, type TooltipAlignment, type TooltipFocusTrigger, type TooltipPlacement, type TooltipProps, type TooltipTouchTrigger, type UseTooltipOptions, type UseTooltipReturn, useTooltip };
@@ -1,2 +1,2 @@
1
- import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-BxlyJ9ui.js";
1
+ import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-DMQqZbs3.js";
2
2
  export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
@@ -1,5 +1,6 @@
1
1
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
2
- import { E as plainDateIsInRange, L as dateTimeFormatFor, d as getDaysInMonth, m as plainDateAddMonths, p as plainDateAddDays } from "./plainDate-CaTDErKr.js";
2
+ import { n as dateTimeFormatFor } from "./dateTimeFormatCache-CSsvHOhO.js";
3
+ import { E as plainDateIsInRange, d as getDaysInMonth, m as plainDateAddMonths, p as plainDateAddDays } from "./plainDate-By2VjeSI.js";
3
4
  import { computed, inject, provide, toValue } from "vue";
4
5
  //#region src/utils/calendarSystem.ts
5
6
  const KNOWN_CALENDARS = {
@@ -1,6 +1,7 @@
1
- import { L as dateTimeFormatFor, n as DATE_FORMAT_MONTH_ONLY, p as plainDateAddDays, v as plainDateFormat } from "./plainDate-CaTDErKr.js";
2
- import { d as calendarMonthLabelDay, l as calendarMonthFromYearMonth, p as calendarMonthsInCalendarYear, y as isGregorianCalendar } from "./calendar-C7py_wtb.js";
3
- import { r as formatStandaloneMonthYear } from "./format-lexzIzDb.js";
1
+ import { n as dateTimeFormatFor } from "./dateTimeFormatCache-CSsvHOhO.js";
2
+ import { n as DATE_FORMAT_MONTH_ONLY, p as plainDateAddDays, v as plainDateFormat } from "./plainDate-By2VjeSI.js";
3
+ import { d as calendarMonthLabelDay, l as calendarMonthFromYearMonth, p as calendarMonthsInCalendarYear, y as isGregorianCalendar } from "./calendar-B1G5O29s.js";
4
+ import { i as formatStandaloneMonthYear } from "./format--_j64_yo.js";
4
5
  //#region src/utils/calendarFormat.ts
5
6
  /** `Intl` 没有 `iso8601` 的月份名,标签用月日相同的 `gregory`。 */
6
7
  function labelCalendar(calendar) {
@@ -1,5 +1,5 @@
1
1
  import { a as useAstryxLocale } from "./context-B8IEFCDR.js";
2
- import { t as getLocaleDirection } from "./direction-CNotzbN9.js";
2
+ import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
3
3
  import { computed, inject } from "vue";
4
4
  //#region src/InternationalizationProvider/context.ts
5
5
  /** 最近的 `InternationalizationProvider` 定下的书写方向。 */
@@ -0,0 +1,31 @@
1
+ //#region src/utils/dateTimeFormatCache.ts
2
+ /** Options that print a time of day or a zone, which a PlainDate lacks. */
3
+ const TIME_OF_DAY_FIELDS = [
4
+ "timeZoneName",
5
+ "hour",
6
+ "minute",
7
+ "second",
8
+ "fractionalSecondDigits",
9
+ "dayPeriod",
10
+ "timeStyle"
11
+ ];
12
+ /**
13
+ * One `Intl.DateTimeFormat` per locale and options, built on first use. A
14
+ * calendar formats each of a month's 42 day labels with the same options on
15
+ * every render, and building a formatter costs far more than using one. The
16
+ * options are keyed in a fixed order, so the same options written in another
17
+ * order share a formatter.
18
+ */
19
+ const dateTimeFormats = /* @__PURE__ */ new Map();
20
+ /** @internal */
21
+ function dateTimeFormatFor(locale, options) {
22
+ const key = JSON.stringify([locale, Object.entries(options).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)]);
23
+ let format = dateTimeFormats.get(key);
24
+ if (format == null) {
25
+ format = new Intl.DateTimeFormat(locale, options);
26
+ dateTimeFormats.set(key, format);
27
+ }
28
+ return format;
29
+ }
30
+ //#endregion
31
+ export { dateTimeFormatFor as n, TIME_OF_DAY_FIELDS as t };