@nubisco/ui 5.18.1 → 5.19.1
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-CUN48Qea.cjs +1 -0
- package/dist/ActionGroup-lEopoloN.js +170 -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-DztLfQzB.js → Confirm-Dh1H2PMh.js} +8 -8
- package/dist/{Confirm-Br9VOB2-.cjs → Confirm-ue689l-w.cjs} +1 -1
- package/dist/DataTable-CWMlmjMi.cjs +1 -0
- package/dist/DataTable-DaNZAixf.js +389 -0
- package/dist/DatePicker-DMiiGKYY.js +715 -0
- package/dist/DatePicker-tAhXSR2o.cjs +1 -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-2Se8F81Q.js +136 -0
- package/dist/Menu-CAZmNx60.cjs +1 -0
- package/dist/{MenuBarItem-H1sFt0Mx.js → MenuBarItem-Cxxs8Dnr.js} +1 -1
- package/dist/{MenuBarItem-42bSEdWZ.cjs → MenuBarItem-dBEuTZ3Q.cjs} +1 -1
- package/dist/{Modal-BvZulLj2.js → Modal-BxSP1eyD.js} +35 -34
- package/dist/Modal-sGlC__uQ.cjs +1 -0
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nubisco/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.1",
|
|
4
4
|
"description": "Vue 3 UI component library",
|
|
5
5
|
"packageManager": "pnpm@12.3.4+sha512.961aa41fb077da3a04a441d9f8e15ebc0c96da8ef710b2eb67bf9ee7cb0610eabd48f1fd85f51cffe73846785fa0f87c56a3a872a1d893f8446741b5cce45457",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '../variables/breakpoints' as bp;
|
|
2
|
+
|
|
3
|
+
/// Grow a control's touch target to $min on a phone touch screen, without
|
|
4
|
+
/// changing how it looks: an invisible box centred on the control takes the
|
|
5
|
+
/// taps. The control needs to be the positioning context, so it gets
|
|
6
|
+
/// `position: relative` unless it already has a position of its own (pass
|
|
7
|
+
/// $position: false then). Uses ::after, so the control must not.
|
|
8
|
+
/// @group @nubisco/logic
|
|
9
|
+
@mixin hit-area($min: 44px, $position: true) {
|
|
10
|
+
@include bp.phone-touch {
|
|
11
|
+
@if $position {
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&::after {
|
|
16
|
+
content: '';
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset-block: min(0px, calc((100% - #{$min}) / 2));
|
|
19
|
+
inset-inline: min(0px, calc((100% - #{$min}) / 2));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/// Field text on a phone touch screen: never below 16px, or iOS Safari zooms
|
|
25
|
+
/// the page in when the field takes focus and leaves it zoomed.
|
|
26
|
+
/// @group @nubisco/logic
|
|
27
|
+
@mixin touch-field-text {
|
|
28
|
+
@include bp.phone-touch {
|
|
29
|
+
font-size: max(16px, var(--nb-field-font-size, 14px));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -29,3 +29,39 @@ $breakpoints: (
|
|
|
29
29
|
@error '`#{$key}` does not exist in the $breakpoints variable';
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
// The phone layout. Below $bp-md (where NbShell already collapses), or a
|
|
34
|
+
// touch screen too short to be anything but a phone held sideways. Desktops,
|
|
35
|
+
// desktop app windows and touch laptops driven by a mouse report a fine
|
|
36
|
+
// pointer or hover, so the second clause never matches them.
|
|
37
|
+
//
|
|
38
|
+
// Kept in step with NB_PHONE_QUERY in composables/usePhoneLayout.composable.ts
|
|
39
|
+
// (a unit test compares the two), because script decisions need the same
|
|
40
|
+
// answer as the styles.
|
|
41
|
+
/// @type String
|
|
42
|
+
/// @access public
|
|
43
|
+
/// @group @nubisco/layout
|
|
44
|
+
$phone-query: '(max-width: #{$bp-md - 0.02}px), (pointer: coarse) and (hover: none) and (max-height: 500px)' !default;
|
|
45
|
+
|
|
46
|
+
// The phone layout on a touch screen: where hit areas grow to 44px and field
|
|
47
|
+
// text to 16px. A narrow desktop window gets the layout but keeps its density.
|
|
48
|
+
/// @type String
|
|
49
|
+
/// @access public
|
|
50
|
+
/// @group @nubisco/layout
|
|
51
|
+
$phone-touch-query: '(max-width: #{$bp-md - 0.02}px) and (pointer: coarse), (pointer: coarse) and (hover: none) and (max-height: 500px)' !default;
|
|
52
|
+
|
|
53
|
+
/// Styles for the phone layout only. Nothing inside reaches a desktop.
|
|
54
|
+
/// @group @nubisco/layout
|
|
55
|
+
@mixin phone {
|
|
56
|
+
@media #{$phone-query} {
|
|
57
|
+
@content;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/// Styles for the phone layout on a touch screen only.
|
|
62
|
+
/// @group @nubisco/layout
|
|
63
|
+
@mixin phone-touch {
|
|
64
|
+
@media #{$phone-touch-query} {
|
|
65
|
+
@content;
|
|
66
|
+
}
|
|
67
|
+
}
|
package/dist/Board-6D49Yld8.js
DELETED
|
@@ -1,524 +0,0 @@
|
|
|
1
|
-
import { useStableId as e } from "./composables/useStableId.composable.mjs";
|
|
2
|
-
import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
|
|
3
|
-
import { t as n } from "./Button-BAfC7ySK.js";
|
|
4
|
-
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as ee, nextTick as d, normalizeClass as f, normalizeStyle as te, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as ne, withModifiers as y } from "vue";
|
|
5
|
-
//#region src/components/Board.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var re = [
|
|
7
|
-
"draggable",
|
|
8
|
-
"onDragstart",
|
|
9
|
-
"onDragover"
|
|
10
|
-
], ie = { class: "nb-board__col-title" }, ae = { class: "nb-board__col-count" }, oe = ["onClick"], se = ["aria-label"], ce = { class: "nb-board__lane-label" }, le = { class: "nb-board__lane-count" }, ue = ["onDragover", "onDrop"], de = ["aria-label"], fe = [
|
|
11
|
-
"data-item-id",
|
|
12
|
-
"aria-selected",
|
|
13
|
-
"aria-label",
|
|
14
|
-
"aria-describedby",
|
|
15
|
-
"onDragstart",
|
|
16
|
-
"onDragover",
|
|
17
|
-
"onKeydown",
|
|
18
|
-
"onClickCapture",
|
|
19
|
-
"onBlur"
|
|
20
|
-
], pe = {
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "nb-board__empty-cell",
|
|
23
|
-
"aria-hidden": "true"
|
|
24
|
-
}, me = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "nb-board__cell-footer"
|
|
27
|
-
}, he = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "nb-board__batch",
|
|
30
|
-
role: "region",
|
|
31
|
-
"aria-label": "Actions for the selected cards"
|
|
32
|
-
}, ge = { class: "nb-board__batch-count" }, _e = { class: "nb-board__batch-actions" }, ve = ["id"], ye = {
|
|
33
|
-
class: "nb-board__sr",
|
|
34
|
-
"aria-live": "assertive"
|
|
35
|
-
}, be = .5, xe = 44, Se = /* @__PURE__ */ u({
|
|
36
|
-
__name: "Board",
|
|
37
|
-
props: {
|
|
38
|
-
columns: {},
|
|
39
|
-
items: {},
|
|
40
|
-
lanes: { default: void 0 },
|
|
41
|
-
reorderableColumns: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !1
|
|
44
|
-
},
|
|
45
|
-
nestable: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: !1
|
|
48
|
-
},
|
|
49
|
-
selectable: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !1
|
|
52
|
-
},
|
|
53
|
-
selected: { default: void 0 }
|
|
54
|
-
},
|
|
55
|
-
emits: [
|
|
56
|
-
"move",
|
|
57
|
-
"nest",
|
|
58
|
-
"column-move",
|
|
59
|
-
"move-many",
|
|
60
|
-
"update:selected"
|
|
61
|
-
],
|
|
62
|
-
setup(u, { emit: Se }) {
|
|
63
|
-
let b = u, { layerProps: Ce } = t(), x = Se, S = i(() => b.selectable ? b.selected ?? [] : []), we = i(() => new Set(S.value)), C = null;
|
|
64
|
-
function w(e) {
|
|
65
|
-
return we.value.has(e);
|
|
66
|
-
}
|
|
67
|
-
function T(e) {
|
|
68
|
-
x("update:selected", e), U.value = e.length === 0 ? "Selection cleared" : `${e.length} ${e.length === 1 ? "card" : "cards"} selected`;
|
|
69
|
-
}
|
|
70
|
-
function E() {
|
|
71
|
-
C = null, T([]);
|
|
72
|
-
}
|
|
73
|
-
function D(e) {
|
|
74
|
-
C = e, T(w(e) ? S.value.filter((t) => t !== e) : [...S.value, e]);
|
|
75
|
-
}
|
|
76
|
-
function Te(e, t, n) {
|
|
77
|
-
let r = L(t, n), i = C ? r.findIndex((e) => e.id === C) : -1, a = r.findIndex((t) => t.id === e.id);
|
|
78
|
-
if (i === -1 || a === -1) return D(e.id);
|
|
79
|
-
let o = r.slice(Math.min(i, a), Math.max(i, a) + 1).map((e) => e.id);
|
|
80
|
-
T([...new Set([...S.value, ...o])]);
|
|
81
|
-
}
|
|
82
|
-
function Ee(e, t, n, r) {
|
|
83
|
-
b.selectable && (e.metaKey || e.ctrlKey || e.shiftKey) && (e.preventDefault(), e.stopPropagation(), e.shiftKey ? Te(t, N(n), r) : D(t.id));
|
|
84
|
-
}
|
|
85
|
-
function O() {
|
|
86
|
-
let e = [];
|
|
87
|
-
for (let t of b.columns) for (let n of M.value) for (let r of L(N(n), t.id)) w(r.id) && !e.includes(r.id) && e.push(r.id);
|
|
88
|
-
return e;
|
|
89
|
-
}
|
|
90
|
-
function k(e, t, n, r, i) {
|
|
91
|
-
let a = new Set(e), o = L(n, r).filter((e) => e.id !== t), s = null;
|
|
92
|
-
for (let e = Math.min(i, o.length) - 1; e >= 0; e--) if (!a.has(o[e].id)) {
|
|
93
|
-
s = o[e].id;
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
let c = null;
|
|
97
|
-
for (let e = Math.max(i, 0); e < o.length; e++) if (!a.has(o[e].id)) {
|
|
98
|
-
c = o[e].id;
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
x("move-many", {
|
|
102
|
-
itemIds: e,
|
|
103
|
-
toColumnId: r,
|
|
104
|
-
...b.lanes ? { toLaneId: n } : {},
|
|
105
|
-
beforeItemId: s,
|
|
106
|
-
afterItemId: c
|
|
107
|
-
});
|
|
108
|
-
let l = R(r);
|
|
109
|
-
U.value = `${e.length} cards moved to ${l?.label ?? r}`;
|
|
110
|
-
}
|
|
111
|
-
let A = e({}), j = m(null), De = i(() => ({ gridTemplateColumns: `repeat(${b.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))` })), M = i(() => b.lanes && b.lanes.length > 0 ? b.lanes : [null]);
|
|
112
|
-
function N(e) {
|
|
113
|
-
return e ? e.id ?? null : null;
|
|
114
|
-
}
|
|
115
|
-
function P(e) {
|
|
116
|
-
return e ? I(e.id) : "__flat__";
|
|
117
|
-
}
|
|
118
|
-
function F(e) {
|
|
119
|
-
return b.items.filter((t) => t.columnId === e).length;
|
|
120
|
-
}
|
|
121
|
-
function I(e) {
|
|
122
|
-
return e ?? "__none__";
|
|
123
|
-
}
|
|
124
|
-
function Oe(e) {
|
|
125
|
-
return b.lanes ? b.items.filter((t) => (t.laneId ?? null) === e).length : 0;
|
|
126
|
-
}
|
|
127
|
-
function L(e, t) {
|
|
128
|
-
return !b.lanes || b.lanes.length === 0 ? b.items.filter((e) => e.columnId === t) : b.items.filter((n) => n.columnId === t && (n.laneId ?? null) === e);
|
|
129
|
-
}
|
|
130
|
-
function R(e) {
|
|
131
|
-
return b.columns.find((t) => t.id === e);
|
|
132
|
-
}
|
|
133
|
-
let z = m(/* @__PURE__ */ new Set());
|
|
134
|
-
function ke(e) {
|
|
135
|
-
let t = I(e), n = new Set(z.value);
|
|
136
|
-
n.has(t) ? n.delete(t) : n.add(t), z.value = n;
|
|
137
|
-
}
|
|
138
|
-
function B(e) {
|
|
139
|
-
return z.value.has(I(e));
|
|
140
|
-
}
|
|
141
|
-
function V(e) {
|
|
142
|
-
let t = e.label ?? e.name ?? e.title;
|
|
143
|
-
return typeof t == "string" ? t : `Item ${e.id}`;
|
|
144
|
-
}
|
|
145
|
-
function H(e, t) {
|
|
146
|
-
return e ? `${t.label}, ${e.label}` : t.label;
|
|
147
|
-
}
|
|
148
|
-
function Ae(e, t) {
|
|
149
|
-
return H(e, t);
|
|
150
|
-
}
|
|
151
|
-
function je(e, t, n) {
|
|
152
|
-
let r = L(N(t), n.id), i = r.findIndex((t) => t.id === e.id), a = `${V(e)}, ${i + 1} of ${r.length} in ${H(t, n)}`;
|
|
153
|
-
return Y.value?.item.id === e.id ? `${a}, picked up` : a;
|
|
154
|
-
}
|
|
155
|
-
let U = m("");
|
|
156
|
-
function W(e, t, n, r) {
|
|
157
|
-
let i = L(t, n).filter((t) => t.id !== e.item.id), a = Math.max(0, Math.min(r, i.length));
|
|
158
|
-
return e.fromColumnId === n && e.fromLaneId === t && a === L(t, n).findIndex((t) => t.id === e.item.id) ? !1 : (x("move", {
|
|
159
|
-
itemId: e.item.id,
|
|
160
|
-
fromColumnId: e.fromColumnId,
|
|
161
|
-
toColumnId: n,
|
|
162
|
-
fromLaneId: e.fromLaneId,
|
|
163
|
-
toLaneId: t,
|
|
164
|
-
toIndex: a,
|
|
165
|
-
beforeItemId: i[a - 1]?.id ?? null,
|
|
166
|
-
afterItemId: i[a]?.id ?? null
|
|
167
|
-
}), !0);
|
|
168
|
-
}
|
|
169
|
-
let G = m(null), K = m(null), q = m(null);
|
|
170
|
-
function Me(e, t, n) {
|
|
171
|
-
Y.value = null;
|
|
172
|
-
let r = w(e.id) && S.value.length > 1 ? O() : void 0;
|
|
173
|
-
G.value = {
|
|
174
|
-
item: e,
|
|
175
|
-
fromLaneId: N(t),
|
|
176
|
-
fromColumnId: n,
|
|
177
|
-
group: r
|
|
178
|
-
}, r && (U.value = `Moving ${r.length} cards`);
|
|
179
|
-
}
|
|
180
|
-
function Ne(e, t, n, r, i) {
|
|
181
|
-
if (!G.value) return;
|
|
182
|
-
let a = e.currentTarget.getBoundingClientRect();
|
|
183
|
-
if (b.nestable && !G.value.group && a.height >= xe) {
|
|
184
|
-
let r = (e.clientY - a.top) / a.height, o = (1 - be) / 2;
|
|
185
|
-
if (r > o && r < 1 - o && i.id !== G.value.item.id) {
|
|
186
|
-
q.value = {
|
|
187
|
-
laneId: N(t),
|
|
188
|
-
colId: n,
|
|
189
|
-
itemId: i.id
|
|
190
|
-
}, K.value = null;
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
q.value = null;
|
|
195
|
-
let o = e.clientY >= a.top + a.height / 2;
|
|
196
|
-
K.value = {
|
|
197
|
-
laneId: N(t),
|
|
198
|
-
colId: n,
|
|
199
|
-
index: r + (o ? 1 : 0)
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
function Pe(e, t) {
|
|
203
|
-
if (!G.value) return;
|
|
204
|
-
let n = N(e);
|
|
205
|
-
K.value = {
|
|
206
|
-
laneId: n,
|
|
207
|
-
colId: t,
|
|
208
|
-
index: L(n, t).length
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
function Fe() {
|
|
212
|
-
K.value = null, q.value = null;
|
|
213
|
-
}
|
|
214
|
-
function Ie() {
|
|
215
|
-
G.value = null, K.value = null, q.value = null;
|
|
216
|
-
}
|
|
217
|
-
function Le(e, t) {
|
|
218
|
-
return J(e, t) !== null;
|
|
219
|
-
}
|
|
220
|
-
function J(e, t) {
|
|
221
|
-
let n = N(e), r = K.value;
|
|
222
|
-
if (G.value && r && r.laneId === n && r.colId === t) return r.index;
|
|
223
|
-
let i = Y.value;
|
|
224
|
-
if (i && i.laneId === n && i.colId === t) {
|
|
225
|
-
let e = L(n, t).findIndex((e) => e.id === i.item.id);
|
|
226
|
-
return e !== -1 && e <= i.index ? i.index + 1 : i.index;
|
|
227
|
-
}
|
|
228
|
-
return null;
|
|
229
|
-
}
|
|
230
|
-
function Re(e, t, n) {
|
|
231
|
-
let r = q.value;
|
|
232
|
-
return r !== null && r.laneId === N(e) && r.colId === t && r.itemId === n.id;
|
|
233
|
-
}
|
|
234
|
-
function ze(e, t, n) {
|
|
235
|
-
return n === L(N(e), t).length - 1 && J(e, t) === n + 1;
|
|
236
|
-
}
|
|
237
|
-
function Be(e, t) {
|
|
238
|
-
if (Z.value !== null) return;
|
|
239
|
-
let n = K.value, r = q.value;
|
|
240
|
-
K.value = null, q.value = null;
|
|
241
|
-
let i = G.value;
|
|
242
|
-
if (G.value = null, !i) return;
|
|
243
|
-
if (r) {
|
|
244
|
-
x("nest", {
|
|
245
|
-
itemId: i.item.id,
|
|
246
|
-
ontoItemId: r.itemId,
|
|
247
|
-
fromColumnId: i.fromColumnId,
|
|
248
|
-
...b.lanes ? { fromLaneId: i.fromLaneId } : {}
|
|
249
|
-
}), U.value = `${V(i.item)} dropped onto ${V(b.items.find((e) => e.id === r.itemId) ?? i.item)}`;
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
let a = N(e), o = L(a, t), s = n && n.laneId === a && n.colId === t ? n.index : o.length, c = o.findIndex((e) => e.id === i.item.id), l = c !== -1 && c < s ? s - 1 : s;
|
|
253
|
-
if (i.group) {
|
|
254
|
-
k(i.group, i.item.id, a, t, l);
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
W(i, a, t, l);
|
|
258
|
-
}
|
|
259
|
-
let Y = m(null);
|
|
260
|
-
function Ve(e, t, n, r) {
|
|
261
|
-
let i = N(n);
|
|
262
|
-
if (b.selectable && (e.key === "x" || e.key === "X") && !Y.value) {
|
|
263
|
-
e.preventDefault(), D(t.id);
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
if (e.key === "Escape") {
|
|
267
|
-
if (!Y.value) {
|
|
268
|
-
b.selectable && S.value.length > 0 && (e.preventDefault(), E());
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
e.preventDefault(), Y.value = null, U.value = "Move cancelled";
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
if (e.key === " " || e.key === "Enter") {
|
|
275
|
-
if (e.preventDefault(), Y.value?.item.id !== t.id) {
|
|
276
|
-
He(t, i, r);
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
if (b.nestable && e.shiftKey && Ke()) {
|
|
280
|
-
qe();
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
Je();
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
[
|
|
287
|
-
"ArrowUp",
|
|
288
|
-
"ArrowDown",
|
|
289
|
-
"ArrowLeft",
|
|
290
|
-
"ArrowRight"
|
|
291
|
-
].includes(e.key) && (e.preventDefault(), Y.value?.item.id === t.id ? Ge(e.key) : Ye(e.key, t, i, r));
|
|
292
|
-
}
|
|
293
|
-
function He(e, t, n) {
|
|
294
|
-
Y.value = {
|
|
295
|
-
item: e,
|
|
296
|
-
fromLaneId: t,
|
|
297
|
-
fromColumnId: n,
|
|
298
|
-
laneId: t,
|
|
299
|
-
colId: n,
|
|
300
|
-
index: L(t, n).findIndex((t) => t.id === e.id)
|
|
301
|
-
}, U.value = `${V(e)} picked up, ${Ue()}`;
|
|
302
|
-
}
|
|
303
|
-
function Ue() {
|
|
304
|
-
let e = Y.value;
|
|
305
|
-
if (!e) return "";
|
|
306
|
-
let t = L(e.laneId, e.colId).filter((t) => t.id !== e.item.id), n = R(e.colId), r = b.lanes?.find((t) => (t.id ?? null) === e.laneId) ?? null, i = n ? H(r, n) : e.colId;
|
|
307
|
-
return `position ${e.index + 1} of ${t.length + 1} in ${i}`;
|
|
308
|
-
}
|
|
309
|
-
function We() {
|
|
310
|
-
return !b.lanes || b.lanes.length === 0 ? [null] : b.lanes.filter((e) => !B(e.id)).map((e) => e.id ?? null);
|
|
311
|
-
}
|
|
312
|
-
function Ge(e) {
|
|
313
|
-
let t = Y.value;
|
|
314
|
-
if (!t) return;
|
|
315
|
-
let n = L(t.laneId, t.colId).filter((e) => e.id !== t.item.id);
|
|
316
|
-
if (e === "ArrowUp" || e === "ArrowDown") {
|
|
317
|
-
let r = e === "ArrowUp" ? -1 : 1, i = t.index + r;
|
|
318
|
-
if (i >= 0 && i <= n.length) t.index = i;
|
|
319
|
-
else {
|
|
320
|
-
let e = We(), n = e.indexOf(t.laneId), i = n + r;
|
|
321
|
-
if (n === -1 || i < 0 || i >= e.length) return;
|
|
322
|
-
let a = e[i];
|
|
323
|
-
t.laneId = a, t.index = r === 1 ? 0 : L(a, t.colId).filter((e) => e.id !== t.item.id).length;
|
|
324
|
-
}
|
|
325
|
-
} else {
|
|
326
|
-
let n = e === "ArrowLeft" ? -1 : 1, r = b.columns.findIndex((e) => e.id === t.colId), i = b.columns[r + n];
|
|
327
|
-
if (r === -1 || !i) return;
|
|
328
|
-
t.colId = i.id;
|
|
329
|
-
let a = L(t.laneId, t.colId).filter((e) => e.id !== t.item.id);
|
|
330
|
-
t.index = Math.min(t.index, a.length);
|
|
331
|
-
}
|
|
332
|
-
U.value = `${V(t.item)}, ${Ue()}`;
|
|
333
|
-
}
|
|
334
|
-
function Ke() {
|
|
335
|
-
let e = Y.value;
|
|
336
|
-
if (!e) return null;
|
|
337
|
-
let t = L(e.laneId, e.colId).filter((t) => t.id !== e.item.id);
|
|
338
|
-
return t.length === 0 ? null : t[Math.min(e.index, t.length - 1)] ?? null;
|
|
339
|
-
}
|
|
340
|
-
function qe() {
|
|
341
|
-
let e = Y.value, t = Ke();
|
|
342
|
-
!e || !t || (Y.value = null, x("nest", {
|
|
343
|
-
itemId: e.item.id,
|
|
344
|
-
ontoItemId: t.id,
|
|
345
|
-
fromColumnId: e.fromColumnId,
|
|
346
|
-
...b.lanes ? { fromLaneId: e.fromLaneId } : {}
|
|
347
|
-
}), U.value = `${V(e.item)} dropped onto ${V(t)}`);
|
|
348
|
-
}
|
|
349
|
-
function Je() {
|
|
350
|
-
let e = Y.value;
|
|
351
|
-
if (!e) return;
|
|
352
|
-
if (Y.value = null, w(e.item.id) && S.value.length > 1) {
|
|
353
|
-
k(O(), e.item.id, e.laneId, e.colId, e.index), Xe(e.item.id);
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
let t = W({
|
|
357
|
-
item: e.item,
|
|
358
|
-
fromLaneId: e.fromLaneId,
|
|
359
|
-
fromColumnId: e.fromColumnId
|
|
360
|
-
}, e.laneId, e.colId, e.index), n = R(e.colId), r = b.lanes?.find((t) => (t.id ?? null) === e.laneId) ?? null, i = n ? H(r, n) : e.colId;
|
|
361
|
-
U.value = t ? `${V(e.item)} dropped, position ${e.index + 1} in ${i}` : `${V(e.item)} dropped`, Xe(e.item.id);
|
|
362
|
-
}
|
|
363
|
-
function Ye(e, t, n, r) {
|
|
364
|
-
let i = L(n, r), a = i.findIndex((e) => e.id === t.id);
|
|
365
|
-
if (e === "ArrowUp" || e === "ArrowDown") {
|
|
366
|
-
let t = a + (e === "ArrowDown" ? 1 : -1);
|
|
367
|
-
t >= 0 && t < i.length && X(i[t].id);
|
|
368
|
-
} else {
|
|
369
|
-
let t = b.columns.findIndex((e) => e.id === r), i = b.columns[t + (e === "ArrowRight" ? 1 : -1)];
|
|
370
|
-
if (t === -1 || !i) return;
|
|
371
|
-
let o = L(n, i.id);
|
|
372
|
-
if (o.length === 0) return;
|
|
373
|
-
X(o[Math.min(a, o.length - 1)].id);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
function X(e) {
|
|
377
|
-
let t = j.value?.querySelectorAll("[data-item-id]");
|
|
378
|
-
if (t) {
|
|
379
|
-
for (let n of t) if (n.dataset.itemId === e) {
|
|
380
|
-
n.focus();
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
async function Xe(e) {
|
|
386
|
-
await d(), await d(), X(e);
|
|
387
|
-
}
|
|
388
|
-
function Ze(e) {
|
|
389
|
-
Y.value?.item.id === e.id && (Y.value = null);
|
|
390
|
-
}
|
|
391
|
-
let Z = m(null), Q = m(null);
|
|
392
|
-
function Qe(e, t) {
|
|
393
|
-
if (!b.reorderableColumns) {
|
|
394
|
-
t.preventDefault();
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
Z.value = e, Q.value = e;
|
|
398
|
-
}
|
|
399
|
-
function $e(e, t) {
|
|
400
|
-
if (Z.value === null) return;
|
|
401
|
-
t.preventDefault();
|
|
402
|
-
let n = t.currentTarget.getBoundingClientRect();
|
|
403
|
-
Q.value = t.clientX < n.left + n.width / 2 ? e : e + 1;
|
|
404
|
-
}
|
|
405
|
-
function et(e) {
|
|
406
|
-
let t = Z.value, n = Q.value;
|
|
407
|
-
if ($(), t === null || n === null) return;
|
|
408
|
-
e.preventDefault();
|
|
409
|
-
let r = n > t ? n - 1 : n;
|
|
410
|
-
r !== t && x("column-move", {
|
|
411
|
-
columnId: b.columns[t].id,
|
|
412
|
-
toIndex: r
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
function $() {
|
|
416
|
-
Z.value = null, Q.value = null;
|
|
417
|
-
}
|
|
418
|
-
return (e, t) => (p(), o("div", ee({
|
|
419
|
-
ref_key: "boardRef",
|
|
420
|
-
ref: j,
|
|
421
|
-
class: "nb-board"
|
|
422
|
-
}, v(Ce)), [
|
|
423
|
-
s("div", {
|
|
424
|
-
class: "nb-board__grid",
|
|
425
|
-
style: te(De.value)
|
|
426
|
-
}, [(p(!0), o(r, null, h(u.columns, (t, n) => (p(), o("div", {
|
|
427
|
-
key: t.id,
|
|
428
|
-
class: f(["nb-board__col-header", {
|
|
429
|
-
"nb-board__col-header--reorderable": u.reorderableColumns,
|
|
430
|
-
"nb-board__col-header--dragging": Z.value === n,
|
|
431
|
-
"nb-board__col-header--drop-before": Q.value === n,
|
|
432
|
-
"nb-board__col-header--drop-after": Q.value === n + 1 && n === u.columns.length - 1
|
|
433
|
-
}]),
|
|
434
|
-
style: te(t.color ? { borderTopColor: t.color } : void 0),
|
|
435
|
-
draggable: u.reorderableColumns || void 0,
|
|
436
|
-
onDragstart: (e) => Qe(n, e),
|
|
437
|
-
onDragover: (e) => $e(n, e),
|
|
438
|
-
onDrop: et,
|
|
439
|
-
onDragend: $
|
|
440
|
-
}, [g(e.$slots, "column-header", {
|
|
441
|
-
column: t,
|
|
442
|
-
count: F(t.id)
|
|
443
|
-
}, () => [s("span", ie, _(t.label), 1), s("span", ae, _(F(t.id)), 1)])], 46, re))), 128)), (p(!0), o(r, null, h(M.value, (t) => (p(), o(r, { key: P(t) }, [t ? (p(), o("div", {
|
|
444
|
-
key: 0,
|
|
445
|
-
class: "nb-board__lane-header",
|
|
446
|
-
onClick: (e) => ke(t.id)
|
|
447
|
-
}, [
|
|
448
|
-
s("button", {
|
|
449
|
-
class: "nb-board__collapse-btn",
|
|
450
|
-
"aria-label": B(t.id) ? "Expand" : "Collapse"
|
|
451
|
-
}, _(B(t.id) ? "▶" : "▼"), 9, se),
|
|
452
|
-
g(e.$slots, "lane-header", { lane: t }, () => [s("span", ce, _(t.label), 1)]),
|
|
453
|
-
s("span", le, _(Oe(t.id)), 1)
|
|
454
|
-
], 8, oe)) : a("", !0), !t || !B(t.id) ? (p(!0), o(r, { key: 1 }, h(u.columns, (n) => (p(), o("div", {
|
|
455
|
-
key: P(t) + "-" + n.id,
|
|
456
|
-
class: f(["nb-board__cell", { "nb-board__cell--drag-over": Le(t, n.id) }]),
|
|
457
|
-
onDragover: y((e) => Pe(t, n.id), ["prevent"]),
|
|
458
|
-
onDragleave: Fe,
|
|
459
|
-
onDrop: y((e) => Be(t, n.id), ["prevent"])
|
|
460
|
-
}, [s("div", {
|
|
461
|
-
class: "nb-board__cell-items",
|
|
462
|
-
role: "list",
|
|
463
|
-
"aria-label": Ae(t, n)
|
|
464
|
-
}, [(p(!0), o(r, null, h(L(N(t), n.id), (r, i) => (p(), o("div", {
|
|
465
|
-
key: r.id,
|
|
466
|
-
class: f(["nb-board__card", {
|
|
467
|
-
"nb-board__card--lifted": Y.value?.item.id === r.id,
|
|
468
|
-
"nb-board__card--selected": w(r.id),
|
|
469
|
-
"nb-board__card--carried": !!G.value?.group && w(r.id),
|
|
470
|
-
"nb-board__card--drop-before": J(t, n.id) === i,
|
|
471
|
-
"nb-board__card--drop-after": ze(t, n.id, i),
|
|
472
|
-
"nb-board__card--drop-into": Re(t, n.id, r)
|
|
473
|
-
}]),
|
|
474
|
-
role: "listitem",
|
|
475
|
-
tabindex: "0",
|
|
476
|
-
"data-item-id": r.id,
|
|
477
|
-
"aria-selected": u.selectable ? w(r.id) : void 0,
|
|
478
|
-
"aria-label": je(r, t, n),
|
|
479
|
-
"aria-describedby": `${v(A)}-hint`,
|
|
480
|
-
draggable: "true",
|
|
481
|
-
onDragstart: (e) => Me(r, t, n.id),
|
|
482
|
-
onDragover: y((e) => Ne(e, t, n.id, i, r), ["prevent", "stop"]),
|
|
483
|
-
onDragend: Ie,
|
|
484
|
-
onKeydown: (e) => Ve(e, r, t, n.id),
|
|
485
|
-
onClickCapture: (e) => Ee(e, r, t, n.id),
|
|
486
|
-
onBlur: (e) => Ze(r)
|
|
487
|
-
}, [g(e.$slots, "card", {
|
|
488
|
-
item: r,
|
|
489
|
-
column: n,
|
|
490
|
-
lane: t ?? void 0
|
|
491
|
-
})], 42, fe))), 128)), L(N(t), n.id).length === 0 ? (p(), o("div", pe)) : a("", !0)], 8, de), e.$slots["column-footer"] ? (p(), o("div", me, [g(e.$slots, "column-footer", {
|
|
492
|
-
column: n,
|
|
493
|
-
lane: t ?? void 0
|
|
494
|
-
})])) : a("", !0)], 42, ue))), 128)) : a("", !0)], 64))), 128))], 4),
|
|
495
|
-
u.selectable && S.value.length > 0 && e.$slots["batch-actions"] ? (p(), o("div", he, [
|
|
496
|
-
s("span", ge, _(S.value.length) + " selected ", 1),
|
|
497
|
-
s("div", _e, [g(e.$slots, "batch-actions", {
|
|
498
|
-
selected: S.value,
|
|
499
|
-
clear: E
|
|
500
|
-
})]),
|
|
501
|
-
l(n, {
|
|
502
|
-
class: "nb-board__batch-cancel",
|
|
503
|
-
variant: "ghost",
|
|
504
|
-
size: "sm",
|
|
505
|
-
onClick: E
|
|
506
|
-
}, {
|
|
507
|
-
default: ne(() => [...t[0] ||= [c(" Clear selection ", -1)]]),
|
|
508
|
-
_: 1
|
|
509
|
-
})
|
|
510
|
-
])) : a("", !0),
|
|
511
|
-
s("span", {
|
|
512
|
-
id: `${v(A)}-hint`,
|
|
513
|
-
class: "nb-board__sr"
|
|
514
|
-
}, [
|
|
515
|
-
t[1] ||= c(" Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.", -1),
|
|
516
|
-
u.nestable ? (p(), o(r, { key: 0 }, [c(" Shift with Space or Enter drops onto the card below instead, putting this one inside it.")], 64)) : a("", !0),
|
|
517
|
-
u.selectable ? (p(), o(r, { key: 1 }, [c(" X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.")], 64)) : a("", !0)
|
|
518
|
-
], 8, ve),
|
|
519
|
-
s("span", ye, _(U.value), 1)
|
|
520
|
-
], 16));
|
|
521
|
-
}
|
|
522
|
-
});
|
|
523
|
-
//#endregion
|
|
524
|
-
export { Se as t };
|
package/dist/Board-Cp8XfgZm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useStableId.composable.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`),n=require(`./Button-BZn2lmMA.cjs`);let r=require(`vue`);var i=[`draggable`,`onDragstart`,`onDragover`],a={class:`nb-board__col-title`},o={class:`nb-board__col-count`},s=[`onClick`],c=[`aria-label`],l={class:`nb-board__lane-label`},ee={class:`nb-board__lane-count`},u=[`onDragover`,`onDrop`],d=[`aria-label`],te=[`data-item-id`,`aria-selected`,`aria-label`,`aria-describedby`,`onDragstart`,`onDragover`,`onKeydown`,`onClickCapture`,`onBlur`],ne={key:0,class:`nb-board__empty-cell`,"aria-hidden":`true`},re={key:0,class:`nb-board__cell-footer`},ie={key:0,class:`nb-board__batch`,role:`region`,"aria-label":`Actions for the selected cards`},ae={class:`nb-board__batch-count`},oe={class:`nb-board__batch-actions`},se=[`id`],ce={class:`nb-board__sr`,"aria-live":`assertive`},le=.5,ue=44,f=(0,r.defineComponent)({__name:`Board`,props:{columns:{},items:{},lanes:{default:void 0},reorderableColumns:{type:Boolean,default:!1},nestable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},selected:{default:void 0}},emits:[`move`,`nest`,`column-move`,`move-many`,`update:selected`],setup(f,{emit:p}){let m=f,{layerProps:h}=t.useSurfaceLayer(),g=p,_=(0,r.computed)(()=>m.selectable?m.selected??[]:[]),de=(0,r.computed)(()=>new Set(_.value)),v=null;function y(e){return de.value.has(e)}function b(e){g(`update:selected`,e),z.value=e.length===0?`Selection cleared`:`${e.length} ${e.length===1?`card`:`cards`} selected`}function x(){v=null,b([])}function S(e){v=e,b(y(e)?_.value.filter(t=>t!==e):[..._.value,e])}function fe(e,t,n){let r=M(t,n),i=v?r.findIndex(e=>e.id===v):-1,a=r.findIndex(t=>t.id===e.id);if(i===-1||a===-1)return S(e.id);let o=r.slice(Math.min(i,a),Math.max(i,a)+1).map(e=>e.id);b([...new Set([..._.value,...o])])}function pe(e,t,n,r){m.selectable&&(e.metaKey||e.ctrlKey||e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),e.shiftKey?fe(t,O(n),r):S(t.id))}function C(){let e=[];for(let t of m.columns)for(let n of D.value)for(let r of M(O(n),t.id))y(r.id)&&!e.includes(r.id)&&e.push(r.id);return e}function w(e,t,n,r,i){let a=new Set(e),o=M(n,r).filter(e=>e.id!==t),s=null;for(let e=Math.min(i,o.length)-1;e>=0;e--)if(!a.has(o[e].id)){s=o[e].id;break}let c=null;for(let e=Math.max(i,0);e<o.length;e++)if(!a.has(o[e].id)){c=o[e].id;break}g(`move-many`,{itemIds:e,toColumnId:r,...m.lanes?{toLaneId:n}:{},beforeItemId:s,afterItemId:c});let l=N(r);z.value=`${e.length} cards moved to ${l?.label??r}`}let T=e.useStableId({}),E=(0,r.ref)(null),me=(0,r.computed)(()=>({gridTemplateColumns:`repeat(${m.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))`})),D=(0,r.computed)(()=>m.lanes&&m.lanes.length>0?m.lanes:[null]);function O(e){return e?e.id??null:null}function k(e){return e?j(e.id):`__flat__`}function A(e){return m.items.filter(t=>t.columnId===e).length}function j(e){return e??`__none__`}function he(e){return m.lanes?m.items.filter(t=>(t.laneId??null)===e).length:0}function M(e,t){return!m.lanes||m.lanes.length===0?m.items.filter(e=>e.columnId===t):m.items.filter(n=>n.columnId===t&&(n.laneId??null)===e)}function N(e){return m.columns.find(t=>t.id===e)}let P=(0,r.ref)(new Set);function F(e){let t=j(e),n=new Set(P.value);n.has(t)?n.delete(t):n.add(t),P.value=n}function I(e){return P.value.has(j(e))}function L(e){let t=e.label??e.name??e.title;return typeof t==`string`?t:`Item ${e.id}`}function R(e,t){return e?`${t.label}, ${e.label}`:t.label}function ge(e,t){return R(e,t)}function _e(e,t,n){let r=M(O(t),n.id),i=r.findIndex(t=>t.id===e.id),a=`${L(e)}, ${i+1} of ${r.length} in ${R(t,n)}`;return G.value?.item.id===e.id?`${a}, picked up`:a}let z=(0,r.ref)(``);function B(e,t,n,r){let i=M(t,n).filter(t=>t.id!==e.item.id),a=Math.max(0,Math.min(r,i.length));return e.fromColumnId===n&&e.fromLaneId===t&&a===M(t,n).findIndex(t=>t.id===e.item.id)?!1:(g(`move`,{itemId:e.item.id,fromColumnId:e.fromColumnId,toColumnId:n,fromLaneId:e.fromLaneId,toLaneId:t,toIndex:a,beforeItemId:i[a-1]?.id??null,afterItemId:i[a]?.id??null}),!0)}let V=(0,r.ref)(null),H=(0,r.ref)(null),U=(0,r.ref)(null);function ve(e,t,n){G.value=null;let r=y(e.id)&&_.value.length>1?C():void 0;V.value={item:e,fromLaneId:O(t),fromColumnId:n,group:r},r&&(z.value=`Moving ${r.length} cards`)}function ye(e,t,n,r,i){if(!V.value)return;let a=e.currentTarget.getBoundingClientRect();if(m.nestable&&!V.value.group&&a.height>=ue){let r=(e.clientY-a.top)/a.height,o=(1-le)/2;if(r>o&&r<1-o&&i.id!==V.value.item.id){U.value={laneId:O(t),colId:n,itemId:i.id},H.value=null;return}}U.value=null;let o=e.clientY>=a.top+a.height/2;H.value={laneId:O(t),colId:n,index:r+(o?1:0)}}function be(e,t){if(!V.value)return;let n=O(e);H.value={laneId:n,colId:t,index:M(n,t).length}}function xe(){H.value=null,U.value=null}function Se(){V.value=null,H.value=null,U.value=null}function Ce(e,t){return W(e,t)!==null}function W(e,t){let n=O(e),r=H.value;if(V.value&&r&&r.laneId===n&&r.colId===t)return r.index;let i=G.value;if(i&&i.laneId===n&&i.colId===t){let e=M(n,t).findIndex(e=>e.id===i.item.id);return e!==-1&&e<=i.index?i.index+1:i.index}return null}function we(e,t,n){let r=U.value;return r!==null&&r.laneId===O(e)&&r.colId===t&&r.itemId===n.id}function Te(e,t,n){return n===M(O(e),t).length-1&&W(e,t)===n+1}function Ee(e,t){if(Z.value!==null)return;let n=H.value,r=U.value;H.value=null,U.value=null;let i=V.value;if(V.value=null,!i)return;if(r){g(`nest`,{itemId:i.item.id,ontoItemId:r.itemId,fromColumnId:i.fromColumnId,...m.lanes?{fromLaneId:i.fromLaneId}:{}}),z.value=`${L(i.item)} dropped onto ${L(m.items.find(e=>e.id===r.itemId)??i.item)}`;return}let a=O(e),o=M(a,t),s=n&&n.laneId===a&&n.colId===t?n.index:o.length,c=o.findIndex(e=>e.id===i.item.id),l=c!==-1&&c<s?s-1:s;if(i.group){w(i.group,i.item.id,a,t,l);return}B(i,a,t,l)}let G=(0,r.ref)(null);function De(e,t,n,r){let i=O(n);if(m.selectable&&(e.key===`x`||e.key===`X`)&&!G.value){e.preventDefault(),S(t.id);return}if(e.key===`Escape`){if(!G.value){m.selectable&&_.value.length>0&&(e.preventDefault(),x());return}e.preventDefault(),G.value=null,z.value=`Move cancelled`;return}if(e.key===` `||e.key===`Enter`){if(e.preventDefault(),G.value?.item.id!==t.id){Oe(t,i,r);return}if(m.nestable&&e.shiftKey&&q()){J();return}je();return}[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),G.value?.item.id===t.id?Ae(e.key):Me(e.key,t,i,r))}function Oe(e,t,n){G.value={item:e,fromLaneId:t,fromColumnId:n,laneId:t,colId:n,index:M(t,n).findIndex(t=>t.id===e.id)},z.value=`${L(e)} picked up, ${K()}`}function K(){let e=G.value;if(!e)return``;let t=M(e.laneId,e.colId).filter(t=>t.id!==e.item.id),n=N(e.colId),r=m.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;return`position ${e.index+1} of ${t.length+1} in ${i}`}function ke(){return!m.lanes||m.lanes.length===0?[null]:m.lanes.filter(e=>!I(e.id)).map(e=>e.id??null)}function Ae(e){let t=G.value;if(!t)return;let n=M(t.laneId,t.colId).filter(e=>e.id!==t.item.id);if(e===`ArrowUp`||e===`ArrowDown`){let r=e===`ArrowUp`?-1:1,i=t.index+r;if(i>=0&&i<=n.length)t.index=i;else{let e=ke(),n=e.indexOf(t.laneId),i=n+r;if(n===-1||i<0||i>=e.length)return;let a=e[i];t.laneId=a,t.index=r===1?0:M(a,t.colId).filter(e=>e.id!==t.item.id).length}}else{let n=e===`ArrowLeft`?-1:1,r=m.columns.findIndex(e=>e.id===t.colId),i=m.columns[r+n];if(r===-1||!i)return;t.colId=i.id;let a=M(t.laneId,t.colId).filter(e=>e.id!==t.item.id);t.index=Math.min(t.index,a.length)}z.value=`${L(t.item)}, ${K()}`}function q(){let e=G.value;if(!e)return null;let t=M(e.laneId,e.colId).filter(t=>t.id!==e.item.id);return t.length===0?null:t[Math.min(e.index,t.length-1)]??null}function J(){let e=G.value,t=q();!e||!t||(G.value=null,g(`nest`,{itemId:e.item.id,ontoItemId:t.id,fromColumnId:e.fromColumnId,...m.lanes?{fromLaneId:e.fromLaneId}:{}}),z.value=`${L(e.item)} dropped onto ${L(t)}`)}function je(){let e=G.value;if(!e)return;if(G.value=null,y(e.item.id)&&_.value.length>1){w(C(),e.item.id,e.laneId,e.colId,e.index),X(e.item.id);return}let t=B({item:e.item,fromLaneId:e.fromLaneId,fromColumnId:e.fromColumnId},e.laneId,e.colId,e.index),n=N(e.colId),r=m.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;z.value=t?`${L(e.item)} dropped, position ${e.index+1} in ${i}`:`${L(e.item)} dropped`,X(e.item.id)}function Me(e,t,n,r){let i=M(n,r),a=i.findIndex(e=>e.id===t.id);if(e===`ArrowUp`||e===`ArrowDown`){let t=a+(e===`ArrowDown`?1:-1);t>=0&&t<i.length&&Y(i[t].id)}else{let t=m.columns.findIndex(e=>e.id===r),i=m.columns[t+(e===`ArrowRight`?1:-1)];if(t===-1||!i)return;let o=M(n,i.id);if(o.length===0)return;Y(o[Math.min(a,o.length-1)].id)}}function Y(e){let t=E.value?.querySelectorAll(`[data-item-id]`);if(t){for(let n of t)if(n.dataset.itemId===e){n.focus();return}}}async function X(e){await(0,r.nextTick)(),await(0,r.nextTick)(),Y(e)}function Ne(e){G.value?.item.id===e.id&&(G.value=null)}let Z=(0,r.ref)(null),Q=(0,r.ref)(null);function Pe(e,t){if(!m.reorderableColumns){t.preventDefault();return}Z.value=e,Q.value=e}function Fe(e,t){if(Z.value===null)return;t.preventDefault();let n=t.currentTarget.getBoundingClientRect();Q.value=t.clientX<n.left+n.width/2?e:e+1}function Ie(e){let t=Z.value,n=Q.value;if($(),t===null||n===null)return;e.preventDefault();let r=n>t?n-1:n;r!==t&&g(`column-move`,{columnId:m.columns[t].id,toIndex:r})}function $(){Z.value=null,Q.value=null}return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,(0,r.mergeProps)({ref_key:`boardRef`,ref:E,class:`nb-board`},(0,r.unref)(h)),[(0,r.createElementVNode)(`div`,{class:`nb-board__grid`,style:(0,r.normalizeStyle)(me.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.columns,(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:t.id,class:(0,r.normalizeClass)([`nb-board__col-header`,{"nb-board__col-header--reorderable":f.reorderableColumns,"nb-board__col-header--dragging":Z.value===n,"nb-board__col-header--drop-before":Q.value===n,"nb-board__col-header--drop-after":Q.value===n+1&&n===f.columns.length-1}]),style:(0,r.normalizeStyle)(t.color?{borderTopColor:t.color}:void 0),draggable:f.reorderableColumns||void 0,onDragstart:e=>Pe(n,e),onDragover:e=>Fe(n,e),onDrop:Ie,onDragend:$},[(0,r.renderSlot)(e.$slots,`column-header`,{column:t,count:A(t.id)},()=>[(0,r.createElementVNode)(`span`,a,(0,r.toDisplayString)(t.label),1),(0,r.createElementVNode)(`span`,o,(0,r.toDisplayString)(A(t.id)),1)])],46,i))),128)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(D.value,t=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:k(t)},[t?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:`nb-board__lane-header`,onClick:e=>F(t.id)},[(0,r.createElementVNode)(`button`,{class:`nb-board__collapse-btn`,"aria-label":I(t.id)?`Expand`:`Collapse`},(0,r.toDisplayString)(I(t.id)?`▶`:`▼`),9,c),(0,r.renderSlot)(e.$slots,`lane-header`,{lane:t},()=>[(0,r.createElementVNode)(`span`,l,(0,r.toDisplayString)(t.label),1)]),(0,r.createElementVNode)(`span`,ee,(0,r.toDisplayString)(he(t.id)),1)],8,s)):(0,r.createCommentVNode)(``,!0),!t||!I(t.id)?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(f.columns,n=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:k(t)+`-`+n.id,class:(0,r.normalizeClass)([`nb-board__cell`,{"nb-board__cell--drag-over":Ce(t,n.id)}]),onDragover:(0,r.withModifiers)(e=>be(t,n.id),[`prevent`]),onDragleave:xe,onDrop:(0,r.withModifiers)(e=>Ee(t,n.id),[`prevent`])},[(0,r.createElementVNode)(`div`,{class:`nb-board__cell-items`,role:`list`,"aria-label":ge(t,n)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(M(O(t),n.id),(i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:i.id,class:(0,r.normalizeClass)([`nb-board__card`,{"nb-board__card--lifted":G.value?.item.id===i.id,"nb-board__card--selected":y(i.id),"nb-board__card--carried":!!V.value?.group&&y(i.id),"nb-board__card--drop-before":W(t,n.id)===a,"nb-board__card--drop-after":Te(t,n.id,a),"nb-board__card--drop-into":we(t,n.id,i)}]),role:`listitem`,tabindex:`0`,"data-item-id":i.id,"aria-selected":f.selectable?y(i.id):void 0,"aria-label":_e(i,t,n),"aria-describedby":`${(0,r.unref)(T)}-hint`,draggable:`true`,onDragstart:e=>ve(i,t,n.id),onDragover:(0,r.withModifiers)(e=>ye(e,t,n.id,a,i),[`prevent`,`stop`]),onDragend:Se,onKeydown:e=>De(e,i,t,n.id),onClickCapture:e=>pe(e,i,t,n.id),onBlur:e=>Ne(i)},[(0,r.renderSlot)(e.$slots,`card`,{item:i,column:n,lane:t??void 0})],42,te))),128)),M(O(t),n.id).length===0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,ne)):(0,r.createCommentVNode)(``,!0)],8,d),e.$slots[`column-footer`]?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,re,[(0,r.renderSlot)(e.$slots,`column-footer`,{column:n,lane:t??void 0})])):(0,r.createCommentVNode)(``,!0)],42,u))),128)):(0,r.createCommentVNode)(``,!0)],64))),128))],4),f.selectable&&_.value.length>0&&e.$slots[`batch-actions`]?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,ie,[(0,r.createElementVNode)(`span`,ae,(0,r.toDisplayString)(_.value.length)+` selected `,1),(0,r.createElementVNode)(`div`,oe,[(0,r.renderSlot)(e.$slots,`batch-actions`,{selected:_.value,clear:x})]),(0,r.createVNode)(n.t,{class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,onClick:x},{default:(0,r.withCtx)(()=>[...t[0]||=[(0,r.createTextVNode)(` Clear selection `,-1)]]),_:1})])):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`span`,{id:`${(0,r.unref)(T)}-hint`,class:`nb-board__sr`},[t[1]||=(0,r.createTextVNode)(` Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.`,-1),f.nestable?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)(` Shift with Space or Enter drops onto the card below instead, putting this one inside it.`)],64)):(0,r.createCommentVNode)(``,!0),f.selectable?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)(` X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.`)],64)):(0,r.createCommentVNode)(``,!0)],8,se),(0,r.createElementVNode)(`span`,ce,(0,r.toDisplayString)(z.value),1)],16))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { Comment as n, Fragment as r, Text as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, defineComponent as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, useSlots as m } from "vue";
|
|
4
|
-
import { regular as h } from "@nubisco/ui/icons/caret-right";
|
|
5
|
-
//#region src/components/Breadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var g = {
|
|
7
|
-
class: "nb-breadcrumbs",
|
|
8
|
-
"aria-label": "breadcrumb"
|
|
9
|
-
}, _ = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "nb-breadcrumbs__brand"
|
|
12
|
-
}, v = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "nb-breadcrumbs__title"
|
|
15
|
-
}, y = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "nb-breadcrumbs__subtitle"
|
|
18
|
-
}, b = {
|
|
19
|
-
key: 2,
|
|
20
|
-
class: "nb-breadcrumbs__crumbs"
|
|
21
|
-
}, x = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
22
|
-
__name: "Breadcrumbs",
|
|
23
|
-
props: {
|
|
24
|
-
title: {},
|
|
25
|
-
subtitle: {}
|
|
26
|
-
},
|
|
27
|
-
setup(e) {
|
|
28
|
-
let l = m();
|
|
29
|
-
function x(e) {
|
|
30
|
-
return e.some((e) => e.type === n ? !1 : e.type === i ? String(e.children ?? "").trim() !== "" : e.type === r ? x(e.children ?? []) : !0);
|
|
31
|
-
}
|
|
32
|
-
let S = a(() => x(l.default?.() ?? []));
|
|
33
|
-
return (n, r) => (u(), c("nav", g, [
|
|
34
|
-
e.title || e.subtitle ? (u(), c("span", _, [e.title ? (u(), c("span", v, f(e.title), 1)) : s("", !0), e.subtitle ? (u(), c("span", y, f(e.subtitle), 1)) : s("", !0)])) : s("", !0),
|
|
35
|
-
(e.title || e.subtitle) && S.value ? (u(), o(t, {
|
|
36
|
-
key: 1,
|
|
37
|
-
name: p(h),
|
|
38
|
-
size: "sm",
|
|
39
|
-
class: "nb-breadcrumbs__sep"
|
|
40
|
-
}, null, 8, ["name"])) : s("", !0),
|
|
41
|
-
S.value ? (u(), c("span", b, [d(n.$slots, "default", {}, void 0, !0)])) : s("", !0)
|
|
42
|
-
]));
|
|
43
|
-
}
|
|
44
|
-
}), [["__scopeId", "data-v-064c6984"]]);
|
|
45
|
-
//#endregion
|
|
46
|
-
export { x as t };
|