@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
|
@@ -10,10 +10,16 @@ var _ = [
|
|
|
10
10
|
"placeholder",
|
|
11
11
|
"onKeydown"
|
|
12
12
|
], v = [
|
|
13
|
+
"id",
|
|
14
|
+
"value",
|
|
15
|
+
"aria-label",
|
|
16
|
+
"placeholder",
|
|
17
|
+
"onKeydown"
|
|
18
|
+
], y = [
|
|
13
19
|
"id",
|
|
14
20
|
"aria-label",
|
|
15
21
|
"disabled"
|
|
16
|
-
],
|
|
22
|
+
], b = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
17
23
|
__name: "InlineEdit",
|
|
18
24
|
props: {
|
|
19
25
|
modelValue: {},
|
|
@@ -24,6 +30,10 @@ var _ = [
|
|
|
24
30
|
type: Boolean,
|
|
25
31
|
default: !1
|
|
26
32
|
},
|
|
33
|
+
multiline: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
27
37
|
id: {}
|
|
28
38
|
},
|
|
29
39
|
emits: [
|
|
@@ -31,53 +41,76 @@ var _ = [
|
|
|
31
41
|
"commit",
|
|
32
42
|
"cancel"
|
|
33
43
|
],
|
|
34
|
-
setup(e, { expose: s, emit:
|
|
35
|
-
let
|
|
44
|
+
setup(e, { expose: s, emit: b }) {
|
|
45
|
+
let x = e, S = b, C = d(!1), w = d(null), T = "", E = n(() => ({
|
|
36
46
|
md: 14,
|
|
37
47
|
lg: 16,
|
|
38
48
|
xl: 18
|
|
39
|
-
})[
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
})[x.size ?? "md"]);
|
|
50
|
+
function D() {
|
|
51
|
+
x.disabled || (T = x.modelValue, C.value = !0, c(() => {
|
|
52
|
+
k(), w.value?.focus(), w.value?.select();
|
|
43
53
|
}));
|
|
44
54
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
function O() {
|
|
49
|
-
S.value && (S.value = !1, x("commit", b.modelValue));
|
|
55
|
+
function O(e) {
|
|
56
|
+
S("update:modelValue", e.target.value);
|
|
50
57
|
}
|
|
51
58
|
function k() {
|
|
52
|
-
|
|
59
|
+
let e = w.value;
|
|
60
|
+
!x.multiline || !(e instanceof HTMLTextAreaElement) || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
61
|
+
}
|
|
62
|
+
function A(e) {
|
|
63
|
+
S("update:modelValue", e.target.value), k();
|
|
53
64
|
}
|
|
54
|
-
|
|
65
|
+
function j(e) {
|
|
66
|
+
e.shiftKey || e.isComposing || (e.preventDefault(), M());
|
|
67
|
+
}
|
|
68
|
+
function M() {
|
|
69
|
+
C.value && (C.value = !1, S("commit", x.modelValue));
|
|
70
|
+
}
|
|
71
|
+
function N() {
|
|
72
|
+
C.value && (C.value = !1, S("update:modelValue", T), S("cancel"));
|
|
73
|
+
}
|
|
74
|
+
return s({ start: D }), (n, s) => C.value && e.multiline ? (u(), a("textarea", {
|
|
55
75
|
key: 0,
|
|
56
76
|
id: e.id,
|
|
57
77
|
ref_key: "input",
|
|
58
|
-
ref:
|
|
59
|
-
class: l(["nb-inline-edit__input", `nb-inline-edit__input--${e.size}`]),
|
|
78
|
+
ref: w,
|
|
79
|
+
class: l(["nb-inline-edit__input nb-inline-edit__input--multiline", `nb-inline-edit__input--${e.size}`]),
|
|
80
|
+
rows: "1",
|
|
60
81
|
value: e.modelValue,
|
|
61
82
|
"aria-label": e.label,
|
|
62
83
|
placeholder: e.placeholder,
|
|
63
|
-
onInput:
|
|
64
|
-
onBlur:
|
|
65
|
-
onKeydown: [m(
|
|
66
|
-
}, null, 42, _)) : (u(), a("
|
|
84
|
+
onInput: A,
|
|
85
|
+
onBlur: M,
|
|
86
|
+
onKeydown: [m(j, ["enter"]), m(h(N, ["prevent"]), ["esc"])]
|
|
87
|
+
}, null, 42, _)) : C.value ? (u(), a("input", {
|
|
67
88
|
key: 1,
|
|
68
89
|
id: e.id,
|
|
90
|
+
ref_key: "input",
|
|
91
|
+
ref: w,
|
|
92
|
+
class: l(["nb-inline-edit__input", `nb-inline-edit__input--${e.size}`]),
|
|
93
|
+
value: e.modelValue,
|
|
94
|
+
"aria-label": e.label,
|
|
95
|
+
placeholder: e.placeholder,
|
|
96
|
+
onInput: O,
|
|
97
|
+
onBlur: M,
|
|
98
|
+
onKeydown: [m(h(M, ["prevent"]), ["enter"]), m(h(N, ["prevent"]), ["esc"])]
|
|
99
|
+
}, null, 42, v)) : (u(), a("button", {
|
|
100
|
+
key: 2,
|
|
101
|
+
id: e.id,
|
|
69
102
|
type: "button",
|
|
70
103
|
class: l(["nb-inline-edit__text", [`nb-inline-edit__text--${e.size}`, { "is-disabled": e.disabled }]]),
|
|
71
104
|
"aria-label": `${e.label}: ${e.modelValue || e.placeholder || "empty"}. Press Enter to edit.`,
|
|
72
105
|
disabled: e.disabled,
|
|
73
|
-
onClick:
|
|
106
|
+
onClick: D
|
|
74
107
|
}, [o("span", { class: l({ "nb-inline-edit__placeholder": !e.modelValue }) }, f(e.modelValue || e.placeholder), 3), e.disabled ? i("", !0) : (u(), r(t, {
|
|
75
108
|
key: 0,
|
|
76
109
|
class: "nb-inline-edit__pencil",
|
|
77
110
|
name: p(g),
|
|
78
|
-
size:
|
|
79
|
-
}, null, 8, ["name", "size"]))], 10,
|
|
111
|
+
size: E.value
|
|
112
|
+
}, null, 8, ["name", "size"]))], 10, y));
|
|
80
113
|
}
|
|
81
|
-
}), [["__scopeId", "data-v-
|
|
114
|
+
}), [["__scopeId", "data-v-b8610ff0"]]);
|
|
82
115
|
//#endregion
|
|
83
|
-
export {
|
|
116
|
+
export { b as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./Spinner-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./Spinner-UsyGqwVq.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/warning-circle`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);s=e.n(s);var c=function(e){return e.Inactive=`inactive`,e.Active=`active`,e.Finished=`finished`,e.Error=`error`,e}(c||{}),l=[`id`,`aria-live`],u={class:`nb-inline-loading__text`},d=(0,a.defineComponent)({__name:`InlineLoading`,props:{status:{default:c.Inactive},label:{default:`Saving`},finishedLabel:{default:`Saved`},errorLabel:{default:`Could not save`},dwell:{default:1600},reserveSpace:{type:Boolean,default:!0},id:{default:void 0}},emits:[`success`],setup(e,{emit:t}){let d=e,f=t,p=r.useStableId(d),m;function h(){m&&=(clearTimeout(m),void 0)}(0,a.watch)(()=>d.status,e=>{h(),e===c.Finished&&(m=setTimeout(()=>{m=void 0,f(`success`)},d.dwell))},{immediate:!0}),(0,a.onBeforeUnmount)(h);let g=(0,a.computed)(()=>{switch(d.status){case c.Active:return d.label;case c.Finished:return d.finishedLabel;case c.Error:return d.errorLabel;default:return``}}),_=(0,a.computed)(()=>d.status===c.Finished?s:d.status===c.Error?o:null),v=(0,a.computed)(()=>d.status===c.Inactive?`off`:d.status===c.Error?`assertive`:`polite`),y=(0,a.computed)(()=>[`nb-inline-loading`,`nb-inline-loading--${d.status}`]),b=(0,a.computed)(()=>{if(!d.reserveSpace)return;let e=Math.max(d.label.length,d.finishedLabel.length,d.errorLabel.length);return{"--nb-inline-loading-reserve":`${e+1}ch`}});return(t,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{id:(0,a.unref)(p),class:(0,a.normalizeClass)(y.value),style:(0,a.normalizeStyle)(b.value),role:`status`,"aria-live":v.value},[e.status===`active`?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-inline-loading__spinner`,size:`sm`,tone:`inherit`,decorative:``})):_.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,class:`nb-inline-loading__icon`,name:_.value,size:16,"aria-hidden":`true`},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,u,[(0,a.renderSlot)(t.$slots,`default`,{status:e.status,text:g.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(g.value),1)],!0)])],14,l))}}),f=t.t(d,[[`__scopeId`,`data-v-077014e8`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
3
|
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
|
-
import { t as r } from "./Spinner-
|
|
4
|
+
import { t as r } from "./Spinner-C7NYF-Xf.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, watch as v } from "vue";
|
|
6
6
|
import * as y from "@nubisco/ui/icons/warning-circle";
|
|
7
7
|
import * as b from "@nubisco/ui/icons/check-circle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-Cy2_8mLH.cjs`),n=require(`./scales-4WxjhxBm.cjs`),r=require(`./useChartSize-C-BIN0vc.cjs`);let i=require(`vue`);var a=[`width`,`height`,`aria-label`],o={key:0},s=[`x1`,`x2`,`y1`,`y2`],c={class:`nb-chart__axis`},l=[`x`,`y`],u={class:`nb-chart__axis`},d=[`x`,`y`],f=[`x1`,`x2`,`y1`,`y2`],p=[`y`,`transform`],ee=[`x`,`y`],te=[`d`,`fill`],m=[`d`,`stroke`],h=[`cx`,`cy`,`r`,`fill`,`onMousedown`,`onContextmenu`],g={key:5},_=[`x1`,`x2`,`y1`,`y2`],v=[`x1`,`x2`,`y1`,`y2`],y=`var(--nb-c-surface)`,b=(0,i.defineComponent)({__name:`InterpolationChart`,props:{modelValue:{default:()=>[]},inputLabel:{default:void 0},outputLabel:{default:void 0},inputMin:{default:0},inputMax:{default:100},outputMin:{default:0},outputMax:{default:100},editable:{type:Boolean,default:!0},minPoints:{default:2},inputStep:{default:0},outputStep:{default:0},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>[]}},emits:[`update:modelValue`],setup(e,{emit:b}){let x=e,S=b,C=(0,i.computed)(()=>t.i(0,x.colors)),w={top:16,right:16,bottom:32,left:48},T=(0,i.ref)(null),E=r.t(T,{width:480,height:240}),D=(0,i.computed)(()=>Math.max(0,E.value.width-w.left-w.right)),O=(0,i.computed)(()=>Math.max(0,E.value.height-w.top-w.bottom)),k=(0,i.computed)(()=>[...x.modelValue].sort((e,t)=>e.input-t.input)),A=(0,i.computed)(()=>[x.inputMin,x.inputMax]),j=(0,i.computed)(()=>{let e=k.value.map(e=>e.output);return n.i(Math.min(x.outputMin,...e),Math.max(x.outputMax,...e),.05)}),M=(0,i.computed)(()=>n.r(A.value,[w.left,E.value.width-w.right])),N=(0,i.computed)(()=>n.r(j.value,[E.value.height-w.bottom,w.top])),P=(0,i.computed)(()=>M.value.ticks(6)),F=(0,i.computed)(()=>N.value.ticks(5)),I=e=>{let[t,n]=A.value,[r,i]=M.value.range;return t+(e-r)/(i-r)*(n-t)},L=e=>{let[t,n]=j.value,[r,i]=N.value.range;return t+(e-r)/(i-r)*(n-t)},R=(e,t)=>!t||t<=0?e:Math.round(e/t)*t,z=(e,t,n)=>Math.max(t,Math.min(n,e)),B=(e,t=1)=>Math.round(e*10**t)/10**t,V=(0,i.computed)(()=>{let e=k.value;return e.length<2?``:e.map((e,t)=>`${t===0?`M`:`L`}${M.value(e.input)},${N.value(e.output)}`).join(` `)}),H=(0,i.computed)(()=>{let e=k.value;if(e.length<2)return``;let t=E.value.height-w.bottom;return`${e.map((e,t)=>`${t===0?`M`:`L`}${M.value(e.input)},${N.value(e.output)}`).join(` `)} L${M.value(e[e.length-1].input)},${t} L${M.value(e[0].input)},${t} Z`}),U=(0,i.ref)(null),W=(0,i.ref)(null);function G(e){S(`update:modelValue`,[...e].sort((e,t)=>e.input-t.input))}function K(e,t){x.editable&&(U.value=e,window.addEventListener(`mousemove`,J),window.addEventListener(`mouseup`,Y))}function q(e){let t=T.value?.querySelector(`svg`);if(!t)return null;let n=t.getBoundingClientRect();return{px:e.clientX-n.left,py:e.clientY-n.top}}function J(e){if(U.value===null)return;let t=q(e);if(!t)return;let n=I(t.px),r=L(t.py),i=[...k.value],a=U.value,o=x.inputStep>0?x.inputStep:.1;i[a]={input:B(R(z(n,a>0?i[a-1].input+o:x.inputMin,a<i.length-1?i[a+1].input-o:x.inputMax),x.inputStep)),output:B(R(z(r,x.outputMin,x.outputMax),x.outputStep))},G(i)}function Y(){U.value=null,window.removeEventListener(`mousemove`,J),window.removeEventListener(`mouseup`,Y)}function X(e){if(U.value!==null)return;let t=q(e);if(!t)return;let n=-1,r=1/0;for(let e=0;e<k.value.length;e++){let i=k.value[e],a=M.value(i.input)-t.px,o=N.value(i.output)-t.py,s=Math.sqrt(a*a+o*o);s<r&&(r=s,n=e)}W.value=r<20?n:null,Q.value={x:t.px+12,y:t.py-12}}function Z(){U.value===null&&(W.value=null)}function ne(){U.value!==null&&(U.value=null,window.removeEventListener(`mousemove`,J),window.removeEventListener(`mouseup`,Y))}function re(e){if(!x.editable)return;let t=q(e);if(!t)return;let n=I(t.px),r=L(t.py);if(n<x.inputMin||n>x.inputMax||r<x.outputMin||r>x.outputMax)return;let i=B(R(z(n,x.inputMin,x.inputMax),x.inputStep)),a=B(R(z(r,x.outputMin,x.outputMax),x.outputStep));G([...k.value,{input:i,output:a}])}function ie(e){x.editable&&(k.value.length<=x.minPoints||G(k.value.filter((t,n)=>n!==e)))}(0,i.onBeforeUnmount)(()=>{window.removeEventListener(`mousemove`,J),window.removeEventListener(`mouseup`,Y)});let Q=(0,i.ref)({x:0,y:0}),ae=(0,i.computed)(()=>W.value!==null||U.value!==null),oe=(0,i.computed)(()=>{let e=U.value??W.value;return e===null?``:`Point ${e+1}`}),se=(0,i.computed)(()=>{let e=U.value??W.value;if(e===null||e>=k.value.length)return[];let t=k.value[e];return[{label:x.inputLabel||`Input`,value:$(t.input),color:C.value},{label:x.outputLabel||`Output`,value:$(t.output),color:C.value}]}),$=e=>Number.isInteger(e)?String(e):e.toFixed(1);return(n,r)=>((0,i.openBlock)(),(0,i.createBlock)(t.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":!1},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,{ref_key:`root`,ref:T,class:`nb-interpolation-chart`},[((0,i.openBlock)(),(0,i.createElementBlock)(`svg`,{width:(0,i.unref)(E).width,height:(0,i.unref)(E).height,class:`nb-chart__svg`,role:`img`,"aria-label":e.title||`Interpolation chart`,onMousemove:X,onMouseleave:Z,onMouseup:ne,onDblclick:re,onContextmenu:r[0]||=(0,i.withModifiers)(()=>{},[`prevent`])},[e.showGrid&&(0,i.unref)(E).width>0?((0,i.openBlock)(),(0,i.createElementBlock)(`g`,o,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(F.value,e=>((0,i.openBlock)(),(0,i.createElementBlock)(`line`,{key:`grid-${e}`,class:`nb-chart__gridline`,x1:w.left,x2:(0,i.unref)(E).width-w.right,y1:N.value(e),y2:N.value(e)},null,8,s))),128))])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`g`,c,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(F.value,e=>((0,i.openBlock)(),(0,i.createElementBlock)(`text`,{key:`yt-${e}`,x:w.left-6,y:N.value(e),"text-anchor":`end`,"dominant-baseline":`middle`},(0,i.toDisplayString)($(e)),9,l))),128))]),(0,i.createElementVNode)(`g`,u,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(P.value,e=>((0,i.openBlock)(),(0,i.createElementBlock)(`text`,{key:`xt-${e}`,x:M.value(e),y:(0,i.unref)(E).height-w.bottom+14,"text-anchor":`middle`},(0,i.toDisplayString)($(e)),9,d))),128))]),(0,i.createElementVNode)(`line`,{class:`nb-chart__axis-line`,x1:w.left,x2:(0,i.unref)(E).width-w.right,y1:(0,i.unref)(E).height-w.bottom,y2:(0,i.unref)(E).height-w.bottom},null,8,f),e.outputLabel?((0,i.openBlock)(),(0,i.createElementBlock)(`text`,{key:1,class:`nb-chart__axis-label`,x:12,y:w.top+O.value/2,"text-anchor":`middle`,transform:`rotate(-90, 12, ${w.top+O.value/2})`},(0,i.toDisplayString)(e.outputLabel),9,p)):(0,i.createCommentVNode)(``,!0),e.inputLabel?((0,i.openBlock)(),(0,i.createElementBlock)(`text`,{key:2,class:`nb-chart__axis-label`,x:w.left+D.value/2,y:(0,i.unref)(E).height-2,"text-anchor":`middle`},(0,i.toDisplayString)(e.inputLabel),9,ee)):(0,i.createCommentVNode)(``,!0),k.value.length>=2?((0,i.openBlock)(),(0,i.createElementBlock)(`path`,{key:3,class:`nb-interpolation-chart__area`,d:H.value,fill:C.value,opacity:`0.12`},null,8,te)):(0,i.createCommentVNode)(``,!0),k.value.length>=2?((0,i.openBlock)(),(0,i.createElementBlock)(`path`,{key:4,class:`nb-interpolation-chart__line`,d:V.value,stroke:C.value,fill:`none`,"stroke-width":`2`,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,m)):(0,i.createCommentVNode)(``,!0),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(k.value,(t,n)=>((0,i.openBlock)(),(0,i.createElementBlock)(`circle`,{key:`pt-${n}`,class:(0,i.normalizeClass)([`nb-interpolation-chart__point`,{"nb-interpolation-chart__point--editable":e.editable,"nb-interpolation-chart__point--dragging":U.value===n,"nb-interpolation-chart__point--hover":W.value===n&&U.value===null}]),cx:M.value(t.input),cy:N.value(t.output),r:U.value===n?7:W.value===n?6:5,fill:C.value,stroke:y,"stroke-width":`2`,onMousedown:(0,i.withModifiers)(e=>K(n,e),[`prevent`]),onContextmenu:(0,i.withModifiers)(e=>ie(n),[`prevent`])},null,42,h))),128)),U.value===null?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`g`,g,[(0,i.createElementVNode)(`line`,{class:`nb-interpolation-chart__crosshair`,x1:M.value(k.value[U.value].input),x2:M.value(k.value[U.value].input),y1:w.top,y2:(0,i.unref)(E).height-w.bottom},null,8,_),(0,i.createElementVNode)(`line`,{class:`nb-interpolation-chart__crosshair`,x1:w.left,x2:(0,i.unref)(E).width-w.right,y1:N.value(k.value[U.value].output),y2:N.value(k.value[U.value].output)},null,8,v)]))],40,a)),(0,i.createVNode)(t.l,{visible:e.showTooltip&&ae.value,x:Q.value.x,y:Q.value.y,title:oe.value,rows:se.value},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`]))}}),x=e.t(b,[[`__scopeId`,`data-v-676875de`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return x}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { i as t, l as n, u as r } from "./palette-
|
|
3
|
-
import { i, r as a } from "./scales-
|
|
4
|
-
import { t as o } from "./useChartSize-
|
|
2
|
+
import { i as t, l as n, u as r } from "./palette-StNyj_sM.js";
|
|
3
|
+
import { i, r as a } from "./scales-DlFF1BRk.js";
|
|
4
|
+
import { t as o } from "./useChartSize-UdZSuP3G.js";
|
|
5
5
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as ee, defineComponent as p, normalizeClass as te, onBeforeUnmount as ne, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, withCtx as re, withModifiers as y } from "vue";
|
|
6
6
|
//#region src/components/Charts/InterpolationChart.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var b = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-Cy2_8mLH.cjs`),n=require(`./ChartLegend-DGgW0yjG.cjs`),r=require(`./scales-4WxjhxBm.cjs`),i=require(`./useChartSize-C-BIN0vc.cjs`);let a=require(`vue`);var o=[`width`,`height`,`aria-label`],s={key:0},c=[`x1`,`x2`,`y1`,`y2`],l={class:`nb-chart__axis`},u=[`x`,`y`],d={class:`nb-chart__axis`},f=[`x`,`y`],p=[`x1`,`x2`,`y1`,`y2`],m=[`d`,`fill`],h=[`d`,`stroke`],g=[`cx`,`cy`,`r`,`fill`],_=[`x1`,`x2`,`y1`,`y2`],v=(0,a.defineComponent)({__name:`LineChart`,props:{series:{default:()=>[]},area:{type:Boolean,default:!1},points:{type:Boolean,default:!1},curve:{default:`smooth`},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>t.n}},setup(e){let v=e,y={top:12,right:16,bottom:28,left:44},b=(0,a.ref)(null),x=i.t(b,{width:480,height:240}),S=(0,a.computed)(()=>v.series.map((e,n)=>({name:e.name,data:e.data,color:e.color??t.i(n,v.colors)}))),C=(0,a.computed)(()=>(v.series[0]?.data??[]).map(e=>e.x)),w=(0,a.computed)(()=>{let e=v.series.flatMap(e=>e.data.map(e=>e.y));return e.length?r.i(Math.min(0,...e),Math.max(...e),.1):[0,1]}),T=(0,a.computed)(()=>r.r(w.value,[Math.max(y.top,x.value.height-y.bottom),y.top])),E=(0,a.computed)(()=>T.value.ticks(5)),D=(0,a.computed)(()=>Math.max(0,x.value.width-y.left-y.right)),O=e=>{let t=C.value.length;return t<=1?y.left+D.value/2:y.left+e/(t-1)*D.value},k=(0,a.computed)(()=>{let e=C.value,t=Math.max(1,Math.ceil(e.length/6)),n=[];for(let r=0;r<e.length;r+=t)n.push({index:r,value:e[r]});return e.length&&n[n.length-1].index!==e.length-1&&n.push({index:e.length-1,value:e[e.length-1]}),n}),A=e=>e.length?M(e.map((e,t)=>[O(t),T.value(e.y)]),v.curve):``,j=e=>{if(!e.length)return``;let t=e.map((e,t)=>[O(t),T.value(e.y)]),n=x.value.height-y.bottom;return`${M(t,v.curve)} L${t[t.length-1][0]},${n} L${t[0][0]},${n} Z`},M=(e,t)=>{if(!e.length)return``;if(e.length===1)return`M${e[0][0]},${e[0][1]}`;if(t===`linear`)return e.map((e,t)=>`${t===0?`M`:`L`}${e[0]},${e[1]}`).join(` `);if(t===`step`){let t=`M${e[0][0]},${e[0][1]}`;for(let n=1;n<e.length;n++){let[r,i]=e[n-1],[a,o]=e[n],s=(r+a)/2;t+=` L${s},${i} L${s},${o} L${a},${o}`}return t}let n=.2,r=`M${e[0][0]},${e[0][1]}`;for(let t=0;t<e.length-1;t++){let i=e[t-1]??e[t],a=e[t],o=e[t+1],s=e[t+2]??o,c=a[0]+(o[0]-i[0])*n,l=a[1]+(o[1]-i[1])*n,u=o[0]-(s[0]-a[0])*n,d=o[1]-(s[1]-a[1])*n;r+=` C${c},${l} ${u},${d} ${o[0]},${o[1]}`}return r},N=e=>Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}k`:Number.isInteger(e)?String(e):e.toFixed(1),P=(0,a.ref)(null),F=(0,a.ref)({x:0,y:0}),I=e=>{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.left,r=C.value.length;if(!r)return;let i=(n-y.left)/Math.max(1,D.value);P.value=Math.round(Math.min(1,Math.max(0,i))*(r-1)),F.value={x:e.clientX-t.left+12,y:e.clientY-t.top+12}},L=(0,a.computed)(()=>P.value===null?[]:S.value.map(e=>({label:e.name,value:N(e.data[P.value]?.y??0),color:e.color})));return(r,i)=>((0,a.openBlock)(),(0,a.createBlock)(t.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&S.value.length>0},{legend:(0,a.withCtx)(()=>[(0,a.createVNode)(n.t,{items:S.value.map(e=>({label:e.name,color:e.color}))},null,8,[`items`])]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,{ref_key:`root`,ref:b,class:`nb-line-chart`},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{width:(0,a.unref)(x).width,height:(0,a.unref)(x).height,class:`nb-chart__svg`,role:`img`,"aria-label":e.title||`Line chart`,onMouseleave:i[0]||=e=>P.value=null,onMousemove:I},[e.showGrid&&(0,a.unref)(x).width>0?((0,a.openBlock)(),(0,a.createElementBlock)(`g`,s,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(E.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`grid-${e}`,class:`nb-chart__gridline`,x1:y.left,x2:(0,a.unref)(x).width-y.right,y1:T.value(e),y2:T.value(e)},null,8,c))),128))])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`g`,l,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(E.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`yt-${e}`,x:y.left-6,y:T.value(e),"text-anchor":`end`,"dominant-baseline":`middle`},(0,a.toDisplayString)(N(e)),9,u))),128))]),(0,a.createElementVNode)(`g`,d,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(k.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`xt-${t}`,x:O(e.index),y:(0,a.unref)(x).height-y.bottom+14,"text-anchor":`middle`},(0,a.toDisplayString)(e.value),9,f))),128))]),(0,a.createElementVNode)(`line`,{class:`nb-chart__axis-line`,x1:y.left,x2:(0,a.unref)(x).width-y.right,y1:(0,a.unref)(x).height-y.bottom,y2:(0,a.unref)(x).height-y.bottom},null,8,p),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(S.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`s-${n}`},[e.area?((0,a.openBlock)(),(0,a.createElementBlock)(`path`,{key:0,class:`nb-chart__area`,d:j(t.data),fill:t.color,opacity:`0.18`},null,8,m)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`path`,{class:`nb-chart__line`,d:A(t.data),stroke:t.color,fill:`none`,"stroke-width":`2`,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,h),e.points?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(t.data,(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`circle`,{key:`p-${n}-${r}`,cx:O(r),cy:T.value(e.y),r:P.value===r?4:3,fill:t.color,class:`nb-chart__point`},null,8,g))),128)):(0,a.createCommentVNode)(``,!0)]))),128)),P.value===null?(0,a.createCommentVNode)(``,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:1,class:`nb-chart__hover-line`,x1:O(P.value),x2:O(P.value),y1:y.top,y2:(0,a.unref)(x).height-y.bottom},null,8,_))],40,o)),(0,a.createVNode)(t.l,{visible:e.showTooltip&&P.value!==null,x:F.value.x,y:F.value.y,title:P.value===null?``:String(C.value[P.value]),rows:L.value},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),y=e.t(v,[[`__scopeId`,`data-v-728da300`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { i as t, l as n, n as r, u as i } from "./palette-
|
|
3
|
-
import { t as a } from "./ChartLegend-
|
|
4
|
-
import { i as o, r as s } from "./scales-
|
|
5
|
-
import { t as c } from "./useChartSize-
|
|
2
|
+
import { i as t, l as n, n as r, u as i } from "./palette-StNyj_sM.js";
|
|
3
|
+
import { t as a } from "./ChartLegend-BLTbVV2E.js";
|
|
4
|
+
import { i as o, r as s } from "./scales-DlFF1BRk.js";
|
|
5
|
+
import { t as c } from "./useChartSize-UdZSuP3G.js";
|
|
6
6
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
|
|
7
7
|
//#region src/components/Charts/LineChart.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var C = [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/usePhoneLayout.composable.cjs`);let t=require(`vue`);var n=(0,t.defineComponent)({__name:`Menu`,props:{open:{type:Boolean,default:!1},size:{default:`md`},minWidth:{default:160},maxWidth:{default:288}},emits:[`close`,`update:open`],setup(n,{expose:r,emit:i}){let a=n,o=i,s=(0,t.ref)(null),c=(0,t.ref)(-1),l=(0,t.reactive)([]),{phone:u}=e.usePhoneLayout();function d(e){return u.value?`min(${e}px, calc(100vw - 16px))`:`${e}px`}let f=(0,t.computed)(()=>({position:`fixed`,top:`${p.top}px`,left:`${p.left}px`,minWidth:d(a.minWidth),maxWidth:d(a.maxWidth),zIndex:u.value?`var(--nb-zindex-modal-dropdown)`:`var(--nb-zindex-menu)`})),p=(0,t.reactive)({top:0,left:0});function m(e){p.top=e.bottom,p.left=e.left,g()}function h(e,t){p.top=t,p.left=e,g()}function g(){a.open&&u.value&&(0,t.nextTick)(D)}function _(){o(`close`),o(`update:open`,!1)}function v(e){return l.includes(e)||l.push(e),l.indexOf(e)}function y(e){let t=l.indexOf(e);t>=0&&l.splice(t,1)}let b=new Set;function x(e){b.add(e)}function S(e){b.delete(e)}(0,t.provide)(`nb-menu`,{size:a.size,close:_,highlightedIndex:c.value,registerItem:v,unregisterItem:y,registerSurface:x,unregisterSurface:S});function C(){return s.value?Array.from(s.value.querySelectorAll(`[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]`)).filter(e=>!e.closest(`.nb-submenu`)):[]}function w(e){let t=C();e>=0&&e<t.length&&(c.value=e,t[e].focus())}function T(e){if(e.key===`Escape`){if(e.defaultPrevented)return;e.preventDefault(),e.stopPropagation(),_();return}let t=C();if(!t.length)return;let n=t.indexOf(document.activeElement);if(n>=0&&(c.value=n),e.key===`ArrowDown`){e.preventDefault(),e.stopPropagation();let n=c.value+1;for(;n<t.length&&t[n]?.getAttribute(`aria-disabled`)===`true`;)n++;n<t.length&&w(n)}else if(e.key===`ArrowUp`){e.preventDefault(),e.stopPropagation();let n=c.value-1;for(;n>=0&&t[n]?.getAttribute(`aria-disabled`)===`true`;)n--;n>=0&&w(n)}else e.key===`Tab`&&_()}function E(e){let t=e.target;if(!(!s.value||s.value.contains(t))){for(let e of b)if(e.contains(t))return;_()}}function D(){if(!s.value)return;let e=s.value.getBoundingClientRect();e.right>window.innerWidth&&(p.left=Math.max(8,window.innerWidth-e.width-8)),e.bottom>window.innerHeight&&(p.top=Math.max(8,window.innerHeight-e.height-8));let t=window.innerHeight-p.top-8;s.value.style.maxHeight=`${t}px`}return(0,t.watch)(()=>a.open,e=>{e?(c.value=-1,document.addEventListener(`mousedown`,E),(0,t.nextTick)(()=>{D(),C().length>0&&w(0)})):(c.value=-1,document.removeEventListener(`mousedown`,E))}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,E)}),r({setPosition:m,setPositionXY:h,close:_,el:s}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[(0,t.createVNode)(t.Transition,{name:`nb-menu`},{default:(0,t.withCtx)(()=>[n.open?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:0,ref_key:`menuRef`,ref:s,role:`menu`,class:(0,t.normalizeClass)([`nb-menu`,`nb-menu--${n.size}`]),style:(0,t.normalizeStyle)(f.value),onKeydown:T},[(0,t.renderSlot)(e.$slots,`default`)],38)):(0,t.createCommentVNode)(``,!0)]),_:3})]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { usePhoneLayout as e } from "./composables/usePhoneLayout.composable.mjs";
|
|
2
|
+
import { Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, provide as m, reactive as h, ref as g, renderSlot as _, watch as v, withCtx as y } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/Menu.vue
|
|
5
|
+
var b = /* @__PURE__ */ c({
|
|
6
|
+
__name: "Menu",
|
|
7
|
+
props: {
|
|
8
|
+
open: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
size: { default: "md" },
|
|
13
|
+
minWidth: { default: 160 },
|
|
14
|
+
maxWidth: { default: 288 }
|
|
15
|
+
},
|
|
16
|
+
emits: ["close", "update:open"],
|
|
17
|
+
setup(c, { expose: b, emit: x }) {
|
|
18
|
+
let S = c, C = x, w = g(null), T = g(-1), E = h([]), { phone: D } = e();
|
|
19
|
+
function O(e) {
|
|
20
|
+
return D.value ? `min(${e}px, calc(100vw - 16px))` : `${e}px`;
|
|
21
|
+
}
|
|
22
|
+
let k = r(() => ({
|
|
23
|
+
position: "fixed",
|
|
24
|
+
top: `${A.top}px`,
|
|
25
|
+
left: `${A.left}px`,
|
|
26
|
+
minWidth: O(S.minWidth),
|
|
27
|
+
maxWidth: O(S.maxWidth),
|
|
28
|
+
zIndex: D.value ? "var(--nb-zindex-modal-dropdown)" : "var(--nb-zindex-menu)"
|
|
29
|
+
})), A = h({
|
|
30
|
+
top: 0,
|
|
31
|
+
left: 0
|
|
32
|
+
});
|
|
33
|
+
function j(e) {
|
|
34
|
+
A.top = e.bottom, A.left = e.left, N();
|
|
35
|
+
}
|
|
36
|
+
function M(e, t) {
|
|
37
|
+
A.top = t, A.left = e, N();
|
|
38
|
+
}
|
|
39
|
+
function N() {
|
|
40
|
+
S.open && D.value && l(W);
|
|
41
|
+
}
|
|
42
|
+
function P() {
|
|
43
|
+
C("close"), C("update:open", !1);
|
|
44
|
+
}
|
|
45
|
+
function F(e) {
|
|
46
|
+
return E.includes(e) || E.push(e), E.indexOf(e);
|
|
47
|
+
}
|
|
48
|
+
function I(e) {
|
|
49
|
+
let t = E.indexOf(e);
|
|
50
|
+
t >= 0 && E.splice(t, 1);
|
|
51
|
+
}
|
|
52
|
+
let L = /* @__PURE__ */ new Set();
|
|
53
|
+
function R(e) {
|
|
54
|
+
L.add(e);
|
|
55
|
+
}
|
|
56
|
+
function z(e) {
|
|
57
|
+
L.delete(e);
|
|
58
|
+
}
|
|
59
|
+
m("nb-menu", {
|
|
60
|
+
size: S.size,
|
|
61
|
+
close: P,
|
|
62
|
+
highlightedIndex: T.value,
|
|
63
|
+
registerItem: F,
|
|
64
|
+
unregisterItem: I,
|
|
65
|
+
registerSurface: R,
|
|
66
|
+
unregisterSurface: z
|
|
67
|
+
});
|
|
68
|
+
function B() {
|
|
69
|
+
return w.value ? Array.from(w.value.querySelectorAll("[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"]")).filter((e) => !e.closest(".nb-submenu")) : [];
|
|
70
|
+
}
|
|
71
|
+
function V(e) {
|
|
72
|
+
let t = B();
|
|
73
|
+
e >= 0 && e < t.length && (T.value = e, t[e].focus());
|
|
74
|
+
}
|
|
75
|
+
function H(e) {
|
|
76
|
+
if (e.key === "Escape") {
|
|
77
|
+
if (e.defaultPrevented) return;
|
|
78
|
+
e.preventDefault(), e.stopPropagation(), P();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let t = B();
|
|
82
|
+
if (!t.length) return;
|
|
83
|
+
let n = t.indexOf(document.activeElement);
|
|
84
|
+
if (n >= 0 && (T.value = n), e.key === "ArrowDown") {
|
|
85
|
+
e.preventDefault(), e.stopPropagation();
|
|
86
|
+
let n = T.value + 1;
|
|
87
|
+
for (; n < t.length && t[n]?.getAttribute("aria-disabled") === "true";) n++;
|
|
88
|
+
n < t.length && V(n);
|
|
89
|
+
} else if (e.key === "ArrowUp") {
|
|
90
|
+
e.preventDefault(), e.stopPropagation();
|
|
91
|
+
let n = T.value - 1;
|
|
92
|
+
for (; n >= 0 && t[n]?.getAttribute("aria-disabled") === "true";) n--;
|
|
93
|
+
n >= 0 && V(n);
|
|
94
|
+
} else e.key === "Tab" && P();
|
|
95
|
+
}
|
|
96
|
+
function U(e) {
|
|
97
|
+
let t = e.target;
|
|
98
|
+
if (!(!w.value || w.value.contains(t))) {
|
|
99
|
+
for (let e of L) if (e.contains(t)) return;
|
|
100
|
+
P();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function W() {
|
|
104
|
+
if (!w.value) return;
|
|
105
|
+
let e = w.value.getBoundingClientRect();
|
|
106
|
+
e.right > window.innerWidth && (A.left = Math.max(8, window.innerWidth - e.width - 8)), e.bottom > window.innerHeight && (A.top = Math.max(8, window.innerHeight - e.height - 8));
|
|
107
|
+
let t = window.innerHeight - A.top - 8;
|
|
108
|
+
w.value.style.maxHeight = `${t}px`;
|
|
109
|
+
}
|
|
110
|
+
return v(() => S.open, (e) => {
|
|
111
|
+
e ? (T.value = -1, document.addEventListener("mousedown", U), l(() => {
|
|
112
|
+
W(), B().length > 0 && V(0);
|
|
113
|
+
})) : (T.value = -1, document.removeEventListener("mousedown", U));
|
|
114
|
+
}), f(() => {
|
|
115
|
+
document.removeEventListener("mousedown", U);
|
|
116
|
+
}), b({
|
|
117
|
+
setPosition: j,
|
|
118
|
+
setPositionXY: M,
|
|
119
|
+
close: P,
|
|
120
|
+
el: w
|
|
121
|
+
}), (e, r) => (p(), i(t, { to: "body" }, [s(n, { name: "nb-menu" }, {
|
|
122
|
+
default: y(() => [c.open ? (p(), o("ul", {
|
|
123
|
+
key: 0,
|
|
124
|
+
ref_key: "menuRef",
|
|
125
|
+
ref: w,
|
|
126
|
+
role: "menu",
|
|
127
|
+
class: u(["nb-menu", `nb-menu--${c.size}`]),
|
|
128
|
+
style: d(k.value),
|
|
129
|
+
onKeydown: H
|
|
130
|
+
}, [_(e.$slots, "default")], 38)) : a("", !0)]),
|
|
131
|
+
_: 3
|
|
132
|
+
})]));
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
//#endregion
|
|
136
|
+
export { b as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Menu-
|
|
1
|
+
import { t as e } from "./Menu-D-zvh-SA.js";
|
|
2
2
|
import { Fragment as t, computed as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, nextTick as l, normalizeClass as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, useId as _, watch as v, withCtx as y } from "vue";
|
|
3
3
|
//#region src/components/MenuBarItem.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var b = ["aria-expanded"], x = /* @__PURE__ */ s({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Menu-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Menu-BALfMobG.cjs`);let t=require(`vue`);var n=[`aria-expanded`],r=(0,t.defineComponent)({__name:`MenuBarItem`,props:{label:{},size:{default:`md`},minWidth:{default:160},maxWidth:{default:288}},setup(r){let i=`nb-menubar-item-${(0,t.useId)()}`,a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.inject)(`nb-menubar`,null),c=(0,t.computed)(()=>s?.activeMenu.value===i);function l(){(0,t.nextTick)(()=>{if(a.value&&o.value){let e=a.value.getBoundingClientRect();o.value.setPosition({top:e.top,left:e.left,bottom:e.bottom,width:e.width})}})}function u(){}function d(e){e.stopPropagation(),e.preventDefault(),c.value?s?.setActiveMenu(null):s?.setActiveMenu(i)}function f(){s?.anyOpen.value&&!c.value&&s.setActiveMenu(i)}function p(){c.value&&s?.setActiveMenu(null)}return(0,t.watch)(c,e=>{e&&l()}),(0,t.onMounted)(()=>{a.value&&s&&s.registerTrigger({id:i,el:a.value,open:l,close:u})}),(0,t.onBeforeUnmount)(()=>{s?.unregisterTrigger(i)}),(i,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`button`,{ref_key:`triggerRef`,ref:a,type:`button`,role:`menuitem`,class:(0,t.normalizeClass)([`nb-menubar-item`,{"nb-menubar-item--active":c.value}]),"aria-haspopup":`menu`,"aria-expanded":c.value,onMousedown:d,onMouseenter:f},[(0,t.renderSlot)(i.$slots,`trigger`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.label),1)])],42,n),(0,t.createVNode)(e.t,{ref_key:`menuRef`,ref:o,open:c.value,size:r.size,"min-width":r.minWidth,"max-width":r.maxWidth,onClose:p},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,`default`)]),_:3},8,[`open`,`size`,`min-width`,`max-width`])],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Icon-C8R_r_In.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-C0UUTgEB.cjs`),o=require(`./Grid-DiCxrPaO.cjs`),s=require(`./composables/useVisualViewportVar.composable.cjs`),c=require(`./composables/useScrollLock.composable.cjs`),l=require(`./composables/useFocusTrap.composable.cjs`);let u=require(`vue`),d=require(`@nubisco/ui/icons/x`);d=e.n(d);var f=200,p=[`[data-nb-confirm-floating]`,`.nb-select__dropdown`,`.nb-menu`,`.nb-date-picker__calendar`,`.nb-user-menu__panel`,`.nb-sidebar-menu-item__flyout`],m=new Set;function h(e){let t=e.trim();return t?(m.add(t),()=>{m.delete(t)}):()=>{}}function g(e=[]){return[...p,...m,...e].map(e=>e.trim()).filter(Boolean).join(`,`)}function _(e,t){if(!e)return;let n=`${t?0:200}ms`;e.style.transitionDuration=n;let r=e.parentElement;r instanceof HTMLElement&&(r.style.transitionDuration=n)}var v=[`role`,`aria-labelledby`,`aria-describedby`,`aria-busy`],y={key:0,class:`nb-modal--header`},b=[`disabled`,`aria-disabled`],x=[`tabindex`,`role`,`aria-labelledby`],S=(0,u.defineComponent)({__name:`Modal`,props:{open:{type:Boolean,default:!1},title:{default:void 0},size:{default:n.r.Medium},closeOnOverlay:{type:Boolean,default:!0},role:{default:`dialog`},labelledBy:{default:void 0},describedBy:{default:void 0},busy:{type:Boolean,default:!1},closeDisabled:{type:Boolean,default:!1},closeAppearance:{default:`corner`},closeOnEscape:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},initialFocus:{type:[String,Function],default:void 0},floatingSelectors:{default:void 0}},emits:[`close`],setup(e,{expose:t,emit:n}){let f=e,p=n,m=(0,u.useSlots)(),h=(0,u.computed)(()=>!!m.header||!!f.title),_=`nb-modal-title-${(0,u.useId)()}`,S=(0,u.ref)(null),C=(0,u.ref)(null),{layerProps:w}=i.useSurfaceLayer({overlay:!0});function T(){f.closeOnOverlay&&p(`close`)}function E(){let e=f.initialFocus;return e?typeof e==`function`?e():S.value?.querySelector(e)??null:null}l.useFocusTrap({container:()=>S.value,active:()=>f.open&&f.trapFocus,initialFocus:E,floatingSelector:()=>g(f.floatingSelectors)}),s.useVisualViewportVar(()=>f.open);let D=!1;function O(){D||(D=!0,c.acquireScrollLock())}function k(){D&&(D=!1,c.releaseScrollLock())}let A=(0,u.ref)(!1);function j(){let e=C.value;if(!e)return;let t=e.scrollHeight-e.clientHeight;!A.value&&t>4?A.value=!0:A.value&&t<=0&&(A.value=!1)}let M=null,N=null;function P(){let e=C.value;e&&(F(),typeof ResizeObserver<`u`&&(M=new ResizeObserver(()=>j()),M.observe(e)),typeof MutationObserver<`u`&&(N=new MutationObserver(()=>j()),N.observe(e,{childList:!0,subtree:!0,characterData:!0})),j())}function F(){M?.disconnect(),M=null,N?.disconnect(),N=null}(0,u.watch)(()=>f.open,async e=>{e?O():k(),await(0,u.nextTick)(),e?P():(F(),A.value=!1)},{immediate:!0}),(0,u.onUnmounted)(()=>{k(),F()});function I(){let e=S.value;if(!e)return!1;let t=Array.from(document.querySelectorAll(`[aria-modal="true"]`));return t.length===0||t[t.length-1]===e}function L(e){e.key===`Escape`&&(!f.open||!f.closeOnEscape||f.closeDisabled||I()&&p(`close`))}return(0,u.onMounted)(()=>{document.addEventListener(`keydown`,L),f.open&&P()}),(0,u.onUnmounted)(()=>{document.removeEventListener(`keydown`,L)}),t({dialogEl:()=>S.value,bodyEl:()=>C.value}),(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(u.Teleport,{to:`body`},[(0,u.createVNode)(u.Transition,{name:`nb-modal`},{default:(0,u.withCtx)(()=>[e.open?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,class:`nb-modal--overlay`,onClick:(0,u.withModifiers)(T,[`self`])},[(0,u.createElementVNode)(`div`,(0,u.mergeProps)({ref_key:`contentRef`,ref:S,class:[`nb-modal--content`,`nb-modal--content--${e.size}`]},(0,u.unref)(w),{role:e.role,"aria-modal":`true`,"aria-labelledby":e.labelledBy??(h.value?_:void 0),"aria-describedby":e.describedBy,"aria-busy":e.busy?`true`:void 0,tabindex:`-1`,onClick:n[2]||=(0,u.withModifiers)(()=>{},[`stop`])}),[h.value?((0,u.openBlock)(),(0,u.createElementBlock)(`header`,y,[(0,u.createElementVNode)(`span`,{id:_,class:`nb-modal--title`},[(0,u.renderSlot)(t.$slots,`header`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.title),1)],!0)]),e.closeAppearance===`button`?((0,u.openBlock)(),(0,u.createBlock)(a.t,{key:0,class:`nb-modal--close-button`,size:`sm`,variant:`ghost`,icon:d,"aria-label":`Close`,disabled:e.closeDisabled,onClick:n[0]||=e=>p(`close`)},null,8,[`disabled`])):((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:1,class:`nb-modal--close`,"aria-label":`Close`,disabled:e.closeDisabled,"aria-disabled":e.closeDisabled?`true`:void 0,onClick:n[1]||=e=>p(`close`)},[(0,u.createVNode)(r.t,{name:(0,u.unref)(d.regular)},null,8,[`name`])],8,b))])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`main`,{ref_key:`bodyRef`,ref:C,class:`nb-modal--body`,tabindex:A.value?0:void 0,role:A.value?`region`:void 0,"aria-labelledby":A.value?e.labelledBy??(h.value?_:void 0):void 0},[(0,u.renderSlot)(t.$slots,`default`,{},void 0,!0)],8,x),t.$slots.footer?((0,u.openBlock)(),(0,u.createBlock)(o.t,{key:1,is:`footer`,justify:`end`,class:`nb-modal--footer`,distributed:``},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,`footer`,{},void 0,!0)]),_:3})):(0,u.createCommentVNode)(``,!0)],16,v)])):(0,u.createCommentVNode)(``,!0)]),_:3})]))}}),C=t.t(S,[[`__scopeId`,`data-v-30058081`]]);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}});
|
|
@@ -2,13 +2,14 @@ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
|
2
2
|
import { r as t } from "./Size.d-Bah6vMl3.js";
|
|
3
3
|
import { t as n } from "./Icon-rREAqsu0.js";
|
|
4
4
|
import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
|
|
5
|
-
import { t as i } from "./Button-
|
|
6
|
-
import { t as a } from "./Grid-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
5
|
+
import { t as i } from "./Button-IcCXOoCT.js";
|
|
6
|
+
import { t as a } from "./Grid-iox-7xyH.js";
|
|
7
|
+
import { useVisualViewportVar as o } from "./composables/useVisualViewportVar.composable.mjs";
|
|
8
|
+
import { acquireScrollLock as s, releaseScrollLock as ee } from "./composables/useScrollLock.composable.mjs";
|
|
9
|
+
import { useFocusTrap as c } from "./composables/useFocusTrap.composable.mjs";
|
|
10
|
+
import { Teleport as l, Transition as te, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, mergeProps as ne, nextTick as re, onMounted as ie, onUnmounted as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, unref as C, useId as w, useSlots as T, watch as E, withCtx as D, withModifiers as O } from "vue";
|
|
11
|
+
import * as ae from "@nubisco/ui/icons/x";
|
|
12
|
+
import { regular as oe } from "@nubisco/ui/icons/x";
|
|
12
13
|
//#region src/components/Confirm.env.ts
|
|
13
14
|
var k = 200, A = [
|
|
14
15
|
"[data-nb-confirm-floating]",
|
|
@@ -52,7 +53,7 @@ var F = [
|
|
|
52
53
|
"tabindex",
|
|
53
54
|
"role",
|
|
54
55
|
"aria-labelledby"
|
|
55
|
-
], z = /* @__PURE__ */ e(/* @__PURE__ */
|
|
56
|
+
], z = /* @__PURE__ */ e(/* @__PURE__ */ _({
|
|
56
57
|
__name: "Modal",
|
|
57
58
|
props: {
|
|
58
59
|
open: {
|
|
@@ -92,8 +93,8 @@ var F = [
|
|
|
92
93
|
floatingSelectors: { default: void 0 }
|
|
93
94
|
},
|
|
94
95
|
emits: ["close"],
|
|
95
|
-
setup(e, { expose: t, emit:
|
|
96
|
-
let k = e, A =
|
|
96
|
+
setup(e, { expose: t, emit: _ }) {
|
|
97
|
+
let k = e, A = _, j = T(), M = u(() => !!j.header || !!k.title), P = `nb-modal-title-${w()}`, z = b(null), B = b(null), { layerProps: V } = r({ overlay: !0 });
|
|
97
98
|
function H() {
|
|
98
99
|
k.closeOnOverlay && A("close");
|
|
99
100
|
}
|
|
@@ -101,20 +102,20 @@ var F = [
|
|
|
101
102
|
let e = k.initialFocus;
|
|
102
103
|
return e ? typeof e == "function" ? e() : z.value?.querySelector(e) ?? null : null;
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
+
c({
|
|
105
106
|
container: () => z.value,
|
|
106
107
|
active: () => k.open && k.trapFocus,
|
|
107
108
|
initialFocus: U,
|
|
108
109
|
floatingSelector: () => N(k.floatingSelectors)
|
|
109
|
-
});
|
|
110
|
+
}), o(() => k.open);
|
|
110
111
|
let W = !1;
|
|
111
112
|
function G() {
|
|
112
|
-
W || (W = !0,
|
|
113
|
+
W || (W = !0, s());
|
|
113
114
|
}
|
|
114
115
|
function K() {
|
|
115
116
|
W && (W = !1, ee());
|
|
116
117
|
}
|
|
117
|
-
let q =
|
|
118
|
+
let q = b(!1);
|
|
118
119
|
function J() {
|
|
119
120
|
let e = B.value;
|
|
120
121
|
if (!e) return;
|
|
@@ -133,37 +134,37 @@ var F = [
|
|
|
133
134
|
function Q() {
|
|
134
135
|
Y?.disconnect(), Y = null, X?.disconnect(), X = null;
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
-
e ? G() : K(), await
|
|
138
|
-
}, { immediate: !0 }),
|
|
137
|
+
E(() => k.open, async (e) => {
|
|
138
|
+
e ? G() : K(), await re(), e ? Z() : (Q(), q.value = !1);
|
|
139
|
+
}, { immediate: !0 }), v(() => {
|
|
139
140
|
K(), Q();
|
|
140
141
|
});
|
|
141
|
-
function
|
|
142
|
+
function se() {
|
|
142
143
|
let e = z.value;
|
|
143
144
|
if (!e) return !1;
|
|
144
145
|
let t = Array.from(document.querySelectorAll("[aria-modal=\"true\"]"));
|
|
145
146
|
return t.length === 0 || t[t.length - 1] === e;
|
|
146
147
|
}
|
|
147
148
|
function $(e) {
|
|
148
|
-
e.key === "Escape" && (!k.open || !k.closeOnEscape || k.closeDisabled ||
|
|
149
|
+
e.key === "Escape" && (!k.open || !k.closeOnEscape || k.closeDisabled || se() && A("close"));
|
|
149
150
|
}
|
|
150
|
-
return
|
|
151
|
+
return ie(() => {
|
|
151
152
|
document.addEventListener("keydown", $), k.open && Z();
|
|
152
|
-
}),
|
|
153
|
+
}), v(() => {
|
|
153
154
|
document.removeEventListener("keydown", $);
|
|
154
155
|
}), t({
|
|
155
156
|
dialogEl: () => z.value,
|
|
156
157
|
bodyEl: () => B.value
|
|
157
|
-
}), (t, r) => (
|
|
158
|
-
default: D(() => [e.open ? (
|
|
158
|
+
}), (t, r) => (y(), d(l, { to: "body" }, [g(te, { name: "nb-modal" }, {
|
|
159
|
+
default: D(() => [e.open ? (y(), p("div", {
|
|
159
160
|
key: 0,
|
|
160
161
|
class: "nb-modal--overlay",
|
|
161
162
|
onClick: O(H, ["self"])
|
|
162
|
-
}, [m("div",
|
|
163
|
+
}, [m("div", ne({
|
|
163
164
|
ref_key: "contentRef",
|
|
164
165
|
ref: z,
|
|
165
166
|
class: ["nb-modal--content", `nb-modal--content--${e.size}`]
|
|
166
|
-
},
|
|
167
|
+
}, C(V), {
|
|
167
168
|
role: e.role,
|
|
168
169
|
"aria-modal": "true",
|
|
169
170
|
"aria-labelledby": e.labelledBy ?? (M.value ? P : void 0),
|
|
@@ -172,26 +173,26 @@ var F = [
|
|
|
172
173
|
tabindex: "-1",
|
|
173
174
|
onClick: r[2] ||= O(() => {}, ["stop"])
|
|
174
175
|
}), [
|
|
175
|
-
M.value ? (
|
|
176
|
+
M.value ? (y(), p("header", I, [m("span", {
|
|
176
177
|
id: P,
|
|
177
178
|
class: "nb-modal--title"
|
|
178
|
-
}, [
|
|
179
|
+
}, [x(t.$slots, "header", {}, () => [h(S(e.title), 1)], !0)]), e.closeAppearance === "button" ? (y(), d(i, {
|
|
179
180
|
key: 0,
|
|
180
181
|
class: "nb-modal--close-button",
|
|
181
182
|
size: "sm",
|
|
182
183
|
variant: "ghost",
|
|
183
|
-
icon:
|
|
184
|
+
icon: ae,
|
|
184
185
|
"aria-label": "Close",
|
|
185
186
|
disabled: e.closeDisabled,
|
|
186
187
|
onClick: r[0] ||= (e) => A("close")
|
|
187
|
-
}, null, 8, ["disabled"])) : (
|
|
188
|
+
}, null, 8, ["disabled"])) : (y(), p("button", {
|
|
188
189
|
key: 1,
|
|
189
190
|
class: "nb-modal--close",
|
|
190
191
|
"aria-label": "Close",
|
|
191
192
|
disabled: e.closeDisabled,
|
|
192
193
|
"aria-disabled": e.closeDisabled ? "true" : void 0,
|
|
193
194
|
onClick: r[1] ||= (e) => A("close")
|
|
194
|
-
}, [
|
|
195
|
+
}, [g(n, { name: C(oe) }, null, 8, ["name"])], 8, L))])) : f("", !0),
|
|
195
196
|
m("main", {
|
|
196
197
|
ref_key: "bodyRef",
|
|
197
198
|
ref: B,
|
|
@@ -199,21 +200,21 @@ var F = [
|
|
|
199
200
|
tabindex: q.value ? 0 : void 0,
|
|
200
201
|
role: q.value ? "region" : void 0,
|
|
201
202
|
"aria-labelledby": q.value ? e.labelledBy ?? (M.value ? P : void 0) : void 0
|
|
202
|
-
}, [
|
|
203
|
-
t.$slots.footer ? (
|
|
203
|
+
}, [x(t.$slots, "default", {}, void 0, !0)], 8, R),
|
|
204
|
+
t.$slots.footer ? (y(), d(a, {
|
|
204
205
|
key: 1,
|
|
205
206
|
is: "footer",
|
|
206
207
|
justify: "end",
|
|
207
208
|
class: "nb-modal--footer",
|
|
208
209
|
distributed: ""
|
|
209
210
|
}, {
|
|
210
|
-
default: D(() => [
|
|
211
|
+
default: D(() => [x(t.$slots, "footer", {}, void 0, !0)]),
|
|
211
212
|
_: 3
|
|
212
213
|
})) : f("", !0)
|
|
213
214
|
], 16, F)])) : f("", !0)]),
|
|
214
215
|
_: 3
|
|
215
216
|
})]));
|
|
216
217
|
}
|
|
217
|
-
}), [["__scopeId", "data-v-
|
|
218
|
+
}), [["__scopeId", "data-v-30058081"]]);
|
|
218
219
|
//#endregion
|
|
219
220
|
export { M as a, N as i, k as n, P as r, z as t };
|