@nubisco/ui 5.18.0 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccordionItem-Cg8wmypl.js → AccordionItem-BrpJObcb.js} +2 -2
- package/dist/{AccordionItem-CCndN0ln.cjs → AccordionItem-DVwcaU3f.cjs} +1 -1
- package/dist/ActionGroup-0u17QzT8.js +170 -0
- package/dist/ActionGroup-CMuposow.cjs +1 -0
- package/dist/{AiLabel-BxCWEOn-.js → AiLabel-BFrehX_F.js} +1 -1
- package/dist/{AiLabel-D4gkbAEC.cjs → AiLabel-kmL1-Hdo.cjs} +1 -1
- package/dist/{BarChart-DUy6vE_i.js → BarChart-DTStA9jd.js} +4 -4
- package/dist/{BarChart-B3B7wH20.cjs → BarChart-Dvrl4xeX.cjs} +1 -1
- package/dist/{Blueprint-DzzoerbM.js → Blueprint-CB5a7H5o.js} +2 -2
- package/dist/{Blueprint-CnXyZkSE.cjs → Blueprint-DIrWXKml.cjs} +1 -1
- package/dist/{BlueprintCard-2Q1zYWcN.js → BlueprintCard-BmuGjOCn.js} +1 -1
- package/dist/{BlueprintCard-D3Rr5cKO.cjs → BlueprintCard-DhnoClRB.cjs} +1 -1
- package/dist/{BlueprintControls-CuOAdppD.js → BlueprintControls-C0yhBzYT.js} +1 -1
- package/dist/{BlueprintControls-LCIgk-cb.cjs → BlueprintControls-Qtd2vep2.cjs} +1 -1
- package/dist/Board-CDrukIty.js +553 -0
- package/dist/Board-D1BkK3J5.cjs +1 -0
- package/dist/Breadcrumbs-B8eAWAvg.js +48 -0
- package/dist/Breadcrumbs-cTxSMgeW.cjs +1 -0
- package/dist/{Button-BZn2lmMA.cjs → Button-C0UUTgEB.cjs} +1 -1
- package/dist/{Button-BAfC7ySK.js → Button-IcCXOoCT.js} +1 -1
- package/dist/{Checkbox-BkRL6Ops.js → Checkbox-CXlovpPs.js} +2 -2
- package/dist/{Checkbox-D8Curaxc.cjs → Checkbox-CZVNZ2pn.cjs} +1 -1
- package/dist/{CheckboxGroup-Hu-wWRto.js → CheckboxGroup-AQ6XgVPU.js} +3 -3
- package/dist/{CheckboxGroup-fEs9Ye8M.cjs → CheckboxGroup-BuvjRAeC.cjs} +1 -1
- package/dist/{ColorStrip-Doh0adti.cjs → ColorStrip-D4vNVSeW.cjs} +1 -1
- package/dist/{ColorStrip-CcMzeYOw.js → ColorStrip-Dknkw-RX.js} +2 -2
- package/dist/{Confirm-Br9VOB2-.cjs → Confirm-DCkG5bUZ.cjs} +1 -1
- package/dist/{Confirm-DztLfQzB.js → Confirm-OMhu2Fuz.js} +8 -8
- package/dist/DataTable-CWMlmjMi.cjs +1 -0
- package/dist/DataTable-DaNZAixf.js +389 -0
- package/dist/DatePicker-BgMtkY76.cjs +1 -0
- package/dist/DatePicker-MDaQ2l8I.js +715 -0
- package/dist/{FileUploader-OJJIlvmH.js → FileUploader-DC1nE86P.js} +1 -1
- package/dist/{FileUploader-DPIAWehF.cjs → FileUploader-DehZc0gP.cjs} +1 -1
- package/dist/FloatingToolbar-J9ucYTsb.js +140 -0
- package/dist/FloatingToolbar-vWo7YmH3.cjs +1 -0
- package/dist/{Form-j4QMRkL5.js → Form-DJ1Hhwnm.js} +1 -1
- package/dist/{Form-u6XCVBqX.cjs → Form-WtS-IVIs.cjs} +1 -1
- package/dist/{GanttChart-C6uVsNrq.cjs → GanttChart-BJ_6YCza.cjs} +1 -1
- package/dist/{GanttChart-asYYkfjM.js → GanttChart-CwCH8pby.js} +3 -3
- package/dist/{ImageCropper-Bl8BjRur.cjs → ImageCropper-BfGyTTY5.cjs} +1 -1
- package/dist/{ImageCropper-DBjxzZhN.js → ImageCropper-Ds5Zq1J0.js} +2 -2
- package/dist/InfoHint-D35B8g96.cjs +1 -0
- package/dist/{InfoHint-CK96hjMo.js → InfoHint-ieo2S-YE.js} +41 -29
- package/dist/InlineEdit-9E8-8JQr.cjs +1 -0
- package/dist/{InlineEdit-DssyFZM6.js → InlineEdit-BCHxGdSy.js} +58 -25
- package/dist/{InlineLoading-DXsOmC3w.cjs → InlineLoading-B2L_asnZ.cjs} +1 -1
- package/dist/{InlineLoading-LCwTwjyJ.js → InlineLoading-DQzKEw-L.js} +1 -1
- package/dist/{InterpolationChart-w1GgDSDT.cjs → InterpolationChart-BXS1n0dY.cjs} +1 -1
- package/dist/{InterpolationChart-CdbT0AvE.js → InterpolationChart-CSEYS5aB.js} +3 -3
- package/dist/{LineChart-CmBBttxc.cjs → LineChart-C5bQNxQ-.cjs} +1 -1
- package/dist/{LineChart-BgnDKI8u.js → LineChart-DG_ows6r.js} +4 -4
- package/dist/Menu-BALfMobG.cjs +1 -0
- package/dist/Menu-D-zvh-SA.js +136 -0
- package/dist/{MenuBarItem-H1sFt0Mx.js → MenuBarItem-BDqp9LzY.js} +1 -1
- package/dist/{MenuBarItem-42bSEdWZ.cjs → MenuBarItem-Dmutkr1p.cjs} +1 -1
- package/dist/Modal-BNgLfB88.cjs +1 -0
- package/dist/{Modal-BvZulLj2.js → Modal-C97dRTiP.js} +35 -34
- package/dist/NotificationCenter-BpUiKPsp.cjs +1 -0
- package/dist/NotificationCenter-Br-YtY5w.js +584 -0
- package/dist/{NumberInput-DsjKITeI.cjs → NumberInput-1taaS5G3.cjs} +1 -1
- package/dist/{NumberInput-CrbTiAkP.js → NumberInput-DWf2LMGN.js} +3 -3
- package/dist/{Pagination-JW-O2kLk.js → Pagination-Br-k9zuG.js} +2 -2
- package/dist/{Pagination-Di4RPomA.cjs → Pagination-CCMhqtoz.cjs} +1 -1
- package/dist/{PieChart-CUckdHre.cjs → PieChart-BABG-xXQ.cjs} +1 -1
- package/dist/{PieChart-CpkjCb1W.js → PieChart-CmvfqpXR.js} +3 -3
- package/dist/{ProgressBar-Cn-FnvZR.cjs → ProgressBar-BHKgJ4UK.cjs} +1 -1
- package/dist/{ProgressBar-BF-2nm2N.js → ProgressBar-Blt5BdgQ.js} +2 -2
- package/dist/{Radio-pH924Ch3.js → Radio-DsYitO1Z.js} +3 -3
- package/dist/{Radio-CkFwMQZ-.cjs → Radio-zdXHagRQ.cjs} +1 -1
- package/dist/ReorderList-hHh9XYQY.cjs +1 -0
- package/dist/{ReorderList-DC83oBGi.js → ReorderList-v1aWbXjb.js} +31 -15
- package/dist/{Select-Det8tjo1.cjs → Select-ClkEzw5T.cjs} +1 -1
- package/dist/{Select-dJWuOWN0.js → Select-DIw08nte.js} +3 -3
- package/dist/Shell-CfHe8tIp.js +487 -0
- package/dist/Shell-DrXByQxR.cjs +1 -0
- package/dist/{SidebarCollapseToggle-VOdswrKP.cjs → SidebarCollapseToggle-BOLWB51F.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-pNj344jL.js → SidebarCollapseToggle-IzDpcwPs.js} +2 -2
- package/dist/{Skeleton-3N9uC9k_.js → Skeleton-BLn8a0wV.js} +1 -1
- package/dist/{Skeleton-DEzKdU7W.cjs → Skeleton-lLu_CakO.cjs} +1 -1
- package/dist/{Slider-Clgfp-vI.cjs → Slider-Ca5ru23S.cjs} +1 -1
- package/dist/{Slider-Dxh4sXev.js → Slider-CrhYMw5S.js} +4 -4
- package/dist/{Spinner-DpldXeXq.js → Spinner-C7NYF-Xf.js} +1 -1
- package/dist/{Spinner-Cwlskvjj.cjs → Spinner-UsyGqwVq.cjs} +1 -1
- package/dist/{Stepper-BlRuqNKX.cjs → Stepper-BIWoeqFS.cjs} +1 -1
- package/dist/{Stepper-SLb_qc9m.js → Stepper-CrVuq2Ba.js} +1 -1
- package/dist/{StepperStep-DxQQgCrC.js → StepperStep-CBaZPJV7.js} +4 -4
- package/dist/{StepperStep-DoJ3MUEl.cjs → StepperStep-DCpcJbTJ.cjs} +1 -1
- package/dist/Submenu-BC9j6dvb.cjs +1 -0
- package/dist/Submenu-CnRi1GdL.js +149 -0
- package/dist/{Switch-CI_QKz2n.js → Switch-BiqjLsXd.js} +3 -3
- package/dist/{Switch-BnzV_QMu.cjs → Switch-CA01aJ7b.cjs} +1 -1
- package/dist/{TableOfContents-C6Qnq6aS.cjs → TableOfContents-DCfZ4DYi.cjs} +1 -1
- package/dist/{TableOfContents-DwnnMxv5.js → TableOfContents-EYrBCeci.js} +1 -1
- package/dist/Tabs-CrrG1hvh.cjs +1 -0
- package/dist/Tabs-D3pdOieX.js +180 -0
- package/dist/{TextInput--u9htMqc.cjs → TextInput-BdZPqTzI.cjs} +2 -2
- package/dist/{TextInput-C_i6Miob.js → TextInput-KQGVZCcT.js} +4 -4
- package/dist/{Toaster-sBQX6bee.js → Toaster-B4ce6OBe.js} +1 -1
- package/dist/{Toaster-noCUOlwh.cjs → Toaster-CubmjJ_C.cjs} +1 -1
- package/dist/{Tree-CR_288A-.cjs → Tree-CnaGeX7W.cjs} +1 -1
- package/dist/{Tree-C6rMUOja.js → Tree-E3A0GUIG.js} +1 -1
- package/dist/TreeNode-C2W4uFhP.cjs +1 -0
- package/dist/TreeNode-xv6es6z2.js +176 -0
- package/dist/UserMenu-CVXfSmUQ.cjs +1 -0
- package/dist/UserMenu-E-PhzT3T.js +313 -0
- package/dist/{Walkthrough-vAJctcje.js → Walkthrough-BxwgYRUB.js} +1 -1
- package/dist/{Walkthrough-DRx76ziA.cjs → Walkthrough-Dvyp-4Sr.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +207 -203
- package/dist/component-styles.json +7 -0
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/ActionGroup.cjs +1 -0
- package/dist/components/ActionGroup.d.ts +64 -0
- package/dist/components/ActionGroup.mjs +2 -0
- package/dist/components/ActionGroup.vue.d.ts +24 -0
- package/dist/components/ActionGroup.vue.d.ts.map +1 -0
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.d.ts +8 -0
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Board.vue.d.ts +7 -3
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Breadcrumbs.vue.d.ts +12 -1
- package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +3 -3
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.d.ts +23 -0
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/EmptyState.cjs +1 -1
- package/dist/components/EmptyState.mjs +1 -1
- package/dist/components/Field.cjs +1 -1
- package/dist/components/Field.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Flag.cjs +1 -1
- package/dist/components/Flag.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.d.ts +11 -0
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/FloatingToolbar.vue.d.ts +1 -0
- package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/Grid.cjs +1 -1
- package/dist/components/Grid.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.d.ts +5 -0
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineEdit.vue.d.ts +1 -0
- package/dist/components/InlineEdit.vue.d.ts.map +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/MenuItem.cjs +1 -1
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItem.vue.d.ts +1 -1
- package/dist/components/MenuItem.vue.d.ts.map +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.d.ts +6 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts +2 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
- package/dist/components/NubiscoMark.cjs +1 -1
- package/dist/components/NubiscoMark.mjs +1 -1
- package/dist/components/NubiscoPlatformMark.cjs +1 -1
- package/dist/components/NubiscoPlatformMark.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Radio.vue.d.ts.map +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/ReorderList.vue.d.ts.map +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +14 -1
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Slider.vue.d.ts +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Switch.vue.d.ts.map +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tabs.vue.d.ts.map +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +4 -4
- package/dist/components/TextInput.vue.d.ts.map +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toast.vue.d.ts +1 -1
- package/dist/components/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/TreeNode.vue.d.ts.map +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +1 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +1 -0
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/composables/usePhoneLayout.composable.cjs +1 -0
- package/dist/composables/usePhoneLayout.composable.d.ts +28 -0
- package/dist/composables/usePhoneLayout.composable.d.ts.map +1 -0
- package/dist/composables/usePhoneLayout.composable.mjs +25 -0
- package/dist/composables/useShellLayout.composable.cjs +1 -0
- package/dist/composables/useShellLayout.composable.d.ts +24 -0
- package/dist/composables/useShellLayout.composable.d.ts.map +1 -0
- package/dist/composables/useShellLayout.composable.mjs +14 -0
- package/dist/composables/useVisualViewportVar.composable.cjs +1 -0
- package/dist/composables/useVisualViewportVar.composable.d.ts +36 -0
- package/dist/composables/useVisualViewportVar.composable.d.ts.map +1 -0
- package/dist/composables/useVisualViewportVar.composable.mjs +30 -0
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +113 -110
- package/dist/{main-DgTv5UiQ.js → main-3k7sSIY5.js} +102 -99
- package/dist/main-DmyKNXAy.cjs +4 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/ActionGroup.css +1 -0
- package/dist/styles/Board.css +1 -1
- package/dist/styles/Breadcrumbs.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Checkbox.css +1 -1
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/InlineEdit.css +1 -1
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/Radio.css +1 -1
- package/dist/styles/ReorderList.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/Switch.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/TreeNode.css +1 -1
- package/dist/styles/UserMenu.css +1 -1
- package/dist/ui.css +26 -25
- package/package.json +1 -1
- package/src/styles/logic/_touch.scss +31 -0
- package/src/styles/logic/index.scss +1 -0
- package/src/styles/variables/_breakpoints.scss +36 -0
- package/dist/Board-6D49Yld8.js +0 -524
- package/dist/Board-Cp8XfgZm.cjs +0 -1
- package/dist/Breadcrumbs-BXsbR60g.js +0 -46
- package/dist/Breadcrumbs-CPucjD0z.cjs +0 -1
- package/dist/DataTable-8VaU0T7V.js +0 -358
- package/dist/DataTable-Mq7v4Dyk.cjs +0 -1
- package/dist/DatePicker-Cgnm0ku3.js +0 -704
- package/dist/DatePicker-DytDcACW.cjs +0 -1
- package/dist/FloatingToolbar-DpBbWZL6.cjs +0 -1
- package/dist/FloatingToolbar-_loB4pae.js +0 -134
- package/dist/InfoHint-Cs9-C043.cjs +0 -1
- package/dist/InlineEdit-CR9vOw3i.cjs +0 -1
- package/dist/Menu-CsA8dtMR.js +0 -128
- package/dist/Menu-Xt1MCf-q.cjs +0 -1
- package/dist/Modal-Xa9TIGNi.cjs +0 -1
- package/dist/NotificationCenter-B12PMiat.cjs +0 -1
- package/dist/NotificationCenter-B2kJXtA9.js +0 -569
- package/dist/ReorderList-CigXh_u8.cjs +0 -1
- package/dist/Shell-BzAv4AWb.cjs +0 -1
- package/dist/Shell-COpscGYO.js +0 -448
- package/dist/Submenu-QgPVi2bN.cjs +0 -1
- package/dist/Submenu-SQTJc81U.js +0 -148
- package/dist/Tabs-B5crovQe.cjs +0 -1
- package/dist/Tabs-DRrq4YCX.js +0 -149
- package/dist/TreeNode-CXaEp3-m.js +0 -175
- package/dist/TreeNode-kgKGox1Y.cjs +0 -1
- package/dist/UserMenu-C65Ky9ov.cjs +0 -1
- package/dist/UserMenu-ClcDEyTu.js +0 -301
- package/dist/main-BNXD4cwz.cjs +0 -4
- /package/dist/{Avatar-uYRUtK1R.js → Avatar-B8JS0B-W.js} +0 -0
- /package/dist/{Avatar-CLL3i8dn.cjs → Avatar-C-yA5Rqn.cjs} +0 -0
- /package/dist/{Badge-wDtZdOfk.js → Badge-D3oJVwDo.js} +0 -0
- /package/dist/{Badge-ouVFB318.cjs → Badge-Dkm7PBJ8.cjs} +0 -0
- /package/dist/{Banner-DKMPZuXR.js → Banner-C2DFPW-D.js} +0 -0
- /package/dist/{Banner-CtaMbfyG.cjs → Banner-DXfzpyxc.cjs} +0 -0
- /package/dist/{Blueprint.context-DQAE9pH9.cjs → Blueprint.context-CNt0_OyK.cjs} +0 -0
- /package/dist/{Blueprint.context-C51gyX3c.js → Blueprint.context-Cp__sufg.js} +0 -0
- /package/dist/{BlueprintBackground-CCuLvvq5.cjs → BlueprintBackground-CRbAZfZP.cjs} +0 -0
- /package/dist/{BlueprintBackground-DJhMflIN.js → BlueprintBackground-DqRpS-jP.js} +0 -0
- /package/dist/{BlueprintMinimap-C4hKP0wV.cjs → BlueprintMinimap-Bk6V5xcq.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CUNeYFVd.js → BlueprintMinimap-KRlkpH14.js} +0 -0
- /package/dist/{BottomPanel-BkD7euB4.js → BottomPanel-Bt4k2PJn.js} +0 -0
- /package/dist/{BottomPanel-DvS5Q8c8.cjs → BottomPanel-C1mT0_I0.cjs} +0 -0
- /package/dist/{Calendar-D3ExPJ2t.cjs → Calendar-CI6TG85W.cjs} +0 -0
- /package/dist/{Calendar-DCoZLEcA.js → Calendar-CV-B4qeT.js} +0 -0
- /package/dist/{Card-ChgbYLJP.js → Card-BqIF-svL.js} +0 -0
- /package/dist/{Card-duvlUAg9.cjs → Card-Xmv6oz9a.cjs} +0 -0
- /package/dist/{CardGrid-Desk_vNP.cjs → CardGrid-BbGLqQmb.cjs} +0 -0
- /package/dist/{CardGrid-ChwQuHLa.js → CardGrid-CphjVIvE.js} +0 -0
- /package/dist/{ChartLegend-B_Y9TNfO.js → ChartLegend-BLTbVV2E.js} +0 -0
- /package/dist/{ChartLegend-k-7LH8-7.cjs → ChartLegend-DGgW0yjG.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-DYPnnK72.cjs → CheckboxGroup.context-CBJMSIiT.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-BssNljp4.js → CheckboxGroup.context-D-C4RVyg.js} +0 -0
- /package/dist/{CommandPalette-dNJMbapr.cjs → CommandPalette-C56CkOfF.cjs} +0 -0
- /package/dist/{CommandPalette-Bv_AnaSi.js → CommandPalette-CubX_Udj.js} +0 -0
- /package/dist/{DefinitionList-C5cqvaLy.cjs → DefinitionList-CSBl-Ogy.cjs} +0 -0
- /package/dist/{DefinitionList-fmy6J4Re.js → DefinitionList-MsqB9Lxo.js} +0 -0
- /package/dist/{DefinitionListItem-CJK5RkIw.js → DefinitionListItem-Ddz2wLyc.js} +0 -0
- /package/dist/{DefinitionListItem-CWqjObrZ.cjs → DefinitionListItem-DnphEEw1.cjs} +0 -0
- /package/dist/{DragHandle-CoJEyCLX.cjs → DragHandle-B_rMbMxm.cjs} +0 -0
- /package/dist/{DragHandle-DDJ1Hsmo.js → DragHandle-D9NnsyJc.js} +0 -0
- /package/dist/{EmptyState-xU5I0laM.js → EmptyState-B6pEj4jk.js} +0 -0
- /package/dist/{EmptyState-u1iAtZUB.cjs → EmptyState-DRbjP890.cjs} +0 -0
- /package/dist/{Field-CfktrvRe.cjs → Field-BZ2cHQlw.cjs} +0 -0
- /package/dist/{Field-D7ImyCWp.js → Field-tNwOATAd.js} +0 -0
- /package/dist/{Flag-k-Aakupd.js → Flag-C4SjTXTD.js} +0 -0
- /package/dist/{Flag-Pk2LFD1t.cjs → Flag-DFg5FTus.cjs} +0 -0
- /package/dist/{Grid-HifmWSUS.cjs → Grid-DiCxrPaO.cjs} +0 -0
- /package/dist/{Grid-DA2jibMM.js → Grid-iox-7xyH.js} +0 -0
- /package/dist/{JsonTree-BLgpxnrT.js → JsonTree-Do_bunoq.js} +0 -0
- /package/dist/{JsonTree-DGzMCcSN.cjs → JsonTree-DygODsNE.cjs} +0 -0
- /package/dist/{Label-BIM21I7D.cjs → Label-CZhQEyoi.cjs} +0 -0
- /package/dist/{Label-CiWiUQ_H.js → Label-DGK5nxFy.js} +0 -0
- /package/dist/{Layer-B47tXgJm.js → Layer-CPWK7fSy.js} +0 -0
- /package/dist/{Layer-Csk6CZPD.cjs → Layer-Dn8JBO94.cjs} +0 -0
- /package/dist/{MenuBar-cNc__THT.cjs → MenuBar-Cmty676_.cjs} +0 -0
- /package/dist/{MenuBar-CdBcgokD.js → MenuBar-DgoQm2e6.js} +0 -0
- /package/dist/{MenuDivider-DEy1DSW1.js → MenuDivider-Clt77czV.js} +0 -0
- /package/dist/{MenuDivider-GuRZ5Dek.cjs → MenuDivider-SpMk4am3.cjs} +0 -0
- /package/dist/{MenuItem-BKjhq9o2.js → MenuItem-BDLX2QWw.js} +0 -0
- /package/dist/{MenuItem-B-Q5sVlO.cjs → MenuItem-ZQcFYe4m.cjs} +0 -0
- /package/dist/{Message-DjxOb8mu.cjs → Message-C44ftsaT.cjs} +0 -0
- /package/dist/{Message-SQvoXiWl.js → Message-CHkTWe0K.js} +0 -0
- /package/dist/{NotificationCenterItem-pWiBpKMc.cjs → NotificationCenterItem-BP0VBTaB.cjs} +0 -0
- /package/dist/{NotificationCenterItem-yqlKqwI2.js → NotificationCenterItem-CjJh9W_a.js} +0 -0
- /package/dist/{NubiscoMark-BN6bzMMG.cjs → NubiscoMark-BumRk78m.cjs} +0 -0
- /package/dist/{NubiscoMark-Bj6eID79.js → NubiscoMark-eVqSGOjI.js} +0 -0
- /package/dist/{NubiscoPlatformMark-C0OeymWK.js → NubiscoPlatformMark-Ch6dCICn.js} +0 -0
- /package/dist/{NubiscoPlatformMark-CE-poDEU.cjs → NubiscoPlatformMark-IX-E5QQ_.cjs} +0 -0
- /package/dist/{Panel-PtasWgYu.cjs → Panel-Cd29GNxw.cjs} +0 -0
- /package/dist/{Panel-MK5IWy0W.js → Panel-Y8gOQKuw.js} +0 -0
- /package/dist/{ShellPanel-f75v2_V2.js → ShellPanel-BA7QLnzE.js} +0 -0
- /package/dist/{ShellPanel-DzMmoG81.cjs → ShellPanel-CC_QJlLu.cjs} +0 -0
- /package/dist/{SidebarBrand-B3hJvpkF.js → SidebarBrand-8yDIYIQZ.js} +0 -0
- /package/dist/{SidebarBrand-CHxEUgzI.cjs → SidebarBrand-u8Oau9DK.cjs} +0 -0
- /package/dist/{SidebarLink-QG3kJ2EO.js → SidebarLink-XVXCHDBm.js} +0 -0
- /package/dist/{SidebarLink-B_5TV_Y_.cjs → SidebarLink-pgjUnWzl.cjs} +0 -0
- /package/dist/{SidebarMenu-CHra29Qu.cjs → SidebarMenu-CA0y5Zle.cjs} +0 -0
- /package/dist/{SidebarMenu-B4oKxxC9.js → SidebarMenu-e0qP4Nh-.js} +0 -0
- /package/dist/{SidebarMenuGroup-D4zw60k-.js → SidebarMenuGroup-CGnMAAUM.js} +0 -0
- /package/dist/{SidebarMenuGroup-D3-id6rV.cjs → SidebarMenuGroup-VQLxJ1CS.cjs} +0 -0
- /package/dist/{SidebarMenuItem-rDAFayv3.cjs → SidebarMenuItem-CqDbzAAk.cjs} +0 -0
- /package/dist/{SidebarMenuItem-DKfynXs8.js → SidebarMenuItem-DwBLBW-N.js} +0 -0
- /package/dist/{Sparkline-C__UzqcW.js → Sparkline-Bbt4vFjI.js} +0 -0
- /package/dist/{Sparkline-hfnHBqr_.cjs → Sparkline-CdLiYBEr.cjs} +0 -0
- /package/dist/{Stepper.context-DtdxFiTP.js → Stepper.context-BgQfa8xl.js} +0 -0
- /package/dist/{Stepper.context-OTxRDrqb.cjs → Stepper.context-DBNE-GYb.cjs} +0 -0
- /package/dist/{Toast-DdjLfZW7.cjs → Toast-XjSCXTx8.cjs} +0 -0
- /package/dist/{Toast-C7ZcSqjz.js → Toast-q9KByfYq.js} +0 -0
- /package/dist/{TreeContext-CN8Jmm3J.js → TreeContext-BN1eHAL6.js} +0 -0
- /package/dist/{TreeContext-CRgX277A.cjs → TreeContext-PgcV87_V.cjs} +0 -0
- /package/dist/{Wireframe-yxCSPLE-.cjs → Wireframe-DDRVqrll.cjs} +0 -0
- /package/dist/{Wireframe-Lb8viOfl.js → Wireframe-ql6EOtd2.js} +0 -0
- /package/dist/{palette-CP7R55wd.cjs → palette-Cy2_8mLH.cjs} +0 -0
- /package/dist/{palette-BVXsOJol.js → palette-StNyj_sM.js} +0 -0
- /package/dist/{pixi-scene-CjZJN5UI.js → pixi-scene-CuO3As43.js} +0 -0
- /package/dist/{pixi-scene-Be5EU7HP.cjs → pixi-scene-DE1dBR9n.cjs} +0 -0
- /package/dist/{scales-DJ_hCmZX.cjs → scales-4WxjhxBm.cjs} +0 -0
- /package/dist/{scales-CsGzsNm7.js → scales-DlFF1BRk.js} +0 -0
- /package/dist/{useChartSize-DGUae61E.cjs → useChartSize-C-BIN0vc.cjs} +0 -0
- /package/dist/{useChartSize-6K6L_Xnm.js → useChartSize-UdZSuP3G.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-TdYpHGvK.js → useLoadingAnnouncer.composable-C7FA-Ui1.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-DeoNGDYL.cjs → useLoadingAnnouncer.composable-DMycMLn-.cjs} +0 -0
- /package/dist/{vue-i18n-CkVGSKx4.js → vue-i18n-B2FDvjI1.js} +0 -0
- /package/dist/{vue-i18n-Bhwom92P.cjs → vue-i18n-D3Ga_miE.cjs} +0 -0
|
@@ -103,8 +103,8 @@ var S = /* @__PURE__ */ y({
|
|
|
103
103
|
let c = Object.entries(n).filter(([e]) => oe.has(e) ? !0 : (N(`prop:${e}`, `"${e}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...oe].join(", ")}.`), !1)).map(([e, t]) => [e, k(e, String(t))]).filter(([, e]) => e !== "").map(([e, t]) => `${e}="${se(t)}"`).join(" "), l = `<${s}${c ? ` ${c}` : ""}>`;
|
|
104
104
|
return w.has(s) ? l : `${l}${o}</${s}>`;
|
|
105
105
|
}, P = (e) => e ? typeof e == "string" ? j(e) : Array.isArray(e) ? de(e) : "" : "", F = /* @__PURE__ */ y({
|
|
106
|
-
default: () =>
|
|
107
|
-
dismissAllTooltips: () =>
|
|
106
|
+
default: () => ct,
|
|
107
|
+
dismissAllTooltips: () => bt
|
|
108
108
|
}), I = (e) => e.status ?? e.flavor ?? "default", L = (e) => e.chipClass ?? e.classExtra, R = /* @__PURE__ */ new Set(), fe = 0, pe = () => `nb-tooltip-${++fe}`, me = 900, he = 4e3, ge = 500, z = 0, B = (e, t) => {
|
|
109
109
|
if (!e) return !1;
|
|
110
110
|
let n = Date.now() - e;
|
|
@@ -115,7 +115,7 @@ var S = /* @__PURE__ */ y({
|
|
|
115
115
|
let e = (e) => {
|
|
116
116
|
if (R.size === 0) return;
|
|
117
117
|
let t = e?.target;
|
|
118
|
-
t instanceof Element && t.closest(".nb-tooltip") ||
|
|
118
|
+
t instanceof Element && t.closest(".nb-tooltip") || yt("dismiss");
|
|
119
119
|
};
|
|
120
120
|
document.addEventListener("pointerdown", () => {
|
|
121
121
|
z = Date.now();
|
|
@@ -155,7 +155,7 @@ var S = /* @__PURE__ */ y({
|
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
if (e.__watchdogMisses__ >= be) {
|
|
158
|
-
|
|
158
|
+
pt(e, "dismiss");
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -194,7 +194,7 @@ var S = /* @__PURE__ */ y({
|
|
|
194
194
|
}
|
|
195
195
|
let n = e.getBoundingClientRect();
|
|
196
196
|
if (!Ee(e, n)) {
|
|
197
|
-
e.__offscreenReported__ || (e.__offscreenReported__ = !0,
|
|
197
|
+
e.__offscreenReported__ || (e.__offscreenReported__ = !0, pt(e, "dismiss"));
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
e.__offscreenReported__ = !1, e.__lastRect__ = G(n), e.__side__ !== "cursor" && Q(e, t, e.__requestedSide__ ?? e.__side__);
|
|
@@ -245,6 +245,9 @@ var S = /* @__PURE__ */ y({
|
|
|
245
245
|
if (!(n instanceof Element) || n === e) return !0;
|
|
246
246
|
let r = n.closest(`[${Re}]`);
|
|
247
247
|
return r === null || r === e;
|
|
248
|
+
}, Be = "button, a[href], [role=\"button\"], [role=\"tab\"], [role=\"menuitem\"], input, select, textarea, label", Ve = (e) => {
|
|
249
|
+
let t = e.closest(Be);
|
|
250
|
+
return !t || t.disabled === !0 ? !1 : t.getAttribute("aria-disabled") !== "true";
|
|
248
251
|
}, X = (e) => {
|
|
249
252
|
if (!e) return "";
|
|
250
253
|
if (typeof e == "string") return e.replace(/<[^>]*>/g, " ").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/\s+/g, " ").trim();
|
|
@@ -254,25 +257,25 @@ var S = /* @__PURE__ */ y({
|
|
|
254
257
|
return X(t.children ?? t.content);
|
|
255
258
|
}
|
|
256
259
|
return "";
|
|
257
|
-
},
|
|
260
|
+
}, He = (e) => [
|
|
258
261
|
X(e.header),
|
|
259
262
|
X(e.body),
|
|
260
263
|
X(e.tip)
|
|
261
|
-
].filter(Boolean).join(". "),
|
|
264
|
+
].filter(Boolean).join(". "), Ue = (e) => {
|
|
262
265
|
if (e.hasAttribute("aria-labelledby") || e.hasAttribute("aria-label") && !e.__ownsAriaLabel__ || e.hasAttribute("title") || (e.textContent ?? "").trim().length > 0) return !0;
|
|
263
266
|
let t = e.querySelector("img[alt]");
|
|
264
267
|
return !!t && (t.getAttribute("alt") ?? "").trim().length > 0;
|
|
265
|
-
},
|
|
268
|
+
}, We = (e, t) => {
|
|
266
269
|
let n = t.aria ?? "auto";
|
|
267
|
-
return n === "auto" ?
|
|
268
|
-
},
|
|
269
|
-
if (!t ||
|
|
270
|
+
return n === "auto" ? Ue(e) ? "description" : "label" : n;
|
|
271
|
+
}, Ge = (e, t) => {
|
|
272
|
+
if (!t || We(e, t) !== "label") {
|
|
270
273
|
e.__ownsAriaLabel__ &&= (e.removeAttribute("aria-label"), !1), e.__ownsRole__ &&= (e.removeAttribute("role"), !1);
|
|
271
274
|
return;
|
|
272
275
|
}
|
|
273
|
-
let n =
|
|
276
|
+
let n = He(t);
|
|
274
277
|
n && (e.setAttribute("aria-label", n), e.__ownsAriaLabel__ = !0, !e.__ownsRole__ && !e.hasAttribute("role") && !e.matches(Le) && (e.setAttribute("role", "img"), e.__ownsRole__ = !0));
|
|
275
|
-
},
|
|
278
|
+
}, Ke = (e, t) => {
|
|
276
279
|
let n = !!t?.focusable;
|
|
277
280
|
if (n && !e.__ownsTabIndex__) {
|
|
278
281
|
if (e.matches(Le) || e.hasAttribute("tabindex")) return;
|
|
@@ -280,43 +283,43 @@ var S = /* @__PURE__ */ y({
|
|
|
280
283
|
return;
|
|
281
284
|
}
|
|
282
285
|
!n && e.__ownsTabIndex__ && (e.removeAttribute("tabindex"), e.__ownsTabIndex__ = !1);
|
|
283
|
-
},
|
|
286
|
+
}, qe = (e, t) => {
|
|
284
287
|
e.__prevDescribedBy__ = e.getAttribute("aria-describedby");
|
|
285
288
|
let n = [e.__prevDescribedBy__, t].filter(Boolean).join(" ");
|
|
286
289
|
e.setAttribute("aria-describedby", n);
|
|
287
|
-
},
|
|
290
|
+
}, Je = (e) => {
|
|
288
291
|
e.__prevDescribedBy__ !== void 0 && (e.__prevDescribedBy__ ? e.setAttribute("aria-describedby", e.__prevDescribedBy__) : e.removeAttribute("aria-describedby"), e.__prevDescribedBy__ = void 0);
|
|
289
|
-
},
|
|
292
|
+
}, Ye = "nb-tooltip-description", Xe = (e) => !!e && !!(e.body || e.header || e.tip), Ze = (e, t) => {
|
|
290
293
|
if (typeof document > "u") return;
|
|
291
|
-
let n = t &&
|
|
294
|
+
let n = t && Xe(t) && We(e, t) === "description" ? He(t) : "";
|
|
292
295
|
if (!n) {
|
|
293
|
-
|
|
296
|
+
Qe(e);
|
|
294
297
|
return;
|
|
295
298
|
}
|
|
296
299
|
let r = e.__descNode__;
|
|
297
|
-
r || (r = document.createElement("span"), r.className =
|
|
298
|
-
},
|
|
299
|
-
e.__descNode__ && (
|
|
300
|
-
},
|
|
301
|
-
if (
|
|
300
|
+
r || (r = document.createElement("span"), r.className = Ye, r.id = pe(), r.setAttribute("role", "tooltip"), document.body.appendChild(r), e.__descNode__ = r, qe(e, r.id)), e.__descText__ !== n && (r.textContent = n, e.__descText__ = n);
|
|
301
|
+
}, Qe = (e) => {
|
|
302
|
+
e.__descNode__ && (Je(e), e.__descNode__.remove(), e.__descNode__ = void 0, e.__descText__ = void 0);
|
|
303
|
+
}, $e = (e, t) => {
|
|
304
|
+
if (Xe(t)) {
|
|
302
305
|
e.__prevTitle__ === void 0 && e.hasAttribute("title") && (e.__prevTitle__ = e.getAttribute("title") ?? "", e.removeAttribute("title"));
|
|
303
306
|
return;
|
|
304
307
|
}
|
|
305
|
-
|
|
306
|
-
},
|
|
308
|
+
et(e);
|
|
309
|
+
}, et = (e) => {
|
|
307
310
|
e.__prevTitle__ !== void 0 && (e.hasAttribute("title") || e.setAttribute("title", e.__prevTitle__), e.__prevTitle__ = void 0);
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
},
|
|
311
|
+
}, tt = (e, t) => {
|
|
312
|
+
$e(e, t), Ge(e, t), Ze(e, t);
|
|
313
|
+
}, nt = (e) => e.disabled === !0 ? !0 : !!e.closest?.("fieldset[disabled]") && !e.closest?.("fieldset[disabled] > legend:first-of-type"), rt = (e, t, n) => t >= e.left && t <= e.right && n >= e.top && n <= e.bottom, it = (e) => {
|
|
311
314
|
let t = e.__proxyHost__;
|
|
312
315
|
t && (e.__proxyMove__ && t.removeEventListener("mousemove", e.__proxyMove__), e.__proxyLeave__ && t.removeEventListener("mouseleave", e.__proxyLeave__), e.__proxyHost__ = void 0, e.__proxyMove__ = void 0, e.__proxyLeave__ = void 0, e.__proxyInside__ = !1);
|
|
313
|
-
},
|
|
314
|
-
let t = e.__tooltipBinding__ &&
|
|
315
|
-
e.__proxyHost__ !== t && (
|
|
316
|
+
}, at = (e) => {
|
|
317
|
+
let t = e.__tooltipBinding__ && nt(e) ? e.parentElement : null;
|
|
318
|
+
e.__proxyHost__ !== t && (it(e), t && (e.__proxyMove__ = ((t) => {
|
|
316
319
|
let n = t;
|
|
317
320
|
if (n.buttons) return;
|
|
318
321
|
let r = e.getBoundingClientRect();
|
|
319
|
-
if (K(r) ?
|
|
322
|
+
if (K(r) ? rt(r, n.clientX, n.clientY) : t.target === e || e.contains(t.target)) {
|
|
320
323
|
e.__mouseX__ = n.clientX, e.__mouseY__ = n.clientY, e.__proxyInside__ ? e.__tooltipBinding__?.followCursor && Q(e, e.tooltipElement, e.__requestedSide__) : (e.__proxyInside__ = !0, e.__showTooltip__?.("pointer"));
|
|
321
324
|
return;
|
|
322
325
|
}
|
|
@@ -324,13 +327,13 @@ var S = /* @__PURE__ */ y({
|
|
|
324
327
|
}), e.__proxyLeave__ = (() => {
|
|
325
328
|
e.__proxyInside__ && (e.__proxyInside__ = !1, e.__hideTooltip__?.(void 0, "pointer"));
|
|
326
329
|
}), t.addEventListener("mousemove", e.__proxyMove__), t.addEventListener("mouseleave", e.__proxyLeave__), e.__proxyHost__ = t));
|
|
327
|
-
},
|
|
330
|
+
}, ot = (e) => {
|
|
328
331
|
e.onOpenChange || N("controlled-no-handler", "a tooltip was given `open` but no `onOpenChange`, so nothing the user does (hover, blur, Escape) can change it. Either handle `onOpenChange` or drop `open` and let the directive own visibility.");
|
|
329
|
-
},
|
|
332
|
+
}, st = (e, t) => {
|
|
330
333
|
if (!t) return;
|
|
331
334
|
let n = t.open === void 0 ? e.__openState__ === void 0 && t.defaultOpen ? !0 : void 0 : t.open;
|
|
332
335
|
n !== void 0 && n !== (e.__openState__ === !0 || !!e.__showTimer__) && (n ? e.__showTooltip__?.("program") : e.__hideTooltip__?.(0, "program"));
|
|
333
|
-
},
|
|
336
|
+
}, ct = (e) => {
|
|
334
337
|
ve();
|
|
335
338
|
let t = e.config.globalProperties.$router;
|
|
336
339
|
t && t.beforeEach(() => {
|
|
@@ -341,15 +344,15 @@ var S = /* @__PURE__ */ y({
|
|
|
341
344
|
let n = e.__tooltipBinding__;
|
|
342
345
|
if (n) {
|
|
343
346
|
if (n.open !== void 0 && t !== "program") {
|
|
344
|
-
|
|
347
|
+
ot(n), n.onOpenChange?.(!0, t);
|
|
345
348
|
return;
|
|
346
349
|
}
|
|
347
|
-
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0,
|
|
350
|
+
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, ft(e, n, t);
|
|
348
351
|
}
|
|
349
352
|
}, e.__hideTooltip__ = (t = e.__tooltipBinding__?.hideDelay ?? 150, n = "dismiss") => {
|
|
350
353
|
let r = e.__tooltipBinding__;
|
|
351
354
|
if (r?.open !== void 0 && n !== "program") {
|
|
352
|
-
|
|
355
|
+
ot(r), r.onOpenChange?.(!1, n);
|
|
353
356
|
return;
|
|
354
357
|
}
|
|
355
358
|
if (clearTimeout(e.__hideTimer__), t <= 0) {
|
|
@@ -368,29 +371,29 @@ var S = /* @__PURE__ */ y({
|
|
|
368
371
|
}, e.__hideHandler__ = () => e.__hideTooltip__?.(void 0, "pointer"), e.__focusHandler__ = (t) => {
|
|
369
372
|
B(z, ge) || ze(e, t) && e.__showTooltip__?.("focus");
|
|
370
373
|
}, e.__blurHandler__ = () => e.__hideTooltip__?.(void 0, "focus"), e.__touchHandler__ = (t) => {
|
|
371
|
-
e.__tooltipBinding__?.touch !== !1 && ze(e, t) && (e.__lastTouchAt__ = Date.now(), e.__showTooltip__?.("touch"), e.__hideTooltip__?.(he, "touch"));
|
|
372
|
-
},
|
|
374
|
+
e.__tooltipBinding__?.touch !== !1 && ze(e, t) && (e.__lastTouchAt__ = Date.now(), !Ve(e) && (e.__showTooltip__?.("touch"), e.__hideTooltip__?.(he, "touch")));
|
|
375
|
+
}, Ke(e, t.value), tt(e, t.value), e.setAttribute(Re, ""), e.addEventListener("mouseenter", e.__showHandler__), e.addEventListener("mouseleave", e.__hideHandler__), e.addEventListener("mousemove", e.__mouseMove__), e.addEventListener("focusin", e.__focusHandler__), e.addEventListener("focusout", e.__blurHandler__), e.addEventListener("touchstart", e.__touchHandler__, { passive: !0 }), at(e), st(e, t.value);
|
|
373
376
|
},
|
|
374
377
|
updated(e, t) {
|
|
375
378
|
let n = e.__tooltipBinding__;
|
|
376
379
|
if (e.__tooltipBinding__ = t.value, !t.value) {
|
|
377
|
-
|
|
380
|
+
tt(e, void 0), Ke(e, void 0), Z(e, !0);
|
|
378
381
|
return;
|
|
379
382
|
}
|
|
380
|
-
if (n !== t.value && (
|
|
381
|
-
let r =
|
|
382
|
-
r !== e.__lastContent__ && (e.__lastContent__ = r,
|
|
383
|
+
if (n !== t.value && (tt(e, t.value), Ke(e, t.value)), at(e), st(e, t.value), !e.tooltipElement || n === t.value) return;
|
|
384
|
+
let r = dt(t.value);
|
|
385
|
+
r !== e.__lastContent__ && (e.__lastContent__ = r, mt(e, t.value));
|
|
383
386
|
},
|
|
384
387
|
unmounted(e) {
|
|
385
|
-
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, Z(e, !0), R.delete(e), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__focusHandler__ && e.removeEventListener("focusin", e.__focusHandler__), e.__blurHandler__ && e.removeEventListener("focusout", e.__blurHandler__), e.__touchHandler__ && e.removeEventListener("touchstart", e.__touchHandler__),
|
|
388
|
+
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, Z(e, !0), R.delete(e), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__focusHandler__ && e.removeEventListener("focusin", e.__focusHandler__), e.__blurHandler__ && e.removeEventListener("focusout", e.__blurHandler__), e.__touchHandler__ && e.removeEventListener("touchstart", e.__touchHandler__), Qe(e), et(e), e.__ownsAriaLabel__ &&= (e.removeAttribute("aria-label"), !1), e.__ownsTabIndex__ &&= (e.removeAttribute("tabindex"), !1), e.__ownsRole__ &&= (e.removeAttribute("role"), !1), e.removeAttribute(Re), it(e), e.__mouseMove__ && e.removeEventListener("mousemove", e.__mouseMove__), Pe(e);
|
|
386
389
|
}
|
|
387
390
|
});
|
|
388
|
-
},
|
|
391
|
+
}, lt = ({ header: e = "", body: t = "", tip: n = "" }) => `<div class="nb-tooltip-content"><div class="nb-tooltip-header">${P(e)}</div><div class="nb-tooltip-body">${P(t)}</div><div class="nb-tooltip-tip">${P(n)}</div></div>`, ut = (e, t, n) => [
|
|
389
392
|
"nb-tooltip",
|
|
390
393
|
`nb-tooltip-${e}`,
|
|
391
394
|
t ? `nb-tooltip-flavor-${t}` : "",
|
|
392
395
|
n || ""
|
|
393
|
-
].filter(Boolean).join(" "),
|
|
396
|
+
].filter(Boolean).join(" "), dt = (e) => `${e.position ?? ""}|${I(e)}|${L(e) ?? ""}|${lt(e)}`, ft = (t, n, r = "pointer") => {
|
|
394
397
|
let { header: i, body: a, tip: o, delay: s = 400, animationTime: c = 300, position: l, overflowOnly: u } = n, d = I(n), f = L(n);
|
|
395
398
|
if (clearTimeout(t.__showTimer__), t.__showTimer__ = void 0, Ie(t, !0), u) {
|
|
396
399
|
let e = t.getBoundingClientRect();
|
|
@@ -401,9 +404,9 @@ var S = /* @__PURE__ */ y({
|
|
|
401
404
|
t.__showTimer__ = setTimeout(() => {
|
|
402
405
|
if (t.__showTimer__ = void 0, !t.isConnected) return;
|
|
403
406
|
let e = r === "pointer" ? l ?? "cursor" : l && l !== "cursor" ? l : "top";
|
|
404
|
-
for (let e of Array.from(U)) e !== t &&
|
|
407
|
+
for (let e of Array.from(U)) e !== t && pt(e, "superseded");
|
|
405
408
|
let s = document.createElement("span");
|
|
406
|
-
s.className =
|
|
409
|
+
s.className = ut(e, d, f), s.innerHTML = lt({
|
|
407
410
|
header: i,
|
|
408
411
|
body: a,
|
|
409
412
|
tip: o
|
|
@@ -411,11 +414,11 @@ var S = /* @__PURE__ */ y({
|
|
|
411
414
|
s.__hovered__ = !0, clearTimeout(t.__hideTimer__), t.__hideTimer__ = void 0, t.__watchdogMisses__ = 0;
|
|
412
415
|
}), s.addEventListener("mouseleave", () => {
|
|
413
416
|
s.__hovered__ = !1, t.__hideTooltip__?.();
|
|
414
|
-
}), m ? s.style.opacity = "1" : (s.style.transition = `opacity ${c}ms ease-in-out`, s.style.animation = `tooltipAppear ${c}ms ease-in-out forwards`), s.setAttribute("aria-hidden", "true"), t.__trigger__ = r, t.tooltipElement = s, (t.__chips__ ??= /* @__PURE__ */ new Set()).add(s), t.__lastContent__ =
|
|
417
|
+
}), m ? s.style.opacity = "1" : (s.style.transition = `opacity ${c}ms ease-in-out`, s.style.animation = `tooltipAppear ${c}ms ease-in-out forwards`), s.setAttribute("aria-hidden", "true"), t.__trigger__ = r, t.tooltipElement = s, (t.__chips__ ??= /* @__PURE__ */ new Set()).add(s), t.__lastContent__ = dt(n), R.add(t), document.body.appendChild(s), t.__requestedSide__ = e, t.__side__ = e, Q(t, s, e), Ne(t), Ce(t);
|
|
415
418
|
let u = t.__openState__ === !0;
|
|
416
419
|
t.__openState__ = !0, u || n.onOpenChange?.(!0, r);
|
|
417
420
|
}, p);
|
|
418
|
-
},
|
|
421
|
+
}, pt = (e, t, n = !0) => {
|
|
419
422
|
if (e.__hideTooltip__) {
|
|
420
423
|
e.__hideTooltip__(n ? 0 : void 0, t);
|
|
421
424
|
return;
|
|
@@ -425,15 +428,15 @@ var S = /* @__PURE__ */ y({
|
|
|
425
428
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0;
|
|
426
429
|
let r = e.__openState__ === !0;
|
|
427
430
|
Ie(e, t), R.delete(e), e.__requestedSide__ = void 0, r && (e.__openState__ = !1, e.__tooltipBinding__?.onOpenChange?.(!1, n));
|
|
428
|
-
},
|
|
431
|
+
}, mt = (e, t) => {
|
|
429
432
|
let { header: n, body: r, tip: i, position: a } = t, o = I(t), s = L(t), c = e.__requestedSide__ ?? e.__side__ ?? a, l = e.tooltipElement;
|
|
430
|
-
l && (l.innerHTML =
|
|
433
|
+
l && (l.innerHTML = lt({
|
|
431
434
|
header: n,
|
|
432
435
|
body: r,
|
|
433
436
|
tip: i
|
|
434
|
-
}), l.className =
|
|
437
|
+
}), l.className = ut(e.__side__ ?? c ?? "cursor", o, s), Q(e, l, c));
|
|
435
438
|
};
|
|
436
|
-
function
|
|
439
|
+
function ht(e, t, n, r, i, a, o) {
|
|
437
440
|
switch (e) {
|
|
438
441
|
case "top": return {
|
|
439
442
|
top: t.top - (r + i * 2),
|
|
@@ -452,16 +455,16 @@ function pt(e, t, n, r, i, a, o) {
|
|
|
452
455
|
left: t.right + i
|
|
453
456
|
};
|
|
454
457
|
default: return {
|
|
455
|
-
top: o +
|
|
456
|
-
left: a +
|
|
458
|
+
top: o + gt,
|
|
459
|
+
left: a + gt
|
|
457
460
|
};
|
|
458
461
|
}
|
|
459
462
|
}
|
|
460
|
-
var
|
|
461
|
-
function
|
|
463
|
+
var gt = 14;
|
|
464
|
+
function _t(e, t, n, r, i) {
|
|
462
465
|
return t >= i && e >= i && t + n <= window.innerWidth - i && e + r <= window.innerHeight - i;
|
|
463
466
|
}
|
|
464
|
-
var
|
|
467
|
+
var vt = {
|
|
465
468
|
top: [
|
|
466
469
|
"bottom",
|
|
467
470
|
"right",
|
|
@@ -485,10 +488,10 @@ var gt = {
|
|
|
485
488
|
cursor: []
|
|
486
489
|
}, Q = (e, t, n) => {
|
|
487
490
|
if (!t) return;
|
|
488
|
-
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.__mouseX__ ?? 0, c = e.__mouseY__ ?? 0, l = n ?? "cursor", u = (e) =>
|
|
489
|
-
if (a > 0 && o > 0 && !
|
|
491
|
+
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.__mouseX__ ?? 0, c = e.__mouseY__ ?? 0, l = n ?? "cursor", u = (e) => ht(e, r, a, o, 4, s, c), d = u(l), f = l;
|
|
492
|
+
if (a > 0 && o > 0 && !_t(d.top, d.left, a, o, 16)) for (let e of vt[l]) {
|
|
490
493
|
let t = u(e);
|
|
491
|
-
if (
|
|
494
|
+
if (_t(t.top, t.left, a, o, 16)) {
|
|
492
495
|
d = t, f = e;
|
|
493
496
|
break;
|
|
494
497
|
}
|
|
@@ -519,7 +522,7 @@ var gt = {
|
|
|
519
522
|
}
|
|
520
523
|
t.style.top = `${p}px`, t.style.left = `${m}px`;
|
|
521
524
|
};
|
|
522
|
-
function
|
|
525
|
+
function yt(e) {
|
|
523
526
|
for (let t of Array.from(R)) t.__hideTooltip__?.(0, e);
|
|
524
527
|
let t = /* @__PURE__ */ new Set();
|
|
525
528
|
for (let e of Array.from(R)) for (let n of e.__chips__ ?? []) t.add(n);
|
|
@@ -527,7 +530,7 @@ function _t(e) {
|
|
|
527
530
|
t.has(e) || e.remove();
|
|
528
531
|
});
|
|
529
532
|
}
|
|
530
|
-
function
|
|
533
|
+
function bt() {
|
|
531
534
|
for (let e of Array.from(R)) e.__hideTooltip__?.(0, "program");
|
|
532
535
|
R.clear();
|
|
533
536
|
for (let e of Array.from(U)) Pe(e);
|
|
@@ -535,8 +538,8 @@ function vt() {
|
|
|
535
538
|
}
|
|
536
539
|
//#endregion
|
|
537
540
|
//#region src/directives/TourStep.directive.ts
|
|
538
|
-
var
|
|
539
|
-
function
|
|
541
|
+
var xt = /* @__PURE__ */ y({ default: () => Ct });
|
|
542
|
+
function St(e, n) {
|
|
540
543
|
let r = n.value;
|
|
541
544
|
if (r == null || r === "") {
|
|
542
545
|
e.removeAttribute(t);
|
|
@@ -544,41 +547,41 @@ function bt(e, n) {
|
|
|
544
547
|
}
|
|
545
548
|
e.setAttribute(t, String(r));
|
|
546
549
|
}
|
|
547
|
-
var
|
|
550
|
+
var Ct = (e) => {
|
|
548
551
|
e.directive("nb-tour-step", {
|
|
549
|
-
mounted:
|
|
550
|
-
updated:
|
|
552
|
+
mounted: St,
|
|
553
|
+
updated: St,
|
|
551
554
|
unmounted(e) {
|
|
552
555
|
e.removeAttribute(t);
|
|
553
556
|
}
|
|
554
557
|
});
|
|
555
|
-
},
|
|
558
|
+
}, wt = /* @__PURE__ */ Object.assign({
|
|
556
559
|
"./ContextMenu.directive.ts": b,
|
|
557
560
|
"./ToolTip.content.ts": S,
|
|
558
561
|
"./ToolTip.directive.ts": F,
|
|
559
|
-
"./TourStep.directive.ts":
|
|
560
|
-
}),
|
|
561
|
-
Object.values(
|
|
562
|
+
"./TourStep.directive.ts": xt
|
|
563
|
+
}), Tt = { install(e) {
|
|
564
|
+
Object.values(wt).forEach((t) => {
|
|
562
565
|
typeof t.default == "function" && t.default(e);
|
|
563
566
|
});
|
|
564
|
-
} },
|
|
567
|
+
} }, Et = { install(e) {
|
|
565
568
|
let t = r();
|
|
566
569
|
e.provide(n, t);
|
|
567
|
-
} },
|
|
570
|
+
} }, Dt = {
|
|
568
571
|
key: 0,
|
|
569
572
|
class: "nb-spreadsheet__toolbar"
|
|
570
|
-
},
|
|
573
|
+
}, Ot = {
|
|
571
574
|
key: 0,
|
|
572
575
|
class: "nb-spreadsheet__corner",
|
|
573
576
|
style: {
|
|
574
577
|
gridRow: 1,
|
|
575
578
|
gridColumn: 1
|
|
576
579
|
}
|
|
577
|
-
},
|
|
580
|
+
}, kt = ["onClick"], At = { class: "nb-spreadsheet__header-label" }, jt = {
|
|
578
581
|
key: 0,
|
|
579
582
|
class: "nb-spreadsheet__sort",
|
|
580
583
|
"aria-hidden": "true"
|
|
581
|
-
},
|
|
584
|
+
}, Mt = ["onMousedown"], Nt = [
|
|
582
585
|
"title",
|
|
583
586
|
"data-cell",
|
|
584
587
|
"data-row",
|
|
@@ -586,7 +589,7 @@ var xt = (e) => {
|
|
|
586
589
|
"onMousedown",
|
|
587
590
|
"onMouseenter",
|
|
588
591
|
"onDblclick"
|
|
589
|
-
],
|
|
592
|
+
], Pt = ["inputmode"], Ft = 44, It = 32, $ = 28, Lt = /* @__PURE__ */ u({
|
|
590
593
|
__name: "Spreadsheet",
|
|
591
594
|
props: {
|
|
592
595
|
columns: {},
|
|
@@ -627,7 +630,7 @@ var xt = (e) => {
|
|
|
627
630
|
function D(e) {
|
|
628
631
|
return y.value[e.id] ?? e.width ?? 120;
|
|
629
632
|
}
|
|
630
|
-
let ce = o(() => ({ gridTemplateColumns: (r.showGutter ? `${
|
|
633
|
+
let ce = o(() => ({ gridTemplateColumns: (r.showGutter ? `${Ft}px ` : "") + E.value.map((e) => `${D(e)}px`).join(" ") })), O = o(() => {
|
|
631
634
|
let e = r.rows.filter((e) => !e.pinned);
|
|
632
635
|
if (!b.value) return e;
|
|
633
636
|
let t = r.columns.find((e) => e.id === b.value.columnId);
|
|
@@ -726,7 +729,7 @@ var xt = (e) => {
|
|
|
726
729
|
}
|
|
727
730
|
function R(e) {
|
|
728
731
|
if (e.pinned !== "left") return 0;
|
|
729
|
-
let t = r.showGutter ?
|
|
732
|
+
let t = r.showGutter ? Ft : 0;
|
|
730
733
|
for (let n of E.value) {
|
|
731
734
|
if (n.id === e.id) break;
|
|
732
735
|
n.pinned === "left" && (t += D(n));
|
|
@@ -752,7 +755,7 @@ var xt = (e) => {
|
|
|
752
755
|
}
|
|
753
756
|
function me(e, t, n, i) {
|
|
754
757
|
let a = (r.showGutter ? 2 : 1) + i, o = n + 2, s = {};
|
|
755
|
-
return t.pinned === "left" ? (s.position = "sticky", s.left = `${R(t)}px`, s.zIndex = "2") : t.pinned === "right" && (s.position = "sticky", s.right = `${fe(t)}px`, s.zIndex = "2"), (e.pinned === "top" || e.pinned === "bottom") && (s.position = "sticky", s.zIndex = String(Math.max(Number(s.zIndex ?? 0), 2)), e.pinned === "top" && (s.top = `${
|
|
758
|
+
return t.pinned === "left" ? (s.position = "sticky", s.left = `${R(t)}px`, s.zIndex = "2") : t.pinned === "right" && (s.position = "sticky", s.right = `${fe(t)}px`, s.zIndex = "2"), (e.pinned === "top" || e.pinned === "bottom") && (s.position = "sticky", s.zIndex = String(Math.max(Number(s.zIndex ?? 0), 2)), e.pinned === "top" && (s.top = `${It}px`), e.pinned === "bottom" && (s.bottom = "0")), {
|
|
756
759
|
gridRow: o,
|
|
757
760
|
gridColumn: a,
|
|
758
761
|
...s
|
|
@@ -764,7 +767,7 @@ var xt = (e) => {
|
|
|
764
767
|
left: "0",
|
|
765
768
|
zIndex: "2"
|
|
766
769
|
};
|
|
767
|
-
return t.pinned === "top" && (n.top = `${
|
|
770
|
+
return t.pinned === "top" && (n.top = `${It}px`, n.zIndex = "4"), t.pinned === "bottom" && (n.bottom = "0", n.zIndex = "4"), {
|
|
768
771
|
gridRow: e + 2,
|
|
769
772
|
gridColumn: 1,
|
|
770
773
|
...n
|
|
@@ -827,7 +830,7 @@ var xt = (e) => {
|
|
|
827
830
|
let t = O.value.findIndex((t) => t.id === e);
|
|
828
831
|
if (t < 0 || !u.value) return;
|
|
829
832
|
let n = t * $, r = u.value;
|
|
830
|
-
n < r.scrollTop ? r.scrollTop = n : n + $ > r.scrollTop + r.clientHeight -
|
|
833
|
+
n < r.scrollTop ? r.scrollTop = n : n + $ > r.scrollTop + r.clientHeight - It && (r.scrollTop = n - r.clientHeight + It + $);
|
|
831
834
|
}
|
|
832
835
|
function xe() {
|
|
833
836
|
oe.value = u.value?.scrollTop ?? 0;
|
|
@@ -1073,7 +1076,7 @@ var xt = (e) => {
|
|
|
1073
1076
|
undo: Y,
|
|
1074
1077
|
redo: ke,
|
|
1075
1078
|
getSelection: () => S.value
|
|
1076
|
-
}), (t, n) => (h(), c("div", { class: f(["nb-spreadsheet", { "nb-spreadsheet--editing": !!w.value }]) }, [t.$slots.toolbar ? (h(), c("div",
|
|
1079
|
+
}), (t, n) => (h(), c("div", { class: f(["nb-spreadsheet", { "nb-spreadsheet--editing": !!w.value }]) }, [t.$slots.toolbar ? (h(), c("div", Dt, [te(t.$slots, "toolbar", {}, void 0, !0)])) : s("", !0), l("div", {
|
|
1077
1080
|
ref_key: "scrollerRef",
|
|
1078
1081
|
ref: u,
|
|
1079
1082
|
class: "nb-spreadsheet__scroller",
|
|
@@ -1087,21 +1090,21 @@ var xt = (e) => {
|
|
|
1087
1090
|
class: "nb-spreadsheet__grid",
|
|
1088
1091
|
style: p(ce.value)
|
|
1089
1092
|
}, [
|
|
1090
|
-
e.showGutter ? (h(), c("div",
|
|
1093
|
+
e.showGutter ? (h(), c("div", Ot)) : s("", !0),
|
|
1091
1094
|
(h(!0), c(a, null, ee(E.value, (t, n) => (h(), c("div", {
|
|
1092
1095
|
key: `h-${t.id}`,
|
|
1093
1096
|
class: f(["nb-spreadsheet__header", L(t)]),
|
|
1094
1097
|
style: p(pe(t, n)),
|
|
1095
1098
|
onClick: (e) => Oe(t)
|
|
1096
1099
|
}, [
|
|
1097
|
-
l("span",
|
|
1098
|
-
b.value && b.value.columnId === t.id ? (h(), c("span",
|
|
1100
|
+
l("span", At, _(t.label), 1),
|
|
1101
|
+
b.value && b.value.columnId === t.id ? (h(), c("span", jt, _(b.value.direction === "asc" ? "▲" : "▼"), 1)) : s("", !0),
|
|
1099
1102
|
e.resizable ? (h(), c("span", {
|
|
1100
1103
|
key: 1,
|
|
1101
1104
|
class: "nb-spreadsheet__resize-handle",
|
|
1102
1105
|
onMousedown: ae((e) => q(e, t), ["stop"])
|
|
1103
|
-
}, null, 40,
|
|
1104
|
-
], 14,
|
|
1106
|
+
}, null, 40, Mt)) : s("", !0)
|
|
1107
|
+
], 14, kt))), 128)),
|
|
1105
1108
|
(h(!0), c(a, null, ee(le.value, (t, n) => (h(), c(a, { key: `r-${t.id}` }, [e.showGutter ? (h(), c("div", {
|
|
1106
1109
|
key: 0,
|
|
1107
1110
|
class: f(["nb-spreadsheet__gutter", {
|
|
@@ -1120,7 +1123,7 @@ var xt = (e) => {
|
|
|
1120
1123
|
onMousedown: (n) => B(n, t, e),
|
|
1121
1124
|
onMouseenter: (n) => _e(t, e),
|
|
1122
1125
|
onDblclick: (n) => ye(t, e)
|
|
1123
|
-
}, [l("span", null, _(de(t, e)), 1)], 46,
|
|
1126
|
+
}, [l("span", null, _(de(t, e)), 1)], 46, Nt))), 128))], 64))), 128))
|
|
1124
1127
|
], 4), w.value ? ie((h(), c("input", {
|
|
1125
1128
|
key: 0,
|
|
1126
1129
|
ref_key: "editorRef",
|
|
@@ -1131,16 +1134,16 @@ var xt = (e) => {
|
|
|
1131
1134
|
inputmode: Ce.value,
|
|
1132
1135
|
onBlur: n[1] ||= (e) => G(!0),
|
|
1133
1136
|
onKeydown: ae(W, ["stop"])
|
|
1134
|
-
}, null, 44,
|
|
1137
|
+
}, null, 44, Pt)), [[re, w.value.draft]]) : s("", !0)], 544)], 2));
|
|
1135
1138
|
}
|
|
1136
|
-
}),
|
|
1137
|
-
Object.keys(
|
|
1138
|
-
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r =
|
|
1139
|
+
}), Rt = /* @__PURE__ */ y({ default: () => zt }), zt = /* @__PURE__ */ i(Lt, [["__scopeId", "data-v-df859a7e"]]), Bt = /* @__PURE__ */ Object.assign({ "./components/labs/Spreadsheet.vue": Rt }), Vt = { install(e) {
|
|
1140
|
+
Object.keys(Bt).forEach((t) => {
|
|
1141
|
+
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = Bt[t];
|
|
1139
1142
|
e.component(n, r.default);
|
|
1140
1143
|
});
|
|
1141
|
-
} },
|
|
1144
|
+
} }, Ht = { install(e, t = {}) {
|
|
1142
1145
|
if (t.components) for (let [n, r] of Object.entries(t.components)) e.component(n, r);
|
|
1143
|
-
e.use(
|
|
1146
|
+
e.use(Tt), e.use(Et);
|
|
1144
1147
|
} };
|
|
1145
1148
|
//#endregion
|
|
1146
|
-
export {
|
|
1149
|
+
export { Ct as a, Et as i, Vt as n, bt as o, zt as r, ct as s, Ht as t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useReducedMotion.composable.cjs`),n=require(`./utils/tourTarget.helper.cjs`),r=require(`./composables/useCommandPalette.composable.cjs`),i=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`);let a=require(`vue`);var o=e.t({default:()=>s});function s(e){e.directive(`nb-context-menu`,{mounted(e,t){let n=e=>{e.preventDefault(),typeof t.value==`function`&&t.value({x:e.clientX,y:e.clientY})};e.__nbContextMenuHandler__=n,e.addEventListener(`contextmenu`,n)},updated(e,t){e.__nbContextMenuHandler__&&e.removeEventListener(`contextmenu`,e.__nbContextMenuHandler__);let n=e=>{e.preventDefault(),typeof t.value==`function`&&t.value({x:e.clientX,y:e.clientY})};e.__nbContextMenuHandler__=n,e.addEventListener(`contextmenu`,n)},unmounted(e){e.__nbContextMenuHandler__&&(e.removeEventListener(`contextmenu`,e.__nbContextMenuHandler__),delete e.__nbContextMenuHandler__)}})}var c=e.t({devWarn:()=>C,renderTooltipContent:()=>T}),l=new Set([`span`,`div`,`p`,`b`,`strong`,`em`,`i`,`u`,`s`,`small`,`code`,`kbd`,`br`,`ul`,`ol`,`li`]),u=new Set([`br`]),d=new Set([`class`,`style`,`dir`,`lang`]),f=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),p=new Set(`color.background-color.font-family.font-size.font-style.font-variant.font-weight.letter-spacing.line-height.text-align.text-decoration.text-transform.white-space.word-break.overflow-wrap.opacity.display.flex-direction.align-items.justify-content.gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.max-width.min-width.border-radius`.split(`.`)),m=/url\(|image-set\(|expression\(|javascript:|@import|\\/i,h=/^[A-Za-z_-][A-Za-z0-9_-]*$/,g=e=>e.split(`;`).map(e=>{let t=e.indexOf(`:`);if(t<0)return``;let n=e.slice(0,t).trim().toLowerCase(),r=e.slice(t+1).trim();return!n||!r?``:p.has(n)?m.test(r)?(C(`style-value:${n}`,`The value of "${n}" was dropped: tooltip content may not load a resource or call a CSS function that does.`),``):`${n}: ${r}`:(C(`style:${n}`,`"${n}" is not an allowed tooltip content style property and was dropped.`),``)}).filter(Boolean).join(`; `),_=e=>e.split(/\s+/).filter(e=>e?h.test(e)?!0:(C(`class:${e}`,`"${e}" is not a valid class token for tooltip content and was dropped.`),!1):!1).join(` `),v=(e,t)=>e===`style`?g(t):e===`class`?_(t):t,ee=new Set([`b`,`strong`,`em`,`i`,`u`,`s`,`small`,`code`,`kbd`,`br`,`p`]),y={"<":`<`,">":`>`,'"':`"`,"'":`'`},b=e=>e.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]{1,10}|#\d{1,7}|#[xX][0-9a-fA-F]{1,6});)/g,`&`).replace(/[<>"']/g,e=>y[e]),x=e=>e.split(/(<[^<>]*>)/g).map(e=>{if(e.startsWith(`<`)&&e.endsWith(`>`)){let t=/^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)\s*\/?\s*>$/.exec(e),n=t?.[2]?.toLowerCase();return n&&ee.has(n)?`<${t[1]}${n}>`:(n&&C(`string-tag:${n}`,`<${n}> is not allowed in a tooltip string and was shown as text. Use the structured content form for anything richer.`),b(e))}return b(e).replace(/\n/g,`<br>`)}).join(``),S=new Set,C=(e,t)=>{typeof process<`u`&&process.env.NODE_ENV===`production`||S.has(e)||(S.add(e),console.warn(`[nb-tooltip] ${t}`))},w=e=>{if(Array.isArray(e))return e.map(e=>w(e)).join(``);if(!e||typeof e!=`object`||!e.component)return``;let{component:t,props:n={},children:r,content:i}=e,a=r===void 0?i:r,o=Array.isArray(a)?w(a):a===void 0?``:x(String(a)),s=String(t).toLowerCase();if(!l.has(s))return C(`tag:${s}`,`<${s}> is not allowed in tooltip content and was dropped. Allowed tags: ${[...l].join(`, `)}.`),o;let c=Object.entries(n).filter(([e])=>d.has(e)?!0:(C(`prop:${e}`,`"${e}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...d].join(`, `)}.`),!1)).map(([e,t])=>[e,v(e,String(t))]).filter(([,e])=>e!==``).map(([e,t])=>`${e}="${f(t)}"`).join(` `),p=`<${s}${c?` ${c}`:``}>`;return u.has(s)?p:`${p}${o}</${s}>`},T=e=>e?typeof e==`string`?x(e):Array.isArray(e)?w(e):``:``,E=e.t({default:()=>Ue,dismissAllTooltips:()=>tt}),D=e=>e.status??e.flavor??`default`,O=e=>e.chipClass??e.classExtra,k=new Set,te=0,ne=()=>`nb-tooltip-${++te}`,re=900,A=4e3,ie=500,j=0,M=(e,t)=>{if(!e)return!1;let n=Date.now()-e;return n>=0&&n<t},N=!1,P=()=>{if(N||typeof document>`u`)return;N=!0;let e=e=>{if(k.size===0)return;let t=e?.target;t instanceof Element&&t.closest(`.nb-tooltip`)||et(`dismiss`)};document.addEventListener(`pointerdown`,()=>{j=Date.now()},!0),document.addEventListener(`dragstart`,()=>e(),!0),document.addEventListener(`keydown`,t=>{t.key===`Escape`&&e()},!0),document.addEventListener(`pointerdown`,e,!0),window.addEventListener(`blur`,e),document.addEventListener(`mouseleave`,e)},ae=200,oe=1e3,se=2,ce=e=>{let t=e.tooltipElement;if(!t)return!1;if(t.__hovered__)return!0;try{return t.isConnected&&t.matches(`:hover`)}catch{return!1}},F=e=>{if(!e.isConnected)return!1;if(ce(e)||e.__trigger__===`focus`&&e.contains(document.activeElement)||e.__trigger__===`touch`&&M(e.__lastTouchAt__,A))return!0;try{return e.matches(`:hover`)}catch{return!0}},I=e=>{clearTimeout(e.__watchdogTimer__),e.__watchdogTimer__=void 0,e.__watchdogMisses__=0},le=e=>{I(e);let t=()=>{if(!e.__chips__?.size){I(e);return}if(F(e))e.__watchdogMisses__=0;else{if(e.__watchdogMisses__=(e.__watchdogMisses__??0)+1,!e.isConnected){X(e,!0,`program`);return}if(e.__watchdogMisses__>=se){Je(e,`dismiss`);return}}e.__watchdogTimer__=setTimeout(t,oe)};e.__watchdogTimer__=setTimeout(t,oe)},L=new Set,R=null,ue=e=>`${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`,de=e=>{if(typeof getComputedStyle!=`function`)return!1;let t;try{t=getComputedStyle(e)}catch{return!1}let n=`${t.overflow} ${t.overflowX} ${t.overflowY}`;return/hidden|scroll|auto|clip|overlay/.test(n)},fe=e=>{let t=[],n=e.parentElement;for(;n&&n!==document.body&&n!==document.documentElement;)de(n)&&t.push(n),n=n.parentElement;return t},z=e=>!(e.width===0&&e.height===0&&e.top===0&&e.left===0),B=(e,t)=>{if(!e.isConnected)return!1;if(!z(t))return!0;if(t.width===0||t.height===0||!(t.bottom>0&&t.right>0&&t.top<window.innerHeight&&t.left<window.innerWidth))return!1;for(let n of e.__clippers__??[]){if(!n.isConnected)continue;let e=n.getBoundingClientRect();if(z(e)&&(t.bottom<=e.top||t.top>=e.bottom||t.right<=e.left||t.left>=e.right))return!1}return!0},V=e=>{let t=e.tooltipElement;if(!t||!e.__chips__?.size){L.delete(e);return}let n=e.getBoundingClientRect();if(!B(e,n)){e.__offscreenReported__||(e.__offscreenReported__=!0,Je(e,`dismiss`));return}e.__offscreenReported__=!1,e.__lastRect__=ue(n),e.__side__!==`cursor`&&Z(e,t,e.__requestedSide__??e.__side__)},H=()=>{G();for(let e of Array.from(L))V(e)},pe=100,me=320,U=0,W=0,G=()=>{W=Date.now()+me},K=()=>{if(L.size===0){R=null;return}let e=Date.now();if(e>=W&&e-U<pe){R=requestAnimationFrame(K);return}U=e;for(let e of Array.from(L)){if(!e.tooltipElement){L.delete(e);continue}ue(e.getBoundingClientRect())!==e.__lastRect__&&(G(),V(e))}R=requestAnimationFrame(K)},q=!1,he=e=>{L.add(e),e.__lastRect__=void 0,e.__clippers__=fe(e),!(typeof window>`u`)&&(q||(q=!0,document.addEventListener(`scroll`,H,{capture:!0,passive:!0}),window.addEventListener(`resize`,H,{passive:!0})),R===null&&typeof requestAnimationFrame==`function`&&(R=requestAnimationFrame(K)))},J=e=>{L.delete(e),e.__lastRect__=void 0,e.__clippers__=void 0,!(L.size>0||typeof window>`u`)&&(q&&(q=!1,document.removeEventListener(`scroll`,H,{capture:!0}),window.removeEventListener(`resize`,H)),R!==null&&typeof cancelAnimationFrame==`function`&&(cancelAnimationFrame(R),R=null))},ge=(e,n,r)=>{if(e.__chips__?.delete(n),clearTimeout(n.__removeTimer__),n.__removeTimer__=void 0,r||t.prefersReducedMotion()){n.remove();return}n.style.animation=`tooltipDisappear ${ae}ms ease-in-out forwards`,n.__removeTimer__=setTimeout(()=>{n.__removeTimer__=void 0,n.remove()},ae)},_e=(e,t)=>{if(J(e),e.__trigger__=void 0,e.__side__=void 0,e.__chips__)for(let n of Array.from(e.__chips__))ge(e,n,t);e.tooltipElement=void 0,e.__lastContent__=void 0,I(e)},ve=`a[href], button, input, select, textarea, summary, [tabindex]`,ye=`data-nb-tooltip-anchor`,be=(e,t)=>{let n=t.target;if(!(n instanceof Element)||n===e)return!0;let r=n.closest(`[${ye}]`);return r===null||r===e},xe=`button, a[href], [role="button"], [role="tab"], [role="menuitem"], input, select, textarea, label`,Se=e=>{let t=e.closest(xe);return!t||t.disabled===!0?!1:t.getAttribute(`aria-disabled`)!==`true`},Y=e=>{if(!e)return``;if(typeof e==`string`)return e.replace(/<[^>]*>/g,` `).replace(/ /g,` `).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\s+/g,` `).trim();if(Array.isArray(e))return e.map(e=>Y(e)).filter(Boolean).join(` `);if(typeof e==`object`){let t=e;return Y(t.children??t.content)}return``},Ce=e=>[Y(e.header),Y(e.body),Y(e.tip)].filter(Boolean).join(`. `),we=e=>{if(e.hasAttribute(`aria-labelledby`)||e.hasAttribute(`aria-label`)&&!e.__ownsAriaLabel__||e.hasAttribute(`title`)||(e.textContent??``).trim().length>0)return!0;let t=e.querySelector(`img[alt]`);return!!t&&(t.getAttribute(`alt`)??``).trim().length>0},Te=(e,t)=>{let n=t.aria??`auto`;return n===`auto`?we(e)?`description`:`label`:n},Ee=(e,t)=>{if(!t||Te(e,t)!==`label`){e.__ownsAriaLabel__&&=(e.removeAttribute(`aria-label`),!1),e.__ownsRole__&&=(e.removeAttribute(`role`),!1);return}let n=Ce(t);n&&(e.setAttribute(`aria-label`,n),e.__ownsAriaLabel__=!0,!e.__ownsRole__&&!e.hasAttribute(`role`)&&!e.matches(ve)&&(e.setAttribute(`role`,`img`),e.__ownsRole__=!0))},De=(e,t)=>{let n=!!t?.focusable;if(n&&!e.__ownsTabIndex__){if(e.matches(ve)||e.hasAttribute(`tabindex`))return;e.setAttribute(`tabindex`,`0`),e.__ownsTabIndex__=!0;return}!n&&e.__ownsTabIndex__&&(e.removeAttribute(`tabindex`),e.__ownsTabIndex__=!1)},Oe=(e,t)=>{e.__prevDescribedBy__=e.getAttribute(`aria-describedby`);let n=[e.__prevDescribedBy__,t].filter(Boolean).join(` `);e.setAttribute(`aria-describedby`,n)},ke=e=>{e.__prevDescribedBy__!==void 0&&(e.__prevDescribedBy__?e.setAttribute(`aria-describedby`,e.__prevDescribedBy__):e.removeAttribute(`aria-describedby`),e.__prevDescribedBy__=void 0)},Ae=`nb-tooltip-description`,je=e=>!!e&&!!(e.body||e.header||e.tip),Me=(e,t)=>{if(typeof document>`u`)return;let n=t&&je(t)&&Te(e,t)===`description`?Ce(t):``;if(!n){Ne(e);return}let r=e.__descNode__;r||(r=document.createElement(`span`),r.className=Ae,r.id=ne(),r.setAttribute(`role`,`tooltip`),document.body.appendChild(r),e.__descNode__=r,Oe(e,r.id)),e.__descText__!==n&&(r.textContent=n,e.__descText__=n)},Ne=e=>{e.__descNode__&&(ke(e),e.__descNode__.remove(),e.__descNode__=void 0,e.__descText__=void 0)},Pe=(e,t)=>{if(je(t)){e.__prevTitle__===void 0&&e.hasAttribute(`title`)&&(e.__prevTitle__=e.getAttribute(`title`)??``,e.removeAttribute(`title`));return}Fe(e)},Fe=e=>{e.__prevTitle__!==void 0&&(e.hasAttribute(`title`)||e.setAttribute(`title`,e.__prevTitle__),e.__prevTitle__=void 0)},Ie=(e,t)=>{Pe(e,t),Ee(e,t),Me(e,t)},Le=e=>e.disabled===!0?!0:!!e.closest?.(`fieldset[disabled]`)&&!e.closest?.(`fieldset[disabled] > legend:first-of-type`),Re=(e,t,n)=>t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom,ze=e=>{let t=e.__proxyHost__;t&&(e.__proxyMove__&&t.removeEventListener(`mousemove`,e.__proxyMove__),e.__proxyLeave__&&t.removeEventListener(`mouseleave`,e.__proxyLeave__),e.__proxyHost__=void 0,e.__proxyMove__=void 0,e.__proxyLeave__=void 0,e.__proxyInside__=!1)},Be=e=>{let t=e.__tooltipBinding__&&Le(e)?e.parentElement:null;e.__proxyHost__!==t&&(ze(e),t&&(e.__proxyMove__=(t=>{let n=t;if(n.buttons)return;let r=e.getBoundingClientRect();if(z(r)?Re(r,n.clientX,n.clientY):t.target===e||e.contains(t.target)){e.__mouseX__=n.clientX,e.__mouseY__=n.clientY,e.__proxyInside__?e.__tooltipBinding__?.followCursor&&Z(e,e.tooltipElement,e.__requestedSide__):(e.__proxyInside__=!0,e.__showTooltip__?.(`pointer`));return}e.__proxyInside__&&(e.__proxyInside__=!1,e.__hideTooltip__?.(void 0,`pointer`))}),e.__proxyLeave__=(()=>{e.__proxyInside__&&(e.__proxyInside__=!1,e.__hideTooltip__?.(void 0,`pointer`))}),t.addEventListener(`mousemove`,e.__proxyMove__),t.addEventListener(`mouseleave`,e.__proxyLeave__),e.__proxyHost__=t))},Ve=e=>{e.onOpenChange||C(`controlled-no-handler`,"a tooltip was given `open` but no `onOpenChange`, so nothing the user does (hover, blur, Escape) can change it. Either handle `onOpenChange` or drop `open` and let the directive own visibility.")},He=(e,t)=>{if(!t)return;let n=t.open===void 0?e.__openState__===void 0&&t.defaultOpen?!0:void 0:t.open;n!==void 0&&n!==(e.__openState__===!0||!!e.__showTimer__)&&(n?e.__showTooltip__?.(`program`):e.__hideTooltip__?.(0,`program`))},Ue=e=>{P();let t=e.config.globalProperties.$router;t&&t.beforeEach(()=>{k.forEach(e=>e?.__hideTooltip__?.(0,`program`)),k.clear()}),e.directive(`nb-tooltip`,{mounted(e,t){e.__showTooltip__=(t=`pointer`)=>{let n=e.__tooltipBinding__;if(n){if(n.open!==void 0&&t!==`program`){Ve(n),n.onOpenChange?.(!0,t);return}clearTimeout(e.__hideTimer__),e.__hideTimer__=void 0,qe(e,n,t)}},e.__hideTooltip__=(t=e.__tooltipBinding__?.hideDelay??150,n=`dismiss`)=>{let r=e.__tooltipBinding__;if(r?.open!==void 0&&n!==`program`){Ve(r),r.onOpenChange?.(!1,n);return}if(clearTimeout(e.__hideTimer__),t<=0){e.__hideTimer__=void 0,X(e,!0,n);return}e.__hideTimer__=setTimeout(()=>{e.__hideTimer__=void 0,X(e,t<=0,n)},t)},e.__mouseMove__=t=>{e.__mouseX__=t.clientX,e.__mouseY__=t.clientY,e.__tooltipBinding__?.followCursor&&Z(e,e.tooltipElement,e.__tooltipBinding__?.position)},e.__tooltipBinding__=t.value,e.__showHandler__=t=>{if(M(e.__lastTouchAt__,re))return;let n=t;n.buttons||(typeof n.clientX==`number`&&(n.clientX||n.clientY)&&(e.__mouseX__=n.clientX,e.__mouseY__=n.clientY),e.__showTooltip__?.(`pointer`))},e.__hideHandler__=()=>e.__hideTooltip__?.(void 0,`pointer`),e.__focusHandler__=t=>{M(j,ie)||be(e,t)&&e.__showTooltip__?.(`focus`)},e.__blurHandler__=()=>e.__hideTooltip__?.(void 0,`focus`),e.__touchHandler__=t=>{e.__tooltipBinding__?.touch!==!1&&be(e,t)&&(e.__lastTouchAt__=Date.now(),!Se(e)&&(e.__showTooltip__?.(`touch`),e.__hideTooltip__?.(A,`touch`)))},De(e,t.value),Ie(e,t.value),e.setAttribute(ye,``),e.addEventListener(`mouseenter`,e.__showHandler__),e.addEventListener(`mouseleave`,e.__hideHandler__),e.addEventListener(`mousemove`,e.__mouseMove__),e.addEventListener(`focusin`,e.__focusHandler__),e.addEventListener(`focusout`,e.__blurHandler__),e.addEventListener(`touchstart`,e.__touchHandler__,{passive:!0}),Be(e),He(e,t.value)},updated(e,t){let n=e.__tooltipBinding__;if(e.__tooltipBinding__=t.value,!t.value){Ie(e,void 0),De(e,void 0),X(e,!0);return}if(n!==t.value&&(Ie(e,t.value),De(e,t.value)),Be(e),He(e,t.value),!e.tooltipElement||n===t.value)return;let r=Ke(t.value);r!==e.__lastContent__&&(e.__lastContent__=r,Ye(e,t.value))},unmounted(e){clearTimeout(e.__showTimer__),e.__showTimer__=void 0,clearTimeout(e.__hideTimer__),e.__hideTimer__=void 0,X(e,!0),k.delete(e),e.__showHandler__&&e.removeEventListener(`mouseenter`,e.__showHandler__),e.__hideHandler__&&e.removeEventListener(`mouseleave`,e.__hideHandler__),e.__focusHandler__&&e.removeEventListener(`focusin`,e.__focusHandler__),e.__blurHandler__&&e.removeEventListener(`focusout`,e.__blurHandler__),e.__touchHandler__&&e.removeEventListener(`touchstart`,e.__touchHandler__),Ne(e),Fe(e),e.__ownsAriaLabel__&&=(e.removeAttribute(`aria-label`),!1),e.__ownsTabIndex__&&=(e.removeAttribute(`tabindex`),!1),e.__ownsRole__&&=(e.removeAttribute(`role`),!1),e.removeAttribute(ye),ze(e),e.__mouseMove__&&e.removeEventListener(`mousemove`,e.__mouseMove__),J(e)}})},We=({header:e=``,body:t=``,tip:n=``})=>`<div class="nb-tooltip-content"><div class="nb-tooltip-header">${T(e)}</div><div class="nb-tooltip-body">${T(t)}</div><div class="nb-tooltip-tip">${T(n)}</div></div>`,Ge=(e,t,n)=>[`nb-tooltip`,`nb-tooltip-${e}`,t?`nb-tooltip-flavor-${t}`:``,n||``].filter(Boolean).join(` `),Ke=e=>`${e.position??``}|${D(e)}|${O(e)??``}|${We(e)}`,qe=(e,n,r=`pointer`)=>{let{header:i,body:a,tip:o,delay:s=400,animationTime:c=300,position:l,overflowOnly:u}=n,d=D(n),f=O(n);if(clearTimeout(e.__showTimer__),e.__showTimer__=void 0,_e(e,!0),u){let t=e.getBoundingClientRect();if(!(Math.round(t.width)<Math.round(e.scrollWidth)))return}if(!(a||i||o))return;let p=r===`pointer`?s:0,m=t.prefersReducedMotion();e.__showTimer__=setTimeout(()=>{if(e.__showTimer__=void 0,!e.isConnected)return;let t=r===`pointer`?l??`cursor`:l&&l!==`cursor`?l:`top`;for(let t of Array.from(L))t!==e&&Je(t,`superseded`);let s=document.createElement(`span`);s.className=Ge(t,d,f),s.innerHTML=We({header:i,body:a,tip:o}),s.addEventListener(`mouseenter`,()=>{s.__hovered__=!0,clearTimeout(e.__hideTimer__),e.__hideTimer__=void 0,e.__watchdogMisses__=0}),s.addEventListener(`mouseleave`,()=>{s.__hovered__=!1,e.__hideTooltip__?.()}),m?s.style.opacity=`1`:(s.style.transition=`opacity ${c}ms ease-in-out`,s.style.animation=`tooltipAppear ${c}ms ease-in-out forwards`),s.setAttribute(`aria-hidden`,`true`),e.__trigger__=r,e.tooltipElement=s,(e.__chips__??=new Set).add(s),e.__lastContent__=Ke(n),k.add(e),document.body.appendChild(s),e.__requestedSide__=t,e.__side__=t,Z(e,s,t),he(e),le(e);let u=e.__openState__===!0;e.__openState__=!0,u||n.onOpenChange?.(!0,r)},p)},Je=(e,t,n=!0)=>{if(e.__hideTooltip__){e.__hideTooltip__(n?0:void 0,t);return}X(e,n,t)},X=(e,t=!1,n=`dismiss`)=>{clearTimeout(e.__showTimer__),e.__showTimer__=void 0;let r=e.__openState__===!0;_e(e,t),k.delete(e),e.__requestedSide__=void 0,r&&(e.__openState__=!1,e.__tooltipBinding__?.onOpenChange?.(!1,n))},Ye=(e,t)=>{let{header:n,body:r,tip:i,position:a}=t,o=D(t),s=O(t),c=e.__requestedSide__??e.__side__??a,l=e.tooltipElement;l&&(l.innerHTML=We({header:n,body:r,tip:i}),l.className=Ge(e.__side__??c??`cursor`,o,s),Z(e,l,c))};function Xe(e,t,n,r,i,a,o){switch(e){case`top`:return{top:t.top-(r+i*2),left:t.left+t.width/2-(n/2+i/2)};case`bottom`:return{top:t.bottom+i,left:t.left+t.width/2-(n/2+i/2)};case`left`:return{top:t.top+t.height/2-r/2,left:t.left-(n+i*2)};case`right`:return{top:t.top+t.height/2-r/2,left:t.right+i};default:return{top:o+Ze,left:a+Ze}}}var Ze=14;function Qe(e,t,n,r,i){return t>=i&&e>=i&&t+n<=window.innerWidth-i&&e+r<=window.innerHeight-i}var $e={top:[`bottom`,`right`,`left`],bottom:[`top`,`right`,`left`],left:[`right`,`top`,`bottom`],right:[`left`,`top`,`bottom`],cursor:[]},Z=(e,t,n)=>{if(!t)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.width||0,o=i.height||0,s=e.__mouseX__??0,c=e.__mouseY__??0,l=n??`cursor`,u=e=>Xe(e,r,a,o,4,s,c),d=u(l),f=l;if(a>0&&o>0&&!Qe(d.top,d.left,a,o,16))for(let e of $e[l]){let t=u(e);if(Qe(t.top,t.left,a,o,16)){d=t,f=e;break}}let{top:p,left:m}=d;if(a>0&&o>0){let e=window.innerWidth-a-16,t=window.innerHeight-o-16;m>e&&(m=e),m<16&&(m=16),p>t&&(p=t),p<16&&(p=16)}if(f!==`cursor`){for(let e of[`top`,`bottom`,`left`,`right`])t.classList.remove(`nb-tooltip-${e}`);t.classList.add(`nb-tooltip-${f}`)}if(e.__side__=f,a>0&&o>0&&f!==`cursor`){let e=r.left+r.width/2,n=r.top+r.height/2;if(f===`top`||f===`bottom`){let n=Math.max(8,Math.min(a-8,e-m))/a*100;t.style.setProperty(`--nb-tooltip-arrow-offset`,`${n}%`)}else{let e=Math.max(8,Math.min(o-8,n-p))/o*100;t.style.setProperty(`--nb-tooltip-arrow-offset`,`${e}%`)}}t.style.top=`${p}px`,t.style.left=`${m}px`};function et(e){for(let t of Array.from(k))t.__hideTooltip__?.(0,e);let t=new Set;for(let e of Array.from(k))for(let n of e.__chips__??[])t.add(n);document.querySelectorAll(`span.nb-tooltip`).forEach(e=>{t.has(e)||e.remove()})}function tt(){for(let e of Array.from(k))e.__hideTooltip__?.(0,`program`);k.clear();for(let e of Array.from(L))J(e);document.querySelectorAll(`span.nb-tooltip`).forEach(e=>e.remove())}var nt=e.t({default:()=>it});function rt(e,t){let r=t.value;if(r==null||r===``){e.removeAttribute(n.TOUR_STEP_ATTRIBUTE);return}e.setAttribute(n.TOUR_STEP_ATTRIBUTE,String(r))}var it=e=>{e.directive(`nb-tour-step`,{mounted:rt,updated:rt,unmounted(e){e.removeAttribute(n.TOUR_STEP_ATTRIBUTE)}})},at=Object.assign({"./ContextMenu.directive.ts":o,"./ToolTip.content.ts":c,"./ToolTip.directive.ts":E,"./TourStep.directive.ts":nt}),ot={install(e){Object.values(at).forEach(t=>{typeof t.default==`function`&&t.default(e)})}},st={install(e){let t=r.createCommandPaletteState();e.provide(r.NB_COMMAND_PALETTE_KEY,t)}},ct={key:0,class:`nb-spreadsheet__toolbar`},lt={key:0,class:`nb-spreadsheet__corner`,style:{gridRow:1,gridColumn:1}},ut=[`onClick`],dt={class:`nb-spreadsheet__header-label`},ft={key:0,class:`nb-spreadsheet__sort`,"aria-hidden":`true`},pt=[`onMousedown`],mt=[`title`,`data-cell`,`data-row`,`data-col`,`onMousedown`,`onMouseenter`,`onDblclick`],ht=[`inputmode`],gt=44,Q=32,$=28,_t=(0,a.defineComponent)({__name:`Spreadsheet`,props:{columns:{},rows:{},cellAttrs:{},computed:{},resizable:{type:Boolean,default:!0},rowReorderable:{type:Boolean,default:!1},showGutter:{type:Boolean,default:!0},windowRows:{default:80},locale:{default:`pt-PT`}},emits:[`commit`,`change`,`selection`,`focus`,`row-reorder`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=(0,a.useTemplateRef)(`scrollerRef`),s=(0,a.useTemplateRef)(`editorRef`),c=(0,a.ref)({}),l=(0,a.ref)(null),u=(0,a.ref)(null),d=(0,a.ref)(null),f=(0,a.ref)(!1),p=(0,a.ref)(null),m=(0,a.ref)(0),h=(0,a.ref)([]),g=(0,a.ref)([]),_=(0,a.computed)(()=>{let e=r.columns.filter(e=>e.pinned===`left`),t=r.columns.filter(e=>e.pinned===`right`),n=r.columns.filter(e=>!e.pinned);return[...e,...n,...t]});function v(e){return c.value[e.id]??e.width??120}let ee=(0,a.computed)(()=>({gridTemplateColumns:(r.showGutter?`${gt}px `:``)+_.value.map(e=>`${v(e)}px`).join(` `)})),y=(0,a.computed)(()=>{let e=r.rows.filter(e=>!e.pinned);if(!l.value)return e;let t=r.columns.find(e=>e.id===l.value.columnId);if(!t)return e;let n=l.value.direction===`asc`?1:-1,i=(e,t)=>e==null&&t==null?0:e==null?-1:t==null?1:typeof e==`number`&&typeof t==`number`?(e-t)*n:String(e).localeCompare(String(t))*n;return[...e].sort((e,n)=>i(e.values[t.id],n.values[t.id]))}),b=(0,a.computed)(()=>r.rows.filter(e=>e.pinned===`top`)),x=(0,a.computed)(()=>r.rows.filter(e=>e.pinned===`bottom`)),S=(0,a.computed)(()=>{let e=Math.max(1,Math.ceil((o.value?.clientHeight??600)/$)),t=Math.max(10,Math.floor(r.windowRows/4)),n=Math.floor(m.value/$)-b.value.length-t,i=Math.max(0,n),a=Math.min(y.value.length,i+e+t*2),s=b.value.map((e,t)=>({...e,__virtualIndex:t,gutterLabel:``})),c=y.value.slice(i,a).map((e,t)=>({...e,__virtualIndex:i+t+b.value.length})),l=x.value.map((e,t)=>({...e,__virtualIndex:b.value.length+y.value.length+t,gutterLabel:``}));return[...s,...c,...l]});function C(e,t){if(t==null||t===``)return``;if(e.type===`number`){let e=typeof t==`number`?t:Number(t);return Number.isFinite(e)?new Intl.NumberFormat(r.locale,{maximumFractionDigits:4}).format(e):String(t)}if(e.type===`date`){let e=t instanceof Date?t:new Date(t);return Number.isNaN(e.getTime())?String(t):new Intl.DateTimeFormat(r.locale).format(e)}return String(t)}function w(e,t){if(t===``)return null;if(e.type===`number`){let e=t.replace(/\s/g,``).replace(`,`,`.`),n=Number(e);if(!Number.isFinite(n))throw Error(`Invalid number`);return n}if(e.type===`date`){let e=new Date(t);if(Number.isNaN(e.getTime()))throw Error(`Invalid date`);return e.toISOString().slice(0,10)}return t}function T(e,t){let n=r.rows.find(t=>t.id===e);if(!n)return;let i=n.values[t];if(i!==void 0)return i;if(r.computed)return r.computed(e,t,T)}function E(e,t){return r.cellAttrs?r.cellAttrs(e.id,t.id,e,t)??{}:{}}function D(e,t){let n=E(e,t);if(n.display!==void 0)return n.display;let r=T(e.id,t.id);return t.format?t.format(r,e):C(t,r)}function O(e,t){let n=E(e,t),r=u.value?.rowId===e.id&&u.value?.columnId===t.id,i=N(e.id,t.id);return{[`nb-spreadsheet__cell--${t.align??(t.type===`number`||t.type===`date`?`right`:`left`)}`]:!0,"nb-spreadsheet__cell--focused":r,"nb-spreadsheet__cell--selected":i,"nb-spreadsheet__cell--readonly":k(e,t),"nb-spreadsheet__cell--computed":!!n.computed||!!e.computed,"nb-spreadsheet__cell--pinned-top":e.pinned===`top`,"nb-spreadsheet__cell--pinned-bottom":e.pinned===`bottom`,[n.className??``]:!!n.className,[e.className??``]:!!e.className}}function k(e,t){if(e.computed||t.readOnly)return!0;let n=E(e,t);return!!n.readOnly||!!n.computed}function te(e,t){return E(e,t).tooltip??``}function ne(e){return{"nb-spreadsheet__header--sortable":!!e.sortable,"nb-spreadsheet__header--pinned-left":e.pinned===`left`,"nb-spreadsheet__header--pinned-right":e.pinned===`right`}}function re(e){if(e.pinned!==`left`)return 0;let t=r.showGutter?gt:0;for(let n of _.value){if(n.id===e.id)break;n.pinned===`left`&&(t+=v(n))}return t}function A(e){if(e.pinned!==`right`)return 0;let t=0,n=[..._.value].reverse();for(let r of n){if(r.id===e.id)break;r.pinned===`right`&&(t+=v(r))}return t}function ie(e,t){let n=(r.showGutter?2:1)+t,i={};return e.pinned===`left`?(i.position=`sticky`,i.left=`${re(e)}px`,i.zIndex=`3`):e.pinned===`right`&&(i.position=`sticky`,i.right=`${A(e)}px`,i.zIndex=`3`),{gridRow:1,gridColumn:n,...i}}function j(e,t,n,i){let a=(r.showGutter?2:1)+i,o=n+2,s={};return t.pinned===`left`?(s.position=`sticky`,s.left=`${re(t)}px`,s.zIndex=`2`):t.pinned===`right`&&(s.position=`sticky`,s.right=`${A(t)}px`,s.zIndex=`2`),(e.pinned===`top`||e.pinned===`bottom`)&&(s.position=`sticky`,s.zIndex=String(Math.max(Number(s.zIndex??0),2)),e.pinned===`top`&&(s.top=`${Q}px`),e.pinned===`bottom`&&(s.bottom=`0`)),{gridRow:o,gridColumn:a,...s}}function M(e,t){let n={position:`sticky`,left:`0`,zIndex:`2`};return t.pinned===`top`&&(n.top=`${Q}px`,n.zIndex=`4`),t.pinned===`bottom`&&(n.bottom=`0`,n.zIndex=`4`),{gridRow:e+2,gridColumn:1,...n}}function N(e,t){if(!d.value)return!1;let n=[...b.value,...y.value,...x.value].map(e=>e.id),r=_.value.map(e=>e.id),i=n.indexOf(d.value.startRowId),a=n.indexOf(d.value.endRowId),o=r.indexOf(d.value.startColumnId),s=r.indexOf(d.value.endColumnId),c=n.indexOf(e),l=r.indexOf(t);return c>=Math.min(i,a)&&c<=Math.max(i,a)&&l>=Math.min(o,s)&&l<=Math.max(o,s)}function P(e,t,n=!1){u.value={rowId:e,columnId:t},n&&d.value?d.value={...d.value,endRowId:e,endColumnId:t}:d.value={startRowId:e,startColumnId:t,endRowId:e,endColumnId:t},i(`focus`,u.value),i(`selection`,d.value)}function ae(e,t,n){p.value&&z(!0),f.value=!0,P(t.id,n.id,e.shiftKey),o.value?.focus(),e.preventDefault(),document.addEventListener(`mouseup`,se,{once:!0})}function oe(e,t){!f.value||!d.value||(d.value={...d.value,endRowId:e.id,endColumnId:t.id},i(`selection`,d.value))}function se(){f.value=!1}function ce(e,t){k(e,t)||R(e,t,``)}function F(e,t,n=!1){if(!u.value){let e=_.value[0],t=S.value[0];e&&t&&P(t.id,e.id);return}let r=[...b.value,...y.value,...x.value],i=r.findIndex(e=>e.id===u.value.rowId),a=_.value.findIndex(e=>e.id===u.value.columnId),o=Math.max(0,Math.min(r.length-1,i+e)),s=Math.max(0,Math.min(_.value.length-1,a+t));P(r[o].id,_.value[s].id,n),I(r[o].id)}function I(e){let t=y.value.findIndex(t=>t.id===e);if(t<0||!o.value)return;let n=t*$,r=o.value;n<r.scrollTop?r.scrollTop=n:n+$>r.scrollTop+r.clientHeight-Q&&(r.scrollTop=n-r.clientHeight+Q+$)}function le(){m.value=o.value?.scrollTop??0}function L(e){if(!p.value){if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`z`){e.preventDefault(),e.shiftKey?q():K();return}switch(e.key){case`ArrowDown`:e.preventDefault(),F(1,0,e.shiftKey);break;case`ArrowUp`:e.preventDefault(),F(-1,0,e.shiftKey);break;case`ArrowLeft`:e.preventDefault(),F(0,-1,e.shiftKey);break;case`ArrowRight`:e.preventDefault(),F(0,1,e.shiftKey);break;case`Tab`:e.preventDefault(),F(0,e.shiftKey?-1:1);break;case`Enter`:if(e.preventDefault(),u.value){let e=r.rows.find(e=>e.id===u.value.rowId),t=r.columns.find(e=>e.id===u.value.columnId);e&&t&&!k(e,t)&&R(e,t,``)}break;case`Escape`:d.value=null,i(`selection`,null);break;case`Delete`:case`Backspace`:e.preventDefault(),V();break;case`F2`:if(e.preventDefault(),u.value){let e=r.rows.find(e=>e.id===u.value.rowId),t=r.columns.find(e=>e.id===u.value.columnId);if(e&&t&&!k(e,t)){let n=T(e.id,t.id);R(e,t,n==null?``:String(n))}}break;default:if(u.value&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&e.key.length===1){let t=r.rows.find(e=>e.id===u.value.rowId),n=r.columns.find(e=>e.id===u.value.columnId);t&&n&&!k(t,n)&&(e.preventDefault(),R(t,n,e.key))}}}}function R(e,t,n){p.value={rowId:e.id,columnId:t.id,draft:n},(0,a.nextTick)(()=>{s.value?.focus(),s.value?.select()})}let ue=(0,a.computed)(()=>{if(p.value)return r.columns.find(e=>e.id===p.value.columnId)?.type===`number`?`decimal`:`text`}),de=(0,a.computed)(()=>{if(!p.value)return{display:`none`};let e=o.value?.querySelector(`[data-cell="${p.value.rowId}::${p.value.columnId}"]`);if(!e)return{display:`none`};let t=e.getBoundingClientRect(),n=o.value.getBoundingClientRect();return{top:`${t.top-n.top}px`,left:`${t.left-n.left}px`,width:`${t.width}px`,height:`${t.height}px`}});function fe(e){e.key===`Enter`?(e.preventDefault(),z(!1),F(1,0)):e.key===`Tab`?(e.preventDefault(),z(!1),F(0,e.shiftKey?-1:1)):e.key===`Escape`&&(e.preventDefault(),p.value=null,o.value?.focus())}function z(e){if(!p.value)return;let{rowId:t,columnId:n,draft:a}=p.value,s=r.columns.find(e=>e.id===n);if(!s){p.value=null;return}let c;try{c=s.parse?s.parse(a):w(s,a)}catch{p.value=null;return}let l=T(t,n);if(l===c){p.value=null;return}let u={rowId:t,columnId:n,before:l,after:c};G([u]),i(`commit`,u),i(`change`,[u]),p.value=null,o.value?.focus()}function B(){if(!d.value)return[];let e=[...b.value,...y.value,...x.value].map(e=>e.id),t=_.value.map(e=>e.id),n=e.indexOf(d.value.startRowId),r=e.indexOf(d.value.endRowId),i=t.indexOf(d.value.startColumnId),a=t.indexOf(d.value.endColumnId),o=[];for(let s=Math.min(n,r);s<=Math.max(n,r);s++)for(let n=Math.min(i,a);n<=Math.max(i,a);n++)o.push({rowId:e[s],columnId:t[n]});return o}function V(){let e=B(),t=[];for(let{rowId:n,columnId:i}of e){let e=r.rows.find(e=>e.id===n),a=r.columns.find(e=>e.id===i);if(!e||!a||k(e,a))continue;let o=T(n,i);o==null||o===``||t.push({rowId:n,columnId:i,before:o,after:null})}if(t.length!==0){G(t);for(let e of t)i(`commit`,e);i(`change`,t)}}function H(e){if(B().length===0)return;let t=[...b.value,...y.value,...x.value].map(e=>e.id),n=_.value.map(e=>e.id),r=Math.min(t.indexOf(d.value.startRowId),t.indexOf(d.value.endRowId)),i=Math.max(t.indexOf(d.value.startRowId),t.indexOf(d.value.endRowId)),a=Math.min(n.indexOf(d.value.startColumnId),n.indexOf(d.value.endColumnId)),o=Math.max(n.indexOf(d.value.startColumnId),n.indexOf(d.value.endColumnId)),s=[];for(let e=r;e<=i;e++){let r=[];for(let i=a;i<=o;i++){let a=T(t[e],n[i]);r.push(a==null?``:String(a))}s.push(r.join(` `))}e.preventDefault(),e.clipboardData?.setData(`text/plain`,s.join(`
|
|
2
|
+
`))}function pe(e){H(e),V()}function me(e){if(!u.value)return;let t=e.clipboardData?.getData(`text/plain`)??``;if(!t)return;e.preventDefault();let n=t.replace(/\r\n?/g,`
|
|
3
|
+
`).split(`
|
|
4
|
+
`).map(e=>e.split(` `)),a=[...b.value,...y.value,...x.value].map(e=>e.id),o=_.value.map(e=>e.id),s=a.indexOf(u.value.rowId),c=o.indexOf(u.value.columnId),l=[];if(n.forEach((e,t)=>{e.forEach((e,n)=>{let i=a[s+t],u=o[c+n];if(!i||!u)return;let d=r.rows.find(e=>e.id===i),f=r.columns.find(e=>e.id===u);if(!d||!f||k(d,f))return;let p;try{p=f.parse?f.parse(e):w(f,e)}catch{return}let m=T(i,u);m!==p&&l.push({rowId:i,columnId:u,before:m,after:p})})}),l.length!==0){G(l);for(let e of l)i(`commit`,e);i(`change`,l)}}function U(e,t){let n=e.clientX,r=v(t),i=t.minWidth??60,a=e=>{let a=Math.max(i,r+(e.clientX-n));c.value={...c.value,[t.id]:a}},o=()=>{window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o)};window.addEventListener(`mousemove`,a),window.addEventListener(`mouseup`,o)}function W(e){e.sortable&&(l.value?.columnId===e.id?l.value=l.value.direction===`asc`?{columnId:e.id,direction:`desc`}:null:l.value={columnId:e.id,direction:`asc`})}function G(e){h.value.push(e),g.value=[]}function K(){let e=h.value.pop();if(!e)return;let t=e.map(e=>({...e,before:e.after,after:e.before}));for(let e of t)i(`commit`,e);i(`change`,t),g.value.push(e)}function q(){let e=g.value.pop();if(e){for(let t of e)i(`commit`,t);i(`change`,e),h.value.push(e)}}return(0,a.onMounted)(()=>{o.value?.focus()}),t({focus:(e,t)=>P(e,t),undo:K,redo:q,getSelection:()=>d.value}),(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-spreadsheet`,{"nb-spreadsheet--editing":!!p.value}])},[t.$slots.toolbar?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ct,[(0,a.renderSlot)(t.$slots,`toolbar`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,{ref_key:`scrollerRef`,ref:o,class:`nb-spreadsheet__scroller`,tabindex:`0`,onKeydown:L,onCopy:H,onCut:pe,onPaste:me,onScroll:le},[(0,a.createElementVNode)(`div`,{class:`nb-spreadsheet__grid`,style:(0,a.normalizeStyle)(ee.value)},[e.showGutter?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,lt)):(0,a.createCommentVNode)(``,!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(_.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:`h-${t.id}`,class:(0,a.normalizeClass)([`nb-spreadsheet__header`,ne(t)]),style:(0,a.normalizeStyle)(ie(t,n)),onClick:e=>W(t)},[(0,a.createElementVNode)(`span`,dt,(0,a.toDisplayString)(t.label),1),l.value&&l.value.columnId===t.id?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,ft,(0,a.toDisplayString)(l.value.direction===`asc`?`▲`:`▼`),1)):(0,a.createCommentVNode)(``,!0),e.resizable?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:1,class:`nb-spreadsheet__resize-handle`,onMousedown:(0,a.withModifiers)(e=>U(e,t),[`stop`])},null,40,pt)):(0,a.createCommentVNode)(``,!0)],14,ut))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(S.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:`r-${t.id}`},[e.showGutter?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:(0,a.normalizeClass)([`nb-spreadsheet__gutter`,{"nb-spreadsheet__gutter--pinned-top":t.pinned===`top`,"nb-spreadsheet__gutter--pinned-bottom":t.pinned===`bottom`}]),style:(0,a.normalizeStyle)(M(n,t))},(0,a.toDisplayString)(t.gutterLabel??n+1),7)):(0,a.createCommentVNode)(``,!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(_.value,(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:`c-${t.id}-${e.id}`,class:(0,a.normalizeClass)([`nb-spreadsheet__cell`,O(t,e)]),style:(0,a.normalizeStyle)(j(t,e,n,r)),title:te(t,e),"data-cell":`${t.id}::${e.id}`,"data-row":t.id,"data-col":e.id,onMousedown:n=>ae(n,t,e),onMouseenter:n=>oe(t,e),onDblclick:n=>ce(t,e)},[(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(D(t,e)),1)],46,mt))),128))],64))),128))],4),p.value?(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)(`input`,{key:0,ref_key:`editorRef`,ref:s,"onUpdate:modelValue":n[0]||=e=>p.value.draft=e,class:`nb-spreadsheet__editor`,style:(0,a.normalizeStyle)(de.value),inputmode:ue.value,onBlur:n[1]||=e=>z(!0),onKeydown:(0,a.withModifiers)(fe,[`stop`])},null,44,ht)),[[a.vModelText,p.value.draft]]):(0,a.createCommentVNode)(``,!0)],544)],2))}}),vt=e.t({default:()=>yt}),yt=i.t(_t,[[`__scopeId`,`data-v-df859a7e`]]),bt=Object.assign({"./components/labs/Spreadsheet.vue":vt}),xt={install(e){Object.keys(bt).forEach(t=>{let n=`Nb${t.replace(/(.+\/)(\w+)(\.vue)$/,`$2`)}`,r=bt[t];e.component(n,r.default)})}},St={install(e,t={}){if(t.components)for(let[n,r]of Object.entries(t.components))e.component(n,r);e.use(ot),e.use(st)}};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return St}});
|
package/dist/main.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export type { TGlyphKind, TGlyphLoader, } from './composables/glyphCatalog.compo
|
|
|
41
41
|
export { default as NbAccordion } from './components/Accordion.vue';
|
|
42
42
|
export { default as NbAccordionItem } from './components/AccordionItem.vue';
|
|
43
43
|
export type { IAccordionProps, IAccordionItemProps, TAccordionAlign, TAccordionSize, } from './components/Accordion.d';
|
|
44
|
+
export { default as NbActionGroup } from './components/ActionGroup.vue';
|
|
45
|
+
export type { IActionGroupItem, IActionGroupProps, TActionGroupOverflow, } from './components/ActionGroup.d';
|
|
44
46
|
export { default as NbCard } from './components/Card.vue';
|
|
45
47
|
export { default as NbCardGrid } from './components/CardGrid.vue';
|
|
46
48
|
export type { ICardProps, ICardGridProps } from './components/CardGrid.d';
|
|
@@ -219,6 +221,7 @@ export { useConfirm, dismissConfirms, } from './composables/useConfirm.composabl
|
|
|
219
221
|
export type { TConfirmFn } from './composables/useConfirm.composable';
|
|
220
222
|
export { useWalkthrough } from './composables/useWalkthrough.composable';
|
|
221
223
|
export { useReducedMotion, prefersReducedMotion, } from './composables/useReducedMotion.composable';
|
|
224
|
+
export { usePhoneLayout, NB_PHONE_QUERY, NB_PHONE_TOUCH_QUERY, } from './composables/usePhoneLayout.composable';
|
|
222
225
|
export { useContextMenu } from './composables/useContextMenu.composable';
|
|
223
226
|
export { useInlineLoading } from './composables/useInlineLoading.composable';
|
|
224
227
|
export type { TInlineLoadingStatus, IUseInlineLoading, IUseInlineLoadingOptions, } from './composables/useInlineLoading.composable';
|
|
@@ -226,6 +229,8 @@ export { announceLoadingComplete, suppressLoadingAnnouncement, } from './composa
|
|
|
226
229
|
export { acquireScrollLock, releaseScrollLock, useScrollLock, } from './composables/useScrollLock.composable';
|
|
227
230
|
export { useShellSlot } from './composables/useShellSlot.composable';
|
|
228
231
|
export type { TShellSlotName, TShellSlotClaim, IShellSlotOptions, IShellSlot, } from './composables/useShellSlot.composable';
|
|
232
|
+
export { useShellLayout } from './composables/useShellLayout.composable';
|
|
233
|
+
export type { IShellLayout } from './composables/useShellLayout.composable';
|
|
229
234
|
export { useTheme, configureTheme } from './composables/useTheme.composable';
|
|
230
235
|
export type { TTheme, TResolvedTheme, IThemeOptions, IThemeController, } from './composables/useTheme.composable';
|
|
231
236
|
export { useAppearance, configureAppearance, appearanceAttribute, } from './composables/useAppearance.composable';
|