@nubisco/ui 5.48.1 → 5.49.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--XeLRz2P.js +119 -0
- package/dist/AccordionItem-BYSH6dZK.cjs +1 -0
- package/dist/ActionGroup-48ZXZCsn.cjs +1 -0
- package/dist/ActionGroup-DzQjn3ir.js +137 -0
- package/dist/{AiLabel-DywBjSzr.js → AiLabel-CSSIkvKP.js} +20 -20
- package/dist/{AiLabel-pRN10dQV.cjs → AiLabel-DSKUOcZs.cjs} +1 -1
- package/dist/{AiProvider-DY1xxZff.cjs → AiProvider-BrjUMTRk.cjs} +1 -1
- package/dist/{AiProvider-D8O_YaaP.js → AiProvider-Db47uagx.js} +6 -6
- package/dist/{AiUsage-HcYF6RQ2.js → AiUsage-BOrAXk2-.js} +2 -2
- package/dist/{AiUsage-DRj51zK5.cjs → AiUsage-fQqE0B6N.cjs} +1 -1
- package/dist/BackToTop-DgFlV4p4.cjs +1 -0
- package/dist/BackToTop-DrgXqZgF.js +51 -0
- package/dist/Banner-CazPCK0F.js +89 -0
- package/dist/Banner-CyU3PPnt.cjs +1 -0
- package/dist/{BarChart-IX4imFVT.cjs → BarChart-3YO4YfUt.cjs} +1 -1
- package/dist/{BarChart-tB6MOMoR.js → BarChart-CDvhhPk0.js} +4 -4
- package/dist/BatchActions-0P-b3qLI.js +84 -0
- package/dist/BatchActions-FDPiGUNh.cjs +1 -0
- package/dist/{Blueprint-46DWDZmu.js → Blueprint-CGGNppmS.js} +2 -2
- package/dist/{Blueprint-NyUNNf-G.cjs → Blueprint-DBIXzLYg.cjs} +1 -1
- package/dist/{BlueprintCard-Cda5rPZu.cjs → BlueprintCard-D3h_rGhj.cjs} +1 -1
- package/dist/{BlueprintCard-DDNP1vkk.js → BlueprintCard-_FItugFc.js} +107 -107
- package/dist/{BlueprintControls-D0MdXrVv.js → BlueprintControls-1l0QVtB7.js} +49 -75
- package/dist/BlueprintControls-C3ffD6W8.cjs +1 -0
- package/dist/{Board-CaFH4-Qw.js → Board-CSVCzJ1s.js} +178 -190
- package/dist/Board-gUICo94e.cjs +1 -0
- package/dist/BottomPanel-1EkHEQ_H.js +81 -0
- package/dist/BottomPanel-n2jWpFH7.cjs +1 -0
- package/dist/Breadcrumbs-BgMh5bfe.js +185 -0
- package/dist/Breadcrumbs-DN_2wxQS.cjs +1 -0
- package/dist/{Briefing-CoDyU3k4.js → Briefing-0A1frO4v.js} +3 -3
- package/dist/{Briefing-B_ofl8Rt.cjs → Briefing-AqSz-ZdZ.cjs} +1 -1
- package/dist/{BriefingDestination-DAu5S2HI.cjs → BriefingDestination-CqyKzyXx.cjs} +1 -1
- package/dist/{BriefingDestination-CK4XdAOo.js → BriefingDestination-v3kNa6o_.js} +4 -4
- package/dist/Button-BHFtgOXA.cjs +1 -0
- package/dist/Button-tpOmP8iV.js +699 -0
- package/dist/ButtonSet-BV76HHgD.js +67 -0
- package/dist/ButtonSet-Bj9mIOW2.cjs +1 -0
- package/dist/Calendar-Bf0Nk0rA.js +153 -0
- package/dist/Calendar-D9J17bTp.cjs +1 -0
- package/dist/Card-C6KAn4tN.cjs +1 -0
- package/dist/Card-qNem4s60.js +162 -0
- package/dist/{Checkbox-DXQpih7I.js → Checkbox-BgXXVsCC.js} +1 -1
- package/dist/{Checkbox-7JJdh4sN.cjs → Checkbox-DPPln6oG.cjs} +1 -1
- package/dist/{CheckboxGroup-B8T3zLQC.cjs → CheckboxGroup-B2a3ezEK.cjs} +1 -1
- package/dist/{CheckboxGroup-BHn1hpzh.js → CheckboxGroup-Ck1ylAX9.js} +3 -3
- package/dist/ChipGroup-CVDk4ElV.js +74 -0
- package/dist/ChipGroup-DojKPHhq.cjs +1 -0
- package/dist/CloseButton-9TTFHFmx.cjs +1 -0
- package/dist/CloseButton-CdH12Hdn.js +48 -0
- package/dist/{ColorStrip-BW1nFTja.js → ColorStrip-CuF9ZGoO.js} +2 -2
- package/dist/{ColorStrip-AEg8dQbl.cjs → ColorStrip-bpguV5b2.cjs} +1 -1
- package/dist/CommandPalette-CCEzVWfb.cjs +1 -0
- package/dist/{CommandPalette-CD75Qytr.js → CommandPalette-D1DuzaA1.js} +100 -85
- package/dist/Confirm-BQxQlmjs.cjs +1 -0
- package/dist/Confirm-DLhI3VVh.js +331 -0
- package/dist/{ContainedListItem-Dj7TcGpO.cjs → ContainedListItem-DjHEyhf8.cjs} +1 -1
- package/dist/{ContainedListItem-CSE8d5M6.js → ContainedListItem-DtTZOm-_.js} +1 -1
- package/dist/ContentSwitcher-B-PUG0FE.js +99 -0
- package/dist/ContentSwitcher-CYSF2B-a.cjs +1 -0
- package/dist/CopyButton-CQ9tcyfs.js +60 -0
- package/dist/CopyButton-DRvJ4rf5.cjs +1 -0
- package/dist/DataTable-CHztTxz1.cjs +1 -0
- package/dist/DataTable-Dp3WZihu.js +545 -0
- package/dist/DatePicker-BLRQEI-6.js +755 -0
- package/dist/DatePicker-CJlffHeM.cjs +1 -0
- package/dist/FileUploader-UzgK5RKz.cjs +1 -0
- package/dist/FileUploader-dzVu4iSo.js +195 -0
- package/dist/FloatingToolbar-BTmWtGU7.js +116 -0
- package/dist/FloatingToolbar-DDCJuaq0.cjs +1 -0
- package/dist/{Form-D6rgkJ_Y.cjs → Form-D2KHlP7N.cjs} +1 -1
- package/dist/{Form-1UVOFWaf.js → Form-igwYeEVI.js} +1 -1
- package/dist/{GanttChart-B_LqsmcR.cjs → GanttChart-ClFarMf-.cjs} +1 -1
- package/dist/{GanttChart-cZguVXW8.js → GanttChart-N05mLdsn.js} +3 -3
- package/dist/{ImageCropper-CJ2mCj9z.cjs → ImageCropper-CoYR_Hhy.cjs} +1 -1
- package/dist/{ImageCropper-BFKMYthJ.js → ImageCropper-wQknqxNK.js} +2 -2
- package/dist/ImagePicker-Dhj01jq7.cjs +1 -0
- package/dist/ImagePicker-zkoay3zZ.js +171 -0
- package/dist/InfoHint-BEzkNQTM.cjs +1 -0
- package/dist/InfoHint-BlHxrTw6.js +178 -0
- package/dist/InlineEdit-DBMKJ3xP.cjs +1 -0
- package/dist/InlineEdit-Y8i0ibjH.js +117 -0
- package/dist/{InlineLoading-D8T0WO05.js → InlineLoading-CDJ_ZJ6v.js} +1 -1
- package/dist/{InlineLoading-CB_1PwMx.cjs → InlineLoading-DKCzcjZJ.cjs} +1 -1
- package/dist/InputGroup-DIAJy1Sv.cjs +1 -0
- package/dist/InputGroup-DQxpFFlP.js +86 -0
- package/dist/InputGroup.context-BTt6zUkj.cjs +1 -0
- package/dist/InputGroup.context-CJAWx5GI.js +16 -0
- package/dist/{InterpolationChart-CttBiNWU.js → InterpolationChart-BX8-UOeZ.js} +3 -3
- package/dist/{InterpolationChart-CYWJFUcs.cjs → InterpolationChart-DaqKUIWi.cjs} +1 -1
- package/dist/{LineChart-DNDSJQrB.cjs → LineChart-CGXpi9l8.cjs} +1 -1
- package/dist/{LineChart-J8gCM2Ba.js → LineChart-CplGrv8-.js} +4 -4
- package/dist/Menu-CcQpTOd3.js +189 -0
- package/dist/Menu-SlBztEy3.cjs +1 -0
- package/dist/{MenuBarItem-B8H9KfFo.cjs → MenuBarItem-BIDXX-uX.cjs} +1 -1
- package/dist/{MenuBarItem-BLdVIz0j.js → MenuBarItem-BlT1hN-b.js} +1 -1
- package/dist/Modal-BSGKOUi_.js +223 -0
- package/dist/Modal-D0hGHXic.cjs +1 -0
- package/dist/NotificationCenter-_CK8Eejg.js +587 -0
- package/dist/NotificationCenter-xg0ZCegj.cjs +1 -0
- package/dist/NumberInput-CcXqTINb.cjs +1 -0
- package/dist/NumberInput-DfrhQayO.js +383 -0
- package/dist/OverflowMenu-BlZ_wEja.js +124 -0
- package/dist/OverflowMenu-CaC5E0Oy.cjs +1 -0
- package/dist/{PageHeader-BVcTzPcW.cjs → PageHeader-2jBgITYE.cjs} +1 -1
- package/dist/{PageHeader-CFMhwRcw.js → PageHeader-DgjItuag.js} +2 -2
- package/dist/{Pagination-VmE04nzc.cjs → Pagination-B1km1o28.cjs} +1 -1
- package/dist/{Pagination-zTp1lrSP.js → Pagination-DA1Nglqx.js} +26 -26
- package/dist/{Panel-7qPoq2lb.cjs → Panel-NC6_ZogV.cjs} +1 -1
- package/dist/{Panel-D5OHjaTP.js → Panel-zyzu638n.js} +1 -1
- package/dist/{PieChart-Ct8oicOS.cjs → PieChart-DQhs44eH.cjs} +1 -1
- package/dist/{PieChart-CAB3b8LE.js → PieChart-D_02nX0-.js} +3 -3
- package/dist/{PrimaryActionScope-B7VLsHzT.cjs → PrimaryActionScope-Dp2gvqwk.cjs} +1 -1
- package/dist/{PrimaryActionScope-CRdjZE0V.js → PrimaryActionScope-sogYOZXZ.js} +1 -1
- package/dist/{ProgressBar-DK-j6Bzv.js → ProgressBar-Bp-pe6sU.js} +2 -2
- package/dist/{ProgressBar-CfJJf7Sc.cjs → ProgressBar-z912Ppfm.cjs} +1 -1
- package/dist/{Radio-CWWt_o_F.js → Radio-DcMkavI8.js} +2 -2
- package/dist/{Radio-D0YjKuB2.cjs → Radio-DuvSK9tl.cjs} +1 -1
- package/dist/Search-BUgIh9TX.js +130 -0
- package/dist/Search-D4SG2q3c.cjs +1 -0
- package/dist/Select-Cf0T4gIu.js +604 -0
- package/dist/Select-DhwcDMnf.cjs +1 -0
- package/dist/Shell-B2y5hn9K.cjs +1 -0
- package/dist/Shell-Bh6s0T89.js +536 -0
- package/dist/ShellPanel-BDE6Y773.cjs +1 -0
- package/dist/ShellPanel-CB71IKMY.js +89 -0
- package/dist/{SidebarCollapseToggle-C6aLQTYv.cjs → SidebarCollapseToggle-CqVURaqs.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-D5yQ-8Vu.js → SidebarCollapseToggle-Dm4QMGpc.js} +2 -2
- package/dist/{SidebarHeaderToggle-Bdh1Z9aF.cjs → SidebarHeaderToggle-KW1yBlpF.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-C-QIOLnU.js → SidebarHeaderToggle-daU1HfJH.js} +3 -3
- package/dist/Skeleton-CMuZJ1dR.cjs +1 -0
- package/dist/{Skeleton-C1e02dcW.js → Skeleton-Hmb5a2G_.js} +48 -31
- package/dist/{Slider-BaM5cclm.cjs → Slider-D9glvyrU.cjs} +1 -1
- package/dist/{Slider-BAXKJCNG.js → Slider-D9hgB8GJ.js} +4 -4
- package/dist/{Spinner-PT95bjWq.cjs → Spinner-BTN06wsE.cjs} +1 -1
- package/dist/{Spinner-CbBPddUx.js → Spinner-C3MeCm2k.js} +1 -1
- package/dist/{Stat-C9XaqyaG.cjs → Stat-BoQUn69z.cjs} +1 -1
- package/dist/{Stat-DJJln4rH.js → Stat-Bz0NCLTm.js} +2 -2
- package/dist/{Stepper-DV0q0Dfv.cjs → Stepper-BLyPFPge.cjs} +1 -1
- package/dist/{Stepper-B4xqkWXg.js → Stepper-BXPgrQE8.js} +1 -1
- package/dist/{StepperStep-iGyGKnQL.cjs → StepperStep-DGeyZQXY.cjs} +1 -1
- package/dist/{StepperStep-BYhlgeb1.js → StepperStep-DLr_ctr4.js} +1 -1
- package/dist/SuggestionList-DjtF5POh.cjs +1 -0
- package/dist/SuggestionList-SYGj7Sjv.js +225 -0
- package/dist/{Switch-D3j7PPhY.cjs → Switch-CQj6AsQh.cjs} +1 -1
- package/dist/{Switch-CbYMiEbQ.js → Switch-CqLfdT_m.js} +2 -2
- package/dist/{TableOfContents-CM0HKSde.js → TableOfContents-BIzH0Twf.js} +24 -34
- package/dist/{TableOfContents-By2Non4K.cjs → TableOfContents-Ct-Kwm8X.cjs} +1 -1
- package/dist/{Tabs--lz44FBk.js → Tabs-B_bsdxWy.js} +1 -1
- package/dist/{Tabs-DKikiz0_.cjs → Tabs-CTMUPND5.cjs} +1 -1
- package/dist/TextInput-BM2Zc2_R.cjs +2 -0
- package/dist/TextInput-DVpNJNwY.js +406 -0
- package/dist/Toast-BaMGYx8-.js +118 -0
- package/dist/Toast-BvZywdtO.cjs +1 -0
- package/dist/{Toaster-CJMQM8JU.cjs → Toaster-CYSWYmUm.cjs} +1 -1
- package/dist/{Toaster-DxBW9XQ0.js → Toaster-DtUkjQM_.js} +1 -1
- package/dist/Toolbar-BmJeXz4C.cjs +1 -0
- package/dist/Toolbar-tOeTdj8a.js +48 -0
- package/dist/Toolbar.context-Bli1SqM3.js +4 -0
- package/dist/Toolbar.context-D3Uj5o0_.cjs +1 -0
- package/dist/{Tree-DP2NPXOL.cjs → Tree-CeXSIcpy.cjs} +1 -1
- package/dist/{Tree-CkcFwDr7.js → Tree-RRVk_0QJ.js} +1 -1
- package/dist/{TreeNode-DCnlEEpj.js → TreeNode-D9fc2RE_.js} +1 -1
- package/dist/{TreeNode-CtklZefA.cjs → TreeNode-z6APXuvr.cjs} +1 -1
- package/dist/UserMenu-BGIIKwi6.cjs +1 -0
- package/dist/{UserMenu-CWRMaPGO.js → UserMenu-GGR8K7gP.js} +109 -102
- package/dist/Video-BxNkDWqi.cjs +1 -0
- package/dist/Video-DD01piHm.js +106 -0
- package/dist/Walkthrough-C_5h67cq.cjs +1 -0
- package/dist/Walkthrough-DpxYuLMU.js +333 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +271 -253
- package/dist/component-styles.json +88 -2
- 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 -1
- package/dist/components/ActionGroup.d.ts +41 -9
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/ActionGroup.vue.d.ts +2 -2
- package/dist/components/ActionGroup.vue.d.ts.map +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/AiUsage.cjs +1 -1
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/BackToTop.vue.d.ts.map +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/Banner.vue.d.ts.map +1 -1
- package/dist/components/BatchActions.cjs +1 -0
- package/dist/components/BatchActions.d.ts +43 -0
- package/dist/components/BatchActions.mjs +2 -0
- package/dist/components/BatchActions.vue.d.ts +30 -0
- package/dist/components/BatchActions.vue.d.ts.map +1 -0
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/Blueprint.vue.d.ts +2 -2
- 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.map +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintControls.vue.d.ts.map +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.mjs +1 -1
- package/dist/components/Board.vue.d.ts +2 -2
- 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/BottomPanel.vue.d.ts +2 -2
- package/dist/components/BottomPanel.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.d.ts +38 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +4 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -0
- package/dist/components/ButtonSet.d.ts +43 -0
- package/dist/components/ButtonSet.mjs +2 -0
- package/dist/components/ButtonSet.vue.d.ts +11 -0
- package/dist/components/ButtonSet.vue.d.ts.map +1 -0
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Calendar.vue.d.ts +2 -2
- package/dist/components/Calendar.vue.d.ts.map +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Card.vue.d.ts +11 -10
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.d.ts +15 -0
- 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/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ChipGroup.cjs +1 -0
- package/dist/components/ChipGroup.d.ts +29 -0
- package/dist/components/ChipGroup.mjs +2 -0
- package/dist/components/ChipGroup.vue.d.ts +14 -0
- package/dist/components/ChipGroup.vue.d.ts.map +1 -0
- package/dist/components/CloseButton.cjs +1 -0
- package/dist/components/CloseButton.d.ts +26 -0
- package/dist/components/CloseButton.mjs +2 -0
- package/dist/components/CloseButton.vue.d.ts +19 -0
- package/dist/components/CloseButton.vue.d.ts.map +1 -0
- 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.d.ts +7 -5
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/Confirm.vue.d.ts +1 -1
- package/dist/components/Confirm.vue.d.ts.map +1 -1
- package/dist/components/ContainedList.cjs +1 -1
- package/dist/components/ContainedList.mjs +1 -1
- package/dist/components/ContainedListItem.cjs +1 -1
- package/dist/components/ContainedListItem.mjs +1 -1
- package/dist/components/ContentSwitcher.cjs +1 -0
- package/dist/components/ContentSwitcher.d.ts +36 -0
- package/dist/components/ContentSwitcher.mjs +2 -0
- package/dist/components/ContentSwitcher.vue.d.ts +13 -0
- package/dist/components/ContentSwitcher.vue.d.ts.map +1 -0
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/CopyButton.vue.d.ts.map +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.d.ts +12 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DataTable.vue.d.ts +1 -0
- 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 +2 -2
- 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/FileUploader.vue.d.ts.map +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.mjs +1 -1
- package/dist/components/FloatingToolbar.vue.d.ts +1 -3
- 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/Grid.vue.d.ts +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/ImagePicker.vue.d.ts.map +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.mjs +1 -1
- 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/InputGroup.cjs +1 -0
- package/dist/components/InputGroup.context.d.ts +50 -0
- package/dist/components/InputGroup.context.d.ts.map +1 -0
- package/dist/components/InputGroup.d.ts +37 -0
- package/dist/components/InputGroup.mjs +2 -0
- package/dist/components/InputGroup.vue.d.ts +27 -0
- package/dist/components/InputGroup.vue.d.ts.map +1 -0
- 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.d.ts +11 -0
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts +2 -0
- 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/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.d.ts +11 -7
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts +3 -3
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.d.ts +2 -1
- package/dist/components/NotificationCenter.mjs +1 -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/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.map +1 -1
- package/dist/components/OverflowMenu.cjs +1 -0
- package/dist/components/OverflowMenu.d.ts +41 -0
- package/dist/components/OverflowMenu.mjs +2 -0
- package/dist/components/OverflowMenu.vue.d.ts +36 -0
- package/dist/components/OverflowMenu.vue.d.ts.map +1 -0
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.mjs +1 -1
- package/dist/components/PageLayout.cjs +1 -1
- package/dist/components/PageLayout.mjs +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/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Search.cjs +1 -0
- package/dist/components/Search.d.ts +36 -0
- package/dist/components/Search.mjs +2 -0
- package/dist/components/Search.vue.d.ts +32 -0
- package/dist/components/Search.vue.d.ts.map +1 -0
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.d.ts +4 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +6 -6
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +1 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +2 -2
- 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/ShellPanel.vue.d.ts +2 -2
- package/dist/components/ShellPanel.vue.d.ts.map +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/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.vue.d.ts.map +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/SidebarStatus.cjs +1 -1
- package/dist/components/SidebarStatus.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.d.ts +20 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Skeleton.vue.d.ts +3 -0
- package/dist/components/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.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/StructuredList.cjs +1 -1
- package/dist/components/StructuredList.mjs +1 -1
- package/dist/components/StructuredList.vue.d.ts +2 -2
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.d.ts +8 -0
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/SuggestionList.vue.d.ts +3 -0
- package/dist/components/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/TableOfContents.vue.d.ts.map +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +20 -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 +4 -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/Toolbar.cjs +1 -0
- package/dist/components/Toolbar.context.d.ts +22 -0
- package/dist/components/Toolbar.context.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts +26 -0
- package/dist/components/Toolbar.mjs +2 -0
- package/dist/components/Toolbar.vue.d.ts +24 -0
- package/dist/components/Toolbar.vue.d.ts.map +1 -0
- 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 +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/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Video.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Walkthrough.vue.d.ts.map +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 +9 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +9 -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/useNbStrings.composable.cjs +1 -1
- package/dist/composables/useNbStrings.composable.d.ts +66 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +61 -0
- package/dist/composables/useRovingFocus.composable.cjs +1 -0
- package/dist/composables/useRovingFocus.composable.d.ts +22 -0
- package/dist/composables/useRovingFocus.composable.d.ts.map +1 -0
- package/dist/composables/useRovingFocus.composable.mjs +56 -0
- package/dist/directives/ToolTip.directive.d.ts +56 -0
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/global.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +152 -143
- package/dist/main-Bo1B-xzL.cjs +4 -0
- package/dist/main-nO1LQzsc.js +744 -0
- package/dist/main.d.ts +21 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/ActionGroup.css +1 -1
- package/dist/styles/Banner.css +1 -1
- package/dist/styles/BatchActions.css +1 -0
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/BlueprintControls.css +1 -1
- package/dist/styles/Board.css +1 -1
- package/dist/styles/BottomPanel.css +1 -1
- package/dist/styles/Breadcrumbs.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/ButtonSet.css +1 -0
- package/dist/styles/Calendar.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/ChipGroup.css +1 -0
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/Confirm.css +1 -1
- package/dist/styles/ContentSwitcher.css +1 -0
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/FileUploader.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/ImagePicker.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/InlineEdit.css +1 -1
- package/dist/styles/InputGroup.css +1 -0
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/OverflowMenu.css +1 -0
- package/dist/styles/Pagination.css +1 -1
- package/dist/styles/Search.css +1 -0
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/ShellPanel.css +1 -1
- package/dist/styles/SidebarHeaderToggle.css +1 -1
- package/dist/styles/Skeleton.css +1 -1
- package/dist/styles/SuggestionList.css +1 -1
- package/dist/styles/TableOfContents.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/Toast.css +1 -1
- package/dist/styles/Toolbar.css +1 -0
- package/dist/styles/UserMenu.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +43 -35
- package/dist/utils/actionFit.helper.cjs +1 -0
- package/dist/utils/actionFit.helper.d.ts +20 -0
- package/dist/utils/actionFit.helper.d.ts.map +1 -0
- package/dist/utils/actionFit.helper.mjs +13 -0
- package/package.json +2 -2
- package/src/styles/_theme.scss +11 -4
- package/src/styles/logic/_field.scss +22 -0
- package/src/styles/logic/_focus.scss +20 -0
- package/src/styles/logic/index.scss +1 -0
- package/src/utils/actionFit.helper.ts +40 -0
- package/dist/AccordionItem-DFwj28eL.js +0 -118
- package/dist/AccordionItem-DhZD2kJL.cjs +0 -1
- package/dist/ActionGroup-CJoBGUvw.js +0 -171
- package/dist/ActionGroup-CU9YQboQ.cjs +0 -1
- package/dist/BackToTop-C5gFfuu7.cjs +0 -1
- package/dist/BackToTop-DZhl6N_Q.js +0 -56
- package/dist/Banner-5uX-ujbu.js +0 -93
- package/dist/Banner-CiIQKSxv.cjs +0 -1
- package/dist/BlueprintControls-DnUoI9qp.cjs +0 -1
- package/dist/Board-BNB96CXm.cjs +0 -1
- package/dist/BottomPanel-CYxavAS0.cjs +0 -1
- package/dist/BottomPanel-vFcIk2nf.js +0 -115
- package/dist/Breadcrumbs-B-pjVWeD.js +0 -184
- package/dist/Breadcrumbs-CqDYLfIQ.cjs +0 -1
- package/dist/Button-C0N1cyOQ.cjs +0 -1
- package/dist/Button-CuwzIVWv.js +0 -132
- package/dist/Calendar-Bbk7bPW1.cjs +0 -1
- package/dist/Calendar-EiqHtUG2.js +0 -155
- package/dist/Card-B5FTcFEQ.cjs +0 -1
- package/dist/Card-DUTWbKv7.js +0 -143
- package/dist/CommandPalette-C8-2XCrf.cjs +0 -1
- package/dist/Confirm-BA-t4jPF.cjs +0 -1
- package/dist/Confirm-MmMvMttu.js +0 -313
- package/dist/CopyButton-Bcc2BDJ8.js +0 -65
- package/dist/CopyButton-CwHAVKQ6.cjs +0 -1
- package/dist/DataTable-D4KrQH5E.js +0 -485
- package/dist/DataTable-DVJnvBQM.cjs +0 -1
- package/dist/DatePicker-BmuVSyZ3.cjs +0 -1
- package/dist/DatePicker-CagtB0Sd.js +0 -743
- package/dist/FileUploader-B9j-HmX3.js +0 -193
- package/dist/FileUploader-BolhAWrI.cjs +0 -1
- package/dist/FloatingToolbar-CYOuKLd7.js +0 -140
- package/dist/FloatingToolbar-DxUUozlf.cjs +0 -1
- package/dist/ImagePicker-CZEFzYC8.js +0 -171
- package/dist/ImagePicker-CebI8MDy.cjs +0 -1
- package/dist/InfoHint-DVrm41q9.js +0 -177
- package/dist/InfoHint-WYitTbYz.cjs +0 -1
- package/dist/InlineEdit-DViLVwtn.js +0 -116
- package/dist/InlineEdit-DfkmTudh.cjs +0 -1
- package/dist/Menu-CLDGxi-1.cjs +0 -1
- package/dist/Menu-C_UsGyKX.js +0 -177
- package/dist/Modal-1i_nDqvM.cjs +0 -1
- package/dist/Modal-CxIl02xU.js +0 -229
- package/dist/NotificationCenter-CXn7sGFw.cjs +0 -1
- package/dist/NotificationCenter-Cu_vs-jh.js +0 -584
- package/dist/NumberInput-CMxlZ54a.cjs +0 -1
- package/dist/NumberInput-Dy0leAIF.js +0 -324
- package/dist/Select-Bz4tf2H_.cjs +0 -1
- package/dist/Select-hL8I-aNK.js +0 -603
- package/dist/Shell-BxGBrQsM.js +0 -536
- package/dist/Shell-BzXh23BU.cjs +0 -1
- package/dist/ShellPanel-DzkkJYVd.js +0 -126
- package/dist/ShellPanel-XYKkAc5n.cjs +0 -1
- package/dist/Skeleton-CqZ9O0X0.cjs +0 -1
- package/dist/SuggestionList-BJjbVvt2.cjs +0 -1
- package/dist/SuggestionList-Bdx7CK__.js +0 -189
- package/dist/TextInput-BXyJQfGx.js +0 -348
- package/dist/TextInput-DKp819VS.cjs +0 -2
- package/dist/Toast-BKrvlON6.cjs +0 -1
- package/dist/Toast-fRHhhjZV.js +0 -115
- package/dist/UserMenu-GJHs1fKI.cjs +0 -1
- package/dist/Video-D1WOYCYH.cjs +0 -1
- package/dist/Video-DrDqaCXl.js +0 -104
- package/dist/Walkthrough-DXMDgB9t.cjs +0 -1
- package/dist/Walkthrough-D_vfYTWP.js +0 -327
- package/dist/main-BTximdIU.js +0 -1255
- package/dist/main-DkNxc78b.cjs +0 -4
- package/dist/motion-BjVtMTXD.cjs +0 -1
- package/dist/motion-C0h9XZQZ.js +0 -18
- /package/dist/{Badge-CfICqXrd.cjs → Badge-BYfdJcdD.cjs} +0 -0
- /package/dist/{Badge-BFsoJcCK.js → Badge-scjsdx_V.js} +0 -0
- /package/dist/{Blueprint.context-B3d5-4jD.cjs → Blueprint.context-BX56xsrT.cjs} +0 -0
- /package/dist/{Blueprint.context-B4bRLj7m.js → Blueprint.context-Bz6Jy1Ou.js} +0 -0
- /package/dist/{BlueprintBackground-5OOF-VpK.js → BlueprintBackground-DPjZeMwY.js} +0 -0
- /package/dist/{BlueprintBackground-D_JokLTK.cjs → BlueprintBackground-yHRGclEz.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CACuVJqI.cjs → BlueprintMinimap-qskDNYyr.cjs} +0 -0
- /package/dist/{BlueprintMinimap-Ehrltju2.js → BlueprintMinimap-xnsyS1M8.js} +0 -0
- /package/dist/{Card.link-eRkbFiF1.cjs → Card.link-Bw2B_lPO.cjs} +0 -0
- /package/dist/{Card.link-CB8_CTbn.js → Card.link-CdvubtHJ.js} +0 -0
- /package/dist/{CardGrid-DzjiR2wg.cjs → CardGrid-DPaITpcU.cjs} +0 -0
- /package/dist/{CardGrid-BOhFOzTs.js → CardGrid-j0TFmVrQ.js} +0 -0
- /package/dist/{ChartLegend-C81jju4k.cjs → ChartLegend-COJeG-2B.cjs} +0 -0
- /package/dist/{ChartLegend-fsJqOyGj.js → ChartLegend-LDNukufA.js} +0 -0
- /package/dist/{CheckboxGroup.context-C8p21aqH.cjs → CheckboxGroup.context-ADwiY4gy.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-Cu0BA648.js → CheckboxGroup.context-C1QB-Zsq.js} +0 -0
- /package/dist/{ContainedList-DV8kZgTS.cjs → ContainedList-CBWwEmoK.cjs} +0 -0
- /package/dist/{ContainedList-7uMU4e4Z.js → ContainedList-PUA2OJ08.js} +0 -0
- /package/dist/{DefinitionList-DIPobaPW.js → DefinitionList-BOVcW-V7.js} +0 -0
- /package/dist/{DefinitionList-BuRW4drr.cjs → DefinitionList-CndoLDLs.cjs} +0 -0
- /package/dist/{DefinitionListItem-CbVnrShi.js → DefinitionListItem-C3VrLhWY.js} +0 -0
- /package/dist/{DefinitionListItem-Bf9amK8a.cjs → DefinitionListItem-CLztc8mQ.cjs} +0 -0
- /package/dist/{DragHandle-snItY92k.cjs → DragHandle-Bz2N22Sm.cjs} +0 -0
- /package/dist/{DragHandle-dCNBfHJe.js → DragHandle-Cc7WrUj7.js} +0 -0
- /package/dist/{EmptyState-B8EM9ynK.cjs → EmptyState-Db0Zrrk2.cjs} +0 -0
- /package/dist/{EmptyState-D-fku2DD.js → EmptyState-DhlJV0C6.js} +0 -0
- /package/dist/{Field-3S8uGW95.cjs → Field-COMPegVv.cjs} +0 -0
- /package/dist/{Field-DK5iec3Z.js → Field-D12Dja-u.js} +0 -0
- /package/dist/{Flag-myXFwopO.js → Flag-DyDqHJy3.js} +0 -0
- /package/dist/{Flag-CNx_cE4Q.cjs → Flag-gM91kXTi.cjs} +0 -0
- /package/dist/{Grid-jlgLOwom.js → Grid-B7d8x0tA.js} +0 -0
- /package/dist/{Grid-C0muGlj3.cjs → Grid-BOtE_jXr.cjs} +0 -0
- /package/dist/{JsonTree-Bmj8WtzK.cjs → JsonTree-MjCO8_Xk.cjs} +0 -0
- /package/dist/{JsonTree-BWfMcWOV.js → JsonTree-VbXpLPoG.js} +0 -0
- /package/dist/{Label-CTOPIIbR.cjs → Label-CjxnZgNy.cjs} +0 -0
- /package/dist/{Label-BDMCrURR.js → Label-xwHw_UbN.js} +0 -0
- /package/dist/{Layer-BJeI6Q6N.js → Layer-Btb-b9Mk.js} +0 -0
- /package/dist/{Layer-D-MNrLiB.cjs → Layer-D0NqQYM0.cjs} +0 -0
- /package/dist/{MenuBar-aLDr7-eJ.cjs → MenuBar-BVgGbppN.cjs} +0 -0
- /package/dist/{MenuBar-DyJufs5b.js → MenuBar-M2eiYZG0.js} +0 -0
- /package/dist/{MenuDivider-aZIXvYsH.js → MenuDivider-B3tNv2aj.js} +0 -0
- /package/dist/{MenuDivider-D75yF8o8.cjs → MenuDivider-BSMtwoUU.cjs} +0 -0
- /package/dist/{Message-Bija1nMK.cjs → Message-BJO4MjiQ.cjs} +0 -0
- /package/dist/{Message-BONOwoVY.js → Message-DCeg8qsC.js} +0 -0
- /package/dist/{NotificationCenterItem-zdOMnxv1.cjs → NotificationCenterItem-D0agavaK.cjs} +0 -0
- /package/dist/{NotificationCenterItem-BbbBFYEu.js → NotificationCenterItem-O6SR_6KR.js} +0 -0
- /package/dist/{NubiscoMark-Cf7Ek83E.cjs → NubiscoMark-3StsXBoJ.cjs} +0 -0
- /package/dist/{NubiscoMark-BLT8ULAl.js → NubiscoMark-XJWPWIc0.js} +0 -0
- /package/dist/{NubiscoPlatformMark-Dca7vi6H.js → NubiscoPlatformMark-BgQLjI89.js} +0 -0
- /package/dist/{NubiscoPlatformMark-CXMSQDYh.cjs → NubiscoPlatformMark-D8WIp4On.cjs} +0 -0
- /package/dist/{PageLayout-DQKfOSQq.js → PageLayout-BMcT2mzU.js} +0 -0
- /package/dist/{PageLayout-Dw4JYS3k.cjs → PageLayout-DHi1w1PD.cjs} +0 -0
- /package/dist/{PrimaryAction.context-BkYkcMlm.js → PrimaryAction.context-DZUcR5ER.js} +0 -0
- /package/dist/{PrimaryAction.context-2v_jcQAo.cjs → PrimaryAction.context-DnzRVqGH.cjs} +0 -0
- /package/dist/{ReorderList-B1CYGR0e.js → ReorderList-DmjW30Mw.js} +0 -0
- /package/dist/{ReorderList-DBW8TBu6.cjs → ReorderList-qScXc3-v.cjs} +0 -0
- /package/dist/{SidebarBrand-FHBO4Dw3.js → SidebarBrand-CZf-kRyZ.js} +0 -0
- /package/dist/{SidebarBrand-CX-BgI4X.cjs → SidebarBrand-D2u7hX-v.cjs} +0 -0
- /package/dist/{SidebarLink-xtGCDABj.js → SidebarLink-BuRBmv_k.js} +0 -0
- /package/dist/{SidebarLink-DTGVapwa.cjs → SidebarLink-CSTNfb2F.cjs} +0 -0
- /package/dist/{SidebarMenu-CnsOBXeM.cjs → SidebarMenu-CAthEmyy.cjs} +0 -0
- /package/dist/{SidebarMenu-D24o7HS-.js → SidebarMenu-CgWUHllQ.js} +0 -0
- /package/dist/{SidebarMenuGroup-DJasr_cx.cjs → SidebarMenuGroup-B9JGPBcF.cjs} +0 -0
- /package/dist/{SidebarMenuGroup-Bjc2IeK5.js → SidebarMenuGroup-DdWg57Wv.js} +0 -0
- /package/dist/{SidebarMenuItem-UFeKPTvc.js → SidebarMenuItem-BvvoDIjK.js} +0 -0
- /package/dist/{SidebarMenuItem-DP4L8ljr.cjs → SidebarMenuItem-eFnj5QoE.cjs} +0 -0
- /package/dist/{SidebarStatus-D-CfUYFc.js → SidebarStatus-CnTnYL4x.js} +0 -0
- /package/dist/{SidebarStatus-YfLW9xzC.cjs → SidebarStatus-CvjuggXO.cjs} +0 -0
- /package/dist/{Sparkline-MAi1Fh2T.cjs → Sparkline-B7kUEfuW.cjs} +0 -0
- /package/dist/{Sparkline-m3wbt-f1.js → Sparkline-CVzkzaOJ.js} +0 -0
- /package/dist/{Stepper.context-DUIDhN9Q.cjs → Stepper.context-Brnt5IZv.cjs} +0 -0
- /package/dist/{Stepper.context-DqfEvgGM.js → Stepper.context-CRKX8lxW.js} +0 -0
- /package/dist/{StructuredList-h9JFXpF4.cjs → StructuredList-BexC0c1Z.cjs} +0 -0
- /package/dist/{StructuredList-BSfuLANB.js → StructuredList-DuBBP01p.js} +0 -0
- /package/dist/{Submenu-Dxo3DUDA.cjs → Submenu-DRkHiWsD.cjs} +0 -0
- /package/dist/{Submenu-BnMaJKYm.js → Submenu-Dnj5MiFy.js} +0 -0
- /package/dist/{TextInput.context-DV1MgL_Q.js → TextInput.context-B-mipPOo.js} +0 -0
- /package/dist/{TextInput.context-UTLuljcO.cjs → TextInput.context-ChkcqMNM.cjs} +0 -0
- /package/dist/{TreeContext-TZ35sT5B.cjs → TreeContext-B2Io2oii.cjs} +0 -0
- /package/dist/{TreeContext--GZ21fCm.js → TreeContext-Cs4iAw0d.js} +0 -0
- /package/dist/{Wireframe-CL0rjsos.cjs → Wireframe-3fvc4I5-.cjs} +0 -0
- /package/dist/{Wireframe-BxUNaH2g.js → Wireframe-C_Ca3wCn.js} +0 -0
- /package/dist/{palette-CWU7exM6.js → palette-6bEW4KUN.js} +0 -0
- /package/dist/{palette-B7XEOMVB.cjs → palette-LbOzdAXj.cjs} +0 -0
- /package/dist/{pixi-scene-BKyneWmd.cjs → pixi-scene-CQ1qoZvX.cjs} +0 -0
- /package/dist/{pixi-scene-TbaBQ2-u.js → pixi-scene-DFCEvc1j.js} +0 -0
- /package/dist/{scales-CNW8JgKC.js → scales-BGzTviac.js} +0 -0
- /package/dist/{scales-B8IbC7t_.cjs → scales-BRSHTjbp.cjs} +0 -0
- /package/dist/{useChartSize-CftshgoY.js → useChartSize-05CLdiR0.js} +0 -0
- /package/dist/{useChartSize-B6Bes760.cjs → useChartSize-CUZ7BuGD.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-Dn1mqnqe.cjs → useLoadingAnnouncer.composable-CEPRjDi3.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BAwecV1M.js → useLoadingAnnouncer.composable-c0XX_xNT.js} +0 -0
- /package/dist/{vue-i18n-DSR949qU.js → vue-i18n-DaD-yZmK.js} +0 -0
- /package/dist/{vue-i18n-DIvTc6LM.cjs → vue-i18n-ZdR0XDmN.cjs} +0 -0
package/dist/main-BTximdIU.js
DELETED
|
@@ -1,1255 +0,0 @@
|
|
|
1
|
-
import { prefersReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
|
|
2
|
-
import { n as t } from "./motion-C0h9XZQZ.js";
|
|
3
|
-
import { TOUR_STEP_ATTRIBUTE as n } from "./utils/tourTarget.helper.mjs";
|
|
4
|
-
import { NB_COMMAND_PALETTE_KEY as r, createCommandPaletteState as i } from "./composables/useCommandPalette.composable.mjs";
|
|
5
|
-
import { t as a } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
6
|
-
import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, defineComponent as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onMounted as ee, openBlock as h, ref as g, renderList as te, renderSlot as ne, toDisplayString as re, useTemplateRef as ie, vModelText as ae, withDirectives as oe, withModifiers as se } from "vue";
|
|
7
|
-
//#region \0rolldown/runtime.js
|
|
8
|
-
var _ = Object.defineProperty, v = (e, t) => {
|
|
9
|
-
let n = {};
|
|
10
|
-
for (var r in e) _(n, r, {
|
|
11
|
-
get: e[r],
|
|
12
|
-
enumerable: !0
|
|
13
|
-
});
|
|
14
|
-
return t || _(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
15
|
-
}, y = /* @__PURE__ */ v({ default: () => b });
|
|
16
|
-
function b(e) {
|
|
17
|
-
e.directive("nb-context-menu", {
|
|
18
|
-
mounted(e, t) {
|
|
19
|
-
let n = (e) => {
|
|
20
|
-
e.preventDefault(), typeof t.value == "function" && t.value({
|
|
21
|
-
x: e.clientX,
|
|
22
|
-
y: e.clientY
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
e.__nbContextMenuHandler__ = n, e.addEventListener("contextmenu", n);
|
|
26
|
-
},
|
|
27
|
-
updated(e, t) {
|
|
28
|
-
e.__nbContextMenuHandler__ && e.removeEventListener("contextmenu", e.__nbContextMenuHandler__);
|
|
29
|
-
let n = (e) => {
|
|
30
|
-
e.preventDefault(), typeof t.value == "function" && t.value({
|
|
31
|
-
x: e.clientX,
|
|
32
|
-
y: e.clientY
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
e.__nbContextMenuHandler__ = n, e.addEventListener("contextmenu", n);
|
|
36
|
-
},
|
|
37
|
-
unmounted(e) {
|
|
38
|
-
e.__nbContextMenuHandler__ && (e.removeEventListener("contextmenu", e.__nbContextMenuHandler__), delete e.__nbContextMenuHandler__);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/directives/ToolTip.content.ts
|
|
44
|
-
var ce = /* @__PURE__ */ v({
|
|
45
|
-
devWarn: () => j,
|
|
46
|
-
renderTooltipContent: () => N
|
|
47
|
-
}), x = new Set([
|
|
48
|
-
"span",
|
|
49
|
-
"div",
|
|
50
|
-
"p",
|
|
51
|
-
"b",
|
|
52
|
-
"strong",
|
|
53
|
-
"em",
|
|
54
|
-
"i",
|
|
55
|
-
"u",
|
|
56
|
-
"s",
|
|
57
|
-
"small",
|
|
58
|
-
"code",
|
|
59
|
-
"kbd",
|
|
60
|
-
"br",
|
|
61
|
-
"ul",
|
|
62
|
-
"ol",
|
|
63
|
-
"li"
|
|
64
|
-
]), S = new Set(["br"]), C = new Set([
|
|
65
|
-
"class",
|
|
66
|
-
"style",
|
|
67
|
-
"dir",
|
|
68
|
-
"lang"
|
|
69
|
-
]), w = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), T = new Set(/* @__PURE__ */ "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(".")), le = /url\(|image-set\(|expression\(|javascript:|@import|\\/i, E = /^[A-Za-z_-][A-Za-z0-9_-]*$/, D = (e) => e.split(";").map((e) => {
|
|
70
|
-
let t = e.indexOf(":");
|
|
71
|
-
if (t < 0) return "";
|
|
72
|
-
let n = e.slice(0, t).trim().toLowerCase(), r = e.slice(t + 1).trim();
|
|
73
|
-
return !n || !r ? "" : T.has(n) ? le.test(r) ? (j(`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}` : (j(`style:${n}`, `"${n}" is not an allowed tooltip content style property and was dropped.`), "");
|
|
74
|
-
}).filter(Boolean).join("; "), ue = (e) => e.split(/\s+/).filter((e) => e ? E.test(e) ? !0 : (j(`class:${e}`, `"${e}" is not a valid class token for tooltip content and was dropped.`), !1) : !1).join(" "), O = (e, t) => e === "style" ? D(t) : e === "class" ? ue(t) : t, k = new Set([
|
|
75
|
-
"b",
|
|
76
|
-
"strong",
|
|
77
|
-
"em",
|
|
78
|
-
"i",
|
|
79
|
-
"u",
|
|
80
|
-
"s",
|
|
81
|
-
"small",
|
|
82
|
-
"code",
|
|
83
|
-
"kbd",
|
|
84
|
-
"br",
|
|
85
|
-
"p"
|
|
86
|
-
]), A = {
|
|
87
|
-
"<": "<",
|
|
88
|
-
">": ">",
|
|
89
|
-
"\"": """,
|
|
90
|
-
"'": "'"
|
|
91
|
-
}, de = (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) => A[e]), fe = (e) => e.split(/(<[^<>]*>)/g).map((e) => {
|
|
92
|
-
if (e.startsWith("<") && e.endsWith(">")) {
|
|
93
|
-
let t = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)\s*\/?\s*>$/.exec(e), n = t?.[2]?.toLowerCase();
|
|
94
|
-
return n && k.has(n) ? `<${t[1]}${n}>` : (n && j(`string-tag:${n}`, `<${n}> is not allowed in a tooltip string and was shown as text. Use the structured content form for anything richer.`), de(e));
|
|
95
|
-
}
|
|
96
|
-
return de(e).replace(/\n/g, "<br>");
|
|
97
|
-
}).join(""), pe = /* @__PURE__ */ new Set(), j = (e, t) => {
|
|
98
|
-
typeof process < "u" && process.env.NODE_ENV === "production" || pe.has(e) || (pe.add(e), console.warn(`[nb-tooltip] ${t}`));
|
|
99
|
-
}, M = (e) => {
|
|
100
|
-
if (Array.isArray(e)) return e.map((e) => M(e)).join("");
|
|
101
|
-
if (!e || typeof e != "object" || !e.component) return "";
|
|
102
|
-
let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Array.isArray(a) ? M(a) : a === void 0 ? "" : fe(String(a)), s = String(t).toLowerCase();
|
|
103
|
-
if (!x.has(s)) return j(`tag:${s}`, `<${s}> is not allowed in tooltip content and was dropped. Allowed tags: ${[...x].join(", ")}.`), o;
|
|
104
|
-
let c = Object.entries(n).filter(([e]) => C.has(e) ? !0 : (j(`prop:${e}`, `"${e}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...C].join(", ")}.`), !1)).map(([e, t]) => [e, O(e, String(t))]).filter(([, e]) => e !== "").map(([e, t]) => `${e}="${w(t)}"`).join(" "), l = `<${s}${c ? ` ${c}` : ""}>`;
|
|
105
|
-
return S.has(s) ? l : `${l}${o}</${s}>`;
|
|
106
|
-
}, N = (e) => e ? typeof e == "string" ? fe(e) : Array.isArray(e) ? M(e) : "" : "", me = /* @__PURE__ */ v({
|
|
107
|
-
default: () => ct,
|
|
108
|
-
dismissAllTooltips: () => bt
|
|
109
|
-
}), P = (e) => e.status ?? e.flavor ?? "default", F = (e) => e.chipClass ?? e.classExtra, I = /* @__PURE__ */ new Set(), he = 0, ge = () => `nb-tooltip-${++he}`, _e = 900, ve = 4e3, ye = 500, be = 0, L = (e, t) => {
|
|
110
|
-
if (!e) return !1;
|
|
111
|
-
let n = Date.now() - e;
|
|
112
|
-
return n >= 0 && n < t;
|
|
113
|
-
}, xe = !1, R = () => {
|
|
114
|
-
if (xe || typeof document > "u") return;
|
|
115
|
-
xe = !0;
|
|
116
|
-
let e = (e) => {
|
|
117
|
-
if (I.size === 0) return;
|
|
118
|
-
let t = e?.target;
|
|
119
|
-
t instanceof Element && t.closest(".nb-tooltip") || yt("dismiss");
|
|
120
|
-
};
|
|
121
|
-
document.addEventListener("pointerdown", () => {
|
|
122
|
-
be = Date.now();
|
|
123
|
-
}, !0), document.addEventListener("dragstart", () => e(), !0), document.addEventListener("keydown", (t) => {
|
|
124
|
-
t.key === "Escape" && e();
|
|
125
|
-
}, !0), document.addEventListener("pointerdown", e, !0), window.addEventListener("blur", e), document.addEventListener("mouseleave", e);
|
|
126
|
-
}, Se = t.micro, Ce = 1e3, we = 2, Te = (e) => {
|
|
127
|
-
let t = e.tooltipElement;
|
|
128
|
-
if (!t) return !1;
|
|
129
|
-
if (t.__hovered__) return !0;
|
|
130
|
-
try {
|
|
131
|
-
return t.isConnected && t.matches(":hover");
|
|
132
|
-
} catch {
|
|
133
|
-
return !1;
|
|
134
|
-
}
|
|
135
|
-
}, Ee = (e) => {
|
|
136
|
-
if (!e.isConnected) return !1;
|
|
137
|
-
if (Te(e) || e.__trigger__ === "focus" && e.contains(document.activeElement) || e.__trigger__ === "touch" && L(e.__lastTouchAt__, ve)) return !0;
|
|
138
|
-
try {
|
|
139
|
-
return e.matches(":hover");
|
|
140
|
-
} catch {
|
|
141
|
-
return !0;
|
|
142
|
-
}
|
|
143
|
-
}, z = (e) => {
|
|
144
|
-
clearTimeout(e.__watchdogTimer__), e.__watchdogTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
145
|
-
}, B = (e) => {
|
|
146
|
-
z(e);
|
|
147
|
-
let t = () => {
|
|
148
|
-
if (!e.__chips__?.size) {
|
|
149
|
-
z(e);
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
if (Ee(e)) e.__watchdogMisses__ = 0;
|
|
153
|
-
else {
|
|
154
|
-
if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected) {
|
|
155
|
-
Q(e, !0, "program");
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
if (e.__watchdogMisses__ >= we) {
|
|
159
|
-
pt(e, "dismiss");
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
e.__watchdogTimer__ = setTimeout(t, Ce);
|
|
164
|
-
};
|
|
165
|
-
e.__watchdogTimer__ = setTimeout(t, Ce);
|
|
166
|
-
}, V = /* @__PURE__ */ new Set(), H = null, De = (e) => `${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`, Oe = (e) => {
|
|
167
|
-
if (typeof getComputedStyle != "function") return !1;
|
|
168
|
-
let t;
|
|
169
|
-
try {
|
|
170
|
-
t = getComputedStyle(e);
|
|
171
|
-
} catch {
|
|
172
|
-
return !1;
|
|
173
|
-
}
|
|
174
|
-
let n = `${t.overflow} ${t.overflowX} ${t.overflowY}`;
|
|
175
|
-
return /hidden|scroll|auto|clip|overlay/.test(n);
|
|
176
|
-
}, ke = (e) => {
|
|
177
|
-
let t = [], n = e.parentElement;
|
|
178
|
-
for (; n && n !== document.body && n !== document.documentElement;) Oe(n) && t.push(n), n = n.parentElement;
|
|
179
|
-
return t;
|
|
180
|
-
}, U = (e) => !(e.width === 0 && e.height === 0 && e.top === 0 && e.left === 0), Ae = (e, t) => {
|
|
181
|
-
if (!e.isConnected) return !1;
|
|
182
|
-
if (!U(t)) return !0;
|
|
183
|
-
if (t.width === 0 || t.height === 0 || !(t.bottom > 0 && t.right > 0 && t.top < window.innerHeight && t.left < window.innerWidth)) return !1;
|
|
184
|
-
for (let n of e.__clippers__ ?? []) {
|
|
185
|
-
if (!n.isConnected) continue;
|
|
186
|
-
let e = n.getBoundingClientRect();
|
|
187
|
-
if (U(e) && (t.bottom <= e.top || t.top >= e.bottom || t.right <= e.left || t.left >= e.right)) return !1;
|
|
188
|
-
}
|
|
189
|
-
return !0;
|
|
190
|
-
}, je = (e) => {
|
|
191
|
-
let t = e.tooltipElement;
|
|
192
|
-
if (!t || !e.__chips__?.size) {
|
|
193
|
-
V.delete(e);
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
let n = e.getBoundingClientRect();
|
|
197
|
-
if (!Ae(e, n)) {
|
|
198
|
-
e.__offscreenReported__ || (e.__offscreenReported__ = !0, pt(e, "dismiss"));
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
e.__offscreenReported__ = !1, e.__lastRect__ = De(n), e.__side__ !== "cursor" && $(e, t, e.__requestedSide__ ?? e.__side__);
|
|
202
|
-
}, W = () => {
|
|
203
|
-
K();
|
|
204
|
-
for (let e of Array.from(V)) je(e);
|
|
205
|
-
}, G = 100, Me = 320, Ne = 0, Pe = 0, K = () => {
|
|
206
|
-
Pe = Date.now() + Me;
|
|
207
|
-
}, q = () => {
|
|
208
|
-
if (V.size === 0) {
|
|
209
|
-
H = null;
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
let e = Date.now();
|
|
213
|
-
if (e >= Pe && e - Ne < G) {
|
|
214
|
-
H = requestAnimationFrame(q);
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
Ne = e;
|
|
218
|
-
for (let e of Array.from(V)) {
|
|
219
|
-
if (!e.tooltipElement) {
|
|
220
|
-
V.delete(e);
|
|
221
|
-
continue;
|
|
222
|
-
}
|
|
223
|
-
De(e.getBoundingClientRect()) !== e.__lastRect__ && (K(), je(e));
|
|
224
|
-
}
|
|
225
|
-
H = requestAnimationFrame(q);
|
|
226
|
-
}, J = !1, Fe = (e) => {
|
|
227
|
-
V.add(e), e.__lastRect__ = void 0, e.__clippers__ = ke(e), !(typeof window > "u") && (J || (J = !0, document.addEventListener("scroll", W, {
|
|
228
|
-
capture: !0,
|
|
229
|
-
passive: !0
|
|
230
|
-
}), window.addEventListener("resize", W, { passive: !0 })), H === null && typeof requestAnimationFrame == "function" && (H = requestAnimationFrame(q)));
|
|
231
|
-
}, Ie = (e) => {
|
|
232
|
-
V.delete(e), e.__lastRect__ = void 0, e.__clippers__ = void 0, !(V.size > 0 || typeof window > "u") && (J && (J = !1, document.removeEventListener("scroll", W, { capture: !0 }), window.removeEventListener("resize", W)), H !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(H), H = null));
|
|
233
|
-
}, Le = (t, n, r) => {
|
|
234
|
-
if (t.__chips__?.delete(n), clearTimeout(n.__removeTimer__), n.__removeTimer__ = void 0, r || e()) {
|
|
235
|
-
n.remove();
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
n.style.animation = "tooltipDisappear var(--nb-motion-micro) var(--nb-ease-exit) forwards", n.__removeTimer__ = setTimeout(() => {
|
|
239
|
-
n.__removeTimer__ = void 0, n.remove();
|
|
240
|
-
}, Se);
|
|
241
|
-
}, Re = (e, t) => {
|
|
242
|
-
if (Ie(e), e.__trigger__ = void 0, e.__side__ = void 0, e.__chips__) for (let n of Array.from(e.__chips__)) Le(e, n, t);
|
|
243
|
-
e.tooltipElement = void 0, e.__lastContent__ = void 0, z(e);
|
|
244
|
-
}, ze = "a[href], button, input, select, textarea, summary, [tabindex]", Y = "data-nb-tooltip-anchor", X = (e, t) => {
|
|
245
|
-
let n = t.target;
|
|
246
|
-
if (!(n instanceof Element) || n === e) return !0;
|
|
247
|
-
let r = n.closest(`[${Y}]`);
|
|
248
|
-
return r === null || r === e;
|
|
249
|
-
}, Be = "button, a[href], [role=\"button\"], [role=\"tab\"], [role=\"menuitem\"], input, select, textarea, label", Ve = (e) => {
|
|
250
|
-
let t = e.closest(Be);
|
|
251
|
-
return !t || t.disabled === !0 ? !1 : t.getAttribute("aria-disabled") !== "true";
|
|
252
|
-
}, Z = (e) => {
|
|
253
|
-
if (!e) return "";
|
|
254
|
-
if (typeof e == "string") return e.replace(/<[^>]*>/g, " ").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/\s+/g, " ").trim();
|
|
255
|
-
if (Array.isArray(e)) return e.map((e) => Z(e)).filter(Boolean).join(" ");
|
|
256
|
-
if (typeof e == "object") {
|
|
257
|
-
let t = e;
|
|
258
|
-
return Z(t.children ?? t.content);
|
|
259
|
-
}
|
|
260
|
-
return "";
|
|
261
|
-
}, He = (e) => [
|
|
262
|
-
Z(e.header),
|
|
263
|
-
Z(e.body),
|
|
264
|
-
Z(e.tip)
|
|
265
|
-
].filter(Boolean).join(". "), Ue = (e) => {
|
|
266
|
-
if (e.hasAttribute("aria-labelledby") || e.hasAttribute("aria-label") && !e.__ownsAriaLabel__ || e.hasAttribute("title") || (e.textContent ?? "").trim().length > 0) return !0;
|
|
267
|
-
let t = e.querySelector("img[alt]");
|
|
268
|
-
return !!t && (t.getAttribute("alt") ?? "").trim().length > 0;
|
|
269
|
-
}, We = (e, t) => {
|
|
270
|
-
let n = t.aria ?? "auto";
|
|
271
|
-
return n === "auto" ? Ue(e) ? "description" : "label" : n;
|
|
272
|
-
}, Ge = (e, t) => {
|
|
273
|
-
if (!t || We(e, t) !== "label") {
|
|
274
|
-
e.__ownsAriaLabel__ &&= (e.removeAttribute("aria-label"), !1), e.__ownsRole__ &&= (e.removeAttribute("role"), !1);
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
let n = He(t);
|
|
278
|
-
n && (e.setAttribute("aria-label", n), e.__ownsAriaLabel__ = !0, !e.__ownsRole__ && !e.hasAttribute("role") && !e.matches(ze) && (e.setAttribute("role", "img"), e.__ownsRole__ = !0));
|
|
279
|
-
}, Ke = (e, t) => {
|
|
280
|
-
let n = !!t?.focusable;
|
|
281
|
-
if (n && !e.__ownsTabIndex__) {
|
|
282
|
-
if (e.matches(ze) || e.hasAttribute("tabindex")) return;
|
|
283
|
-
e.setAttribute("tabindex", "0"), e.__ownsTabIndex__ = !0;
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
!n && e.__ownsTabIndex__ && (e.removeAttribute("tabindex"), e.__ownsTabIndex__ = !1);
|
|
287
|
-
}, qe = (e, t) => {
|
|
288
|
-
e.__prevDescribedBy__ = e.getAttribute("aria-describedby");
|
|
289
|
-
let n = [e.__prevDescribedBy__, t].filter(Boolean).join(" ");
|
|
290
|
-
e.setAttribute("aria-describedby", n);
|
|
291
|
-
}, Je = (e) => {
|
|
292
|
-
e.__prevDescribedBy__ !== void 0 && (e.__prevDescribedBy__ ? e.setAttribute("aria-describedby", e.__prevDescribedBy__) : e.removeAttribute("aria-describedby"), e.__prevDescribedBy__ = void 0);
|
|
293
|
-
}, Ye = "nb-tooltip-description", Xe = (e) => !!e && !!(e.body || e.header || e.tip), Ze = (e, t) => {
|
|
294
|
-
if (typeof document > "u") return;
|
|
295
|
-
let n = t && Xe(t) && We(e, t) === "description" ? He(t) : "";
|
|
296
|
-
if (!n) {
|
|
297
|
-
Qe(e);
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
let r = e.__descNode__;
|
|
301
|
-
r || (r = document.createElement("span"), r.className = Ye, r.id = ge(), r.setAttribute("role", "tooltip"), document.body.appendChild(r), e.__descNode__ = r, qe(e, r.id)), e.__descText__ !== n && (r.textContent = n, e.__descText__ = n);
|
|
302
|
-
}, Qe = (e) => {
|
|
303
|
-
e.__descNode__ && (Je(e), e.__descNode__.remove(), e.__descNode__ = void 0, e.__descText__ = void 0);
|
|
304
|
-
}, $e = (e, t) => {
|
|
305
|
-
if (Xe(t)) {
|
|
306
|
-
e.__prevTitle__ === void 0 && e.hasAttribute("title") && (e.__prevTitle__ = e.getAttribute("title") ?? "", e.removeAttribute("title"));
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
et(e);
|
|
310
|
-
}, et = (e) => {
|
|
311
|
-
e.__prevTitle__ !== void 0 && (e.hasAttribute("title") || e.setAttribute("title", e.__prevTitle__), e.__prevTitle__ = void 0);
|
|
312
|
-
}, tt = (e, t) => {
|
|
313
|
-
$e(e, t), Ge(e, t), Ze(e, t);
|
|
314
|
-
}, 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) => {
|
|
315
|
-
let t = e.__proxyHost__;
|
|
316
|
-
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);
|
|
317
|
-
}, at = (e) => {
|
|
318
|
-
let t = e.__tooltipBinding__ && nt(e) ? e.parentElement : null;
|
|
319
|
-
e.__proxyHost__ !== t && (it(e), t && (e.__proxyMove__ = ((t) => {
|
|
320
|
-
let n = t;
|
|
321
|
-
if (n.buttons) return;
|
|
322
|
-
let r = e.getBoundingClientRect();
|
|
323
|
-
if (U(r) ? rt(r, n.clientX, n.clientY) : t.target === e || e.contains(t.target)) {
|
|
324
|
-
e.__mouseX__ = n.clientX, e.__mouseY__ = n.clientY, e.__proxyInside__ ? e.__tooltipBinding__?.followCursor && $(e, e.tooltipElement, e.__requestedSide__) : (e.__proxyInside__ = !0, e.__showTooltip__?.("pointer"));
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
|
-
e.__proxyInside__ && (e.__proxyInside__ = !1, e.__hideTooltip__?.(void 0, "pointer"));
|
|
328
|
-
}), e.__proxyLeave__ = (() => {
|
|
329
|
-
e.__proxyInside__ && (e.__proxyInside__ = !1, e.__hideTooltip__?.(void 0, "pointer"));
|
|
330
|
-
}), t.addEventListener("mousemove", e.__proxyMove__), t.addEventListener("mouseleave", e.__proxyLeave__), e.__proxyHost__ = t));
|
|
331
|
-
}, ot = (e) => {
|
|
332
|
-
e.onOpenChange || j("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.");
|
|
333
|
-
}, st = (e, t) => {
|
|
334
|
-
if (!t) return;
|
|
335
|
-
let n = t.open === void 0 ? e.__openState__ === void 0 && t.defaultOpen ? !0 : void 0 : t.open;
|
|
336
|
-
n !== void 0 && n !== (e.__openState__ === !0 || !!e.__showTimer__) && (n ? e.__showTooltip__?.("program") : e.__hideTooltip__?.(0, "program"));
|
|
337
|
-
}, ct = (e) => {
|
|
338
|
-
R();
|
|
339
|
-
let t = e.config.globalProperties.$router;
|
|
340
|
-
t && t.beforeEach(() => {
|
|
341
|
-
I.forEach((e) => e?.__hideTooltip__?.(0, "program")), I.clear();
|
|
342
|
-
}), e.directive("nb-tooltip", {
|
|
343
|
-
mounted(e, t) {
|
|
344
|
-
e.__showTooltip__ = (t = "pointer") => {
|
|
345
|
-
let n = e.__tooltipBinding__;
|
|
346
|
-
if (n) {
|
|
347
|
-
if (n.open !== void 0 && t !== "program") {
|
|
348
|
-
ot(n), n.onOpenChange?.(!0, t);
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, ft(e, n, t);
|
|
352
|
-
}
|
|
353
|
-
}, e.__hideTooltip__ = (t = e.__tooltipBinding__?.hideDelay ?? 150, n = "dismiss") => {
|
|
354
|
-
let r = e.__tooltipBinding__;
|
|
355
|
-
if (r?.open !== void 0 && n !== "program") {
|
|
356
|
-
ot(r), r.onOpenChange?.(!1, n);
|
|
357
|
-
return;
|
|
358
|
-
}
|
|
359
|
-
if (clearTimeout(e.__hideTimer__), t <= 0) {
|
|
360
|
-
e.__hideTimer__ = void 0, Q(e, !0, n);
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
e.__hideTimer__ = setTimeout(() => {
|
|
364
|
-
e.__hideTimer__ = void 0, Q(e, t <= 0, n);
|
|
365
|
-
}, t);
|
|
366
|
-
}, e.__mouseMove__ = (t) => {
|
|
367
|
-
e.__mouseX__ = t.clientX, e.__mouseY__ = t.clientY, e.__tooltipBinding__?.followCursor && $(e, e.tooltipElement, e.__tooltipBinding__?.position);
|
|
368
|
-
}, e.__tooltipBinding__ = t.value, e.__showHandler__ = (t) => {
|
|
369
|
-
if (L(e.__lastTouchAt__, _e)) return;
|
|
370
|
-
let n = t;
|
|
371
|
-
n.buttons || (typeof n.clientX == "number" && (n.clientX || n.clientY) && (e.__mouseX__ = n.clientX, e.__mouseY__ = n.clientY), e.__showTooltip__?.("pointer"));
|
|
372
|
-
}, e.__hideHandler__ = () => e.__hideTooltip__?.(void 0, "pointer"), e.__focusHandler__ = (t) => {
|
|
373
|
-
L(be, ye) || X(e, t) && e.__showTooltip__?.("focus");
|
|
374
|
-
}, e.__blurHandler__ = () => e.__hideTooltip__?.(void 0, "focus"), e.__touchHandler__ = (t) => {
|
|
375
|
-
e.__tooltipBinding__?.touch !== !1 && X(e, t) && (e.__lastTouchAt__ = Date.now(), !Ve(e) && (e.__showTooltip__?.("touch"), e.__hideTooltip__?.(ve, "touch")));
|
|
376
|
-
}, Ke(e, t.value), tt(e, t.value), e.setAttribute(Y, ""), 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);
|
|
377
|
-
},
|
|
378
|
-
updated(e, t) {
|
|
379
|
-
let n = e.__tooltipBinding__;
|
|
380
|
-
if (e.__tooltipBinding__ = t.value, !t.value) {
|
|
381
|
-
tt(e, void 0), Ke(e, void 0), Q(e, !0);
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
-
if (n !== t.value && (tt(e, t.value), Ke(e, t.value)), at(e), st(e, t.value), !e.tooltipElement || n === t.value) return;
|
|
385
|
-
let r = dt(t.value);
|
|
386
|
-
r !== e.__lastContent__ && (e.__lastContent__ = r, mt(e, t.value));
|
|
387
|
-
},
|
|
388
|
-
unmounted(e) {
|
|
389
|
-
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, Q(e, !0), I.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(Y), it(e), e.__mouseMove__ && e.removeEventListener("mousemove", e.__mouseMove__), Ie(e);
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
}, lt = ({ header: e = "", body: t = "", tip: n = "" }) => `<div class="nb-tooltip-content"><div class="nb-tooltip-header">${N(e)}</div><div class="nb-tooltip-body">${N(t)}</div><div class="nb-tooltip-tip">${N(n)}</div></div>`, ut = (e, t, n) => [
|
|
393
|
-
"nb-tooltip",
|
|
394
|
-
`nb-tooltip-${e}`,
|
|
395
|
-
t ? `nb-tooltip-flavor-${t}` : "",
|
|
396
|
-
n || ""
|
|
397
|
-
].filter(Boolean).join(" "), dt = (e) => `${e.position ?? ""}|${P(e)}|${F(e) ?? ""}|${lt(e)}`, ft = (t, n, r = "pointer") => {
|
|
398
|
-
let { header: i, body: a, tip: o, delay: s = 400, animationTime: c, position: l, overflowOnly: u } = n, d = P(n), f = F(n);
|
|
399
|
-
if (clearTimeout(t.__showTimer__), t.__showTimer__ = void 0, Re(t, !0), u) {
|
|
400
|
-
let e = t.getBoundingClientRect();
|
|
401
|
-
if (!(Math.round(e.width) < Math.round(t.scrollWidth))) return;
|
|
402
|
-
}
|
|
403
|
-
if (!(a || i || o)) return;
|
|
404
|
-
let p = r === "pointer" ? s : 0, m = e();
|
|
405
|
-
t.__showTimer__ = setTimeout(() => {
|
|
406
|
-
if (t.__showTimer__ = void 0, !t.isConnected) return;
|
|
407
|
-
let e = r === "pointer" ? l ?? "cursor" : l && l !== "cursor" ? l : "top";
|
|
408
|
-
for (let e of Array.from(V)) e !== t && pt(e, "superseded");
|
|
409
|
-
let s = document.createElement("span");
|
|
410
|
-
if (s.className = ut(e, d, f), s.innerHTML = lt({
|
|
411
|
-
header: i,
|
|
412
|
-
body: a,
|
|
413
|
-
tip: o
|
|
414
|
-
}), s.addEventListener("mouseenter", () => {
|
|
415
|
-
s.__hovered__ = !0, clearTimeout(t.__hideTimer__), t.__hideTimer__ = void 0, t.__watchdogMisses__ = 0;
|
|
416
|
-
}), s.addEventListener("mouseleave", () => {
|
|
417
|
-
s.__hovered__ = !1, t.__hideTooltip__?.();
|
|
418
|
-
}), m) s.style.opacity = "1";
|
|
419
|
-
else {
|
|
420
|
-
let e = c === void 0 ? "var(--nb-motion-quick)" : `${c}ms`;
|
|
421
|
-
s.style.transition = `opacity ${e} ease-in-out`, s.style.animation = `tooltipAppear ${e} var(--nb-ease-enter) forwards`;
|
|
422
|
-
}
|
|
423
|
-
s.setAttribute("aria-hidden", "true"), t.__trigger__ = r, t.tooltipElement = s, (t.__chips__ ??= /* @__PURE__ */ new Set()).add(s), t.__lastContent__ = dt(n), I.add(t), document.body.appendChild(s), t.__requestedSide__ = e, t.__side__ = e, $(t, s, e), Fe(t), B(t);
|
|
424
|
-
let u = t.__openState__ === !0;
|
|
425
|
-
t.__openState__ = !0, u || n.onOpenChange?.(!0, r);
|
|
426
|
-
}, p);
|
|
427
|
-
}, pt = (e, t, n = !0) => {
|
|
428
|
-
if (e.__hideTooltip__) {
|
|
429
|
-
e.__hideTooltip__(n ? 0 : void 0, t);
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
|
-
Q(e, n, t);
|
|
433
|
-
}, Q = (e, t = !1, n = "dismiss") => {
|
|
434
|
-
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0;
|
|
435
|
-
let r = e.__openState__ === !0;
|
|
436
|
-
Re(e, t), I.delete(e), e.__requestedSide__ = void 0, r && (e.__openState__ = !1, e.__tooltipBinding__?.onOpenChange?.(!1, n));
|
|
437
|
-
}, mt = (e, t) => {
|
|
438
|
-
let { header: n, body: r, tip: i, position: a } = t, o = P(t), s = F(t), c = e.__requestedSide__ ?? e.__side__ ?? a, l = e.tooltipElement;
|
|
439
|
-
l && (l.innerHTML = lt({
|
|
440
|
-
header: n,
|
|
441
|
-
body: r,
|
|
442
|
-
tip: i
|
|
443
|
-
}), l.className = ut(e.__side__ ?? c ?? "cursor", o, s), $(e, l, c));
|
|
444
|
-
};
|
|
445
|
-
function ht(e, t, n, r, i, a, o) {
|
|
446
|
-
switch (e) {
|
|
447
|
-
case "top": return {
|
|
448
|
-
top: t.top - (r + i * 2),
|
|
449
|
-
left: t.left + t.width / 2 - (n / 2 + i / 2)
|
|
450
|
-
};
|
|
451
|
-
case "bottom": return {
|
|
452
|
-
top: t.bottom + i,
|
|
453
|
-
left: t.left + t.width / 2 - (n / 2 + i / 2)
|
|
454
|
-
};
|
|
455
|
-
case "left": return {
|
|
456
|
-
top: t.top + t.height / 2 - r / 2,
|
|
457
|
-
left: t.left - (n + i * 2)
|
|
458
|
-
};
|
|
459
|
-
case "right": return {
|
|
460
|
-
top: t.top + t.height / 2 - r / 2,
|
|
461
|
-
left: t.right + i
|
|
462
|
-
};
|
|
463
|
-
default: return {
|
|
464
|
-
top: o + gt,
|
|
465
|
-
left: a + gt
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
var gt = 14;
|
|
470
|
-
function _t(e, t, n, r, i) {
|
|
471
|
-
return t >= i && e >= i && t + n <= window.innerWidth - i && e + r <= window.innerHeight - i;
|
|
472
|
-
}
|
|
473
|
-
var vt = {
|
|
474
|
-
top: [
|
|
475
|
-
"bottom",
|
|
476
|
-
"right",
|
|
477
|
-
"left"
|
|
478
|
-
],
|
|
479
|
-
bottom: [
|
|
480
|
-
"top",
|
|
481
|
-
"right",
|
|
482
|
-
"left"
|
|
483
|
-
],
|
|
484
|
-
left: [
|
|
485
|
-
"right",
|
|
486
|
-
"top",
|
|
487
|
-
"bottom"
|
|
488
|
-
],
|
|
489
|
-
right: [
|
|
490
|
-
"left",
|
|
491
|
-
"top",
|
|
492
|
-
"bottom"
|
|
493
|
-
],
|
|
494
|
-
cursor: []
|
|
495
|
-
}, $ = (e, t, n) => {
|
|
496
|
-
if (!t) return;
|
|
497
|
-
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;
|
|
498
|
-
if (a > 0 && o > 0 && !_t(d.top, d.left, a, o, 16)) for (let e of vt[l]) {
|
|
499
|
-
let t = u(e);
|
|
500
|
-
if (_t(t.top, t.left, a, o, 16)) {
|
|
501
|
-
d = t, f = e;
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
let { top: p, left: m } = d;
|
|
506
|
-
if (a > 0 && o > 0) {
|
|
507
|
-
let e = window.innerWidth - a - 16, t = window.innerHeight - o - 16;
|
|
508
|
-
m > e && (m = e), m < 16 && (m = 16), p > t && (p = t), p < 16 && (p = 16);
|
|
509
|
-
}
|
|
510
|
-
if (f !== "cursor") {
|
|
511
|
-
for (let e of [
|
|
512
|
-
"top",
|
|
513
|
-
"bottom",
|
|
514
|
-
"left",
|
|
515
|
-
"right"
|
|
516
|
-
]) t.classList.remove(`nb-tooltip-${e}`);
|
|
517
|
-
t.classList.add(`nb-tooltip-${f}`);
|
|
518
|
-
}
|
|
519
|
-
if (e.__side__ = f, a > 0 && o > 0 && f !== "cursor") {
|
|
520
|
-
let e = r.left + r.width / 2, n = r.top + r.height / 2;
|
|
521
|
-
if (f === "top" || f === "bottom") {
|
|
522
|
-
let n = Math.max(8, Math.min(a - 8, e - m)) / a * 100;
|
|
523
|
-
t.style.setProperty("--nb-tooltip-arrow-offset", `${n}%`);
|
|
524
|
-
} else {
|
|
525
|
-
let e = Math.max(8, Math.min(o - 8, n - p)) / o * 100;
|
|
526
|
-
t.style.setProperty("--nb-tooltip-arrow-offset", `${e}%`);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
t.style.top = `${p}px`, t.style.left = `${m}px`;
|
|
530
|
-
};
|
|
531
|
-
function yt(e) {
|
|
532
|
-
for (let t of Array.from(I)) t.__hideTooltip__?.(0, e);
|
|
533
|
-
let t = /* @__PURE__ */ new Set();
|
|
534
|
-
for (let e of Array.from(I)) for (let n of e.__chips__ ?? []) t.add(n);
|
|
535
|
-
document.querySelectorAll("span.nb-tooltip").forEach((e) => {
|
|
536
|
-
t.has(e) || e.remove();
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
function bt() {
|
|
540
|
-
for (let e of Array.from(I)) e.__hideTooltip__?.(0, "program");
|
|
541
|
-
I.clear();
|
|
542
|
-
for (let e of Array.from(V)) Ie(e);
|
|
543
|
-
document.querySelectorAll("span.nb-tooltip").forEach((e) => e.remove());
|
|
544
|
-
}
|
|
545
|
-
//#endregion
|
|
546
|
-
//#region src/directives/TourStep.directive.ts
|
|
547
|
-
var xt = /* @__PURE__ */ v({ default: () => Ct });
|
|
548
|
-
function St(e, t) {
|
|
549
|
-
let r = t.value;
|
|
550
|
-
if (r == null || r === "") {
|
|
551
|
-
e.removeAttribute(n);
|
|
552
|
-
return;
|
|
553
|
-
}
|
|
554
|
-
e.setAttribute(n, String(r));
|
|
555
|
-
}
|
|
556
|
-
var Ct = (e) => {
|
|
557
|
-
e.directive("nb-tour-step", {
|
|
558
|
-
mounted: St,
|
|
559
|
-
updated: St,
|
|
560
|
-
unmounted(e) {
|
|
561
|
-
e.removeAttribute(n);
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
}, wt = /* @__PURE__ */ Object.assign({
|
|
565
|
-
"./ContextMenu.directive.ts": y,
|
|
566
|
-
"./ToolTip.content.ts": ce,
|
|
567
|
-
"./ToolTip.directive.ts": me,
|
|
568
|
-
"./TourStep.directive.ts": xt
|
|
569
|
-
}), Tt = { install(e) {
|
|
570
|
-
Object.values(wt).forEach((t) => {
|
|
571
|
-
typeof t.default == "function" && t.default(e);
|
|
572
|
-
});
|
|
573
|
-
} }, Et = { install(e) {
|
|
574
|
-
let t = i();
|
|
575
|
-
e.provide(r, t);
|
|
576
|
-
} }, Dt = /* @__PURE__ */ function(e) {
|
|
577
|
-
return e.Object = "object", e.Array = "array", e.Primitive = "primitive", e;
|
|
578
|
-
}(Dt || {}), Ot = {
|
|
579
|
-
key: 0,
|
|
580
|
-
class: "nb-spreadsheet__toolbar"
|
|
581
|
-
}, kt = {
|
|
582
|
-
key: 0,
|
|
583
|
-
class: "nb-spreadsheet__corner",
|
|
584
|
-
style: {
|
|
585
|
-
gridRow: 1,
|
|
586
|
-
gridColumn: 1
|
|
587
|
-
}
|
|
588
|
-
}, At = ["onClick"], jt = { class: "nb-spreadsheet__header-label" }, Mt = {
|
|
589
|
-
key: 0,
|
|
590
|
-
class: "nb-spreadsheet__sort",
|
|
591
|
-
"aria-hidden": "true"
|
|
592
|
-
}, Nt = ["onMousedown"], Pt = [
|
|
593
|
-
"title",
|
|
594
|
-
"data-cell",
|
|
595
|
-
"data-row",
|
|
596
|
-
"data-col",
|
|
597
|
-
"onMousedown",
|
|
598
|
-
"onMouseenter",
|
|
599
|
-
"onDblclick"
|
|
600
|
-
], Ft = ["inputmode"], It = 36, Lt = 32, Rt = /* @__PURE__ */ d({
|
|
601
|
-
__name: "Spreadsheet",
|
|
602
|
-
props: {
|
|
603
|
-
columns: {},
|
|
604
|
-
rows: {},
|
|
605
|
-
cellAttrs: {},
|
|
606
|
-
computed: {},
|
|
607
|
-
resizable: {
|
|
608
|
-
type: Boolean,
|
|
609
|
-
default: !0
|
|
610
|
-
},
|
|
611
|
-
rowReorderable: {
|
|
612
|
-
type: Boolean,
|
|
613
|
-
default: !1
|
|
614
|
-
},
|
|
615
|
-
showGutter: {
|
|
616
|
-
type: Boolean,
|
|
617
|
-
default: !0
|
|
618
|
-
},
|
|
619
|
-
gutterWidth: { default: 44 },
|
|
620
|
-
windowRows: { default: 80 },
|
|
621
|
-
locale: { default: "pt-PT" }
|
|
622
|
-
},
|
|
623
|
-
emits: [
|
|
624
|
-
"commit",
|
|
625
|
-
"change",
|
|
626
|
-
"selection",
|
|
627
|
-
"focus",
|
|
628
|
-
"row-reorder"
|
|
629
|
-
],
|
|
630
|
-
setup(e, { expose: t, emit: n }) {
|
|
631
|
-
let r = e, i = n, a = ie("scrollerRef"), d = ie("editorRef"), _ = g({}), v = g(null), y = g(null), b = g(null), ce = g(!1), x = g(null), S = g(0), C = g(0), w = "", T = g([]), le = g([]), E = s(() => {
|
|
632
|
-
let e = r.columns.filter((e) => e.pinned === "left"), t = r.columns.filter((e) => e.pinned === "right"), n = r.columns.filter((e) => !e.pinned);
|
|
633
|
-
return [
|
|
634
|
-
...e,
|
|
635
|
-
...n,
|
|
636
|
-
...t
|
|
637
|
-
];
|
|
638
|
-
});
|
|
639
|
-
function D(e) {
|
|
640
|
-
return _.value[e.id] ?? e.width ?? 120;
|
|
641
|
-
}
|
|
642
|
-
let ue = s(() => ({ gridTemplateColumns: (r.showGutter ? `${r.gutterWidth}px ` : "") + E.value.map((e) => `${D(e)}px`).join(" ") })), O = s(() => {
|
|
643
|
-
let e = r.rows.filter((e) => !e.pinned);
|
|
644
|
-
if (!v.value) return e;
|
|
645
|
-
let t = r.columns.find((e) => e.id === v.value.columnId);
|
|
646
|
-
if (!t) return e;
|
|
647
|
-
let n = v.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;
|
|
648
|
-
return [...e].sort((e, n) => i(e.values[t.id], n.values[t.id]));
|
|
649
|
-
}), k = s(() => r.rows.filter((e) => e.pinned === "top")), A = s(() => r.rows.filter((e) => e.pinned === "bottom")), de = s(() => {
|
|
650
|
-
let e = Math.max(1, Math.ceil((a.value?.clientHeight ?? 600) / Lt)), t = Math.max(10, Math.floor(r.windowRows / 4)), n = Math.floor(S.value / Lt) - k.value.length - t, i = Math.max(0, n), o = Math.min(O.value.length, i + e + t * 2), s = k.value.map((e, t) => ({
|
|
651
|
-
...e,
|
|
652
|
-
__virtualIndex: t,
|
|
653
|
-
gutterLabel: ""
|
|
654
|
-
})), c = O.value.slice(i, o).map((e, t) => ({
|
|
655
|
-
...e,
|
|
656
|
-
__virtualIndex: i + t + k.value.length
|
|
657
|
-
})), l = A.value.map((e, t) => ({
|
|
658
|
-
...e,
|
|
659
|
-
__virtualIndex: k.value.length + O.value.length + t,
|
|
660
|
-
gutterLabel: ""
|
|
661
|
-
}));
|
|
662
|
-
return [
|
|
663
|
-
...s,
|
|
664
|
-
...c,
|
|
665
|
-
...l
|
|
666
|
-
];
|
|
667
|
-
});
|
|
668
|
-
function fe(e, t) {
|
|
669
|
-
if (t == null || t === "") return "";
|
|
670
|
-
if (e.type === "number") {
|
|
671
|
-
let e = typeof t == "number" ? t : Number(t);
|
|
672
|
-
return Number.isFinite(e) ? new Intl.NumberFormat(r.locale, { maximumFractionDigits: 4 }).format(e) : String(t);
|
|
673
|
-
}
|
|
674
|
-
if (e.type === "date") {
|
|
675
|
-
let e = t instanceof Date ? t : new Date(t);
|
|
676
|
-
return Number.isNaN(e.getTime()) ? String(t) : new Intl.DateTimeFormat(r.locale).format(e);
|
|
677
|
-
}
|
|
678
|
-
return String(t);
|
|
679
|
-
}
|
|
680
|
-
function pe(e, t) {
|
|
681
|
-
if (t === "") return null;
|
|
682
|
-
if (e.type === "number") {
|
|
683
|
-
let e = t.replace(/\s/g, "").replace(",", "."), n = Number(e);
|
|
684
|
-
if (!Number.isFinite(n)) throw Error("Invalid number");
|
|
685
|
-
return n;
|
|
686
|
-
}
|
|
687
|
-
if (e.type === "date") {
|
|
688
|
-
let e = new Date(t);
|
|
689
|
-
if (Number.isNaN(e.getTime())) throw Error("Invalid date");
|
|
690
|
-
return e.toISOString().slice(0, 10);
|
|
691
|
-
}
|
|
692
|
-
return t;
|
|
693
|
-
}
|
|
694
|
-
function j(e, t) {
|
|
695
|
-
let n = r.rows.find((t) => t.id === e);
|
|
696
|
-
if (!n) return;
|
|
697
|
-
let i = n.values[t];
|
|
698
|
-
if (i !== void 0) return i;
|
|
699
|
-
if (r.computed) return r.computed(e, t, j);
|
|
700
|
-
}
|
|
701
|
-
function M(e, t) {
|
|
702
|
-
return r.cellAttrs ? r.cellAttrs(e.id, t.id, e, t) ?? {} : {};
|
|
703
|
-
}
|
|
704
|
-
function N(e, t) {
|
|
705
|
-
let n = M(e, t);
|
|
706
|
-
if (n.display !== void 0) return n.display;
|
|
707
|
-
let r = j(e.id, t.id);
|
|
708
|
-
return t.format ? t.format(r, e) : fe(t, r);
|
|
709
|
-
}
|
|
710
|
-
function me(e, t) {
|
|
711
|
-
let n = M(e, t), r = y.value?.rowId === e.id && y.value?.columnId === t.id, i = xe(e.id, t.id);
|
|
712
|
-
return {
|
|
713
|
-
[`nb-spreadsheet__cell--${t.align ?? (t.type === "number" || t.type === "date" ? "right" : "left")}`]: !0,
|
|
714
|
-
"nb-spreadsheet__cell--focused": r,
|
|
715
|
-
"nb-spreadsheet__cell--selected": i,
|
|
716
|
-
"nb-spreadsheet__cell--readonly": P(e, t),
|
|
717
|
-
"nb-spreadsheet__cell--computed": !!n.computed || !!e.computed,
|
|
718
|
-
"nb-spreadsheet__cell--pinned-top": e.pinned === "top",
|
|
719
|
-
"nb-spreadsheet__cell--pinned-bottom": e.pinned === "bottom",
|
|
720
|
-
[n.className ?? ""]: !!n.className,
|
|
721
|
-
[e.className ?? ""]: !!e.className
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
function P(e, t) {
|
|
725
|
-
if (e.computed || t.readOnly) return !0;
|
|
726
|
-
let n = M(e, t);
|
|
727
|
-
return !!n.readOnly || !!n.computed;
|
|
728
|
-
}
|
|
729
|
-
function F(e, t) {
|
|
730
|
-
return M(e, t).tooltip ?? "";
|
|
731
|
-
}
|
|
732
|
-
function I(e) {
|
|
733
|
-
return {
|
|
734
|
-
"nb-spreadsheet__header--sortable": !!e.sortable,
|
|
735
|
-
"nb-spreadsheet__header--pinned-left": e.pinned === "left",
|
|
736
|
-
"nb-spreadsheet__header--pinned-right": e.pinned === "right"
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
function he(e) {
|
|
740
|
-
if (e.pinned !== "left") return 0;
|
|
741
|
-
let t = r.showGutter ? r.gutterWidth : 0;
|
|
742
|
-
for (let n of E.value) {
|
|
743
|
-
if (n.id === e.id) break;
|
|
744
|
-
n.pinned === "left" && (t += D(n));
|
|
745
|
-
}
|
|
746
|
-
return t;
|
|
747
|
-
}
|
|
748
|
-
function ge(e) {
|
|
749
|
-
if (e.pinned !== "right") return 0;
|
|
750
|
-
let t = 0, n = [...E.value].reverse();
|
|
751
|
-
for (let r of n) {
|
|
752
|
-
if (r.id === e.id) break;
|
|
753
|
-
r.pinned === "right" && (t += D(r));
|
|
754
|
-
}
|
|
755
|
-
return t;
|
|
756
|
-
}
|
|
757
|
-
function _e(e, t) {
|
|
758
|
-
let n = (r.showGutter ? 2 : 1) + t, i = {};
|
|
759
|
-
return e.pinned === "left" ? (i.position = "sticky", i.left = `${he(e)}px`, i.zIndex = "3") : e.pinned === "right" && (i.position = "sticky", i.right = `${ge(e)}px`, i.zIndex = "3"), {
|
|
760
|
-
gridRow: 1,
|
|
761
|
-
gridColumn: n,
|
|
762
|
-
...i
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
function ve(e, t, n) {
|
|
766
|
-
let i = (r.showGutter ? 2 : 1) + n, a = e.__virtualIndex + 2, o = {};
|
|
767
|
-
return t.pinned === "left" ? (o.position = "sticky", o.left = `${he(t)}px`, o.zIndex = "2") : t.pinned === "right" && (o.position = "sticky", o.right = `${ge(t)}px`, o.zIndex = "2"), (e.pinned === "top" || e.pinned === "bottom") && (o.position = "sticky", o.zIndex = String(Math.max(Number(o.zIndex ?? 0), 2)), Object.assign(o, ye(e))), {
|
|
768
|
-
gridRow: a,
|
|
769
|
-
gridColumn: i,
|
|
770
|
-
...o
|
|
771
|
-
};
|
|
772
|
-
}
|
|
773
|
-
function ye(e) {
|
|
774
|
-
if (e.pinned === "top") {
|
|
775
|
-
let t = k.value.findIndex((t) => t.id === e.id);
|
|
776
|
-
return { top: `calc(var(--nbss-header-height) + var(--nbss-row-height) * ${Math.max(0, t)})` };
|
|
777
|
-
}
|
|
778
|
-
if (e.pinned === "bottom") {
|
|
779
|
-
let t = A.value, n = t.findIndex((t) => t.id === e.id);
|
|
780
|
-
return { bottom: `calc(var(--nbss-row-height) * ${Math.max(0, t.length - 1 - n)})` };
|
|
781
|
-
}
|
|
782
|
-
return {};
|
|
783
|
-
}
|
|
784
|
-
function be(e) {
|
|
785
|
-
return e.label === void 0 ? e.gutterLabel === void 0 ? String(e.__virtualIndex - k.value.length + 1) : e.gutterLabel : e.label;
|
|
786
|
-
}
|
|
787
|
-
function L(e) {
|
|
788
|
-
let t = {
|
|
789
|
-
position: "sticky",
|
|
790
|
-
left: "0",
|
|
791
|
-
zIndex: "2"
|
|
792
|
-
};
|
|
793
|
-
return e.pinned && (Object.assign(t, ye(e)), t.zIndex = "4"), {
|
|
794
|
-
gridRow: e.__virtualIndex + 2,
|
|
795
|
-
gridColumn: 1,
|
|
796
|
-
...t
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
function xe(e, t) {
|
|
800
|
-
if (!b.value) return !1;
|
|
801
|
-
let n = [
|
|
802
|
-
...k.value,
|
|
803
|
-
...O.value,
|
|
804
|
-
...A.value
|
|
805
|
-
].map((e) => e.id), r = E.value.map((e) => e.id), i = n.indexOf(b.value.startRowId), a = n.indexOf(b.value.endRowId), o = r.indexOf(b.value.startColumnId), s = r.indexOf(b.value.endColumnId), c = n.indexOf(e), l = r.indexOf(t);
|
|
806
|
-
return c >= Math.min(i, a) && c <= Math.max(i, a) && l >= Math.min(o, s) && l <= Math.max(o, s);
|
|
807
|
-
}
|
|
808
|
-
function R(e, t, n = !1) {
|
|
809
|
-
y.value = {
|
|
810
|
-
rowId: e,
|
|
811
|
-
columnId: t
|
|
812
|
-
}, n && b.value ? b.value = {
|
|
813
|
-
...b.value,
|
|
814
|
-
endRowId: e,
|
|
815
|
-
endColumnId: t
|
|
816
|
-
} : b.value = {
|
|
817
|
-
startRowId: e,
|
|
818
|
-
startColumnId: t,
|
|
819
|
-
endRowId: e,
|
|
820
|
-
endColumnId: t
|
|
821
|
-
}, i("focus", y.value), i("selection", b.value);
|
|
822
|
-
}
|
|
823
|
-
function Se(e) {
|
|
824
|
-
w = e.pointerType;
|
|
825
|
-
}
|
|
826
|
-
function Ce(e, t, n) {
|
|
827
|
-
let r = w === "touch" && !e.shiftKey && y.value?.rowId === t.id && y.value?.columnId === n.id;
|
|
828
|
-
if (w = "", x.value && K(), ce.value = !0, R(t.id, n.id, e.shiftKey), z(), e.preventDefault(), document.addEventListener("mouseup", Te, { once: !0 }), r && !P(t, n)) {
|
|
829
|
-
let e = j(t.id, n.id);
|
|
830
|
-
G(t, n, e == null ? "" : String(e), "edit");
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
function we(e, t) {
|
|
834
|
-
!ce.value || !b.value || (b.value = {
|
|
835
|
-
...b.value,
|
|
836
|
-
endRowId: e.id,
|
|
837
|
-
endColumnId: t.id
|
|
838
|
-
}, i("selection", b.value));
|
|
839
|
-
}
|
|
840
|
-
function Te() {
|
|
841
|
-
ce.value = !1;
|
|
842
|
-
}
|
|
843
|
-
function Ee(e, t) {
|
|
844
|
-
if (P(e, t)) return;
|
|
845
|
-
let n = j(e.id, t.id);
|
|
846
|
-
G(e, t, n == null ? "" : String(n), "edit");
|
|
847
|
-
}
|
|
848
|
-
function z() {
|
|
849
|
-
a.value?.focus({ preventScroll: !0 });
|
|
850
|
-
}
|
|
851
|
-
function B(e, t, n = !1) {
|
|
852
|
-
if (!y.value) {
|
|
853
|
-
let e = E.value[0], t = de.value[0];
|
|
854
|
-
e && t && R(t.id, e.id);
|
|
855
|
-
return;
|
|
856
|
-
}
|
|
857
|
-
let r = [
|
|
858
|
-
...k.value,
|
|
859
|
-
...O.value,
|
|
860
|
-
...A.value
|
|
861
|
-
], i = r.findIndex((e) => e.id === y.value.rowId), a = E.value.findIndex((e) => e.id === y.value.columnId), o = Math.max(0, Math.min(r.length - 1, i + e)), s = Math.max(0, Math.min(E.value.length - 1, a + t)), c = r[o].id, l = E.value[s].id;
|
|
862
|
-
R(c, l, n), ke(c, l);
|
|
863
|
-
}
|
|
864
|
-
function V(e) {
|
|
865
|
-
return e.replace(/["\\]/g, "\\$&");
|
|
866
|
-
}
|
|
867
|
-
function H(e) {
|
|
868
|
-
let t = a.value?.querySelector(e);
|
|
869
|
-
return t ? t.offsetHeight : 0;
|
|
870
|
-
}
|
|
871
|
-
function De(e) {
|
|
872
|
-
let t = 0;
|
|
873
|
-
for (let n of e) t += H(`[data-row="${V(n.id)}"]`);
|
|
874
|
-
return t;
|
|
875
|
-
}
|
|
876
|
-
function Oe(e) {
|
|
877
|
-
let t = e === "left" && r.showGutter ? r.gutterWidth : 0;
|
|
878
|
-
for (let n of E.value) n.pinned === e && (t += D(n));
|
|
879
|
-
return t;
|
|
880
|
-
}
|
|
881
|
-
function ke(e, t) {
|
|
882
|
-
let n = a.value;
|
|
883
|
-
if (!n) return;
|
|
884
|
-
let i = O.value.findIndex((t) => t.id === e);
|
|
885
|
-
if (i >= 0) {
|
|
886
|
-
let e = H(".nb-spreadsheet__header") || It, t = H(".nb-spreadsheet__cell") || Lt, r = e + (k.value.length + i) * t, a = e + De(k.value), o = De(A.value);
|
|
887
|
-
r - a < n.scrollTop ? n.scrollTop = r - a : r + t > n.scrollTop + n.clientHeight - o && (n.scrollTop = r + t - n.clientHeight + o);
|
|
888
|
-
}
|
|
889
|
-
let o = t ? E.value.find((e) => e.id === t) : void 0;
|
|
890
|
-
if (o && !o.pinned) {
|
|
891
|
-
let e = r.showGutter ? r.gutterWidth : 0;
|
|
892
|
-
for (let t of E.value) {
|
|
893
|
-
if (t.id === o.id) break;
|
|
894
|
-
e += D(t);
|
|
895
|
-
}
|
|
896
|
-
let t = D(o), i = Oe("left"), a = Oe("right");
|
|
897
|
-
e - i < n.scrollLeft ? n.scrollLeft = e - i : e + t > n.scrollLeft + n.clientWidth - a && (n.scrollLeft = e + t - n.clientWidth + a);
|
|
898
|
-
}
|
|
899
|
-
U();
|
|
900
|
-
}
|
|
901
|
-
function U() {
|
|
902
|
-
S.value = a.value?.scrollTop ?? 0, C.value = a.value?.scrollLeft ?? 0;
|
|
903
|
-
}
|
|
904
|
-
function Ae() {
|
|
905
|
-
if (!y.value) return null;
|
|
906
|
-
let e = r.rows.find((e) => e.id === y.value.rowId), t = r.columns.find((e) => e.id === y.value.columnId);
|
|
907
|
-
return e && t ? {
|
|
908
|
-
r: e,
|
|
909
|
-
c: t
|
|
910
|
-
} : null;
|
|
911
|
-
}
|
|
912
|
-
function je(e) {
|
|
913
|
-
return !e.metaKey && !e.ctrlKey && !e.altKey && e.key.length === 1;
|
|
914
|
-
}
|
|
915
|
-
function W(e) {
|
|
916
|
-
if (x.value) {
|
|
917
|
-
e.target !== d.value && (je(e) ? (e.preventDefault(), x.value.draft += e.key) : Pe(e));
|
|
918
|
-
return;
|
|
919
|
-
}
|
|
920
|
-
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "z") {
|
|
921
|
-
e.preventDefault(), e.shiftKey ? Be() : X();
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
924
|
-
switch (e.key) {
|
|
925
|
-
case "ArrowDown":
|
|
926
|
-
e.preventDefault(), B(1, 0, e.shiftKey);
|
|
927
|
-
break;
|
|
928
|
-
case "ArrowUp":
|
|
929
|
-
e.preventDefault(), B(-1, 0, e.shiftKey);
|
|
930
|
-
break;
|
|
931
|
-
case "ArrowLeft":
|
|
932
|
-
e.preventDefault(), B(0, -1, e.shiftKey);
|
|
933
|
-
break;
|
|
934
|
-
case "ArrowRight":
|
|
935
|
-
e.preventDefault(), B(0, 1, e.shiftKey);
|
|
936
|
-
break;
|
|
937
|
-
case "Tab":
|
|
938
|
-
e.preventDefault(), B(0, e.shiftKey ? -1 : 1);
|
|
939
|
-
break;
|
|
940
|
-
case "Enter":
|
|
941
|
-
e.preventDefault(), B(e.shiftKey ? -1 : 1, 0);
|
|
942
|
-
break;
|
|
943
|
-
case "Escape":
|
|
944
|
-
b.value = null, i("selection", null);
|
|
945
|
-
break;
|
|
946
|
-
case "Delete":
|
|
947
|
-
case "Backspace":
|
|
948
|
-
e.preventDefault(), J();
|
|
949
|
-
break;
|
|
950
|
-
case "F2": {
|
|
951
|
-
e.preventDefault();
|
|
952
|
-
let t = Ae();
|
|
953
|
-
if (t && !P(t.r, t.c)) {
|
|
954
|
-
let e = j(t.r.id, t.c.id);
|
|
955
|
-
G(t.r, t.c, e == null ? "" : String(e), "edit");
|
|
956
|
-
}
|
|
957
|
-
break;
|
|
958
|
-
}
|
|
959
|
-
default: {
|
|
960
|
-
if (!je(e)) break;
|
|
961
|
-
let t = Ae();
|
|
962
|
-
t && !P(t.r, t.c) && (e.preventDefault(), G(t.r, t.c, e.key, "enter"));
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
function G(e, t, n, r) {
|
|
967
|
-
ke(e.id, t.id), x.value = {
|
|
968
|
-
rowId: e.id,
|
|
969
|
-
columnId: t.id,
|
|
970
|
-
draft: n,
|
|
971
|
-
mode: r
|
|
972
|
-
}, f(() => {
|
|
973
|
-
let e = d.value;
|
|
974
|
-
if (e) if (e.focus({ preventScroll: !0 }), r === "enter") {
|
|
975
|
-
let t = e.value.length;
|
|
976
|
-
e.setSelectionRange(t, t);
|
|
977
|
-
} else e.select();
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
let Me = s(() => {
|
|
981
|
-
if (x.value) return r.columns.find((e) => e.id === x.value.columnId)?.type === "number" ? "decimal" : "text";
|
|
982
|
-
}), Ne = s(() => {
|
|
983
|
-
if (!x.value) return { display: "none" };
|
|
984
|
-
let e = a.value, t = e?.querySelector(`[data-cell="${V(`${x.value.rowId}::${x.value.columnId}`)}"]`);
|
|
985
|
-
if (!e || !t) return { display: "none" };
|
|
986
|
-
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
987
|
-
return {
|
|
988
|
-
top: `${n.top - r.top - e.clientTop + S.value}px`,
|
|
989
|
-
left: `${n.left - r.left - e.clientLeft + C.value}px`,
|
|
990
|
-
width: `${n.width}px`,
|
|
991
|
-
height: `${n.height}px`
|
|
992
|
-
};
|
|
993
|
-
});
|
|
994
|
-
function Pe(e) {
|
|
995
|
-
let t = x.value?.mode, n = null;
|
|
996
|
-
switch (e.key) {
|
|
997
|
-
case "Enter":
|
|
998
|
-
n = [e.shiftKey ? -1 : 1, 0];
|
|
999
|
-
break;
|
|
1000
|
-
case "Tab":
|
|
1001
|
-
n = [0, e.shiftKey ? -1 : 1];
|
|
1002
|
-
break;
|
|
1003
|
-
case "ArrowDown":
|
|
1004
|
-
n = [1, 0];
|
|
1005
|
-
break;
|
|
1006
|
-
case "ArrowUp":
|
|
1007
|
-
n = [-1, 0];
|
|
1008
|
-
break;
|
|
1009
|
-
case "ArrowLeft":
|
|
1010
|
-
t === "enter" && (n = [0, -1]);
|
|
1011
|
-
break;
|
|
1012
|
-
case "ArrowRight":
|
|
1013
|
-
t === "enter" && (n = [0, 1]);
|
|
1014
|
-
break;
|
|
1015
|
-
case "Escape":
|
|
1016
|
-
e.preventDefault(), x.value = null, z();
|
|
1017
|
-
return;
|
|
1018
|
-
}
|
|
1019
|
-
n && (e.preventDefault(), K(), B(n[0], n[1]));
|
|
1020
|
-
}
|
|
1021
|
-
function K(e = !0) {
|
|
1022
|
-
if (!x.value) return;
|
|
1023
|
-
let { rowId: t, columnId: n, draft: a } = x.value;
|
|
1024
|
-
x.value = null;
|
|
1025
|
-
let o = r.columns.find((e) => e.id === n);
|
|
1026
|
-
if (!o) return;
|
|
1027
|
-
let s;
|
|
1028
|
-
try {
|
|
1029
|
-
s = o.parse ? o.parse(a) : pe(o, a);
|
|
1030
|
-
} catch {
|
|
1031
|
-
e && z();
|
|
1032
|
-
return;
|
|
1033
|
-
}
|
|
1034
|
-
let c = j(t, n);
|
|
1035
|
-
if (c !== s) {
|
|
1036
|
-
let e = {
|
|
1037
|
-
rowId: t,
|
|
1038
|
-
columnId: n,
|
|
1039
|
-
before: c,
|
|
1040
|
-
after: s
|
|
1041
|
-
};
|
|
1042
|
-
Y([e]), i("commit", e), i("change", [e]);
|
|
1043
|
-
}
|
|
1044
|
-
e && z();
|
|
1045
|
-
}
|
|
1046
|
-
function q() {
|
|
1047
|
-
if (!b.value) return [];
|
|
1048
|
-
let e = [
|
|
1049
|
-
...k.value,
|
|
1050
|
-
...O.value,
|
|
1051
|
-
...A.value
|
|
1052
|
-
].map((e) => e.id), t = E.value.map((e) => e.id), n = e.indexOf(b.value.startRowId), r = e.indexOf(b.value.endRowId), i = t.indexOf(b.value.startColumnId), a = t.indexOf(b.value.endColumnId), o = [];
|
|
1053
|
-
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({
|
|
1054
|
-
rowId: e[s],
|
|
1055
|
-
columnId: t[n]
|
|
1056
|
-
});
|
|
1057
|
-
return o;
|
|
1058
|
-
}
|
|
1059
|
-
function J() {
|
|
1060
|
-
let e = q(), t = [];
|
|
1061
|
-
for (let { rowId: n, columnId: i } of e) {
|
|
1062
|
-
let e = r.rows.find((e) => e.id === n), a = r.columns.find((e) => e.id === i);
|
|
1063
|
-
if (!e || !a || P(e, a)) continue;
|
|
1064
|
-
let o = j(n, i);
|
|
1065
|
-
o == null || o === "" || t.push({
|
|
1066
|
-
rowId: n,
|
|
1067
|
-
columnId: i,
|
|
1068
|
-
before: o,
|
|
1069
|
-
after: null
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
if (t.length !== 0) {
|
|
1073
|
-
Y(t);
|
|
1074
|
-
for (let e of t) i("commit", e);
|
|
1075
|
-
i("change", t);
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
function Fe(e) {
|
|
1079
|
-
if (q().length === 0) return;
|
|
1080
|
-
let t = [
|
|
1081
|
-
...k.value,
|
|
1082
|
-
...O.value,
|
|
1083
|
-
...A.value
|
|
1084
|
-
].map((e) => e.id), n = E.value.map((e) => e.id), r = Math.min(t.indexOf(b.value.startRowId), t.indexOf(b.value.endRowId)), i = Math.max(t.indexOf(b.value.startRowId), t.indexOf(b.value.endRowId)), a = Math.min(n.indexOf(b.value.startColumnId), n.indexOf(b.value.endColumnId)), o = Math.max(n.indexOf(b.value.startColumnId), n.indexOf(b.value.endColumnId)), s = [];
|
|
1085
|
-
for (let e = r; e <= i; e++) {
|
|
1086
|
-
let r = [];
|
|
1087
|
-
for (let i = a; i <= o; i++) {
|
|
1088
|
-
let a = j(t[e], n[i]);
|
|
1089
|
-
r.push(a == null ? "" : String(a));
|
|
1090
|
-
}
|
|
1091
|
-
s.push(r.join(" "));
|
|
1092
|
-
}
|
|
1093
|
-
e.preventDefault(), e.clipboardData?.setData("text/plain", s.join("\n"));
|
|
1094
|
-
}
|
|
1095
|
-
function Ie(e) {
|
|
1096
|
-
Fe(e), J();
|
|
1097
|
-
}
|
|
1098
|
-
function Le(e) {
|
|
1099
|
-
if (!y.value) return;
|
|
1100
|
-
let t = e.clipboardData?.getData("text/plain") ?? "";
|
|
1101
|
-
if (!t) return;
|
|
1102
|
-
e.preventDefault();
|
|
1103
|
-
let n = t.replace(/\r\n?/g, "\n").split("\n").map((e) => e.split(" ")), a = [
|
|
1104
|
-
...k.value,
|
|
1105
|
-
...O.value,
|
|
1106
|
-
...A.value
|
|
1107
|
-
].map((e) => e.id), o = E.value.map((e) => e.id), s = a.indexOf(y.value.rowId), c = o.indexOf(y.value.columnId), l = [];
|
|
1108
|
-
if (n.forEach((e, t) => {
|
|
1109
|
-
e.forEach((e, n) => {
|
|
1110
|
-
let i = a[s + t], u = o[c + n];
|
|
1111
|
-
if (!i || !u) return;
|
|
1112
|
-
let d = r.rows.find((e) => e.id === i), f = r.columns.find((e) => e.id === u);
|
|
1113
|
-
if (!d || !f || P(d, f)) return;
|
|
1114
|
-
let p;
|
|
1115
|
-
try {
|
|
1116
|
-
p = f.parse ? f.parse(e) : pe(f, e);
|
|
1117
|
-
} catch {
|
|
1118
|
-
return;
|
|
1119
|
-
}
|
|
1120
|
-
let m = j(i, u);
|
|
1121
|
-
m !== p && l.push({
|
|
1122
|
-
rowId: i,
|
|
1123
|
-
columnId: u,
|
|
1124
|
-
before: m,
|
|
1125
|
-
after: p
|
|
1126
|
-
});
|
|
1127
|
-
});
|
|
1128
|
-
}), l.length !== 0) {
|
|
1129
|
-
Y(l);
|
|
1130
|
-
for (let e of l) i("commit", e);
|
|
1131
|
-
i("change", l);
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
function Re(e, t) {
|
|
1135
|
-
let n = e.clientX, r = D(t), i = t.minWidth ?? 60, a = (e) => {
|
|
1136
|
-
let a = Math.max(i, r + (e.clientX - n));
|
|
1137
|
-
_.value = {
|
|
1138
|
-
..._.value,
|
|
1139
|
-
[t.id]: a
|
|
1140
|
-
};
|
|
1141
|
-
}, o = () => {
|
|
1142
|
-
window.removeEventListener("mousemove", a), window.removeEventListener("mouseup", o);
|
|
1143
|
-
};
|
|
1144
|
-
window.addEventListener("mousemove", a), window.addEventListener("mouseup", o);
|
|
1145
|
-
}
|
|
1146
|
-
function ze(e) {
|
|
1147
|
-
e.sortable && (v.value?.columnId === e.id ? v.value = v.value.direction === "asc" ? {
|
|
1148
|
-
columnId: e.id,
|
|
1149
|
-
direction: "desc"
|
|
1150
|
-
} : null : v.value = {
|
|
1151
|
-
columnId: e.id,
|
|
1152
|
-
direction: "asc"
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
function Y(e) {
|
|
1156
|
-
T.value.push(e), le.value = [];
|
|
1157
|
-
}
|
|
1158
|
-
function X() {
|
|
1159
|
-
let e = T.value.pop();
|
|
1160
|
-
if (!e) return;
|
|
1161
|
-
let t = e.map((e) => ({
|
|
1162
|
-
...e,
|
|
1163
|
-
before: e.after,
|
|
1164
|
-
after: e.before
|
|
1165
|
-
}));
|
|
1166
|
-
for (let e of t) i("commit", e);
|
|
1167
|
-
i("change", t), le.value.push(e);
|
|
1168
|
-
}
|
|
1169
|
-
function Be() {
|
|
1170
|
-
let e = le.value.pop();
|
|
1171
|
-
if (e) {
|
|
1172
|
-
for (let t of e) i("commit", t);
|
|
1173
|
-
i("change", e), T.value.push(e);
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
return ee(() => {
|
|
1177
|
-
z();
|
|
1178
|
-
}), t({
|
|
1179
|
-
focus: (e, t) => R(e, t),
|
|
1180
|
-
undo: X,
|
|
1181
|
-
redo: Be,
|
|
1182
|
-
getSelection: () => b.value
|
|
1183
|
-
}), (t, n) => (h(), l("div", { class: p(["nb-spreadsheet", { "nb-spreadsheet--editing": !!x.value }]) }, [t.$slots.toolbar ? (h(), l("div", Ot, [ne(t.$slots, "toolbar", {}, void 0, !0)])) : c("", !0), u("div", {
|
|
1184
|
-
ref_key: "scrollerRef",
|
|
1185
|
-
ref: a,
|
|
1186
|
-
class: "nb-spreadsheet__scroller",
|
|
1187
|
-
tabindex: "0",
|
|
1188
|
-
onKeydown: W,
|
|
1189
|
-
onCopy: Fe,
|
|
1190
|
-
onCut: Ie,
|
|
1191
|
-
onPaste: Le,
|
|
1192
|
-
onScroll: U
|
|
1193
|
-
}, [u("div", {
|
|
1194
|
-
class: "nb-spreadsheet__grid",
|
|
1195
|
-
style: m(ue.value)
|
|
1196
|
-
}, [
|
|
1197
|
-
e.showGutter ? (h(), l("div", kt)) : c("", !0),
|
|
1198
|
-
(h(!0), l(o, null, te(E.value, (t, n) => (h(), l("div", {
|
|
1199
|
-
key: `h-${t.id}`,
|
|
1200
|
-
class: p(["nb-spreadsheet__header", I(t)]),
|
|
1201
|
-
style: m(_e(t, n)),
|
|
1202
|
-
onClick: (e) => ze(t)
|
|
1203
|
-
}, [
|
|
1204
|
-
u("span", jt, re(t.label), 1),
|
|
1205
|
-
v.value && v.value.columnId === t.id ? (h(), l("span", Mt, re(v.value.direction === "asc" ? "▲" : "▼"), 1)) : c("", !0),
|
|
1206
|
-
e.resizable ? (h(), l("span", {
|
|
1207
|
-
key: 1,
|
|
1208
|
-
class: "nb-spreadsheet__resize-handle",
|
|
1209
|
-
onMousedown: se((e) => Re(e, t), ["stop"])
|
|
1210
|
-
}, null, 40, Nt)) : c("", !0)
|
|
1211
|
-
], 14, At))), 128)),
|
|
1212
|
-
(h(!0), l(o, null, te(de.value, (t) => (h(), l(o, { key: `r-${t.id}` }, [e.showGutter ? (h(), l("div", {
|
|
1213
|
-
key: 0,
|
|
1214
|
-
class: p(["nb-spreadsheet__gutter", {
|
|
1215
|
-
"nb-spreadsheet__gutter--pinned-top": t.pinned === "top",
|
|
1216
|
-
"nb-spreadsheet__gutter--pinned-bottom": t.pinned === "bottom"
|
|
1217
|
-
}]),
|
|
1218
|
-
style: m(L(t))
|
|
1219
|
-
}, re(be(t)), 7)) : c("", !0), (h(!0), l(o, null, te(E.value, (e, r) => (h(), l("div", {
|
|
1220
|
-
key: `c-${t.id}-${e.id}`,
|
|
1221
|
-
class: p(["nb-spreadsheet__cell", me(t, e)]),
|
|
1222
|
-
style: m(ve(t, e, r)),
|
|
1223
|
-
title: F(t, e),
|
|
1224
|
-
"data-cell": `${t.id}::${e.id}`,
|
|
1225
|
-
"data-row": t.id,
|
|
1226
|
-
"data-col": e.id,
|
|
1227
|
-
onPointerdown: n[0] ||= (e) => Se(e),
|
|
1228
|
-
onMousedown: (n) => Ce(n, t, e),
|
|
1229
|
-
onMouseenter: (n) => we(t, e),
|
|
1230
|
-
onDblclick: (n) => Ee(t, e)
|
|
1231
|
-
}, [u("span", null, re(N(t, e)), 1)], 46, Pt))), 128))], 64))), 128))
|
|
1232
|
-
], 4), x.value ? oe((h(), l("input", {
|
|
1233
|
-
key: 0,
|
|
1234
|
-
ref_key: "editorRef",
|
|
1235
|
-
ref: d,
|
|
1236
|
-
"onUpdate:modelValue": n[1] ||= (e) => x.value.draft = e,
|
|
1237
|
-
class: "nb-spreadsheet__editor",
|
|
1238
|
-
style: m(Ne.value),
|
|
1239
|
-
inputmode: Me.value,
|
|
1240
|
-
enterkeyhint: "next",
|
|
1241
|
-
onBlur: n[2] ||= (e) => K(!1),
|
|
1242
|
-
onKeydown: se(Pe, ["stop"])
|
|
1243
|
-
}, null, 44, Ft)), [[ae, x.value.draft]]) : c("", !0)], 544)], 2));
|
|
1244
|
-
}
|
|
1245
|
-
}), zt = /* @__PURE__ */ v({ default: () => Bt }), Bt = /* @__PURE__ */ a(Rt, [["__scopeId", "data-v-a10ecfbb"]]), Vt = /* @__PURE__ */ Object.assign({ "./components/labs/Spreadsheet.vue": zt }), Ht = { install(e) {
|
|
1246
|
-
Object.keys(Vt).forEach((t) => {
|
|
1247
|
-
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = Vt[t];
|
|
1248
|
-
e.component(n, r.default);
|
|
1249
|
-
});
|
|
1250
|
-
} }, Ut = { install(e, t = {}) {
|
|
1251
|
-
if (t.components) for (let [n, r] of Object.entries(t.components)) e.component(n, r);
|
|
1252
|
-
e.use(Tt), e.use(Et);
|
|
1253
|
-
} };
|
|
1254
|
-
//#endregion
|
|
1255
|
-
export { Et as a, ct as c, Dt as i, Ht as n, Ct as o, Bt as r, bt as s, Ut as t };
|