@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.
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-B1LVoSmF.js → Breadcrumbs-CmTe311W.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +2 -2
- package/dist/{Calendar-DvbTMsIC.js → Calendar-Bu5tNFCy.js} +2 -2
- package/dist/{Calendar-Nh8eFh1z.js → Calendar-Cr3q-XUb.js} +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-DV3Uh8dj.js → CheckboxListItem-CC-9D_l_.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu--QuYdWDQ.js → ContextMenu-CQlYu1dv.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D4o83xnR.js → DateInput-D78SOx0f.js} +34 -11
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-A-Hrvnmo.js → DateRangeInput-PnBK_G5d.js} +116 -184
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DWX1Z3S_.js → DateTimeInput-DPoTqJ36.js} +3 -3
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-NqkHivVB.js → DropdownMenu-WuoVaE3D.js} +2 -2
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-B6kMYO4h.js → InternationalizationProvider-B9wQM8hN.js} +1 -1
- package/dist/{Item-o9ot81Zr.js → Item-D6y1lkrO.js} +2 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +3 -3
- package/dist/{List-Da9fS7xP.js → List-DkH8AKN1.js} +1 -1
- package/dist/{ListItem-Cp65x47S.js → ListItem-5d5B-FOb.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-n3YXiP4a.js → MetadataList-BTMI6Ffm.js} +5 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CiYBQ9pt.js → MoreMenu-bUsXdSxn.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cg0Fe7Ne.js → PowerSearch-DB17gW3o.js} +9 -9
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RangeCalendar-pTEnYJqX.js +160 -0
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-D58FbmZl.js → Table-B6EYjM3T.js} +13 -10
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CUM1fNsE.js → TimeInput-x5uEONH9.js} +3 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -2
- package/dist/{Timestamp-B0dj9IUl.js → Timestamp-CGhrqcmb.js} +28 -14
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/{accessibleName-BSQ6PVw-.js → accessibleName-COG4Ik6i.js} +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +2 -2
- package/dist/{date-range-input-WnkVv8HN.js → date-range-input-BjM7wgeD.js} +6 -2
- package/dist/{formatInstant-B-ukorXg.js → formatInstant-DmQhW6EL.js} +23 -8
- package/dist/{index-C5HUsKnf.d.ts → index-B_XTzQhm.d.ts} +2 -2
- package/dist/{index-DSsuY9v9.d.ts → index-BaXcJ7eE.d.ts} +1 -1
- package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-D3UaSnbN.d.ts → index-BtqvPjAf.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
- package/dist/{index-BaFphczL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-DsD5qKEe.d.ts → index-CjCJRK-z.d.ts} +2 -1
- package/dist/{index-COazJoIt.d.ts → index-DEeR90QP.d.ts} +4 -4
- package/dist/{index-BMoR8Uoh.d.ts → index-DZMs9KqG.d.ts} +1 -1
- package/dist/{index-C8hyLvk2.d.ts → index-Dmr81uHZ.d.ts} +1 -1
- package/dist/{index-m-fFGq2e.d.ts → index-Ds4dOCSy.d.ts} +1 -1
- package/dist/{index-ehT_1wO5.d.ts → index-DwG42flu.d.ts} +1 -1
- package/dist/{index-anFpazJ1.d.ts → index-DyvHDvtx.d.ts} +2 -2
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index--pZVy2s-.d.ts → index-bXbjUqwx.d.ts} +5 -5
- package/dist/{index-aBeGbS1N.d.ts → index-fUpVnYYy.d.ts} +1 -1
- package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
- package/dist/{index-Bsl8HqR9.d.ts → index-tNq2IJO8.d.ts} +1 -1
- package/dist/{index-Pad9p8CU.d.ts → index-tdOyqA_U.d.ts} +2 -2
- package/dist/{index-Dqo0KSCZ.d.ts → index-zHX0wDmq.d.ts} +46 -46
- package/dist/index.d.ts +23 -23
- package/dist/index.js +28 -28
- package/dist/{loadCatalog-BLR2kAhy.d.ts → loadCatalog-BY88s6vB.d.ts} +4 -0
- package/dist/{loadCatalog-DT1OyK-2.js → loadCatalog-crHU34Cs.js} +9 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-DhcPo0et.js → locale-R4jJ5VWu.js} +1 -1
- package/dist/{useCalendarGrid-Bz7NJmA3.js → useCalendarGrid-BGFIdfo7.js} +1 -1
- package/dist/{useDateRange-D1Szw54e.js → useDateRange-vYk0K9ML.js} +6 -2
- package/dist/{useMonthGrid-Bzvlstgc.js → useMonthGrid-xkn79x_J.js} +1 -1
- package/package.json +1 -1
- package/styles/date-input.css +40 -5
- package/styles/date-range-input.css +22 -0
- package/styles/tree-list.css +11 -0
- package/dist/{MultiSelector-Cd0x_5Cz.js → MultiSelector-gLmtlWmJ.js} +1 -1
- package/dist/{TimeField-DzdNGtUE.js → TimeField-Ni4p7bg4.js} +1 -1
|
@@ -7,7 +7,7 @@ import { t as _sfc_main$3 } from "./Text-S8qRNR8c.js";
|
|
|
7
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-DEcgLIM0.js";
|
|
10
|
-
import {
|
|
10
|
+
import { n as formatInstant, t as dateTimeFormatFor } from "./formatInstant-DmQhW6EL.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";
|
|
@@ -76,7 +76,7 @@ const _hoisted_5 = { class: "astryx-timestamp__text" };
|
|
|
76
76
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
77
77
|
__name: "TimestampHoverCard",
|
|
78
78
|
props: {
|
|
79
|
-
|
|
79
|
+
getLines: { type: Function },
|
|
80
80
|
label: {}
|
|
81
81
|
},
|
|
82
82
|
setup(__props) {
|
|
@@ -86,8 +86,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
86
86
|
const copiedKey = ref();
|
|
87
87
|
const failedKey = ref();
|
|
88
88
|
let resetTimer;
|
|
89
|
-
const
|
|
90
|
-
const
|
|
89
|
+
const hasShown = ref(false);
|
|
90
|
+
const lines = computed(() => hasShown.value ? props.getLines() : []);
|
|
91
|
+
const hasLabel = computed(() => lines.value.some((line) => line.label != null && line.label !== ""));
|
|
92
|
+
const hasAction = computed(() => lines.value.some((line) => line.isCopyable));
|
|
91
93
|
const columns = computed(() => {
|
|
92
94
|
if (hasLabel.value && hasAction.value) return "label-value-action";
|
|
93
95
|
if (hasLabel.value) return "label-value";
|
|
@@ -126,13 +128,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
126
128
|
label: __props.label,
|
|
127
129
|
"focus-trigger": "always",
|
|
128
130
|
"has-hover-indication": true,
|
|
129
|
-
placement: "above"
|
|
131
|
+
placement: "above",
|
|
132
|
+
onOpenChange: _cache[0] || (_cache[0] = (open) => {
|
|
133
|
+
if (open) hasShown.value = true;
|
|
134
|
+
})
|
|
130
135
|
}, {
|
|
131
|
-
content: withCtx(() => [
|
|
136
|
+
content: withCtx(() => [hasShown.value ? (openBlock(), createElementBlock("dl", {
|
|
137
|
+
key: 0,
|
|
132
138
|
class: "astryx-timestamp__card",
|
|
133
139
|
"data-columns": columns.value,
|
|
134
140
|
"aria-label": __props.label
|
|
135
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
141
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, index) => {
|
|
136
142
|
return openBlock(), createElementBlock("div", {
|
|
137
143
|
key: index,
|
|
138
144
|
class: "astryx-timestamp__row"
|
|
@@ -154,7 +160,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
154
160
|
}, null, 8, ["state", "fallback"])]),
|
|
155
161
|
_: 2
|
|
156
162
|
}, 1032, ["label", "onClick"])) : createCommentVNode("v-if", true)])]);
|
|
157
|
-
}), 128))], 8, _hoisted_1)]),
|
|
163
|
+
}), 128))], 8, _hoisted_1)) : createCommentVNode("v-if", true)]),
|
|
158
164
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
159
165
|
_: 3
|
|
160
166
|
}, 8, ["label"]);
|
|
@@ -165,12 +171,14 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
165
171
|
//#region src/Timestamp/tooltipEntries.ts
|
|
166
172
|
const LOCAL_ZONE = "local";
|
|
167
173
|
const warned = /* @__PURE__ */ new Set();
|
|
174
|
+
const knownZones = /* @__PURE__ */ new Set();
|
|
168
175
|
/**
|
|
169
176
|
* 把时区交给 `Intl` 之前先确认它存在。`undefined` 和 `'local'` 是观看者自己的时区,
|
|
170
177
|
* 不认识的标识在开发期警告一次,回到观看者的时区。`context` 说明是哪个属性写错了。
|
|
171
178
|
*/
|
|
172
179
|
function resolveTimezoneID(timezoneID, context = "tooltipEntries") {
|
|
173
180
|
if (timezoneID == null || timezoneID.toLowerCase() === LOCAL_ZONE) return void 0;
|
|
181
|
+
if (knownZones.has(timezoneID)) return timezoneID;
|
|
174
182
|
try {
|
|
175
183
|
new Intl.DateTimeFormat("en-US", { timeZone: timezoneID }).format();
|
|
176
184
|
} catch {
|
|
@@ -181,11 +189,12 @@ function resolveTimezoneID(timezoneID, context = "tooltipEntries") {
|
|
|
181
189
|
}
|
|
182
190
|
return;
|
|
183
191
|
}
|
|
192
|
+
knownZones.add(timezoneID);
|
|
184
193
|
return timezoneID;
|
|
185
194
|
}
|
|
186
195
|
/** 一个时区在这一刻的完整名字(`Pacific Standard Time`)。`timeZone` 缺省是观看者的时区。 */
|
|
187
196
|
function longZoneName(date, locale, timeZone) {
|
|
188
|
-
return
|
|
197
|
+
return dateTimeFormatFor(locale, {
|
|
189
198
|
timeZoneName: "long",
|
|
190
199
|
...timeZone == null ? {} : { timeZone }
|
|
191
200
|
}).formatToParts(date).find((part) => part.type === "timeZoneName")?.value ?? "";
|
|
@@ -364,9 +373,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
364
373
|
timeZoneNameStyle: "long",
|
|
365
374
|
calendar: calendar.value
|
|
366
375
|
})) : void 0);
|
|
367
|
-
const entries = computed(() =>
|
|
376
|
+
const entries = computed(() => {
|
|
377
|
+
if (props.tooltipEntries == null || props.tooltipEntries.length === 0) return void 0;
|
|
378
|
+
for (const entry of props.tooltipEntries) resolveTimezoneID(entry.timezoneID);
|
|
379
|
+
return props.tooltipEntries;
|
|
380
|
+
});
|
|
368
381
|
const showTooltip = computed(() => props.hasTooltip && valid.value && (isRelative(effectiveFormat.value) || entries.value != null));
|
|
369
|
-
|
|
382
|
+
/** 卡片的各行:卡片显示时才读,收着的卡片不格式化。 */
|
|
383
|
+
function getLines() {
|
|
370
384
|
if (!valid.value) return [];
|
|
371
385
|
if (entries.value == null) return [{
|
|
372
386
|
value: formatInstant(date.value, "full", locale.value, { calendar: calendar.value }),
|
|
@@ -374,7 +388,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
374
388
|
zoneName: longZoneName(date.value, locale.value)
|
|
375
389
|
}];
|
|
376
390
|
return formatTooltipLines(date.value, entries.value, locale.value, zone.value, calendar.value);
|
|
377
|
-
}
|
|
391
|
+
}
|
|
378
392
|
const textColor = computed(() => props.color === "disabled" ? "inherit" : props.color);
|
|
379
393
|
function liveInterval(seconds) {
|
|
380
394
|
const abs = Math.abs(seconds);
|
|
@@ -425,12 +439,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
425
439
|
}, {
|
|
426
440
|
default: withCtx(() => [showTooltip.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
427
441
|
key: 0,
|
|
428
|
-
lines:
|
|
442
|
+
"get-lines": getLines,
|
|
429
443
|
label: unref(messages).timestamp.detailsLabel
|
|
430
444
|
}, {
|
|
431
445
|
default: withCtx(() => [createElementVNode("time", mergeProps({ ref: "time" }, timeProps()), toDisplayString(displayText.value), 17)]),
|
|
432
446
|
_: 1
|
|
433
|
-
}, 8, ["
|
|
447
|
+
}, 8, ["label"])) : (openBlock(), createElementBlock("time", mergeProps({
|
|
434
448
|
key: 1,
|
|
435
449
|
ref: "time"
|
|
436
450
|
}, timeProps()), toDisplayString(displayText.value), 17))]),
|
|
@@ -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-
|
|
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-zHX0wDmq.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 };
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-zHX0wDmq.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 };
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -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-
|
|
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-Dmr81uHZ.js";
|
|
2
2
|
export { _default as Tooltip, type TooltipAlignment, type TooltipFocusTrigger, type TooltipPlacement, type TooltipProps, type TooltipTouchTrigger, type UseTooltipOptions, type UseTooltipReturn, useTooltip };
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -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-
|
|
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-zHX0wDmq.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 };
|
package/dist/TreeList/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TreeListItemData, c as TreeListVariant, i as TreeListDensity, n as useTreeFocus, o as TreeListProps, r as _default, s as TreeListSlots, t as UseTreeFocusOptions } from "../index-
|
|
1
|
+
import { a as TreeListItemData, c as TreeListVariant, i as TreeListDensity, n as useTreeFocus, o as TreeListProps, r as _default, s as TreeListSlots, t as UseTreeFocusOptions } from "../index-BbHuan0g.js";
|
|
2
2
|
export { _default as TreeList, type TreeListDensity, type TreeListItemData, type TreeListProps, type TreeListSlots, type TreeListVariant, type UseTreeFocusOptions, useTreeFocus };
|
|
@@ -5,7 +5,7 @@ import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
|
|
|
5
5
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
6
6
|
import { t as focusForLastInput } from "./focusReturn-CXHM5lOY.js";
|
|
7
7
|
import { r as keepDisabledRowUnfocused } from "./menuActivation-BQqnzKAX.js";
|
|
8
|
-
import { t as _sfc_main$6 } from "./Item-
|
|
8
|
+
import { t as _sfc_main$6 } from "./Item-D6y1lkrO.js";
|
|
9
9
|
import { t as _sfc_main$7 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
10
10
|
import { r as useCompactDefinition } from "./compactDefinition-D32f2O_H.js";
|
|
11
11
|
import { r as readCompactTouch } from "./presentationHold-Bjjux3fp.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as useAnimatedLayout, r as AnimatedLayout, t as UseAnimatedLayoutOptions } from "../useAnimatedLayout-D94sdliy.js";
|
|
2
2
|
import { i as createReorderable, n as Reorderable, r as ReorderableOptions, t as ReorderMove } from "../createReorderable-Bw3Q9mUd.js";
|
|
3
|
-
import { $ as parseISODate, $n as formatDisplayTime, $r as AnimatorDecayVelocity, $t as IndicatorFocusRingHandlers, A as useRestoreFocus, An as EntryAnimationPreset, Ar as UseChatNewMessagesOptions, At as LinkifyPattern, B as UseOverflowOptions, Bn as useDisclosureHandle, Br as useAnimator, Bt as UseLayerReturn, C as ScrollStickyContainment, Cn as FileSelectionResult, Cr as useClickableContainer, Ct as LongPressOptions, D as useScrollableArea, Dn as FieldControlState, Dr as UseChatStreamScrollReturn, Dt as UseListFocusOptions, E as UseScrollableAreaResult, En as selectFiles, Er as UseChatStreamScrollOptions, Et as ListFocusOrientation, F as usePressFeedback, Fn as useDragToSnapPoints, Fr as useAppShellMobile, Ft as useLayerMountTarget, G as computeOverflow, Gn as resolveDatePresentation, Gr as PanGestureEvent, Gt as useKeyboardHint, H as useOverflow, Hn as useDevWarning, Hr as DragToSnapPointsOptions, Ht as KeyboardHintOrientation, I as PendingChange, In as UseDismissOptions, Ir as AnnounceFn, It as useLayerTeleportTarget, J as UseNumberFieldOptions, Jn as ISOTimeString, Jr as createPanGesture, Jt as UseInteractiveRoleReturn, K as NumberField, Kn as resolveDateSurface, Kr as PanGestureOptions, Kt as InteractiveRole, L as usePendingChange, Ln as useDismiss, Lr as UseAnnounceOptions, Lt as useResolvedLayerTeleport, M as useReorderable, Mn as UseEntryAnimationReturn, Mr as useChatNewMessages, Mt as LinkifyTextSegment, N as UsePressFeedbackOptions, Nn as useEntryAnimation, Nr as AppShellMobile, Nt as UseLinkifyOptions, O as RestoreFocus, On as FieldControlStateInput, Or as useChatStreamScroll, Ot as useListFocus, P as UsePressFeedbackReturn, Pn as UseDragToSnapPointsResult, Pr as appShellMobileKey, Pt as useLinkify, Q as buildMonthGrid, Qn as TimeSurface, Qr as AnimatorChannel, Qt as useInputContainer, R as usePanGesture, Rn as DisclosureHandle, Rr as useAnnounce, Rt as LayerMode, S as ScrollRole, Sn as FileSelectionOptions, Sr as hasTextSelection, St as LongPressHandlers, T as UseScrollableAreaOptions, Tn as formatFileSize, Tr as ChatScrollToBottomOptions, Tt as ListFocus, U as ComputeOverflowInput, Un as DatePresentation, Ur as createDragToSnapPoints, Ut as UseKeyboardHint, V as UseOverflowReturn, Vn as devWarn, Vr as DragToSnapPoints, Vt as useLayer, W as ComputeOverflowResult, Wn as DateSurface, Wr as PanGesture, Wt as UseKeyboardHintOptions, X as useNumberField, Xn as ParsedTime, Xr as Animator, Xt as InputContainerHandlers, Y as computeSteppedValue, Yn as NativePicker, Yr as createAnimator, Yt as useInteractiveRole, Z as addMonths, Zn as TimePresentation, Zr as AnimatorAnimateOptions, Zt as UseInputContainerOptions, _ as useScrollLock, _n as useGridFocus, _r as useCombobox, _t as MenuPressPointerType, a as UseTouchTriggerOptions, ai as ISODateRange, an as imageModeFromPixels, ar as shiftTime, at as MENU_PRESS_LIT_ATTRIBUTE, b as ScrollKeyboardAccess, bn as useFocusTrap, br as UseClickableContainerOptions, bt as useMediaQuery, c as isActionTrigger, ci as applyRangeClick, cn as Hotkey, cr as useControllableState, ct as useMenuPress, d as snapToGraphemeBoundary, di as isDayOutsideSpan, dn as useHandleRef, dr as UseContainerReveal, dt as resetMenuPress, ei as AnimatorHandle, en as UseIndicatorFocusRingOptions, er as formatISOTime, et as toISODate, f as useStreamingText, fi as isRangeWithinSpan, fn as GridRovingFocus, fr as UseContainerRevealOptions, ft as MENU_PRESS_HANDOFF_PX, g as useScrollOverflow, gi as spanDays, gn as UseGridFocusReturn, gr as UseComboboxOptions, gt as MenuPressGesture, h as UseScrollOverflowResult, hi as resolveWeekStart, hn as UseGridFocusOptions, hr as ComboboxOption, ht as MenuPressEvent, i as LayerTouchTrigger, ii as SnapPagingOptions, in as UseImageModeOptions, ir as resolveTimeSurface, it as useMergedRefs, j as useResolvedLabelHidden, jn as UseEntryAnimationOptions, jr as UseChatNewMessagesReturn, jt as LinkifySegment, k as UseRestoreFocusOptions, kn as useFieldControlState, kr as CHAT_MESSAGE_CLASS, kt as LinkifyLinkSegment, l as StreamingTextSpeed, li as compareISODate, ln as useHotkeys, lr as ContainerRevealOptions, lt as MENU_PRESS_MARKER, m as ScrollOverflowState, mi as orderRange, mn as useGridRovingFocus, mr as Combobox, mt as MenuPressEffect, n as UseTypeaheadReturn, ni as AnimatorValues, nn as useIndicatorFocusRing, nr as parseDisplayTime, nt as MergedRef, o as UseTouchTriggerReturn, oi as RangeClickResult, on as perceptualLightness, or as ControllableState, ot as MenuPress, p as useSnapPaging, pi as isSameRange, pn as UseGridRovingFocusOptions, pr as useContainerReveal, pt as MENU_PRESS_SETTLE_MS, q as NumberStepDirection, qn as HourFormat, qr as PanGestureState, qt as UseInteractiveRoleOptions, r as useTypeahead, ri as SnapPaging, rn as ImageSampleRegion, rr as parseISOTime, rt as MergedRefHandle, s as useTouchTrigger, si as WeekStartsOn, sn as useImageMode, sr as UseControllableStateOptions, st as MenuPressOptions, t as UseTypeaheadOptions, ti as AnimatorSnapshot, tn as UseIndicatorFocusRingReturn, tr as isTimeInRange, tt as todayISODate, u as UseStreamingTextOptions, ui as formatDateRange, un as HandleRef, ur as ContentRevealOptions, ut as isMenuPressActivation, v as ScrollAxis, vn as FocusTrap, vr as useCoarsePointer, vt as MenuPressStep, w as ScrollableAreaState, wn as FileSizeUnits, wr as INTERACTIVE_SELECTORS, wt as useLongPress, x as ScrollOverscroll, xn as FileRejection, xr as hasInteractiveAncestor, xt as watchMediaQuery, y as ScrollAxisState, yn as UseFocusTrapOptions, yr as ClickableContainerHandlers, yt as menuPressStep, z as OverflowInlineBounds, zn as DisclosureHandleRef, zr as AnnouncePoliteness, zt as UseLayerOptions } from "../index-
|
|
3
|
+
import { $ as parseISODate, $n as formatDisplayTime, $r as AnimatorDecayVelocity, $t as IndicatorFocusRingHandlers, A as useRestoreFocus, An as EntryAnimationPreset, Ar as UseChatNewMessagesOptions, At as LinkifyPattern, B as UseOverflowOptions, Bn as useDisclosureHandle, Br as useAnimator, Bt as UseLayerReturn, C as ScrollStickyContainment, Cn as FileSelectionResult, Cr as useClickableContainer, Ct as LongPressOptions, D as useScrollableArea, Dn as FieldControlState, Dr as UseChatStreamScrollReturn, Dt as UseListFocusOptions, E as UseScrollableAreaResult, En as selectFiles, Er as UseChatStreamScrollOptions, Et as ListFocusOrientation, F as usePressFeedback, Fn as useDragToSnapPoints, Fr as useAppShellMobile, Ft as useLayerMountTarget, G as computeOverflow, Gn as resolveDatePresentation, Gr as PanGestureEvent, Gt as useKeyboardHint, H as useOverflow, Hn as useDevWarning, Hr as DragToSnapPointsOptions, Ht as KeyboardHintOrientation, I as PendingChange, In as UseDismissOptions, Ir as AnnounceFn, It as useLayerTeleportTarget, J as UseNumberFieldOptions, Jn as ISOTimeString, Jr as createPanGesture, Jt as UseInteractiveRoleReturn, K as NumberField, Kn as resolveDateSurface, Kr as PanGestureOptions, Kt as InteractiveRole, L as usePendingChange, Ln as useDismiss, Lr as UseAnnounceOptions, Lt as useResolvedLayerTeleport, M as useReorderable, Mn as UseEntryAnimationReturn, Mr as useChatNewMessages, Mt as LinkifyTextSegment, N as UsePressFeedbackOptions, Nn as useEntryAnimation, Nr as AppShellMobile, Nt as UseLinkifyOptions, O as RestoreFocus, On as FieldControlStateInput, Or as useChatStreamScroll, Ot as useListFocus, P as UsePressFeedbackReturn, Pn as UseDragToSnapPointsResult, Pr as appShellMobileKey, Pt as useLinkify, Q as buildMonthGrid, Qn as TimeSurface, Qr as AnimatorChannel, Qt as useInputContainer, R as usePanGesture, Rn as DisclosureHandle, Rr as useAnnounce, Rt as LayerMode, S as ScrollRole, Sn as FileSelectionOptions, Sr as hasTextSelection, St as LongPressHandlers, T as UseScrollableAreaOptions, Tn as formatFileSize, Tr as ChatScrollToBottomOptions, Tt as ListFocus, U as ComputeOverflowInput, Un as DatePresentation, Ur as createDragToSnapPoints, Ut as UseKeyboardHint, V as UseOverflowReturn, Vn as devWarn, Vr as DragToSnapPoints, Vt as useLayer, W as ComputeOverflowResult, Wn as DateSurface, Wr as PanGesture, Wt as UseKeyboardHintOptions, X as useNumberField, Xn as ParsedTime, Xr as Animator, Xt as InputContainerHandlers, Y as computeSteppedValue, Yn as NativePicker, Yr as createAnimator, Yt as useInteractiveRole, Z as addMonths, Zn as TimePresentation, Zr as AnimatorAnimateOptions, Zt as UseInputContainerOptions, _ as useScrollLock, _n as useGridFocus, _r as useCombobox, _t as MenuPressPointerType, a as UseTouchTriggerOptions, ai as ISODateRange, an as imageModeFromPixels, ar as shiftTime, at as MENU_PRESS_LIT_ATTRIBUTE, b as ScrollKeyboardAccess, bn as useFocusTrap, br as UseClickableContainerOptions, bt as useMediaQuery, c as isActionTrigger, ci as applyRangeClick, cn as Hotkey, cr as useControllableState, ct as useMenuPress, d as snapToGraphemeBoundary, di as isDayOutsideSpan, dn as useHandleRef, dr as UseContainerReveal, dt as resetMenuPress, ei as AnimatorHandle, en as UseIndicatorFocusRingOptions, er as formatISOTime, et as toISODate, f as useStreamingText, fi as isRangeWithinSpan, fn as GridRovingFocus, fr as UseContainerRevealOptions, ft as MENU_PRESS_HANDOFF_PX, g as useScrollOverflow, gi as spanDays, gn as UseGridFocusReturn, gr as UseComboboxOptions, gt as MenuPressGesture, h as UseScrollOverflowResult, hi as resolveWeekStart, hn as UseGridFocusOptions, hr as ComboboxOption, ht as MenuPressEvent, i as LayerTouchTrigger, ii as SnapPagingOptions, in as UseImageModeOptions, ir as resolveTimeSurface, it as useMergedRefs, j as useResolvedLabelHidden, jn as UseEntryAnimationOptions, jr as UseChatNewMessagesReturn, jt as LinkifySegment, k as UseRestoreFocusOptions, kn as useFieldControlState, kr as CHAT_MESSAGE_CLASS, kt as LinkifyLinkSegment, l as StreamingTextSpeed, li as compareISODate, ln as useHotkeys, lr as ContainerRevealOptions, lt as MENU_PRESS_MARKER, m as ScrollOverflowState, mi as orderRange, mn as useGridRovingFocus, mr as Combobox, mt as MenuPressEffect, n as UseTypeaheadReturn, ni as AnimatorValues, nn as useIndicatorFocusRing, nr as parseDisplayTime, nt as MergedRef, o as UseTouchTriggerReturn, oi as RangeClickResult, on as perceptualLightness, or as ControllableState, ot as MenuPress, p as useSnapPaging, pi as isSameRange, pn as UseGridRovingFocusOptions, pr as useContainerReveal, pt as MENU_PRESS_SETTLE_MS, q as NumberStepDirection, qn as HourFormat, qr as PanGestureState, qt as UseInteractiveRoleOptions, r as useTypeahead, ri as SnapPaging, rn as ImageSampleRegion, rr as parseISOTime, rt as MergedRefHandle, s as useTouchTrigger, si as WeekStartsOn, sn as useImageMode, sr as UseControllableStateOptions, st as MenuPressOptions, t as UseTypeaheadOptions, ti as AnimatorSnapshot, tn as UseIndicatorFocusRingReturn, tr as isTimeInRange, tt as todayISODate, u as UseStreamingTextOptions, ui as formatDateRange, un as HandleRef, ur as ContentRevealOptions, ut as isMenuPressActivation, v as ScrollAxis, vn as FocusTrap, vr as useCoarsePointer, vt as MenuPressStep, w as ScrollableAreaState, wn as FileSizeUnits, wr as INTERACTIVE_SELECTORS, wt as useLongPress, x as ScrollOverscroll, xn as FileRejection, xr as hasInteractiveAncestor, xt as watchMediaQuery, y as ScrollAxisState, yn as UseFocusTrapOptions, yr as ClickableContainerHandlers, yt as menuPressStep, z as OverflowInlineBounds, zn as DisclosureHandleRef, zr as AnnouncePoliteness, zt as UseLayerOptions } from "../index-CjCJRK-z.js";
|
|
4
4
|
import { a as SearchSource, c as createStaticSource, i as SearchContext, l as useAsyncSource, n as AsyncSourceStatus, o as SearchableItem, r as CreateStaticSourceOptions, s as UseAsyncSourceOptions, t as AsyncSource } from "../useAsyncSource-Dx9P9Sc4.js";
|
|
5
5
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-DeO8fCW_.js";
|
|
6
6
|
import { t as characterCount } from "../characters-rcDbGt71.js";
|
|
@@ -18,7 +18,7 @@ import { a as useChatNewMessages, i as CHAT_MESSAGE_CLASS, t as useChatStreamScr
|
|
|
18
18
|
import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
|
|
19
19
|
import { t as useCombobox } from "../useCombobox-BbDP75hw.js";
|
|
20
20
|
import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
|
|
21
|
-
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, l as spanDays, n as compareISODate, o as isSameRange, r as formatDateRange, s as orderRange, t as applyRangeClick } from "../useDateRange-
|
|
21
|
+
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, l as spanDays, n as compareISODate, o as isSameRange, r as formatDateRange, s as orderRange, t as applyRangeClick } from "../useDateRange-vYk0K9ML.js";
|
|
22
22
|
import { t as useDisclosureHandle } from "../useDisclosureHandle-Df3HhAfC.js";
|
|
23
23
|
import { t as useFieldControlState } from "../useFieldControlState-voICDrys.js";
|
|
24
24
|
import { n as selectFiles, t as formatFileSize } from "../useFileSelection-Cfcbh8XI.js";
|
|
@@ -31,7 +31,7 @@ import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
|
|
|
31
31
|
import { t as useListFocus } from "../useListFocus-Ccd_HU9T.js";
|
|
32
32
|
import { a as menuPressStep, c as resetMenuPress, i as MENU_PRESS_SETTLE_MS, l as useLongPress, n as useMenuPress, o as MENU_PRESS_MARKER, r as MENU_PRESS_HANDOFF_PX, s as isMenuPressActivation, t as MENU_PRESS_LIT_ATTRIBUTE } from "../useMenuPress-Cxn2iz5-.js";
|
|
33
33
|
import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
|
|
34
|
-
import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-
|
|
34
|
+
import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-xkn79x_J.js";
|
|
35
35
|
import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";
|
|
36
36
|
import { n as computeOverflow, t as useOverflow } from "../useOverflow-GU0pxGaU.js";
|
|
37
37
|
import { t as usePendingChange } from "../usePendingChange-ib-h8FZK.js";
|
|
@@ -5,13 +5,17 @@ const dateRangeInputMessages = {
|
|
|
5
5
|
placeholder: "Select date range",
|
|
6
6
|
dialogLabel: "Choose date range",
|
|
7
7
|
clear: (label) => clearLabel(label, "Clear", "Clear "),
|
|
8
|
-
presetDateRanges: "Preset date ranges"
|
|
8
|
+
presetDateRanges: "Preset date ranges",
|
|
9
|
+
rangeValue: (start, end) => `${start} – ${end}`,
|
|
10
|
+
triggerLabel: (label, value) => `${label}: ${value}`
|
|
9
11
|
},
|
|
10
12
|
"zh-CN": {
|
|
11
13
|
placeholder: "选择日期范围",
|
|
12
14
|
dialogLabel: "选择日期范围",
|
|
13
15
|
clear: (label) => clearLabel(label, "清除", "清除"),
|
|
14
|
-
presetDateRanges: "快捷日期范围"
|
|
16
|
+
presetDateRanges: "快捷日期范围",
|
|
17
|
+
rangeValue: (start, end) => `${start} – ${end}`,
|
|
18
|
+
triggerLabel: (label, value) => `${label}:${value}`
|
|
15
19
|
}
|
|
16
20
|
};
|
|
17
21
|
//#endregion
|
|
@@ -33,6 +33,21 @@ const FULL = {
|
|
|
33
33
|
second: "2-digit",
|
|
34
34
|
timeZoneName: "short"
|
|
35
35
|
};
|
|
36
|
+
const pinnedFormatters = /* @__PURE__ */ new Map();
|
|
37
|
+
/**
|
|
38
|
+
* 写明了时区的格式器按语言和选项留着,再次渲染不重新构造。没写时区的每次现构造,
|
|
39
|
+
* 这样宿主的时区变了也跟得上。
|
|
40
|
+
*/
|
|
41
|
+
function dateTimeFormatFor(locale, options) {
|
|
42
|
+
if (options.timeZone == null) return new Intl.DateTimeFormat(locale, options);
|
|
43
|
+
const key = `${locale}\u0000${JSON.stringify(options)}`;
|
|
44
|
+
let formatter = pinnedFormatters.get(key);
|
|
45
|
+
if (formatter == null) {
|
|
46
|
+
formatter = new Intl.DateTimeFormat(locale, options);
|
|
47
|
+
pinnedFormatters.set(key, formatter);
|
|
48
|
+
}
|
|
49
|
+
return formatter;
|
|
50
|
+
}
|
|
36
51
|
function pad(value) {
|
|
37
52
|
return String(value).padStart(2, "0");
|
|
38
53
|
}
|
|
@@ -45,7 +60,7 @@ function wallClock(date, timeZone) {
|
|
|
45
60
|
minute: date.getMinutes(),
|
|
46
61
|
second: date.getSeconds()
|
|
47
62
|
};
|
|
48
|
-
const parts =
|
|
63
|
+
const parts = dateTimeFormatFor("en-US", {
|
|
49
64
|
timeZone,
|
|
50
65
|
hourCycle: "h23",
|
|
51
66
|
year: "numeric",
|
|
@@ -70,34 +85,34 @@ function formatInstant(date, format, locale, { timeZone, isTimezoneShown = false
|
|
|
70
85
|
const zoneName = isTimezoneShown ? { timeZoneName: "short" } : {};
|
|
71
86
|
const calendar = labelCalendar(system);
|
|
72
87
|
switch (format) {
|
|
73
|
-
case "full": return
|
|
88
|
+
case "full": return dateTimeFormatFor(locale, {
|
|
74
89
|
...FULL,
|
|
75
90
|
timeZoneName: timeZoneNameStyle,
|
|
76
91
|
...zone,
|
|
77
92
|
calendar
|
|
78
93
|
}).format(date);
|
|
79
|
-
case "date": return
|
|
94
|
+
case "date": return dateTimeFormatFor(locale, {
|
|
80
95
|
...DATE_SHORT,
|
|
81
96
|
...zone,
|
|
82
97
|
calendar
|
|
83
98
|
}).format(date);
|
|
84
|
-
case "date_long": return
|
|
99
|
+
case "date_long": return dateTimeFormatFor(locale, {
|
|
85
100
|
...DATE_LONG,
|
|
86
101
|
...zone,
|
|
87
102
|
calendar
|
|
88
103
|
}).format(date);
|
|
89
|
-
case "date_weekday": return
|
|
104
|
+
case "date_weekday": return dateTimeFormatFor(locale, {
|
|
90
105
|
...DATE_WEEKDAY,
|
|
91
106
|
...zone,
|
|
92
107
|
calendar
|
|
93
108
|
}).format(date);
|
|
94
|
-
case "date_time": return
|
|
109
|
+
case "date_time": return dateTimeFormatFor(locale, {
|
|
95
110
|
...DATE_TIME,
|
|
96
111
|
...zoneName,
|
|
97
112
|
...zone,
|
|
98
113
|
calendar
|
|
99
114
|
}).format(date);
|
|
100
|
-
case "time": return
|
|
115
|
+
case "time": return dateTimeFormatFor(locale, {
|
|
101
116
|
...TIME,
|
|
102
117
|
...zoneName,
|
|
103
118
|
...zone
|
|
@@ -118,4 +133,4 @@ function formatInstant(date, format, locale, { timeZone, isTimezoneShown = false
|
|
|
118
133
|
}
|
|
119
134
|
}
|
|
120
135
|
//#endregion
|
|
121
|
-
export { formatInstant as t };
|
|
136
|
+
export { formatInstant as n, dateTimeFormatFor as t };
|
|
@@ -121,10 +121,10 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
|
|
|
121
121
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
122
122
|
onPageSizeChange?: ((pageSize: number) => any) | undefined;
|
|
123
123
|
}>, {
|
|
124
|
-
|
|
124
|
+
step: number;
|
|
125
125
|
isDisabled: boolean;
|
|
126
|
+
size: PaginationSize;
|
|
126
127
|
variant: PaginationVariant;
|
|
127
|
-
step: number;
|
|
128
128
|
disabled: boolean;
|
|
129
129
|
page: number;
|
|
130
130
|
pageSize: number;
|
|
@@ -123,8 +123,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
123
123
|
onChange?: ((value: string) => any) | undefined;
|
|
124
124
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
125
125
|
}>, {
|
|
126
|
-
layout: SegmentedControlLayout;
|
|
127
126
|
isDisabled: boolean;
|
|
127
|
+
layout: SegmentedControlLayout;
|
|
128
128
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
129
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
130
130
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -63,8 +63,8 @@ interface TreeListSlots {
|
|
|
63
63
|
//#region src/TreeList/TreeList.vue.d.ts
|
|
64
64
|
type __VLS_Slots = TreeListSlots;
|
|
65
65
|
declare const __VLS_base: import("vue").DefineComponent<TreeListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeListProps> & Readonly<{}>, {
|
|
66
|
-
variant: TreeListVariant;
|
|
67
66
|
density: TreeListDensity;
|
|
67
|
+
variant: TreeListVariant;
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
70
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,8 +28,8 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
28
28
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
block: boolean;
|
|
31
|
-
size: NavItemSize;
|
|
32
31
|
isDisabled: boolean;
|
|
32
|
+
size: NavItemSize;
|
|
33
33
|
isIconOnly: boolean;
|
|
34
34
|
isSelected: boolean;
|
|
35
35
|
isFocusableWhenDisabled: boolean;
|
|
@@ -83,8 +83,8 @@ declare const __VLS_base: import("vue").DefineComponent<HoverCardProps, {
|
|
|
83
83
|
}, string, import("vue").PublicProps, Readonly<HoverCardProps> & Readonly<{
|
|
84
84
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
85
85
|
}>, {
|
|
86
|
-
content: string;
|
|
87
86
|
label: string;
|
|
87
|
+
content: string;
|
|
88
88
|
isOpen: boolean;
|
|
89
89
|
placement: HoverCardPlacement;
|
|
90
90
|
alignment: HoverCardAlignment;
|
|
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
label?: (props: typeof __VLS_1) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
24
|
-
variant: DividerVariant;
|
|
25
24
|
orientation: DividerOrientation;
|
|
25
|
+
variant: DividerVariant;
|
|
26
26
|
isFullBleed: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -92,8 +92,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<DialogProps, {}, {}, {
|
|
|
92
92
|
variant: DialogVariant;
|
|
93
93
|
width: string | number;
|
|
94
94
|
padding: DialogPadding;
|
|
95
|
-
position: DialogPosition;
|
|
96
95
|
isInline: boolean;
|
|
96
|
+
position: DialogPosition;
|
|
97
97
|
purpose: DialogPurpose;
|
|
98
98
|
maxHeight: string | number;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -43,9 +43,9 @@ interface ProgressBarProps {
|
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/ProgressBar/ProgressBar.vue.d.ts
|
|
45
45
|
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
46
|
+
isDisabled: boolean;
|
|
46
47
|
size: ProgressBarSize;
|
|
47
48
|
value: number;
|
|
48
|
-
isDisabled: boolean;
|
|
49
49
|
variant: ProgressBarVariant;
|
|
50
50
|
isLabelHidden: boolean;
|
|
51
51
|
min: number;
|
|
@@ -33,8 +33,9 @@ declare function isDayOutsideSpan(pending: string | null, day: string, minRangeS
|
|
|
33
33
|
/**
|
|
34
34
|
* 一段日期范围的显示文字。起止都在今年时省掉年份。`currentYear` 缺省读时钟;
|
|
35
35
|
* 传 `null` 表示今年还不知道(服务端渲染、水合那一趟),这时一律写出年份。
|
|
36
|
+
* `join` 把两端写成一句,缺省用短横线连起来。
|
|
36
37
|
*/
|
|
37
|
-
declare function formatDateRange(range: ISODateRange | null, locale: string, currentYear?: number | null): string;
|
|
38
|
+
declare function formatDateRange(range: ISODateRange | null, locale: string, currentYear?: number | null, join?: (start: string, end: string) => string): string;
|
|
38
39
|
//#endregion
|
|
39
40
|
//#region src/composables/internal/snapPagingValue.d.ts
|
|
40
41
|
/**
|
|
@@ -202,19 +202,19 @@ declare const __VLS_base: import("vue").DefineComponent<MultiSelectorProps, {
|
|
|
202
202
|
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
203
203
|
}>, {
|
|
204
204
|
required: boolean;
|
|
205
|
+
status: MultiSelectorStatus;
|
|
205
206
|
isLoading: boolean;
|
|
206
207
|
variant: MultiSelectorVariant;
|
|
207
|
-
status: MultiSelectorStatus;
|
|
208
208
|
modelValue: readonly (string | number)[];
|
|
209
209
|
statusVariant: MultiSelectorStatusVariant;
|
|
210
|
-
presentation: MultiSelectorPresentation;
|
|
211
|
-
isReadOnly: boolean;
|
|
212
210
|
labelHidden: boolean;
|
|
213
211
|
disabled: boolean;
|
|
214
|
-
searchable: boolean;
|
|
215
212
|
clearable: boolean;
|
|
213
|
+
presentation: MultiSelectorPresentation;
|
|
214
|
+
isReadOnly: boolean;
|
|
216
215
|
hasCreate: boolean;
|
|
217
216
|
optional: boolean;
|
|
217
|
+
searchable: boolean;
|
|
218
218
|
selectAll: boolean;
|
|
219
219
|
triggerDisplay: MultiSelectorTriggerDisplay;
|
|
220
220
|
maxBadges: number;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
|
|
|
37
37
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
38
38
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
|
|
39
39
|
isDisabled: boolean;
|
|
40
|
-
position: ResizePosition;
|
|
41
40
|
direction: ResizeDirection;
|
|
41
|
+
position: ResizePosition;
|
|
42
42
|
isReversed: boolean;
|
|
43
43
|
hasDivider: boolean;
|
|
44
44
|
isAlwaysVisible: boolean;
|
|
@@ -65,8 +65,8 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
|
|
|
65
65
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
66
66
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
|
-
content: string;
|
|
69
68
|
anchor: HTMLElement | null;
|
|
69
|
+
content: string;
|
|
70
70
|
isOpen: boolean;
|
|
71
71
|
placement: TooltipPlacement;
|
|
72
72
|
alignment: TooltipAlignment;
|
|
@@ -144,9 +144,9 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps$1, {
|
|
|
144
144
|
padding: BottomSheetPadding;
|
|
145
145
|
height: string | number;
|
|
146
146
|
isInline: boolean;
|
|
147
|
+
snapPoints: readonly BottomSheetSnapPoint[];
|
|
147
148
|
purpose: BottomSheetPurpose;
|
|
148
149
|
hasScrim: boolean;
|
|
149
|
-
snapPoints: readonly BottomSheetSnapPoint[];
|
|
150
150
|
finalFocusRef: import("vue").MaybeRef<HTMLElement | null>;
|
|
151
151
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
152
152
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -9,8 +9,8 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
type: "button" | "submit" | "reset";
|
|
12
|
-
elevation: ButtonElevation;
|
|
13
12
|
isDisabled: boolean;
|
|
13
|
+
elevation: ButtonElevation;
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
isIconOnly: boolean;
|
|
16
16
|
isInterruptible: boolean;
|
|
@@ -96,10 +96,10 @@ declare const __VLS_base$2: import("vue").DefineComponent<ItemProps, {
|
|
|
96
96
|
focus: typeof focus;
|
|
97
97
|
blur: typeof blur;
|
|
98
98
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ItemProps> & Readonly<{}>, {
|
|
99
|
-
layout: ItemLayout;
|
|
100
99
|
isDisabled: boolean;
|
|
101
|
-
as: ItemElement;
|
|
102
100
|
density: ListDensity;
|
|
101
|
+
layout: ItemLayout;
|
|
102
|
+
as: ItemElement;
|
|
103
103
|
isSelected: boolean;
|
|
104
104
|
align: ItemAlign;
|
|
105
105
|
isHighlighted: boolean;
|
|
@@ -101,8 +101,8 @@ type __VLS_Slots = {
|
|
|
101
101
|
declare const __VLS_base: import("vue").DefineComponent<CenterProps, {
|
|
102
102
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
103
103
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CenterProps> & Readonly<{}>, {
|
|
104
|
-
axis: CenterAxis;
|
|
105
104
|
isInline: boolean;
|
|
105
|
+
axis: CenterAxis;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
107
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
108
108
|
declare const _default: typeof __VLS_export;
|
|
@@ -174,20 +174,20 @@ declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {
|
|
|
174
174
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
175
175
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
176
176
|
}>, {
|
|
177
|
-
isLoading: boolean;
|
|
178
|
-
variant: SelectorVariant;
|
|
179
|
-
indicatorPosition: SelectorIndicatorPosition;
|
|
180
177
|
status: SelectorStatusInput;
|
|
181
178
|
isOptional: boolean;
|
|
179
|
+
indicatorPosition: SelectorIndicatorPosition;
|
|
180
|
+
isLoading: boolean;
|
|
181
|
+
variant: SelectorVariant;
|
|
182
182
|
modelValue: string | number | null;
|
|
183
183
|
isLabelHidden: boolean;
|
|
184
184
|
isRequired: boolean;
|
|
185
185
|
statusVariant: SelectorStatusVariant;
|
|
186
|
+
disabled: boolean;
|
|
187
|
+
clearable: boolean;
|
|
186
188
|
presentation: SelectorPresentation;
|
|
187
189
|
isReadOnly: boolean;
|
|
188
|
-
disabled: boolean;
|
|
189
190
|
searchable: boolean;
|
|
190
|
-
clearable: boolean;
|
|
191
191
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
192
192
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
193
193
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dn as AstryxLocale, On as CalendarSystem, s as AstryxMessages } from "./loadCatalog-
|
|
1
|
+
import { Dn as AstryxLocale, On as CalendarSystem, s as AstryxMessages } from "./loadCatalog-BY88s6vB.js";
|
|
2
2
|
import { ComputedRef, InjectionKey, MaybeRefOrGetter } from "vue";
|
|
3
3
|
//#region src/locale/context.d.ts
|
|
4
4
|
declare const astryxLocaleKey: InjectionKey<MaybeRefOrGetter<string>>;
|
|
@@ -162,8 +162,8 @@ declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}
|
|
|
162
162
|
}>, {
|
|
163
163
|
layout: TabListLayout;
|
|
164
164
|
isFullBleed: boolean;
|
|
165
|
-
hasDivider: boolean;
|
|
166
165
|
overflow: TabListOverflow;
|
|
166
|
+
hasDivider: boolean;
|
|
167
167
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
169
169
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { On as CalendarSystem, s as AstryxMessages, t as AstryxUpstreamCatalog } from "./loadCatalog-
|
|
1
|
+
import { On as CalendarSystem, s as AstryxMessages, t as AstryxUpstreamCatalog } from "./loadCatalog-BY88s6vB.js";
|
|
2
2
|
import { ComputedRef, InjectionKey } from "vue";
|
|
3
3
|
//#region src/InternationalizationProvider/catalog.d.ts
|
|
4
4
|
/**
|
|
@@ -87,8 +87,8 @@ interface StepSlots {
|
|
|
87
87
|
type __VLS_Slots$1 = StepSlots;
|
|
88
88
|
declare const __VLS_base$1: import("vue").DefineComponent<StepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
89
89
|
isDisabled: boolean;
|
|
90
|
-
indicator: StepIndicator;
|
|
91
90
|
isOptional: boolean;
|
|
91
|
+
indicator: StepIndicator;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
94
94
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -101,8 +101,8 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
101
101
|
//#region src/Stepper/Stepper.vue.d.ts
|
|
102
102
|
type __VLS_Slots = StepperSlots;
|
|
103
103
|
declare const __VLS_base: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {
|
|
104
|
-
orientation: StepperOrientation;
|
|
105
104
|
density: StepperDensity;
|
|
105
|
+
orientation: StepperOrientation;
|
|
106
106
|
indicatorPosition: StepperIndicatorPosition;
|
|
107
107
|
hasCollapsibleLabels: boolean;
|
|
108
108
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|