@sprawlify/primitives 0.0.31 → 0.0.32
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/{aria-hidden-DIoJxbA3.mjs → aria-hidden-Bq1drpzH.mjs} +1 -1
- package/dist/{aria-hidden-DtLU6hSU.cjs → aria-hidden-DSdN9ih2.cjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-xzlPFDyD.cjs → auto-resize-Bh8HjZd5.cjs} +1 -1
- package/dist/{auto-resize-L6Oqa0lE.mjs → auto-resize-DLuF3IFp.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-DrxGD6r-.cjs → collection-C26svdLV.cjs} +2 -2
- package/dist/{collection-Don0IqzY.mjs → collection-CIpGDBdt.mjs} +2 -2
- package/dist/collection.cjs +2 -2
- package/dist/collection.mjs +2 -2
- package/dist/{color-utils-CjwofPil.mjs → color-utils-DGt9e4DC.mjs} +2 -2
- package/dist/{color-utils-grkMlPoh.cjs → color-utils-ZGUFwZHm.cjs} +2 -2
- package/dist/color-utils.cjs +2 -2
- package/dist/color-utils.mjs +2 -2
- package/dist/{core-DVmt6PX7.mjs → core-BLrKf6Qi.mjs} +2 -2
- package/dist/{core-DHn58LRl.cjs → core-BXoiGBfo.cjs} +2 -2
- package/dist/core.cjs +3 -3
- package/dist/core.d.cts +48 -2
- package/dist/core.d.mts +48 -2
- package/dist/core.mjs +3 -3
- package/dist/{date-utils-D2xPHa_I.cjs → date-utils-_Hu9b5fQ.cjs} +45 -45
- package/dist/date-utils.cjs +1 -1
- package/dist/date-utils.d.cts +1 -1
- package/dist/date-utils.d.mts +1 -1
- package/dist/{defineProperty-Cql4jybt.mjs → defineProperty-Bzw41Glr.mjs} +4 -4
- package/dist/{defineProperty-BoUOT9Ie.cjs → defineProperty-CTuz_M0G.cjs} +4 -4
- package/dist/{dismissable-rIq_LmT8.cjs → dismissable-DAGPnT9O.cjs} +3 -3
- package/dist/{dismissable-layer-DmvOBneO.d.cts → dismissable-layer-C39y-V3t.d.mts} +2 -2
- package/dist/{dismissable-layer-xYn_dIUQ.d.mts → dismissable-layer-D-7fwQL8.d.cts} +2 -2
- package/dist/{dismissable-CyZwVu7n.mjs → dismissable-xKLesXM6.mjs} +3 -3
- package/dist/dismissable.cjs +4 -4
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-Bwyyt0Vp.mjs → dom-query-BaSlGC4X.mjs} +1 -1
- package/dist/{dom-query-CWZdWUGp.cjs → dom-query-fmUvyB3x.cjs} +1 -1
- package/dist/dom-query.cjs +1 -1
- package/dist/dom-query.d.cts +6 -6
- package/dist/dom-query.d.mts +6 -6
- package/dist/dom-query.mjs +1 -1
- package/dist/file-utils.d.cts +1 -1
- package/dist/file-utils.d.mts +1 -1
- package/dist/{focus-trap-BwUy71da.cjs → focus-trap-9PNm7ZOS.cjs} +2 -2
- package/dist/{focus-trap-Bw_WJq_d.mjs → focus-trap-zo20IBVh.mjs} +2 -2
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-BVOZnp76.cjs → focus-visible-BHSdwdWA.cjs} +1 -1
- package/dist/{focus-visible-BKLakzc7.mjs → focus-visible-D6iSwUgD.mjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/hotkeys.cjs +1 -1
- package/dist/hotkeys.mjs +1 -1
- package/dist/{i18n-utils-DCz8B6DF.mjs → i18n-utils-BYlbN_An.mjs} +1 -1
- package/dist/{i18n-utils-B8IY1mOh.cjs → i18n-utils-DNxuEaJv.cjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{index-BlM1bSkX.d.mts → index-60_Ru8qp.d.mts} +1 -1
- package/dist/{interact-outside-Dp8GERFa.cjs → interact-outside-DhVG9So9.cjs} +2 -2
- package/dist/{interact-outside-D9gKK1XW.mjs → interact-outside-DkNMPOqV.mjs} +2 -2
- package/dist/interact-outside.cjs +3 -3
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +3 -3
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/machines/accordion/index.cjs +3 -3
- package/dist/machines/accordion/index.d.cts +2 -2
- package/dist/machines/accordion/index.d.mts +2 -2
- package/dist/machines/accordion/index.mjs +3 -3
- package/dist/machines/angle-slider/index.cjs +4 -4
- package/dist/machines/angle-slider/index.d.cts +3 -3
- package/dist/machines/angle-slider/index.d.mts +3 -3
- package/dist/machines/angle-slider/index.mjs +4 -4
- package/dist/machines/async-list/index.cjs +3 -3
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +3 -3
- package/dist/machines/avatar/index.cjs +3 -3
- package/dist/machines/avatar/index.d.cts +2 -2
- package/dist/machines/avatar/index.d.mts +2 -2
- package/dist/machines/avatar/index.mjs +3 -3
- package/dist/machines/bottom-sheet/index.cjs +9 -9
- package/dist/machines/bottom-sheet/index.d.cts +5 -5
- package/dist/machines/bottom-sheet/index.d.mts +5 -5
- package/dist/machines/bottom-sheet/index.mjs +9 -9
- package/dist/machines/carousel/index.cjs +4 -4
- package/dist/machines/carousel/index.d.cts +3 -3
- package/dist/machines/carousel/index.d.mts +3 -3
- package/dist/machines/carousel/index.mjs +4 -4
- package/dist/machines/checkbox/index.cjs +4 -4
- package/dist/machines/checkbox/index.d.cts +3 -3
- package/dist/machines/checkbox/index.d.mts +3 -3
- package/dist/machines/checkbox/index.mjs +4 -4
- package/dist/machines/clipboard/index.cjs +3 -3
- package/dist/machines/clipboard/index.d.cts +3 -3
- package/dist/machines/clipboard/index.d.mts +3 -3
- package/dist/machines/clipboard/index.mjs +3 -3
- package/dist/machines/collapsible/index.cjs +3 -3
- package/dist/machines/collapsible/index.d.cts +2 -2
- package/dist/machines/collapsible/index.d.mts +2 -2
- package/dist/machines/collapsible/index.mjs +3 -3
- package/dist/machines/color-picker/index.cjs +7 -7
- package/dist/machines/color-picker/index.d.cts +5 -5
- package/dist/machines/color-picker/index.d.mts +5 -5
- package/dist/machines/color-picker/index.mjs +7 -7
- package/dist/machines/combobox/index.cjs +7 -7
- package/dist/machines/combobox/index.d.cts +5 -5
- package/dist/machines/combobox/index.d.mts +5 -5
- package/dist/machines/combobox/index.mjs +7 -7
- package/dist/machines/date-picker/index.cjs +19 -19
- package/dist/machines/date-picker/index.d.cts +7 -7
- package/dist/machines/date-picker/index.d.mts +7 -7
- package/dist/machines/date-picker/index.mjs +6 -6
- package/dist/machines/dialog/index.cjs +8 -8
- package/dist/machines/dialog/index.d.cts +5 -5
- package/dist/machines/dialog/index.d.mts +5 -5
- package/dist/machines/dialog/index.mjs +8 -8
- package/dist/machines/editable/index.cjs +4 -4
- package/dist/machines/editable/index.d.cts +4 -4
- package/dist/machines/editable/index.d.mts +4 -4
- package/dist/machines/editable/index.mjs +4 -4
- package/dist/machines/file-upload/index.cjs +4 -4
- package/dist/machines/file-upload/index.d.cts +4 -4
- package/dist/machines/file-upload/index.d.mts +4 -4
- package/dist/machines/file-upload/index.mjs +4 -4
- package/dist/machines/floating-panel/index.cjs +4 -4
- package/dist/machines/floating-panel/index.d.cts +4 -4
- package/dist/machines/floating-panel/index.d.mts +4 -4
- package/dist/machines/floating-panel/index.mjs +4 -4
- package/dist/machines/hover-card/index.cjs +6 -6
- package/dist/machines/hover-card/index.d.cts +5 -5
- package/dist/machines/hover-card/index.d.mts +5 -5
- package/dist/machines/hover-card/index.mjs +6 -6
- package/dist/machines/image-cropper/index.cjs +3 -3
- package/dist/machines/image-cropper/index.d.cts +3 -3
- package/dist/machines/image-cropper/index.d.mts +3 -3
- package/dist/machines/image-cropper/index.mjs +3 -3
- package/dist/machines/listbox/index.cjs +5 -5
- package/dist/machines/listbox/index.d.cts +4 -4
- package/dist/machines/listbox/index.d.mts +4 -4
- package/dist/machines/listbox/index.mjs +5 -5
- package/dist/machines/marquee/index.cjs +3 -3
- package/dist/machines/marquee/index.d.cts +5 -5
- package/dist/machines/marquee/index.d.mts +5 -5
- package/dist/machines/marquee/index.mjs +3 -3
- package/dist/machines/menu/index.cjs +7 -7
- package/dist/machines/menu/index.d.cts +8 -8
- package/dist/machines/menu/index.d.mts +8 -8
- package/dist/machines/menu/index.mjs +7 -7
- package/dist/machines/navigation-menu/index.cjs +5 -5
- package/dist/machines/navigation-menu/index.d.cts +3 -3
- package/dist/machines/navigation-menu/index.d.mts +3 -3
- package/dist/machines/navigation-menu/index.mjs +5 -5
- package/dist/machines/number-input/index.cjs +5 -5
- package/dist/machines/number-input/index.d.cts +3 -3
- package/dist/machines/number-input/index.d.mts +3 -3
- package/dist/machines/number-input/index.mjs +3 -3
- package/dist/machines/pagination/index.cjs +3 -3
- package/dist/machines/pagination/index.d.cts +2 -2
- package/dist/machines/pagination/index.d.mts +2 -2
- package/dist/machines/pagination/index.mjs +3 -3
- package/dist/machines/password-input/index.cjs +3 -3
- package/dist/machines/password-input/index.d.cts +3 -3
- package/dist/machines/password-input/index.d.mts +3 -3
- package/dist/machines/password-input/index.mjs +3 -3
- package/dist/machines/pin-input/index.cjs +3 -3
- package/dist/machines/pin-input/index.d.cts +3 -3
- package/dist/machines/pin-input/index.d.mts +3 -3
- package/dist/machines/pin-input/index.mjs +3 -3
- package/dist/machines/popover/index.cjs +9 -9
- package/dist/machines/popover/index.d.cts +6 -6
- package/dist/machines/popover/index.d.mts +6 -6
- package/dist/machines/popover/index.mjs +9 -9
- package/dist/machines/presence/index.cjs +3 -3
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +3 -3
- package/dist/machines/progress/index.cjs +3 -3
- package/dist/machines/progress/index.d.cts +3 -3
- package/dist/machines/progress/index.d.mts +3 -3
- package/dist/machines/progress/index.mjs +3 -3
- package/dist/machines/qr-code/index.cjs +3 -3
- package/dist/machines/qr-code/index.d.cts +4 -4
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +3 -3
- package/dist/machines/radio-group/index.cjs +4 -4
- package/dist/machines/radio-group/index.d.cts +3 -3
- package/dist/machines/radio-group/index.d.mts +3 -3
- package/dist/machines/radio-group/index.mjs +4 -4
- package/dist/machines/rating-group/index.cjs +3 -3
- package/dist/machines/rating-group/index.d.cts +3 -3
- package/dist/machines/rating-group/index.d.mts +3 -3
- package/dist/machines/rating-group/index.mjs +3 -3
- package/dist/machines/scroll-area/index.cjs +4 -4
- package/dist/machines/scroll-area/index.d.cts +3 -3
- package/dist/machines/scroll-area/index.d.mts +3 -3
- package/dist/machines/scroll-area/index.mjs +4 -4
- package/dist/machines/select/index.cjs +7 -7
- package/dist/machines/select/index.d.cts +6 -6
- package/dist/machines/select/index.d.mts +6 -6
- package/dist/machines/select/index.mjs +7 -7
- package/dist/machines/signature-pad/index.cjs +6 -6
- package/dist/machines/signature-pad/index.d.cts +3 -3
- package/dist/machines/signature-pad/index.d.mts +3 -3
- package/dist/machines/signature-pad/index.mjs +7 -7
- package/dist/machines/slider/index.cjs +36 -6
- package/dist/machines/slider/index.d.cts +3 -3
- package/dist/machines/slider/index.d.mts +3 -3
- package/dist/machines/slider/index.mjs +36 -6
- package/dist/machines/splitter/index.cjs +3 -3
- package/dist/machines/splitter/index.d.cts +2 -2
- package/dist/machines/splitter/index.d.mts +2 -2
- package/dist/machines/splitter/index.mjs +3 -3
- package/dist/machines/steps/index.cjs +3 -3
- package/dist/machines/steps/index.d.cts +3 -3
- package/dist/machines/steps/index.d.mts +3 -3
- package/dist/machines/steps/index.mjs +3 -3
- package/dist/machines/switch/index.cjs +4 -4
- package/dist/machines/switch/index.d.cts +3 -3
- package/dist/machines/switch/index.d.mts +3 -3
- package/dist/machines/switch/index.mjs +4 -4
- package/dist/machines/tabs/index.cjs +3 -3
- package/dist/machines/tabs/index.d.cts +2 -2
- package/dist/machines/tabs/index.d.mts +2 -2
- package/dist/machines/tabs/index.mjs +3 -3
- package/dist/machines/tags-input/index.cjs +5 -5
- package/dist/machines/tags-input/index.d.cts +5 -5
- package/dist/machines/tags-input/index.d.mts +5 -5
- package/dist/machines/tags-input/index.mjs +5 -5
- package/dist/machines/timer/index.cjs +3 -3
- package/dist/machines/timer/index.d.cts +3 -3
- package/dist/machines/timer/index.d.mts +3 -3
- package/dist/machines/timer/index.mjs +3 -3
- package/dist/machines/toast/index.cjs +7 -7
- package/dist/machines/toast/index.d.cts +4 -3
- package/dist/machines/toast/index.d.mts +4 -3
- package/dist/machines/toast/index.mjs +8 -8
- package/dist/machines/toggle/index.cjs +3 -3
- package/dist/machines/toggle/index.d.cts +2 -2
- package/dist/machines/toggle/index.d.mts +2 -2
- package/dist/machines/toggle/index.mjs +3 -3
- package/dist/machines/toggle-group/index.cjs +3 -3
- package/dist/machines/toggle-group/index.d.cts +2 -2
- package/dist/machines/toggle-group/index.d.mts +2 -2
- package/dist/machines/toggle-group/index.mjs +3 -3
- package/dist/machines/tooltip/index.cjs +5 -5
- package/dist/machines/tooltip/index.d.cts +4 -4
- package/dist/machines/tooltip/index.d.mts +4 -4
- package/dist/machines/tooltip/index.mjs +5 -5
- package/dist/machines/tour/index.cjs +7 -7
- package/dist/machines/tour/index.d.cts +6 -6
- package/dist/machines/tour/index.d.mts +6 -6
- package/dist/machines/tour/index.mjs +7 -7
- package/dist/machines/tree-view/index.cjs +4 -4
- package/dist/machines/tree-view/index.d.cts +4 -4
- package/dist/machines/tree-view/index.d.mts +4 -4
- package/dist/machines/tree-view/index.mjs +4 -4
- package/dist/{popper-CjBC91Tz.mjs → popper-BN7E_8-R.mjs} +2 -2
- package/dist/{popper-kp05O3Bm.cjs → popper-CasttusN.cjs} +12 -12
- package/dist/popper.cjs +3 -3
- package/dist/popper.d.cts +2 -2
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-Dp9Wvl7-.cjs → rect-utils-C-9DRQNd.cjs} +1 -1
- package/dist/{rect-utils-j6C9uZk1.mjs → rect-utils-C6Nug-pt.mjs} +1 -1
- package/dist/rect-utils.cjs +1 -1
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +1 -1
- package/dist/{remove-scroll-Dh9PjZFE.cjs → remove-scroll-BPLI9jr9.cjs} +1 -1
- package/dist/{remove-scroll-C73TLIgr.mjs → remove-scroll-Btia-r68.mjs} +1 -1
- package/dist/{scroll-snap-B279jSp5.mjs → scroll-snap-DY-Wmmhl.mjs} +1 -1
- package/dist/{scroll-snap-BvaE_jFu.cjs → scroll-snap-VzQ4ngQ4.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/{utils-BIwaJq8z.mjs → utils-B_odTlcq.mjs} +5 -5
- package/dist/{utils-CtgLe8Vv.cjs → utils-CMs0714u.cjs} +5 -5
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/core-75kSaDJc.d.mts +0 -49
- package/dist/core-D_pI64vx.d.cts +0 -49
- /package/dist/{data-url-BqpiKO1L.d.mts → data-url-C3ITPVRX.d.cts} +0 -0
- /package/dist/{data-url-og2AwQaU.d.cts → data-url-mcVoUiET.d.mts} +0 -0
- /package/dist/{functions-2ix8ad1e.d.cts → functions-7V6veSov.d.cts} +0 -0
- /package/dist/{functions-qoGE2jOS.d.mts → functions-CjitT5Gr.d.mts} +0 -0
- /package/dist/{index-DYzqCFaj.d.mts → index-BqhWpjZh.d.mts} +0 -0
- /package/dist/{index-BVcPBg7R.d.mts → index-Bqw3r34-.d.cts} +0 -0
- /package/dist/{index-UNyqrBDu.d.cts → index-BuUzJjaP.d.mts} +0 -0
- /package/dist/{index-9OlOKr2i.d.mts → index-Bvn6ocEE.d.mts} +0 -0
- /package/dist/{index-DFiQyzeW.d.cts → index-C9-feK5c.d.cts} +0 -0
- /package/dist/{index-BBTkH09t.d.cts → index-CygfPLvT.d.mts} +0 -0
- /package/dist/{index-C9ajBf1B.d.mts → index-Owca7uxB.d.cts} +0 -0
- /package/dist/{node-BecR7gec.d.cts → node-CHGS3acf.d.mts} +0 -0
- /package/dist/{node-v8Pyrj9P.d.mts → node-CSsuPZVZ.d.cts} +0 -0
- /package/dist/{raf-BF2VrckK.d.cts → raf-BV1049GE.d.mts} +0 -0
- /package/dist/{raf-DX52LaVy.d.mts → raf-Cd2FGy0z.d.cts} +0 -0
- /package/dist/{typeahead-BWyD_KIb.d.cts → typeahead-BdNwVP09.d.cts} +0 -0
- /package/dist/{typeahead-BX-BWYjD.d.mts → typeahead-DMSwLv1e.d.mts} +0 -0
- /package/dist/{types-CsK6JMut.d.mts → types-D-ZRl1jP.d.mts} +0 -0
- /package/dist/{types-TUsgVjZA.d.cts → types-D5ziaMrd.d.cts} +0 -0
- /package/dist/{types-BIy26Uwn.d.cts → types-DL5AIQk5.d.mts} +0 -0
- /package/dist/{types-ByFp2QfD.d.mts → types-DddL75YY.d.cts} +0 -0
- /package/dist/{types-jyV564Ip.d.mts → types-DejIu60O.d.cts} +0 -0
- /package/dist/{types-xyuh-a2-.d.cts → types-F-0xFywm.d.cts} +0 -0
- /package/dist/{types-oh90SH45.d.cts → types-GxLIgJib.d.cts} +0 -0
- /package/dist/{types-CaxzY9yP.d.cts → types-J14X3oxU.d.mts} +0 -0
- /package/dist/{wait-for-C9QyzQj2.d.cts → wait-for-BkzY39R9.d.mts} +0 -0
- /package/dist/{wait-for-Pn6RmrHX.d.mts → wait-for-CMjPsqWk.d.cts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ht as findControlledElements, ln as isHTMLElement } from "./dom-query-
|
|
1
|
+
import { Ht as findControlledElements, ln as isHTMLElement } from "./dom-query-BaSlGC4X.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/aria-hidden/walk-tree-outside.ts
|
|
4
4
|
let counterMap = /* @__PURE__ */ new WeakMap();
|
package/dist/aria-hidden.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
const require_aria_hidden = require('./aria-hidden-
|
|
1
|
+
require('./dom-query-fmUvyB3x.cjs');
|
|
2
|
+
const require_aria_hidden = require('./aria-hidden-DSdN9ih2.cjs');
|
|
3
3
|
|
|
4
4
|
exports.ariaHidden = require_aria_hidden.ariaHidden;
|
package/dist/aria-hidden.mjs
CHANGED
package/dist/auto-resize.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
const require_auto_resize = require('./auto-resize-
|
|
1
|
+
require('./dom-query-fmUvyB3x.cjs');
|
|
2
|
+
const require_auto_resize = require('./auto-resize-Bh8HjZd5.cjs');
|
|
3
3
|
|
|
4
4
|
exports.autoResizeInput = require_auto_resize.autoResizeInput;
|
|
5
5
|
exports.autoresizeTextarea = require_auto_resize.autoresizeTextarea;
|
package/dist/auto-resize.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-
|
|
1
|
+
import "./dom-query-BaSlGC4X.mjs";
|
|
2
|
+
import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-DLuF3IFp.mjs";
|
|
3
3
|
|
|
4
4
|
export { autoResizeInput, autoresizeTextarea };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_defineProperty = require('./defineProperty-
|
|
2
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_defineProperty = require('./defineProperty-CTuz_M0G.cjs');
|
|
2
|
+
const require_utils = require('./utils-CMs0714u.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/list-collection.ts
|
|
5
5
|
let _Symbol$iterator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
2
|
-
import { Et as nextIndex, ct as isObject, ft as isEqual, ht as chunk, kt as prevIndex, tt as hasProp } from "./utils-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-Bzw41Glr.mjs";
|
|
2
|
+
import { Et as nextIndex, ct as isObject, ft as isEqual, ht as chunk, kt as prevIndex, tt as hasProp } from "./utils-B_odTlcq.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/list-collection.ts
|
|
5
5
|
let _Symbol$iterator;
|
package/dist/collection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./utils-
|
|
2
|
-
const require_collection = require('./collection-
|
|
1
|
+
require('./utils-CMs0714u.cjs');
|
|
2
|
+
const require_collection = require('./collection-C26svdLV.cjs');
|
|
3
3
|
|
|
4
4
|
exports.GridCollection = require_collection.GridCollection;
|
|
5
5
|
exports.ListCollection = require_collection.ListCollection;
|
package/dist/collection.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { a as GridCollection, c as isListCollection, i as Selection, n as filePathToTree, o as isGridCollection, r as flattenedToTree, s as ListCollection, t as TreeCollection } from "./collection-
|
|
1
|
+
import "./utils-B_odTlcq.mjs";
|
|
2
|
+
import { a as GridCollection, c as isListCollection, i as Selection, n as filePathToTree, o as isGridCollection, r as flattenedToTree, s as ListCollection, t as TreeCollection } from "./collection-CIpGDBdt.mjs";
|
|
3
3
|
|
|
4
4
|
export { GridCollection, ListCollection, Selection, TreeCollection, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
2
|
-
import { B as snapValueToStep, C as getPercentValue, P as mod, T as getValuePercent, V as toFixedNumber, g as clampValue } from "./utils-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-Bzw41Glr.mjs";
|
|
2
|
+
import { B as snapValueToStep, C as getPercentValue, P as mod, T as getValuePercent, V as toFixedNumber, g as clampValue } from "./utils-B_odTlcq.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/color-utils/color-format-gradient.ts
|
|
5
5
|
const generateRGB_R = (orientation, dir, zValue) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_defineProperty = require('./defineProperty-
|
|
2
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_defineProperty = require('./defineProperty-CTuz_M0G.cjs');
|
|
2
|
+
const require_utils = require('./utils-CMs0714u.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/shared/color-utils/color-format-gradient.ts
|
|
5
5
|
const generateRGB_R = (orientation, dir, zValue) => {
|
package/dist/color-utils.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./utils-
|
|
2
|
-
const require_color_utils = require('./color-utils-
|
|
1
|
+
require('./utils-CMs0714u.cjs');
|
|
2
|
+
const require_color_utils = require('./color-utils-ZGUFwZHm.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Color = require_color_utils.Color;
|
|
5
5
|
exports.getColorAreaGradient = require_color_utils.getColorAreaGradient;
|
package/dist/color-utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { i as getColorAreaGradient, n as parseColor, r as Color, t as normalizeColor } from "./color-utils-
|
|
1
|
+
import "./utils-B_odTlcq.mjs";
|
|
2
|
+
import { i as getColorAreaGradient, n as parseColor, r as Color, t as normalizeColor } from "./color-utils-DGt9e4DC.mjs";
|
|
3
3
|
|
|
4
4
|
export { Color, getColorAreaGradient, normalizeColor, parseColor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Qt as getDocument, Zt as getActiveElement, in as isActiveElement } from "./dom-query-
|
|
2
|
-
import { W as callAll, dt as isString, ft as isEqual } from "./utils-
|
|
1
|
+
import { Qt as getDocument, Zt as getActiveElement, in as isActiveElement } from "./dom-query-BaSlGC4X.mjs";
|
|
2
|
+
import { W as callAll, dt as isString, ft as isEqual } from "./utils-B_odTlcq.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/core/merge-props.ts
|
|
5
5
|
const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_dom_query = require('./dom-query-
|
|
2
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_dom_query = require('./dom-query-fmUvyB3x.cjs');
|
|
2
|
+
const require_utils = require('./utils-CMs0714u.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/shared/core/merge-props.ts
|
|
5
5
|
const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
|
package/dist/core.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
require('./utils-
|
|
3
|
-
const require_core = require('./core-
|
|
1
|
+
require('./dom-query-fmUvyB3x.cjs');
|
|
2
|
+
require('./utils-CMs0714u.cjs');
|
|
3
|
+
const require_core = require('./core-BXoiGBfo.cjs');
|
|
4
4
|
|
|
5
5
|
exports.INIT_STATE = require_core.INIT_STATE;
|
|
6
6
|
exports.MachineStatus = require_core.MachineStatus;
|
package/dist/core.d.cts
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { _ as PropFn, a as BindableParams, b as Transition, c as ComputedFn, d as GuardFn, f as INIT_STATE, g as Params, h as MachineStatus, i as BindableFn, l as EffectsOrFn, m as MachineSchema, n as Bindable, o as BindableRefs, p as Machine, r as BindableContext, s as ChooseFn, t as ActionsOrFn, u as EventObject, v as Scope, x as ValueOrFn, y as Service } from "./types-DejIu60O.cjs";
|
|
2
|
+
import { l as isActiveElement } from "./node-CSsuPZVZ.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/core/merge-props.d.ts
|
|
5
|
+
interface Props {
|
|
6
|
+
[key: string | symbol]: any;
|
|
7
|
+
}
|
|
8
|
+
type TupleTypes<T extends any[]> = T[number];
|
|
9
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
10
|
+
declare function mergeProps<T extends Props>(...args: Array<T | undefined>): UnionToIntersection<TupleTypes<T[]>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/shared/core/memo.d.ts
|
|
13
|
+
type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
14
|
+
declare function memo<TDeps extends any[], TDepArgs, TResult>(getDeps: (depArgs: TDepArgs) => [...TDeps], fn: (args: NoInfer<[...TDeps]>, deps: TDepArgs) => TResult, opts?: {
|
|
15
|
+
onChange?: ((result: TResult) => void) | undefined;
|
|
16
|
+
}): (depArgs: TDepArgs) => TResult;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/shared/core/create-machine.d.ts
|
|
19
|
+
declare function createGuards<T extends MachineSchema>(): {
|
|
20
|
+
and: (...guards: Array<GuardFn<T> | T["guard"]>) => (params: any) => boolean;
|
|
21
|
+
or: (...guards: Array<GuardFn<T> | T["guard"]>) => (params: any) => boolean;
|
|
22
|
+
not: (guard: GuardFn<T> | T["guard"]) => (params: any) => boolean;
|
|
23
|
+
};
|
|
24
|
+
declare function createMachine<T extends MachineSchema>(config: Machine<T>): Machine<T>;
|
|
25
|
+
declare function setup<T extends MachineSchema>(): {
|
|
26
|
+
guards: {
|
|
27
|
+
and: (...guards: (GuardFn<T> | T["guard"])[]) => (params: any) => boolean;
|
|
28
|
+
or: (...guards: (GuardFn<T> | T["guard"])[]) => (params: any) => boolean;
|
|
29
|
+
not: (guard: GuardFn<T> | T["guard"]) => (params: any) => boolean;
|
|
30
|
+
};
|
|
31
|
+
createMachine: (config: Machine<T>) => Machine<T>;
|
|
32
|
+
choose: (transitions: Transition<T> | Transition<T>[]) => ({
|
|
33
|
+
choose
|
|
34
|
+
}: Params<T>) => T["action"][] | undefined;
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/shared/core/scope.d.ts
|
|
38
|
+
declare function createScope(props: Pick<Scope, "id" | "ids" | "getRootNode">): {
|
|
39
|
+
getRootNode: () => Document | ShadowRoot;
|
|
40
|
+
getDoc: () => Document;
|
|
41
|
+
getWin: () => Window & typeof globalThis;
|
|
42
|
+
getActiveElement: () => HTMLElement | null;
|
|
43
|
+
isActiveElement: typeof isActiveElement;
|
|
44
|
+
getById: <T extends Element = HTMLElement>(id: string) => T | null;
|
|
45
|
+
ids?: Record<string, any> | undefined;
|
|
46
|
+
id?: string | undefined | undefined;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
3
49
|
export { ActionsOrFn, Bindable, BindableContext, BindableFn, BindableParams, BindableRefs, ChooseFn, ComputedFn, EffectsOrFn, EventObject, GuardFn, INIT_STATE, Machine, MachineSchema, MachineStatus, Params, PropFn, Scope, Service, Transition, ValueOrFn, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
package/dist/core.d.mts
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { _ as PropFn, a as BindableParams, b as Transition, c as ComputedFn, d as GuardFn, f as INIT_STATE, g as Params, h as MachineStatus, i as BindableFn, l as EffectsOrFn, m as MachineSchema, n as Bindable, o as BindableRefs, p as Machine, r as BindableContext, s as ChooseFn, t as ActionsOrFn, u as EventObject, v as Scope, x as ValueOrFn, y as Service } from "./types-DL5AIQk5.mjs";
|
|
2
|
+
import { l as isActiveElement } from "./node-CHGS3acf.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/core/merge-props.d.ts
|
|
5
|
+
interface Props {
|
|
6
|
+
[key: string | symbol]: any;
|
|
7
|
+
}
|
|
8
|
+
type TupleTypes<T extends any[]> = T[number];
|
|
9
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
10
|
+
declare function mergeProps<T extends Props>(...args: Array<T | undefined>): UnionToIntersection<TupleTypes<T[]>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/shared/core/memo.d.ts
|
|
13
|
+
type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
14
|
+
declare function memo<TDeps extends any[], TDepArgs, TResult>(getDeps: (depArgs: TDepArgs) => [...TDeps], fn: (args: NoInfer<[...TDeps]>, deps: TDepArgs) => TResult, opts?: {
|
|
15
|
+
onChange?: ((result: TResult) => void) | undefined;
|
|
16
|
+
}): (depArgs: TDepArgs) => TResult;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/shared/core/create-machine.d.ts
|
|
19
|
+
declare function createGuards<T extends MachineSchema>(): {
|
|
20
|
+
and: (...guards: Array<GuardFn<T> | T["guard"]>) => (params: any) => boolean;
|
|
21
|
+
or: (...guards: Array<GuardFn<T> | T["guard"]>) => (params: any) => boolean;
|
|
22
|
+
not: (guard: GuardFn<T> | T["guard"]) => (params: any) => boolean;
|
|
23
|
+
};
|
|
24
|
+
declare function createMachine<T extends MachineSchema>(config: Machine<T>): Machine<T>;
|
|
25
|
+
declare function setup<T extends MachineSchema>(): {
|
|
26
|
+
guards: {
|
|
27
|
+
and: (...guards: (GuardFn<T> | T["guard"])[]) => (params: any) => boolean;
|
|
28
|
+
or: (...guards: (GuardFn<T> | T["guard"])[]) => (params: any) => boolean;
|
|
29
|
+
not: (guard: GuardFn<T> | T["guard"]) => (params: any) => boolean;
|
|
30
|
+
};
|
|
31
|
+
createMachine: (config: Machine<T>) => Machine<T>;
|
|
32
|
+
choose: (transitions: Transition<T> | Transition<T>[]) => ({
|
|
33
|
+
choose
|
|
34
|
+
}: Params<T>) => T["action"][] | undefined;
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/shared/core/scope.d.ts
|
|
38
|
+
declare function createScope(props: Pick<Scope, "id" | "ids" | "getRootNode">): {
|
|
39
|
+
getRootNode: () => Document | ShadowRoot;
|
|
40
|
+
getDoc: () => Document;
|
|
41
|
+
getWin: () => Window & typeof globalThis;
|
|
42
|
+
getActiveElement: () => HTMLElement | null;
|
|
43
|
+
isActiveElement: typeof isActiveElement;
|
|
44
|
+
getById: <T extends Element = HTMLElement>(id: string) => T | null;
|
|
45
|
+
ids?: Record<string, any> | undefined;
|
|
46
|
+
id?: string | undefined | undefined;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
3
49
|
export { ActionsOrFn, Bindable, BindableContext, BindableFn, BindableParams, BindableRefs, ChooseFn, ComputedFn, EffectsOrFn, EventObject, GuardFn, INIT_STATE, Machine, MachineSchema, MachineStatus, Params, PropFn, Scope, Service, Transition, ValueOrFn, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
package/dist/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import "./utils-
|
|
3
|
-
import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-
|
|
1
|
+
import "./dom-query-BaSlGC4X.mjs";
|
|
2
|
+
import "./utils-B_odTlcq.mjs";
|
|
3
|
+
import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-BLrKf6Qi.mjs";
|
|
4
4
|
|
|
5
5
|
export { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
let
|
|
2
|
+
let _internationalized_date = require("@internationalized/date");
|
|
3
3
|
|
|
4
4
|
//#region src/shared/date-utils/constrain.ts
|
|
5
5
|
function alignCenter(date, duration, locale, min, max) {
|
|
@@ -15,9 +15,9 @@ function alignCenter(date, duration, locale, min, max) {
|
|
|
15
15
|
}
|
|
16
16
|
function alignStart(date, duration, locale, min, max) {
|
|
17
17
|
let aligned = date;
|
|
18
|
-
if (duration.years) aligned = (0,
|
|
19
|
-
else if (duration.months) aligned = (0,
|
|
20
|
-
else if (duration.weeks) aligned = (0,
|
|
18
|
+
if (duration.years) aligned = (0, _internationalized_date.startOfYear)(date);
|
|
19
|
+
else if (duration.months) aligned = (0, _internationalized_date.startOfMonth)(date);
|
|
20
|
+
else if (duration.weeks) aligned = (0, _internationalized_date.startOfWeek)(date, locale);
|
|
21
21
|
return constrainStart(date, aligned, duration, locale, min, max);
|
|
22
22
|
}
|
|
23
23
|
function alignEnd(date, duration, locale, min, max) {
|
|
@@ -29,14 +29,14 @@ function alignEnd(date, duration, locale, min, max) {
|
|
|
29
29
|
return constrainStart(date, alignStart(date, duration, locale).subtract(d), duration, locale, min, max);
|
|
30
30
|
}
|
|
31
31
|
function constrainStart(date, aligned, duration, locale, min, max) {
|
|
32
|
-
if (min && date.compare(min) >= 0) aligned = (0,
|
|
33
|
-
if (max && date.compare(max) <= 0) aligned = (0,
|
|
32
|
+
if (min && date.compare(min) >= 0) aligned = (0, _internationalized_date.maxDate)(aligned, alignStart((0, _internationalized_date.toCalendarDate)(min), duration, locale));
|
|
33
|
+
if (max && date.compare(max) <= 0) aligned = (0, _internationalized_date.minDate)(aligned, alignEnd((0, _internationalized_date.toCalendarDate)(max), duration, locale));
|
|
34
34
|
return aligned;
|
|
35
35
|
}
|
|
36
36
|
function constrainValue(date, minValue, maxValue) {
|
|
37
|
-
let constrainedDate = (0,
|
|
38
|
-
if (minValue) constrainedDate = (0,
|
|
39
|
-
if (maxValue) constrainedDate = (0,
|
|
37
|
+
let constrainedDate = (0, _internationalized_date.toCalendarDate)(date);
|
|
38
|
+
if (minValue) constrainedDate = (0, _internationalized_date.maxDate)(constrainedDate, (0, _internationalized_date.toCalendarDate)(minValue));
|
|
39
|
+
if (maxValue) constrainedDate = (0, _internationalized_date.minDate)(constrainedDate, (0, _internationalized_date.toCalendarDate)(maxValue));
|
|
40
40
|
return constrainedDate;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -60,7 +60,7 @@ function alignStartDate(date, startDate, endDate, duration, locale, min, max) {
|
|
|
60
60
|
//#region src/shared/date-utils/assertion.ts
|
|
61
61
|
function isDateEqual(dateA, dateB) {
|
|
62
62
|
if (dateA == null || dateB == null) return dateA === dateB;
|
|
63
|
-
return (0,
|
|
63
|
+
return (0, _internationalized_date.isSameDay)(dateA, dateB);
|
|
64
64
|
}
|
|
65
65
|
function isDateUnavailable(date, isUnavailable, locale, minValue, maxValue) {
|
|
66
66
|
if (!date) return false;
|
|
@@ -72,11 +72,11 @@ function isDateOutsideRange(date, startDate, endDate) {
|
|
|
72
72
|
}
|
|
73
73
|
function isPreviousRangeInvalid(startDate, minValue, maxValue) {
|
|
74
74
|
const prevDate = startDate.subtract({ days: 1 });
|
|
75
|
-
return (0,
|
|
75
|
+
return (0, _internationalized_date.isSameDay)(prevDate, startDate) || isDateOutsideRange(prevDate, minValue, maxValue);
|
|
76
76
|
}
|
|
77
77
|
function isNextRangeInvalid(endDate, minValue, maxValue) {
|
|
78
78
|
const nextDate = endDate.add({ days: 1 });
|
|
79
|
-
return (0,
|
|
79
|
+
return (0, _internationalized_date.isSameDay)(nextDate, endDate) || isDateOutsideRange(nextDate, minValue, maxValue);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
@@ -102,18 +102,18 @@ function getEraFormat(date) {
|
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/shared/date-utils/formatter.ts
|
|
104
104
|
function getDayFormatter(locale, timeZone) {
|
|
105
|
-
return new
|
|
105
|
+
return new _internationalized_date.DateFormatter(locale, {
|
|
106
106
|
weekday: "long",
|
|
107
107
|
month: "long",
|
|
108
108
|
year: "numeric",
|
|
109
109
|
day: "numeric",
|
|
110
|
-
era: getEraFormat((0,
|
|
110
|
+
era: getEraFormat((0, _internationalized_date.toCalendarDateTime)((0, _internationalized_date.today)(timeZone))),
|
|
111
111
|
timeZone
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
function getMonthFormatter(locale, timeZone) {
|
|
115
|
-
const date = (0,
|
|
116
|
-
return new
|
|
115
|
+
const date = (0, _internationalized_date.today)(timeZone);
|
|
116
|
+
return new _internationalized_date.DateFormatter(locale, {
|
|
117
117
|
month: "long",
|
|
118
118
|
year: "numeric",
|
|
119
119
|
era: getEraFormat(date),
|
|
@@ -143,17 +143,17 @@ function formatSelectedDate(startDate, endDate, locale, timeZone) {
|
|
|
143
143
|
let start = startDate;
|
|
144
144
|
let end = endDate ?? startDate;
|
|
145
145
|
let formatter = getDayFormatter(locale, timeZone);
|
|
146
|
-
if ((0,
|
|
146
|
+
if ((0, _internationalized_date.isSameDay)(start, end)) return formatter.format(start.toDate(timeZone));
|
|
147
147
|
return formatRange(start, end, formatter, (start$1, end$1) => `${start$1} – ${end$1}`, timeZone);
|
|
148
148
|
}
|
|
149
149
|
function formatVisibleRange(startDate, endDate, locale, timeZone) {
|
|
150
150
|
const start = startDate;
|
|
151
151
|
const end = endDate ?? startDate;
|
|
152
152
|
const dayFormatter = getDayFormatter(locale, timeZone);
|
|
153
|
-
if (!(0,
|
|
153
|
+
if (!(0, _internationalized_date.isSameDay)(start, (0, _internationalized_date.startOfMonth)(start))) return dayFormatter.formatRange(start.toDate(timeZone), end.toDate(timeZone));
|
|
154
154
|
const monthFormatter = getMonthFormatter(locale, timeZone);
|
|
155
|
-
if ((0,
|
|
156
|
-
if ((0,
|
|
155
|
+
if ((0, _internationalized_date.isSameDay)(end, (0, _internationalized_date.endOfMonth)(start))) return monthFormatter.format(start.toDate(timeZone));
|
|
156
|
+
if ((0, _internationalized_date.isSameDay)(end, (0, _internationalized_date.endOfMonth)(end))) return monthFormatter.formatRange(start.toDate(timeZone), end.toDate(timeZone));
|
|
157
157
|
return "";
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -172,10 +172,10 @@ function normalizeFirstDayOfWeek(firstDayOfWeek) {
|
|
|
172
172
|
return firstDayOfWeek != null ? daysOfTheWeek[firstDayOfWeek] : void 0;
|
|
173
173
|
}
|
|
174
174
|
function getStartOfWeek(date, locale, firstDayOfWeek) {
|
|
175
|
-
return (0,
|
|
175
|
+
return (0, _internationalized_date.startOfWeek)(date, locale, normalizeFirstDayOfWeek(firstDayOfWeek));
|
|
176
176
|
}
|
|
177
177
|
function getEndOfWeek(date, locale, firstDayOfWeek = 0) {
|
|
178
|
-
return (0,
|
|
178
|
+
return (0, _internationalized_date.endOfWeek)(date, locale, normalizeFirstDayOfWeek(firstDayOfWeek));
|
|
179
179
|
}
|
|
180
180
|
function getDaysInWeek(weekIndex, from, locale, firstDayOfWeek) {
|
|
181
181
|
const weekDate = from.add({ weeks: weekIndex });
|
|
@@ -184,26 +184,26 @@ function getDaysInWeek(weekIndex, from, locale, firstDayOfWeek) {
|
|
|
184
184
|
while (dates.length < 7) {
|
|
185
185
|
dates.push(date);
|
|
186
186
|
let nextDate = date.add({ days: 1 });
|
|
187
|
-
if ((0,
|
|
187
|
+
if ((0, _internationalized_date.isSameDay)(date, nextDate)) break;
|
|
188
188
|
date = nextDate;
|
|
189
189
|
}
|
|
190
190
|
return dates;
|
|
191
191
|
}
|
|
192
192
|
function getMonthDays(from, locale, numOfWeeks, firstDayOfWeek) {
|
|
193
193
|
const firstDay = normalizeFirstDayOfWeek(firstDayOfWeek);
|
|
194
|
-
const monthWeeks = numOfWeeks ?? (0,
|
|
194
|
+
const monthWeeks = numOfWeeks ?? (0, _internationalized_date.getWeeksInMonth)(from, locale, firstDay);
|
|
195
195
|
return [...new Array(monthWeeks).keys()].map((week) => getDaysInWeek(week, from, locale, firstDayOfWeek));
|
|
196
196
|
}
|
|
197
197
|
function getWeekdayFormats(locale, timeZone) {
|
|
198
|
-
const longFormat = new
|
|
198
|
+
const longFormat = new _internationalized_date.DateFormatter(locale, {
|
|
199
199
|
weekday: "long",
|
|
200
200
|
timeZone
|
|
201
201
|
});
|
|
202
|
-
const shortFormat = new
|
|
202
|
+
const shortFormat = new _internationalized_date.DateFormatter(locale, {
|
|
203
203
|
weekday: "short",
|
|
204
204
|
timeZone
|
|
205
205
|
});
|
|
206
|
-
const narrowFormat = new
|
|
206
|
+
const narrowFormat = new _internationalized_date.DateFormatter(locale, {
|
|
207
207
|
weekday: "narrow",
|
|
208
208
|
timeZone
|
|
209
209
|
});
|
|
@@ -265,10 +265,10 @@ function getDecadeRange(year, opts) {
|
|
|
265
265
|
//#endregion
|
|
266
266
|
//#region src/shared/date-utils/mutation.ts
|
|
267
267
|
function getTodayDate(timeZone) {
|
|
268
|
-
return (0,
|
|
268
|
+
return (0, _internationalized_date.today)(timeZone ?? (0, _internationalized_date.getLocalTimeZone)());
|
|
269
269
|
}
|
|
270
270
|
function setCalendar(date, calendar) {
|
|
271
|
-
return (0,
|
|
271
|
+
return (0, _internationalized_date.toCalendar)((0, _internationalized_date.toCalendarDateTime)(date), calendar);
|
|
272
272
|
}
|
|
273
273
|
function setDate(date, startDate, isDateUnavailable$1, locale, minValue, maxValue) {
|
|
274
274
|
let result;
|
|
@@ -349,11 +349,11 @@ function getSectionStart(focusedDate, startDate, visibleDuration, locale, minVal
|
|
|
349
349
|
startDate
|
|
350
350
|
});
|
|
351
351
|
if (visibleDuration.weeks) return adjust({
|
|
352
|
-
focusedDate: (0,
|
|
352
|
+
focusedDate: (0, _internationalized_date.startOfWeek)(focusedDate, locale),
|
|
353
353
|
startDate
|
|
354
354
|
});
|
|
355
355
|
if (visibleDuration.months || visibleDuration.years) return adjust({
|
|
356
|
-
focusedDate: (0,
|
|
356
|
+
focusedDate: (0, _internationalized_date.startOfMonth)(focusedDate),
|
|
357
357
|
startDate
|
|
358
358
|
});
|
|
359
359
|
}
|
|
@@ -365,11 +365,11 @@ function getSectionEnd(focusedDate, startDate, visibleDuration, locale, minValue
|
|
|
365
365
|
startDate
|
|
366
366
|
});
|
|
367
367
|
if (visibleDuration.weeks) return adjust({
|
|
368
|
-
focusedDate: (0,
|
|
368
|
+
focusedDate: (0, _internationalized_date.endOfWeek)(focusedDate, locale),
|
|
369
369
|
startDate
|
|
370
370
|
});
|
|
371
371
|
if (visibleDuration.months || visibleDuration.years) return adjust({
|
|
372
|
-
focusedDate: (0,
|
|
372
|
+
focusedDate: (0, _internationalized_date.endOfMonth)(focusedDate),
|
|
373
373
|
startDate
|
|
374
374
|
});
|
|
375
375
|
}
|
|
@@ -420,15 +420,15 @@ function parseDateString(date, locale, timeZone) {
|
|
|
420
420
|
day || (day = curr.getDate().toString());
|
|
421
421
|
}
|
|
422
422
|
if (!isValidYear(year)) year = normalizeYear(year);
|
|
423
|
-
if (isValidYear(year) && isValidMonth(month) && isValidDay(day)) return new
|
|
423
|
+
if (isValidYear(year) && isValidMonth(month) && isValidDay(day)) return new _internationalized_date.CalendarDate(+year, +month, +day);
|
|
424
424
|
const time = Date.parse(date);
|
|
425
425
|
if (!isNaN(time)) {
|
|
426
426
|
const date$1 = new Date(time);
|
|
427
|
-
return new
|
|
427
|
+
return new _internationalized_date.CalendarDate(date$1.getFullYear(), date$1.getMonth() + 1, date$1.getDate());
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
function createRegex(locale, timeZone) {
|
|
431
|
-
return new
|
|
431
|
+
return new _internationalized_date.DateFormatter(locale, {
|
|
432
432
|
day: "numeric",
|
|
433
433
|
month: "numeric",
|
|
434
434
|
year: "numeric",
|
|
@@ -452,21 +452,21 @@ function extract(pattern, str) {
|
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region src/shared/date-utils/preset.ts
|
|
454
454
|
function getDateRangePreset(preset, locale, timeZone) {
|
|
455
|
-
const today$2 = (0,
|
|
455
|
+
const today$2 = (0, _internationalized_date.toCalendarDate)((0, _internationalized_date.now)(timeZone));
|
|
456
456
|
switch (preset) {
|
|
457
|
-
case "thisWeek": return [(0,
|
|
458
|
-
case "thisMonth": return [(0,
|
|
459
|
-
case "thisQuarter": return [(0,
|
|
460
|
-
case "thisYear": return [(0,
|
|
457
|
+
case "thisWeek": return [(0, _internationalized_date.startOfWeek)(today$2, locale), (0, _internationalized_date.endOfWeek)(today$2, locale)];
|
|
458
|
+
case "thisMonth": return [(0, _internationalized_date.startOfMonth)(today$2), today$2];
|
|
459
|
+
case "thisQuarter": return [(0, _internationalized_date.startOfMonth)(today$2).add({ months: -((today$2.month - 1) % 3) }), today$2];
|
|
460
|
+
case "thisYear": return [(0, _internationalized_date.startOfYear)(today$2), today$2];
|
|
461
461
|
case "last3Days": return [today$2.add({ days: -2 }), today$2];
|
|
462
462
|
case "last7Days": return [today$2.add({ days: -6 }), today$2];
|
|
463
463
|
case "last14Days": return [today$2.add({ days: -13 }), today$2];
|
|
464
464
|
case "last30Days": return [today$2.add({ days: -29 }), today$2];
|
|
465
465
|
case "last90Days": return [today$2.add({ days: -89 }), today$2];
|
|
466
|
-
case "lastMonth": return [(0,
|
|
467
|
-
case "lastQuarter": return [(0,
|
|
468
|
-
case "lastWeek": return [(0,
|
|
469
|
-
case "lastYear": return [(0,
|
|
466
|
+
case "lastMonth": return [(0, _internationalized_date.startOfMonth)(today$2.add({ months: -1 })), (0, _internationalized_date.endOfMonth)(today$2.add({ months: -1 }))];
|
|
467
|
+
case "lastQuarter": return [(0, _internationalized_date.startOfMonth)(today$2.add({ months: -((today$2.month - 1) % 3) - 3 })), (0, _internationalized_date.endOfMonth)(today$2.add({ months: -((today$2.month - 1) % 3) - 1 }))];
|
|
468
|
+
case "lastWeek": return [(0, _internationalized_date.startOfWeek)(today$2, locale).add({ weeks: -1 }), (0, _internationalized_date.endOfWeek)(today$2, locale).add({ weeks: -1 })];
|
|
469
|
+
case "lastYear": return [(0, _internationalized_date.startOfYear)(today$2.add({ years: -1 })), (0, _internationalized_date.endOfYear)(today$2.add({ years: -1 }))];
|
|
470
470
|
default: throw new Error(`Invalid date range preset: ${preset}`);
|
|
471
471
|
}
|
|
472
472
|
}
|
package/dist/date-utils.cjs
CHANGED
package/dist/date-utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DateRangePreset, i as DateGranularity, n as DateAlignment, r as DateAvailableFn, t as DateAdjustFn } from "./types-
|
|
1
|
+
import { a as DateRangePreset, i as DateGranularity, n as DateAlignment, r as DateAvailableFn, t as DateAdjustFn } from "./types-GxLIgJib.cjs";
|
|
2
2
|
import * as _internationalized_date0 from "@internationalized/date";
|
|
3
3
|
import { Calendar, DateDuration, DateFormatter, DateValue } from "@internationalized/date";
|
|
4
4
|
|
package/dist/date-utils.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as getMonthFormatter, B as constrainValue, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getUnitDuration, G as isPreviousRangeInvalid, H as isDateOutsideRange, I as alignCenter, J as DateAdjustFn, K as alignDate, L as alignEnd, M as formatSelectedDate, N as formatVisibleRange, O as getWeekdayFormats, P as getEndDate, R as alignStart, S as getDaysInWeek, T as getMonthNames, U as isDateUnavailable, V as isDateEqual, W as isNextRangeInvalid, X as DateRangePreset, Y as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as formatRange, k as getDayFormatter, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignStartDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as constrainStart } from "./index-
|
|
1
|
+
import { A as getMonthFormatter, B as constrainValue, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getUnitDuration, G as isPreviousRangeInvalid, H as isDateOutsideRange, I as alignCenter, J as DateAdjustFn, K as alignDate, L as alignEnd, M as formatSelectedDate, N as formatVisibleRange, O as getWeekdayFormats, P as getEndDate, R as alignStart, S as getDaysInWeek, T as getMonthNames, U as isDateUnavailable, V as isDateEqual, W as isNextRangeInvalid, X as DateRangePreset, Y as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as formatRange, k as getDayFormatter, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignStartDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as constrainStart } from "./index-BqhWpjZh.mjs";
|
|
2
2
|
export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -9,7 +9,7 @@ function _typeof(o) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/toPrimitive.js
|
|
13
13
|
function toPrimitive(t, r) {
|
|
14
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -22,14 +22,14 @@ function toPrimitive(t, r) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.
|
|
25
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/toPropertyKey.js
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
28
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region \0@oxc-project+runtime@0.
|
|
32
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/defineProperty.js
|
|
33
33
|
function _defineProperty(e, r, t) {
|
|
34
34
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35
35
|
value: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/typeof.js
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
5
5
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -10,7 +10,7 @@ function _typeof(o) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
13
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/toPrimitive.js
|
|
14
14
|
function toPrimitive(t, r) {
|
|
15
15
|
if ("object" != _typeof(t) || !t) return t;
|
|
16
16
|
var e = t[Symbol.toPrimitive];
|
|
@@ -23,14 +23,14 @@ function toPrimitive(t, r) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/toPropertyKey.js
|
|
27
27
|
function toPropertyKey(t) {
|
|
28
28
|
var i = toPrimitive(t, "string");
|
|
29
29
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/defineProperty.js
|
|
34
34
|
function _defineProperty(e, r, t) {
|
|
35
35
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
36
|
value: t,
|