@astryx-vue/core 0.48.1 → 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/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B1phVXj9.js → AlertDialog-CZv_5cjZ.js} +4 -4
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BCOpv2wi.js → AppShell-BdpXOpJ0.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-Dui84EMQ.js → AvatarGroup-DPdGsmCQ.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-BtD6bun6.js → Banner-rKRkWR6U.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D-nz570f.js → Breadcrumbs-CmTe311W.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-_Wy_YD0w.js → Button-ByMwpaTC.js} +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CQKamSTm.js → ButtonGroup-DlzYnaXk.js} +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/Carousel/index.js +1 -1
- package/dist/{Carousel-CInT4bwV.js → Carousel-PAvDguJz.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-TU_tpExs.js → Chat-CYljOQ16.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BXp8vIjt.js → CheckboxInput-B7LhVr3T.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CevOAULo.js → CheckboxListItem-CC-9D_l_.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-VoDgBMvb.js → ClickableCard-BbvpZLNq.js} +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-BFoxW_eI.js → Code-Aw-ZvPzl.js} +1 -1
- package/dist/{CodeBlock-CpcoW68P.js → CodeBlock-BZUBgEQK.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-glc_Y77Q.js → Collapsible-BOHljBHe.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CEpOlFoY.js → CommandPalette-B5TShtZd.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BX32ZAmU.js → ComplexSelector-BewrtpKV.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-gLnBJXh2.js → ContextMenu-CQlYu1dv.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-UvbTAr_0.js → DateInput-D78SOx0f.js} +36 -13
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-zGzYdcfZ.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-BWqBtee7.js → DateTimeInput-DPoTqJ36.js} +4 -4
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BYiOO5UP.js → Dialog-CPW0FBYo.js} +1 -1
- package/dist/{Dialog--SFgs-bT.js → Dialog-PyGSnp1J.js} +1 -1
- package/dist/{DialogHeader-CsuqB8Tf.js → DialogHeader-CT4gkqfm.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BQfvjMZQ.js → Drawer-BkU8kiAU.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-BwtO2fd3.js → DropdownMenu-WuoVaE3D.js} +5 -5
- package/dist/Field/index.js +1 -1
- package/dist/{FieldInfoTip-CxhS1Oei.js → FieldInfoTip-Dss2g3m-.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DUuDBMrT.js → FileInput-B00g3NMy.js} +2 -2
- package/dist/{GestureHost-C0FstEs3.js → GestureHost-CnGqeHAJ.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CXAXoL8g.js → IconButton-BilMzjDj.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/{InputClearButton-CRwLkUd4.js → InputClearButton-DEmIF1Dt.js} +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-D4mWkTkn.js → Item-D6y1lkrO.js} +7 -5
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-0BL2xYy4.js → Lightbox-Di1n_Ghn.js} +7 -7
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DEVHdJ7S.js → Link-OTGW6ZdS.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +4 -4
- package/dist/{List-INZ3S-pZ.js → List-DkH8AKN1.js} +2 -2
- package/dist/{ListItem-Ds5nLB5D.js → ListItem-5d5B-FOb.js} +2 -2
- package/dist/{LongPressGestureRecognizer-C_DTqk3V.js → LongPressGestureRecognizer-BA7RijIc.js} +2 -2
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CnyEpkWI.js → Markdown-DvBtpprk.js} +2 -2
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-n3YXiP4a.js → MetadataList-BTMI6Ffm.js} +5 -1
- package/dist/MobileNav/index.js +2 -2
- package/dist/{MobileNav-VyNrmHHo.js → MobileNav-BFH7bZOn.js} +1 -1
- package/dist/{MobileNavDrawer-DswHZ82s.js → MobileNavDrawer-BtktK3CL.js} +1 -1
- package/dist/{MobileNavToggle-BLsbreUS.js → MobileNavToggle-BpAWd0-p.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-D7l8D7sU.js → MoreMenu-bUsXdSxn.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BQLPD0NQ.js → MultiSelector-gLmtlWmJ.js} +3 -3
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-GFrkWRSJ.js → NavItem-BvO78bR8.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-B14_ovBG.js → NavMenu-DAukml6r.js} +1 -1
- package/dist/{NavMenuItem-DMXY_6AO.js → NavMenuItem-DVII3tzg.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DNJqobg9.js → NumberInput-BBEONs4g.js} +2 -2
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-C4j3zWvV.js → Outline-ClmviJhz.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-wrh7FgSu.js → OverflowList-rE--IEGl.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CPzv-x-D.js → Pagination-Cu9RHoEu.js} +1 -1
- package/dist/{PanGestureRecognizer-WZ_rV6KY.js → PanGestureRecognizer-DZpS28MS.js} +1 -1
- package/dist/{PickerWheel-BN_Ad6FQ.js → PickerWheel-BWGMqoC0.js} +4 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DGVQ7Xiz.js → Popover-CgyIJd4u.js} +2 -2
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-26idtyvm.js → PowerSearch-DB17gW3o.js} +18 -18
- package/dist/{PressTracker-CiaaoD3I.js → PressTracker-C7qJfE-H.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BTKuboQj.js → RadioGroup-WoFdfefT.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-BBen7qdK.js → RadioListItem-CULhpyUB.js} +1 -1
- package/dist/RangeCalendar-pTEnYJqX.js +160 -0
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-0jm3K1vo.js → SegmentedControl-BDD1z8ow.js} +4 -4
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-CiGBc6LT.js → SelectableCard-CDu58-PT.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BEhgJPPI.js → SideNav-BQbQ4vk6.js} +2 -2
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DSJotaeW.js → Slider-IqPowFpR.js} +5 -5
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-iDROGNwb.js → Stepper-B65oFMhT.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DGS8pEOP.js → Switch-C3Z-eqrJ.js} +3 -3
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BMlgDsmO.js → TabList-CQSr1JqR.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-vkuJ-b7o.js → Table-B6EYjM3T.js} +19 -16
- package/dist/{TapGestureRecognizer-LcbkQFq0.js → TapGestureRecognizer-DWgoCDMm.js} +2 -2
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DgwVNQv-.js → TextArea-vg40GTUn.js} +3 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CYB4kvaK.js → TextInput-BT5SNPml.js} +3 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-D_1X7wBJ.js → Thumbnail-DjTQfpBD.js} +2 -2
- package/dist/{TimeField-DNZroMry.js → TimeField-Ni4p7bg4.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CLzoPxvj.js → TimeInput-x5uEONH9.js} +3 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -2
- package/dist/{Timestamp-BdqvbKZ5.js → Timestamp-CGhrqcmb.js} +29 -15
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DQrgFtDs.js → Toast-DDOAUhO2.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DdBYgIyN.js → ToggleButton-BQrwvaI1.js} +2 -2
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Dmz6vEMX.js → Token-CYpUplLh.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Drgs51C8.js → Tokenizer-CU2M1KhH.js} +5 -5
- 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/TopNav/index.js +1 -1
- package/dist/{TopNav-Dm2TXvNQ.js → TopNav-orrt1pgV.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Bj2qwKXr.js → TreeList-BNEnEOlP.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-CbZ3CWDI.js → Typeahead-_ijsXkA2.js} +2 -2
- package/dist/{accessibleName-Cr8Gc_jb.js → accessibleName-COG4Ik6i.js} +1 -1
- package/dist/{boxHold-JsQX9R5i.js → boxHold-DthWQaiw.js} +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +7 -7
- package/dist/{composables-C-syBXby.js → composables-G10dqPNt.js} +6 -6
- 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/{holdEntranceInput-Cs656CnM.js → holdEntranceInput-DK89Ky_U.js} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
- package/dist/{index-DPcZ_oAp.d.ts → index-CJB63c7Y.d.ts} +1 -1
- package/dist/{index-DsD5qKEe.d.ts → index-CjCJRK-z.d.ts} +2 -1
- package/dist/{index-BH9_uPqT.d.ts → index-DEeR90QP.d.ts} +4 -4
- package/dist/{index-C7uGs5Cl.d.ts → index-Dmr81uHZ.d.ts} +1 -1
- package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
- package/dist/{index-Cyzp19HQ.d.ts → index-DwG42flu.d.ts} +1 -1
- package/dist/{index-CA9D-3UG.d.ts → index-DyvHDvtx.d.ts} +2 -2
- package/dist/{index-BugRfA0z.d.ts → index-Er_LwyZ7.d.ts} +2 -2
- package/dist/{index-CFZSTi4J.d.ts → index-SdevVVTE.d.ts} +2 -2
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-DPtUixr8.d.ts → index-bXbjUqwx.d.ts} +3 -3
- package/dist/{index-aBeGbS1N.d.ts → index-fUpVnYYy.d.ts} +1 -1
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-Bsl8HqR9.d.ts → index-tNq2IJO8.d.ts} +1 -1
- package/dist/{index-a6o69uPN.d.ts → index-tdOyqA_U.d.ts} +2 -2
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/{index-BkjD7Pn0.d.ts → index-zHX0wDmq.d.ts} +47 -47
- package/dist/index.d.ts +23 -23
- package/dist/index.js +88 -88
- package/dist/{inputAge-C-SoLwpD.js → inputAge-Bc4vvqmK.js} +1 -1
- package/dist/{inputHold-C1LkNE02.js → inputHold-DJrwmWbJ.js} +156 -10
- package/dist/internal/touch.js +6 -6
- package/dist/{itemSlots-DQS1Q4hS.js → itemSlots-DtrAXXlG.js} +2 -2
- 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/{snapPagingCatcher-ivaaFuon.js → snapPagingCatcher-CJopa2KW.js} +1 -1
- package/dist/{useActionGroupTracking-CXIqZDh3.js → useActionGroupTracking-fTU4uvzA.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/{useFingerScroll-CAC6Pd3m.js → useFingerScroll-BOegur8G.js} +1 -1
- package/dist/{useGestureRecognizer-C7CXCbBp.js → useGestureRecognizer-BPFoGD43.js} +1 -1
- package/dist/{useInputStatusIcon-DBPW7-tw.js → useInputStatusIcon-DFx25PSi.js} +1 -1
- package/dist/{useMenuEntranceHold-Dkl03O-0.js → useMenuEntranceHold-Dewv7oTN.js} +1 -1
- package/dist/{useMenuPress-DKGeEWJw.js → useMenuPress-Cxn2iz5-.js} +1 -1
- package/dist/{useMonthGrid-Bzvlstgc.js → useMonthGrid-xkn79x_J.js} +1 -1
- package/dist/{usePressFeedback-X_9-5DMi.js → usePressFeedback-DjRpNo2t.js} +1 -1
- package/dist/utils/index.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/overlay.css +36 -11
- package/styles/tree-list.css +11 -0
|
@@ -16,6 +16,7 @@ import { t as _sfc_main$9 } from "./FieldIcon-COfz-h_b.js";
|
|
|
16
16
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
17
17
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
18
18
|
import { n as toAsciiDigits, t as INVISIBLE_CHARS } from "./unicodeDigits-_BYIJcAu.js";
|
|
19
|
+
import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
|
|
19
20
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
20
21
|
import { t as _sfc_main$10 } from "./Spinner-dCnyObWk.js";
|
|
21
22
|
import { n as dateTimeFormatFor } from "./dateTimeFormatCache-CSsvHOhO.js";
|
|
@@ -24,20 +25,36 @@ import { _ as isCalendarSystemAvailable, a as calendarAddMonths, b as isInCalend
|
|
|
24
25
|
import { a as standaloneShortWeekdayNames, n as formatDayNumber, o as weekdayNames } from "./format--_j64_yo.js";
|
|
25
26
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
26
27
|
import { a as formatCalendarMonthName, i as formatCalendarMonthLabel, o as formatCalendarYearLabel, t as calendarDisplayName } from "./calendarFormat-CbxpwgAe.js";
|
|
27
|
-
import { b as toCalendarDay, d as toCalendarDate, i as calendarISO, o as formatWeekdayDate, p as weekStartIndex, t as buildMonthWeeks, u as sameCalendarDay } from "./useCalendarGrid-
|
|
28
|
-
import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$11 } from "./Calendar-
|
|
28
|
+
import { b as toCalendarDay, d as toCalendarDate, i as calendarISO, o as formatWeekdayDate, p as weekStartIndex, t as buildMonthWeeks, u as sameCalendarDay } from "./useCalendarGrid-BGFIdfo7.js";
|
|
29
|
+
import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$11 } from "./Calendar-Cr3q-XUb.js";
|
|
29
30
|
import { a as useAriaRequired, o as useEntryErrorBehavior } from "./context-CrVCeUUK.js";
|
|
30
31
|
import { t as _sfc_main$12 } from "./Field-2ypSh8vl.js";
|
|
31
32
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
32
|
-
import { t as _sfc_main$13 } from "./Popover-
|
|
33
|
+
import { t as _sfc_main$13 } from "./Popover-CgyIJd4u.js";
|
|
33
34
|
import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
|
|
34
|
-
import { t as
|
|
35
|
+
import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
|
|
36
|
+
import { n as formatInstant } from "./formatInstant-DmQhW6EL.js";
|
|
35
37
|
import { n as calendarPickerPresentation, u as parseDateInput } from "./inputPresentation-Br70N2eS.js";
|
|
36
|
-
import { t as _sfc_main$14 } from "./PickerWheel-
|
|
38
|
+
import { t as _sfc_main$14 } from "./PickerWheel-BWGMqoC0.js";
|
|
37
39
|
import { t as useEntryErrorReport } from "./useEntryErrorReport-Wee3N8IA.js";
|
|
38
40
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
39
41
|
import "../styles/calendar.css";
|
|
40
42
|
import "../styles/date-input.css";
|
|
43
|
+
//#region src/DateInput/dateFieldAttrs.ts
|
|
44
|
+
/**
|
|
45
|
+
* 交给日期输入框的调用方属性。禁用的字段仍能聚焦,但除了聚焦和失焦不运行调用方的处理函数
|
|
46
|
+
* (spec:AST-085 FR2);忙碌时也不接点击。语言写出来的日期按这门语言的方向排,
|
|
47
|
+
* 调用方给的 `dir` 优先,对齐仍跟页面(date-input.css)。
|
|
48
|
+
*/
|
|
49
|
+
function dateFieldAttrs(forwarded, state) {
|
|
50
|
+
const attrs = withholdCallerHandlers(forwarded, state.isDisabled);
|
|
51
|
+
if (state.isLocked) delete attrs.onClick;
|
|
52
|
+
return {
|
|
53
|
+
...attrs,
|
|
54
|
+
dir: attrs.dir ?? getLocaleDirection(state.locale)
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
41
58
|
//#region src/DateInput/DateInputPassThrough.ts
|
|
42
59
|
/** 没有标签、说明和状态时代替 Field 的外壳:只渲染默认插槽,不加任何元素。 */
|
|
43
60
|
var DateInputPassThrough_default = defineComponent({
|
|
@@ -1178,8 +1195,9 @@ const _hoisted_5$3 = [
|
|
|
1178
1195
|
"aria-busy"
|
|
1179
1196
|
];
|
|
1180
1197
|
const _hoisted_6$2 = ["data-placeholder"];
|
|
1181
|
-
const _hoisted_7$2 = ["
|
|
1182
|
-
const _hoisted_8$2 =
|
|
1198
|
+
const _hoisted_7$2 = ["dir"];
|
|
1199
|
+
const _hoisted_8$2 = ["aria-label"];
|
|
1200
|
+
const _hoisted_9$1 = {
|
|
1183
1201
|
class: "astryx-date-input-alert",
|
|
1184
1202
|
role: "alert"
|
|
1185
1203
|
};
|
|
@@ -1491,7 +1509,10 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
1491
1509
|
class: "astryx-date-input-overlay",
|
|
1492
1510
|
"data-placeholder": __props.modelValue ? void 0 : "true",
|
|
1493
1511
|
"aria-hidden": "true"
|
|
1494
|
-
},
|
|
1512
|
+
}, [createCommentVNode(" 叠在原生框上的文字按语言的方向排,位置仍跟页面。 "), createElementVNode("span", {
|
|
1513
|
+
class: "astryx-date-input-overlay-text",
|
|
1514
|
+
dir: unref(getLocaleDirection)(unref(locale))
|
|
1515
|
+
}, toDisplayString(overlay.value), 9, _hoisted_7$2)], 8, _hoisted_6$2)]),
|
|
1495
1516
|
showsClear.value ? (openBlock(), createElementBlock("button", {
|
|
1496
1517
|
key: 0,
|
|
1497
1518
|
type: "button",
|
|
@@ -1502,7 +1523,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
1502
1523
|
}, [createVNode(_sfc_main$6, {
|
|
1503
1524
|
icon: "close",
|
|
1504
1525
|
size: "sm"
|
|
1505
|
-
})], 8,
|
|
1526
|
+
})], 8, _hoisted_8$2)) : createCommentVNode("v-if", true),
|
|
1506
1527
|
busy.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
1507
1528
|
key: 1,
|
|
1508
1529
|
size: "sm",
|
|
@@ -1511,7 +1532,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
1511
1532
|
key: 2,
|
|
1512
1533
|
type: statusType.value
|
|
1513
1534
|
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
1514
|
-
], 8, _hoisted_2$4), createElementVNode("div",
|
|
1535
|
+
], 8, _hoisted_2$4), createElementVNode("div", _hoisted_9$1, toDisplayString(alertMessage.value), 1)], 46, _hoisted_1$4)]),
|
|
1515
1536
|
_: 1
|
|
1516
1537
|
}, 8, [
|
|
1517
1538
|
"class",
|
|
@@ -3029,9 +3050,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
3029
3050
|
].filter(Boolean).join(" ") || void 0;
|
|
3030
3051
|
}
|
|
3031
3052
|
function inputAttrs() {
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3053
|
+
return dateFieldAttrs(parts.forwardedAttrs(), {
|
|
3054
|
+
isDisabled: isDisabled.value,
|
|
3055
|
+
isLocked: locked.value,
|
|
3056
|
+
locale: locale.value
|
|
3057
|
+
});
|
|
3035
3058
|
}
|
|
3036
3059
|
function onInput(event) {
|
|
3037
3060
|
if (useSheet.value || locked.value || event instanceof InputEvent && event.isComposing) return;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as _default, eo as DateRange, no as DateRangeInputProps, ro as DateRangePreset, to as DateRangeInputEmits } from "../index-
|
|
1
|
+
import { $a as _default, eo as DateRange, no as DateRangeInputProps, ro as DateRangePreset, to as DateRangeInputEmits } from "../index-zHX0wDmq.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-PnBK_G5d.js";
|
|
2
2
|
export { _sfc_main as DateRangeInput };
|
|
@@ -1,181 +1,63 @@
|
|
|
1
|
-
import { t as _sfc_main$
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-B7x-V572.js";
|
|
2
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
3
|
-
import { t as _sfc_main$
|
|
4
|
-
import { t as _sfc_main$
|
|
3
|
+
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
|
|
5
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
6
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
7
|
+
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
7
8
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
8
|
-
import { a as isRangeWithinSpan,
|
|
9
|
-
import { t as _sfc_main$
|
|
10
|
-
import { t as _sfc_main$
|
|
11
|
-
import { a as todayISODate } from "./useMonthGrid-Bzvlstgc.js";
|
|
9
|
+
import { a as isRangeWithinSpan, r as formatDateRange, t as applyRangeClick } from "./useDateRange-vYk0K9ML.js";
|
|
10
|
+
import { t as _sfc_main$4 } from "./FieldIcon-COfz-h_b.js";
|
|
11
|
+
import { t as _sfc_main$5 } from "./IconButton-BilMzjDj.js";
|
|
12
12
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
13
13
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
14
14
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
15
15
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
16
|
-
import { t as _sfc_main$
|
|
16
|
+
import { t as _sfc_main$6 } from "./Spinner-dCnyObWk.js";
|
|
17
17
|
import { F as plainDateToday, h as plainDateCreate, i as DATE_FORMAT_SHORT, o as DATE_FORMAT_SHORT_WITH_YEAR, y as plainDateFromDate } from "./plainDate-By2VjeSI.js";
|
|
18
18
|
import { a as calendarAddMonths, f as calendarMonthOf, g as calendarYearMonthOf, r as useCalendarSystem, y as isGregorianCalendar } from "./calendar-B1G5O29s.js";
|
|
19
|
-
import {
|
|
20
|
-
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
21
|
-
import { i as formatCalendarMonthLabel, n as formatCalendarDate } from "./calendarFormat-CbxpwgAe.js";
|
|
22
|
-
import { t as buildMonthWeeks } from "./useCalendarGrid-Bz7NJmA3.js";
|
|
19
|
+
import { n as formatCalendarDate } from "./calendarFormat-CbxpwgAe.js";
|
|
23
20
|
import { a as useAriaRequired } from "./context-CrVCeUUK.js";
|
|
24
|
-
import { t as _sfc_main$
|
|
21
|
+
import { t as _sfc_main$7 } from "./Field-2ypSh8vl.js";
|
|
25
22
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
26
|
-
import { t as _sfc_main$
|
|
23
|
+
import { t as _sfc_main$8 } from "./Popover-CgyIJd4u.js";
|
|
27
24
|
import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
|
|
28
|
-
import { t as dateRangeInputMessages } from "./date-range-input-
|
|
29
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, renderList, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
30
|
-
import "../styles/calendar.css";
|
|
31
|
-
import "../styles/date-range-input.css";
|
|
25
|
+
import { t as dateRangeInputMessages } from "./date-range-input-BjM7wgeD.js";
|
|
26
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, renderList, resolveDynamicComponent, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
32
27
|
import "../styles/bordered-control.css";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
calendar: {},
|
|
56
|
-
monthCount: { default: 2 },
|
|
57
|
-
range: { default: null },
|
|
58
|
-
pending: { default: null },
|
|
59
|
-
min: {},
|
|
60
|
-
max: {},
|
|
61
|
-
minRangeSpan: { default: 1 },
|
|
62
|
-
maxRangeSpan: {},
|
|
63
|
-
weekStartsOn: {},
|
|
64
|
-
dateConstraints: {}
|
|
65
|
-
}, {
|
|
66
|
-
"hover": { default: null },
|
|
67
|
-
"hoverModifiers": {}
|
|
68
|
-
}),
|
|
69
|
-
emits: /*@__PURE__*/ mergeModels(["select", "shift"], ["update:hover"]),
|
|
70
|
-
setup(__props, { emit: __emit }) {
|
|
71
|
-
const props = __props;
|
|
72
|
-
const emit = __emit;
|
|
73
|
-
const locale = useAstryxLocale();
|
|
74
|
-
const messages = useComponentMessages({ calendar: calendarMessages });
|
|
75
|
-
const hover = useModel(__props, "hover");
|
|
76
|
-
const today = todayISODate();
|
|
77
|
-
const weekStart = computed(() => resolveWeekStart(props.weekStartsOn ?? (locale.value === "zh-CN" ? 1 : 0)));
|
|
78
|
-
const weekDays = computed(() => {
|
|
79
|
-
const names = standaloneShortWeekdayNames(locale.value);
|
|
80
|
-
const labels = weekdayNames(locale.value, "long");
|
|
81
|
-
const start = weekStart.value;
|
|
82
|
-
return Array.from({ length: 7 }, (_, index) => ({
|
|
83
|
-
name: names[(index + start) % 7],
|
|
84
|
-
label: labels[(index + start) % 7]
|
|
85
|
-
}));
|
|
86
|
-
});
|
|
87
|
-
const months = computed(() => {
|
|
88
|
-
const first = calendarMonthOf(props.calendar, props.cursor);
|
|
89
|
-
return Array.from({ length: props.monthCount }, (_, index) => {
|
|
90
|
-
const month = calendarAddMonths(props.calendar, first, index);
|
|
91
|
-
return {
|
|
92
|
-
key: `${month.start.year}-${month.start.month}-${month.start.day}`,
|
|
93
|
-
label: formatCalendarMonthLabel(props.calendar, month, locale.value),
|
|
94
|
-
weeks: buildMonthWeeks(props.calendar, month, weekStart.value)
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
const headerLabel = computed(() => months.value.map((month) => month.label).join(" – "));
|
|
99
|
-
const preview = computed(() => {
|
|
100
|
-
if (props.pending && hover.value && hover.value !== props.pending) return orderRange(props.pending, hover.value);
|
|
101
|
-
return props.range;
|
|
102
|
-
});
|
|
103
|
-
function inSpan(day, range) {
|
|
104
|
-
return range != null && day >= range.start && day <= range.end;
|
|
105
|
-
}
|
|
106
|
-
function dayDate(day) {
|
|
107
|
-
const [year, month, date] = day.split("-").map(Number);
|
|
108
|
-
return new Date(year, month - 1, date);
|
|
109
|
-
}
|
|
110
|
-
function isDisabled(day) {
|
|
111
|
-
if (props.min && day < props.min) return true;
|
|
112
|
-
if (props.max && day > props.max) return true;
|
|
113
|
-
if (props.dateConstraints?.some((constraint) => !constraint(dayDate(day)))) return true;
|
|
114
|
-
return isDayOutsideSpan(props.pending, day, props.minRangeSpan, props.maxRangeSpan);
|
|
28
|
+
import "../styles/date-range-input.css";
|
|
29
|
+
//#region src/DateRangeInput/rangeCalendarLoader.ts
|
|
30
|
+
/**
|
|
31
|
+
* 日期范围弹层里的月历按需加载:字段第一次有了打开的意图(鼠标或笔移进来、聚焦、按下)才请求,
|
|
32
|
+
* 只放着字段的页面不加载月历。加载好以后 `rangeCalendar` 就是月历组件。
|
|
33
|
+
*/
|
|
34
|
+
const rangeCalendar = shallowRef(null);
|
|
35
|
+
let loading = null;
|
|
36
|
+
let hasWarned = false;
|
|
37
|
+
/**
|
|
38
|
+
* 加载月历,返回是否加载成功。失败时开发期警告一次,并且不记住这次失败,
|
|
39
|
+
* 下一次意图或打开会重新请求。
|
|
40
|
+
*/
|
|
41
|
+
function loadRangeCalendar() {
|
|
42
|
+
if (rangeCalendar.value != null) return Promise.resolve(true);
|
|
43
|
+
loading ??= import("./RangeCalendar-pTEnYJqX.js").then((module) => {
|
|
44
|
+
rangeCalendar.value = module.default;
|
|
45
|
+
return true;
|
|
46
|
+
}, () => {
|
|
47
|
+
if (!hasWarned) {
|
|
48
|
+
hasWarned = true;
|
|
49
|
+
devWarn("DateRangeInput", "The calendar could not load. Reload the page if it doesn't come back.");
|
|
115
50
|
}
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
})], 8, _hoisted_3$1),
|
|
127
|
-
createElementVNode("span", _hoisted_4$1, toDisplayString(headerLabel.value), 1),
|
|
128
|
-
createElementVNode("button", {
|
|
129
|
-
type: "button",
|
|
130
|
-
class: "astryx-calendar-nav-button",
|
|
131
|
-
"aria-label": unref(messages).calendar.nextMonth,
|
|
132
|
-
onClick: _cache[1] || (_cache[1] = ($event) => emit("shift", 1))
|
|
133
|
-
}, [createVNode(_sfc_main$2, {
|
|
134
|
-
icon: "chevronRight",
|
|
135
|
-
size: "sm"
|
|
136
|
-
})], 8, _hoisted_5$1)
|
|
137
|
-
]), createElementVNode("div", _hoisted_6$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
|
|
138
|
-
return openBlock(), createElementBlock("div", {
|
|
139
|
-
key: month.key,
|
|
140
|
-
class: "astryx-date-range-month"
|
|
141
|
-
}, [createElementVNode("div", _hoisted_7, [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
|
|
142
|
-
return openBlock(), createElementBlock("div", {
|
|
143
|
-
key: day.label,
|
|
144
|
-
class: "astryx-calendar-weekday",
|
|
145
|
-
"aria-label": day.label
|
|
146
|
-
}, toDisplayString(day.name), 9, _hoisted_8);
|
|
147
|
-
}), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(month.weeks, (week, weekIndex) => {
|
|
148
|
-
return openBlock(), createElementBlock("div", {
|
|
149
|
-
key: weekIndex,
|
|
150
|
-
class: "astryx-calendar-row"
|
|
151
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (cell) => {
|
|
152
|
-
return openBlock(), createElementBlock("button", {
|
|
153
|
-
key: cell.iso,
|
|
154
|
-
type: "button",
|
|
155
|
-
class: normalizeClass(["astryx-calendar-cell", {
|
|
156
|
-
"is-other-month": cell.outside,
|
|
157
|
-
"is-today": cell.iso === unref(today),
|
|
158
|
-
"is-selected": cell.iso === preview.value?.start || cell.iso === preview.value?.end || cell.iso === __props.pending,
|
|
159
|
-
"is-in-range": inSpan(cell.iso, preview.value),
|
|
160
|
-
"is-range-start": cell.iso === preview.value?.start,
|
|
161
|
-
"is-range-end": cell.iso === preview.value?.end,
|
|
162
|
-
"is-disabled": isDisabled(cell.iso)
|
|
163
|
-
}]),
|
|
164
|
-
"aria-disabled": isDisabled(cell.iso) || void 0,
|
|
165
|
-
"aria-pressed": cell.iso === preview.value?.start || cell.iso === preview.value?.end || void 0,
|
|
166
|
-
"aria-current": cell.iso === unref(today) ? "date" : void 0,
|
|
167
|
-
onClick: ($event) => isDisabled(cell.iso) ? void 0 : emit("select", cell.iso),
|
|
168
|
-
onMouseenter: ($event) => hover.value = isDisabled(cell.iso) ? null : cell.iso,
|
|
169
|
-
onMouseleave: _cache[2] || (_cache[2] = ($event) => hover.value = null),
|
|
170
|
-
onFocus: ($event) => hover.value = isDisabled(cell.iso) ? null : cell.iso,
|
|
171
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => hover.value = null)
|
|
172
|
-
}, [createElementVNode("span", _hoisted_10, toDisplayString(unref(formatDayNumber)(cell.day, unref(locale))), 1)], 42, _hoisted_9);
|
|
173
|
-
}), 128))]);
|
|
174
|
-
}), 128))]);
|
|
175
|
-
}), 128))])]);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
51
|
+
return false;
|
|
52
|
+
}).finally(() => {
|
|
53
|
+
loading = null;
|
|
54
|
+
});
|
|
55
|
+
return loading;
|
|
56
|
+
}
|
|
57
|
+
/** 月历已经加载好。 */
|
|
58
|
+
function isRangeCalendarLoaded() {
|
|
59
|
+
return rangeCalendar.value != null;
|
|
60
|
+
}
|
|
179
61
|
//#endregion
|
|
180
62
|
//#region src/DateRangeInput/rangeDisplay.ts
|
|
181
63
|
/** 范围里的 `YYYY-MM-DD` 读成公历日期。 */
|
|
@@ -185,16 +67,16 @@ function rangeDay(iso) {
|
|
|
185
67
|
}
|
|
186
68
|
/**
|
|
187
69
|
* 按钮上的范围文字。两端和今天在同一个历法年时省掉年份;今天还不知道(服务端渲染、水合)时写出年份。
|
|
188
|
-
* 公历沿用 `formatDateRange`
|
|
70
|
+
* 公历沿用 `formatDateRange` 的写法。`join` 是内置文案里把两端写成一句的那条(rangeValue)。
|
|
189
71
|
*/
|
|
190
|
-
function formatRangeDisplay(range, locale, calendar, today) {
|
|
191
|
-
if (isGregorianCalendar(calendar)) return formatDateRange(range, locale, today?.getFullYear() ?? null);
|
|
72
|
+
function formatRangeDisplay(range, locale, calendar, today, join) {
|
|
73
|
+
if (isGregorianCalendar(calendar)) return formatDateRange(range, locale, today?.getFullYear() ?? null, join);
|
|
192
74
|
if (range == null) return "";
|
|
193
75
|
const start = rangeDay(range.start);
|
|
194
76
|
const end = rangeDay(range.end);
|
|
195
77
|
const yearOf = (pd) => calendarYearMonthOf(calendar, calendarMonthOf(calendar, pd)).year;
|
|
196
78
|
const options = today != null && yearOf(start) === yearOf(end) && yearOf(start) === yearOf(plainDateFromDate(today)) ? DATE_FORMAT_SHORT : DATE_FORMAT_SHORT_WITH_YEAR;
|
|
197
|
-
return
|
|
79
|
+
return join(formatCalendarDate(calendar, start, options, locale), formatCalendarDate(calendar, end, options, locale));
|
|
198
80
|
}
|
|
199
81
|
//#endregion
|
|
200
82
|
//#region src/DateRangeInput/DateRangeInput.vue
|
|
@@ -345,9 +227,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
345
227
|
onMounted(() => {
|
|
346
228
|
today.value ??= /* @__PURE__ */ new Date();
|
|
347
229
|
});
|
|
348
|
-
const display = computed(() => formatRangeDisplay(model.value, locale.value, calendar.value, today.value));
|
|
230
|
+
const display = computed(() => formatRangeDisplay(model.value, locale.value, calendar.value, today.value, messages.value.dateRangeInput.rangeValue));
|
|
349
231
|
const placeholder = computed(() => props.placeholder ?? messages.value.dateRangeInput.placeholder);
|
|
350
232
|
const clearLabel = computed(() => props.clearLabel ?? messages.value.dateRangeInput.clear(props.label));
|
|
233
|
+
const triggerLabel = computed(() => messages.value.dateRangeInput.triggerLabel(props.label, display.value || placeholder.value));
|
|
351
234
|
function commit(value) {
|
|
352
235
|
if (locked.value) return;
|
|
353
236
|
model.value = value;
|
|
@@ -366,6 +249,45 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
366
249
|
function onShift(amount) {
|
|
367
250
|
cursor.value = calendarAddMonths(calendar.value, calendarMonthOf(calendar.value, cursor.value), amount).start;
|
|
368
251
|
}
|
|
252
|
+
let isOpenHeld = false;
|
|
253
|
+
function onHeldOutsidePress(event) {
|
|
254
|
+
const field = containerRef.value;
|
|
255
|
+
if (field != null && event.target instanceof Node && !field.contains(event.target)) dropHeldOpen();
|
|
256
|
+
}
|
|
257
|
+
function dropHeldOpen() {
|
|
258
|
+
isOpenHeld = false;
|
|
259
|
+
document.removeEventListener("pointerdown", onHeldOutsidePress, true);
|
|
260
|
+
}
|
|
261
|
+
function holdOpenUntilLoaded() {
|
|
262
|
+
if (isOpenHeld) return;
|
|
263
|
+
isOpenHeld = true;
|
|
264
|
+
document.addEventListener("pointerdown", onHeldOutsidePress, true);
|
|
265
|
+
loadRangeCalendar().then((isLoaded) => {
|
|
266
|
+
if (!isOpenHeld) return;
|
|
267
|
+
dropHeldOpen();
|
|
268
|
+
if (isLoaded && !locked.value && containerRef.value?.isConnected === true) onOpenChange(true);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
onBeforeUnmount(dropHeldOpen);
|
|
272
|
+
function onFieldFocusOut(event) {
|
|
273
|
+
const next = event.relatedTarget;
|
|
274
|
+
if (isOpenHeld && next instanceof Node && !event.currentTarget.contains(next)) dropHeldOpen();
|
|
275
|
+
}
|
|
276
|
+
function onFieldKeydown(event) {
|
|
277
|
+
if (event.key === "Escape" && isOpenHeld) dropHeldOpen();
|
|
278
|
+
else if ((event.key === "Enter" || event.key === " ") && event.target?.classList.contains("astryx-date-range-trigger")) requestOpenBeforeLoad();
|
|
279
|
+
}
|
|
280
|
+
function preloadCalendar() {
|
|
281
|
+
loadRangeCalendar();
|
|
282
|
+
}
|
|
283
|
+
function onFieldPointerEnter(event) {
|
|
284
|
+
disabledTooltip.onPointerEnter();
|
|
285
|
+
if (event.pointerType !== "touch") preloadCalendar();
|
|
286
|
+
}
|
|
287
|
+
const isCalendarReady = computed(() => rangeCalendar.value != null);
|
|
288
|
+
function requestOpenBeforeLoad() {
|
|
289
|
+
if (!locked.value && !open.value && !isRangeCalendarLoaded()) holdOpenUntilLoaded();
|
|
290
|
+
}
|
|
369
291
|
function onOpenChange(next) {
|
|
370
292
|
open.value = next;
|
|
371
293
|
if (next && model.value) {
|
|
@@ -394,16 +316,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
394
316
|
function triggerAttrs() {
|
|
395
317
|
const forwarded = parts.forwardedAttrs();
|
|
396
318
|
if (locked.value) delete forwarded.onClick;
|
|
397
|
-
return
|
|
319
|
+
return {
|
|
320
|
+
"aria-label": triggerLabel.value,
|
|
321
|
+
...forwarded
|
|
322
|
+
};
|
|
398
323
|
}
|
|
399
324
|
function onTriggerClick(event) {
|
|
400
|
-
if (!locked.value)
|
|
325
|
+
if (!locked.value) {
|
|
326
|
+
requestOpenBeforeLoad();
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
401
329
|
event.preventDefault();
|
|
402
330
|
event.stopImmediatePropagation();
|
|
403
331
|
}
|
|
404
332
|
return (_ctx, _cache) => {
|
|
405
333
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
406
|
-
createVNode(_sfc_main$
|
|
334
|
+
createVNode(_sfc_main$7, {
|
|
407
335
|
class: normalizeClass(unref(parts).containerClass.value),
|
|
408
336
|
style: normalizeStyle(unref(parts).containerStyle.value),
|
|
409
337
|
label: __props.label,
|
|
@@ -418,9 +346,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
418
346
|
status: __props.status,
|
|
419
347
|
"status-variant": __props.statusVariant
|
|
420
348
|
}, {
|
|
421
|
-
default: withCtx((field) => [createVNode(_sfc_main$
|
|
349
|
+
default: withCtx((field) => [createVNode(_sfc_main$8, {
|
|
422
350
|
"is-open": open.value,
|
|
423
|
-
"is-enabled": !locked.value,
|
|
351
|
+
"is-enabled": !locked.value && isCalendarReady.value,
|
|
424
352
|
placement: "below",
|
|
425
353
|
alignment: "start",
|
|
426
354
|
padding: 0,
|
|
@@ -443,7 +371,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
443
371
|
"aria-disabled": presetDisabled(preset) || void 0,
|
|
444
372
|
onClick: ($event) => applyPreset(preset)
|
|
445
373
|
}, toDisplayString(preset.label), 9, _hoisted_6);
|
|
446
|
-
}), 128))])) : createCommentVNode("v-if", true), open.value ? (openBlock(), createBlock(
|
|
374
|
+
}), 128))])) : createCommentVNode("v-if", true), open.value && unref(rangeCalendar) ? (openBlock(), createBlock(resolveDynamicComponent(unref(rangeCalendar)), {
|
|
447
375
|
key: 1,
|
|
448
376
|
cursor: cursor.value,
|
|
449
377
|
calendar: unref(calendar),
|
|
@@ -458,7 +386,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
458
386
|
"week-starts-on": __props.weekStartsOn,
|
|
459
387
|
onSelect,
|
|
460
388
|
onShift
|
|
461
|
-
}, null,
|
|
389
|
+
}, null, 40, [
|
|
462
390
|
"cursor",
|
|
463
391
|
"calendar",
|
|
464
392
|
"month-count",
|
|
@@ -479,8 +407,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
479
407
|
"data-size": unref(size),
|
|
480
408
|
"data-status": __props.status?.type,
|
|
481
409
|
"data-disabled": locked.value || void 0,
|
|
482
|
-
onPointerenter:
|
|
483
|
-
|
|
410
|
+
onPointerenter: onFieldPointerEnter,
|
|
411
|
+
onPointerdown: preloadCalendar,
|
|
412
|
+
onFocusin: preloadCalendar,
|
|
413
|
+
onFocusout: onFieldFocusOut,
|
|
414
|
+
onKeydown: onFieldKeydown,
|
|
415
|
+
onPointerleave: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
|
|
484
416
|
}, [
|
|
485
417
|
createElementVNode("button", mergeProps(triggerAttrs(), {
|
|
486
418
|
id: inputId.value,
|
|
@@ -498,7 +430,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
498
430
|
onClick: onTriggerClick,
|
|
499
431
|
onFocus: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onFocus && unref(disabledTooltip).onFocus(...args)),
|
|
500
432
|
onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args))
|
|
501
|
-
}), [createVNode(_sfc_main$
|
|
433
|
+
}), [createVNode(_sfc_main$1, {
|
|
502
434
|
class: "astryx-date-range-icon",
|
|
503
435
|
icon: "calendar",
|
|
504
436
|
size: "sm"
|
|
@@ -506,7 +438,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
506
438
|
class: "astryx-date-range-value",
|
|
507
439
|
"data-placeholder": !display.value || void 0
|
|
508
440
|
}, toDisplayString(display.value || placeholder.value), 9, _hoisted_3)], 16, _hoisted_2),
|
|
509
|
-
__props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$
|
|
441
|
+
__props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
510
442
|
key: 0,
|
|
511
443
|
class: "astryx-input-clear-button",
|
|
512
444
|
variant: "ghost",
|
|
@@ -514,14 +446,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
514
446
|
label: clearLabel.value,
|
|
515
447
|
onClick: clear
|
|
516
448
|
}, {
|
|
517
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
449
|
+
default: withCtx(() => [createVNode(_sfc_main$4, { type: "clear" })]),
|
|
518
450
|
_: 1
|
|
519
451
|
}, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
520
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$
|
|
452
|
+
busy.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
521
453
|
key: 1,
|
|
522
454
|
size: "sm",
|
|
523
455
|
"aria-hidden": "true"
|
|
524
|
-
})) : __props.status ? (openBlock(), createBlock(_sfc_main$
|
|
456
|
+
})) : __props.status ? (openBlock(), createBlock(_sfc_main$4, {
|
|
525
457
|
key: 2,
|
|
526
458
|
type: __props.status.type
|
|
527
459
|
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
@@ -548,14 +480,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
548
480
|
"status",
|
|
549
481
|
"status-variant"
|
|
550
482
|
]),
|
|
551
|
-
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$
|
|
483
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
552
484
|
key: 0,
|
|
553
485
|
id: disabledMessageId
|
|
554
486
|
}, {
|
|
555
487
|
default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
|
|
556
488
|
_: 1
|
|
557
489
|
})) : createCommentVNode("v-if", true),
|
|
558
|
-
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$
|
|
490
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
559
491
|
key: 1,
|
|
560
492
|
id: `${disabledMessageId}-tooltip`,
|
|
561
493
|
anchor: containerRef.value,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-
|
|
1
|
+
import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-zHX0wDmq.js";
|
|
2
2
|
export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateTimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateTimeInput-DPoTqJ36.js";
|
|
2
2
|
export { _sfc_main as DateTimeInput };
|
|
@@ -5,7 +5,7 @@ import { t as CUT_TEXT_PAGE_ALIGN_CLASS } from "./textDirection-C_CScrt5.js";
|
|
|
5
5
|
import { t as useMediaQuery } from "./useMediaQuery-DKnSDG3S.js";
|
|
6
6
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
7
|
import { t as _sfc_main$4 } from "./FieldIcon-COfz-h_b.js";
|
|
8
|
-
import { t as _sfc_main$5 } from "./IconButton-
|
|
8
|
+
import { t as _sfc_main$5 } from "./IconButton-BilMzjDj.js";
|
|
9
9
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
10
10
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
11
11
|
import { a as resolveHourFormat } from "./timeFormat-Cnd5vu5t.js";
|
|
@@ -15,11 +15,11 @@ import { t as _sfc_main$6 } from "./Spinner-dCnyObWk.js";
|
|
|
15
15
|
import { t as _sfc_main$7 } from "./Field-2ypSh8vl.js";
|
|
16
16
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
17
17
|
import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
|
|
18
|
-
import {
|
|
18
|
+
import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
|
|
19
|
+
import { i as formatCommittedDate, n as useCalendarPresentation, r as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-D78SOx0f.js";
|
|
19
20
|
import { c as resolvePickerPresentation } from "./inputPresentation-Br70N2eS.js";
|
|
20
21
|
import { n as dateTimeInputMessages } from "./time-input-CKOsh84E.js";
|
|
21
|
-
import { t as
|
|
22
|
-
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-DNZroMry.js";
|
|
22
|
+
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-Ni4p7bg4.js";
|
|
23
23
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
24
24
|
import "../styles/date-time-input.css";
|
|
25
25
|
//#region src/DateTimeInput/TouchDateTimeField.vue
|
package/dist/Dialog/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Dialog
|
|
2
|
-
import { t as _sfc_main$1 } from "../DialogHeader-
|
|
3
|
-
import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-
|
|
1
|
+
import { t as _sfc_main } from "../Dialog-PyGSnp1J.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../DialogHeader-CT4gkqfm.js";
|
|
3
|
+
import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-CPW0FBYo.js";
|
|
4
4
|
export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useDialogContext, useImperativeDialog };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as DIALOG_CONTEXT_KEY } from "./position-BHOceBaS.js";
|
|
2
|
-
import { t as _sfc_main } from "./Dialog
|
|
2
|
+
import { t as _sfc_main } from "./Dialog-PyGSnp1J.js";
|
|
3
3
|
import { defineComponent, h, inject, readonly, ref, shallowRef } from "vue";
|
|
4
4
|
//#region src/Dialog/useDialogContext.ts
|
|
5
5
|
/**
|
|
@@ -3,7 +3,7 @@ import { n as provideLayerMountTarget } from "./mount-7R_s-bHB.js";
|
|
|
3
3
|
import { r as themeReducesMotion } from "./reducedMotionMark-D3dxwdiR.js";
|
|
4
4
|
import { t as useFocusTrap } from "./useFocusTrap-DhhwiBEF.js";
|
|
5
5
|
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
6
|
-
import { t as holdEntranceInput } from "./holdEntranceInput-
|
|
6
|
+
import { t as holdEntranceInput } from "./holdEntranceInput-DK89Ky_U.js";
|
|
7
7
|
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-BAx26jXH.js";
|
|
8
8
|
import { n as createModalOutletHandle } from "./modalOutlet-C2nqIYUt.js";
|
|
9
9
|
import { t as useBackdropPress } from "./useBackdropPress-DmQKlVSk.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./IconButton-
|
|
2
|
+
import { t as _sfc_main$1 } from "./IconButton-BilMzjDj.js";
|
|
3
3
|
import { s as useLayoutArea } from "./context-D-Hwh-Jf.js";
|
|
4
4
|
import { i as DIALOG_CONTEXT_KEY } from "./position-BHOceBaS.js";
|
|
5
5
|
import { t as dialogMessages } from "./dialog-CNjGcdd1.js";
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-
|
|
1
|
+
import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-zHX0wDmq.js";
|
|
2
2
|
export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
|
package/dist/Drawer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-BkU8kiAU.js";
|
|
2
2
|
export { _sfc_main as Drawer, _sfc_main$1 as DrawerHeader };
|