@nubisco/ui 5.18.1 → 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
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Stepper.context-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Stepper.context-DBNE-GYb.cjs`);let r=require(`vue`);var i=[`id`],a=[`aria-label`],o={class:`nb-stepper__announcement`,role:`status`,"aria-live":`polite`},s=(0,r.defineComponent)({__name:`Stepper`,props:{modelValue:{default:void 0},orientation:{default:n.r.Horizontal},size:{default:n.i.Medium},navigable:{type:Boolean,default:!1},furthest:{default:void 0},ariaLabel:{default:void 0},labels:{default:void 0},announce:{type:Boolean,default:!0},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let c=e,l=s,u=t.useStableId(c),d=(0,r.ref)(null),f={progress:`Progress`,announcement:`Step {step} of {total}: {label}`,complete:`Complete`,current:`Current step`,incomplete:`Not started`,disabled:`Unavailable`,invalid:`Needs attention`},p=(0,r.computed)(()=>({...f,...c.labels??{}})),m=(0,r.ref)(c.modelValue??0),h=(0,r.computed)(()=>c.modelValue===void 0?m.value:c.modelValue),g=(0,r.ref)(h.value);(0,r.watch)(h,e=>{e>g.value&&(g.value=e)});let _=(0,r.computed)(()=>c.furthest??g.value),v=[],y=(0,r.ref)([]);function b(){let e=v.map((e,t)=>({uid:e.uid,node:e.el(),at:t}));e.sort((e,t)=>!e.node||!t.node?e.at-t.at:e.node.compareDocumentPosition(t.node)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let t=e.map(e=>e.uid);(t.length!==y.value.length||t.some((e,t)=>e!==y.value[t]))&&(y.value=t)}function x(e){return v.push(e),b(),()=>{let t=v.findIndex(t=>t.uid===e.uid);t>=0&&v.splice(t,1),b()}}(0,r.onMounted)(b),(0,r.onUpdated)(b);let S=e=>{let t=y.value[e];return v.find(e=>e.uid===t)?.disabled.value??!1};function C(e,t){return!c.navigable||t||e<0||e===h.value?!1:e<=_.value}let w=(0,r.ref)(-1),T=(0,r.computed)(()=>w.value>=0&&C(w.value,S(w.value))?w.value:y.value.findIndex((e,t)=>C(t,S(t)))),E=(0,r.ref)(null);function D(e){let t=e.target;E.value=t;let n=(t?.closest?.(`[data-nb-step]`))?.dataset?.nbStep;if(!n)return;let r=y.value.indexOf(n);r>=0&&(w.value=r)}function O(e){let t=e.relatedTarget;if(t&&d.value?.contains(t))return;if(t){E.value=null;return}let n=e.target;n&&!d.value?.contains(n)&&(E.value=null)}async function k(){let e=E.value;if(!e)return;await(0,r.nextTick)();let t=d.value;if(!t)return;let n=document.activeElement;if(n&&n!==document.body&&t.contains(n))return;if(e.isConnected&&t.contains(e)&&e.matches(`[data-nb-stepper-button]`)){e.focus();return}let i=N();if(!i.length){E.value=null;return}let a=y.value[T.value],o=i.find(e=>e.closest(`[data-nb-step]`)?.dataset.nbStep===a)??i[0];o.focus(),E.value=o}function A(e,t){C(e,t)&&(c.modelValue===void 0&&(m.value=e),l(`update:modelValue`,e),l(`change`,e))}(0,r.provide)(n.t,{current:h,furthest:_,orientation:(0,r.toRef)(c,`orientation`),size:(0,r.toRef)(c,`size`),navigable:(0,r.toRef)(c,`navigable`),labels:p,order:y,tabbable:T,register:x,clickable:C,select:A});let j=(0,r.computed)(()=>[`nb-stepper`,`nb-stepper--${c.orientation}`,`nb-stepper--${c.size}`,{"nb-stepper--navigable":c.navigable}]),M=(0,r.ref)(``);(0,r.watch)(h,e=>{let t=y.value[e],n=v.find(e=>e.uid===t)?.el()??null;if(c.announce){let t=n?.querySelector(`.nb-stepper__label`)?.textContent?.trim()??``;M.value=p.value.announcement.replace(`{step}`,String(e+1)).replace(`{total}`,String(y.value.length)).replace(`{label}`,t).replace(/[:,\-\s]+$/,``)}k();let r=d.value;r&&n&&r.scrollWidth>r.clientWidth&&n.scrollIntoView?.({block:`nearest`,inline:`nearest`})});function N(){return Array.from(d.value?.querySelectorAll(`[data-nb-stepper-button]`)??[])}function P(e){let t=N();if(!t.length)return;let n=t.indexOf(document.activeElement);t[((n<0?0:n+e)+t.length)%t.length]?.focus()}function F(e){let t=N();t.length&&(e===`first`?t[0]:t[t.length-1]).focus()}function I(e){let t=c.orientation===n.r.Horizontal;switch(e.key){case`ArrowRight`:if(!t)return;P(1);break;case`ArrowLeft`:if(!t)return;P(-1);break;case`ArrowDown`:if(t)return;P(1);break;case`ArrowUp`:if(t)return;P(-1);break;case`Home`:F(`first`);break;case`End`:F(`last`);break;default:return}e.preventDefault()}return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:(0,r.unref)(u),class:(0,r.normalizeClass)(j.value)},[(0,r.createElementVNode)(`ol`,{ref_key:`listRef`,ref:d,class:`nb-stepper__list`,role:`list`,"aria-label":e.ariaLabel||p.value.progress,onKeydown:I,onFocusin:D,onFocusout:O},[(0,r.renderSlot)(t.$slots,`default`,{},void 0,!0)],40,a),(0,r.createElementVNode)(`p`,o,(0,r.toDisplayString)(M.value),1)],10,i))}}),c=e.t(s,[[`__scopeId`,`data-v-40496e58`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { useStableId as t } from "./composables/useStableId.composable.mjs";
|
|
3
|
-
import { i as n, r, t as i } from "./Stepper.context-
|
|
3
|
+
import { i as n, r, t as i } from "./Stepper.context-BgQfa8xl.js";
|
|
4
4
|
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, onMounted as d, onUpdated as f, openBlock as p, provide as m, ref as h, renderSlot as g, toDisplayString as _, toRef as v, unref as y, watch as b } from "vue";
|
|
5
5
|
//#region src/components/Stepper.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var x = ["id"], S = ["aria-label"], C = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
3
|
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
|
-
import { n as r, t as i } from "./Stepper.context-
|
|
4
|
+
import { n as r, t as i } from "./Stepper.context-BgQfa8xl.js";
|
|
5
5
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, inject as p, mergeProps as m, normalizeClass as h, onUnmounted as g, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useSlots as C, withCtx as w } from "vue";
|
|
6
|
-
import * as T from "@nubisco/ui/icons/
|
|
7
|
-
import * as E from "@nubisco/ui/icons/
|
|
6
|
+
import * as T from "@nubisco/ui/icons/check";
|
|
7
|
+
import * as E from "@nubisco/ui/icons/warning";
|
|
8
8
|
//#region src/components/StepperStep.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var D = [
|
|
10
10
|
"data-nb-step",
|
|
@@ -40,7 +40,7 @@ var D = [
|
|
|
40
40
|
el: () => I.value
|
|
41
41
|
});
|
|
42
42
|
g(() => R?.());
|
|
43
|
-
let z = o(() => F?.order.value.indexOf(N) ?? -1), B = o(() => z.value === F?.current.value), V = o(() => z.value < 0 ? 1 : z.value + 1), H = o(() => f.disabled ? r.Disabled : f.invalid ? r.Invalid : B.value ? r.Current : f.complete || z.value >= 0 && z.value < (F?.current.value ?? 0) ? r.Complete : r.Incomplete), U = o(() => F?.labels.value[H.value] ?? ""), W = o(() => `${N}-label`), G = o(() => `${N}-description`), K = o(() => `${N}-status`), q = o(() => !!f.description || !!P.description), J = o(() => [q.value ? G.value : null, K.value].filter(Boolean).join(" ")), Y = o(() => F?.tabbable.value ?? -1), X = o(() => F?.clickable(z.value, f.disabled) ?? !1), Z = o(() => H.value === r.Complete ?
|
|
43
|
+
let z = o(() => F?.order.value.indexOf(N) ?? -1), B = o(() => z.value === F?.current.value), V = o(() => z.value < 0 ? 1 : z.value + 1), H = o(() => f.disabled ? r.Disabled : f.invalid ? r.Invalid : B.value ? r.Current : f.complete || z.value >= 0 && z.value < (F?.current.value ?? 0) ? r.Complete : r.Incomplete), U = o(() => F?.labels.value[H.value] ?? ""), W = o(() => `${N}-label`), G = o(() => `${N}-description`), K = o(() => `${N}-status`), q = o(() => !!f.description || !!P.description), J = o(() => [q.value ? G.value : null, K.value].filter(Boolean).join(" ")), Y = o(() => F?.tabbable.value ?? -1), X = o(() => F?.clickable(z.value, f.disabled) ?? !1), Z = o(() => H.value === r.Complete ? T : H.value === r.Invalid ? E : null), Q = o(() => F?.size.value === "sm" ? 12 : 14), $ = o(() => F?.orientation.value ?? "horizontal");
|
|
44
44
|
function ee() {
|
|
45
45
|
F?.select(z.value, f.disabled);
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./Stepper.context-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./Stepper.context-DBNE-GYb.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`);o=e.n(o);let s=require(`@nubisco/ui/icons/warning`);s=e.n(s);var c=[`data-nb-step`,`data-status`,`data-orientation`,`aria-current`],l={class:`nb-stepper__marker`,"aria-hidden":`true`},u={class:`nb-stepper__text`},d=[`id`],f=[`id`],p=[`id`],m=(0,a.defineComponent)({__name:`StepperStep`,props:{label:{default:``},description:{default:void 0},complete:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:void 0}},setup(e){let t=e,m=r.useStableId(t),h=(0,a.useSlots)(),g=(0,a.inject)(i.t,null),_=(0,a.ref)(null),v=(0,a.computed)(()=>t.disabled),y=g?.register({uid:m,disabled:v,el:()=>_.value});(0,a.onUnmounted)(()=>y?.());let b=(0,a.computed)(()=>g?.order.value.indexOf(m)??-1),x=(0,a.computed)(()=>b.value===g?.current.value),S=(0,a.computed)(()=>b.value<0?1:b.value+1),C=(0,a.computed)(()=>t.disabled?i.n.Disabled:t.invalid?i.n.Invalid:x.value?i.n.Current:t.complete||b.value>=0&&b.value<(g?.current.value??0)?i.n.Complete:i.n.Incomplete),w=(0,a.computed)(()=>g?.labels.value[C.value]??``),T=(0,a.computed)(()=>`${m}-label`),E=(0,a.computed)(()=>`${m}-description`),D=(0,a.computed)(()=>`${m}-status`),O=(0,a.computed)(()=>!!t.description||!!h.description),k=(0,a.computed)(()=>[O.value?E.value:null,D.value].filter(Boolean).join(` `)),A=(0,a.computed)(()=>g?.tabbable.value??-1),j=(0,a.computed)(()=>g?.clickable(b.value,t.disabled)??!1),M=(0,a.computed)(()=>C.value===i.n.Complete?o:C.value===i.n.Invalid?s:null),N=(0,a.computed)(()=>g?.size.value===`sm`?12:14),P=(0,a.computed)(()=>g?.orientation.value??`horizontal`);function F(){g?.select(b.value,t.disabled)}return(t,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`li`,{ref_key:`rootEl`,ref:_,class:(0,a.normalizeClass)([`nb-stepper__step`,[`nb-stepper__step--${C.value}`,{"nb-stepper__step--clickable":j.value}]]),"data-nb-step":(0,a.unref)(m),"data-status":C.value,"data-orientation":P.value,"aria-current":x.value?`step`:void 0},[((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(j.value?`button`:`div`),(0,a.mergeProps)({id:(0,a.unref)(m),class:`nb-stepper__body`},j.value?{type:`button`,"data-nb-stepper-button":``,tabindex:b.value===A.value?0:-1,"aria-labelledby":T.value,"aria-describedby":k.value}:{},{onClick:F}),{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,l,[M.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:M.value,size:N.value},null,8,[`name`,`size`])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(S.value),1)],64))]),(0,a.createElementVNode)(`span`,u,[(0,a.createElementVNode)(`span`,{id:T.value,class:`nb-stepper__label`},[(0,a.renderSlot)(t.$slots,`label`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)],!0)],8,d),e.description||t.$slots.description?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:0,id:E.value,class:`nb-stepper__description`},[(0,a.renderSlot)(t.$slots,`description`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.description),1)],!0)],8,f)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,{id:D.value,class:`nb-stepper__status`},(0,a.toDisplayString)(w.value),9,p)])]),_:3},16,[`id`])),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-stepper__line`,"aria-hidden":`true`},null,-1)],10,c))}}),h=t.t(m,[[`__scopeId`,`data-v-ff8a033d`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Icon-C8R_r_In.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/caret-right`);var i=[`aria-expanded`,`aria-disabled`,`onKeydown`],a={class:`nb-menu-item__label`},o=(0,n.defineComponent)({__name:`Submenu`,props:{icon:{default:void 0},label:{},disabled:{type:Boolean,default:!1}},setup(o){let{phone:s}=t.usePhoneLayout(),c=()=>s.value?`var(--nb-zindex-modal-dropdown)`:`var(--nb-zindex-menu)`,l=o,u=(0,n.ref)(null),d=(0,n.ref)(null),f=(0,n.ref)(!1),p=(0,n.inject)(`nb-menu`,null),m=null,h=null,g=(0,n.computed)(()=>`nb-menu--${p?.size??`md`}`),_=(0,n.ref)({position:`fixed`,top:`0px`,left:`0px`,zIndex:c()});function v(){if(!u.value)return;let e=u.value.getBoundingClientRect(),t=e.right,n=e.top;t+200>window.innerWidth&&(t=e.left-200),n+200>window.innerHeight&&(n=Math.max(8,window.innerHeight-200)),_.value={position:`fixed`,top:`${n}px`,left:`${t}px`,zIndex:c()}}function y(){l.disabled||(T(),f.value=!0,v(),(0,n.nextTick)(()=>{if(d.value&&u.value){let e=u.value.getBoundingClientRect(),t=d.value.getBoundingClientRect(),n=e.right;n+t.width>window.innerWidth&&(n=e.left-t.width);let r=e.top;r+t.height>window.innerHeight&&(r=Math.max(8,window.innerHeight-t.height)),_.value={position:`fixed`,top:`${r}px`,left:`${n}px`,zIndex:c()}}}))}function b(){if(T(),!f.value)return;let e=!!d.value?.contains(document.activeElement);f.value=!1,e&&u.value?.focus()}function x(){return d.value?Array.from(d.value.querySelectorAll(`[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]`)):[]}function S(e,t){let n=x();for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].getAttribute(`aria-disabled`)!==`true`){n[r].focus();return}}function C(){l.disabled||(y(),(0,n.nextTick)(()=>S(0,1)))}function w(e){let t=x().indexOf(document.activeElement);e.key===`ArrowDown`?(e.preventDefault(),e.stopPropagation(),S(t+1,1)):e.key===`ArrowUp`?(e.preventDefault(),e.stopPropagation(),t>0&&S(t-1,-1)):e.key===`ArrowLeft`||e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),b()):e.key===`Tab`&&(b(),p?.close())}(0,n.watch)(d,(e,t)=>{t&&p?.unregisterSurface(t),e&&p?.registerSurface(e)});function T(){m&&=(clearTimeout(m),null),h&&=(clearTimeout(h),null)}function E(){T(),m=setTimeout(y,150)}function D(){T(),h=setTimeout(b,150)}function O(){T()}function k(){T(),h=setTimeout(b,150)}function A(){l.disabled||(f.value?b():y())}return(0,n.onBeforeUnmount)(()=>{T(),d.value&&p?.unregisterSurface(d.value)}),(t,s)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createElementVNode)(`li`,{ref_key:`triggerRef`,ref:u,class:(0,n.normalizeClass)([`nb-menu-item nb-submenu-trigger`,{"nb-menu-item--disabled":o.disabled,"nb-menu-item--highlighted":f.value}]),role:`menuitem`,"aria-haspopup":`menu`,"aria-expanded":f.value,"aria-disabled":o.disabled||void 0,tabindex:-1,onMouseenter:E,onMouseleave:D,onKeydown:[(0,n.withKeys)((0,n.withModifiers)(C,[`prevent`]),[`right`]),(0,n.withKeys)((0,n.withModifiers)(C,[`prevent`]),[`enter`]),(0,n.withKeys)((0,n.withModifiers)(C,[`prevent`]),[`space`]),(0,n.withKeys)((0,n.withModifiers)(b,[`prevent`]),[`left`]),(0,n.withKeys)((0,n.withModifiers)(b,[`prevent`]),[`escape`])],onClick:A},[o.icon?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,name:o.icon,size:16,class:`nb-menu-item__icon`},null,8,[`name`])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`span`,a,(0,n.toDisplayString)(o.label),1),(0,n.createVNode)(e.t,{name:(0,n.unref)(r.regular),size:14,class:`nb-submenu-trigger__caret`},null,8,[`name`])],42,i),((0,n.openBlock)(),(0,n.createBlock)(n.Teleport,{to:`body`},[(0,n.createVNode)(n.Transition,{name:`nb-submenu`},{default:(0,n.withCtx)(()=>[f.value?((0,n.openBlock)(),(0,n.createElementBlock)(`ul`,{key:0,ref_key:`submenuRef`,ref:d,role:`menu`,class:(0,n.normalizeClass)([`nb-menu nb-submenu`,[g.value]]),style:(0,n.normalizeStyle)(_.value),onMouseenter:O,onMouseleave:k,onKeydown:w},[(0,n.renderSlot)(t.$slots,`default`)],38)):(0,n.createCommentVNode)(``,!0)]),_:3})]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
|
+
import { usePhoneLayout as t } from "./composables/usePhoneLayout.composable.mjs";
|
|
3
|
+
import { Fragment as n, Teleport as r, Transition as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, inject as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, unref as x, watch as S, withCtx as C, withKeys as w, withModifiers as T } from "vue";
|
|
4
|
+
import { regular as E } from "@nubisco/ui/icons/caret-right";
|
|
5
|
+
//#region src/components/Submenu.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var D = [
|
|
7
|
+
"aria-expanded",
|
|
8
|
+
"aria-disabled",
|
|
9
|
+
"onKeydown"
|
|
10
|
+
], O = { class: "nb-menu-item__label" }, k = /* @__PURE__ */ d({
|
|
11
|
+
__name: "Submenu",
|
|
12
|
+
props: {
|
|
13
|
+
icon: { default: void 0 },
|
|
14
|
+
label: {},
|
|
15
|
+
disabled: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(d) {
|
|
21
|
+
let { phone: k } = t(), A = () => k.value ? "var(--nb-zindex-modal-dropdown)" : "var(--nb-zindex-menu)", j = d, M = v(null), N = v(null), P = v(!1), F = f("nb-menu", null), I = null, L = null, R = a(() => `nb-menu--${F?.size ?? "md"}`), z = v({
|
|
22
|
+
position: "fixed",
|
|
23
|
+
top: "0px",
|
|
24
|
+
left: "0px",
|
|
25
|
+
zIndex: A()
|
|
26
|
+
});
|
|
27
|
+
function B() {
|
|
28
|
+
if (!M.value) return;
|
|
29
|
+
let e = M.value.getBoundingClientRect(), t = e.right, n = e.top;
|
|
30
|
+
t + 200 > window.innerWidth && (t = e.left - 200), n + 200 > window.innerHeight && (n = Math.max(8, window.innerHeight - 200)), z.value = {
|
|
31
|
+
position: "fixed",
|
|
32
|
+
top: `${n}px`,
|
|
33
|
+
left: `${t}px`,
|
|
34
|
+
zIndex: A()
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function V() {
|
|
38
|
+
j.disabled || (q(), P.value = !0, B(), p(() => {
|
|
39
|
+
if (N.value && M.value) {
|
|
40
|
+
let e = M.value.getBoundingClientRect(), t = N.value.getBoundingClientRect(), n = e.right;
|
|
41
|
+
n + t.width > window.innerWidth && (n = e.left - t.width);
|
|
42
|
+
let r = e.top;
|
|
43
|
+
r + t.height > window.innerHeight && (r = Math.max(8, window.innerHeight - t.height)), z.value = {
|
|
44
|
+
position: "fixed",
|
|
45
|
+
top: `${r}px`,
|
|
46
|
+
left: `${n}px`,
|
|
47
|
+
zIndex: A()
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
function H() {
|
|
53
|
+
if (q(), !P.value) return;
|
|
54
|
+
let e = !!N.value?.contains(document.activeElement);
|
|
55
|
+
P.value = !1, e && M.value?.focus();
|
|
56
|
+
}
|
|
57
|
+
function U() {
|
|
58
|
+
return N.value ? Array.from(N.value.querySelectorAll("[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"]")) : [];
|
|
59
|
+
}
|
|
60
|
+
function W(e, t) {
|
|
61
|
+
let n = U();
|
|
62
|
+
for (let r = e; r >= 0 && r < n.length; r += t) if (n[r].getAttribute("aria-disabled") !== "true") {
|
|
63
|
+
n[r].focus();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function G() {
|
|
68
|
+
j.disabled || (V(), p(() => W(0, 1)));
|
|
69
|
+
}
|
|
70
|
+
function K(e) {
|
|
71
|
+
let t = U().indexOf(document.activeElement);
|
|
72
|
+
e.key === "ArrowDown" ? (e.preventDefault(), e.stopPropagation(), W(t + 1, 1)) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), t > 0 && W(t - 1, -1)) : e.key === "ArrowLeft" || e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), H()) : e.key === "Tab" && (H(), F?.close());
|
|
73
|
+
}
|
|
74
|
+
S(N, (e, t) => {
|
|
75
|
+
t && F?.unregisterSurface(t), e && F?.registerSurface(e);
|
|
76
|
+
});
|
|
77
|
+
function q() {
|
|
78
|
+
I &&= (clearTimeout(I), null), L &&= (clearTimeout(L), null);
|
|
79
|
+
}
|
|
80
|
+
function J() {
|
|
81
|
+
q(), I = setTimeout(V, 150);
|
|
82
|
+
}
|
|
83
|
+
function Y() {
|
|
84
|
+
q(), L = setTimeout(H, 150);
|
|
85
|
+
}
|
|
86
|
+
function X() {
|
|
87
|
+
q();
|
|
88
|
+
}
|
|
89
|
+
function Z() {
|
|
90
|
+
q(), L = setTimeout(H, 150);
|
|
91
|
+
}
|
|
92
|
+
function Q() {
|
|
93
|
+
j.disabled || (P.value ? H() : V());
|
|
94
|
+
}
|
|
95
|
+
return g(() => {
|
|
96
|
+
q(), N.value && F?.unregisterSurface(N.value);
|
|
97
|
+
}), (t, a) => (_(), c(n, null, [l("li", {
|
|
98
|
+
ref_key: "triggerRef",
|
|
99
|
+
ref: M,
|
|
100
|
+
class: m(["nb-menu-item nb-submenu-trigger", {
|
|
101
|
+
"nb-menu-item--disabled": d.disabled,
|
|
102
|
+
"nb-menu-item--highlighted": P.value
|
|
103
|
+
}]),
|
|
104
|
+
role: "menuitem",
|
|
105
|
+
"aria-haspopup": "menu",
|
|
106
|
+
"aria-expanded": P.value,
|
|
107
|
+
"aria-disabled": d.disabled || void 0,
|
|
108
|
+
tabindex: -1,
|
|
109
|
+
onMouseenter: J,
|
|
110
|
+
onMouseleave: Y,
|
|
111
|
+
onKeydown: [
|
|
112
|
+
w(T(G, ["prevent"]), ["right"]),
|
|
113
|
+
w(T(G, ["prevent"]), ["enter"]),
|
|
114
|
+
w(T(G, ["prevent"]), ["space"]),
|
|
115
|
+
w(T(H, ["prevent"]), ["left"]),
|
|
116
|
+
w(T(H, ["prevent"]), ["escape"])
|
|
117
|
+
],
|
|
118
|
+
onClick: Q
|
|
119
|
+
}, [
|
|
120
|
+
d.icon ? (_(), o(e, {
|
|
121
|
+
key: 0,
|
|
122
|
+
name: d.icon,
|
|
123
|
+
size: 16,
|
|
124
|
+
class: "nb-menu-item__icon"
|
|
125
|
+
}, null, 8, ["name"])) : s("", !0),
|
|
126
|
+
l("span", O, b(d.label), 1),
|
|
127
|
+
u(e, {
|
|
128
|
+
name: x(E),
|
|
129
|
+
size: 14,
|
|
130
|
+
class: "nb-submenu-trigger__caret"
|
|
131
|
+
}, null, 8, ["name"])
|
|
132
|
+
], 42, D), (_(), o(r, { to: "body" }, [u(i, { name: "nb-submenu" }, {
|
|
133
|
+
default: C(() => [P.value ? (_(), c("ul", {
|
|
134
|
+
key: 0,
|
|
135
|
+
ref_key: "submenuRef",
|
|
136
|
+
ref: N,
|
|
137
|
+
role: "menu",
|
|
138
|
+
class: m(["nb-menu nb-submenu", [R.value]]),
|
|
139
|
+
style: h(z.value),
|
|
140
|
+
onMouseenter: X,
|
|
141
|
+
onMouseleave: Z,
|
|
142
|
+
onKeydown: K
|
|
143
|
+
}, [y(t.$slots, "default")], 38)) : s("", !0)]),
|
|
144
|
+
_: 3
|
|
145
|
+
})]))], 64));
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
//#endregion
|
|
149
|
+
export { k as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { useStableId as t } from "./composables/useStableId.composable.mjs";
|
|
3
|
-
import { t as n } from "./Label-
|
|
4
|
-
import { t as r } from "./Grid-
|
|
3
|
+
import { t as n } from "./Label-DGK5nxFy.js";
|
|
4
|
+
import { t as r } from "./Grid-iox-7xyH.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementVNode as s, createTextVNode as c, defineComponent as l, mergeModels as u, mergeProps as d, normalizeClass as f, openBlock as p, toDisplayString as m, unref as h, useModel as g, vModelCheckbox as _, withCtx as v, withDirectives as y, withModifiers as b } from "vue";
|
|
6
6
|
//#region src/components/Switch.d.ts
|
|
7
7
|
var x = /* @__PURE__ */ function(e) {
|
|
@@ -86,6 +86,6 @@ var x = /* @__PURE__ */ function(e) {
|
|
|
86
86
|
_: 1
|
|
87
87
|
}, 8, ["id", "class"]));
|
|
88
88
|
}
|
|
89
|
-
}), [["__scopeId", "data-v-
|
|
89
|
+
}), [["__scopeId", "data-v-f6465c1e"]]);
|
|
90
90
|
//#endregion
|
|
91
91
|
export { T as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Label-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Label-CZhQEyoi.cjs`),r=require(`./Grid-DiCxrPaO.cjs`);let i=require(`vue`);var a=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(a||{}),o=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e}(o||{}),s=[`for`],c=[`id`,`name`,`disabled`],l=(0,i.defineComponent)({__name:`Switch`,props:(0,i.mergeModels)({id:{type:String,default:()=>null},label:{type:String,default:``},size:{type:String,default:a.Medium,validator:e=>Object.values(a).includes(e)},verbose:Boolean,hideLabel:Boolean,name:{type:String,required:!0},disabled:Boolean,variant:{type:String,default:o.Primary,validator:e=>Object.values(o).includes(e)}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let a=(0,i.useModel)(e,`modelValue`),o=e,l=t.useStableId(o),u=(0,i.computed)(()=>({"aria-disabled":o.disabled})),d=(0,i.computed)(()=>({"nb-switch":!0,disabled:o.disabled})),f=(0,i.computed)(()=>({"nb-switch-wrapper":!0,verbose:o.verbose,[o.size]:!0,[`nb-${o.variant}`]:!0}));return(t,o)=>((0,i.openBlock)(),(0,i.createBlock)(r.t,{id:(0,i.unref)(l),class:(0,i.normalizeClass)(d.value),align:`center`,gap:`sm`},{default:(0,i.withCtx)(()=>[e.label?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:0,for:`${(0,i.unref)(l)}-input`,disabled:e.disabled,class:(0,i.normalizeClass)({"nb-switch__label--hidden":e.hideLabel})},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`disabled`,`class`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`label`,(0,i.mergeProps)({for:`${(0,i.unref)(l)}-input`,class:f.value},u.value,{onClick:o[1]||=(0,i.withModifiers)(()=>{},[`stop`])}),[(0,i.withDirectives)((0,i.createElementVNode)(`input`,{id:`${(0,i.unref)(l)}-input`,"onUpdate:modelValue":o[0]||=e=>a.value=e,name:e.name,type:`checkbox`,disabled:e.disabled},null,8,c),[[i.vModelCheckbox,a.value]]),o[2]||=(0,i.createElementVNode)(`div`,{class:`slider round`},null,-1)],16,s)]),_:1},8,[`id`,`class`]))}}),u=e.t(l,[[`__scopeId`,`data-v-f6465c1e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useReducedMotion.composable.cjs`),n=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useReducedMotion.composable.cjs`),n=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-C0UUTgEB.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/caret-right`);s=e.n(s);let c=require(`@nubisco/ui/icons/list-dashes`);c=e.n(c);var l=[`href`,`aria-current`,`data-id`,`onClick`],u=(0,o.defineComponent)({name:`TableOfContentsList`,__name:`TableOfContentsList`,props:{nodes:{},active:{},nested:{type:Boolean}},emits:[`go`],setup(e,{emit:t}){let n=t;function r(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button===0&&(e.preventDefault(),n(`go`,t))}return(t,i)=>{let a=(0,o.resolveComponent)(`TableOfContentsList`,!0);return(0,o.openBlock)(),(0,o.createElementBlock)(`ol`,{class:(0,o.normalizeClass)([`nb-toc-list`,{"nb-toc-list--nested":e.nested}])},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.nodes,t=>((0,o.openBlock)(),(0,o.createElementBlock)(`li`,{key:t.id,class:`nb-toc-list__item`},[(0,o.createElementVNode)(`a`,{class:(0,o.normalizeClass)([`nb-toc-list__link`,{"nb-toc-list__link--active":t.id===e.active}]),href:`#${t.id}`,"aria-current":t.id===e.active?`location`:void 0,"data-id":t.id,onClick:e=>r(e,t)},(0,o.toDisplayString)(t.label),11,l),t.children.length>0?((0,o.openBlock)(),(0,o.createBlock)(a,{key:0,nodes:t.children,active:e.active,nested:``,onGo:i[0]||=e=>n(`go`,e)},null,8,[`nodes`,`active`])):(0,o.createCommentVNode)(``,!0)]))),128))],2)}}}),d=n.t(u,[[`__scopeId`,`data-v-d0f98dc3`]]),f=[`aria-label`],p={class:`nb-toc__head`},m={class:`nb-toc__title`},h=(0,o.defineComponent)({__name:`TableOfContents`,props:{items:{},active:{default:void 0},open:{type:Boolean,default:void 0},variant:{default:`docked`},collapsible:{type:Boolean,default:!0},title:{default:`Contents`},label:{default:`Table of contents`},showLabel:{default:`Show contents`},hideLabel:{default:`Hide contents`},root:{default:null},resolveTarget:{type:Function,default:void 0},spy:{type:Boolean,default:!0},offset:{default:96},updateHash:{type:Boolean,default:!0},followHash:{type:Boolean,default:!1}},emits:[`update:active`,`update:open`,`navigate`],setup(e,{expose:n,emit:l}){let u=e,h=l,g=`${r.useStableId({})}-nav`,_=(0,o.ref)(null),v=(0,o.ref)(null),{layerProps:y}=i.useSurfaceLayer({overlay:!0}),b=(0,o.computed)(()=>u.variant===`floating`?y.value:{}),x=(0,o.ref)(u.variant!==`floating`),S=(0,o.computed)(()=>u.open??x.value),C=(0,o.computed)(()=>u.variant===`floating`||u.collapsible);function w(e){!e&&!C.value||(x.value=e,h(`update:open`,e),e||(0,o.nextTick)(()=>T()))}function T(){(v.value?.$el)?.focus()}function E(e){u.variant!==`floating`||!S.value||(e.stopPropagation(),w(!1))}(0,o.watch)(()=>u.variant,e=>{x.value=e!==`floating`});let D=(0,o.computed)(()=>{let e=[],t=[];for(let n of u.items){let r={...n,children:[]};for(;t.length>0&&t[t.length-1].level>=n.level;)t.pop();t.length===0?e.push(r):t[t.length-1].children.push(r),t.push(r)}return e}),O=(0,o.ref)(null),k=(0,o.computed)(()=>u.active===void 0?O.value:u.active);function A(e){e!==k.value&&(O.value=e,h(`update:active`,e))}function j(e,t){return u.resolveTarget?u.resolveTarget(e,t):u.root?u.root.querySelector(`[id="${e.id.replace(/(["\\])/g,`\\$1`)}"]`):typeof document>`u`?null:document.getElementById(e.id)}function M(e){let t=e?.parentElement??null;for(;t;){let{overflowY:e}=getComputedStyle(t);if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return window}function N(e,t,n,r){if(n){for(let t=e.length-1;t>=0;t--)if(e[t]<r)return t}let i=-1;for(let n=0;n<e.length&&e[n]<=t;n++)i=n;return i}let P=null,F=null,I=0;function L(){if(F=null,!u.spy||typeof window>`u`||Date.now()<I)return;let e=u.items.map((e,t)=>({item:e,el:j(e,t)})).filter(e=>!!e.el);if(e.length===0){A(null);return}let t=P??window,n=0,r=window.innerHeight,i=window.scrollY,a=document.documentElement.scrollHeight;if(t!==window){let e=t;n=e.getBoundingClientRect().top,r=e.clientHeight,i=e.scrollTop,a=e.scrollHeight}let o=a>r&&i+r>=a-2,s=N(e.map(({el:e})=>e.getBoundingClientRect().top-n),u.offset,o,r);A(s>=0?e[s].item.id:null)}function R(){F===null&&(F=typeof requestAnimationFrame==`function`?requestAnimationFrame(L):setTimeout(L,16))}function z(){B(),!(!u.spy||typeof window>`u`)&&(P=M(u.items.map((e,t)=>j(e,t)).find(Boolean)??u.root??_.value),P.addEventListener(`scroll`,R,{passive:!0}),window.addEventListener(`resize`,R,{passive:!0}),R())}function B(){P?.removeEventListener(`scroll`,R),typeof window<`u`&&window.removeEventListener(`resize`,R),P=null}function V(e,n={}){let r=typeof e==`string`?e:e.id,i=u.items.findIndex(e=>e.id===r);if(i<0)return;let a=u.items[i],o=j(a,i);if(!o)return;let s=n.instant||t.prefersReducedMotion();if(o.scrollIntoView?.({behavior:s?`auto`:`smooth`,block:`start`}),A(r),I=s?0:Date.now()+700,u.updateHash)try{let{pathname:e,search:t}=window.location;window.history.replaceState(window.history.state,``,`${e}${t}#${r}`)}catch{}o.closest(`[contenteditable="true"]`)||(o.hasAttribute(`tabindex`)||o.setAttribute(`tabindex`,`-1`),o.focus({preventScroll:!0})),u.variant===`floating`&&(x.value=!1,h(`update:open`,!1)),h(`navigate`,a)}let H=!1;function U(){if(!u.followHash||H||typeof window>`u`)return;let e=decodeURIComponent(window.location.hash.slice(1));if(!e){H=!0;return}let t=u.items.findIndex(t=>t.id===e);t<0||!j(u.items[t],t)||(H=!0,V(e,{instant:!0}))}return(0,o.watch)(()=>u.items,()=>void(0,o.nextTick)(()=>{z(),U()}),{flush:`post`,deep:!0}),(0,o.watch)(()=>[u.root,u.spy],()=>void(0,o.nextTick)(z),{flush:`post`}),(0,o.onMounted)(()=>{z(),(0,o.nextTick)(U)}),(0,o.onBeforeUnmount)(()=>{B(),F!==null&&(typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(F),clearTimeout(F))}),n({go:V,measure:L}),(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`rootEl`,ref:_,class:(0,o.normalizeClass)([`nb-toc`,`nb-toc--${e.variant}`,{"nb-toc--open":S.value}]),onKeydown:(0,o.withKeys)(E,[`esc`])},[S.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({key:1,class:`nb-toc__body`},b.value),[(0,o.createElementVNode)(`nav`,{id:g,class:`nb-toc__nav`,"aria-label":e.label},[(0,o.createElementVNode)(`div`,p,[(0,o.createElementVNode)(`span`,m,(0,o.toDisplayString)(e.title),1),C.value?((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,size:`xs`,variant:`ghost`,icon:s,"aria-label":e.hideLabel,title:e.hideLabel,"aria-expanded":!0,"aria-controls":g,onClick:n[1]||=e=>w(!1)},null,8,[`aria-label`,`title`])):(0,o.createCommentVNode)(``,!0)]),(0,o.createVNode)(d,{nodes:D.value,active:k.value,onGo:V},null,8,[`nodes`,`active`])],8,f)],16)):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,ref_key:`showButton`,ref:v,size:`sm`,variant:`ghost`,icon:c,class:`nb-toc__show`,"aria-label":e.showLabel,title:e.showLabel,"aria-expanded":!1,"aria-controls":g,onClick:n[0]||=e=>w(!0)},null,8,[`aria-label`,`title`]))],34))}}),g=n.t(h,[[`__scopeId`,`data-v-cb6a1ca7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
@@ -2,7 +2,7 @@ import { prefersReducedMotion as e } from "./composables/useReducedMotion.compos
|
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
3
3
|
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
4
|
import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
|
|
5
|
-
import { t as i } from "./Button-
|
|
5
|
+
import { t as i } from "./Button-IcCXOoCT.js";
|
|
6
6
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, resolveComponent as x, toDisplayString as S, watch as C, withKeys as w } from "vue";
|
|
7
7
|
import * as T from "@nubisco/ui/icons/caret-right";
|
|
8
8
|
import * as E from "@nubisco/ui/icons/list-dashes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./utils/slotContent.helper.cjs`),a=require(`./Badge-Dkm7PBJ8.cjs`);let o=require(`vue`);var s=function(e){return e.Line=`line`,e.Contained=`contained`,e}(s||{}),c=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(c||{}),l=[`aria-label`],u=[`id`,`data-tab-id`,`aria-selected`,`aria-controls`,`tabindex`,`disabled`,`onClick`],d={class:`nb-tabs__label`},f=[`id`,`aria-labelledby`],p=24,m=(0,o.defineComponent)({__name:`Tabs`,props:{items:{},ariaLabel:{default:void 0},modelValue:{default:void 0},variant:{default:s.Line},size:{default:c.Medium},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let m=e,h=s,g=(0,o.useSlots)(),_=n.useStableId(m),v=(0,o.ref)(null),y=(0,o.computed)(()=>m.items.filter(e=>!w(e))),b=(0,o.ref)(m.modelValue??y.value[0]?.id);(0,o.watch)(()=>m.modelValue,e=>{e!=null&&(b.value=e)});let x=(0,o.computed)(()=>{let e=m.modelValue??b.value,t=m.items.find(t=>t.id===e);return t&&!w(t)?t.id:y.value[0]?.id}),S=(0,o.computed)(()=>m.size===c.Large?18:16),C=(0,o.computed)(()=>[`nb-tabs`,`nb-tabs--${m.variant}`,`nb-tabs--${m.size}`,{"nb-tabs--full-width":m.fullWidth,"nb-tabs--disabled":m.disabled}]);function w(e){return m.disabled||!!e.disabled}function T(e){return`${_}-tab-${e}`}function E(e){return`${_}-panel-${e}`}function D(e){return i.hasSlotContent(g,e)}function O(e){w(e)||e.id===x.value||(b.value=e.id,h(`update:modelValue`,e.id),h(`change`,e.id,e))}function k(e){(v.value?.querySelectorAll(`[data-tab-id]`))?.forEach(t=>{t.dataset.tabId===e&&t.focus()})}function A(e){let t=y.value;if(!t.length)return;let n=t[(t.findIndex(e=>e.id===x.value)+e+t.length)%t.length];O(n),k(n.id)}function j(e){e&&(O(e),k(e.id))}let{phone:M}=r.usePhoneLayout(),N=(0,o.ref)(!1),P=(0,o.ref)(!1);function F(){let e=v.value;if(!M.value||!e)return;let t=e.scrollWidth-e.clientWidth;N.value=e.scrollLeft>1,P.value=e.scrollLeft<t-1}function I(){let e=v.value;if(!M.value||!e)return;let t=[...e.querySelectorAll(`[data-tab-id]`)].find(e=>e.dataset.tabId===x.value);if(t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.left-n.left+e.scrollLeft,a=i+r.width,o=t===e.firstElementChild,s=t===e.lastElementChild;i<e.scrollLeft+(o?0:p)?e.scrollLeft=Math.max(0,o?0:i-p):a>e.scrollLeft+e.clientWidth-(s?0:p)&&(e.scrollLeft=a-e.clientWidth+(s?0:p))}F()}(0,o.watch)([x,M],()=>(0,o.nextTick)(I));function L(){I()}(0,o.onMounted)(()=>{I(),window.addEventListener(`resize`,L,{passive:!0})}),(0,o.onBeforeUnmount)(()=>{window.removeEventListener(`resize`,L)});function R(e){switch(e.key){case`ArrowRight`:A(1);break;case`ArrowLeft`:A(-1);break;case`Home`:j(y.value[0]);break;case`End`:j(y.value[y.value.length-1]);break;default:return}e.preventDefault()}return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{class:(0,o.normalizeClass)(C.value)},[(0,o.createElementVNode)(`div`,{ref_key:`listRef`,ref:v,class:(0,o.normalizeClass)([`nb-tabs__list`,{"nb-tabs__list--fade-start":(0,o.unref)(M)&&N.value,"nb-tabs__list--fade-end":(0,o.unref)(M)&&P.value}]),role:`tablist`,"aria-label":e.ariaLabel||void 0,onKeydown:R,onScrollPassive:F},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(`button`,{id:T(e.id),key:e.id,"data-tab-id":e.id,type:`button`,role:`tab`,class:(0,o.normalizeClass)([`nb-tabs__tab`,{"nb-tabs__tab--active":e.id===x.value}]),"aria-selected":e.id===x.value,"aria-controls":D(e.id)?E(e.id):void 0,tabindex:e.id===x.value?0:-1,disabled:w(e),onClick:t=>O(e)},[e.icon?((0,o.openBlock)(),(0,o.createBlock)(t.t,{key:0,name:e.icon,size:S.value,class:`nb-tabs__icon`},null,8,[`name`,`size`])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`span`,d,(0,o.toDisplayString)(e.label),1),e.badge==null?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:1,size:`sm`,class:`nb-tabs__badge`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.badge),1)]),_:2},1024))],10,u))),128))],42,l),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:`panel-${e.id}`},[e.id===x.value&&D(e.id)?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:E(e.id),class:`nb-tabs__panel`,role:`tabpanel`,"aria-labelledby":T(e.id),tabindex:`0`},[(0,o.renderSlot)(n.$slots,e.id,{item:e},void 0,!0)],8,f)):(0,o.createCommentVNode)(``,!0)],64))),128))],2))}}),h=e.t(m,[[`__scopeId`,`data-v-fecb01d1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
+
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
+
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
|
+
import { usePhoneLayout as r } from "./composables/usePhoneLayout.composable.mjs";
|
|
5
|
+
import { hasSlotContent as i } from "./utils/slotContent.helper.mjs";
|
|
6
|
+
import { t as a } from "./Badge-D3oJVwDo.js";
|
|
7
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useSlots as w, watch as T, withCtx as E } from "vue";
|
|
8
|
+
//#region src/components/Tabs.d.ts
|
|
9
|
+
var D = /* @__PURE__ */ function(e) {
|
|
10
|
+
return e.Line = "line", e.Contained = "contained", e;
|
|
11
|
+
}(D || {}), O = /* @__PURE__ */ function(e) {
|
|
12
|
+
return e.Small = "sm", e.Medium = "md", e.Large = "lg", e;
|
|
13
|
+
}(O || {}), k = ["aria-label"], A = [
|
|
14
|
+
"id",
|
|
15
|
+
"data-tab-id",
|
|
16
|
+
"aria-selected",
|
|
17
|
+
"aria-controls",
|
|
18
|
+
"tabindex",
|
|
19
|
+
"disabled",
|
|
20
|
+
"onClick"
|
|
21
|
+
], ee = { class: "nb-tabs__label" }, j = ["id", "aria-labelledby"], M = 24, N = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
22
|
+
__name: "Tabs",
|
|
23
|
+
props: {
|
|
24
|
+
items: {},
|
|
25
|
+
ariaLabel: { default: void 0 },
|
|
26
|
+
modelValue: { default: void 0 },
|
|
27
|
+
variant: { default: D.Line },
|
|
28
|
+
size: { default: O.Medium },
|
|
29
|
+
disabled: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
fullWidth: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
id: { default: void 0 }
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:modelValue", "change"],
|
|
40
|
+
setup(e, { emit: p }) {
|
|
41
|
+
let D = e, N = p, P = w(), F = n(D), I = y(null), L = s(() => D.items.filter((e) => !B(e))), R = y(D.modelValue ?? L.value[0]?.id);
|
|
42
|
+
T(() => D.modelValue, (e) => {
|
|
43
|
+
e != null && (R.value = e);
|
|
44
|
+
});
|
|
45
|
+
let z = s(() => {
|
|
46
|
+
let e = D.modelValue ?? R.value, t = D.items.find((t) => t.id === e);
|
|
47
|
+
return t && !B(t) ? t.id : L.value[0]?.id;
|
|
48
|
+
}), te = s(() => D.size === O.Large ? 18 : 16), ne = s(() => [
|
|
49
|
+
"nb-tabs",
|
|
50
|
+
`nb-tabs--${D.variant}`,
|
|
51
|
+
`nb-tabs--${D.size}`,
|
|
52
|
+
{
|
|
53
|
+
"nb-tabs--full-width": D.fullWidth,
|
|
54
|
+
"nb-tabs--disabled": D.disabled
|
|
55
|
+
}
|
|
56
|
+
]);
|
|
57
|
+
function B(e) {
|
|
58
|
+
return D.disabled || !!e.disabled;
|
|
59
|
+
}
|
|
60
|
+
function V(e) {
|
|
61
|
+
return `${F}-tab-${e}`;
|
|
62
|
+
}
|
|
63
|
+
function H(e) {
|
|
64
|
+
return `${F}-panel-${e}`;
|
|
65
|
+
}
|
|
66
|
+
function U(e) {
|
|
67
|
+
return i(P, e);
|
|
68
|
+
}
|
|
69
|
+
function W(e) {
|
|
70
|
+
B(e) || e.id === z.value || (R.value = e.id, N("update:modelValue", e.id), N("change", e.id, e));
|
|
71
|
+
}
|
|
72
|
+
function G(e) {
|
|
73
|
+
(I.value?.querySelectorAll("[data-tab-id]"))?.forEach((t) => {
|
|
74
|
+
t.dataset.tabId === e && t.focus();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function K(e) {
|
|
78
|
+
let t = L.value;
|
|
79
|
+
if (!t.length) return;
|
|
80
|
+
let n = t[(t.findIndex((e) => e.id === z.value) + e + t.length) % t.length];
|
|
81
|
+
W(n), G(n.id);
|
|
82
|
+
}
|
|
83
|
+
function q(e) {
|
|
84
|
+
e && (W(e), G(e.id));
|
|
85
|
+
}
|
|
86
|
+
let { phone: J } = r(), Y = y(!1), X = y(!1);
|
|
87
|
+
function Z() {
|
|
88
|
+
let e = I.value;
|
|
89
|
+
if (!J.value || !e) return;
|
|
90
|
+
let t = e.scrollWidth - e.clientWidth;
|
|
91
|
+
Y.value = e.scrollLeft > 1, X.value = e.scrollLeft < t - 1;
|
|
92
|
+
}
|
|
93
|
+
function Q() {
|
|
94
|
+
let e = I.value;
|
|
95
|
+
if (!J.value || !e) return;
|
|
96
|
+
let t = [...e.querySelectorAll("[data-tab-id]")].find((e) => e.dataset.tabId === z.value);
|
|
97
|
+
if (t) {
|
|
98
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.left - n.left + e.scrollLeft, a = i + r.width, o = t === e.firstElementChild, s = t === e.lastElementChild;
|
|
99
|
+
i < e.scrollLeft + (o ? 0 : M) ? e.scrollLeft = Math.max(0, o ? 0 : i - M) : a > e.scrollLeft + e.clientWidth - (s ? 0 : M) && (e.scrollLeft = a - e.clientWidth + (s ? 0 : M));
|
|
100
|
+
}
|
|
101
|
+
Z();
|
|
102
|
+
}
|
|
103
|
+
T([z, J], () => m(Q));
|
|
104
|
+
function $() {
|
|
105
|
+
Q();
|
|
106
|
+
}
|
|
107
|
+
_(() => {
|
|
108
|
+
Q(), window.addEventListener("resize", $, { passive: !0 });
|
|
109
|
+
}), g(() => {
|
|
110
|
+
window.removeEventListener("resize", $);
|
|
111
|
+
});
|
|
112
|
+
function re(e) {
|
|
113
|
+
switch (e.key) {
|
|
114
|
+
case "ArrowRight":
|
|
115
|
+
K(1);
|
|
116
|
+
break;
|
|
117
|
+
case "ArrowLeft":
|
|
118
|
+
K(-1);
|
|
119
|
+
break;
|
|
120
|
+
case "Home":
|
|
121
|
+
q(L.value[0]);
|
|
122
|
+
break;
|
|
123
|
+
case "End":
|
|
124
|
+
q(L.value[L.value.length - 1]);
|
|
125
|
+
break;
|
|
126
|
+
default: return;
|
|
127
|
+
}
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
}
|
|
130
|
+
return (n, r) => (v(), u("div", { class: h(ne.value) }, [d("div", {
|
|
131
|
+
ref_key: "listRef",
|
|
132
|
+
ref: I,
|
|
133
|
+
class: h(["nb-tabs__list", {
|
|
134
|
+
"nb-tabs__list--fade-start": C(J) && Y.value,
|
|
135
|
+
"nb-tabs__list--fade-end": C(J) && X.value
|
|
136
|
+
}]),
|
|
137
|
+
role: "tablist",
|
|
138
|
+
"aria-label": e.ariaLabel || void 0,
|
|
139
|
+
onKeydown: re,
|
|
140
|
+
onScrollPassive: Z
|
|
141
|
+
}, [(v(!0), u(o, null, b(e.items, (e) => (v(), u("button", {
|
|
142
|
+
id: V(e.id),
|
|
143
|
+
key: e.id,
|
|
144
|
+
"data-tab-id": e.id,
|
|
145
|
+
type: "button",
|
|
146
|
+
role: "tab",
|
|
147
|
+
class: h(["nb-tabs__tab", { "nb-tabs__tab--active": e.id === z.value }]),
|
|
148
|
+
"aria-selected": e.id === z.value,
|
|
149
|
+
"aria-controls": U(e.id) ? H(e.id) : void 0,
|
|
150
|
+
tabindex: e.id === z.value ? 0 : -1,
|
|
151
|
+
disabled: B(e),
|
|
152
|
+
onClick: (t) => W(e)
|
|
153
|
+
}, [
|
|
154
|
+
e.icon ? (v(), c(t, {
|
|
155
|
+
key: 0,
|
|
156
|
+
name: e.icon,
|
|
157
|
+
size: te.value,
|
|
158
|
+
class: "nb-tabs__icon"
|
|
159
|
+
}, null, 8, ["name", "size"])) : l("", !0),
|
|
160
|
+
d("span", ee, S(e.label), 1),
|
|
161
|
+
e.badge == null ? l("", !0) : (v(), c(a, {
|
|
162
|
+
key: 1,
|
|
163
|
+
size: "sm",
|
|
164
|
+
class: "nb-tabs__badge"
|
|
165
|
+
}, {
|
|
166
|
+
default: E(() => [f(S(e.badge), 1)]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1024))
|
|
169
|
+
], 10, A))), 128))], 42, k), (v(!0), u(o, null, b(e.items, (e) => (v(), u(o, { key: `panel-${e.id}` }, [e.id === z.value && U(e.id) ? (v(), u("div", {
|
|
170
|
+
key: 0,
|
|
171
|
+
id: H(e.id),
|
|
172
|
+
class: "nb-tabs__panel",
|
|
173
|
+
role: "tabpanel",
|
|
174
|
+
"aria-labelledby": V(e.id),
|
|
175
|
+
tabindex: "0"
|
|
176
|
+
}, [x(n.$slots, e.id, { item: e }, void 0, !0)], 8, j)) : l("", !0)], 64))), 128))], 2));
|
|
177
|
+
}
|
|
178
|
+
}), [["__scopeId", "data-v-fecb01d1"]]);
|
|
179
|
+
//#endregion
|
|
180
|
+
export { N as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-
|
|
2
|
-
`});function E(){b.value&&y.value&&(b.value.scrollTop=y.value.scrollTop)}(0,i.watch)(T,()=>(0,i.nextTick)(E));let D=(0,i.computed)(()=>_.error?`error`:_.warning?`warning`:`helper`),O=(0,i.computed)(()=>_.error||_.warning||_.helper||``),k=(0,i.computed)(()=>!!O.value),A=(0,i.computed)(()=>({"nb-text-input__field-wrapper--focused":x.value,"nb-text-input__field-wrapper--error":!!_.error,"nb-text-input__field-wrapper--warning":!_.error&&!!_.warning,"nb-text-input__field-wrapper--disabled":_.disabled,"nb-text-input__field-wrapper--readonly":_.readonly,"nb-text-input__field-wrapper--overlay":w.value,"nb-text-input__field-wrapper--multiline":_.multiline}));return(g,_)=>((0,i.openBlock)(),(0,i.createBlock)(r.t,{dir:`col`,class:(0,i.normalizeClass)([`nb-text-input`,`nb-text-input--${e.variant}`,`nb-text-input--${e.size}`,{"nb-text-input--multiline":e.multiline}])},{default:(0,i.withCtx)(()=>[e.variant===`default`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[g.$slots.label?(0,i.renderSlot)(g.$slots,`label`,{key:0},void 0,!0):e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:1,for:C.value,required:e.required,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-text-input__field-wrapper`,A.value])},[(0,i.renderSlot)(g.$slots,`leading`,{},void 0,!0),w.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,a,[(0,i.createElementVNode)(`div`,{ref_key:`mirrorRef`,ref:b,class:`nb-text-input__mirror`,"aria-hidden":`true`,innerHTML:T.value},null,8,o),e.multiline?((0,i.openBlock)(),(0,i.createElementBlock)(`textarea`,(0,i.mergeProps)({key:0,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{class:`nb-text-input__field--transparent`,value:v.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,autocomplete:`off`,autocorrect:`off`,onInput:_[0]||=e=>v.value=e.target.value,onFocus:_[1]||=e=>x.value=!0,onBlur:_[2]||=e=>x.value=!1,onScroll:E}),null,16,s)):((0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({key:1,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{type:`text`,class:`nb-text-input__field--transparent`,value:v.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,onInput:_[3]||=e=>v.value=e.target.value,onFocus:_[4]||=e=>x.value=!0,onBlur:_[5]||=e=>x.value=!1}),null,16,c))])):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[e.multiline?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`textarea`,(0,i.mergeProps)({key:0,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[6]||=e=>v.value=e,class:`nb-text-input__field`,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,rows:e.rows,onFocus:_[7]||=e=>x.value=!0,onBlur:_[8]||=e=>x.value=!1}),null,16,l)),[[i.vModelText,v.value]]):(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({key:1,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[9]||=e=>v.value=e,class:`nb-text-input__field`,type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:_[10]||=e=>x.value=!0,onBlur:_[11]||=e=>x.value=!1}),null,16,u)),[[i.vModelDynamic,v.value]])],64)),(0,i.renderSlot)(g.$slots,`trailing`,{},void 0,!0),g.$slots.actions?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[(0,i.renderSlot)(g.$slots,`actions`,{},void 0,!0)])):(0,i.createCommentVNode)(``,!0)],2),k.value?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:D.value,class:`nb-text-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(O.value),1)]),_:1},8,[`variant`])):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(g.$slots,`dropdown`,{},void 0,!0)],64)):e.variant===`fluid`?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:(0,i.normalizeClass)([`nb-text-input__field-wrapper`,A.value])},[e.label||g.$slots.label?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,f,[g.$slots.label?(0,i.renderSlot)(g.$slots,`label`,{key:0},void 0,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`label`,{key:1,for:C.value,class:(0,i.normalizeClass)([`nb-text-input__inner-label`,{"nb-text-input__inner-label--required":e.required}])},[(0,i.createTextVNode)((0,i.toDisplayString)(e.label)+` `,1),e.required?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,m,`*`)):(0,i.createCommentVNode)(``,!0)],10,p)),k.value?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:D.value,"icon-only":``,class:`nb-text-input__inner-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(O.value),1)]),_:1},8,[`variant`])):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0),(0,i.withDirectives)((0,i.createElementVNode)(`input`,(0,i.mergeProps)({id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[12]||=e=>v.value=e,class:`nb-text-input__field`,type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:_[13]||=e=>x.value=!0,onBlur:_[14]||=e=>x.value=!1}),null,16,h),[[i.vModelDynamic,v.value]])],2)):(0,i.createCommentVNode)(``,!0)]),_:3},8,[`class`]))}}),_=e.t(g,[[`__scopeId`,`data-v-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-CZhQEyoi.cjs`),n=require(`./Message-C44ftsaT.cjs`),r=require(`./Grid-DiCxrPaO.cjs`);let i=require(`vue`);var a={key:0,class:`nb-text-input__overlay-wrap`},o=[`innerHTML`],s=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`],c=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`],l=[`id`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`,`rows`],u=[`id`,`type`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`min`,`max`,`step`,`maxlength`],d={key:2,class:`nb-text-input__actions`},f={key:0,class:`nb-text-input__inner-header`},p=[`for`],m={key:0,class:`nb-text-input__asterisk`,"aria-hidden":`true`},h=[`id`,`type`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`min`,`max`,`step`,`maxlength`],g=(0,i.defineComponent)({inheritAttrs:!1,__name:`TextInput`,props:(0,i.mergeModels)({type:{default:`text`},min:{default:void 0},max:{default:void 0},step:{default:void 0},maxlength:{default:void 0},multiline:{type:Boolean,default:!1},rows:{default:3},highlight:{type:Function,default:void 0},readonly:{type:Boolean,default:!1},placeholder:{default:``},name:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:g}){let _=e,v=(0,i.useModel)(e,`modelValue`),y=(0,i.ref)(null),b=(0,i.ref)(null);g({focus:()=>y.value?.focus(),blur:()=>y.value?.blur(),nativeEl:y});let x=(0,i.ref)(!1),S=`nb-input-${(0,i.useId)()}`,C=(0,i.computed)(()=>_.id??S),w=(0,i.computed)(()=>!!_.highlight),T=(0,i.computed)(()=>{if(!_.highlight)return``;let e=String(v.value??``);return _.highlight(e)+`
|
|
2
|
+
`});function E(){b.value&&y.value&&(b.value.scrollTop=y.value.scrollTop)}(0,i.watch)(T,()=>(0,i.nextTick)(E));let D=(0,i.computed)(()=>_.error?`error`:_.warning?`warning`:`helper`),O=(0,i.computed)(()=>_.error||_.warning||_.helper||``),k=(0,i.computed)(()=>!!O.value),A=(0,i.computed)(()=>({"nb-text-input__field-wrapper--focused":x.value,"nb-text-input__field-wrapper--error":!!_.error,"nb-text-input__field-wrapper--warning":!_.error&&!!_.warning,"nb-text-input__field-wrapper--disabled":_.disabled,"nb-text-input__field-wrapper--readonly":_.readonly,"nb-text-input__field-wrapper--overlay":w.value,"nb-text-input__field-wrapper--multiline":_.multiline}));return(g,_)=>((0,i.openBlock)(),(0,i.createBlock)(r.t,{dir:`col`,class:(0,i.normalizeClass)([`nb-text-input`,`nb-text-input--${e.variant}`,`nb-text-input--${e.size}`,{"nb-text-input--multiline":e.multiline}])},{default:(0,i.withCtx)(()=>[e.variant===`default`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[g.$slots.label?(0,i.renderSlot)(g.$slots,`label`,{key:0},void 0,!0):e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:1,for:C.value,required:e.required,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-text-input__field-wrapper`,A.value])},[(0,i.renderSlot)(g.$slots,`leading`,{},void 0,!0),w.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,a,[(0,i.createElementVNode)(`div`,{ref_key:`mirrorRef`,ref:b,class:`nb-text-input__mirror`,"aria-hidden":`true`,innerHTML:T.value},null,8,o),e.multiline?((0,i.openBlock)(),(0,i.createElementBlock)(`textarea`,(0,i.mergeProps)({key:0,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{class:`nb-text-input__field--transparent`,value:v.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,autocomplete:`off`,autocorrect:`off`,onInput:_[0]||=e=>v.value=e.target.value,onFocus:_[1]||=e=>x.value=!0,onBlur:_[2]||=e=>x.value=!1,onScroll:E}),null,16,s)):((0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({key:1,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{type:`text`,class:`nb-text-input__field--transparent`,value:v.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,onInput:_[3]||=e=>v.value=e.target.value,onFocus:_[4]||=e=>x.value=!0,onBlur:_[5]||=e=>x.value=!1}),null,16,c))])):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[e.multiline?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`textarea`,(0,i.mergeProps)({key:0,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[6]||=e=>v.value=e,class:`nb-text-input__field`,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,rows:e.rows,onFocus:_[7]||=e=>x.value=!0,onBlur:_[8]||=e=>x.value=!1}),null,16,l)),[[i.vModelText,v.value]]):(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({key:1,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[9]||=e=>v.value=e,class:`nb-text-input__field`,type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:_[10]||=e=>x.value=!0,onBlur:_[11]||=e=>x.value=!1}),null,16,u)),[[i.vModelDynamic,v.value]])],64)),(0,i.renderSlot)(g.$slots,`trailing`,{},void 0,!0),g.$slots.actions?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[(0,i.renderSlot)(g.$slots,`actions`,{},void 0,!0)])):(0,i.createCommentVNode)(``,!0)],2),k.value?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:D.value,class:`nb-text-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(O.value),1)]),_:1},8,[`variant`])):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(g.$slots,`dropdown`,{},void 0,!0)],64)):e.variant===`fluid`?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:(0,i.normalizeClass)([`nb-text-input__field-wrapper`,A.value])},[e.label||g.$slots.label?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,f,[g.$slots.label?(0,i.renderSlot)(g.$slots,`label`,{key:0},void 0,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`label`,{key:1,for:C.value,class:(0,i.normalizeClass)([`nb-text-input__inner-label`,{"nb-text-input__inner-label--required":e.required}])},[(0,i.createTextVNode)((0,i.toDisplayString)(e.label)+` `,1),e.required?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,m,`*`)):(0,i.createCommentVNode)(``,!0)],10,p)),k.value?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:D.value,"icon-only":``,class:`nb-text-input__inner-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(O.value),1)]),_:1},8,[`variant`])):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0),(0,i.withDirectives)((0,i.createElementVNode)(`input`,(0,i.mergeProps)({id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[12]||=e=>v.value=e,class:`nb-text-input__field`,type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:_[13]||=e=>x.value=!0,onBlur:_[14]||=e=>x.value=!1}),null,16,h),[[i.vModelDynamic,v.value]])],2)):(0,i.createCommentVNode)(``,!0)]),_:3},8,[`class`]))}}),_=e.t(g,[[`__scopeId`,`data-v-9218a614`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Label-
|
|
3
|
-
import { t as n } from "./Message-
|
|
4
|
-
import { t as r } from "./Grid-
|
|
2
|
+
import { t } from "./Label-DGK5nxFy.js";
|
|
3
|
+
import { t as n } from "./Message-CHkTWe0K.js";
|
|
4
|
+
import { t as r } from "./Grid-iox-7xyH.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, useId as b, useModel as x, vModelDynamic as S, vModelText as C, watch as w, withCtx as T, withDirectives as E } from "vue";
|
|
6
6
|
//#region src/components/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var D = {
|
|
@@ -290,6 +290,6 @@ var D = {
|
|
|
290
290
|
_: 3
|
|
291
291
|
}, 8, ["class"]));
|
|
292
292
|
}
|
|
293
|
-
}), [["__scopeId", "data-v-
|
|
293
|
+
}), [["__scopeId", "data-v-9218a614"]]);
|
|
294
294
|
//#endregion
|
|
295
295
|
export { R as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Toast-
|
|
2
|
+
import { t } from "./Toast-q9KByfYq.js";
|
|
3
3
|
import { NB_TOAST_QUEUE_KEY as n, useToast as r } from "./composables/useToast.composable.mjs";
|
|
4
4
|
import { Fragment as i, Teleport as a, TransitionGroup as o, computed as s, createBlock as c, createCommentVNode as ee, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, inject as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as te, openBlock as _, ref as v, renderList as ne, renderSlot as y, toDisplayString as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
5
5
|
//#region src/components/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Toast-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Toast-XjSCXTx8.cjs`),n=require(`./composables/useToast.composable.cjs`);let r=require(`vue`);var i={class:`nb-toaster__announcer`},a={role:`status`,"aria-live":`polite`,"aria-atomic":`true`},o={role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`},s=[`aria-label`,`data-paused`],c=[`data-toast-id`],l=new Map;function u(e,t){let n=(l.get(e)??0)+t;n<=0?l.delete(e):l.set(e,n),!(t<0||n<2)&&(typeof process<`u`&&process.env.NODE_ENV===`production`||console.warn(`[NbToaster] Two hosts are rendering the same queue. Every toast will be shown and announced twice, and both hosts write to queue.max. Mount one NbToaster per application, and give any second host (a demo, a dialog) its own createToastQueue().`))}var d=(0,r.defineComponent)({__name:`Toaster`,props:{queue:{default:void 0},placement:{default:`bottom-end`},max:{default:void 0},label:{default:`Notifications`},to:{type:[String,Boolean],default:`body`},hotkey:{default:`alt+t`},hotkeyHint:{default:`Press Alt plus T to reach it.`}},setup(e,{expose:l}){let d=e,f=(0,r.inject)(n.NB_TOAST_QUEUE_KEY,null),p=(0,r.computed)(()=>d.queue??f??n.useToast()),m=(0,r.computed)(()=>p.value.visible.value),h=(0,r.computed)(()=>[...m.value].reverse()),g=(0,r.ref)(null),_=(0,r.computed)(()=>d.to===!1?`body`:d.to),v=null;function y(){v&&(v.queue.max.value=v.previous),v=null}(0,r.watch)([p,()=>d.max],([e,t])=>{v&&(v.queue!==e||t===void 0)&&y(),t!==void 0&&(v||={queue:e,previous:e.max.value},e.max.value=t)},{immediate:!0});let b=null;function x(e){b!==e&&(b&&u(b,-1),b=e,e&&u(e,1))}(0,r.watch)(p,e=>{b&&x(e)});function S(e){return e.variant===`error`||e.variant===`warning`}let C=(0,r.ref)(``),w=(0,r.ref)(``),T={polite:{text:C,buffer:[],draining:!1,handle:null},assertive:{text:w,buffer:[],draining:!1,handle:null}};function E(e){let t=[p.value.labels.status[e.variant],e.title,e.message].filter(Boolean).join(`. `);if(!e.cta)return t;let n=d.hotkey?` ${d.hotkeyHint}`:``;return`${t}. ${e.cta.label} action available.${n}`}async function D(e){let t=e.buffer.shift();if(t===void 0){e.draining=!1;return}e.draining=!0,e.text.value=``,await(0,r.nextTick)(),e.text.value=t,e.handle=setTimeout(()=>{e.handle=null,D(e)},500)}function O(e){let t=T[S(e)?`assertive`:`polite`];t.buffer.push(E(e)),t.draining||D(t)}(0,r.onBeforeUnmount)(()=>{for(let e of Object.values(T))e.handle&&clearTimeout(e.handle),e.handle=null,e.buffer.length=0,e.draining=!1});let k=new Set;(0,r.watch)(m,e=>{let t=new Set(e.map(e=>e.id));for(let e of[...k])t.has(e.slice(0,e.lastIndexOf(`:`)))||k.delete(e);for(let t of e){let e=`${t.id}:${t.cycle}`;k.has(e)||(k.add(e),O(t))}},{deep:!0,immediate:!0});let A=new Set,j=!1;function M(e){A.size===0&&(j=p.value.paused.value),A.add(e),p.value.pause()}function N(e){A.delete(e)&&A.size===0&&!j&&p.value.resume()}let P=null;function F(e){let t=e.target;!t||t===document.body||g.value?.contains(t)||(P=t)}function I(){M(`focus`)}function L(e){let t=e.relatedTarget;t&&g.value?.contains(t)||N(`focus`)}function R(e){if(e.key!==`Escape`)return;let t=(document.activeElement?.closest(`.nb-toaster__item`))?.dataset.toastId??h.value[0]?.id;t&&(e.stopPropagation(),e.preventDefault(),U(t))}let z=[`button:not([disabled])`,`[href]`,`input:not([disabled]):not([type="hidden"])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`);function B(e){return g.value?.querySelector(`[data-toast-id="${e}"]`)??null}function V(e){let t=B(e);return t?t.matches(z)?t:t.querySelector(z):null}let H=new Set;(0,r.watch)(m,(e,t)=>{if(!t)return;let n=document.activeElement;if(!n||!g.value?.contains(n))return;let i=n.closest(`[data-toast-id]`)?.dataset.toastId;if(!i||e.some(e=>e.id===i))return;let a=[...t].reverse().map(e=>e.id),o=new Set(e.map(e=>e.id)),s=a.indexOf(i),c;for(let e=s+1;e<a.length&&!c;e+=1)o.has(a[e])&&(c=a[e]);for(let e=s-1;e>=0&&!c;--e)o.has(a[e])&&(c=a[e]);let l=P;(0,r.nextTick)(()=>{let e=c?V(c):null;if(e){e.focus();return}l?.isConnected&&l.focus(),P=null})});function U(e,t){p.value.dismiss(e,t??(H.has(e)?`action`:`user`)),H.delete(e)}let W={space:`Space`,enter:`Enter`,escape:`Escape`,comma:`Comma`,period:`Period`,slash:`Slash`,backslash:`Backslash`,backquote:`Backquote`,minus:`Minus`,equal:`Equal`};function G(e){return/^[a-z]$/.test(e)?`Key${e.toUpperCase()}`:/^[0-9]$/.test(e)?`Digit${e}`:W[e]??null}function K(e){if(!d.hotkey)return!1;let t=d.hotkey.toLowerCase().split(`+`),n=t[t.length-1],r=G(n);if(r?e.code!==r:e.key.toLowerCase()!==n)return!1;let i=e=>t.includes(e);return e.altKey===i(`alt`)&&e.ctrlKey===i(`ctrl`)&&e.shiftKey===i(`shift`)&&e.metaKey===i(`meta`)}function q(){let e=document.querySelectorAll(`[aria-modal="true"]`);for(let t of e)if(!(g.value&&t.contains(g.value)))return t;return null}function J(e){if(!K(e)||h.value.length===0)return;if(g.value?.contains(document.activeElement)){e.preventDefault(),P?.isConnected?P.focus():document.activeElement?.blur();return}if(q())return;let t=V(h.value[0].id);t&&(e.preventDefault(),t.focus())}function Y(){document.visibilityState===`hidden`?M(`hidden`):N(`hidden`)}return(0,r.onMounted)(()=>{x(p.value),Y(),document.addEventListener(`visibilitychange`,Y),document.addEventListener(`focusin`,F),document.addEventListener(`keydown`,J)}),(0,r.onBeforeUnmount)(()=>{document.removeEventListener(`visibilitychange`,Y),document.removeEventListener(`focusin`,F),document.removeEventListener(`keydown`,J);let e=A.size>0&&!j;A.clear(),e&&p.value.resume(),x(null),y()}),(0,r.watch)(()=>m.value.length,e=>{if(e>0)return;let t=A.delete(`pointer`),n=A.delete(`focus`);!t&&!n||A.size===0&&!j&&p.value.resume()}),l({queue:p}),(e,n)=>((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:_.value,disabled:d.to===!1},[(0,r.createElementVNode)(`div`,i,[(0,r.createElementVNode)(`div`,a,(0,r.toDisplayString)(C.value),1),(0,r.createElementVNode)(`div`,o,(0,r.toDisplayString)(w.value),1)]),m.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,ref_key:`regionRef`,ref:g,class:(0,r.normalizeClass)([`nb-toaster`,`nb-toaster--${d.placement}`]),role:`region`,"aria-label":d.label,"data-paused":p.value.paused.value?`true`:void 0,onMouseenter:n[0]||=e=>M(`pointer`),onMouseleave:n[1]||=e=>N(`pointer`),onFocusin:I,onFocusout:L,onKeydown:R},[(0,r.createVNode)(r.TransitionGroup,{tag:`div`,class:`nb-toaster__stack`,name:`nb-toaster`},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(h.value,n=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:n.id,class:`nb-toaster__item`,"data-toast-id":n.id},[(0,r.renderSlot)(e.$slots,`toast`,{toast:n,paused:p.value.paused.value,dismiss:e=>U(n.id,e),action:()=>(0,r.unref)(H).add(n.id)},()=>[(0,r.createVNode)(t.t,{message:n.message,title:n.title,variant:n.variant,cta:n.cta,duration:n.duration,cycle:n.cycle,managed:``,paused:p.value.paused.value,role:`none`,"aria-live":`off`,"status-label":p.value.labels.status[n.variant],"close-label":p.value.labels.close,onAction:e=>(0,r.unref)(H).add(n.id),onClose:e=>U(n.id)},null,8,[`message`,`title`,`variant`,`cta`,`duration`,`cycle`,`paused`,`status-label`,`close-label`,`onAction`,`onClose`])],!0)],8,c))),128))]),_:3})],42,s)):(0,r.createCommentVNode)(``,!0)],8,[`to`,`disabled`]))}}),f=e.t(d,[[`__scopeId`,`data-v-dad77da7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|