@bevelo/vue 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/dist/accordion.cjs +89 -0
- package/dist/accordion.d.cts +145 -0
- package/dist/accordion.d.ts +145 -0
- package/dist/accordion.js +88 -0
- package/dist/agent.cjs +74 -0
- package/dist/agent.d.cts +2 -0
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +1 -0
- package/dist/alert-dialog.cjs +48 -0
- package/dist/alert-dialog.d.cts +142 -0
- package/dist/alert-dialog.d.ts +142 -0
- package/dist/alert-dialog.js +47 -0
- package/dist/alert.cjs +77 -0
- package/dist/alert.d.cts +64 -0
- package/dist/alert.d.ts +64 -0
- package/dist/alert.js +76 -0
- package/dist/aspect-ratio.cjs +21 -0
- package/dist/aspect-ratio.d.cts +13 -0
- package/dist/aspect-ratio.d.ts +13 -0
- package/dist/aspect-ratio.js +21 -0
- package/dist/async-options.cjs +76 -0
- package/dist/async-options.d.cts +49 -0
- package/dist/async-options.d.ts +49 -0
- package/dist/async-options.js +75 -0
- package/dist/autocomplete.cjs +274 -0
- package/dist/autocomplete.d.cts +309 -0
- package/dist/autocomplete.d.ts +309 -0
- package/dist/autocomplete.js +273 -0
- package/dist/avatar.cjs +51 -0
- package/dist/avatar.d.cts +69 -0
- package/dist/avatar.d.ts +69 -0
- package/dist/avatar.js +50 -0
- package/dist/badge.cjs +41 -0
- package/dist/badge.d.cts +39 -0
- package/dist/badge.d.ts +39 -0
- package/dist/badge.js +40 -0
- package/dist/breadcrumb.cjs +59 -0
- package/dist/breadcrumb.d.cts +40 -0
- package/dist/breadcrumb.d.ts +40 -0
- package/dist/breadcrumb.js +58 -0
- package/dist/button.cjs +56 -0
- package/dist/button.d.cts +79 -0
- package/dist/button.d.ts +79 -0
- package/dist/button.js +55 -0
- package/dist/calendar-Bcc6HKc9.js +643 -0
- package/dist/calendar-vHGhj3RI.cjs +720 -0
- package/dist/calendar.cjs +4 -0
- package/dist/calendar.d.cts +316 -0
- package/dist/calendar.d.ts +316 -0
- package/dist/calendar.js +1 -0
- package/dist/card-B_ZoLCvt.d.cts +61 -0
- package/dist/card-B_ZoLCvt.d.ts +61 -0
- package/dist/card-CZHRix0r.js +99 -0
- package/dist/card-CvGfpsiU.cjs +140 -0
- package/dist/card.cjs +9 -0
- package/dist/card.d.cts +2 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +1 -0
- package/dist/carousel.cjs +225 -0
- package/dist/carousel.d.cts +214 -0
- package/dist/carousel.d.ts +214 -0
- package/dist/carousel.js +224 -0
- package/dist/checkbox-group.cjs +93 -0
- package/dist/checkbox-group.d.cts +108 -0
- package/dist/checkbox-group.d.ts +108 -0
- package/dist/checkbox-group.js +91 -0
- package/dist/checkbox.cjs +117 -0
- package/dist/checkbox.d.cts +153 -0
- package/dist/checkbox.d.ts +153 -0
- package/dist/checkbox.js +116 -0
- package/dist/collapsible.cjs +70 -0
- package/dist/collapsible.d.cts +141 -0
- package/dist/collapsible.d.ts +141 -0
- package/dist/collapsible.js +69 -0
- package/dist/color-picker.cjs +225 -0
- package/dist/color-picker.d.cts +180 -0
- package/dist/color-picker.d.ts +180 -0
- package/dist/color-picker.js +212 -0
- package/dist/combobox-CDHIXr6J.d.ts +735 -0
- package/dist/combobox-D39Waj6L.d.cts +735 -0
- package/dist/combobox-DlCU0vS1.cjs +945 -0
- package/dist/combobox-wLdV6VA_.js +802 -0
- package/dist/combobox.cjs +26 -0
- package/dist/combobox.d.cts +3 -0
- package/dist/combobox.d.ts +3 -0
- package/dist/combobox.js +1 -0
- package/dist/command-CEJACYpR.d.ts +404 -0
- package/dist/command-CqHZVivR.js +693 -0
- package/dist/command-D54bj6RJ.cjs +836 -0
- package/dist/command-rAVp-wbf.d.cts +404 -0
- package/dist/command.cjs +15 -0
- package/dist/command.d.cts +2 -0
- package/dist/command.d.ts +2 -0
- package/dist/command.js +1 -0
- package/dist/context-menu-BPsgeLQm.cjs +170 -0
- package/dist/context-menu-ByhKzWTm.d.ts +129 -0
- package/dist/context-menu-Co3ABcdp.js +153 -0
- package/dist/context-menu-USbhMQuc.d.cts +129 -0
- package/dist/context-menu.cjs +6 -0
- package/dist/context-menu.d.cts +2 -0
- package/dist/context-menu.d.ts +2 -0
- package/dist/context-menu.js +2 -0
- package/dist/date-input.cjs +374 -0
- package/dist/date-input.d.cts +234 -0
- package/dist/date-input.d.ts +234 -0
- package/dist/date-input.js +371 -0
- package/dist/date-picker-D1mygz_Y.js +891 -0
- package/dist/date-picker-D_hqHHAV.cjs +938 -0
- package/dist/date-picker.cjs +4 -0
- package/dist/date-picker.d.cts +447 -0
- package/dist/date-picker.d.ts +447 -0
- package/dist/date-picker.js +1 -0
- package/dist/describe-BlNg9SbK.js +25 -0
- package/dist/describe-D_dLtwde.cjs +42 -0
- package/dist/dialog-view-CKtpbGq_.js +26 -0
- package/dist/dialog-view-swgEQvlZ.cjs +31 -0
- package/dist/dialog.cjs +66 -0
- package/dist/dialog.d.cts +158 -0
- package/dist/dialog.d.ts +158 -0
- package/dist/dialog.js +63 -0
- package/dist/direction.cjs +21 -0
- package/dist/direction.d.cts +13 -0
- package/dist/direction.d.ts +13 -0
- package/dist/direction.js +21 -0
- package/dist/dnd.cjs +103 -0
- package/dist/dnd.d.cts +54 -0
- package/dist/dnd.d.ts +54 -0
- package/dist/dnd.js +98 -0
- package/dist/drawer.cjs +137 -0
- package/dist/drawer.d.cts +190 -0
- package/dist/drawer.d.ts +190 -0
- package/dist/drawer.js +134 -0
- package/dist/empty-state.cjs +75 -0
- package/dist/empty-state.d.cts +46 -0
- package/dist/empty-state.d.ts +46 -0
- package/dist/empty-state.js +74 -0
- package/dist/engine-refs-8O6mHfYd.d.cts +4 -0
- package/dist/engine-refs-8O6mHfYd.d.ts +4 -0
- package/dist/engine-refs-CPWFFTfA.cjs +32 -0
- package/dist/engine-refs-sojZQs1R.js +21 -0
- package/dist/error-state.cjs +86 -0
- package/dist/error-state.d.cts +54 -0
- package/dist/error-state.d.ts +54 -0
- package/dist/error-state.js +85 -0
- package/dist/field.cjs +123 -0
- package/dist/field.d.cts +100 -0
- package/dist/field.d.ts +100 -0
- package/dist/field.js +122 -0
- package/dist/file-input.cjs +117 -0
- package/dist/file-input.d.cts +168 -0
- package/dist/file-input.d.ts +168 -0
- package/dist/file-input.js +116 -0
- package/dist/form-CKus_NQE.cjs +23 -0
- package/dist/form-y7b0fcqL.js +18 -0
- package/dist/gauge-parts-BVmw61GR.js +64 -0
- package/dist/gauge-parts-DjqBK9pL.d.cts +15 -0
- package/dist/gauge-parts-V31Fma77.cjs +75 -0
- package/dist/gauge-parts-mAgseDD4.d.ts +15 -0
- package/dist/headless-B3zQWaJm.js +225 -0
- package/dist/headless-BQe1X1Vf.d.ts +2 -0
- package/dist/headless-CbQgxdK1.d.cts +2 -0
- package/dist/headless-D88yFw8W.cjs +248 -0
- package/dist/hover-card.cjs +139 -0
- package/dist/hover-card.d.cts +200 -0
- package/dist/hover-card.d.ts +200 -0
- package/dist/hover-card.js +137 -0
- package/dist/icon-button.cjs +75 -0
- package/dist/icon-button.d.cts +104 -0
- package/dist/icon-button.d.ts +104 -0
- package/dist/icon-button.js +74 -0
- package/dist/image-cropper.cjs +106 -0
- package/dist/image-cropper.d.cts +7 -0
- package/dist/image-cropper.d.ts +7 -0
- package/dist/image-cropper.js +105 -0
- package/dist/image.cjs +87 -0
- package/dist/image.d.cts +92 -0
- package/dist/image.d.ts +92 -0
- package/dist/image.js +86 -0
- package/dist/index.cjs +1685 -0
- package/dist/index.d.cts +1195 -0
- package/dist/index.d.ts +1195 -0
- package/dist/index.js +1042 -0
- package/dist/input-group.cjs +91 -0
- package/dist/input-group.d.cts +84 -0
- package/dist/input-group.d.ts +84 -0
- package/dist/input-group.js +90 -0
- package/dist/input.cjs +114 -0
- package/dist/input.d.cts +186 -0
- package/dist/input.d.ts +186 -0
- package/dist/input.js +113 -0
- package/dist/item-B-QdNtAl.cjs +264 -0
- package/dist/item-D6GSb0WD.d.ts +144 -0
- package/dist/item-DPJnk7ED.js +199 -0
- package/dist/item-DyrvCrsL.d.cts +144 -0
- package/dist/item.cjs +10 -0
- package/dist/item.d.cts +2 -0
- package/dist/item.d.ts +2 -0
- package/dist/item.js +1 -0
- package/dist/kbd.cjs +55 -0
- package/dist/kbd.d.cts +38 -0
- package/dist/kbd.d.ts +38 -0
- package/dist/kbd.js +54 -0
- package/dist/label.cjs +41 -0
- package/dist/label.d.cts +40 -0
- package/dist/label.d.ts +40 -0
- package/dist/label.js +40 -0
- package/dist/listbox.cjs +85 -0
- package/dist/listbox.d.cts +200 -0
- package/dist/listbox.d.ts +200 -0
- package/dist/listbox.js +84 -0
- package/dist/loader.cjs +66 -0
- package/dist/loader.d.cts +68 -0
- package/dist/loader.d.ts +68 -0
- package/dist/loader.js +65 -0
- package/dist/mention-menu.cjs +126 -0
- package/dist/mention-menu.d.cts +144 -0
- package/dist/mention-menu.d.ts +144 -0
- package/dist/mention-menu.js +125 -0
- package/dist/menu.cjs +182 -0
- package/dist/menu.d.cts +240 -0
- package/dist/menu.d.ts +240 -0
- package/dist/menu.js +181 -0
- package/dist/menubar.cjs +38 -0
- package/dist/menubar.d.cts +43 -0
- package/dist/menubar.d.ts +43 -0
- package/dist/menubar.js +37 -0
- package/dist/meter.cjs +113 -0
- package/dist/meter.d.cts +124 -0
- package/dist/meter.d.ts +124 -0
- package/dist/meter.js +108 -0
- package/dist/native-select-52jYpA3c.d.cts +136 -0
- package/dist/native-select-BdJojSQt.d.ts +136 -0
- package/dist/native-select-BwptULNE.js +129 -0
- package/dist/native-select-DjBGWFoh.cjs +146 -0
- package/dist/native-select.cjs +5 -0
- package/dist/native-select.d.cts +2 -0
- package/dist/native-select.d.ts +2 -0
- package/dist/native-select.js +1 -0
- package/dist/navigation-menu.cjs +108 -0
- package/dist/navigation-menu.d.cts +245 -0
- package/dist/navigation-menu.d.ts +245 -0
- package/dist/navigation-menu.js +107 -0
- package/dist/number-input.cjs +189 -0
- package/dist/number-input.d.cts +232 -0
- package/dist/number-input.d.ts +232 -0
- package/dist/number-input.js +187 -0
- package/dist/option-row-DFCj-NoL.js +64 -0
- package/dist/option-row-Dlc6brXH.d.cts +30 -0
- package/dist/option-row-hLg6Ye86.cjs +105 -0
- package/dist/option-row-yJqjEx0G.d.ts +30 -0
- package/dist/options-BDn36q6n.cjs +111 -0
- package/dist/options-BlkyK-uO.js +106 -0
- package/dist/options-CGl5jBEY.d.ts +19 -0
- package/dist/options-DUGLoksA.d.cts +19 -0
- package/dist/otp-input.cjs +85 -0
- package/dist/otp-input.d.cts +113 -0
- package/dist/otp-input.d.ts +113 -0
- package/dist/otp-input.js +84 -0
- package/dist/overlay-controller-78GSJGbM.js +76 -0
- package/dist/overlay-controller-BDeITPoR.d.cts +16 -0
- package/dist/overlay-controller-DmaZ8FLl.cjs +93 -0
- package/dist/overlay-controller-HrMdTomI.d.ts +16 -0
- package/dist/pagination.cjs +87 -0
- package/dist/pagination.d.cts +112 -0
- package/dist/pagination.d.ts +112 -0
- package/dist/pagination.js +86 -0
- package/dist/parts-9zrUGbuI.js +84 -0
- package/dist/parts-DcYZV8ug.cjs +95 -0
- package/dist/password-input.cjs +144 -0
- package/dist/password-input.d.cts +151 -0
- package/dist/password-input.d.ts +151 -0
- package/dist/password-input.js +143 -0
- package/dist/placement-C_WRqvZk.js +49 -0
- package/dist/placement-ChEh6uxa.cjs +60 -0
- package/dist/popover.cjs +159 -0
- package/dist/popover.d.cts +185 -0
- package/dist/popover.d.ts +185 -0
- package/dist/popover.js +157 -0
- package/dist/preferences.cjs +96 -0
- package/dist/preferences.d.cts +36 -0
- package/dist/preferences.d.ts +36 -0
- package/dist/preferences.js +94 -0
- package/dist/presence.cjs +85 -0
- package/dist/presence.d.cts +25 -0
- package/dist/presence.d.ts +25 -0
- package/dist/presence.js +83 -0
- package/dist/progress.cjs +111 -0
- package/dist/progress.d.cts +109 -0
- package/dist/progress.d.ts +109 -0
- package/dist/progress.js +106 -0
- package/dist/query.cjs +152 -0
- package/dist/query.d.cts +68 -0
- package/dist/query.d.ts +68 -0
- package/dist/query.js +142 -0
- package/dist/radio.cjs +102 -0
- package/dist/radio.d.cts +136 -0
- package/dist/radio.d.ts +136 -0
- package/dist/radio.js +101 -0
- package/dist/rating.cjs +88 -0
- package/dist/rating.d.cts +100 -0
- package/dist/rating.d.ts +100 -0
- package/dist/rating.js +87 -0
- package/dist/resizable.cjs +57 -0
- package/dist/resizable.d.cts +119 -0
- package/dist/resizable.d.ts +119 -0
- package/dist/resizable.js +56 -0
- package/dist/scroll-area.cjs +59 -0
- package/dist/scroll-area.d.cts +72 -0
- package/dist/scroll-area.d.ts +72 -0
- package/dist/scroll-area.js +58 -0
- package/dist/segmented-control.cjs +88 -0
- package/dist/segmented-control.d.cts +121 -0
- package/dist/segmented-control.d.ts +121 -0
- package/dist/segmented-control.js +86 -0
- package/dist/select.cjs +160 -0
- package/dist/select.d.cts +385 -0
- package/dist/select.d.ts +385 -0
- package/dist/select.js +159 -0
- package/dist/separator.cjs +32 -0
- package/dist/separator.d.cts +31 -0
- package/dist/separator.d.ts +31 -0
- package/dist/separator.js +31 -0
- package/dist/sheet.cjs +294 -0
- package/dist/sheet.d.cts +456 -0
- package/dist/sheet.d.ts +456 -0
- package/dist/sheet.js +292 -0
- package/dist/sidebar-C-OdvGzD.d.cts +96 -0
- package/dist/sidebar-CZ1-p0-V.d.ts +96 -0
- package/dist/sidebar-DC-mpzMR.js +87 -0
- package/dist/sidebar-gSAgHdkn.cjs +110 -0
- package/dist/sidebar.cjs +6 -0
- package/dist/sidebar.d.cts +2 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +1 -0
- package/dist/skeleton.cjs +46 -0
- package/dist/skeleton.d.cts +47 -0
- package/dist/skeleton.d.ts +47 -0
- package/dist/skeleton.js +45 -0
- package/dist/slider.cjs +118 -0
- package/dist/slider.d.cts +181 -0
- package/dist/slider.d.ts +181 -0
- package/dist/slider.js +117 -0
- package/dist/sortable-board-strict.cjs +149 -0
- package/dist/sortable-board-strict.d.cts +181 -0
- package/dist/sortable-board-strict.d.ts +181 -0
- package/dist/sortable-board-strict.js +148 -0
- package/dist/sortable-engine.cjs +136 -0
- package/dist/sortable-engine.d.cts +237 -0
- package/dist/sortable-engine.d.ts +237 -0
- package/dist/sortable-engine.js +135 -0
- package/dist/sortable.cjs +67 -0
- package/dist/sortable.d.cts +217 -0
- package/dist/sortable.d.ts +217 -0
- package/dist/sortable.js +66 -0
- package/dist/spinner.cjs +32 -0
- package/dist/spinner.d.cts +31 -0
- package/dist/spinner.d.ts +31 -0
- package/dist/spinner.js +31 -0
- package/dist/steps-C9Jmrt8G.cjs +122 -0
- package/dist/steps-Cs8AfxV7.js +81 -0
- package/dist/steps-DW5NkzVj.d.ts +71 -0
- package/dist/steps-ymRMdju5.d.cts +71 -0
- package/dist/steps.cjs +8 -0
- package/dist/steps.d.cts +2 -0
- package/dist/steps.d.ts +2 -0
- package/dist/steps.js +1 -0
- package/dist/switch.cjs +100 -0
- package/dist/switch.d.cts +144 -0
- package/dist/switch.d.ts +144 -0
- package/dist/switch.js +99 -0
- package/dist/table.cjs +124 -0
- package/dist/table.d.cts +124 -0
- package/dist/table.d.ts +124 -0
- package/dist/table.js +123 -0
- package/dist/tabs.cjs +89 -0
- package/dist/tabs.d.cts +160 -0
- package/dist/tabs.d.ts +160 -0
- package/dist/tabs.js +88 -0
- package/dist/textarea.cjs +140 -0
- package/dist/textarea.d.cts +231 -0
- package/dist/textarea.d.ts +231 -0
- package/dist/textarea.js +139 -0
- package/dist/time-input.cjs +117 -0
- package/dist/time-input.d.cts +140 -0
- package/dist/time-input.d.ts +140 -0
- package/dist/time-input.js +116 -0
- package/dist/timeline.cjs +82 -0
- package/dist/timeline.d.cts +62 -0
- package/dist/timeline.d.ts +62 -0
- package/dist/timeline.js +81 -0
- package/dist/toast-CfkRzdNd.js +354 -0
- package/dist/toast-DyezF7lm.cjs +401 -0
- package/dist/toast.cjs +16 -0
- package/dist/toast.d.cts +275 -0
- package/dist/toast.d.ts +275 -0
- package/dist/toast.js +1 -0
- package/dist/toggle-group.cjs +65 -0
- package/dist/toggle-group.d.cts +128 -0
- package/dist/toggle-group.d.ts +128 -0
- package/dist/toggle-group.js +64 -0
- package/dist/toggle.cjs +64 -0
- package/dist/toggle.d.cts +97 -0
- package/dist/toggle.d.ts +97 -0
- package/dist/toggle.js +63 -0
- package/dist/token-input-BIC9VLMG.d.cts +170 -0
- package/dist/token-input-BTReOHIv.cjs +336 -0
- package/dist/token-input-CQnZ6-pO.d.ts +170 -0
- package/dist/token-input-DtcCZrcC.js +295 -0
- package/dist/token-input.cjs +9 -0
- package/dist/token-input.d.cts +2 -0
- package/dist/token-input.d.ts +2 -0
- package/dist/token-input.js +1 -0
- package/dist/toolbar.cjs +62 -0
- package/dist/toolbar.d.cts +58 -0
- package/dist/toolbar.d.ts +58 -0
- package/dist/toolbar.js +61 -0
- package/dist/tooltip.cjs +149 -0
- package/dist/tooltip.d.cts +208 -0
- package/dist/tooltip.d.ts +208 -0
- package/dist/tooltip.js +147 -0
- package/dist/tree-grid.cjs +127 -0
- package/dist/tree-grid.d.cts +130 -0
- package/dist/tree-grid.d.ts +130 -0
- package/dist/tree-grid.js +126 -0
- package/dist/tree.cjs +227 -0
- package/dist/tree.d.cts +223 -0
- package/dist/tree.d.ts +223 -0
- package/dist/tree.js +226 -0
- package/dist/trigger-menu-8FAwypbs.d.cts +347 -0
- package/dist/trigger-menu-B898rWkz.cjs +502 -0
- package/dist/trigger-menu-C2YHe7es.d.ts +347 -0
- package/dist/trigger-menu-CxzocSWO.js +431 -0
- package/dist/trigger-menu.cjs +22 -0
- package/dist/trigger-menu.d.cts +2 -0
- package/dist/trigger-menu.d.ts +2 -0
- package/dist/trigger-menu.js +2 -0
- package/dist/virtual-list-strict.cjs +126 -0
- package/dist/virtual-list-strict.d.cts +69 -0
- package/dist/virtual-list-strict.d.ts +69 -0
- package/dist/virtual-list-strict.js +125 -0
- package/dist/virtual-list.cjs +65 -0
- package/dist/virtual-list.d.cts +82 -0
- package/dist/virtual-list.d.ts +82 -0
- package/dist/virtual-list.js +64 -0
- package/dist/virtual.cjs +27 -0
- package/dist/virtual.d.cts +30 -0
- package/dist/virtual.d.ts +30 -0
- package/dist/virtual.js +26 -0
- package/dist/vue-helpers-Bh_YF48i.cjs +102 -0
- package/dist/vue-helpers-Z3oOAHYB.js +55 -0
- package/dist/waterfall-chart.cjs +114 -0
- package/dist/waterfall-chart.d.cts +117 -0
- package/dist/waterfall-chart.d.ts +117 -0
- package/dist/waterfall-chart.js +113 -0
- package/dist/waterfall.cjs +296 -0
- package/dist/waterfall.d.cts +219 -0
- package/dist/waterfall.d.ts +219 -0
- package/dist/waterfall.js +284 -0
- package/package.json +518 -3
- package/README.md +0 -3
|
@@ -0,0 +1,938 @@
|
|
|
1
|
+
const require_headless = require("./headless-D88yFw8W.cjs");
|
|
2
|
+
const require_calendar = require("./calendar-vHGhj3RI.cjs");
|
|
3
|
+
const require_options = require("./options-BDn36q6n.cjs");
|
|
4
|
+
const require_placement = require("./placement-ChEh6uxa.cjs");
|
|
5
|
+
let _bevelo_core = require("@bevelo/core");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
let _bevelo_date = require("@bevelo/date");
|
|
8
|
+
// src/date-picker-compound.ts
|
|
9
|
+
const datePickerScopeKey = Symbol("date-picker-scope");
|
|
10
|
+
const elementRef = (holder, kind) => (node) => {
|
|
11
|
+
holder.value = node instanceof kind ? node : null;
|
|
12
|
+
};
|
|
13
|
+
/** The date field; `end` makes it a range's second field. */
|
|
14
|
+
const DatePickerInput = (0, vue.defineComponent)({
|
|
15
|
+
name: "DatePickerInput",
|
|
16
|
+
inheritAttrs: false,
|
|
17
|
+
props: { end: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
} },
|
|
21
|
+
setup(props, { attrs }) {
|
|
22
|
+
const scope = (0, vue.inject)(datePickerScopeKey, null);
|
|
23
|
+
return () => {
|
|
24
|
+
if (scope === null) return (0, vue.h)("input", {
|
|
25
|
+
"data-part": "input",
|
|
26
|
+
"data-slot": "date-picker-input",
|
|
27
|
+
...attrs
|
|
28
|
+
});
|
|
29
|
+
if (scope.mode() !== "range") return require_headless.renderPart(scope.handle, "input", {
|
|
30
|
+
placeholder: (0, _bevelo_core.datePlaceholder)(scope.locale()),
|
|
31
|
+
...attrs,
|
|
32
|
+
id: attrs.id ?? scope.id(),
|
|
33
|
+
ref: elementRef(scope.field, HTMLInputElement)
|
|
34
|
+
});
|
|
35
|
+
const end = props.end;
|
|
36
|
+
return (0, vue.h)("input", {
|
|
37
|
+
type: "text",
|
|
38
|
+
inputmode: "numeric",
|
|
39
|
+
autocomplete: "off",
|
|
40
|
+
disabled: scope.disabled() || void 0,
|
|
41
|
+
readonly: scope.readOnly() || void 0,
|
|
42
|
+
"aria-haspopup": "dialog",
|
|
43
|
+
"aria-expanded": scope.open() ? "true" : "false",
|
|
44
|
+
"data-slot": "date-picker-input",
|
|
45
|
+
"data-end": end ? "" : void 0,
|
|
46
|
+
placeholder: (0, _bevelo_core.datePlaceholder)(scope.locale()),
|
|
47
|
+
...attrs,
|
|
48
|
+
id: end ? attrs.id : attrs.id ?? scope.id(),
|
|
49
|
+
value: end ? scope.endText() : scope.startText(),
|
|
50
|
+
...end ? {} : { ref: elementRef(scope.field, HTMLInputElement) },
|
|
51
|
+
onInput: (event) => scope.setText(end, event.currentTarget.value),
|
|
52
|
+
onKeydown: (event) => {
|
|
53
|
+
if (event.defaultPrevented) return;
|
|
54
|
+
if (event.key === "Enter") {
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
scope.commitText(end);
|
|
57
|
+
scope.kernel.open();
|
|
58
|
+
} else if (event.key === "ArrowDown") {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
scope.kernel.open();
|
|
61
|
+
} else if (event.key === "Escape") {
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
scope.kernel.close();
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
onBlur: () => scope.commitText(end)
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
/** The disclosure button that toggles the panel. */
|
|
72
|
+
const DatePickerTrigger = (0, vue.defineComponent)({
|
|
73
|
+
name: "DatePickerTrigger",
|
|
74
|
+
inheritAttrs: false,
|
|
75
|
+
setup(_props, { attrs, slots }) {
|
|
76
|
+
const scope = (0, vue.inject)(datePickerScopeKey, null);
|
|
77
|
+
return () => {
|
|
78
|
+
if (scope === null) return (0, vue.h)("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
"data-part": "trigger",
|
|
81
|
+
...attrs
|
|
82
|
+
}, slots.default?.());
|
|
83
|
+
return require_headless.renderPart(scope.handle, "trigger", {
|
|
84
|
+
...attrs,
|
|
85
|
+
ref: elementRef(scope.trigger, HTMLButtonElement)
|
|
86
|
+
}, slots.default?.() ?? "▾");
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
/** The panel, positioned against the field (or `anchor`); it hosts the calendar parts. */
|
|
91
|
+
const DatePickerContent = (0, vue.defineComponent)({
|
|
92
|
+
name: "DatePickerContent",
|
|
93
|
+
inheritAttrs: false,
|
|
94
|
+
props: {
|
|
95
|
+
...require_placement.placementProps,
|
|
96
|
+
anchor: {
|
|
97
|
+
type: [Object, Function],
|
|
98
|
+
default: void 0
|
|
99
|
+
},
|
|
100
|
+
arrow: {
|
|
101
|
+
type: Function,
|
|
102
|
+
default: void 0
|
|
103
|
+
},
|
|
104
|
+
arrowPadding: {
|
|
105
|
+
type: Number,
|
|
106
|
+
default: void 0
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
setup(props, { attrs, slots }) {
|
|
110
|
+
const scope = (0, vue.inject)(datePickerScopeKey, null);
|
|
111
|
+
if (scope === null) return () => null;
|
|
112
|
+
const hovered = (0, vue.ref)(void 0);
|
|
113
|
+
const calendar = require_headless.usePrimitive(_bevelo_core.calendarPrimitive, () => {
|
|
114
|
+
const single = scope.mode() === "range" ? void 0 : scope.single();
|
|
115
|
+
return {
|
|
116
|
+
month: scope.visibleMonth(),
|
|
117
|
+
...scope.today() === void 0 ? {} : { today: scope.today() },
|
|
118
|
+
weekStartsOn: scope.weekStartsOn(),
|
|
119
|
+
locale: scope.locale(),
|
|
120
|
+
...scope.min() === void 0 ? {} : { min: scope.min() },
|
|
121
|
+
...scope.max() === void 0 ? {} : { max: scope.max() },
|
|
122
|
+
...single === void 0 ? {} : { selected: single },
|
|
123
|
+
isDateDisabled: (date) => scope.kernel.calendarDisabled(date),
|
|
124
|
+
onMonthChange: (month) => scope.setVisibleMonth(month),
|
|
125
|
+
onSelect: (date) => {
|
|
126
|
+
hovered.value = void 0;
|
|
127
|
+
scope.selectDay(date);
|
|
128
|
+
},
|
|
129
|
+
disabled: scope.disabled(),
|
|
130
|
+
readOnly: scope.readOnly(),
|
|
131
|
+
header: true
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
const api = calendar.api;
|
|
135
|
+
const shown = () => (0, _bevelo_date.startOfMonth)(scope.visibleMonth());
|
|
136
|
+
require_calendar.provideCalendarScope({
|
|
137
|
+
handle: calendar,
|
|
138
|
+
months: () => {
|
|
139
|
+
calendar.revision.value;
|
|
140
|
+
return api.months();
|
|
141
|
+
},
|
|
142
|
+
years: () => {
|
|
143
|
+
calendar.revision.value;
|
|
144
|
+
return api.years();
|
|
145
|
+
},
|
|
146
|
+
month: shown,
|
|
147
|
+
locale: scope.locale,
|
|
148
|
+
weekStartsOn: scope.weekStartsOn,
|
|
149
|
+
showOutsideDays: () => true,
|
|
150
|
+
fixedWeeks: () => false,
|
|
151
|
+
count: scope.count,
|
|
152
|
+
pageBy: scope.pageBy,
|
|
153
|
+
monthFormat: scope.monthFormat,
|
|
154
|
+
weekdayFormat: scope.weekdayFormat,
|
|
155
|
+
mode: scope.mode,
|
|
156
|
+
allowUnavailable: scope.allowUnavailable,
|
|
157
|
+
selection: scope.selection,
|
|
158
|
+
hovered: () => scope.mode() === "range" && scope.selection().end === void 0 ? hovered.value : void 0,
|
|
159
|
+
today: scope.today,
|
|
160
|
+
canStep: () => (0, _bevelo_core.calendarStepBounds)({
|
|
161
|
+
month: shown(),
|
|
162
|
+
months: scope.count(),
|
|
163
|
+
min: scope.min(),
|
|
164
|
+
max: scope.max(),
|
|
165
|
+
disabled: scope.disabled()
|
|
166
|
+
}),
|
|
167
|
+
isUnavailable: scope.isUnavailable,
|
|
168
|
+
isDisabled: (date) => scope.kernel.calendarDisabled(date),
|
|
169
|
+
stepMonth: (delta) => scope.setVisibleMonth((0, _bevelo_date.addMonths)(shown(), delta)),
|
|
170
|
+
selectDay: (date) => api.select(date),
|
|
171
|
+
hoverDay: (iso) => {
|
|
172
|
+
hovered.value = iso;
|
|
173
|
+
},
|
|
174
|
+
selectMonth: (year, month) => scope.setVisibleMonth({
|
|
175
|
+
year,
|
|
176
|
+
month,
|
|
177
|
+
day: 1
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
let binding = null;
|
|
181
|
+
(0, vue.watchPostEffect)(() => {
|
|
182
|
+
const open = scope.open();
|
|
183
|
+
const panel = scope.panel.value;
|
|
184
|
+
const anchorProp = props.anchor;
|
|
185
|
+
const anchor = typeof anchorProp === "function" ? anchorProp() : anchorProp ?? scope.field.value ?? scope.trigger.value;
|
|
186
|
+
binding?.destroy();
|
|
187
|
+
binding = null;
|
|
188
|
+
if (!open || panel === null || anchor === null || anchor === void 0) return;
|
|
189
|
+
const base = scope.placement();
|
|
190
|
+
const resolved = (0, _bevelo_core.resolvePlacement)({
|
|
191
|
+
placement: props.placement ?? base.placement,
|
|
192
|
+
side: props.side,
|
|
193
|
+
align: props.align,
|
|
194
|
+
offset: props.offset ?? base.offset,
|
|
195
|
+
alignOffset: props.alignOffset ?? base.alignOffset,
|
|
196
|
+
padding: props.padding ?? base.padding,
|
|
197
|
+
boundary: props.boundary ?? base.boundary,
|
|
198
|
+
defaultPlacement: "bottom-start",
|
|
199
|
+
defaultOffset: 4
|
|
200
|
+
});
|
|
201
|
+
binding = (0, _bevelo_core.positionElement)(anchor, panel, {
|
|
202
|
+
placement: resolved.placement,
|
|
203
|
+
offset: resolved.offset,
|
|
204
|
+
alignOffset: props.alignOffset ?? base.alignOffset,
|
|
205
|
+
padding: resolved.padding,
|
|
206
|
+
boundary: resolved.boundary,
|
|
207
|
+
arrow: props.arrow ?? base.arrow,
|
|
208
|
+
arrowPadding: props.arrowPadding ?? base.arrowPadding
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
(0, vue.onBeforeUnmount)(() => binding?.destroy());
|
|
212
|
+
return () => require_headless.renderPart(scope.handle, "panel", {
|
|
213
|
+
...attrs,
|
|
214
|
+
ref: (node) => {
|
|
215
|
+
scope.panel.value = node instanceof HTMLElement ? node : null;
|
|
216
|
+
},
|
|
217
|
+
style: {
|
|
218
|
+
position: "fixed",
|
|
219
|
+
left: "0",
|
|
220
|
+
top: "0",
|
|
221
|
+
...attrs.style ?? {}
|
|
222
|
+
},
|
|
223
|
+
onMouseleave: () => {
|
|
224
|
+
hovered.value = void 0;
|
|
225
|
+
}
|
|
226
|
+
}, slots.default?.(), { portal: true });
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
/** The value spelled out, else the hint, else the locale's format; the default slot receives `{ example }`. */
|
|
230
|
+
const DatePickerHint = (0, vue.defineComponent)({
|
|
231
|
+
name: "DatePickerHint",
|
|
232
|
+
setup(_props, { attrs, slots }) {
|
|
233
|
+
const scope = (0, vue.inject)(datePickerScopeKey, null);
|
|
234
|
+
return () => {
|
|
235
|
+
if (scope === null) return (0, vue.h)("span", {
|
|
236
|
+
"data-part": "hint",
|
|
237
|
+
...attrs
|
|
238
|
+
}, slots.default?.({ example: "" }));
|
|
239
|
+
const value = scope.mode() === "range" ? (0, _bevelo_core.toCivilDate)(scope.selection().start) : scope.single();
|
|
240
|
+
const placeholder = scope.hint() || (0, _bevelo_core.datePlaceholder)(scope.locale());
|
|
241
|
+
const content = slots.default?.({ example: placeholder }) ?? (value === void 0 ? placeholder : (0, _bevelo_core.longDateText)(value, scope.locale()));
|
|
242
|
+
return (0, vue.h)("span", {
|
|
243
|
+
"data-part": "hint",
|
|
244
|
+
"data-slot": "date-picker-hint",
|
|
245
|
+
"data-placeholder": value === void 0 && !scope.hint() ? "" : void 0,
|
|
246
|
+
...attrs
|
|
247
|
+
}, content);
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
/** Empties the picker (both ends of a range). */
|
|
252
|
+
const DatePickerClear = (0, vue.defineComponent)({
|
|
253
|
+
name: "DatePickerClear",
|
|
254
|
+
setup(_props, { attrs, slots }) {
|
|
255
|
+
const scope = (0, vue.inject)(datePickerScopeKey, null);
|
|
256
|
+
return () => (0, vue.h)("button", {
|
|
257
|
+
type: "button",
|
|
258
|
+
"aria-label": "Clear date",
|
|
259
|
+
disabled: scope?.disabled() || void 0,
|
|
260
|
+
"data-part": "clear",
|
|
261
|
+
"data-slot": "date-picker-clear",
|
|
262
|
+
"data-empty": scope?.empty() ? "" : void 0,
|
|
263
|
+
...attrs,
|
|
264
|
+
onClick: (event) => {
|
|
265
|
+
if (!event.defaultPrevented) scope?.clear();
|
|
266
|
+
}
|
|
267
|
+
}, slots.default?.() ?? "×");
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
/** Selects the day (or `[start, end]`) it holds; pressed while that is the value. */
|
|
271
|
+
const DatePickerPreset = (0, vue.defineComponent)({
|
|
272
|
+
name: "DatePickerPreset",
|
|
273
|
+
props: { value: {
|
|
274
|
+
type: [
|
|
275
|
+
Object,
|
|
276
|
+
String,
|
|
277
|
+
Array
|
|
278
|
+
],
|
|
279
|
+
required: true
|
|
280
|
+
} },
|
|
281
|
+
setup(props, { attrs, slots }) {
|
|
282
|
+
const scope = (0, vue.inject)(datePickerScopeKey, null);
|
|
283
|
+
return () => {
|
|
284
|
+
let selected = false;
|
|
285
|
+
if (scope !== null) {
|
|
286
|
+
if (Array.isArray(props.value)) {
|
|
287
|
+
const range = (0, _bevelo_core.calendarSelection)(props.value, "range");
|
|
288
|
+
const current = scope.selection();
|
|
289
|
+
selected = range.start !== void 0 && range.start === current.start && (range.end === void 0 || range.end === current.end);
|
|
290
|
+
} else {
|
|
291
|
+
const day = (0, _bevelo_core.toCivilDate)(props.value);
|
|
292
|
+
const single = scope.single();
|
|
293
|
+
selected = day !== void 0 && single !== void 0 && (0, _bevelo_date.formatISODate)(day) === (0, _bevelo_date.formatISODate)(single);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return (0, vue.h)("button", {
|
|
297
|
+
type: "button",
|
|
298
|
+
"aria-pressed": selected ? "true" : "false",
|
|
299
|
+
"data-part": "preset",
|
|
300
|
+
"data-slot": "date-picker-preset",
|
|
301
|
+
"data-selected": selected ? "" : void 0,
|
|
302
|
+
...attrs,
|
|
303
|
+
onClick: (event) => {
|
|
304
|
+
if (!event.defaultPrevented) scope?.choosePreset(props.value);
|
|
305
|
+
}
|
|
306
|
+
}, slots.default?.());
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
const PARTS = /* @__PURE__ */ new Set([
|
|
311
|
+
DatePickerInput,
|
|
312
|
+
DatePickerTrigger,
|
|
313
|
+
DatePickerContent,
|
|
314
|
+
DatePickerHint,
|
|
315
|
+
DatePickerClear,
|
|
316
|
+
DatePickerPreset
|
|
317
|
+
]);
|
|
318
|
+
/** Whether slot content holds any picker part, at any depth. */
|
|
319
|
+
function hasPickerParts(nodes) {
|
|
320
|
+
if (nodes === void 0) return false;
|
|
321
|
+
return nodes.some((node) => {
|
|
322
|
+
if (PARTS.has(node.type)) return true;
|
|
323
|
+
if (Array.isArray(node.children)) return hasPickerParts(node.children);
|
|
324
|
+
return false;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function provideDatePickerScope(scope) {
|
|
328
|
+
(0, vue.provide)(datePickerScopeKey, scope);
|
|
329
|
+
}
|
|
330
|
+
// src/date-picker.ts
|
|
331
|
+
const schema = require_options.vueOptions(_bevelo_core.datePickerPrimitive, {
|
|
332
|
+
modelValue: ["value", "onChange"],
|
|
333
|
+
value: ["value", "onChange"],
|
|
334
|
+
open: ["open", "onOpenChange"]
|
|
335
|
+
});
|
|
336
|
+
const NO_PRESETS = [];
|
|
337
|
+
/** A controller for a `DatePicker`: pass it as `controller`, read `api` once mounted. */
|
|
338
|
+
function createDatePickerController() {
|
|
339
|
+
return {};
|
|
340
|
+
}
|
|
341
|
+
const DatePicker = (0, vue.defineComponent)({
|
|
342
|
+
name: "DatePicker",
|
|
343
|
+
inheritAttrs: false,
|
|
344
|
+
props: {
|
|
345
|
+
...schema.props,
|
|
346
|
+
...require_placement.placementProps,
|
|
347
|
+
modelValue: {
|
|
348
|
+
type: [
|
|
349
|
+
Object,
|
|
350
|
+
String,
|
|
351
|
+
Array
|
|
352
|
+
],
|
|
353
|
+
default: void 0
|
|
354
|
+
},
|
|
355
|
+
value: {
|
|
356
|
+
type: [
|
|
357
|
+
Object,
|
|
358
|
+
String,
|
|
359
|
+
Array
|
|
360
|
+
],
|
|
361
|
+
default: void 0
|
|
362
|
+
},
|
|
363
|
+
defaultValue: {
|
|
364
|
+
type: [
|
|
365
|
+
Object,
|
|
366
|
+
String,
|
|
367
|
+
Array
|
|
368
|
+
],
|
|
369
|
+
default: void 0
|
|
370
|
+
},
|
|
371
|
+
min: {
|
|
372
|
+
type: [Object, String],
|
|
373
|
+
required: false
|
|
374
|
+
},
|
|
375
|
+
max: {
|
|
376
|
+
type: [Object, String],
|
|
377
|
+
required: false
|
|
378
|
+
},
|
|
379
|
+
disabled: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: false
|
|
382
|
+
},
|
|
383
|
+
readOnly: {
|
|
384
|
+
type: Boolean,
|
|
385
|
+
default: false
|
|
386
|
+
},
|
|
387
|
+
name: {
|
|
388
|
+
type: String,
|
|
389
|
+
default: ""
|
|
390
|
+
},
|
|
391
|
+
required: {
|
|
392
|
+
type: Boolean,
|
|
393
|
+
default: false
|
|
394
|
+
},
|
|
395
|
+
label: {
|
|
396
|
+
type: String,
|
|
397
|
+
default: "Date"
|
|
398
|
+
},
|
|
399
|
+
locale: {
|
|
400
|
+
type: String,
|
|
401
|
+
default: "en-US"
|
|
402
|
+
},
|
|
403
|
+
weekStartsOn: {
|
|
404
|
+
type: Number,
|
|
405
|
+
default: 0
|
|
406
|
+
},
|
|
407
|
+
today: {
|
|
408
|
+
type: [Object, String],
|
|
409
|
+
required: false
|
|
410
|
+
},
|
|
411
|
+
isDateDisabled: {
|
|
412
|
+
type: Function,
|
|
413
|
+
required: false
|
|
414
|
+
},
|
|
415
|
+
hint: {
|
|
416
|
+
type: String,
|
|
417
|
+
default: ""
|
|
418
|
+
},
|
|
419
|
+
clearable: {
|
|
420
|
+
type: Boolean,
|
|
421
|
+
default: false
|
|
422
|
+
},
|
|
423
|
+
presets: {
|
|
424
|
+
type: Array,
|
|
425
|
+
required: false
|
|
426
|
+
},
|
|
427
|
+
open: {
|
|
428
|
+
type: Boolean,
|
|
429
|
+
required: false,
|
|
430
|
+
default: void 0
|
|
431
|
+
},
|
|
432
|
+
defaultOpen: {
|
|
433
|
+
type: Boolean,
|
|
434
|
+
default: false
|
|
435
|
+
},
|
|
436
|
+
arrow: {
|
|
437
|
+
type: Function,
|
|
438
|
+
required: false
|
|
439
|
+
},
|
|
440
|
+
arrowPadding: {
|
|
441
|
+
type: Number,
|
|
442
|
+
required: false
|
|
443
|
+
},
|
|
444
|
+
container: {
|
|
445
|
+
type: [Object, Function],
|
|
446
|
+
required: false
|
|
447
|
+
},
|
|
448
|
+
id: {
|
|
449
|
+
type: String,
|
|
450
|
+
required: false
|
|
451
|
+
},
|
|
452
|
+
/** `"range"` holds a start and an end, each with its own field. */
|
|
453
|
+
mode: {
|
|
454
|
+
type: String,
|
|
455
|
+
default: "single"
|
|
456
|
+
},
|
|
457
|
+
unavailable: {
|
|
458
|
+
type: [
|
|
459
|
+
String,
|
|
460
|
+
Array,
|
|
461
|
+
Object,
|
|
462
|
+
Function
|
|
463
|
+
],
|
|
464
|
+
default: void 0
|
|
465
|
+
},
|
|
466
|
+
allowUnavailable: {
|
|
467
|
+
type: Boolean,
|
|
468
|
+
default: false
|
|
469
|
+
},
|
|
470
|
+
deselectable: {
|
|
471
|
+
type: Boolean,
|
|
472
|
+
default: false
|
|
473
|
+
},
|
|
474
|
+
minDays: {
|
|
475
|
+
type: Number,
|
|
476
|
+
default: void 0
|
|
477
|
+
},
|
|
478
|
+
maxDays: {
|
|
479
|
+
type: Number,
|
|
480
|
+
default: void 0
|
|
481
|
+
},
|
|
482
|
+
/** Close the panel after a day press. */
|
|
483
|
+
closeOnSelect: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
default: true
|
|
486
|
+
},
|
|
487
|
+
/** Close the panel on a press outside the picker and its panel. */
|
|
488
|
+
dismissible: {
|
|
489
|
+
type: Boolean,
|
|
490
|
+
default: true
|
|
491
|
+
},
|
|
492
|
+
months: {
|
|
493
|
+
type: Number,
|
|
494
|
+
default: 1
|
|
495
|
+
},
|
|
496
|
+
pageBy: {
|
|
497
|
+
type: String,
|
|
498
|
+
default: "month"
|
|
499
|
+
},
|
|
500
|
+
monthFormat: {
|
|
501
|
+
type: String,
|
|
502
|
+
default: "long"
|
|
503
|
+
},
|
|
504
|
+
weekdayFormat: {
|
|
505
|
+
type: String,
|
|
506
|
+
default: "short"
|
|
507
|
+
},
|
|
508
|
+
/** A range's start carrier name (default `name`). */
|
|
509
|
+
startName: {
|
|
510
|
+
type: String,
|
|
511
|
+
default: void 0
|
|
512
|
+
},
|
|
513
|
+
/** A range's end carrier name (default `name`). */
|
|
514
|
+
endName: {
|
|
515
|
+
type: String,
|
|
516
|
+
default: void 0
|
|
517
|
+
},
|
|
518
|
+
controller: {
|
|
519
|
+
type: Object,
|
|
520
|
+
default: void 0
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
emits: {
|
|
524
|
+
...schema.emits,
|
|
525
|
+
change: (_value, _details) => true,
|
|
526
|
+
"update:modelValue": (_value) => true,
|
|
527
|
+
"update:value": (_value) => true
|
|
528
|
+
},
|
|
529
|
+
setup(props, { attrs, slots, emit, expose }) {
|
|
530
|
+
const resolved = require_placement.usePlacement(props, "bottom-start", 4);
|
|
531
|
+
const compound = () => hasPickerParts(slots.default?.());
|
|
532
|
+
const range = () => props.mode === "range";
|
|
533
|
+
const controlled = () => props.modelValue !== void 0 ? props.modelValue : props.value;
|
|
534
|
+
const textMode = () => typeof controlled() === "string" || controlled() === null || typeof props.defaultValue === "string" || compound() && controlled() === void 0 && props.defaultValue === void 0;
|
|
535
|
+
let reason = "change";
|
|
536
|
+
const pairOf = (input) => {
|
|
537
|
+
const selection = (0, _bevelo_core.calendarSelection)(input, "range");
|
|
538
|
+
return {
|
|
539
|
+
start: (0, _bevelo_core.toCivilDate)(selection.start),
|
|
540
|
+
end: (0, _bevelo_core.toCivilDate)(selection.end)
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
const ownRange = (0, vue.shallowRef)(pairOf(props.defaultValue));
|
|
544
|
+
const pair = () => controlled() !== void 0 ? pairOf(controlled()) : ownRange.value;
|
|
545
|
+
const iso = (date) => date === void 0 ? "" : (0, _bevelo_date.formatISODate)(date);
|
|
546
|
+
const startText = (0, vue.ref)(iso(pair().start));
|
|
547
|
+
const endText = (0, vue.ref)(iso(pair().end));
|
|
548
|
+
(0, vue.watch)(() => range() && controlled() !== void 0 ? `${iso(pair().start)}|${iso(pair().end)}` : void 0, (key) => {
|
|
549
|
+
if (key === void 0) return;
|
|
550
|
+
startText.value = iso(pair().start);
|
|
551
|
+
endText.value = iso(pair().end);
|
|
552
|
+
});
|
|
553
|
+
const visible = (0, vue.shallowRef)(void 0);
|
|
554
|
+
const report = (value, why) => {
|
|
555
|
+
emit("change", value, { reason: why });
|
|
556
|
+
emit("update:modelValue", value);
|
|
557
|
+
emit("update:value", value);
|
|
558
|
+
};
|
|
559
|
+
const handle = require_headless.usePrimitive(_bevelo_core.datePickerPrimitive, schema.bind(props, () => {
|
|
560
|
+
const single = range() ? void 0 : (0, _bevelo_core.toCivilDate)(controlled());
|
|
561
|
+
const singleDefault = range() ? void 0 : (0, _bevelo_core.toCivilDate)(props.defaultValue);
|
|
562
|
+
return {
|
|
563
|
+
presets: props.presets ?? NO_PRESETS,
|
|
564
|
+
value: range() ? pair().start : single,
|
|
565
|
+
defaultValue: range() ? pairOf(props.defaultValue).start : singleDefault,
|
|
566
|
+
min: (0, _bevelo_core.toCivilDate)(props.min),
|
|
567
|
+
max: (0, _bevelo_core.toCivilDate)(props.max),
|
|
568
|
+
today: (0, _bevelo_core.toCivilDate)(props.today),
|
|
569
|
+
name: range() ? "" : props.name,
|
|
570
|
+
onChange: (next) => {
|
|
571
|
+
const value = textMode() && typeof controlled() !== "object" ? next ? (0, _bevelo_date.formatISODate)(next) : null : next;
|
|
572
|
+
const why = reason;
|
|
573
|
+
reason = "change";
|
|
574
|
+
report(value, why);
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
}));
|
|
578
|
+
const kernel = handle.api;
|
|
579
|
+
const field = (0, vue.ref)(null);
|
|
580
|
+
const trigger = (0, vue.ref)(null);
|
|
581
|
+
const panelNode = (0, vue.ref)(null);
|
|
582
|
+
const rootNode = (0, vue.ref)(null);
|
|
583
|
+
const isOpen = () => {
|
|
584
|
+
handle.revision.value;
|
|
585
|
+
return handle.state.open === true;
|
|
586
|
+
};
|
|
587
|
+
const emitRange = (start, end, why) => {
|
|
588
|
+
if (controlled() === void 0) ownRange.value = {
|
|
589
|
+
start,
|
|
590
|
+
end
|
|
591
|
+
};
|
|
592
|
+
startText.value = iso(start);
|
|
593
|
+
endText.value = iso(end);
|
|
594
|
+
kernel.setText(iso(start));
|
|
595
|
+
report(start && end ? [iso(start), iso(end)] : start ? [iso(start)] : null, why);
|
|
596
|
+
};
|
|
597
|
+
const isUnavailable = (date) => (0, _bevelo_core.matchesDate)(date, props.unavailable);
|
|
598
|
+
const selection = (0, vue.computed)(() => range() ? (0, _bevelo_core.calendarSelection)([iso(pair().start), iso(pair().end)].filter(Boolean), "range") : (0, _bevelo_core.calendarSelection)(singleValue() === void 0 ? void 0 : (0, _bevelo_date.formatISODate)(singleValue()), "single"));
|
|
599
|
+
const singleValue = () => {
|
|
600
|
+
handle.revision.value;
|
|
601
|
+
return kernel.value();
|
|
602
|
+
};
|
|
603
|
+
const selectDay = (date) => {
|
|
604
|
+
if (props.disabled || props.readOnly) return;
|
|
605
|
+
const outcome = (0, _bevelo_core.selectCalendarDay)(selection.value, date, {
|
|
606
|
+
mode: range() ? "range" : "single",
|
|
607
|
+
deselectable: props.deselectable,
|
|
608
|
+
allowUnavailable: props.allowUnavailable,
|
|
609
|
+
minDays: props.minDays,
|
|
610
|
+
maxDays: props.maxDays,
|
|
611
|
+
isUnavailable,
|
|
612
|
+
isDisabled: (day) => kernel.calendarDisabled(day)
|
|
613
|
+
});
|
|
614
|
+
if (outcome === void 0 || kernel.calendarDisabled(date)) return;
|
|
615
|
+
if (range()) {
|
|
616
|
+
const [start, end] = outcome.value.map((day) => (0, _bevelo_core.toCivilDate)(day));
|
|
617
|
+
emitRange(start, end, "day-press");
|
|
618
|
+
if (end !== void 0 && props.closeOnSelect) {
|
|
619
|
+
kernel.close();
|
|
620
|
+
field.value?.focus();
|
|
621
|
+
}
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
reason = "day-press";
|
|
625
|
+
if (outcome.value === void 0) {
|
|
626
|
+
kernel.clearDate();
|
|
627
|
+
if (props.closeOnSelect) kernel.close();
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
if (props.closeOnSelect) kernel.choose(date);
|
|
631
|
+
else {
|
|
632
|
+
kernel.setText((0, _bevelo_date.formatISODate)(date));
|
|
633
|
+
kernel.commitField();
|
|
634
|
+
}
|
|
635
|
+
visible.value = (0, _bevelo_date.startOfMonth)(date);
|
|
636
|
+
};
|
|
637
|
+
const commitText = (end) => {
|
|
638
|
+
if (!range()) return;
|
|
639
|
+
const text = end ? endText.value : startText.value;
|
|
640
|
+
const parsed = (0, _bevelo_core.toCivilDate)(text);
|
|
641
|
+
const { start: s, end: e } = pair();
|
|
642
|
+
if (parsed !== void 0) {
|
|
643
|
+
if (end) {
|
|
644
|
+
if (s && (0, _bevelo_date.compare)(parsed, s) < 0) emitRange(parsed, s, "input");
|
|
645
|
+
else emitRange(s, parsed, "input");
|
|
646
|
+
} else {
|
|
647
|
+
if (e && (0, _bevelo_date.compare)(parsed, e) > 0) emitRange(e, parsed, "input");
|
|
648
|
+
else emitRange(parsed, e, "input");
|
|
649
|
+
visible.value = (0, _bevelo_date.startOfMonth)(parsed);
|
|
650
|
+
}
|
|
651
|
+
} else if (text.trim() === "") {
|
|
652
|
+
if (end) emitRange(s, void 0, "input");
|
|
653
|
+
else emitRange(void 0, e, "input");
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
const choosePreset = (value) => {
|
|
657
|
+
if (props.disabled || props.readOnly) return;
|
|
658
|
+
if (Array.isArray(value)) {
|
|
659
|
+
const start = (0, _bevelo_core.toCivilDate)(value[0]);
|
|
660
|
+
if (start !== void 0) {
|
|
661
|
+
emitRange(start, (0, _bevelo_core.toCivilDate)(value[1]), "preset");
|
|
662
|
+
visible.value = (0, _bevelo_date.startOfMonth)(start);
|
|
663
|
+
}
|
|
664
|
+
if (props.closeOnSelect) kernel.close();
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
const day = (0, _bevelo_core.toCivilDate)(value);
|
|
668
|
+
if (day === void 0) return;
|
|
669
|
+
reason = "preset";
|
|
670
|
+
kernel.choose(day);
|
|
671
|
+
visible.value = (0, _bevelo_date.startOfMonth)(day);
|
|
672
|
+
};
|
|
673
|
+
const clear = () => {
|
|
674
|
+
if (props.disabled || props.readOnly) return;
|
|
675
|
+
if (range()) emitRange(void 0, void 0, "clear");
|
|
676
|
+
else {
|
|
677
|
+
reason = "clear";
|
|
678
|
+
kernel.clearDate();
|
|
679
|
+
}
|
|
680
|
+
field.value?.focus();
|
|
681
|
+
};
|
|
682
|
+
provideDatePickerScope({
|
|
683
|
+
handle,
|
|
684
|
+
kernel,
|
|
685
|
+
mode: () => range() ? "range" : "single",
|
|
686
|
+
open: isOpen,
|
|
687
|
+
disabled: () => props.disabled,
|
|
688
|
+
readOnly: () => props.readOnly,
|
|
689
|
+
id: () => props.id,
|
|
690
|
+
hint: () => props.hint,
|
|
691
|
+
locale: () => props.locale,
|
|
692
|
+
weekStartsOn: () => props.weekStartsOn,
|
|
693
|
+
count: () => Math.max(1, Math.floor(props.months) || 1),
|
|
694
|
+
pageBy: () => props.pageBy,
|
|
695
|
+
monthFormat: () => props.monthFormat,
|
|
696
|
+
weekdayFormat: () => props.weekdayFormat,
|
|
697
|
+
today: () => (0, _bevelo_core.toCivilDate)(props.today),
|
|
698
|
+
min: () => (0, _bevelo_core.toCivilDate)(props.min),
|
|
699
|
+
max: () => (0, _bevelo_core.toCivilDate)(props.max),
|
|
700
|
+
allowUnavailable: () => props.allowUnavailable,
|
|
701
|
+
isUnavailable,
|
|
702
|
+
selection: () => selection.value,
|
|
703
|
+
single: singleValue,
|
|
704
|
+
empty: () => range() ? pair().start === void 0 && pair().end === void 0 : singleValue() === void 0,
|
|
705
|
+
startText: () => startText.value,
|
|
706
|
+
endText: () => endText.value,
|
|
707
|
+
setText: (end, text) => {
|
|
708
|
+
if (end) endText.value = text;
|
|
709
|
+
else startText.value = text;
|
|
710
|
+
},
|
|
711
|
+
commitText,
|
|
712
|
+
selectDay,
|
|
713
|
+
choosePreset,
|
|
714
|
+
clear,
|
|
715
|
+
visibleMonth: () => {
|
|
716
|
+
handle.revision.value;
|
|
717
|
+
return visible.value ?? kernel.visibleMonth();
|
|
718
|
+
},
|
|
719
|
+
setVisibleMonth: (month) => {
|
|
720
|
+
visible.value = (0, _bevelo_date.startOfMonth)(month);
|
|
721
|
+
},
|
|
722
|
+
placement: () => ({
|
|
723
|
+
placement: resolved.value.placement,
|
|
724
|
+
offset: resolved.value.offset,
|
|
725
|
+
alignOffset: props.alignOffset,
|
|
726
|
+
padding: resolved.value.padding,
|
|
727
|
+
boundary: resolved.value.boundary,
|
|
728
|
+
arrow: props.arrow,
|
|
729
|
+
arrowPadding: props.arrowPadding
|
|
730
|
+
}),
|
|
731
|
+
field,
|
|
732
|
+
trigger,
|
|
733
|
+
panel: panelNode
|
|
734
|
+
});
|
|
735
|
+
const controllerApi = {
|
|
736
|
+
...kernel,
|
|
737
|
+
close: () => {
|
|
738
|
+
kernel.close();
|
|
739
|
+
field.value?.focus();
|
|
740
|
+
},
|
|
741
|
+
focus: () => field.value?.focus(),
|
|
742
|
+
setValue: (next) => {
|
|
743
|
+
if (range()) {
|
|
744
|
+
const { start, end } = pairOf(next);
|
|
745
|
+
emitRange(start, end, "imperative");
|
|
746
|
+
if (start) visible.value = (0, _bevelo_date.startOfMonth)(start);
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
reason = "imperative";
|
|
750
|
+
const day = (0, _bevelo_core.toCivilDate)(next);
|
|
751
|
+
if (day !== void 0) {
|
|
752
|
+
kernel.choose(day);
|
|
753
|
+
visible.value = (0, _bevelo_date.startOfMonth)(day);
|
|
754
|
+
} else kernel.clearDate();
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
if (props.controller !== void 0) props.controller.api = controllerApi;
|
|
758
|
+
expose({ api: controllerApi });
|
|
759
|
+
const onPointerDown = (event) => {
|
|
760
|
+
const target = event.target;
|
|
761
|
+
if (!(target instanceof Node)) return;
|
|
762
|
+
if (rootNode.value?.contains(target) || panelNode.value?.contains(target)) return;
|
|
763
|
+
kernel.close();
|
|
764
|
+
};
|
|
765
|
+
(0, vue.watch)(() => isOpen() && props.dismissible, (on, _was, cleanup) => {
|
|
766
|
+
if (!on) return;
|
|
767
|
+
document.addEventListener("pointerdown", onPointerDown, true);
|
|
768
|
+
cleanup(() => document.removeEventListener("pointerdown", onPointerDown, true));
|
|
769
|
+
}, { immediate: true });
|
|
770
|
+
let binding = null;
|
|
771
|
+
(0, vue.watchPostEffect)(() => {
|
|
772
|
+
handle.revision.value;
|
|
773
|
+
const panelOpen = handle.state.open === true;
|
|
774
|
+
const panel = panelNode.value;
|
|
775
|
+
const anchor = field.value ?? trigger.value;
|
|
776
|
+
binding?.destroy();
|
|
777
|
+
binding = null;
|
|
778
|
+
if (compound() || !panelOpen || panel === null || anchor === null) return;
|
|
779
|
+
const options = {
|
|
780
|
+
placement: resolved.value.placement,
|
|
781
|
+
offset: resolved.value.offset,
|
|
782
|
+
alignOffset: props.alignOffset,
|
|
783
|
+
padding: resolved.value.padding,
|
|
784
|
+
boundary: resolved.value.boundary,
|
|
785
|
+
arrow: props.arrow,
|
|
786
|
+
arrowPadding: props.arrowPadding
|
|
787
|
+
};
|
|
788
|
+
binding = (0, _bevelo_core.positionElement)(anchor, panel, options);
|
|
789
|
+
});
|
|
790
|
+
(0, vue.onBeforeUnmount)(() => {
|
|
791
|
+
binding?.destroy();
|
|
792
|
+
binding = null;
|
|
793
|
+
if (props.controller?.api === controllerApi) delete props.controller.api;
|
|
794
|
+
});
|
|
795
|
+
const containerElement = typeof props.container === "function" ? props.container() : props.container;
|
|
796
|
+
if (containerElement !== void 0) require_headless.providePortalTarget(containerElement);
|
|
797
|
+
const rootRef = (node) => {
|
|
798
|
+
rootNode.value = node instanceof HTMLElement ? node : null;
|
|
799
|
+
};
|
|
800
|
+
const renderCompound = () => {
|
|
801
|
+
const startName = range() ? props.startName ?? props.name : props.name;
|
|
802
|
+
const endName = range() ? props.endName ?? props.name : "";
|
|
803
|
+
const carrier = (name, value, key) => name ? (0, vue.h)("input", {
|
|
804
|
+
key,
|
|
805
|
+
type: "hidden",
|
|
806
|
+
name,
|
|
807
|
+
required: props.required || void 0,
|
|
808
|
+
disabled: props.disabled || void 0,
|
|
809
|
+
value: iso(value)
|
|
810
|
+
}) : null;
|
|
811
|
+
return require_headless.renderPart(handle, "root", {
|
|
812
|
+
...attrs,
|
|
813
|
+
ref: rootRef
|
|
814
|
+
}, [(0, vue.h)(vue.Fragment, null, [
|
|
815
|
+
slots.default?.(),
|
|
816
|
+
carrier(startName, range() ? pair().start : singleValue(), "start"),
|
|
817
|
+
carrier(endName, pair().end, "end")
|
|
818
|
+
])]);
|
|
819
|
+
};
|
|
820
|
+
return () => {
|
|
821
|
+
handle.revision.value;
|
|
822
|
+
if (compound()) return renderCompound();
|
|
823
|
+
const panelOpen = handle.state.open === true;
|
|
824
|
+
const fieldNode = require_headless.renderPart(handle, "input", {
|
|
825
|
+
key: "input",
|
|
826
|
+
id: props.id,
|
|
827
|
+
ref: (node) => {
|
|
828
|
+
field.value = node instanceof HTMLInputElement ? node : null;
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
const clearIcon = require_headless.renderPart(handle, "clear-icon", { key: "clear-icon" }, "×");
|
|
832
|
+
const clearNode = require_headless.renderPart(handle, "clear", { key: "clear" }, [clearIcon]);
|
|
833
|
+
const triggerIcon = require_headless.renderPart(handle, "trigger-icon", { key: "trigger-icon" }, "▾");
|
|
834
|
+
const triggerNode = require_headless.renderPart(handle, "trigger", {
|
|
835
|
+
key: "trigger",
|
|
836
|
+
ref: (node) => {
|
|
837
|
+
trigger.value = node instanceof HTMLButtonElement ? node : null;
|
|
838
|
+
}
|
|
839
|
+
}, [triggerIcon]);
|
|
840
|
+
const hintNode = require_headless.renderPart(handle, "hint", { key: "hint" }, props.hint);
|
|
841
|
+
const previous = require_headless.renderPart(handle, "previous", { key: "previous" }, [(0, vue.h)("span", { "aria-hidden": "true" }, "‹")]);
|
|
842
|
+
const next = require_headless.renderPart(handle, "next", { key: "next" }, [(0, vue.h)("span", { "aria-hidden": "true" }, "›")]);
|
|
843
|
+
const nav = require_headless.renderPart(handle, "panel-nav", { key: "panel-nav" }, [(0, vue.h)(vue.Fragment, null, [previous, next])]);
|
|
844
|
+
const selectedValue = kernel.value();
|
|
845
|
+
const calendar = panelOpen ? (0, vue.h)(require_calendar.Calendar, {
|
|
846
|
+
month: kernel.visibleMonth(),
|
|
847
|
+
weekStartsOn: props.weekStartsOn,
|
|
848
|
+
locale: props.locale,
|
|
849
|
+
label: kernel.calendarLabel(),
|
|
850
|
+
isDateDisabled: (date) => kernel.calendarDisabled(date),
|
|
851
|
+
onSelect: (date) => kernel.choose(date),
|
|
852
|
+
...selectedValue === void 0 ? {} : { selected: selectedValue },
|
|
853
|
+
...props.today === void 0 ? {} : { today: (0, _bevelo_core.toCivilDate)(props.today) }
|
|
854
|
+
}) : null;
|
|
855
|
+
const calendarHost = require_headless.renderPart(handle, "calendar-host", { key: "calendar-host" }, calendar === null ? void 0 : [calendar]);
|
|
856
|
+
const presetRows = (props.presets ?? NO_PRESETS).map((preset, index) => require_headless.renderPart(handle, "preset", { key: `preset:${preset.label}:${String(preset.value.year)}-${String(preset.value.month)}-${String(preset.value.day)}` }, preset.label, { index }));
|
|
857
|
+
const slotContent = slots.default?.();
|
|
858
|
+
const panelContent = require_headless.renderPart(handle, "panel-content", { key: "panel-content" }, slotContent);
|
|
859
|
+
const panel = require_headless.renderPart(handle, "panel", {
|
|
860
|
+
key: "panel",
|
|
861
|
+
ref: (node) => {
|
|
862
|
+
panelNode.value = node instanceof HTMLElement ? node : null;
|
|
863
|
+
},
|
|
864
|
+
style: {
|
|
865
|
+
position: "fixed",
|
|
866
|
+
left: "0",
|
|
867
|
+
top: "0"
|
|
868
|
+
}
|
|
869
|
+
}, [(0, vue.h)(vue.Fragment, null, [
|
|
870
|
+
nav,
|
|
871
|
+
calendarHost,
|
|
872
|
+
...presetRows,
|
|
873
|
+
panelContent
|
|
874
|
+
])], { portal: true });
|
|
875
|
+
const carrier = require_headless.renderPart(handle, "carrier", { key: "carrier" });
|
|
876
|
+
const host = {
|
|
877
|
+
...attrs,
|
|
878
|
+
ref: rootRef
|
|
879
|
+
};
|
|
880
|
+
return require_headless.renderPart(handle, "root", host, [(0, vue.h)(vue.Fragment, null, [
|
|
881
|
+
fieldNode,
|
|
882
|
+
clearNode,
|
|
883
|
+
triggerNode,
|
|
884
|
+
hintNode,
|
|
885
|
+
panel,
|
|
886
|
+
carrier
|
|
887
|
+
])]);
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
Object.defineProperty(exports, "DatePicker", {
|
|
892
|
+
enumerable: true,
|
|
893
|
+
get: function() {
|
|
894
|
+
return DatePicker;
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
Object.defineProperty(exports, "DatePickerClear", {
|
|
898
|
+
enumerable: true,
|
|
899
|
+
get: function() {
|
|
900
|
+
return DatePickerClear;
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
Object.defineProperty(exports, "DatePickerContent", {
|
|
904
|
+
enumerable: true,
|
|
905
|
+
get: function() {
|
|
906
|
+
return DatePickerContent;
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
Object.defineProperty(exports, "DatePickerHint", {
|
|
910
|
+
enumerable: true,
|
|
911
|
+
get: function() {
|
|
912
|
+
return DatePickerHint;
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
Object.defineProperty(exports, "DatePickerInput", {
|
|
916
|
+
enumerable: true,
|
|
917
|
+
get: function() {
|
|
918
|
+
return DatePickerInput;
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
Object.defineProperty(exports, "DatePickerPreset", {
|
|
922
|
+
enumerable: true,
|
|
923
|
+
get: function() {
|
|
924
|
+
return DatePickerPreset;
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
Object.defineProperty(exports, "DatePickerTrigger", {
|
|
928
|
+
enumerable: true,
|
|
929
|
+
get: function() {
|
|
930
|
+
return DatePickerTrigger;
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
Object.defineProperty(exports, "createDatePickerController", {
|
|
934
|
+
enumerable: true,
|
|
935
|
+
get: function() {
|
|
936
|
+
return createDatePickerController;
|
|
937
|
+
}
|
|
938
|
+
});
|