@nubisco/ui 5.18.0 → 5.19.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/dist/{AccordionItem-Cg8wmypl.js → AccordionItem-BrpJObcb.js} +2 -2
- package/dist/{AccordionItem-CCndN0ln.cjs → AccordionItem-DVwcaU3f.cjs} +1 -1
- package/dist/ActionGroup-0u17QzT8.js +170 -0
- package/dist/ActionGroup-CMuposow.cjs +1 -0
- package/dist/{AiLabel-BxCWEOn-.js → AiLabel-BFrehX_F.js} +1 -1
- package/dist/{AiLabel-D4gkbAEC.cjs → AiLabel-kmL1-Hdo.cjs} +1 -1
- package/dist/{BarChart-DUy6vE_i.js → BarChart-DTStA9jd.js} +4 -4
- package/dist/{BarChart-B3B7wH20.cjs → BarChart-Dvrl4xeX.cjs} +1 -1
- package/dist/{Blueprint-DzzoerbM.js → Blueprint-CB5a7H5o.js} +2 -2
- package/dist/{Blueprint-CnXyZkSE.cjs → Blueprint-DIrWXKml.cjs} +1 -1
- package/dist/{BlueprintCard-2Q1zYWcN.js → BlueprintCard-BmuGjOCn.js} +1 -1
- package/dist/{BlueprintCard-D3Rr5cKO.cjs → BlueprintCard-DhnoClRB.cjs} +1 -1
- package/dist/{BlueprintControls-CuOAdppD.js → BlueprintControls-C0yhBzYT.js} +1 -1
- package/dist/{BlueprintControls-LCIgk-cb.cjs → BlueprintControls-Qtd2vep2.cjs} +1 -1
- package/dist/Board-CDrukIty.js +553 -0
- package/dist/Board-D1BkK3J5.cjs +1 -0
- package/dist/Breadcrumbs-B8eAWAvg.js +48 -0
- package/dist/Breadcrumbs-cTxSMgeW.cjs +1 -0
- package/dist/{Button-BZn2lmMA.cjs → Button-C0UUTgEB.cjs} +1 -1
- package/dist/{Button-BAfC7ySK.js → Button-IcCXOoCT.js} +1 -1
- package/dist/{Checkbox-BkRL6Ops.js → Checkbox-CXlovpPs.js} +2 -2
- package/dist/{Checkbox-D8Curaxc.cjs → Checkbox-CZVNZ2pn.cjs} +1 -1
- package/dist/{CheckboxGroup-Hu-wWRto.js → CheckboxGroup-AQ6XgVPU.js} +3 -3
- package/dist/{CheckboxGroup-fEs9Ye8M.cjs → CheckboxGroup-BuvjRAeC.cjs} +1 -1
- package/dist/{ColorStrip-Doh0adti.cjs → ColorStrip-D4vNVSeW.cjs} +1 -1
- package/dist/{ColorStrip-CcMzeYOw.js → ColorStrip-Dknkw-RX.js} +2 -2
- package/dist/{Confirm-Br9VOB2-.cjs → Confirm-DCkG5bUZ.cjs} +1 -1
- package/dist/{Confirm-DztLfQzB.js → Confirm-OMhu2Fuz.js} +8 -8
- package/dist/DataTable-CWMlmjMi.cjs +1 -0
- package/dist/DataTable-DaNZAixf.js +389 -0
- package/dist/DatePicker-BgMtkY76.cjs +1 -0
- package/dist/DatePicker-MDaQ2l8I.js +715 -0
- package/dist/{FileUploader-OJJIlvmH.js → FileUploader-DC1nE86P.js} +1 -1
- package/dist/{FileUploader-DPIAWehF.cjs → FileUploader-DehZc0gP.cjs} +1 -1
- package/dist/FloatingToolbar-J9ucYTsb.js +140 -0
- package/dist/FloatingToolbar-vWo7YmH3.cjs +1 -0
- package/dist/{Form-j4QMRkL5.js → Form-DJ1Hhwnm.js} +1 -1
- package/dist/{Form-u6XCVBqX.cjs → Form-WtS-IVIs.cjs} +1 -1
- package/dist/{GanttChart-C6uVsNrq.cjs → GanttChart-BJ_6YCza.cjs} +1 -1
- package/dist/{GanttChart-asYYkfjM.js → GanttChart-CwCH8pby.js} +3 -3
- package/dist/{ImageCropper-Bl8BjRur.cjs → ImageCropper-BfGyTTY5.cjs} +1 -1
- package/dist/{ImageCropper-DBjxzZhN.js → ImageCropper-Ds5Zq1J0.js} +2 -2
- package/dist/InfoHint-D35B8g96.cjs +1 -0
- package/dist/{InfoHint-CK96hjMo.js → InfoHint-ieo2S-YE.js} +41 -29
- package/dist/InlineEdit-9E8-8JQr.cjs +1 -0
- package/dist/{InlineEdit-DssyFZM6.js → InlineEdit-BCHxGdSy.js} +58 -25
- package/dist/{InlineLoading-DXsOmC3w.cjs → InlineLoading-B2L_asnZ.cjs} +1 -1
- package/dist/{InlineLoading-LCwTwjyJ.js → InlineLoading-DQzKEw-L.js} +1 -1
- package/dist/{InterpolationChart-w1GgDSDT.cjs → InterpolationChart-BXS1n0dY.cjs} +1 -1
- package/dist/{InterpolationChart-CdbT0AvE.js → InterpolationChart-CSEYS5aB.js} +3 -3
- package/dist/{LineChart-CmBBttxc.cjs → LineChart-C5bQNxQ-.cjs} +1 -1
- package/dist/{LineChart-BgnDKI8u.js → LineChart-DG_ows6r.js} +4 -4
- package/dist/Menu-BALfMobG.cjs +1 -0
- package/dist/Menu-D-zvh-SA.js +136 -0
- package/dist/{MenuBarItem-H1sFt0Mx.js → MenuBarItem-BDqp9LzY.js} +1 -1
- package/dist/{MenuBarItem-42bSEdWZ.cjs → MenuBarItem-Dmutkr1p.cjs} +1 -1
- package/dist/Modal-BNgLfB88.cjs +1 -0
- package/dist/{Modal-BvZulLj2.js → Modal-C97dRTiP.js} +35 -34
- package/dist/NotificationCenter-BpUiKPsp.cjs +1 -0
- package/dist/NotificationCenter-Br-YtY5w.js +584 -0
- package/dist/{NumberInput-DsjKITeI.cjs → NumberInput-1taaS5G3.cjs} +1 -1
- package/dist/{NumberInput-CrbTiAkP.js → NumberInput-DWf2LMGN.js} +3 -3
- package/dist/{Pagination-JW-O2kLk.js → Pagination-Br-k9zuG.js} +2 -2
- package/dist/{Pagination-Di4RPomA.cjs → Pagination-CCMhqtoz.cjs} +1 -1
- package/dist/{PieChart-CUckdHre.cjs → PieChart-BABG-xXQ.cjs} +1 -1
- package/dist/{PieChart-CpkjCb1W.js → PieChart-CmvfqpXR.js} +3 -3
- package/dist/{ProgressBar-Cn-FnvZR.cjs → ProgressBar-BHKgJ4UK.cjs} +1 -1
- package/dist/{ProgressBar-BF-2nm2N.js → ProgressBar-Blt5BdgQ.js} +2 -2
- package/dist/{Radio-pH924Ch3.js → Radio-DsYitO1Z.js} +3 -3
- package/dist/{Radio-CkFwMQZ-.cjs → Radio-zdXHagRQ.cjs} +1 -1
- package/dist/ReorderList-hHh9XYQY.cjs +1 -0
- package/dist/{ReorderList-DC83oBGi.js → ReorderList-v1aWbXjb.js} +31 -15
- package/dist/{Select-Det8tjo1.cjs → Select-ClkEzw5T.cjs} +1 -1
- package/dist/{Select-dJWuOWN0.js → Select-DIw08nte.js} +3 -3
- package/dist/Shell-CfHe8tIp.js +487 -0
- package/dist/Shell-DrXByQxR.cjs +1 -0
- package/dist/{SidebarCollapseToggle-VOdswrKP.cjs → SidebarCollapseToggle-BOLWB51F.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-pNj344jL.js → SidebarCollapseToggle-IzDpcwPs.js} +2 -2
- package/dist/{Skeleton-3N9uC9k_.js → Skeleton-BLn8a0wV.js} +1 -1
- package/dist/{Skeleton-DEzKdU7W.cjs → Skeleton-lLu_CakO.cjs} +1 -1
- package/dist/{Slider-Clgfp-vI.cjs → Slider-Ca5ru23S.cjs} +1 -1
- package/dist/{Slider-Dxh4sXev.js → Slider-CrhYMw5S.js} +4 -4
- package/dist/{Spinner-DpldXeXq.js → Spinner-C7NYF-Xf.js} +1 -1
- package/dist/{Spinner-Cwlskvjj.cjs → Spinner-UsyGqwVq.cjs} +1 -1
- package/dist/{Stepper-BlRuqNKX.cjs → Stepper-BIWoeqFS.cjs} +1 -1
- package/dist/{Stepper-SLb_qc9m.js → Stepper-CrVuq2Ba.js} +1 -1
- package/dist/{StepperStep-DxQQgCrC.js → StepperStep-CBaZPJV7.js} +4 -4
- package/dist/{StepperStep-DoJ3MUEl.cjs → StepperStep-DCpcJbTJ.cjs} +1 -1
- package/dist/Submenu-BC9j6dvb.cjs +1 -0
- package/dist/Submenu-CnRi1GdL.js +149 -0
- package/dist/{Switch-CI_QKz2n.js → Switch-BiqjLsXd.js} +3 -3
- package/dist/{Switch-BnzV_QMu.cjs → Switch-CA01aJ7b.cjs} +1 -1
- package/dist/{TableOfContents-C6Qnq6aS.cjs → TableOfContents-DCfZ4DYi.cjs} +1 -1
- package/dist/{TableOfContents-DwnnMxv5.js → TableOfContents-EYrBCeci.js} +1 -1
- package/dist/Tabs-CrrG1hvh.cjs +1 -0
- package/dist/Tabs-D3pdOieX.js +180 -0
- package/dist/{TextInput--u9htMqc.cjs → TextInput-BdZPqTzI.cjs} +2 -2
- package/dist/{TextInput-C_i6Miob.js → TextInput-KQGVZCcT.js} +4 -4
- package/dist/{Toaster-sBQX6bee.js → Toaster-B4ce6OBe.js} +1 -1
- package/dist/{Toaster-noCUOlwh.cjs → Toaster-CubmjJ_C.cjs} +1 -1
- package/dist/{Tree-CR_288A-.cjs → Tree-CnaGeX7W.cjs} +1 -1
- package/dist/{Tree-C6rMUOja.js → Tree-E3A0GUIG.js} +1 -1
- package/dist/TreeNode-C2W4uFhP.cjs +1 -0
- package/dist/TreeNode-xv6es6z2.js +176 -0
- package/dist/UserMenu-CVXfSmUQ.cjs +1 -0
- package/dist/UserMenu-E-PhzT3T.js +313 -0
- package/dist/{Walkthrough-vAJctcje.js → Walkthrough-BxwgYRUB.js} +1 -1
- package/dist/{Walkthrough-DRx76ziA.cjs → Walkthrough-Dvyp-4Sr.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +207 -203
- package/dist/component-styles.json +7 -0
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/ActionGroup.cjs +1 -0
- package/dist/components/ActionGroup.d.ts +64 -0
- package/dist/components/ActionGroup.mjs +2 -0
- package/dist/components/ActionGroup.vue.d.ts +24 -0
- package/dist/components/ActionGroup.vue.d.ts.map +1 -0
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.d.ts +8 -0
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Board.vue.d.ts +7 -3
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Breadcrumbs.vue.d.ts +12 -1
- package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +3 -3
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.d.ts +23 -0
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/EmptyState.cjs +1 -1
- package/dist/components/EmptyState.mjs +1 -1
- package/dist/components/Field.cjs +1 -1
- package/dist/components/Field.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Flag.cjs +1 -1
- package/dist/components/Flag.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.d.ts +11 -0
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/FloatingToolbar.vue.d.ts +1 -0
- package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/Grid.cjs +1 -1
- package/dist/components/Grid.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.d.ts +5 -0
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineEdit.vue.d.ts +1 -0
- package/dist/components/InlineEdit.vue.d.ts.map +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/MenuItem.cjs +1 -1
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItem.vue.d.ts +1 -1
- package/dist/components/MenuItem.vue.d.ts.map +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.d.ts +6 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts +2 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
- package/dist/components/NubiscoMark.cjs +1 -1
- package/dist/components/NubiscoMark.mjs +1 -1
- package/dist/components/NubiscoPlatformMark.cjs +1 -1
- package/dist/components/NubiscoPlatformMark.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Radio.vue.d.ts.map +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/ReorderList.vue.d.ts.map +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +14 -1
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Slider.vue.d.ts +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Switch.vue.d.ts.map +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tabs.vue.d.ts.map +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +4 -4
- package/dist/components/TextInput.vue.d.ts.map +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toast.vue.d.ts +1 -1
- package/dist/components/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/TreeNode.vue.d.ts.map +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +1 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +1 -0
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/composables/usePhoneLayout.composable.cjs +1 -0
- package/dist/composables/usePhoneLayout.composable.d.ts +28 -0
- package/dist/composables/usePhoneLayout.composable.d.ts.map +1 -0
- package/dist/composables/usePhoneLayout.composable.mjs +25 -0
- package/dist/composables/useShellLayout.composable.cjs +1 -0
- package/dist/composables/useShellLayout.composable.d.ts +24 -0
- package/dist/composables/useShellLayout.composable.d.ts.map +1 -0
- package/dist/composables/useShellLayout.composable.mjs +14 -0
- package/dist/composables/useVisualViewportVar.composable.cjs +1 -0
- package/dist/composables/useVisualViewportVar.composable.d.ts +36 -0
- package/dist/composables/useVisualViewportVar.composable.d.ts.map +1 -0
- package/dist/composables/useVisualViewportVar.composable.mjs +30 -0
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +113 -110
- package/dist/{main-DgTv5UiQ.js → main-3k7sSIY5.js} +102 -99
- package/dist/main-DmyKNXAy.cjs +4 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/ActionGroup.css +1 -0
- package/dist/styles/Board.css +1 -1
- package/dist/styles/Breadcrumbs.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Checkbox.css +1 -1
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/InlineEdit.css +1 -1
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/Radio.css +1 -1
- package/dist/styles/ReorderList.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/Switch.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/TreeNode.css +1 -1
- package/dist/styles/UserMenu.css +1 -1
- package/dist/ui.css +26 -25
- package/package.json +1 -1
- package/src/styles/logic/_touch.scss +31 -0
- package/src/styles/logic/index.scss +1 -0
- package/src/styles/variables/_breakpoints.scss +36 -0
- package/dist/Board-6D49Yld8.js +0 -524
- package/dist/Board-Cp8XfgZm.cjs +0 -1
- package/dist/Breadcrumbs-BXsbR60g.js +0 -46
- package/dist/Breadcrumbs-CPucjD0z.cjs +0 -1
- package/dist/DataTable-8VaU0T7V.js +0 -358
- package/dist/DataTable-Mq7v4Dyk.cjs +0 -1
- package/dist/DatePicker-Cgnm0ku3.js +0 -704
- package/dist/DatePicker-DytDcACW.cjs +0 -1
- package/dist/FloatingToolbar-DpBbWZL6.cjs +0 -1
- package/dist/FloatingToolbar-_loB4pae.js +0 -134
- package/dist/InfoHint-Cs9-C043.cjs +0 -1
- package/dist/InlineEdit-CR9vOw3i.cjs +0 -1
- package/dist/Menu-CsA8dtMR.js +0 -128
- package/dist/Menu-Xt1MCf-q.cjs +0 -1
- package/dist/Modal-Xa9TIGNi.cjs +0 -1
- package/dist/NotificationCenter-B12PMiat.cjs +0 -1
- package/dist/NotificationCenter-B2kJXtA9.js +0 -569
- package/dist/ReorderList-CigXh_u8.cjs +0 -1
- package/dist/Shell-BzAv4AWb.cjs +0 -1
- package/dist/Shell-COpscGYO.js +0 -448
- package/dist/Submenu-QgPVi2bN.cjs +0 -1
- package/dist/Submenu-SQTJc81U.js +0 -148
- package/dist/Tabs-B5crovQe.cjs +0 -1
- package/dist/Tabs-DRrq4YCX.js +0 -149
- package/dist/TreeNode-CXaEp3-m.js +0 -175
- package/dist/TreeNode-kgKGox1Y.cjs +0 -1
- package/dist/UserMenu-C65Ky9ov.cjs +0 -1
- package/dist/UserMenu-ClcDEyTu.js +0 -301
- package/dist/main-BNXD4cwz.cjs +0 -4
- /package/dist/{Avatar-uYRUtK1R.js → Avatar-B8JS0B-W.js} +0 -0
- /package/dist/{Avatar-CLL3i8dn.cjs → Avatar-C-yA5Rqn.cjs} +0 -0
- /package/dist/{Badge-wDtZdOfk.js → Badge-D3oJVwDo.js} +0 -0
- /package/dist/{Badge-ouVFB318.cjs → Badge-Dkm7PBJ8.cjs} +0 -0
- /package/dist/{Banner-DKMPZuXR.js → Banner-C2DFPW-D.js} +0 -0
- /package/dist/{Banner-CtaMbfyG.cjs → Banner-DXfzpyxc.cjs} +0 -0
- /package/dist/{Blueprint.context-DQAE9pH9.cjs → Blueprint.context-CNt0_OyK.cjs} +0 -0
- /package/dist/{Blueprint.context-C51gyX3c.js → Blueprint.context-Cp__sufg.js} +0 -0
- /package/dist/{BlueprintBackground-CCuLvvq5.cjs → BlueprintBackground-CRbAZfZP.cjs} +0 -0
- /package/dist/{BlueprintBackground-DJhMflIN.js → BlueprintBackground-DqRpS-jP.js} +0 -0
- /package/dist/{BlueprintMinimap-C4hKP0wV.cjs → BlueprintMinimap-Bk6V5xcq.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CUNeYFVd.js → BlueprintMinimap-KRlkpH14.js} +0 -0
- /package/dist/{BottomPanel-BkD7euB4.js → BottomPanel-Bt4k2PJn.js} +0 -0
- /package/dist/{BottomPanel-DvS5Q8c8.cjs → BottomPanel-C1mT0_I0.cjs} +0 -0
- /package/dist/{Calendar-D3ExPJ2t.cjs → Calendar-CI6TG85W.cjs} +0 -0
- /package/dist/{Calendar-DCoZLEcA.js → Calendar-CV-B4qeT.js} +0 -0
- /package/dist/{Card-ChgbYLJP.js → Card-BqIF-svL.js} +0 -0
- /package/dist/{Card-duvlUAg9.cjs → Card-Xmv6oz9a.cjs} +0 -0
- /package/dist/{CardGrid-Desk_vNP.cjs → CardGrid-BbGLqQmb.cjs} +0 -0
- /package/dist/{CardGrid-ChwQuHLa.js → CardGrid-CphjVIvE.js} +0 -0
- /package/dist/{ChartLegend-B_Y9TNfO.js → ChartLegend-BLTbVV2E.js} +0 -0
- /package/dist/{ChartLegend-k-7LH8-7.cjs → ChartLegend-DGgW0yjG.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-DYPnnK72.cjs → CheckboxGroup.context-CBJMSIiT.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-BssNljp4.js → CheckboxGroup.context-D-C4RVyg.js} +0 -0
- /package/dist/{CommandPalette-dNJMbapr.cjs → CommandPalette-C56CkOfF.cjs} +0 -0
- /package/dist/{CommandPalette-Bv_AnaSi.js → CommandPalette-CubX_Udj.js} +0 -0
- /package/dist/{DefinitionList-C5cqvaLy.cjs → DefinitionList-CSBl-Ogy.cjs} +0 -0
- /package/dist/{DefinitionList-fmy6J4Re.js → DefinitionList-MsqB9Lxo.js} +0 -0
- /package/dist/{DefinitionListItem-CJK5RkIw.js → DefinitionListItem-Ddz2wLyc.js} +0 -0
- /package/dist/{DefinitionListItem-CWqjObrZ.cjs → DefinitionListItem-DnphEEw1.cjs} +0 -0
- /package/dist/{DragHandle-CoJEyCLX.cjs → DragHandle-B_rMbMxm.cjs} +0 -0
- /package/dist/{DragHandle-DDJ1Hsmo.js → DragHandle-D9NnsyJc.js} +0 -0
- /package/dist/{EmptyState-xU5I0laM.js → EmptyState-B6pEj4jk.js} +0 -0
- /package/dist/{EmptyState-u1iAtZUB.cjs → EmptyState-DRbjP890.cjs} +0 -0
- /package/dist/{Field-CfktrvRe.cjs → Field-BZ2cHQlw.cjs} +0 -0
- /package/dist/{Field-D7ImyCWp.js → Field-tNwOATAd.js} +0 -0
- /package/dist/{Flag-k-Aakupd.js → Flag-C4SjTXTD.js} +0 -0
- /package/dist/{Flag-Pk2LFD1t.cjs → Flag-DFg5FTus.cjs} +0 -0
- /package/dist/{Grid-HifmWSUS.cjs → Grid-DiCxrPaO.cjs} +0 -0
- /package/dist/{Grid-DA2jibMM.js → Grid-iox-7xyH.js} +0 -0
- /package/dist/{JsonTree-BLgpxnrT.js → JsonTree-Do_bunoq.js} +0 -0
- /package/dist/{JsonTree-DGzMCcSN.cjs → JsonTree-DygODsNE.cjs} +0 -0
- /package/dist/{Label-BIM21I7D.cjs → Label-CZhQEyoi.cjs} +0 -0
- /package/dist/{Label-CiWiUQ_H.js → Label-DGK5nxFy.js} +0 -0
- /package/dist/{Layer-B47tXgJm.js → Layer-CPWK7fSy.js} +0 -0
- /package/dist/{Layer-Csk6CZPD.cjs → Layer-Dn8JBO94.cjs} +0 -0
- /package/dist/{MenuBar-cNc__THT.cjs → MenuBar-Cmty676_.cjs} +0 -0
- /package/dist/{MenuBar-CdBcgokD.js → MenuBar-DgoQm2e6.js} +0 -0
- /package/dist/{MenuDivider-DEy1DSW1.js → MenuDivider-Clt77czV.js} +0 -0
- /package/dist/{MenuDivider-GuRZ5Dek.cjs → MenuDivider-SpMk4am3.cjs} +0 -0
- /package/dist/{MenuItem-BKjhq9o2.js → MenuItem-BDLX2QWw.js} +0 -0
- /package/dist/{MenuItem-B-Q5sVlO.cjs → MenuItem-ZQcFYe4m.cjs} +0 -0
- /package/dist/{Message-DjxOb8mu.cjs → Message-C44ftsaT.cjs} +0 -0
- /package/dist/{Message-SQvoXiWl.js → Message-CHkTWe0K.js} +0 -0
- /package/dist/{NotificationCenterItem-pWiBpKMc.cjs → NotificationCenterItem-BP0VBTaB.cjs} +0 -0
- /package/dist/{NotificationCenterItem-yqlKqwI2.js → NotificationCenterItem-CjJh9W_a.js} +0 -0
- /package/dist/{NubiscoMark-BN6bzMMG.cjs → NubiscoMark-BumRk78m.cjs} +0 -0
- /package/dist/{NubiscoMark-Bj6eID79.js → NubiscoMark-eVqSGOjI.js} +0 -0
- /package/dist/{NubiscoPlatformMark-C0OeymWK.js → NubiscoPlatformMark-Ch6dCICn.js} +0 -0
- /package/dist/{NubiscoPlatformMark-CE-poDEU.cjs → NubiscoPlatformMark-IX-E5QQ_.cjs} +0 -0
- /package/dist/{Panel-PtasWgYu.cjs → Panel-Cd29GNxw.cjs} +0 -0
- /package/dist/{Panel-MK5IWy0W.js → Panel-Y8gOQKuw.js} +0 -0
- /package/dist/{ShellPanel-f75v2_V2.js → ShellPanel-BA7QLnzE.js} +0 -0
- /package/dist/{ShellPanel-DzMmoG81.cjs → ShellPanel-CC_QJlLu.cjs} +0 -0
- /package/dist/{SidebarBrand-B3hJvpkF.js → SidebarBrand-8yDIYIQZ.js} +0 -0
- /package/dist/{SidebarBrand-CHxEUgzI.cjs → SidebarBrand-u8Oau9DK.cjs} +0 -0
- /package/dist/{SidebarLink-QG3kJ2EO.js → SidebarLink-XVXCHDBm.js} +0 -0
- /package/dist/{SidebarLink-B_5TV_Y_.cjs → SidebarLink-pgjUnWzl.cjs} +0 -0
- /package/dist/{SidebarMenu-CHra29Qu.cjs → SidebarMenu-CA0y5Zle.cjs} +0 -0
- /package/dist/{SidebarMenu-B4oKxxC9.js → SidebarMenu-e0qP4Nh-.js} +0 -0
- /package/dist/{SidebarMenuGroup-D4zw60k-.js → SidebarMenuGroup-CGnMAAUM.js} +0 -0
- /package/dist/{SidebarMenuGroup-D3-id6rV.cjs → SidebarMenuGroup-VQLxJ1CS.cjs} +0 -0
- /package/dist/{SidebarMenuItem-rDAFayv3.cjs → SidebarMenuItem-CqDbzAAk.cjs} +0 -0
- /package/dist/{SidebarMenuItem-DKfynXs8.js → SidebarMenuItem-DwBLBW-N.js} +0 -0
- /package/dist/{Sparkline-C__UzqcW.js → Sparkline-Bbt4vFjI.js} +0 -0
- /package/dist/{Sparkline-hfnHBqr_.cjs → Sparkline-CdLiYBEr.cjs} +0 -0
- /package/dist/{Stepper.context-DtdxFiTP.js → Stepper.context-BgQfa8xl.js} +0 -0
- /package/dist/{Stepper.context-OTxRDrqb.cjs → Stepper.context-DBNE-GYb.cjs} +0 -0
- /package/dist/{Toast-DdjLfZW7.cjs → Toast-XjSCXTx8.cjs} +0 -0
- /package/dist/{Toast-C7ZcSqjz.js → Toast-q9KByfYq.js} +0 -0
- /package/dist/{TreeContext-CN8Jmm3J.js → TreeContext-BN1eHAL6.js} +0 -0
- /package/dist/{TreeContext-CRgX277A.cjs → TreeContext-PgcV87_V.cjs} +0 -0
- /package/dist/{Wireframe-yxCSPLE-.cjs → Wireframe-DDRVqrll.cjs} +0 -0
- /package/dist/{Wireframe-Lb8viOfl.js → Wireframe-ql6EOtd2.js} +0 -0
- /package/dist/{palette-CP7R55wd.cjs → palette-Cy2_8mLH.cjs} +0 -0
- /package/dist/{palette-BVXsOJol.js → palette-StNyj_sM.js} +0 -0
- /package/dist/{pixi-scene-CjZJN5UI.js → pixi-scene-CuO3As43.js} +0 -0
- /package/dist/{pixi-scene-Be5EU7HP.cjs → pixi-scene-DE1dBR9n.cjs} +0 -0
- /package/dist/{scales-DJ_hCmZX.cjs → scales-4WxjhxBm.cjs} +0 -0
- /package/dist/{scales-CsGzsNm7.js → scales-DlFF1BRk.js} +0 -0
- /package/dist/{useChartSize-DGUae61E.cjs → useChartSize-C-BIN0vc.cjs} +0 -0
- /package/dist/{useChartSize-6K6L_Xnm.js → useChartSize-UdZSuP3G.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-TdYpHGvK.js → useLoadingAnnouncer.composable-C7FA-Ui1.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-DeoNGDYL.cjs → useLoadingAnnouncer.composable-DMycMLn-.cjs} +0 -0
- /package/dist/{vue-i18n-CkVGSKx4.js → vue-i18n-B2FDvjI1.js} +0 -0
- /package/dist/{vue-i18n-Bhwom92P.cjs → vue-i18n-D3Ga_miE.cjs} +0 -0
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
|
+
import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
|
|
3
|
+
import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
|
|
4
|
+
import { t as r } from "./Label-DGK5nxFy.js";
|
|
5
|
+
import { t as i } from "./Message-CHkTWe0K.js";
|
|
6
|
+
import { t as a } from "./Grid-iox-7xyH.js";
|
|
7
|
+
import { useMenuSurface as o } from "./composables/useMenuSurface.composable.mjs";
|
|
8
|
+
import { useVisualViewportVar as s } from "./composables/useVisualViewportVar.composable.mjs";
|
|
9
|
+
import { Fragment as c, Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, mergeProps as ee, nextTick as v, normalizeClass as y, onBeforeUnmount as te, openBlock as b, ref as x, renderList as ne, renderSlot as re, toDisplayString as S, unref as C, useId as ie, watch as ae, withCtx as w, withModifiers as oe } from "vue";
|
|
10
|
+
import { regular as se } from "@nubisco/ui/icons/caret-right";
|
|
11
|
+
import { regular as T } from "@nubisco/ui/icons/calendar";
|
|
12
|
+
import { regular as ce } from "@nubisco/ui/icons/caret-double-left";
|
|
13
|
+
import { regular as le } from "@nubisco/ui/icons/caret-left";
|
|
14
|
+
import { regular as ue } from "@nubisco/ui/icons/caret-double-right";
|
|
15
|
+
//#region src/components/DatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
+
var de = { class: "nb-date-picker__col" }, fe = [
|
|
17
|
+
"id",
|
|
18
|
+
"value",
|
|
19
|
+
"placeholder",
|
|
20
|
+
"disabled",
|
|
21
|
+
"readonly",
|
|
22
|
+
"required",
|
|
23
|
+
"name",
|
|
24
|
+
"aria-invalid",
|
|
25
|
+
"aria-describedby"
|
|
26
|
+
], pe = ["disabled", "aria-label"], me = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "nb-date-picker__col"
|
|
29
|
+
}, he = [
|
|
30
|
+
"id",
|
|
31
|
+
"value",
|
|
32
|
+
"placeholder",
|
|
33
|
+
"disabled",
|
|
34
|
+
"readonly",
|
|
35
|
+
"required",
|
|
36
|
+
"aria-invalid",
|
|
37
|
+
"aria-describedby"
|
|
38
|
+
], ge = ["disabled", "aria-label"], _e = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "nb-date-picker__inner-header"
|
|
41
|
+
}, ve = ["for"], ye = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "nb-date-picker__asterisk",
|
|
44
|
+
"aria-hidden": "true"
|
|
45
|
+
}, be = { class: "nb-date-picker__fluid-row" }, xe = [
|
|
46
|
+
"id",
|
|
47
|
+
"value",
|
|
48
|
+
"placeholder",
|
|
49
|
+
"disabled",
|
|
50
|
+
"readonly",
|
|
51
|
+
"required",
|
|
52
|
+
"name",
|
|
53
|
+
"aria-invalid"
|
|
54
|
+
], Se = ["disabled", "aria-label"], Ce = {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "nb-date-picker__inner-header"
|
|
57
|
+
}, we = ["for"], Te = {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "nb-date-picker__asterisk",
|
|
60
|
+
"aria-hidden": "true"
|
|
61
|
+
}, Ee = { class: "nb-date-picker__fluid-row" }, De = [
|
|
62
|
+
"id",
|
|
63
|
+
"value",
|
|
64
|
+
"placeholder",
|
|
65
|
+
"disabled",
|
|
66
|
+
"readonly",
|
|
67
|
+
"required",
|
|
68
|
+
"aria-invalid"
|
|
69
|
+
], Oe = ["disabled", "aria-label"], ke = ["aria-label"], Ae = { class: "nb-date-picker__cal-header" }, je = ["id"], Me = ["aria-labelledby"], Ne = { class: "nb-date-picker__cal-weekdays" }, Pe = ["abbr"], Fe = ["aria-selected", "aria-disabled"], Ie = [
|
|
70
|
+
"tabindex",
|
|
71
|
+
"disabled",
|
|
72
|
+
"aria-label",
|
|
73
|
+
"data-date",
|
|
74
|
+
"onClick"
|
|
75
|
+
], Le = /* @__PURE__ */ _({
|
|
76
|
+
inheritAttrs: !1,
|
|
77
|
+
__name: "DatePicker",
|
|
78
|
+
props: {
|
|
79
|
+
modelValue: { default: null },
|
|
80
|
+
type: { default: "single" },
|
|
81
|
+
endValue: { default: null },
|
|
82
|
+
min: { default: void 0 },
|
|
83
|
+
max: { default: void 0 },
|
|
84
|
+
weekStart: { default: 1 },
|
|
85
|
+
locale: { default: void 0 },
|
|
86
|
+
endPlaceholder: { default: "" },
|
|
87
|
+
endLabel: { default: "" },
|
|
88
|
+
endError: { default: "" },
|
|
89
|
+
endWarning: { default: "" },
|
|
90
|
+
disabledDates: {
|
|
91
|
+
type: [Array, Function],
|
|
92
|
+
default: void 0
|
|
93
|
+
},
|
|
94
|
+
readonly: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: !1
|
|
97
|
+
},
|
|
98
|
+
placeholder: { default: "" },
|
|
99
|
+
name: { default: "" },
|
|
100
|
+
disabled: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: !1
|
|
103
|
+
},
|
|
104
|
+
required: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: !1
|
|
107
|
+
},
|
|
108
|
+
id: { default: void 0 },
|
|
109
|
+
label: { default: "" },
|
|
110
|
+
error: { default: "" },
|
|
111
|
+
warning: { default: "" },
|
|
112
|
+
helper: { default: "" },
|
|
113
|
+
variant: { default: "default" },
|
|
114
|
+
size: { default: "md" }
|
|
115
|
+
},
|
|
116
|
+
emits: [
|
|
117
|
+
"update:modelValue",
|
|
118
|
+
"update:endValue",
|
|
119
|
+
"change"
|
|
120
|
+
],
|
|
121
|
+
setup(_, { expose: Le, emit: Re }) {
|
|
122
|
+
let E = _, { layerProps: ze } = t({ overlay: !0 }), D = Re, Be = `nb-date-picker-${ie()}`, O = u(() => E.id ?? Be), k = u(() => `${O.value}-end`), Ve = u(() => `${O.value}-helper`), He = u(() => `${O.value}-message`), Ue = u(() => `${O.value}-end-message`), We = u(() => `${O.value}-cal-title`), A = x(null), Ge = u(() => A.value !== null), j = x(!1), M = x($(/* @__PURE__ */ new Date())), Ke = x(null), qe = x(null), N = x(null), Je = x(null);
|
|
123
|
+
o(Je);
|
|
124
|
+
let { phone: Ye } = n(), Xe = x(null);
|
|
125
|
+
s(() => j.value);
|
|
126
|
+
let Ze = x({
|
|
127
|
+
position: "fixed",
|
|
128
|
+
top: "0px",
|
|
129
|
+
left: "0px",
|
|
130
|
+
zIndex: "9999"
|
|
131
|
+
}), P = x("start"), F = u(() => E.locale || navigator.language || "pt-PT"), I = u(() => new Intl.DateTimeFormat(F.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type === "day" ? "dd" : e.type === "month" ? "mm" : e.type === "year" ? "yyyy" : e.value).join(""));
|
|
132
|
+
function L(e) {
|
|
133
|
+
if (!e) return "";
|
|
134
|
+
let t = /* @__PURE__ */ new Date(e + "T00:00:00");
|
|
135
|
+
return isNaN(t.getTime()) ? e : t.toLocaleDateString(F.value);
|
|
136
|
+
}
|
|
137
|
+
function Qe(e) {
|
|
138
|
+
return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString(F.value, {
|
|
139
|
+
weekday: "long",
|
|
140
|
+
year: "numeric",
|
|
141
|
+
month: "long",
|
|
142
|
+
day: "numeric"
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
let $e = u(() => L(E.modelValue ?? null)), et = u(() => L(E.endValue ?? null)), R = u(() => E.error ? {
|
|
146
|
+
variant: "error",
|
|
147
|
+
text: E.error
|
|
148
|
+
} : E.warning ? {
|
|
149
|
+
variant: "warning",
|
|
150
|
+
text: E.warning
|
|
151
|
+
} : null), z = u(() => E.type === "range" ? E.endError ? {
|
|
152
|
+
variant: "error",
|
|
153
|
+
text: E.endError
|
|
154
|
+
} : E.endWarning ? {
|
|
155
|
+
variant: "warning",
|
|
156
|
+
text: E.endWarning
|
|
157
|
+
} : null : null), B = u(() => R.value ? R.value : E.helper ? {
|
|
158
|
+
variant: "helper",
|
|
159
|
+
text: E.helper
|
|
160
|
+
} : null), tt = u(() => {
|
|
161
|
+
if (E.variant === "default") return R.value ? He.value : E.helper ? Ve.value : void 0;
|
|
162
|
+
}), nt = u(() => {
|
|
163
|
+
if (E.variant === "default") return z.value ? Ue.value : E.helper ? Ve.value : void 0;
|
|
164
|
+
}), rt = u(() => E.type === "range" && !!E.endLabel), it = u(() => E.endLabel || E.endPlaceholder);
|
|
165
|
+
function V(e) {
|
|
166
|
+
return E.min != null && e < E.min || E.max != null && e > E.max ? !0 : E.disabledDates ? typeof E.disabledDates == "function" ? E.disabledDates(e) : E.disabledDates.includes(e) : !1;
|
|
167
|
+
}
|
|
168
|
+
function at(e) {
|
|
169
|
+
let t = e.trim();
|
|
170
|
+
if (!t) return null;
|
|
171
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
|
|
172
|
+
let e = /* @__PURE__ */ new Date(t + "T00:00:00");
|
|
173
|
+
return isNaN(e.getTime()) ? null : t;
|
|
174
|
+
}
|
|
175
|
+
let n = new Date(t);
|
|
176
|
+
return isNaN(n.getTime()) ? null : $(n);
|
|
177
|
+
}
|
|
178
|
+
function ot(e) {
|
|
179
|
+
let t = e.target.value, n = at(t);
|
|
180
|
+
n && V(n) || (n || t === "") && (D("update:modelValue", n), D("change", n));
|
|
181
|
+
}
|
|
182
|
+
function st(e) {
|
|
183
|
+
let t = e.target.value, n = at(t);
|
|
184
|
+
n && V(n) || (n || t === "") && D("update:endValue", n);
|
|
185
|
+
}
|
|
186
|
+
function H(e) {
|
|
187
|
+
A.value = e.target === N.value ? "end" : "start", E.type !== "simple" && !E.readonly && (P.value = A.value, j.value ? ct() : G());
|
|
188
|
+
}
|
|
189
|
+
function U() {
|
|
190
|
+
A.value = null;
|
|
191
|
+
}
|
|
192
|
+
function W(e) {
|
|
193
|
+
if (!(E.type === "simple" || E.readonly)) switch (e.key) {
|
|
194
|
+
case "Escape":
|
|
195
|
+
j.value && (K(), e.preventDefault());
|
|
196
|
+
break;
|
|
197
|
+
case "ArrowDown":
|
|
198
|
+
e.preventDefault(), j.value || G(), v(J);
|
|
199
|
+
break;
|
|
200
|
+
case "Enter":
|
|
201
|
+
j.value || (e.preventDefault(), G(), v(J));
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function ct() {
|
|
206
|
+
let e = Ke.value?.querySelectorAll(".nb-date-picker__input-wrapper");
|
|
207
|
+
if (!e?.length) return;
|
|
208
|
+
let t = (P.value === "end" && e.length > 1 ? e[1] : e[0]).getBoundingClientRect();
|
|
209
|
+
Ze.value = {
|
|
210
|
+
position: "fixed",
|
|
211
|
+
top: `${t.bottom + 4}px`,
|
|
212
|
+
left: `${t.left}px`,
|
|
213
|
+
zIndex: "9999"
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function G() {
|
|
217
|
+
if (E.disabled || E.readonly || E.type === "simple" || j.value) return;
|
|
218
|
+
j.value = !0;
|
|
219
|
+
let e = P.value === "end" && E.endValue ? E.endValue : E.modelValue, t = e ? /* @__PURE__ */ new Date(e + "T00:00:00") : /* @__PURE__ */ new Date();
|
|
220
|
+
Z.value = t.getFullYear(), Q.value = t.getMonth(), M.value = e || $(/* @__PURE__ */ new Date()), ct();
|
|
221
|
+
}
|
|
222
|
+
function K() {
|
|
223
|
+
j.value && (j.value = !1, v(() => {
|
|
224
|
+
P.value === "end" && N.value ? N.value.focus() : qe.value?.focus();
|
|
225
|
+
}));
|
|
226
|
+
}
|
|
227
|
+
function q() {
|
|
228
|
+
j.value ? K() : (P.value = "start", G(), v(J));
|
|
229
|
+
}
|
|
230
|
+
function J() {
|
|
231
|
+
v(() => {
|
|
232
|
+
(Je.value?.querySelector(`[data-date="${M.value}"]`))?.focus();
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
function lt(e) {
|
|
236
|
+
V(e) || (E.type === "range" ? P.value === "start" ? (D("update:modelValue", e), D("change", e), P.value = "end", M.value = e, v(() => N.value?.focus())) : (E.modelValue && e < E.modelValue ? (D("update:endValue", E.modelValue), D("update:modelValue", e), D("change", e)) : D("update:endValue", e), K()) : (D("update:modelValue", e), D("change", e), K()));
|
|
237
|
+
}
|
|
238
|
+
function ut(e) {
|
|
239
|
+
let t = /* @__PURE__ */ new Date(M.value + "T00:00:00"), n = !0;
|
|
240
|
+
switch (e.key) {
|
|
241
|
+
case "ArrowRight":
|
|
242
|
+
Y(t, 1);
|
|
243
|
+
break;
|
|
244
|
+
case "ArrowLeft":
|
|
245
|
+
Y(t, -1);
|
|
246
|
+
break;
|
|
247
|
+
case "ArrowDown":
|
|
248
|
+
Y(t, 7);
|
|
249
|
+
break;
|
|
250
|
+
case "ArrowUp":
|
|
251
|
+
Y(t, -7);
|
|
252
|
+
break;
|
|
253
|
+
case "Home":
|
|
254
|
+
dt(t, "start");
|
|
255
|
+
break;
|
|
256
|
+
case "End":
|
|
257
|
+
dt(t, "end");
|
|
258
|
+
break;
|
|
259
|
+
case "PageUp":
|
|
260
|
+
e.shiftKey ? ft(t, -12) : ft(t, -1);
|
|
261
|
+
break;
|
|
262
|
+
case "PageDown":
|
|
263
|
+
e.shiftKey ? ft(t, 12) : ft(t, 1);
|
|
264
|
+
break;
|
|
265
|
+
case "Enter":
|
|
266
|
+
case " ":
|
|
267
|
+
e.preventDefault(), lt(M.value);
|
|
268
|
+
return;
|
|
269
|
+
case "Escape":
|
|
270
|
+
K();
|
|
271
|
+
break;
|
|
272
|
+
case "Tab":
|
|
273
|
+
K();
|
|
274
|
+
return;
|
|
275
|
+
default: n = !1;
|
|
276
|
+
}
|
|
277
|
+
n && e.preventDefault();
|
|
278
|
+
}
|
|
279
|
+
function Y(e, t) {
|
|
280
|
+
let n = new Date(e);
|
|
281
|
+
n.setDate(n.getDate() + t), pt(n);
|
|
282
|
+
}
|
|
283
|
+
function dt(e, t) {
|
|
284
|
+
let n = e.getDay();
|
|
285
|
+
E.weekStart === 1 && (n = n === 0 ? 6 : n - 1);
|
|
286
|
+
let r = t === "start" ? -n : 6 - n, i = new Date(e);
|
|
287
|
+
i.setDate(i.getDate() + r), pt(i);
|
|
288
|
+
}
|
|
289
|
+
function ft(e, t) {
|
|
290
|
+
let n = new Date(e);
|
|
291
|
+
n.setMonth(n.getMonth() + t), n.getDate() !== e.getDate() && n.setDate(0), pt(n);
|
|
292
|
+
}
|
|
293
|
+
function pt(e) {
|
|
294
|
+
let t = $(e);
|
|
295
|
+
E.min != null && t < E.min || E.max != null && t > E.max || (M.value = t, Z.value = e.getFullYear(), Q.value = e.getMonth(), J());
|
|
296
|
+
}
|
|
297
|
+
function mt(e) {
|
|
298
|
+
let t = e.target, n = Ke.value?.contains(t) ?? !1, r = Je.value?.contains(t) ?? !1, i = Xe.value?.contains(t) ?? !1;
|
|
299
|
+
!n && !r && !i && K();
|
|
300
|
+
}
|
|
301
|
+
function X() {
|
|
302
|
+
j.value && ct();
|
|
303
|
+
}
|
|
304
|
+
ae(j, (e) => {
|
|
305
|
+
e ? (document.addEventListener("mousedown", mt), window.addEventListener("scroll", X, !0), window.addEventListener("resize", X)) : (document.removeEventListener("mousedown", mt), window.removeEventListener("scroll", X, !0), window.removeEventListener("resize", X));
|
|
306
|
+
}), te(() => {
|
|
307
|
+
document.removeEventListener("mousedown", mt), window.removeEventListener("scroll", X, !0), window.removeEventListener("resize", X);
|
|
308
|
+
});
|
|
309
|
+
let Z = x((/* @__PURE__ */ new Date()).getFullYear()), Q = x((/* @__PURE__ */ new Date()).getMonth());
|
|
310
|
+
function ht(e) {
|
|
311
|
+
let t = Z.value * 12 + Q.value + e;
|
|
312
|
+
Z.value = Math.floor(t / 12), Q.value = (t % 12 + 12) % 12;
|
|
313
|
+
let n = (/* @__PURE__ */ new Date(M.value + "T00:00:00")).getDate(), r = new Date(Z.value, Q.value + 1, 0).getDate();
|
|
314
|
+
M.value = $(new Date(Z.value, Q.value, Math.min(n, r))), J();
|
|
315
|
+
}
|
|
316
|
+
let gt = () => ht(-1), _t = () => ht(1), vt = () => ht(-12), yt = () => ht(12), bt = u(() => {
|
|
317
|
+
let e = new Date(Z.value, Q.value, 1).toLocaleDateString(F.value, {
|
|
318
|
+
month: "long",
|
|
319
|
+
year: "numeric"
|
|
320
|
+
});
|
|
321
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
322
|
+
}), xt = u(() => {
|
|
323
|
+
let e = [], t = new Date(2024, 0, E.weekStart === 0 ? 7 : 1);
|
|
324
|
+
for (let n = 0; n < 7; n++) {
|
|
325
|
+
let r = new Date(t);
|
|
326
|
+
r.setDate(t.getDate() + n);
|
|
327
|
+
let i = r.toLocaleDateString(F.value, { weekday: "narrow" }).toUpperCase(), a = r.toLocaleDateString(F.value, { weekday: "long" });
|
|
328
|
+
e.push({
|
|
329
|
+
narrow: i,
|
|
330
|
+
full: a.charAt(0).toUpperCase() + a.slice(1)
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
return e;
|
|
334
|
+
});
|
|
335
|
+
function $(e) {
|
|
336
|
+
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
337
|
+
}
|
|
338
|
+
let St = u(() => $(/* @__PURE__ */ new Date())), Ct = u(() => {
|
|
339
|
+
let e = Z.value, t = Q.value, n = new Date(e, t, 1), r = new Date(e, t + 1, 0), i = n.getDay();
|
|
340
|
+
E.weekStart === 1 && (i = i === 0 ? 6 : i - 1);
|
|
341
|
+
let a = [], o = E.modelValue ?? null, s = E.endValue ?? null, c = o && s ? o < s ? o : s : null, l = o && s ? o < s ? s : o : null;
|
|
342
|
+
function u(e, t) {
|
|
343
|
+
let n = $(e);
|
|
344
|
+
return {
|
|
345
|
+
key: n,
|
|
346
|
+
date: n,
|
|
347
|
+
day: e.getDate(),
|
|
348
|
+
inMonth: t,
|
|
349
|
+
isToday: n === St.value,
|
|
350
|
+
isSelected: n === o || n === s,
|
|
351
|
+
inRange: c != null && l != null && n > c && n < l,
|
|
352
|
+
isRangeStart: n === c && l != null,
|
|
353
|
+
isRangeEnd: n === l && c != null,
|
|
354
|
+
isDisabled: V(n)
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
for (let n = i - 1; n >= 0; n--) a.push(u(new Date(e, t, -n), !1));
|
|
358
|
+
for (let n = 1; n <= r.getDate(); n++) a.push(u(new Date(e, t, n), !0));
|
|
359
|
+
let d = 7 - a.length % 7;
|
|
360
|
+
if (d < 7) for (let n = 1; n <= d; n++) a.push(u(new Date(e, t + 1, n), !1));
|
|
361
|
+
return a;
|
|
362
|
+
}), wt = u(() => {
|
|
363
|
+
let e = [];
|
|
364
|
+
for (let t = 0; t < Ct.value.length; t += 7) e.push(Ct.value.slice(t, t + 7));
|
|
365
|
+
return e;
|
|
366
|
+
}), Tt = u(() => [
|
|
367
|
+
"nb-date-picker",
|
|
368
|
+
`nb-date-picker--${E.variant}`,
|
|
369
|
+
`nb-date-picker--${E.size}`,
|
|
370
|
+
`nb-date-picker--${E.type}`,
|
|
371
|
+
{
|
|
372
|
+
"nb-date-picker--focused": Ge.value,
|
|
373
|
+
"nb-date-picker--open": j.value,
|
|
374
|
+
"nb-date-picker--error": !!E.error || !!E.endError,
|
|
375
|
+
"nb-date-picker--warning": !E.error && !E.endError && (!!E.warning || !!E.endWarning),
|
|
376
|
+
"nb-date-picker--disabled": E.disabled,
|
|
377
|
+
"nb-date-picker--readonly": E.readonly
|
|
378
|
+
}
|
|
379
|
+
]), Et = u(() => ({
|
|
380
|
+
"nb-date-picker__input-wrapper--focused": A.value === "start",
|
|
381
|
+
"nb-date-picker__input-wrapper--error": !!E.error,
|
|
382
|
+
"nb-date-picker__input-wrapper--warning": !E.error && !!E.warning,
|
|
383
|
+
"nb-date-picker__input-wrapper--disabled": E.disabled,
|
|
384
|
+
"nb-date-picker__input-wrapper--readonly": E.readonly
|
|
385
|
+
})), Dt = u(() => ({
|
|
386
|
+
"nb-date-picker__input-wrapper--focused": A.value === "end",
|
|
387
|
+
"nb-date-picker__input-wrapper--error": !!E.endError,
|
|
388
|
+
"nb-date-picker__input-wrapper--warning": !E.endError && !!E.endWarning,
|
|
389
|
+
"nb-date-picker__input-wrapper--disabled": E.disabled,
|
|
390
|
+
"nb-date-picker__input-wrapper--readonly": E.readonly
|
|
391
|
+
}));
|
|
392
|
+
return Le({
|
|
393
|
+
open: G,
|
|
394
|
+
close: K,
|
|
395
|
+
focus: () => qe.value?.focus()
|
|
396
|
+
}), (t, n) => (b(), p(c, null, [m("div", {
|
|
397
|
+
ref_key: "rootRef",
|
|
398
|
+
ref: Ke,
|
|
399
|
+
class: y(Tt.value)
|
|
400
|
+
}, [_.variant === "default" ? (b(), p(c, { key: 0 }, [
|
|
401
|
+
t.$slots.label ? re(t.$slots, "label", { key: 0 }) : _.label && !rt.value ? (b(), d(r, {
|
|
402
|
+
key: 1,
|
|
403
|
+
for: O.value,
|
|
404
|
+
required: _.required,
|
|
405
|
+
disabled: _.disabled
|
|
406
|
+
}, {
|
|
407
|
+
default: w(() => [h(S(_.label), 1)]),
|
|
408
|
+
_: 1
|
|
409
|
+
}, 8, [
|
|
410
|
+
"for",
|
|
411
|
+
"required",
|
|
412
|
+
"disabled"
|
|
413
|
+
])) : f("", !0),
|
|
414
|
+
g(a, {
|
|
415
|
+
dir: "row",
|
|
416
|
+
gap: _.type === "range" ? "sm" : void 0,
|
|
417
|
+
class: "nb-date-picker__fields"
|
|
418
|
+
}, {
|
|
419
|
+
default: w(() => [m("div", de, [rt.value && _.label ? (b(), d(r, {
|
|
420
|
+
key: 0,
|
|
421
|
+
for: O.value,
|
|
422
|
+
required: _.required,
|
|
423
|
+
disabled: _.disabled
|
|
424
|
+
}, {
|
|
425
|
+
default: w(() => [h(S(_.label), 1)]),
|
|
426
|
+
_: 1
|
|
427
|
+
}, 8, [
|
|
428
|
+
"for",
|
|
429
|
+
"required",
|
|
430
|
+
"disabled"
|
|
431
|
+
])) : f("", !0), m("div", { class: y(["nb-date-picker__input-wrapper", Et.value]) }, [m("input", ee({
|
|
432
|
+
id: O.value,
|
|
433
|
+
ref_key: "inputRef",
|
|
434
|
+
ref: qe
|
|
435
|
+
}, t.$attrs, {
|
|
436
|
+
type: "text",
|
|
437
|
+
class: "nb-date-picker__field",
|
|
438
|
+
value: $e.value,
|
|
439
|
+
placeholder: _.placeholder || I.value,
|
|
440
|
+
disabled: _.disabled,
|
|
441
|
+
readonly: _.readonly,
|
|
442
|
+
required: _.required,
|
|
443
|
+
name: _.name,
|
|
444
|
+
"aria-invalid": _.error ? !0 : void 0,
|
|
445
|
+
"aria-describedby": tt.value,
|
|
446
|
+
onInput: n[0] ||= (e) => ot(e),
|
|
447
|
+
onFocus: H,
|
|
448
|
+
onBlur: U,
|
|
449
|
+
onKeydown: W
|
|
450
|
+
}), null, 16, fe), _.type === "simple" ? f("", !0) : (b(), p("button", {
|
|
451
|
+
key: 0,
|
|
452
|
+
type: "button",
|
|
453
|
+
class: "nb-date-picker__icon",
|
|
454
|
+
disabled: _.disabled || _.readonly,
|
|
455
|
+
tabindex: "-1",
|
|
456
|
+
"aria-label": _.modelValue ? `Change date, ${L(_.modelValue)}` : "Choose date",
|
|
457
|
+
onClick: q
|
|
458
|
+
}, [g(e, {
|
|
459
|
+
name: C(T),
|
|
460
|
+
size: 16
|
|
461
|
+
}, null, 8, ["name"])], 8, pe))], 2)]), _.type === "range" ? (b(), p("div", me, [rt.value ? (b(), d(r, {
|
|
462
|
+
key: 0,
|
|
463
|
+
for: k.value,
|
|
464
|
+
required: _.required,
|
|
465
|
+
disabled: _.disabled
|
|
466
|
+
}, {
|
|
467
|
+
default: w(() => [h(S(_.endLabel), 1)]),
|
|
468
|
+
_: 1
|
|
469
|
+
}, 8, [
|
|
470
|
+
"for",
|
|
471
|
+
"required",
|
|
472
|
+
"disabled"
|
|
473
|
+
])) : f("", !0), m("div", { class: y(["nb-date-picker__input-wrapper", Dt.value]) }, [m("input", {
|
|
474
|
+
id: k.value,
|
|
475
|
+
ref_key: "endInputRef",
|
|
476
|
+
ref: N,
|
|
477
|
+
type: "text",
|
|
478
|
+
class: "nb-date-picker__field",
|
|
479
|
+
value: et.value,
|
|
480
|
+
placeholder: _.endPlaceholder || I.value,
|
|
481
|
+
disabled: _.disabled,
|
|
482
|
+
readonly: _.readonly,
|
|
483
|
+
required: _.required,
|
|
484
|
+
"aria-invalid": _.endError ? !0 : void 0,
|
|
485
|
+
"aria-describedby": nt.value,
|
|
486
|
+
onInput: n[1] ||= (e) => st(e),
|
|
487
|
+
onFocus: H,
|
|
488
|
+
onBlur: U,
|
|
489
|
+
onKeydown: W
|
|
490
|
+
}, null, 40, he), m("button", {
|
|
491
|
+
type: "button",
|
|
492
|
+
class: "nb-date-picker__icon",
|
|
493
|
+
disabled: _.disabled || _.readonly,
|
|
494
|
+
tabindex: "-1",
|
|
495
|
+
"aria-label": _.endValue ? `Change end date, ${L(_.endValue)}` : "Choose end date",
|
|
496
|
+
onClick: q
|
|
497
|
+
}, [g(e, {
|
|
498
|
+
name: C(T),
|
|
499
|
+
size: 16
|
|
500
|
+
}, null, 8, ["name"])], 8, ge)], 2)])) : f("", !0)]),
|
|
501
|
+
_: 1
|
|
502
|
+
}, 8, ["gap"]),
|
|
503
|
+
R.value ? (b(), d(i, {
|
|
504
|
+
key: 2,
|
|
505
|
+
id: He.value,
|
|
506
|
+
variant: R.value.variant,
|
|
507
|
+
class: "nb-date-picker__message"
|
|
508
|
+
}, {
|
|
509
|
+
default: w(() => [h(S(R.value.text), 1)]),
|
|
510
|
+
_: 1
|
|
511
|
+
}, 8, ["id", "variant"])) : f("", !0),
|
|
512
|
+
z.value ? (b(), d(i, {
|
|
513
|
+
key: 3,
|
|
514
|
+
id: Ue.value,
|
|
515
|
+
variant: z.value.variant,
|
|
516
|
+
class: "nb-date-picker__message"
|
|
517
|
+
}, {
|
|
518
|
+
default: w(() => [h(S(z.value.text), 1)]),
|
|
519
|
+
_: 1
|
|
520
|
+
}, 8, ["id", "variant"])) : f("", !0),
|
|
521
|
+
!R.value && !z.value && _.helper ? (b(), d(i, {
|
|
522
|
+
key: 4,
|
|
523
|
+
id: Ve.value,
|
|
524
|
+
variant: "helper",
|
|
525
|
+
class: "nb-date-picker__message"
|
|
526
|
+
}, {
|
|
527
|
+
default: w(() => [h(S(_.helper), 1)]),
|
|
528
|
+
_: 1
|
|
529
|
+
}, 8, ["id"])) : f("", !0)
|
|
530
|
+
], 64)) : _.variant === "fluid" ? (b(), d(a, {
|
|
531
|
+
key: 1,
|
|
532
|
+
dir: "row",
|
|
533
|
+
gap: _.type === "range" ? "sm" : void 0,
|
|
534
|
+
class: "nb-date-picker__fields"
|
|
535
|
+
}, {
|
|
536
|
+
default: w(() => [m("div", { class: y(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Et.value]) }, [_.label || t.$slots.label || B.value ? (b(), p("div", _e, [t.$slots.label ? re(t.$slots, "label", { key: 0 }) : (b(), p("label", {
|
|
537
|
+
key: 1,
|
|
538
|
+
for: O.value,
|
|
539
|
+
class: "nb-date-picker__inner-label"
|
|
540
|
+
}, [h(S(_.label) + " ", 1), _.required ? (b(), p("span", ye, "*")) : f("", !0)], 8, ve)), B.value ? (b(), d(i, {
|
|
541
|
+
key: 2,
|
|
542
|
+
variant: B.value.variant,
|
|
543
|
+
"icon-only": "",
|
|
544
|
+
class: "nb-date-picker__inner-message"
|
|
545
|
+
}, {
|
|
546
|
+
default: w(() => [h(S(B.value.text), 1)]),
|
|
547
|
+
_: 1
|
|
548
|
+
}, 8, ["variant"])) : f("", !0)])) : f("", !0), m("div", be, [m("input", ee({
|
|
549
|
+
id: O.value,
|
|
550
|
+
ref_key: "inputRef",
|
|
551
|
+
ref: qe
|
|
552
|
+
}, t.$attrs, {
|
|
553
|
+
type: "text",
|
|
554
|
+
class: "nb-date-picker__field",
|
|
555
|
+
value: $e.value,
|
|
556
|
+
placeholder: _.placeholder || I.value,
|
|
557
|
+
disabled: _.disabled,
|
|
558
|
+
readonly: _.readonly,
|
|
559
|
+
required: _.required,
|
|
560
|
+
name: _.name,
|
|
561
|
+
"aria-invalid": _.error ? !0 : void 0,
|
|
562
|
+
onInput: n[2] ||= (e) => ot(e),
|
|
563
|
+
onFocus: H,
|
|
564
|
+
onBlur: U,
|
|
565
|
+
onKeydown: W
|
|
566
|
+
}), null, 16, xe), _.type === "simple" ? f("", !0) : (b(), p("button", {
|
|
567
|
+
key: 0,
|
|
568
|
+
type: "button",
|
|
569
|
+
class: "nb-date-picker__icon",
|
|
570
|
+
disabled: _.disabled || _.readonly,
|
|
571
|
+
tabindex: "-1",
|
|
572
|
+
"aria-label": _.modelValue ? `Change date, ${L(_.modelValue)}` : "Choose date",
|
|
573
|
+
onClick: q
|
|
574
|
+
}, [g(e, {
|
|
575
|
+
name: C(T),
|
|
576
|
+
size: 16
|
|
577
|
+
}, null, 8, ["name"])], 8, Se))])], 2), _.type === "range" ? (b(), p("div", {
|
|
578
|
+
key: 0,
|
|
579
|
+
class: y(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Dt.value])
|
|
580
|
+
}, [it.value || z.value ? (b(), p("div", Ce, [m("label", {
|
|
581
|
+
for: k.value,
|
|
582
|
+
class: "nb-date-picker__inner-label"
|
|
583
|
+
}, [h(S(it.value) + " ", 1), _.required ? (b(), p("span", Te, "*")) : f("", !0)], 8, we), z.value ? (b(), d(i, {
|
|
584
|
+
key: 0,
|
|
585
|
+
variant: z.value.variant,
|
|
586
|
+
"icon-only": "",
|
|
587
|
+
class: "nb-date-picker__inner-message"
|
|
588
|
+
}, {
|
|
589
|
+
default: w(() => [h(S(z.value.text), 1)]),
|
|
590
|
+
_: 1
|
|
591
|
+
}, 8, ["variant"])) : f("", !0)])) : f("", !0), m("div", Ee, [m("input", {
|
|
592
|
+
id: k.value,
|
|
593
|
+
ref_key: "endInputRef",
|
|
594
|
+
ref: N,
|
|
595
|
+
type: "text",
|
|
596
|
+
class: "nb-date-picker__field",
|
|
597
|
+
value: et.value,
|
|
598
|
+
placeholder: _.endPlaceholder || I.value,
|
|
599
|
+
disabled: _.disabled,
|
|
600
|
+
readonly: _.readonly,
|
|
601
|
+
required: _.required,
|
|
602
|
+
"aria-invalid": _.endError ? !0 : void 0,
|
|
603
|
+
onInput: n[3] ||= (e) => st(e),
|
|
604
|
+
onFocus: H,
|
|
605
|
+
onBlur: U,
|
|
606
|
+
onKeydown: W
|
|
607
|
+
}, null, 40, De), m("button", {
|
|
608
|
+
type: "button",
|
|
609
|
+
class: "nb-date-picker__icon",
|
|
610
|
+
disabled: _.disabled || _.readonly,
|
|
611
|
+
tabindex: "-1",
|
|
612
|
+
"aria-label": _.endValue ? `Change end date, ${L(_.endValue)}` : "Choose end date",
|
|
613
|
+
onClick: q
|
|
614
|
+
}, [g(e, {
|
|
615
|
+
name: C(T),
|
|
616
|
+
size: 16
|
|
617
|
+
}, null, 8, ["name"])], 8, Oe)])], 2)) : f("", !0)]),
|
|
618
|
+
_: 3
|
|
619
|
+
}, 8, ["gap"])) : f("", !0)], 2), (b(), d(l, { to: "body" }, [j.value && C(Ye) ? (b(), p("div", {
|
|
620
|
+
key: 0,
|
|
621
|
+
ref_key: "scrimRef",
|
|
622
|
+
ref: Xe,
|
|
623
|
+
class: "nb-date-picker__scrim",
|
|
624
|
+
"aria-hidden": "true",
|
|
625
|
+
onClick: K
|
|
626
|
+
}, null, 512)) : f("", !0), j.value ? (b(), p("div", ee({
|
|
627
|
+
key: 1,
|
|
628
|
+
ref_key: "calendarRef",
|
|
629
|
+
ref: Je,
|
|
630
|
+
role: "dialog",
|
|
631
|
+
"aria-modal": "true",
|
|
632
|
+
"aria-label": _.label ? `${_.label} calendar` : "Date picker",
|
|
633
|
+
class: ["nb-date-picker__calendar", { "nb-date-picker__calendar--sheet": C(Ye) }]
|
|
634
|
+
}, C(ze), {
|
|
635
|
+
style: C(Ye) ? void 0 : Ze.value,
|
|
636
|
+
onKeydown: ut,
|
|
637
|
+
onMousedown: n[4] ||= oe(() => {}, ["prevent"])
|
|
638
|
+
}), [m("div", Ae, [
|
|
639
|
+
m("button", {
|
|
640
|
+
type: "button",
|
|
641
|
+
class: "nb-date-picker__cal-nav",
|
|
642
|
+
"aria-label": "Previous year",
|
|
643
|
+
onClick: vt
|
|
644
|
+
}, [g(e, {
|
|
645
|
+
name: C(ce),
|
|
646
|
+
size: 16
|
|
647
|
+
}, null, 8, ["name"])]),
|
|
648
|
+
m("button", {
|
|
649
|
+
type: "button",
|
|
650
|
+
class: "nb-date-picker__cal-nav",
|
|
651
|
+
"aria-label": "Previous month",
|
|
652
|
+
onClick: gt
|
|
653
|
+
}, [g(e, {
|
|
654
|
+
name: C(le),
|
|
655
|
+
size: 16
|
|
656
|
+
}, null, 8, ["name"])]),
|
|
657
|
+
m("span", {
|
|
658
|
+
id: We.value,
|
|
659
|
+
class: "nb-date-picker__cal-title",
|
|
660
|
+
"aria-live": "polite"
|
|
661
|
+
}, S(bt.value), 9, je),
|
|
662
|
+
m("button", {
|
|
663
|
+
type: "button",
|
|
664
|
+
class: "nb-date-picker__cal-nav",
|
|
665
|
+
"aria-label": "Next month",
|
|
666
|
+
onClick: _t
|
|
667
|
+
}, [g(e, {
|
|
668
|
+
name: C(se),
|
|
669
|
+
size: 16
|
|
670
|
+
}, null, 8, ["name"])]),
|
|
671
|
+
m("button", {
|
|
672
|
+
type: "button",
|
|
673
|
+
class: "nb-date-picker__cal-nav",
|
|
674
|
+
"aria-label": "Next year",
|
|
675
|
+
onClick: yt
|
|
676
|
+
}, [g(e, {
|
|
677
|
+
name: C(ue),
|
|
678
|
+
size: 16
|
|
679
|
+
}, null, 8, ["name"])])
|
|
680
|
+
]), m("table", {
|
|
681
|
+
role: "grid",
|
|
682
|
+
"aria-labelledby": We.value,
|
|
683
|
+
class: "nb-date-picker__cal-table"
|
|
684
|
+
}, [m("thead", null, [m("tr", Ne, [(b(!0), p(c, null, ne(xt.value, (e) => (b(), p("th", {
|
|
685
|
+
key: e.narrow,
|
|
686
|
+
scope: "col",
|
|
687
|
+
class: "nb-date-picker__cal-weekday",
|
|
688
|
+
abbr: e.full
|
|
689
|
+
}, S(e.narrow), 9, Pe))), 128))])]), m("tbody", null, [(b(!0), p(c, null, ne(wt.value, (e, t) => (b(), p("tr", { key: t }, [(b(!0), p(c, null, ne(e, (e) => (b(), p("td", {
|
|
690
|
+
key: e.key,
|
|
691
|
+
role: "gridcell",
|
|
692
|
+
"aria-selected": e.isSelected || void 0,
|
|
693
|
+
"aria-disabled": e.isDisabled || void 0
|
|
694
|
+
}, [m("button", {
|
|
695
|
+
type: "button",
|
|
696
|
+
class: y(["nb-date-picker__cal-day", {
|
|
697
|
+
"nb-date-picker__cal-day--outside": !e.inMonth,
|
|
698
|
+
"nb-date-picker__cal-day--today": e.isToday,
|
|
699
|
+
"nb-date-picker__cal-day--selected": e.isSelected,
|
|
700
|
+
"nb-date-picker__cal-day--in-range": e.inRange,
|
|
701
|
+
"nb-date-picker__cal-day--range-start": e.isRangeStart,
|
|
702
|
+
"nb-date-picker__cal-day--range-end": e.isRangeEnd,
|
|
703
|
+
"nb-date-picker__cal-day--disabled": e.isDisabled,
|
|
704
|
+
"nb-date-picker__cal-day--focused": e.date === M.value
|
|
705
|
+
}]),
|
|
706
|
+
tabindex: e.date === M.value ? 0 : -1,
|
|
707
|
+
disabled: e.isDisabled,
|
|
708
|
+
"aria-label": Qe(e.date),
|
|
709
|
+
"data-date": e.date,
|
|
710
|
+
onClick: (t) => lt(e.date)
|
|
711
|
+
}, S(e.day), 11, Ie)], 8, Fe))), 128))]))), 128))])], 8, Me)], 16, ke)) : f("", !0)]))], 64));
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
//#endregion
|
|
715
|
+
export { Le as t };
|