@astryx-vue/core 0.18.0 → 0.19.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.
- package/dist/AppShell/index.d.ts +1 -1
- 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/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 +1 -1
- package/dist/{Calendar-Bk2nGoT-.js → Calendar-ydp0vJdO.js} +38 -14
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Wq7e98zS.js → Chat-CXwXzlZ0.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BitZfGEY.js → DateInput-CiIWOWXM.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-kxXBsUTU.js → DateRangeInput-CLVQ8E0Y.js} +25 -17
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Cfkuec_h.js → DateTimeInput-jHSN-Dzu.js} +47 -17
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DVPLeccv.js → HoverCard-FHYH3VXg.js} +50 -2
- 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-Dr5GE6f0.js → InternationalizationProvider-Ddo_-tLK.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BPeesTRv.js → NumberInput-BsWTXomE.js} +2 -23
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BAOqpQag.js → PowerSearch-C2x4uuAM.js} +6 -6
- 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/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/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/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-iemur_3E.js → Table-o3aGMDT1.js} +4 -4
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/{TimeField-CBWgdA1Y.js → TimeField-BM-rVFhC.js} +419 -140
- package/dist/TimeInput/index.d.ts +2 -2
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-8ASOMV3B.js → TimeInput-CkZfhhAr.js} +28 -8
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-C8evnsTE.js → Timer-DiIs5GLA.js} +24 -15
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CgvZe6vH.js → Timestamp-D9Jyk9sD.js} +152 -96
- 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/composables/index.d.ts +1 -1
- package/dist/composables/index.js +3 -3
- package/dist/{format-CMHyAMn3.js → format-mffyPc-L.js} +34 -4
- package/dist/{index-BhxqUt3y.d.ts → index--kbwaSXW.d.ts} +1 -1
- package/dist/{index-KcCNhdAw.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-DMcf0QeR.d.ts → index-B449gOMC.d.ts} +1 -1
- package/dist/{index-DMN_JVEt.d.ts → index-BL4mH8aK.d.ts} +1 -1
- package/dist/{index-DFLPv9io.d.ts → index-BO9TY87G.d.ts} +1 -1
- package/dist/{index-D31bgBoy.d.ts → index-BdZCLUgY.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-C1qJlC65.d.ts → index-CQ-sq76o.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-BKpnfdq1.d.ts → index-CUCgbqBB.d.ts} +3 -3
- package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-B_PKY-Wn.d.ts → index-D-giO0SA.d.ts} +2 -2
- package/dist/{index-gu5EvbE0.d.ts → index-DBu-H-vB.d.ts} +13 -3
- package/dist/{index-BzmcDJau.d.ts → index-DdT2wE_N.d.ts} +3 -3
- package/dist/{index-o00Upzjp.d.ts → index-Dg0JsBpI.d.ts} +1 -1
- package/dist/{index-PffxihMx.d.ts → index-Djf0M7PH.d.ts} +1 -1
- package/dist/{index-BtqvPjAf.d.ts → index-Otl047R1.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-BBTU-TKb.d.ts → index-X4S7_dmq.d.ts} +2 -1
- package/dist/{index-DmAEpn5E.d.ts → index-aE810PYg.d.ts} +1 -1
- package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
- package/dist/{index-DPhQZXYw.d.ts → index-eCp-ElSp.d.ts} +2 -2
- package/dist/{index-Y4H4X6Vy.d.ts → index-ohw86wfM.d.ts} +87 -46
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +30 -30
- package/dist/index.js +19 -19
- package/dist/{loadCatalog-BJwcyX8i.d.ts → loadCatalog-C4h9SmJs.d.ts} +2 -0
- package/dist/{loadCatalog-C1kms5sO.js → loadCatalog-DsEKSY3U.js} +5 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-CHhsd9Mq.js → locale-C-Y-13BP.js} +1 -1
- package/dist/timeFormat-CqrwFE42.js +203 -0
- package/dist/{timestamp-BMYQsFDj.js → timestamp-saJUedIU.js} +4 -2
- package/dist/unicodeDigits-_BYIJcAu.js +46 -0
- package/dist/{useDateRange-CIXoE_8k.js → useDateRange-D1Szw54e.js} +7 -3
- package/dist/{useMonthGrid-fGHSSrFc.js → useMonthGrid-Bzvlstgc.js} +1 -1
- package/dist/{useTimeValue-_XW9g2V1.js → useTimeValue-CcKrnO8z.js} +13 -6
- package/package.json +1 -1
- package/styles/calendar.css +5 -1
- package/styles/date-range-input.css +19 -2
- package/styles/timestamp.css +22 -10
package/dist/AppShell/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-
|
|
1
|
+
import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-TXcNH86P.js";
|
|
2
2
|
export { _default as AppShell, type AppShellBreakpoint, type AppShellEmits, type AppShellHeight, type AppShellMobileNav, type AppShellProps, type AppShellSlots, type AppShellVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-
|
|
1
|
+
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Co as
|
|
1
|
+
import { Co as BannerSlots, So as BannerProps, bo as BannerContainer, wo as BannerStatus, xo as BannerEmits, yo as _default } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-
|
|
1
|
+
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-BO9TY87G.js";
|
|
2
2
|
export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-DRpOiAlm.js";
|
|
2
|
-
import { t as _default } from "../index
|
|
2
|
+
import { t as _default } from "../index--kbwaSXW.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _o as
|
|
1
|
+
import { _o as ButtonGroupSlots, go as ButtonGroupProps, ho as _default, vo as ButtonGroupOrientation } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { co as
|
|
1
|
+
import { co as _default, do as CalendarHandleRef, fo as CalendarProps, lo as CalendarEmits, mo as CalendarSlots, po as CalendarRangeValue, uo as CalendarHandle } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Calendar-
|
|
1
|
+
import { t as _sfc_main } from "../Calendar-ydp0vJdO.js";
|
|
2
2
|
export { _sfc_main as Calendar };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
2
|
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
4
|
-
import { c as resolveWeekStart } from "./useDateRange-
|
|
4
|
+
import { c as resolveWeekStart } from "./useDateRange-D1Szw54e.js";
|
|
5
5
|
import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
|
|
6
6
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
|
-
import { n as
|
|
7
|
+
import { i as weekdayNames, n as formatDayNumber, r as standaloneShortWeekdayNames, t as formatCalendarMonth } from "./format-mffyPc-L.js";
|
|
8
8
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
9
9
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, nextTick, normalizeClass, onMounted, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
10
10
|
import { CalendarDate } from "@internationalized/date";
|
|
@@ -68,24 +68,48 @@ function formatWeekdayDate(date, locale) {
|
|
|
68
68
|
}).format(fromCalendarDate(date));
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* The month the calendar opens on. An explicit focus date wins
|
|
72
|
-
*
|
|
73
|
-
*
|
|
71
|
+
* The month the calendar opens on. An explicit focus date wins and is never
|
|
72
|
+
* second-guessed. Then the selection, whose month is shown even when it lies
|
|
73
|
+
* outside min/max. Otherwise today is clamped into the min/max window so the
|
|
74
|
+
* first paint is not an all-disabled month.
|
|
75
|
+
*
|
|
76
|
+
* With two months, a selection or today inside max's month still opens one
|
|
77
|
+
* pane earlier, so max's month is the last pane and the panes before it keep
|
|
78
|
+
* selectable days. That shift never crosses min's month.
|
|
74
79
|
*/
|
|
75
80
|
function initialCalendarFocus(options) {
|
|
76
81
|
if (options.focusDate) return toCalendarDate(options.focusDate);
|
|
77
|
-
if (options.selected) return toCalendarDate(options.selected);
|
|
78
|
-
if (options.rangeStart) return toCalendarDate(options.rangeStart);
|
|
79
|
-
const today = options.today ? toCalendarDate(options.today) : toCalendarDate(/* @__PURE__ */ new Date());
|
|
80
82
|
const min = options.min ? toCalendarDate(options.min) : null;
|
|
81
83
|
const max = options.max ? toCalendarDate(options.max) : null;
|
|
84
|
+
const panes = options.numberOfMonths;
|
|
85
|
+
if (options.selected) return keepLastPaneWithinMax(toCalendarDate(options.selected), min, max, panes);
|
|
86
|
+
if (options.rangeStart) return keepLastPaneWithinMax(toCalendarDate(options.rangeStart), min, max, panes);
|
|
87
|
+
const today = options.today ? toCalendarDate(options.today) : toCalendarDate(/* @__PURE__ */ new Date());
|
|
82
88
|
if (min && today.compare(min) < 0) return min;
|
|
83
89
|
if (max && today.compare(max) > 0) {
|
|
84
|
-
const shifted = shiftMonth(max, -Math.max(0,
|
|
90
|
+
const shifted = shiftMonth(max, -Math.max(0, panes - 1));
|
|
85
91
|
if (min && shifted.compare(new CalendarDate(min.year, min.month, 1)) < 0) return min;
|
|
86
92
|
return shifted;
|
|
87
93
|
}
|
|
88
|
-
return today;
|
|
94
|
+
return keepLastPaneWithinMax(today, min, max, panes);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* `date` 所在的月份显示着,但后面的窗格会整个落在 max 之后时,把起始月往前挪:
|
|
98
|
+
* 最后一个窗格落在 max 所在的月份,第一个窗格不早于 min 所在的月份。
|
|
99
|
+
* 窗格本来就在 max 的月份结束,或者 `date` 自己的月份已经晚于 max 的月份,就原样返回。
|
|
100
|
+
*/
|
|
101
|
+
function keepLastPaneWithinMax(date, min, max, numberOfMonths) {
|
|
102
|
+
const lastPane = Math.max(0, numberOfMonths - 1);
|
|
103
|
+
if (!max || lastPane === 0) return date;
|
|
104
|
+
const month = monthIndex(date);
|
|
105
|
+
const maxMonth = monthIndex(max);
|
|
106
|
+
const latestFirstPane = maxMonth - lastPane;
|
|
107
|
+
if (month <= latestFirstPane || month > maxMonth) return date;
|
|
108
|
+
const earliest = shiftMonth(max, -lastPane);
|
|
109
|
+
if (!min) return earliest;
|
|
110
|
+
const minMonth = monthIndex(min);
|
|
111
|
+
if (latestFirstPane >= minMonth) return earliest;
|
|
112
|
+
return month > minMonth ? min : date;
|
|
89
113
|
}
|
|
90
114
|
/** `date` 在 `start` 和 `end` 之间(含两端)。任何一端缺了就不在。 */
|
|
91
115
|
function inSpan(date, start, end) {
|
|
@@ -141,9 +165,9 @@ function buildCalendarWeeks(year, month, weekStartsOn = 0, variableRows = false)
|
|
|
141
165
|
});
|
|
142
166
|
cursor = cursor.add({ days: 1 });
|
|
143
167
|
}
|
|
144
|
-
const
|
|
168
|
+
const thursday = days[(4 - weekStartsOn + 7) % 7].date;
|
|
145
169
|
weeks.push({
|
|
146
|
-
number: isoWeekNumber(
|
|
170
|
+
number: isoWeekNumber(thursday),
|
|
147
171
|
days
|
|
148
172
|
});
|
|
149
173
|
}
|
|
@@ -664,7 +688,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
664
688
|
key: `${month.year}-${month.month}-${rowIndex}`,
|
|
665
689
|
class: "astryx-calendar-row",
|
|
666
690
|
role: "row"
|
|
667
|
-
}, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(week.number), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(paint(week), (day) => {
|
|
691
|
+
}, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(unref(formatDayNumber)(week.number, unref(locale))), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(paint(week), (day) => {
|
|
668
692
|
return openBlock(), createElementBlock("div", {
|
|
669
693
|
key: day.iso,
|
|
670
694
|
class: "astryx-calendar-gridcell",
|
|
@@ -704,7 +728,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
704
728
|
isDisabled: day.disabled,
|
|
705
729
|
isToday: day.today,
|
|
706
730
|
isInMonth: !day.outside
|
|
707
|
-
}, () => [createElementVNode("span", _hoisted_14, toDisplayString(day.text), 1)])], 42, _hoisted_13)) : createCommentVNode("v-if", true)], 8, _hoisted_12);
|
|
731
|
+
}, () => [createElementVNode("span", _hoisted_14, toDisplayString(unref(formatDayNumber)(day.text, unref(locale))), 1)])], 42, _hoisted_13)) : createCommentVNode("v-if", true)], 8, _hoisted_12);
|
|
708
732
|
}), 128))]);
|
|
709
733
|
}), 128))], 40, _hoisted_7)]);
|
|
710
734
|
}), 128))])], 10, _hoisted_1);
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-
|
|
1
|
+
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
|
|
2
2
|
export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as
|
|
1
|
+
import { ao as CarouselHandle, io as CarouselGap, oo as CarouselProps, ro as _default, so as CarouselSlots } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
|
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-
|
|
1
|
+
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-D-giO0SA.js";
|
|
2
2
|
export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-
|
|
1
|
+
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-CXwXzlZ0.js";
|
|
2
2
|
export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
|
@@ -13,7 +13,7 @@ import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
|
13
13
|
import { t as _sfc_main$27 } from "./Badge-BbPS_49c.js";
|
|
14
14
|
import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
|
|
15
15
|
import { t as chatMessages } from "./chat-BUFYB3bA.js";
|
|
16
|
-
import { t as _sfc_main$29 } from "./HoverCard-
|
|
16
|
+
import { t as _sfc_main$29 } from "./HoverCard-FHYH3VXg.js";
|
|
17
17
|
import { t as _sfc_main$30 } from "./Spinner-DEVPDsD0.js";
|
|
18
18
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
19
19
|
import "../styles/layer.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as CheckboxInputEmits, Qa as CheckboxInputChangeEvent, Xa as _default, Za as CheckboxInputChangeAction, eo as CheckboxInputProps, no as CheckboxValue, to as CheckboxInputSlots } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ga as
|
|
1
|
+
import { Ga as _default, Ja as CheckboxListItemProps, Ka as CheckboxListEmits, Wa as _default$1, Ya as CheckboxListProps, qa as CheckboxListItemEmits } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as
|
|
1
|
+
import { Ba as _default, Ha as ClickableCardProps, Ua as ClickableCardSlots, Va as ClickableCardEmits } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as SyntaxThemeInput, c as SyntaxTokenValue, i as SyntaxThemeDefinition, l as defineSyntaxTheme, n as SYNTAX_TOKEN_KEYS, o as SyntaxThemeTokens, r as SyntaxDiffTokenKey, s as SyntaxTokenKey, t as DIFF_SYNTAX_TOKEN_KEYS, u as githubDark } from "../syntaxTheme-CwVEcVDk.js";
|
|
2
|
-
import { A as _default$1, B as CodeSize, C as applyHighlightRanges, D as diffLineKind, E as DiffLines, F as CodeBlockSize, H as SyntaxToken, I as CodeBlockTokenizer, L as CodeColor, M as CodeBlockContainer, N as CodeBlockEmits, O as parseFenceLanguage, P as CodeBlockProps, R as CodeHighlightMode, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLineKind, U as TokenLine, V as CodeSlots, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as _default, k as splitDiffLines, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as applyHighlightRangesFlat, x as tokyoNightLight, y as solarizedLight, z as CodeProps } from "../index-
|
|
2
|
+
import { A as _default$1, B as CodeSize, C as applyHighlightRanges, D as diffLineKind, E as DiffLines, F as CodeBlockSize, H as SyntaxToken, I as CodeBlockTokenizer, L as CodeColor, M as CodeBlockContainer, N as CodeBlockEmits, O as parseFenceLanguage, P as CodeBlockProps, R as CodeHighlightMode, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLineKind, U as TokenLine, V as CodeSlots, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as _default, k as splitDiffLines, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as applyHighlightRangesFlat, x as tokyoNightLight, y as solarizedLight, z as CodeProps } from "../index-ChqMaV6N.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-DeO8fCW_.js";
|
|
4
4
|
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, DIFF_SYNTAX_TOKEN_KEYS, type DiffLineKind, type DiffLines, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, type SyntaxDiffTokenKey, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-
|
|
1
|
+
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-yQc-te9a.js";
|
|
2
2
|
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Aa as
|
|
1
|
+
import { Aa as ContextMenuRadioOptionData, Ca as ContextMenuItemProps, Da as ContextMenuPresentation, Ea as ContextMenuOption, Fa as ContextMenuSubMenuProps, Ia as ContextMenuSubMenuSlots, La as ContextMenuTriggerElement, Ma as ContextMenuSize, Na as ContextMenuSlots, Oa as ContextMenuProps, Pa as ContextMenuSubMenuEmits, Ra as ContextMenuVariant, Sa as ContextMenuItemIcon, Ta as ContextMenuItemTarget, _a as ContextMenuEntry, ba as ContextMenuItemData, ca as _default$3, da as useContextMenu, fa as useContextMenuSize, ga as ContextMenuEmits, ha as ContextMenuDividerProps, ja as ContextMenuSection, ka as ContextMenuRadioData, la as _default$2, ma as ContextMenuDividerData, oa as _default$7, pa as ContextMenuCheckboxData, sa as _default$4, ua as _default, va as ContextMenuGroupProps, wa as ContextMenuItemSlots, xa as ContextMenuItemEmits, ya as ContextMenuGroupSlots, za as ContextMenuWidth } from "../index-ohw86wfM.js";
|
|
2
2
|
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-C9DdN6UE.js";
|
|
3
3
|
export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $i as
|
|
1
|
+
import { $i as DateInputFormatName, Qi as DateInputFormat, Xi as DateInputEntryError, Yi as _default, Zi as DateInputEmits, aa as DateInputStatusType, ea as DateInputNativePicker, ia as DateInputStatus, na as DateInputProps, ra as DateInputSlots, ta as DateInputPresentation } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as DateInput, type DateInputEmits, type DateInputEntryError, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|
package/dist/DateInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateInput-CiIWOWXM.js";
|
|
2
2
|
export { _sfc_main as DateInput };
|
|
@@ -12,9 +12,9 @@ import { t as _sfc_main$8 } from "./FieldIcon-DMtfe1Ne.js";
|
|
|
12
12
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
13
13
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
14
14
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
15
|
-
import { n as
|
|
15
|
+
import { i as weekdayNames, n as formatDayNumber, r as standaloneShortWeekdayNames, t as formatCalendarMonth } from "./format-mffyPc-L.js";
|
|
16
16
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
17
|
-
import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-
|
|
17
|
+
import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-ydp0vJdO.js";
|
|
18
18
|
import { t as _sfc_main$10 } from "./Spinner-DEVPDsD0.js";
|
|
19
19
|
import { a as useEntryErrorBehavior, i as useAriaRequired } from "./context-DsNhYm5O.js";
|
|
20
20
|
import { t as _sfc_main$11 } from "./Field-BXkGR8H0.js";
|
|
@@ -701,7 +701,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
701
701
|
"aria-current": !day.outside && unref(sameCalendarDay)(day.date, todayDate.value) ? "date" : void 0,
|
|
702
702
|
"aria-label": unref(formatWeekdayDate)(day.date, unref(locale)),
|
|
703
703
|
onClick: ($event) => pick(day.date, day.outside)
|
|
704
|
-
}, [createElementVNode("span", _hoisted_5$2, toDisplayString(day.day), 1)], 10, _hoisted_4$2)]);
|
|
704
|
+
}, [createElementVNode("span", _hoisted_5$2, toDisplayString(unref(formatDayNumber)(day.day, unref(locale))), 1)], 10, _hoisted_4$2)]);
|
|
705
705
|
}), 128))]);
|
|
706
706
|
}), 128))], 40, _hoisted_1$2);
|
|
707
707
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gi as
|
|
1
|
+
import { Gi as DateRange, Ji as DateRangePreset, Ki as DateRangeInputEmits, Wi as _default, qi as DateRangeInputProps } from "../index-ohw86wfM.js";
|
|
2
2
|
export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateRangeInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateRangeInput-CLVQ8E0Y.js";
|
|
2
2
|
export { _sfc_main as DateRangeInput };
|
|
@@ -3,15 +3,16 @@ import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
|
3
3
|
import { t as _sfc_main$3 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
4
4
|
import { t as _sfc_main$4 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
5
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
|
-
import {
|
|
6
|
+
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
7
|
+
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, r as formatDateRange, s as orderRange, t as applyRangeClick } from "./useDateRange-D1Szw54e.js";
|
|
7
8
|
import { t as _sfc_main$5 } from "./FieldIcon-DMtfe1Ne.js";
|
|
8
9
|
import { t as _sfc_main$6 } from "./IconButton-Du2XBBAX.js";
|
|
9
10
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
10
|
-
import { a as todayISODate, n as buildMonthGrid, t as addMonths } from "./useMonthGrid-
|
|
11
|
+
import { a as todayISODate, n as buildMonthGrid, t as addMonths } from "./useMonthGrid-Bzvlstgc.js";
|
|
11
12
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
12
13
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
13
14
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
14
|
-
import { n as
|
|
15
|
+
import { i as weekdayNames, n as formatDayNumber, r as standaloneShortWeekdayNames, t as formatCalendarMonth } from "./format-mffyPc-L.js";
|
|
15
16
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
16
17
|
import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
|
|
17
18
|
import { i as useAriaRequired } from "./context-DsNhYm5O.js";
|
|
@@ -21,7 +22,7 @@ import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
|
21
22
|
import { t as _sfc_main$9 } from "./Popover-CmAEizH-.js";
|
|
22
23
|
import { t as dateInputMessages } from "./date-input-rUD8YAow.js";
|
|
23
24
|
import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
|
|
24
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
25
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, renderList, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
25
26
|
import "../styles/calendar.css";
|
|
26
27
|
import "../styles/date-range-input.css";
|
|
27
28
|
import "../styles/bordered-control.css";
|
|
@@ -35,7 +36,7 @@ const _hoisted_6$1 = { class: "astryx-date-range-months" };
|
|
|
35
36
|
const _hoisted_7 = { class: "astryx-calendar-weekdays" };
|
|
36
37
|
const _hoisted_8 = ["aria-label"];
|
|
37
38
|
const _hoisted_9 = [
|
|
38
|
-
"disabled",
|
|
39
|
+
"aria-disabled",
|
|
39
40
|
"aria-pressed",
|
|
40
41
|
"aria-current",
|
|
41
42
|
"onClick",
|
|
@@ -156,15 +157,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
156
157
|
"is-range-end": day === preview.value?.end,
|
|
157
158
|
"is-disabled": isDisabled(day)
|
|
158
159
|
}]),
|
|
159
|
-
disabled: isDisabled(day),
|
|
160
|
+
"aria-disabled": isDisabled(day) || void 0,
|
|
160
161
|
"aria-pressed": day === preview.value?.start || day === preview.value?.end || void 0,
|
|
161
162
|
"aria-current": day === unref(today) ? "date" : void 0,
|
|
162
|
-
onClick: ($event) => emit("select", day),
|
|
163
|
-
onMouseenter: ($event) => hover.value = day,
|
|
163
|
+
onClick: ($event) => isDisabled(day) ? void 0 : emit("select", day),
|
|
164
|
+
onMouseenter: ($event) => hover.value = isDisabled(day) ? null : day,
|
|
164
165
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => hover.value = null),
|
|
165
|
-
onFocus: ($event) => hover.value = day,
|
|
166
|
+
onFocus: ($event) => hover.value = isDisabled(day) ? null : day,
|
|
166
167
|
onBlur: _cache[3] || (_cache[3] = ($event) => hover.value = null)
|
|
167
|
-
}, [createElementVNode("span", _hoisted_10, toDisplayString(Number(day.slice(8))), 1)], 42, _hoisted_9);
|
|
168
|
+
}, [createElementVNode("span", _hoisted_10, toDisplayString(unref(formatDayNumber)(Number(day.slice(8)), unref(locale))), 1)], 42, _hoisted_9);
|
|
168
169
|
}), 128))]);
|
|
169
170
|
}), 128))]);
|
|
170
171
|
}), 128))])]);
|
|
@@ -187,7 +188,7 @@ const _hoisted_2 = [
|
|
|
187
188
|
"aria-disabled"
|
|
188
189
|
];
|
|
189
190
|
const _hoisted_3 = ["data-placeholder"];
|
|
190
|
-
const _hoisted_4 = { class: "astryx-date-range-
|
|
191
|
+
const _hoisted_4 = { class: "astryx-date-range-panel" };
|
|
191
192
|
const _hoisted_5 = {
|
|
192
193
|
key: 0,
|
|
193
194
|
class: "astryx-date-range-presets"
|
|
@@ -270,6 +271,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
270
271
|
const emit = __emit;
|
|
271
272
|
const size = useSize(() => props.size, "md");
|
|
272
273
|
const model = useModel(__props, "modelValue");
|
|
274
|
+
if (isDevBuild() && model.value != null && (typeof model.value.start !== "string" || typeof model.value.end !== "string")) throw devPropError("DateRangeInput", "modelValue", "must be null or { start, end } with ISO date strings, for example v-model=\"{ start: '2026-01-01', end: '2026-01-31' }\". Pass strings, not Date objects.");
|
|
273
275
|
const attrs = useAttrs();
|
|
274
276
|
const parts = useFieldPartStyling({
|
|
275
277
|
component: "DateRangeInput",
|
|
@@ -315,7 +317,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
315
317
|
useScrollbars(panelEl);
|
|
316
318
|
const visibleMonths = computed(() => props.numberOfMonths ?? props.monthCount);
|
|
317
319
|
useBusyAnnouncement(busy, () => messages.value.dateInput.loading, () => containerRef.value);
|
|
318
|
-
const
|
|
320
|
+
const isServerOrHydrating = typeof document === "undefined" || inject(ssrContextKey, void 0) !== void 0 || getCurrentInstance()?.vnode.el != null;
|
|
321
|
+
const currentYear = shallowRef(isServerOrHydrating ? null : (/* @__PURE__ */ new Date()).getFullYear());
|
|
322
|
+
onMounted(() => {
|
|
323
|
+
currentYear.value ??= (/* @__PURE__ */ new Date()).getFullYear();
|
|
324
|
+
});
|
|
325
|
+
const display = computed(() => formatDateRange(model.value, locale.value, currentYear.value));
|
|
319
326
|
const placeholder = computed(() => props.placeholder ?? messages.value.dateRangeInput.placeholder);
|
|
320
327
|
const clearLabel = computed(() => props.clearLabel ?? messages.value.dateRangeInput.clear(props.label));
|
|
321
328
|
function commit(value) {
|
|
@@ -325,6 +332,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
325
332
|
action.run(value);
|
|
326
333
|
}
|
|
327
334
|
function onSelect(day) {
|
|
335
|
+
if (locked.value) return;
|
|
328
336
|
const result = applyRangeClick(pending.value, day, props.minRangeSpan, props.maxRangeSpan);
|
|
329
337
|
pending.value = result.pending;
|
|
330
338
|
if (result.commit) {
|
|
@@ -347,7 +355,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
347
355
|
if (!next) pending.value = null;
|
|
348
356
|
}
|
|
349
357
|
function applyPreset(preset) {
|
|
350
|
-
if (presetDisabled(preset)) return;
|
|
358
|
+
if (locked.value || presetDisabled(preset)) return;
|
|
351
359
|
const range = preset.getRange();
|
|
352
360
|
if (!isRangeWithinSpan(range, props.minRangeSpan, props.maxRangeSpan)) return;
|
|
353
361
|
commit(range);
|
|
@@ -403,11 +411,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
403
411
|
label: unref(messages).dateRangeInput.dialogLabel,
|
|
404
412
|
onOpenChange
|
|
405
413
|
}, {
|
|
406
|
-
content: withCtx(() => [createElementVNode("div",
|
|
414
|
+
content: withCtx(() => [createElementVNode("div", {
|
|
407
415
|
ref_key: "panelEl",
|
|
408
416
|
ref: panelEl,
|
|
409
|
-
class: "astryx-date-range-
|
|
410
|
-
}, [__props.presets?.length ? (openBlock(), createElementBlock("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.presets, (preset) => {
|
|
417
|
+
class: "astryx-date-range-popover"
|
|
418
|
+
}, [createElementVNode("div", _hoisted_4, [__props.presets?.length ? (openBlock(), createElementBlock("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.presets, (preset) => {
|
|
411
419
|
return openBlock(), createElementBlock("button", {
|
|
412
420
|
key: preset.label,
|
|
413
421
|
type: "button",
|
|
@@ -442,7 +450,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
442
450
|
"min-range-span",
|
|
443
451
|
"max-range-span",
|
|
444
452
|
"week-starts-on"
|
|
445
|
-
])) : createCommentVNode("v-if", true)], 512)])
|
|
453
|
+
])) : createCommentVNode("v-if", true)])], 512)]),
|
|
446
454
|
default: withCtx(() => [createElementVNode("div", {
|
|
447
455
|
ref_key: "containerRef",
|
|
448
456
|
ref: containerRef,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bi as
|
|
1
|
+
import { Bi as _default, Hi as DateTimeInputProps, Ui as DateTimeInputSize, Vi as DateTimeInputEmits } from "../index-ohw86wfM.js";
|
|
2
2
|
export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateTimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateTimeInput-jHSN-Dzu.js";
|
|
2
2
|
export { _sfc_main as DateTimeInput };
|
|
@@ -7,17 +7,19 @@ import { t as _sfc_main$5 } from "./IconButton-Du2XBBAX.js";
|
|
|
7
7
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
8
8
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
9
9
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as resolveHourFormat } from "./timeFormat-CqrwFE42.js";
|
|
11
|
+
import { a as parseISOTime, n as formatISOTime, t as formatDisplayTime } from "./useTimeValue-CcKrnO8z.js";
|
|
11
12
|
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
12
13
|
import { t as _sfc_main$7 } from "./Field-BXkGR8H0.js";
|
|
13
14
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
15
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
14
16
|
import { t as dateInputMessages } from "./date-input-rUD8YAow.js";
|
|
15
17
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
16
|
-
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-
|
|
18
|
+
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-CiIWOWXM.js";
|
|
17
19
|
import { n as dateTimeInputMessages } from "./time-input-CKOsh84E.js";
|
|
18
|
-
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-
|
|
20
|
+
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-BM-rVFhC.js";
|
|
19
21
|
import { r as effectivePickerPresentation, s as resolvePickerPresentation } from "./inputPresentation-BOyHkCDr.js";
|
|
20
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
|
|
22
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
21
23
|
import "../styles/date-time-input.css";
|
|
22
24
|
//#region src/DateTimeInput/TouchDateTimeField.vue
|
|
23
25
|
const _hoisted_1$1 = {
|
|
@@ -33,7 +35,7 @@ const _hoisted_4 = [
|
|
|
33
35
|
"aria-describedby"
|
|
34
36
|
];
|
|
35
37
|
const _hoisted_5 = ["data-placeholder"];
|
|
36
|
-
const _hoisted_6 =
|
|
38
|
+
const _hoisted_6 = ["id"];
|
|
37
39
|
const _hoisted_7 = ["aria-label"];
|
|
38
40
|
const _hoisted_8 = ["aria-selected"];
|
|
39
41
|
const _hoisted_9 = ["aria-selected"];
|
|
@@ -52,7 +54,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
52
54
|
placeholder: {},
|
|
53
55
|
timePlaceholder: {},
|
|
54
56
|
timeLabel: {},
|
|
55
|
-
hourFormat: {
|
|
57
|
+
hourFormat: {},
|
|
56
58
|
hasSeconds: {
|
|
57
59
|
type: Boolean,
|
|
58
60
|
default: false
|
|
@@ -85,7 +87,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
85
87
|
return new Date(year, month - 1, day);
|
|
86
88
|
}
|
|
87
89
|
const dateText = computed(() => props.date ? formatInstant(props.date, "date_long", locale.value) : "");
|
|
88
|
-
const
|
|
90
|
+
const hourFormat = computed(() => resolveHourFormat(locale.value, props.hourFormat));
|
|
91
|
+
const timeText = computed(() => props.time ? formatDisplayTime(props.time, hourFormat.value, props.hasSeconds, locale.value) : "");
|
|
89
92
|
function clockBound(value) {
|
|
90
93
|
const parsed = parseISOTime(value?.slice(11) ?? "");
|
|
91
94
|
return parsed ? formatISOTime(parsed, true) : void 0;
|
|
@@ -147,7 +150,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
147
150
|
height: "hug",
|
|
148
151
|
padding: 0
|
|
149
152
|
}, {
|
|
150
|
-
default: withCtx(() => [createElementVNode("div",
|
|
153
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
154
|
+
id: `${__props.inputId}-sheet`,
|
|
155
|
+
class: "astryx-date-time-touch"
|
|
156
|
+
}, [createElementVNode("div", {
|
|
151
157
|
class: "astryx-date-time-touch-tabs",
|
|
152
158
|
role: "tablist",
|
|
153
159
|
"aria-label": unref(messages).dateTimeInput.pickerMode
|
|
@@ -183,7 +189,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
183
189
|
"save-disabled"
|
|
184
190
|
])) : (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(_sfc_main$10, {
|
|
185
191
|
"model-value": __props.time,
|
|
186
|
-
"hour-format":
|
|
192
|
+
"hour-format": hourFormat.value,
|
|
187
193
|
"has-seconds": __props.hasSeconds,
|
|
188
194
|
min: clockBound(__props.min),
|
|
189
195
|
max: clockBound(__props.max),
|
|
@@ -198,7 +204,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
198
204
|
type: "button",
|
|
199
205
|
class: "astryx-date-touch-save",
|
|
200
206
|
onClick: close
|
|
201
|
-
}, toDisplayString(unref(messages).dateInput.savePicking), 1)]))])]),
|
|
207
|
+
}, toDisplayString(unref(messages).dateInput.savePicking), 1)]))], 8, _hoisted_6)]),
|
|
202
208
|
_: 1
|
|
203
209
|
}, 8, ["is-open", "label"])], 64);
|
|
204
210
|
};
|
|
@@ -225,7 +231,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
225
231
|
id: {},
|
|
226
232
|
description: {},
|
|
227
233
|
placeholder: {},
|
|
228
|
-
hourFormat: {
|
|
234
|
+
hourFormat: {},
|
|
229
235
|
presentation: {},
|
|
230
236
|
nativePicker: {},
|
|
231
237
|
hasClear: {
|
|
@@ -332,8 +338,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
332
338
|
const draftTime = ref(void 0);
|
|
333
339
|
const action = usePendingChange(() => props.changeAction);
|
|
334
340
|
const busy = computed(() => props.isLoading || action.busy.value);
|
|
341
|
+
const containerRef = useTemplateRef("container");
|
|
335
342
|
const locked = computed(() => props.isDisabled || busy.value);
|
|
336
343
|
const sheetLocked = computed(() => locked.value || props.isReadOnly === true);
|
|
344
|
+
useBusyAnnouncement(busy, () => messages.value.dateInput.loading, () => {
|
|
345
|
+
const sheet = document.getElementById(`${generatedId}-sheet`);
|
|
346
|
+
return sheet?.closest("dialog[open]") ? sheet : containerRef.value;
|
|
347
|
+
});
|
|
348
|
+
/** 日期那段当前的拒绝;时间那段的拒绝让位给它,日期那段的话在它自己的字段下面。 */
|
|
349
|
+
const dateEntryError = shallowRef(null);
|
|
350
|
+
const timeMessage = shallowRef(null);
|
|
351
|
+
const fieldStatus = computed(() => {
|
|
352
|
+
const own = props.status;
|
|
353
|
+
if (timeMessage.value == null || dateEntryError.value != null || own?.type === "error" && own.message) return own;
|
|
354
|
+
return {
|
|
355
|
+
type: "error",
|
|
356
|
+
message: timeMessage.value
|
|
357
|
+
};
|
|
358
|
+
});
|
|
359
|
+
function onDateEntryError(error) {
|
|
360
|
+
dateEntryError.value = error;
|
|
361
|
+
emit("entryErrorChange", error);
|
|
362
|
+
}
|
|
337
363
|
const datePresentation = computed(() => {
|
|
338
364
|
const value = props.presentation;
|
|
339
365
|
if (value == null || value === "text-input") return void 0;
|
|
@@ -429,10 +455,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
429
455
|
"is-optional": __props.isOptional,
|
|
430
456
|
"is-required": __props.isRequired,
|
|
431
457
|
"label-tooltip": __props.labelTooltip,
|
|
432
|
-
status:
|
|
458
|
+
status: fieldStatus.value,
|
|
433
459
|
"status-variant": __props.statusVariant
|
|
434
460
|
}, {
|
|
435
461
|
default: withCtx((field) => [createElementVNode("div", {
|
|
462
|
+
ref: "container",
|
|
436
463
|
class: normalizeClass(["astryx-date-time-input", unref(parts).controlClass()]),
|
|
437
464
|
style: normalizeStyle(unref(parts).controlStyle()),
|
|
438
465
|
"data-size": unref(size),
|
|
@@ -491,7 +518,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
491
518
|
"disabled-message": __props.disabledMessage,
|
|
492
519
|
"entry-error-behavior": __props.entryErrorBehavior,
|
|
493
520
|
"onUpdate:modelValue": onDate,
|
|
494
|
-
onEntryErrorChange:
|
|
521
|
+
onEntryErrorChange: onDateEntryError
|
|
495
522
|
}, null, 8, [
|
|
496
523
|
"model-value",
|
|
497
524
|
"label",
|
|
@@ -524,7 +551,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
524
551
|
"is-read-only": __props.isReadOnly,
|
|
525
552
|
"disabled-message": __props.disabledMessage,
|
|
526
553
|
status: __props.status,
|
|
527
|
-
"
|
|
554
|
+
"entry-error-behavior": __props.entryErrorBehavior,
|
|
555
|
+
"onUpdate:modelValue": onTime,
|
|
556
|
+
onMessageChange: _cache[0] || (_cache[0] = ($event) => timeMessage.value = $event)
|
|
528
557
|
}, null, 8, [
|
|
529
558
|
"model-value",
|
|
530
559
|
"label",
|
|
@@ -542,12 +571,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
542
571
|
"is-disabled",
|
|
543
572
|
"is-read-only",
|
|
544
573
|
"disabled-message",
|
|
545
|
-
"status"
|
|
574
|
+
"status",
|
|
575
|
+
"entry-error-behavior"
|
|
546
576
|
])])), busy.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
547
577
|
key: 2,
|
|
548
578
|
size: "sm",
|
|
549
|
-
"aria-
|
|
550
|
-
}
|
|
579
|
+
"aria-hidden": "true"
|
|
580
|
+
})) : __props.hasClear && (dateValue.value || timeValue.value) && !locked.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
551
581
|
key: 3,
|
|
552
582
|
class: "astryx-input-clear-button",
|
|
553
583
|
variant: "ghost",
|