@nubisco/ui 5.47.0 → 5.48.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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +35 -0
- package/dist/{Accordion-CD_BZ3Xb.cjs → Accordion-BeKz0oeM.cjs} +1 -1
- package/dist/{Accordion-2bbHhUR3.js → Accordion-Cx0hbUIx.js} +3 -3
- package/dist/{AccordionItem-BybHChPs.js → AccordionItem-DFwj28eL.js} +6 -6
- package/dist/{AccordionItem-D6mruuMX.cjs → AccordionItem-DhZD2kJL.cjs} +1 -1
- package/dist/{ActionGroup-D3Gl1-JX.js → ActionGroup-CJoBGUvw.js} +53 -52
- package/dist/ActionGroup-CU9YQboQ.cjs +1 -0
- package/dist/AiLabel-DywBjSzr.js +240 -0
- package/dist/AiLabel-pRN10dQV.cjs +1 -0
- package/dist/{AiProvider-HhveBBc_.js → AiProvider-D8O_YaaP.js} +6 -6
- package/dist/{AiProvider-CXIEBABi.cjs → AiProvider-DY1xxZff.cjs} +1 -1
- package/dist/{AiUsage-DFo022zD.cjs → AiUsage-DRj51zK5.cjs} +1 -1
- package/dist/{AiUsage-CFdp1EMH.js → AiUsage-HcYF6RQ2.js} +13 -12
- package/dist/BackToTop-C5gFfuu7.cjs +1 -0
- package/dist/BackToTop-DZhl6N_Q.js +56 -0
- package/dist/Badge-BFsoJcCK.js +70 -0
- package/dist/Badge-CfICqXrd.cjs +1 -0
- package/dist/{Banner-CsxChQ3U.js → Banner-5uX-ujbu.js} +5 -5
- package/dist/Banner-CiIQKSxv.cjs +1 -0
- package/dist/BarChart-IX4imFVT.cjs +1 -0
- package/dist/BarChart-tB6MOMoR.js +400 -0
- package/dist/{Blueprint-lTBswuCE.js → Blueprint-46DWDZmu.js} +5 -5
- package/dist/{Blueprint-BBRar8Vu.cjs → Blueprint-NyUNNf-G.cjs} +1 -1
- package/dist/{BlueprintBackground-Ez4ICRal.js → BlueprintBackground-5OOF-VpK.js} +1 -1
- package/dist/{BlueprintBackground-BpkT_8A8.cjs → BlueprintBackground-D_JokLTK.cjs} +1 -1
- package/dist/BlueprintCard-Cda5rPZu.cjs +1 -0
- package/dist/{BlueprintCard-CsOQhmxj.js → BlueprintCard-DDNP1vkk.js} +111 -110
- package/dist/BlueprintControls-D0MdXrVv.js +222 -0
- package/dist/BlueprintControls-DnUoI9qp.cjs +1 -0
- package/dist/BlueprintMinimap-CACuVJqI.cjs +1 -0
- package/dist/BlueprintMinimap-Ehrltju2.js +163 -0
- package/dist/Board-BNB96CXm.cjs +1 -0
- package/dist/{Board-CovoTYff.js → Board-CaFH4-Qw.js} +139 -138
- package/dist/BottomPanel-CYxavAS0.cjs +1 -0
- package/dist/BottomPanel-vFcIk2nf.js +115 -0
- package/dist/{Breadcrumbs-BievPitp.js → Breadcrumbs-B-pjVWeD.js} +7 -7
- package/dist/{Breadcrumbs-BxhAEegP.cjs → Breadcrumbs-CqDYLfIQ.cjs} +1 -1
- package/dist/{Briefing-DVkZ2qDG.cjs → Briefing-B_ofl8Rt.cjs} +1 -1
- package/dist/{Briefing-DOKq89AG.js → Briefing-CoDyU3k4.js} +3 -3
- package/dist/{BriefingDestination-Bt07cVas.js → BriefingDestination-CK4XdAOo.js} +2 -2
- package/dist/{BriefingDestination-DymsWBLL.cjs → BriefingDestination-DAu5S2HI.cjs} +1 -1
- package/dist/Button-C0N1cyOQ.cjs +1 -0
- package/dist/Button-CuwzIVWv.js +132 -0
- package/dist/Calendar-Bbk7bPW1.cjs +1 -0
- package/dist/{Calendar-BTE4rmqe.js → Calendar-EiqHtUG2.js} +1 -1
- package/dist/Card-B5FTcFEQ.cjs +1 -0
- package/dist/Card-DUTWbKv7.js +143 -0
- package/dist/{CardGrid-BXFxfmlA.js → CardGrid-BOhFOzTs.js} +7 -5
- package/dist/CardGrid-DzjiR2wg.cjs +1 -0
- package/dist/{ChartLegend-DGUo_MYi.cjs → ChartLegend-C81jju4k.cjs} +1 -1
- package/dist/{ChartLegend-BythwRMJ.js → ChartLegend-fsJqOyGj.js} +2 -2
- package/dist/Checkbox-7JJdh4sN.cjs +1 -0
- package/dist/{Checkbox-B_nSNoZ0.js → Checkbox-DXQpih7I.js} +23 -19
- package/dist/CheckboxGroup-B8T3zLQC.cjs +1 -0
- package/dist/CheckboxGroup-BHn1hpzh.js +70 -0
- package/dist/{ColorStrip-CeQebn7z.cjs → ColorStrip-AEg8dQbl.cjs} +1 -1
- package/dist/{ColorStrip-BSzZPdsl.js → ColorStrip-BW1nFTja.js} +17 -17
- package/dist/CommandPalette-C8-2XCrf.cjs +1 -0
- package/dist/CommandPalette-CD75Qytr.js +275 -0
- package/dist/Confirm-BA-t4jPF.cjs +1 -0
- package/dist/{Confirm-BZizwCO1.js → Confirm-MmMvMttu.js} +9 -9
- package/dist/ContainedList-7uMU4e4Z.js +48 -0
- package/dist/ContainedList-DV8kZgTS.cjs +1 -0
- package/dist/ContainedListItem-CSE8d5M6.js +69 -0
- package/dist/ContainedListItem-Dj7TcGpO.cjs +1 -0
- package/dist/{CopyButton-Bm1kmCNv.js → CopyButton-Bcc2BDJ8.js} +1 -1
- package/dist/{CopyButton-Bctl1-xC.cjs → CopyButton-CwHAVKQ6.cjs} +1 -1
- package/dist/DataTable-D4KrQH5E.js +485 -0
- package/dist/DataTable-DVJnvBQM.cjs +1 -0
- package/dist/DatePicker-BmuVSyZ3.cjs +1 -0
- package/dist/{DatePicker-On8SAmN4.js → DatePicker-CagtB0Sd.js} +234 -233
- package/dist/{DefinitionList-BH2HAPr3.cjs → DefinitionList-BuRW4drr.cjs} +1 -1
- package/dist/{DefinitionList-CCWqE3Kh.js → DefinitionList-DIPobaPW.js} +2 -2
- package/dist/{DragHandle-CCsaiV6I.js → DragHandle-dCNBfHJe.js} +3 -3
- package/dist/{DragHandle-BiRZHXXV.cjs → DragHandle-snItY92k.cjs} +1 -1
- package/dist/{EmptyState-DNIDvUi9.cjs → EmptyState-B8EM9ynK.cjs} +1 -1
- package/dist/{EmptyState-CAEo8pSi.js → EmptyState-D-fku2DD.js} +3 -3
- package/dist/Field-3S8uGW95.cjs +1 -0
- package/dist/{Field-BCzaQlaY.js → Field-DK5iec3Z.js} +17 -13
- package/dist/FileUploader-B9j-HmX3.js +193 -0
- package/dist/FileUploader-BolhAWrI.cjs +1 -0
- package/dist/{Flag-Mpl1_r4m.cjs → Flag-CNx_cE4Q.cjs} +1 -1
- package/dist/{Flag-B5E4tHa2.js → Flag-myXFwopO.js} +6 -6
- package/dist/{FloatingToolbar-CLQOPq4x.js → FloatingToolbar-CYOuKLd7.js} +2 -2
- package/dist/{FloatingToolbar-D7PkAjS7.cjs → FloatingToolbar-DxUUozlf.cjs} +1 -1
- package/dist/{Form-KF4-rBll.js → Form-1UVOFWaf.js} +1 -1
- package/dist/{Form-DLQDzw3T.cjs → Form-D6rgkJ_Y.cjs} +1 -1
- package/dist/GanttChart-B_LqsmcR.cjs +1 -0
- package/dist/GanttChart-cZguVXW8.js +468 -0
- package/dist/Grid-C0muGlj3.cjs +1 -0
- package/dist/{Grid-CVFkhOfa.js → Grid-jlgLOwom.js} +33 -5
- package/dist/Icon-B2tiGiqZ.js +119 -0
- package/dist/Icon-CssV4E2-.cjs +1 -0
- package/dist/{ImageCropper-xicq_NFy.js → ImageCropper-BFKMYthJ.js} +4 -4
- package/dist/{ImageCropper-B6aiAxIi.cjs → ImageCropper-CJ2mCj9z.cjs} +1 -1
- package/dist/{ImagePicker-DNtBcBbo.js → ImagePicker-CZEFzYC8.js} +3 -3
- package/dist/{ImagePicker-CTfZfaq9.cjs → ImagePicker-CebI8MDy.cjs} +1 -1
- package/dist/{InfoHint-KtTzQk1z.js → InfoHint-DVrm41q9.js} +4 -4
- package/dist/{InfoHint-DaBGsnrK.cjs → InfoHint-WYitTbYz.cjs} +1 -1
- package/dist/{InlineEdit-CqMv5XBG.js → InlineEdit-DViLVwtn.js} +5 -5
- package/dist/{InlineEdit-JuytHnWO.cjs → InlineEdit-DfkmTudh.cjs} +1 -1
- package/dist/{InlineLoading-CUycVgGa.cjs → InlineLoading-CB_1PwMx.cjs} +1 -1
- package/dist/{InlineLoading-D7ku7ugr.js → InlineLoading-D8T0WO05.js} +4 -4
- package/dist/InterpolationChart-CYWJFUcs.cjs +1 -0
- package/dist/InterpolationChart-CttBiNWU.js +320 -0
- package/dist/{Label-D1_MfuTA.js → Label-BDMCrURR.js} +2 -2
- package/dist/{Label-B9x4-i1C.cjs → Label-CTOPIIbR.cjs} +1 -1
- package/dist/LineChart-DNDSJQrB.cjs +1 -0
- package/dist/LineChart-J8gCM2Ba.js +310 -0
- package/dist/Menu-CLDGxi-1.cjs +1 -0
- package/dist/Menu-C_UsGyKX.js +177 -0
- package/dist/{MenuBar-BrOsK3Qa.js → MenuBar-DyJufs5b.js} +1 -1
- package/dist/{MenuBar-Bdz7lk2r.cjs → MenuBar-aLDr7-eJ.cjs} +1 -1
- package/dist/{MenuBarItem-DCArqyTW.cjs → MenuBarItem-B8H9KfFo.cjs} +1 -1
- package/dist/{MenuBarItem-BlRZXDnm.js → MenuBarItem-BLdVIz0j.js} +1 -1
- package/dist/{MenuDivider-Bz7uGAPE.cjs → MenuDivider-D75yF8o8.cjs} +1 -1
- package/dist/{MenuDivider-CEeFfvpa.js → MenuDivider-aZIXvYsH.js} +1 -1
- package/dist/{MenuItem-DSFh9Akf.js → MenuItem-BerQIsRQ.js} +7 -4
- package/dist/MenuItem-CvpxnM4W.cjs +1 -0
- package/dist/Message-BONOwoVY.js +56 -0
- package/dist/Message-Bija1nMK.cjs +1 -0
- package/dist/Modal-1i_nDqvM.cjs +1 -0
- package/dist/{Modal-C75Kf4t7.js → Modal-CxIl02xU.js} +59 -50
- package/dist/NotificationCenter-CXn7sGFw.cjs +1 -0
- package/dist/{NotificationCenter-bGbvX-iA.js → NotificationCenter-Cu_vs-jh.js} +11 -11
- package/dist/{NotificationCenterItem-BIhM59Xh.js → NotificationCenterItem-BbbBFYEu.js} +8 -7
- package/dist/{NotificationCenterItem-Dpj3jDEN.cjs → NotificationCenterItem-zdOMnxv1.cjs} +1 -1
- package/dist/NumberInput-CMxlZ54a.cjs +1 -0
- package/dist/NumberInput-Dy0leAIF.js +324 -0
- package/dist/PageHeader-BVcTzPcW.cjs +1 -0
- package/dist/PageHeader-CFMhwRcw.js +70 -0
- package/dist/PageLayout-DQKfOSQq.js +31 -0
- package/dist/PageLayout-Dw4JYS3k.cjs +1 -0
- package/dist/Pagination-VmE04nzc.cjs +1 -0
- package/dist/Pagination-zTp1lrSP.js +95 -0
- package/dist/Panel-7qPoq2lb.cjs +1 -0
- package/dist/Panel-D5OHjaTP.js +51 -0
- package/dist/PieChart-CAB3b8LE.js +182 -0
- package/dist/PieChart-Ct8oicOS.cjs +1 -0
- package/dist/PrimaryAction.context-2v_jcQAo.cjs +1 -0
- package/dist/PrimaryAction.context-BkYkcMlm.js +4 -0
- package/dist/PrimaryActionScope-B7VLsHzT.cjs +1 -0
- package/dist/PrimaryActionScope-CRdjZE0V.js +23 -0
- package/dist/{ProgressBar-DukxUvmt.cjs → ProgressBar-CfJJf7Sc.cjs} +1 -1
- package/dist/{ProgressBar-B26wk0nU.js → ProgressBar-DK-j6Bzv.js} +6 -6
- package/dist/Radio-CWWt_o_F.js +107 -0
- package/dist/Radio-D0YjKuB2.cjs +1 -0
- package/dist/{ReorderList-BMIf_x8B.js → ReorderList-B1CYGR0e.js} +3 -3
- package/dist/{ReorderList-97H8hsPW.cjs → ReorderList-DBW8TBu6.cjs} +1 -1
- package/dist/Select-Bz4tf2H_.cjs +1 -0
- package/dist/{Select-Dah-tYeb.js → Select-hL8I-aNK.js} +204 -177
- package/dist/Shell-BxGBrQsM.js +536 -0
- package/dist/Shell-BzXh23BU.cjs +1 -0
- package/dist/{ShellPanel-DAOuAPdn.js → ShellPanel-DzkkJYVd.js} +2 -2
- package/dist/{ShellPanel-CB_Rn_JF.cjs → ShellPanel-XYKkAc5n.cjs} +1 -1
- package/dist/{SidebarBrand-DLKszSpJ.cjs → SidebarBrand-CX-BgI4X.cjs} +1 -1
- package/dist/{SidebarBrand-ZZknryCa.js → SidebarBrand-FHBO4Dw3.js} +3 -3
- package/dist/{SidebarCollapseToggle-CCNVQPFh.cjs → SidebarCollapseToggle-DM-4DAEu.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-Dq-A6NAJ.js → SidebarCollapseToggle-W1Z_MUIC.js} +2 -2
- package/dist/{SidebarHeaderToggle-CRsdm90m.cjs → SidebarHeaderToggle-Bdh1Z9aF.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-8K_NrpBm.js → SidebarHeaderToggle-C-QIOLnU.js} +5 -5
- package/dist/{SidebarLink-BeuUiOLd.cjs → SidebarLink-DTGVapwa.cjs} +1 -1
- package/dist/{SidebarLink-m9WhGcc2.js → SidebarLink-xtGCDABj.js} +2 -2
- package/dist/{SidebarMenu-N9opcSs0.cjs → SidebarMenu-CnsOBXeM.cjs} +1 -1
- package/dist/{SidebarMenu-ippvct70.js → SidebarMenu-D24o7HS-.js} +2 -2
- package/dist/{SidebarMenuGroup-RczOdr4t.js → SidebarMenuGroup-Bjc2IeK5.js} +5 -5
- package/dist/{SidebarMenuGroup-D1jYkspC.cjs → SidebarMenuGroup-DJasr_cx.cjs} +1 -1
- package/dist/{SidebarMenuItem-D8eFyD7l.js → SidebarMenuItem-CNunAuyB.js} +5 -5
- package/dist/{SidebarMenuItem-r_TpdHsD.cjs → SidebarMenuItem-DCR-nXAK.cjs} +1 -1
- package/dist/{SidebarStatus-DxJwYk3n.js → SidebarStatus-D-CfUYFc.js} +2 -2
- package/dist/{SidebarStatus-8xHtWS22.cjs → SidebarStatus-YfLW9xzC.cjs} +1 -1
- package/dist/{Skeleton-TgkyQXSq.js → Skeleton-C1e02dcW.js} +8 -3
- package/dist/Skeleton-CqZ9O0X0.cjs +1 -0
- package/dist/Slider-BAXKJCNG.js +405 -0
- package/dist/Slider-BaM5cclm.cjs +1 -0
- package/dist/Sparkline-MAi1Fh2T.cjs +1 -0
- package/dist/Sparkline-m3wbt-f1.js +95 -0
- package/dist/Spinner-CbBPddUx.js +160 -0
- package/dist/Spinner-PT95bjWq.cjs +1 -0
- package/dist/{Stat-DmdfVU4X.cjs → Stat-C9XaqyaG.cjs} +1 -1
- package/dist/{Stat-BHuShwuo.js → Stat-DJJln4rH.js} +6 -6
- package/dist/{Stepper-n2ZH-4Gf.js → Stepper-B4xqkWXg.js} +3 -3
- package/dist/{Stepper-Br62BsXD.cjs → Stepper-DV0q0Dfv.cjs} +1 -1
- package/dist/{StepperStep-BMts1ePk.js → StepperStep-BYhlgeb1.js} +10 -10
- package/dist/StepperStep-iGyGKnQL.cjs +1 -0
- package/dist/StructuredList-BSfuLANB.js +74 -0
- package/dist/StructuredList-h9JFXpF4.cjs +1 -0
- package/dist/{Submenu-D3kcN7Qm.js → Submenu-BnMaJKYm.js} +2 -2
- package/dist/{Submenu-DTqj37HQ.cjs → Submenu-Dxo3DUDA.cjs} +1 -1
- package/dist/{SuggestionList--DXpfDSJ.cjs → SuggestionList-BJjbVvt2.cjs} +1 -1
- package/dist/{SuggestionList-CNtaiJFb.js → SuggestionList-Bdx7CK__.js} +4 -4
- package/dist/{Switch-Bhn_b5ue.js → Switch-CbYMiEbQ.js} +7 -6
- package/dist/{Switch-DPxYeU1r.cjs → Switch-D3j7PPhY.cjs} +1 -1
- package/dist/TableOfContents-By2Non4K.cjs +1 -0
- package/dist/{TableOfContents-DvsufeVY.js → TableOfContents-CM0HKSde.js} +65 -57
- package/dist/{Tabs-S3I4uaTq.js → Tabs--lz44FBk.js} +4 -4
- package/dist/{Tabs-DPd-CKi1.cjs → Tabs-DKikiz0_.cjs} +1 -1
- package/dist/TextInput-BXyJQfGx.js +348 -0
- package/dist/TextInput-DKp819VS.cjs +2 -0
- package/dist/{Toast-BZZgBE9V.cjs → Toast-BKrvlON6.cjs} +1 -1
- package/dist/{Toast-CHqiHiKq.js → Toast-fRHhhjZV.js} +4 -4
- package/dist/{Toaster-CwLeMxh_.cjs → Toaster-CJMQM8JU.cjs} +1 -1
- package/dist/{Toaster-6tdIn4we.js → Toaster-DxBW9XQ0.js} +3 -3
- package/dist/Tree-CkcFwDr7.js +180 -0
- package/dist/Tree-DP2NPXOL.cjs +1 -0
- package/dist/TreeNode-CtklZefA.cjs +1 -0
- package/dist/TreeNode-DCnlEEpj.js +180 -0
- package/dist/{UserMenu-SokwKvM0.js → UserMenu-CWRMaPGO.js} +11 -11
- package/dist/{UserMenu-BtS4CcwB.cjs → UserMenu-GJHs1fKI.cjs} +1 -1
- package/dist/Video-D1WOYCYH.cjs +1 -0
- package/dist/Video-DrDqaCXl.js +104 -0
- package/dist/{Walkthrough-9SbBr6ig.cjs → Walkthrough-DXMDgB9t.cjs} +1 -1
- package/dist/{Walkthrough-BX3cVdLo.js → Walkthrough-D_vfYTWP.js} +3 -3
- package/dist/{Wireframe-CT2d4yey.js → Wireframe-BxUNaH2g.js} +1 -1
- package/dist/{Wireframe-YFaVOmuO.cjs → Wireframe-CL0rjsos.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +237 -223
- package/dist/component-styles.json +26 -1
- package/dist/components/Accordion.cjs +1 -1
- package/dist/components/Accordion.mjs +1 -1
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.d.ts +49 -4
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiLabel.vue.d.ts +44 -2
- package/dist/components/AiLabel.vue.d.ts.map +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.d.ts +2 -0
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/AiUsage.vue.d.ts +1 -0
- package/dist/components/AiUsage.vue.d.ts.map +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.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.d.ts +22 -2
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Badge.vue.d.ts +7 -10
- package/dist/components/Badge.vue.d.ts.map +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/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.vue.d.ts.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/BlueprintDomRenderer.vue.d.ts.map +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/BlueprintMinimap.vue.d.ts.map +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- 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.map +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +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 +14 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +1 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.d.ts +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Calendar.vue.d.ts +1 -1
- 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 +14 -5
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.d.ts +33 -1
- package/dist/components/CardGrid.mjs +1 -1
- package/dist/components/CardGrid.vue.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/BarChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.d.ts +2 -0
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.vue.d.ts +1 -0
- package/dist/components/Charts/GanttChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/LineChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/PieChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/Charts/Sparkline.vue.d.ts.map +1 -1
- package/dist/components/Charts/shared/palette.d.ts.map +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.context.d.ts +4 -0
- package/dist/components/CheckboxGroup.context.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/CheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.d.ts +5 -0
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/CommandPalette.vue.d.ts +1 -0
- package/dist/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.d.ts +4 -6
- package/dist/components/Confirm.env.d.ts +3 -2
- package/dist/components/Confirm.env.d.ts.map +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/Confirm.vue.d.ts.map +1 -1
- package/dist/components/ContainedList.cjs +1 -0
- package/dist/components/ContainedList.d.ts +65 -0
- package/dist/components/ContainedList.mjs +2 -0
- package/dist/components/ContainedList.vue.d.ts +25 -0
- package/dist/components/ContainedList.vue.d.ts.map +1 -0
- package/dist/components/ContainedListItem.cjs +1 -0
- package/dist/components/ContainedListItem.d.ts +1 -0
- package/dist/components/ContainedListItem.mjs +2 -0
- package/dist/components/ContainedListItem.vue.d.ts +35 -0
- package/dist/components/ContainedListItem.vue.d.ts.map +1 -0
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.d.ts +6 -2
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DataTable.vue.d.ts +1 -1
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/DragHandle.vue.d.ts.map +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/Field.vue.d.ts +2 -1
- package/dist/components/Field.vue.d.ts.map +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.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.d.ts +53 -4
- package/dist/components/Grid.mjs +1 -1
- package/dist/components/Grid.vue.d.ts +42 -4
- package/dist/components/Grid.vue.d.ts.map +1 -1
- package/dist/components/Icon.cjs +1 -1
- package/dist/components/Icon.d.ts +34 -6
- package/dist/components/Icon.mjs +1 -1
- package/dist/components/Icon.vue.d.ts +4 -4
- package/dist/components/Icon.vue.d.ts.map +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 +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.d.ts +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/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Label.vue.d.ts.map +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/MenuItem.cjs +1 -1
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItem.vue.d.ts.map +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.d.ts +6 -0
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Message.vue.d.ts +1 -0
- package/dist/components/Message.vue.d.ts.map +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts +2 -2
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.d.ts +2 -3
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.d.ts +4 -6
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
- package/dist/components/NotificationCenterItem.vue.d.ts.map +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/PageHeader.cjs +1 -0
- package/dist/components/PageHeader.d.ts +28 -0
- package/dist/components/PageHeader.mjs +2 -0
- package/dist/components/PageHeader.vue.d.ts +29 -0
- package/dist/components/PageHeader.vue.d.ts.map +1 -0
- package/dist/components/PageLayout.cjs +1 -0
- package/dist/components/PageLayout.d.ts +39 -0
- package/dist/components/PageLayout.mjs +2 -0
- package/dist/components/PageLayout.vue.d.ts +22 -0
- package/dist/components/PageLayout.vue.d.ts.map +1 -0
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.d.ts +29 -0
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/Panel.vue.d.ts +10 -2
- package/dist/components/Panel.vue.d.ts.map +1 -1
- package/dist/components/PrimaryAction.context.d.ts +16 -0
- package/dist/components/PrimaryAction.context.d.ts.map +1 -0
- package/dist/components/PrimaryActionScope.vue.d.ts +18 -0
- package/dist/components/PrimaryActionScope.vue.d.ts.map +1 -0
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Radio.vue.d.ts.map +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/ReorderList.vue.d.ts.map +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +1 -0
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +20 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +7 -4
- 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.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/SidebarMenuGroup.vue.d.ts.map +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts.map +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 +5 -0
- package/dist/components/Skeleton.mjs +1 -1
- 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/Slider.vue.d.ts.map +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.d.ts +3 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Spinner.vue.d.ts +6 -9
- package/dist/components/Spinner.vue.d.ts.map +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/Stat.vue.d.ts.map +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/Stepper.vue.d.ts.map +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/StepperStep.vue.d.ts.map +1 -1
- package/dist/components/StructuredList.cjs +1 -0
- package/dist/components/StructuredList.d.ts +39 -0
- package/dist/components/StructuredList.mjs +2 -0
- package/dist/components/StructuredList.vue.d.ts +24 -0
- package/dist/components/StructuredList.vue.d.ts.map +1 -0
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Switch.vue.d.ts.map +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/TableOfContents.vue.d.ts +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tabs.vue.d.ts.map +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +13 -5
- 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.map +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.d.ts +1 -2
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Toaster.vue.d.ts.map +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.d.ts +2 -0
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/Tree.vue.d.ts.map +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/TreeNode.vue.d.ts.map +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/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 +5 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +5 -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.d.ts +9 -0
- package/dist/composables/useConfirm.composable.d.ts.map +1 -1
- package/dist/composables/useConfirm.composable.mjs +62 -63
- package/dist/composables/useFieldMessage.composable.cjs +1 -0
- package/dist/composables/useFieldMessage.composable.d.ts +44 -0
- package/dist/composables/useFieldMessage.composable.d.ts.map +1 -0
- package/dist/composables/useFieldMessage.composable.mjs +33 -0
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.d.ts +3 -4
- package/dist/composables/useInlineLoading.composable.d.ts.map +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 -0
- package/dist/composables/useNbStrings.composable.d.ts +105 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -0
- package/dist/composables/useNbStrings.composable.mjs +111 -0
- package/dist/composables/useShellSlot.composable.d.ts +3 -5
- package/dist/composables/useShellSlot.composable.d.ts.map +1 -1
- package/dist/composables/useToast.composable.cjs +1 -1
- package/dist/composables/useToast.composable.d.ts +3 -1
- package/dist/composables/useToast.composable.d.ts.map +1 -1
- package/dist/composables/useToast.composable.mjs +113 -102
- package/dist/directives/ToolTip.directive.d.ts +1 -1
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/global.d.ts +12 -0
- package/dist/icons/ai.mjs +26 -0
- package/dist/icons/all.mjs +2 -1
- package/dist/icons/catalog.mjs +2 -1
- package/dist/icons/names.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +142 -133
- package/dist/{main-TRQw3oqC.js → main-BTximdIU.js} +349 -343
- package/dist/main-DkNxc78b.cjs +4 -0
- package/dist/main.d.ts +20 -4
- package/dist/main.d.ts.map +1 -1
- package/dist/motion-BjVtMTXD.cjs +1 -0
- package/dist/motion-C0h9XZQZ.js +18 -0
- package/dist/{palette-9NBcW3rl.cjs → palette-B7XEOMVB.cjs} +1 -1
- package/dist/{palette-Cq2Mb9QH.js → palette-CWU7exM6.js} +3 -3
- package/dist/plugins/fonts.d.ts +10 -5
- package/dist/plugins/fonts.d.ts.map +1 -1
- package/dist/plugins/fonts.js +13 -8
- package/dist/plugins/vite/glyphs.d.ts.map +1 -1
- package/dist/plugins/vite/glyphs.js +28 -9
- package/dist/plugins/vite/imports.d.ts +15 -0
- package/dist/plugins/vite/imports.d.ts.map +1 -1
- package/dist/plugins/vite/imports.js +77 -4
- package/dist/plugins/vite/index.d.ts.map +1 -1
- package/dist/plugins/vite/index.js +2 -1
- package/dist/styles/Accordion.css +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/AiLabel.css +1 -1
- package/dist/styles/Avatar.css +1 -1
- package/dist/styles/Badge.css +1 -1
- package/dist/styles/Banner.css +1 -1
- package/dist/styles/BarChart.css +1 -1
- package/dist/styles/Blueprint.css +1 -1
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/BlueprintControls.css +1 -1
- package/dist/styles/BlueprintMinimap.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/Calendar.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/CardGrid.css +1 -1
- package/dist/styles/ChartLegend.css +1 -1
- package/dist/styles/Checkbox.css +1 -1
- package/dist/styles/CheckboxGroup.css +1 -1
- package/dist/styles/ColorStrip.css +1 -1
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/Confirm.css +1 -1
- package/dist/styles/ContainedList.css +1 -0
- package/dist/styles/ContainedListItem.css +1 -0
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/DefinitionList.css +1 -1
- package/dist/styles/DragHandle.css +1 -1
- package/dist/styles/EmptyState.css +1 -1
- package/dist/styles/Field.css +1 -1
- package/dist/styles/FileUploader.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/GanttChart.css +1 -1
- package/dist/styles/Icon.css +1 -1
- package/dist/styles/ImageCropper.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/InlineLoading.css +1 -1
- package/dist/styles/InterpolationChart.css +1 -1
- package/dist/styles/JsonTree.css +1 -1
- package/dist/styles/Label.css +1 -1
- package/dist/styles/LineChart.css +1 -1
- package/dist/styles/MenuBarItem.css +1 -1
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Message.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NotificationCenterItem.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/PageHeader.css +1 -0
- package/dist/styles/PageLayout.css +1 -0
- package/dist/styles/Pagination.css +1 -1
- package/dist/styles/Panel.css +1 -1
- package/dist/styles/PieChart.css +1 -1
- package/dist/styles/ProgressBar.css +1 -1
- package/dist/styles/Radio.css +1 -1
- package/dist/styles/ReorderList.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/ShellPanel.css +1 -1
- package/dist/styles/SidebarBrand.css +1 -1
- package/dist/styles/SidebarHeaderToggle.css +1 -1
- package/dist/styles/SidebarLink.css +1 -1
- package/dist/styles/SidebarMenu.css +1 -1
- package/dist/styles/SidebarMenuGroup.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/styles/SidebarStatus.css +1 -1
- package/dist/styles/Skeleton.css +1 -1
- package/dist/styles/Slider.css +1 -1
- package/dist/styles/Sparkline.css +1 -1
- package/dist/styles/Spinner.css +1 -1
- package/dist/styles/Stat.css +1 -1
- package/dist/styles/Stepper.css +1 -1
- package/dist/styles/StepperStep.css +1 -1
- package/dist/styles/StructuredList.css +1 -0
- package/dist/styles/SuggestionList.css +1 -1
- package/dist/styles/Switch.css +1 -1
- package/dist/styles/TableOfContents.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/Toast.css +1 -1
- package/dist/styles/Toaster.css +1 -1
- package/dist/styles/Tree.css +1 -1
- package/dist/styles/TreeNode.css +1 -1
- package/dist/styles/UserMenu.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/styles/main.css +1 -1
- package/dist/styles/palette.css +1 -1
- package/dist/tokens/motion.d.ts +42 -0
- package/dist/tokens/motion.d.ts.map +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.css +91 -86
- package/dist/utils/pluralize.helper.cjs +1 -0
- package/dist/utils/pluralize.helper.d.ts +28 -0
- package/dist/utils/pluralize.helper.d.ts.map +1 -0
- package/dist/utils/pluralize.helper.mjs +14 -0
- package/dist/utils/truncateMiddle.helper.cjs +1 -0
- package/dist/utils/truncateMiddle.helper.d.ts +16 -0
- package/dist/utils/truncateMiddle.helper.d.ts.map +1 -0
- package/dist/utils/truncateMiddle.helper.mjs +11 -0
- package/package.json +8 -5
- package/src/assets/icons/ai.svg +4 -0
- package/src/plugins/fonts.ts +13 -8
- package/src/plugins/vite/glyphs.ts +32 -9
- package/src/plugins/vite/imports.ts +64 -4
- package/src/plugins/vite/index.ts +2 -1
- package/src/styles/_accent.scss +60 -2
- package/src/styles/_ai.scss +128 -0
- package/src/styles/_contrast.scss +64 -0
- package/src/styles/_focus.scss +28 -0
- package/src/styles/_reset.scss +5 -5
- package/src/styles/_theme-api.scss +17 -2
- package/src/styles/_theme.scss +168 -51
- package/src/styles/_typography.scss +5 -0
- package/src/styles/directives/_tooltip.scss +12 -8
- package/src/styles/grid/_common.scss +3 -0
- package/src/styles/grid/_mixins.scss +3 -2
- package/src/styles/grid/index.scss +63 -0
- package/src/styles/index.scss +6 -0
- package/src/styles/logic/_a11y.scss +1 -1
- package/src/styles/logic/_motion.scss +246 -2
- package/src/styles/patterns/_inspector.scss +5 -5
- package/src/styles/presets/_classic-fields.scss +36 -10
- package/src/styles/transitions/_fade.scss +31 -8
- package/src/styles/variables/_animations.scss +13 -4
- package/src/styles/variables/_categories.scss +130 -0
- package/src/styles/variables/_grid.scss +31 -8
- package/src/styles/variables/_layers.scss +185 -6
- package/src/styles/variables/_spacing.scss +87 -0
- package/src/styles/variables/_type.scss +165 -116
- package/src/utils/pluralize.helper.ts +55 -0
- package/src/utils/truncateMiddle.helper.ts +34 -0
- package/dist/ActionGroup-BW4jTdT0.cjs +0 -1
- package/dist/AiLabel-DSiCpLvM.js +0 -56
- package/dist/AiLabel-G7b92e7Q.cjs +0 -1
- package/dist/BackToTop-BAyTy5SN.js +0 -55
- package/dist/BackToTop-DvNNsQcS.cjs +0 -1
- package/dist/Badge-BC7sqGRj.cjs +0 -1
- package/dist/Badge-DVujzLka.js +0 -59
- package/dist/Banner-BWfbWQjt.cjs +0 -1
- package/dist/BarChart-34fIWzBC.cjs +0 -1
- package/dist/BarChart-CcmkojSX.js +0 -399
- package/dist/BlueprintCard-BISElEk0.cjs +0 -1
- package/dist/BlueprintControls-BwZeMwyC.cjs +0 -1
- package/dist/BlueprintControls-bMZ4hJTJ.js +0 -156
- package/dist/BlueprintMinimap-CWmys37d.cjs +0 -1
- package/dist/BlueprintMinimap-zXf1g5UN.js +0 -161
- package/dist/Board-BVpQ2OAm.cjs +0 -1
- package/dist/BottomPanel-9wXoX7C0.cjs +0 -1
- package/dist/BottomPanel-COy4nW-t.js +0 -114
- package/dist/Button-Cepcs335.js +0 -121
- package/dist/Button-tmwLbryG.cjs +0 -1
- package/dist/Calendar-C_tRujlw.cjs +0 -1
- package/dist/Card-BNmkM0Cr.cjs +0 -1
- package/dist/Card-D5brHuVU.js +0 -109
- package/dist/CardGrid-q_Zz_Ip_.cjs +0 -1
- package/dist/Checkbox-DHjkrPUP.cjs +0 -1
- package/dist/CheckboxGroup-B2GnAaDG.js +0 -72
- package/dist/CheckboxGroup-DJs_1dDP.cjs +0 -1
- package/dist/CommandPalette--Xg6G2hP.cjs +0 -1
- package/dist/CommandPalette-C-Hz6lEX.js +0 -223
- package/dist/Confirm-CquZnoj-.cjs +0 -1
- package/dist/DataTable-Bm6OM1uz.js +0 -477
- package/dist/DataTable-DrWZCe55.cjs +0 -1
- package/dist/DatePicker-wMeO_BAn.cjs +0 -1
- package/dist/Field-3zUVZEMG.cjs +0 -1
- package/dist/FileUploader-CrtHrF9n.cjs +0 -1
- package/dist/FileUploader-D9H4klul.js +0 -187
- package/dist/GanttChart-C2ql59iv.cjs +0 -1
- package/dist/GanttChart-tHaks3Qu.js +0 -466
- package/dist/Grid-BEezjVdC.cjs +0 -1
- package/dist/Icon-Bwec1Nfv.cjs +0 -1
- package/dist/Icon-DwhI2DFK.js +0 -104
- package/dist/InterpolationChart-CezKg7nG.cjs +0 -1
- package/dist/InterpolationChart-x2yvZUFf.js +0 -319
- package/dist/LineChart-A2so8GBH.js +0 -309
- package/dist/LineChart-DnYgeNPe.cjs +0 -1
- package/dist/Menu-2Se8F81Q.js +0 -136
- package/dist/Menu-CAZmNx60.cjs +0 -1
- package/dist/MenuItem-D6hIjWBm.cjs +0 -1
- package/dist/Message-COxRTtqI.cjs +0 -1
- package/dist/Message-DlluDLCZ.js +0 -54
- package/dist/Modal-F7rA1EFq.cjs +0 -1
- package/dist/NotificationCenter-C3D55kLa.cjs +0 -1
- package/dist/NumberInput-DZ2JIarM.js +0 -293
- package/dist/NumberInput-Daauv-mS.cjs +0 -1
- package/dist/Pagination-BiXAAS94.cjs +0 -1
- package/dist/Pagination-oWMOC9Qw.js +0 -84
- package/dist/Panel-CWBZ-kgD.js +0 -15
- package/dist/Panel-ap8JYHvL.cjs +0 -1
- package/dist/PieChart-C3MInQWP.cjs +0 -1
- package/dist/PieChart-DnGl86Lc.js +0 -181
- package/dist/Radio-DuW0s5JD.cjs +0 -1
- package/dist/Radio-LrqGD0NJ.js +0 -98
- package/dist/Select-Z6XKZwgn.cjs +0 -1
- package/dist/Shell-BCBzgwZl.cjs +0 -1
- package/dist/Shell-DSY0rcWY.js +0 -520
- package/dist/Skeleton-CSRjBPVt.cjs +0 -1
- package/dist/Slider-CM-YIOPa.js +0 -308
- package/dist/Slider-CNqWXBhw.cjs +0 -1
- package/dist/Sparkline-DgmOYz7G.cjs +0 -1
- package/dist/Sparkline-TptJc3Gp.js +0 -94
- package/dist/Spinner-BPC4GV2R.cjs +0 -1
- package/dist/Spinner-DT8nD53U.js +0 -156
- package/dist/StepperStep-DM__K4sj.cjs +0 -1
- package/dist/TableOfContents-pJY07qUd.cjs +0 -1
- package/dist/TextInput-CMNHASTy.js +0 -293
- package/dist/TextInput-Dim1RJ1e.cjs +0 -2
- package/dist/Tree-BMKUnt--.js +0 -125
- package/dist/Tree-DDYIaQhW.cjs +0 -1
- package/dist/TreeNode-BjqvPxI6.cjs +0 -1
- package/dist/TreeNode-Bnlm_eRb.js +0 -176
- package/dist/Video-CfRR9Ire.cjs +0 -1
- package/dist/Video-CvpT9tlK.js +0 -103
- package/dist/main-R1TM8Ptt.cjs +0 -4
- /package/dist/{Accordion.context-D0CjtbPU.cjs → Accordion.context-Cb_NKUtg.cjs} +0 -0
- /package/dist/{Accordion.context-Wz0ugH_k.js → Accordion.context-DG649PsQ.js} +0 -0
- /package/dist/{Avatar-BtPUauIn.cjs → Avatar-UO0ySqkY.cjs} +0 -0
- /package/dist/{Avatar-DqZ-eYb8.js → Avatar-ZG-WROXx.js} +0 -0
- /package/dist/{Blueprint.context-BxEzW6uR.cjs → Blueprint.context-B3d5-4jD.cjs} +0 -0
- /package/dist/{Blueprint.context-CFAikJ3j.js → Blueprint.context-B4bRLj7m.js} +0 -0
- /package/dist/{Card.link-dJAabUqe.js → Card.link-CB8_CTbn.js} +0 -0
- /package/dist/{Card.link-crO1EgJA.cjs → Card.link-eRkbFiF1.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-BapH2lov.cjs → CheckboxGroup.context-C8p21aqH.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-uxyp82XM.js → CheckboxGroup.context-Cu0BA648.js} +0 -0
- /package/dist/{DefinitionListItem-DnFxxXWI.cjs → DefinitionListItem-Bf9amK8a.cjs} +0 -0
- /package/dist/{DefinitionListItem-Cg8BggyX.js → DefinitionListItem-CbVnrShi.js} +0 -0
- /package/dist/{JsonTree-DbyC2G2G.js → JsonTree-BWfMcWOV.js} +0 -0
- /package/dist/{JsonTree-CjeK5gqm.cjs → JsonTree-Bmj8WtzK.cjs} +0 -0
- /package/dist/{Layer-BgL2sFav.js → Layer-BJeI6Q6N.js} +0 -0
- /package/dist/{Layer-BPC6XSrP.cjs → Layer-D-MNrLiB.cjs} +0 -0
- /package/dist/{NubiscoMark-BGi9b3YU.js → NubiscoMark-BLT8ULAl.js} +0 -0
- /package/dist/{NubiscoMark-DH9Ngmod.cjs → NubiscoMark-Cf7Ek83E.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-ddkDJ0AU.cjs → NubiscoPlatformMark-CXMSQDYh.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-C6WbipA4.js → NubiscoPlatformMark-Dca7vi6H.js} +0 -0
- /package/dist/{Size.d-GBIblj2D.cjs → Size.d-BQ4_AVQe.cjs} +0 -0
- /package/dist/{Size.d-Bah6vMl3.js → Size.d-DY4ZHW3-.js} +0 -0
- /package/dist/{Stepper.context-DVnGO61u.cjs → Stepper.context-DUIDhN9Q.cjs} +0 -0
- /package/dist/{Stepper.context-7n0SuGh_.js → Stepper.context-DqfEvgGM.js} +0 -0
- /package/dist/{TextInput.context-DvCbZUx_.js → TextInput.context-DV1MgL_Q.js} +0 -0
- /package/dist/{TextInput.context-C0YTT4zw.cjs → TextInput.context-UTLuljcO.cjs} +0 -0
- /package/dist/{TreeContext-CvZCLIr2.js → TreeContext--GZ21fCm.js} +0 -0
- /package/dist/{TreeContext-CKcfg0Nq.cjs → TreeContext-TZ35sT5B.cjs} +0 -0
- /package/dist/{_plugin-vue_export-helper-O4QQSku4.js → _plugin-vue_export-helper-C6QCLu9I.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-tagjRzOz.cjs → _plugin-vue_export-helper-D0Q0f7-M.cjs} +0 -0
- /package/dist/{pixi-scene-DSMij-ex.cjs → pixi-scene-BKyneWmd.cjs} +0 -0
- /package/dist/{pixi-scene-Du_Uq_zl.js → pixi-scene-TbaBQ2-u.js} +0 -0
- /package/dist/{scales-Bdgv87s2.cjs → scales-B8IbC7t_.cjs} +0 -0
- /package/dist/{scales-CzvC8OOZ.js → scales-CNW8JgKC.js} +0 -0
- /package/dist/{useChartSize-ByPUvppp.cjs → useChartSize-B6Bes760.cjs} +0 -0
- /package/dist/{useChartSize-BXgOzSCU.js → useChartSize-CftshgoY.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-DQEzOEt_.js → useLoadingAnnouncer.composable-BAwecV1M.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-pW7VKY0k.cjs → useLoadingAnnouncer.composable-Dn1mqnqe.cjs} +0 -0
- /package/dist/{vue-i18n-CNxAi_sd.cjs → vue-i18n-DIvTc6LM.cjs} +0 -0
- /package/dist/{vue-i18n-BERFm5iG.js → vue-i18n-DSR949qU.js} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { prefersReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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";
|
|
6
7
|
//#region \0rolldown/runtime.js
|
|
7
8
|
var _ = Object.defineProperty, v = (e, t) => {
|
|
8
9
|
let n = {};
|
|
@@ -40,10 +41,10 @@ function b(e) {
|
|
|
40
41
|
}
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/directives/ToolTip.content.ts
|
|
43
|
-
var
|
|
44
|
+
var ce = /* @__PURE__ */ v({
|
|
44
45
|
devWarn: () => j,
|
|
45
46
|
renderTooltipContent: () => N
|
|
46
|
-
}),
|
|
47
|
+
}), x = new Set([
|
|
47
48
|
"span",
|
|
48
49
|
"div",
|
|
49
50
|
"p",
|
|
@@ -60,17 +61,17 @@ var x = /* @__PURE__ */ v({
|
|
|
60
61
|
"ul",
|
|
61
62
|
"ol",
|
|
62
63
|
"li"
|
|
63
|
-
]),
|
|
64
|
+
]), S = new Set(["br"]), C = new Set([
|
|
64
65
|
"class",
|
|
65
66
|
"style",
|
|
66
67
|
"dir",
|
|
67
68
|
"lang"
|
|
68
|
-
]),
|
|
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) => {
|
|
69
70
|
let t = e.indexOf(":");
|
|
70
71
|
if (t < 0) return "";
|
|
71
72
|
let n = e.slice(0, t).trim().toLowerCase(), r = e.slice(t + 1).trim();
|
|
72
|
-
return !n || !r ? "" :
|
|
73
|
-
}).filter(Boolean).join("; "),
|
|
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([
|
|
74
75
|
"b",
|
|
75
76
|
"strong",
|
|
76
77
|
"em",
|
|
@@ -82,47 +83,47 @@ var x = /* @__PURE__ */ v({
|
|
|
82
83
|
"kbd",
|
|
83
84
|
"br",
|
|
84
85
|
"p"
|
|
85
|
-
]),
|
|
86
|
+
]), A = {
|
|
86
87
|
"<": "<",
|
|
87
88
|
">": ">",
|
|
88
89
|
"\"": """,
|
|
89
90
|
"'": "'"
|
|
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) => {
|
|
91
92
|
if (e.startsWith("<") && e.endsWith(">")) {
|
|
92
93
|
let t = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)\s*\/?\s*>$/.exec(e), n = t?.[2]?.toLowerCase();
|
|
93
|
-
return n &&
|
|
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));
|
|
94
95
|
}
|
|
95
|
-
return
|
|
96
|
-
}).join(""),
|
|
97
|
-
typeof process < "u" && process.env.NODE_ENV === "production" ||
|
|
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}`));
|
|
98
99
|
}, M = (e) => {
|
|
99
100
|
if (Array.isArray(e)) return e.map((e) => M(e)).join("");
|
|
100
101
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
101
|
-
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 ? "" :
|
|
102
|
-
if (!
|
|
103
|
-
let c = Object.entries(n).filter(([e]) =>
|
|
104
|
-
return
|
|
105
|
-
}, N = (e) => e ? typeof e == "string" ?
|
|
106
|
-
default: () =>
|
|
107
|
-
dismissAllTooltips: () =>
|
|
108
|
-
}),
|
|
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) => {
|
|
109
110
|
if (!e) return !1;
|
|
110
111
|
let n = Date.now() - e;
|
|
111
112
|
return n >= 0 && n < t;
|
|
112
|
-
},
|
|
113
|
-
if (
|
|
114
|
-
|
|
113
|
+
}, xe = !1, R = () => {
|
|
114
|
+
if (xe || typeof document > "u") return;
|
|
115
|
+
xe = !0;
|
|
115
116
|
let e = (e) => {
|
|
116
|
-
if (
|
|
117
|
+
if (I.size === 0) return;
|
|
117
118
|
let t = e?.target;
|
|
118
|
-
t instanceof Element && t.closest(".nb-tooltip") ||
|
|
119
|
+
t instanceof Element && t.closest(".nb-tooltip") || yt("dismiss");
|
|
119
120
|
};
|
|
120
121
|
document.addEventListener("pointerdown", () => {
|
|
121
|
-
|
|
122
|
+
be = Date.now();
|
|
122
123
|
}, !0), document.addEventListener("dragstart", () => e(), !0), document.addEventListener("keydown", (t) => {
|
|
123
124
|
t.key === "Escape" && e();
|
|
124
125
|
}, !0), document.addEventListener("pointerdown", e, !0), window.addEventListener("blur", e), document.addEventListener("mouseleave", e);
|
|
125
|
-
},
|
|
126
|
+
}, Se = t.micro, Ce = 1e3, we = 2, Te = (e) => {
|
|
126
127
|
let t = e.tooltipElement;
|
|
127
128
|
if (!t) return !1;
|
|
128
129
|
if (t.__hovered__) return !0;
|
|
@@ -131,38 +132,38 @@ var x = /* @__PURE__ */ v({
|
|
|
131
132
|
} catch {
|
|
132
133
|
return !1;
|
|
133
134
|
}
|
|
134
|
-
},
|
|
135
|
+
}, Ee = (e) => {
|
|
135
136
|
if (!e.isConnected) return !1;
|
|
136
|
-
if (
|
|
137
|
+
if (Te(e) || e.__trigger__ === "focus" && e.contains(document.activeElement) || e.__trigger__ === "touch" && L(e.__lastTouchAt__, ve)) return !0;
|
|
137
138
|
try {
|
|
138
139
|
return e.matches(":hover");
|
|
139
140
|
} catch {
|
|
140
141
|
return !0;
|
|
141
142
|
}
|
|
142
|
-
}, Ee = (e) => {
|
|
143
|
-
clearTimeout(e.__watchdogTimer__), e.__watchdogTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
144
143
|
}, z = (e) => {
|
|
145
|
-
|
|
144
|
+
clearTimeout(e.__watchdogTimer__), e.__watchdogTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
145
|
+
}, B = (e) => {
|
|
146
|
+
z(e);
|
|
146
147
|
let t = () => {
|
|
147
148
|
if (!e.__chips__?.size) {
|
|
148
|
-
|
|
149
|
+
z(e);
|
|
149
150
|
return;
|
|
150
151
|
}
|
|
151
|
-
if (
|
|
152
|
+
if (Ee(e)) e.__watchdogMisses__ = 0;
|
|
152
153
|
else {
|
|
153
154
|
if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected) {
|
|
154
155
|
Q(e, !0, "program");
|
|
155
156
|
return;
|
|
156
157
|
}
|
|
157
|
-
if (e.__watchdogMisses__ >=
|
|
158
|
-
|
|
158
|
+
if (e.__watchdogMisses__ >= we) {
|
|
159
|
+
pt(e, "dismiss");
|
|
159
160
|
return;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
e.__watchdogTimer__ = setTimeout(t,
|
|
163
|
+
e.__watchdogTimer__ = setTimeout(t, Ce);
|
|
163
164
|
};
|
|
164
|
-
e.__watchdogTimer__ = setTimeout(t,
|
|
165
|
-
},
|
|
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) => {
|
|
166
167
|
if (typeof getComputedStyle != "function") return !1;
|
|
167
168
|
let t;
|
|
168
169
|
try {
|
|
@@ -172,11 +173,11 @@ var x = /* @__PURE__ */ v({
|
|
|
172
173
|
}
|
|
173
174
|
let n = `${t.overflow} ${t.overflowX} ${t.overflowY}`;
|
|
174
175
|
return /hidden|scroll|auto|clip|overlay/.test(n);
|
|
175
|
-
},
|
|
176
|
+
}, ke = (e) => {
|
|
176
177
|
let t = [], n = e.parentElement;
|
|
177
|
-
for (; n && n !== document.body && n !== document.documentElement;)
|
|
178
|
+
for (; n && n !== document.body && n !== document.documentElement;) Oe(n) && t.push(n), n = n.parentElement;
|
|
178
179
|
return t;
|
|
179
|
-
}, U = (e) => !(e.width === 0 && e.height === 0 && e.top === 0 && e.left === 0),
|
|
180
|
+
}, U = (e) => !(e.width === 0 && e.height === 0 && e.top === 0 && e.left === 0), Ae = (e, t) => {
|
|
180
181
|
if (!e.isConnected) return !1;
|
|
181
182
|
if (!U(t)) return !0;
|
|
182
183
|
if (t.width === 0 || t.height === 0 || !(t.bottom > 0 && t.right > 0 && t.top < window.innerHeight && t.left < window.innerWidth)) return !1;
|
|
@@ -186,67 +187,67 @@ var x = /* @__PURE__ */ v({
|
|
|
186
187
|
if (U(e) && (t.bottom <= e.top || t.top >= e.bottom || t.right <= e.left || t.left >= e.right)) return !1;
|
|
187
188
|
}
|
|
188
189
|
return !0;
|
|
189
|
-
},
|
|
190
|
+
}, je = (e) => {
|
|
190
191
|
let t = e.tooltipElement;
|
|
191
192
|
if (!t || !e.__chips__?.size) {
|
|
192
|
-
|
|
193
|
+
V.delete(e);
|
|
193
194
|
return;
|
|
194
195
|
}
|
|
195
196
|
let n = e.getBoundingClientRect();
|
|
196
|
-
if (!
|
|
197
|
-
e.__offscreenReported__ || (e.__offscreenReported__ = !0,
|
|
197
|
+
if (!Ae(e, n)) {
|
|
198
|
+
e.__offscreenReported__ || (e.__offscreenReported__ = !0, pt(e, "dismiss"));
|
|
198
199
|
return;
|
|
199
200
|
}
|
|
200
|
-
e.__offscreenReported__ = !1, e.__lastRect__ =
|
|
201
|
+
e.__offscreenReported__ = !1, e.__lastRect__ = De(n), e.__side__ !== "cursor" && $(e, t, e.__requestedSide__ ?? e.__side__);
|
|
201
202
|
}, W = () => {
|
|
202
203
|
K();
|
|
203
|
-
for (let e of Array.from(
|
|
204
|
-
},
|
|
205
|
-
|
|
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;
|
|
206
207
|
}, q = () => {
|
|
207
|
-
if (
|
|
208
|
-
|
|
208
|
+
if (V.size === 0) {
|
|
209
|
+
H = null;
|
|
209
210
|
return;
|
|
210
211
|
}
|
|
211
212
|
let e = Date.now();
|
|
212
|
-
if (e >=
|
|
213
|
-
|
|
213
|
+
if (e >= Pe && e - Ne < G) {
|
|
214
|
+
H = requestAnimationFrame(q);
|
|
214
215
|
return;
|
|
215
216
|
}
|
|
216
|
-
|
|
217
|
-
for (let e of Array.from(
|
|
217
|
+
Ne = e;
|
|
218
|
+
for (let e of Array.from(V)) {
|
|
218
219
|
if (!e.tooltipElement) {
|
|
219
|
-
|
|
220
|
+
V.delete(e);
|
|
220
221
|
continue;
|
|
221
222
|
}
|
|
222
|
-
|
|
223
|
+
De(e.getBoundingClientRect()) !== e.__lastRect__ && (K(), je(e));
|
|
223
224
|
}
|
|
224
|
-
|
|
225
|
-
}, J = !1,
|
|
226
|
-
|
|
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, {
|
|
227
228
|
capture: !0,
|
|
228
229
|
passive: !0
|
|
229
|
-
}), window.addEventListener("resize", W, { passive: !0 })),
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
},
|
|
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) => {
|
|
233
234
|
if (t.__chips__?.delete(n), clearTimeout(n.__removeTimer__), n.__removeTimer__ = void 0, r || e()) {
|
|
234
235
|
n.remove();
|
|
235
236
|
return;
|
|
236
237
|
}
|
|
237
|
-
n.style.animation =
|
|
238
|
+
n.style.animation = "tooltipDisappear var(--nb-motion-micro) var(--nb-ease-exit) forwards", n.__removeTimer__ = setTimeout(() => {
|
|
238
239
|
n.__removeTimer__ = void 0, n.remove();
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
if (
|
|
242
|
-
e.tooltipElement = void 0, e.__lastContent__ = void 0,
|
|
243
|
-
},
|
|
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) => {
|
|
244
245
|
let n = t.target;
|
|
245
246
|
if (!(n instanceof Element) || n === e) return !0;
|
|
246
|
-
let r = n.closest(`[${
|
|
247
|
+
let r = n.closest(`[${Y}]`);
|
|
247
248
|
return r === null || r === e;
|
|
248
|
-
},
|
|
249
|
-
let t = e.closest(
|
|
249
|
+
}, Be = "button, a[href], [role=\"button\"], [role=\"tab\"], [role=\"menuitem\"], input, select, textarea, label", Ve = (e) => {
|
|
250
|
+
let t = e.closest(Be);
|
|
250
251
|
return !t || t.disabled === !0 ? !1 : t.getAttribute("aria-disabled") !== "true";
|
|
251
252
|
}, Z = (e) => {
|
|
252
253
|
if (!e) return "";
|
|
@@ -257,69 +258,69 @@ var x = /* @__PURE__ */ v({
|
|
|
257
258
|
return Z(t.children ?? t.content);
|
|
258
259
|
}
|
|
259
260
|
return "";
|
|
260
|
-
},
|
|
261
|
+
}, He = (e) => [
|
|
261
262
|
Z(e.header),
|
|
262
263
|
Z(e.body),
|
|
263
264
|
Z(e.tip)
|
|
264
|
-
].filter(Boolean).join(". "),
|
|
265
|
+
].filter(Boolean).join(". "), Ue = (e) => {
|
|
265
266
|
if (e.hasAttribute("aria-labelledby") || e.hasAttribute("aria-label") && !e.__ownsAriaLabel__ || e.hasAttribute("title") || (e.textContent ?? "").trim().length > 0) return !0;
|
|
266
267
|
let t = e.querySelector("img[alt]");
|
|
267
268
|
return !!t && (t.getAttribute("alt") ?? "").trim().length > 0;
|
|
268
|
-
}, Ue = (e, t) => {
|
|
269
|
-
let n = t.aria ?? "auto";
|
|
270
|
-
return n === "auto" ? He(e) ? "description" : "label" : n;
|
|
271
269
|
}, We = (e, t) => {
|
|
272
|
-
|
|
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") {
|
|
273
274
|
e.__ownsAriaLabel__ &&= (e.removeAttribute("aria-label"), !1), e.__ownsRole__ &&= (e.removeAttribute("role"), !1);
|
|
274
275
|
return;
|
|
275
276
|
}
|
|
276
|
-
let n =
|
|
277
|
-
n && (e.setAttribute("aria-label", n), e.__ownsAriaLabel__ = !0, !e.__ownsRole__ && !e.hasAttribute("role") && !e.matches(
|
|
278
|
-
},
|
|
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) => {
|
|
279
280
|
let n = !!t?.focusable;
|
|
280
281
|
if (n && !e.__ownsTabIndex__) {
|
|
281
|
-
if (e.matches(
|
|
282
|
+
if (e.matches(ze) || e.hasAttribute("tabindex")) return;
|
|
282
283
|
e.setAttribute("tabindex", "0"), e.__ownsTabIndex__ = !0;
|
|
283
284
|
return;
|
|
284
285
|
}
|
|
285
286
|
!n && e.__ownsTabIndex__ && (e.removeAttribute("tabindex"), e.__ownsTabIndex__ = !1);
|
|
286
|
-
},
|
|
287
|
+
}, qe = (e, t) => {
|
|
287
288
|
e.__prevDescribedBy__ = e.getAttribute("aria-describedby");
|
|
288
289
|
let n = [e.__prevDescribedBy__, t].filter(Boolean).join(" ");
|
|
289
290
|
e.setAttribute("aria-describedby", n);
|
|
290
|
-
},
|
|
291
|
+
}, Je = (e) => {
|
|
291
292
|
e.__prevDescribedBy__ !== void 0 && (e.__prevDescribedBy__ ? e.setAttribute("aria-describedby", e.__prevDescribedBy__) : e.removeAttribute("aria-describedby"), e.__prevDescribedBy__ = void 0);
|
|
292
|
-
},
|
|
293
|
+
}, Ye = "nb-tooltip-description", Xe = (e) => !!e && !!(e.body || e.header || e.tip), Ze = (e, t) => {
|
|
293
294
|
if (typeof document > "u") return;
|
|
294
|
-
let n = t &&
|
|
295
|
+
let n = t && Xe(t) && We(e, t) === "description" ? He(t) : "";
|
|
295
296
|
if (!n) {
|
|
296
|
-
|
|
297
|
+
Qe(e);
|
|
297
298
|
return;
|
|
298
299
|
}
|
|
299
300
|
let r = e.__descNode__;
|
|
300
|
-
r || (r = document.createElement("span"), r.className =
|
|
301
|
-
},
|
|
302
|
-
e.__descNode__ && (
|
|
303
|
-
},
|
|
304
|
-
if (
|
|
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)) {
|
|
305
306
|
e.__prevTitle__ === void 0 && e.hasAttribute("title") && (e.__prevTitle__ = e.getAttribute("title") ?? "", e.removeAttribute("title"));
|
|
306
307
|
return;
|
|
307
308
|
}
|
|
308
|
-
|
|
309
|
-
},
|
|
309
|
+
et(e);
|
|
310
|
+
}, et = (e) => {
|
|
310
311
|
e.__prevTitle__ !== void 0 && (e.hasAttribute("title") || e.setAttribute("title", e.__prevTitle__), e.__prevTitle__ = void 0);
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
},
|
|
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) => {
|
|
314
315
|
let t = e.__proxyHost__;
|
|
315
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);
|
|
316
|
-
},
|
|
317
|
-
let t = e.__tooltipBinding__ &&
|
|
318
|
-
e.__proxyHost__ !== t && (
|
|
317
|
+
}, at = (e) => {
|
|
318
|
+
let t = e.__tooltipBinding__ && nt(e) ? e.parentElement : null;
|
|
319
|
+
e.__proxyHost__ !== t && (it(e), t && (e.__proxyMove__ = ((t) => {
|
|
319
320
|
let n = t;
|
|
320
321
|
if (n.buttons) return;
|
|
321
322
|
let r = e.getBoundingClientRect();
|
|
322
|
-
if (U(r) ?
|
|
323
|
+
if (U(r) ? rt(r, n.clientX, n.clientY) : t.target === e || e.contains(t.target)) {
|
|
323
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"));
|
|
324
325
|
return;
|
|
325
326
|
}
|
|
@@ -327,32 +328,32 @@ var x = /* @__PURE__ */ v({
|
|
|
327
328
|
}), e.__proxyLeave__ = (() => {
|
|
328
329
|
e.__proxyInside__ && (e.__proxyInside__ = !1, e.__hideTooltip__?.(void 0, "pointer"));
|
|
329
330
|
}), t.addEventListener("mousemove", e.__proxyMove__), t.addEventListener("mouseleave", e.__proxyLeave__), e.__proxyHost__ = t));
|
|
330
|
-
},
|
|
331
|
+
}, ot = (e) => {
|
|
331
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.");
|
|
332
|
-
},
|
|
333
|
+
}, st = (e, t) => {
|
|
333
334
|
if (!t) return;
|
|
334
335
|
let n = t.open === void 0 ? e.__openState__ === void 0 && t.defaultOpen ? !0 : void 0 : t.open;
|
|
335
336
|
n !== void 0 && n !== (e.__openState__ === !0 || !!e.__showTimer__) && (n ? e.__showTooltip__?.("program") : e.__hideTooltip__?.(0, "program"));
|
|
336
|
-
},
|
|
337
|
-
|
|
337
|
+
}, ct = (e) => {
|
|
338
|
+
R();
|
|
338
339
|
let t = e.config.globalProperties.$router;
|
|
339
340
|
t && t.beforeEach(() => {
|
|
340
|
-
|
|
341
|
+
I.forEach((e) => e?.__hideTooltip__?.(0, "program")), I.clear();
|
|
341
342
|
}), e.directive("nb-tooltip", {
|
|
342
343
|
mounted(e, t) {
|
|
343
344
|
e.__showTooltip__ = (t = "pointer") => {
|
|
344
345
|
let n = e.__tooltipBinding__;
|
|
345
346
|
if (n) {
|
|
346
347
|
if (n.open !== void 0 && t !== "program") {
|
|
347
|
-
|
|
348
|
+
ot(n), n.onOpenChange?.(!0, t);
|
|
348
349
|
return;
|
|
349
350
|
}
|
|
350
|
-
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0,
|
|
351
|
+
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, ft(e, n, t);
|
|
351
352
|
}
|
|
352
353
|
}, e.__hideTooltip__ = (t = e.__tooltipBinding__?.hideDelay ?? 150, n = "dismiss") => {
|
|
353
354
|
let r = e.__tooltipBinding__;
|
|
354
355
|
if (r?.open !== void 0 && n !== "program") {
|
|
355
|
-
|
|
356
|
+
ot(r), r.onOpenChange?.(!1, n);
|
|
356
357
|
return;
|
|
357
358
|
}
|
|
358
359
|
if (clearTimeout(e.__hideTimer__), t <= 0) {
|
|
@@ -369,33 +370,33 @@ var x = /* @__PURE__ */ v({
|
|
|
369
370
|
let n = t;
|
|
370
371
|
n.buttons || (typeof n.clientX == "number" && (n.clientX || n.clientY) && (e.__mouseX__ = n.clientX, e.__mouseY__ = n.clientY), e.__showTooltip__?.("pointer"));
|
|
371
372
|
}, e.__hideHandler__ = () => e.__hideTooltip__?.(void 0, "pointer"), e.__focusHandler__ = (t) => {
|
|
372
|
-
L(
|
|
373
|
+
L(be, ye) || X(e, t) && e.__showTooltip__?.("focus");
|
|
373
374
|
}, e.__blurHandler__ = () => e.__hideTooltip__?.(void 0, "focus"), e.__touchHandler__ = (t) => {
|
|
374
|
-
e.__tooltipBinding__?.touch !== !1 && X(e, t) && (e.__lastTouchAt__ = Date.now(), !
|
|
375
|
-
},
|
|
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);
|
|
376
377
|
},
|
|
377
378
|
updated(e, t) {
|
|
378
379
|
let n = e.__tooltipBinding__;
|
|
379
380
|
if (e.__tooltipBinding__ = t.value, !t.value) {
|
|
380
|
-
|
|
381
|
+
tt(e, void 0), Ke(e, void 0), Q(e, !0);
|
|
381
382
|
return;
|
|
382
383
|
}
|
|
383
|
-
if (n !== t.value && (
|
|
384
|
-
let r =
|
|
385
|
-
r !== e.__lastContent__ && (e.__lastContent__ = r,
|
|
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));
|
|
386
387
|
},
|
|
387
388
|
unmounted(e) {
|
|
388
|
-
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, Q(e, !0),
|
|
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);
|
|
389
390
|
}
|
|
390
391
|
});
|
|
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) => [
|
|
392
393
|
"nb-tooltip",
|
|
393
394
|
`nb-tooltip-${e}`,
|
|
394
395
|
t ? `nb-tooltip-flavor-${t}` : "",
|
|
395
396
|
n || ""
|
|
396
|
-
].filter(Boolean).join(" "),
|
|
397
|
-
let { header: i, body: a, tip: o, delay: s = 400, animationTime: c
|
|
398
|
-
if (clearTimeout(t.__showTimer__), t.__showTimer__ = void 0,
|
|
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) {
|
|
399
400
|
let e = t.getBoundingClientRect();
|
|
400
401
|
if (!(Math.round(e.width) < Math.round(t.scrollWidth))) return;
|
|
401
402
|
}
|
|
@@ -404,9 +405,9 @@ var x = /* @__PURE__ */ v({
|
|
|
404
405
|
t.__showTimer__ = setTimeout(() => {
|
|
405
406
|
if (t.__showTimer__ = void 0, !t.isConnected) return;
|
|
406
407
|
let e = r === "pointer" ? l ?? "cursor" : l && l !== "cursor" ? l : "top";
|
|
407
|
-
for (let e of Array.from(
|
|
408
|
+
for (let e of Array.from(V)) e !== t && pt(e, "superseded");
|
|
408
409
|
let s = document.createElement("span");
|
|
409
|
-
s.className =
|
|
410
|
+
if (s.className = ut(e, d, f), s.innerHTML = lt({
|
|
410
411
|
header: i,
|
|
411
412
|
body: a,
|
|
412
413
|
tip: o
|
|
@@ -414,11 +415,16 @@ var x = /* @__PURE__ */ v({
|
|
|
414
415
|
s.__hovered__ = !0, clearTimeout(t.__hideTimer__), t.__hideTimer__ = void 0, t.__watchdogMisses__ = 0;
|
|
415
416
|
}), s.addEventListener("mouseleave", () => {
|
|
416
417
|
s.__hovered__ = !1, t.__hideTooltip__?.();
|
|
417
|
-
}), m
|
|
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);
|
|
418
424
|
let u = t.__openState__ === !0;
|
|
419
425
|
t.__openState__ = !0, u || n.onOpenChange?.(!0, r);
|
|
420
426
|
}, p);
|
|
421
|
-
},
|
|
427
|
+
}, pt = (e, t, n = !0) => {
|
|
422
428
|
if (e.__hideTooltip__) {
|
|
423
429
|
e.__hideTooltip__(n ? 0 : void 0, t);
|
|
424
430
|
return;
|
|
@@ -427,16 +433,16 @@ var x = /* @__PURE__ */ v({
|
|
|
427
433
|
}, Q = (e, t = !1, n = "dismiss") => {
|
|
428
434
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0;
|
|
429
435
|
let r = e.__openState__ === !0;
|
|
430
|
-
|
|
431
|
-
},
|
|
432
|
-
let { header: n, body: r, tip: i, position: a } = t, o =
|
|
433
|
-
l && (l.innerHTML =
|
|
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({
|
|
434
440
|
header: n,
|
|
435
441
|
body: r,
|
|
436
442
|
tip: i
|
|
437
|
-
}), l.className =
|
|
443
|
+
}), l.className = ut(e.__side__ ?? c ?? "cursor", o, s), $(e, l, c));
|
|
438
444
|
};
|
|
439
|
-
function
|
|
445
|
+
function ht(e, t, n, r, i, a, o) {
|
|
440
446
|
switch (e) {
|
|
441
447
|
case "top": return {
|
|
442
448
|
top: t.top - (r + i * 2),
|
|
@@ -455,16 +461,16 @@ function mt(e, t, n, r, i, a, o) {
|
|
|
455
461
|
left: t.right + i
|
|
456
462
|
};
|
|
457
463
|
default: return {
|
|
458
|
-
top: o +
|
|
459
|
-
left: a +
|
|
464
|
+
top: o + gt,
|
|
465
|
+
left: a + gt
|
|
460
466
|
};
|
|
461
467
|
}
|
|
462
468
|
}
|
|
463
|
-
var
|
|
464
|
-
function
|
|
469
|
+
var gt = 14;
|
|
470
|
+
function _t(e, t, n, r, i) {
|
|
465
471
|
return t >= i && e >= i && t + n <= window.innerWidth - i && e + r <= window.innerHeight - i;
|
|
466
472
|
}
|
|
467
|
-
var
|
|
473
|
+
var vt = {
|
|
468
474
|
top: [
|
|
469
475
|
"bottom",
|
|
470
476
|
"right",
|
|
@@ -488,10 +494,10 @@ var _t = {
|
|
|
488
494
|
cursor: []
|
|
489
495
|
}, $ = (e, t, n) => {
|
|
490
496
|
if (!t) return;
|
|
491
|
-
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.__mouseX__ ?? 0, c = e.__mouseY__ ?? 0, l = n ?? "cursor", u = (e) =>
|
|
492
|
-
if (a > 0 && o > 0 && !
|
|
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]) {
|
|
493
499
|
let t = u(e);
|
|
494
|
-
if (
|
|
500
|
+
if (_t(t.top, t.left, a, o, 16)) {
|
|
495
501
|
d = t, f = e;
|
|
496
502
|
break;
|
|
497
503
|
}
|
|
@@ -522,68 +528,68 @@ var _t = {
|
|
|
522
528
|
}
|
|
523
529
|
t.style.top = `${p}px`, t.style.left = `${m}px`;
|
|
524
530
|
};
|
|
525
|
-
function
|
|
526
|
-
for (let t of Array.from(
|
|
531
|
+
function yt(e) {
|
|
532
|
+
for (let t of Array.from(I)) t.__hideTooltip__?.(0, e);
|
|
527
533
|
let t = /* @__PURE__ */ new Set();
|
|
528
|
-
for (let e of Array.from(
|
|
534
|
+
for (let e of Array.from(I)) for (let n of e.__chips__ ?? []) t.add(n);
|
|
529
535
|
document.querySelectorAll("span.nb-tooltip").forEach((e) => {
|
|
530
536
|
t.has(e) || e.remove();
|
|
531
537
|
});
|
|
532
538
|
}
|
|
533
|
-
function
|
|
534
|
-
for (let e of Array.from(
|
|
535
|
-
|
|
536
|
-
for (let e of Array.from(
|
|
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);
|
|
537
543
|
document.querySelectorAll("span.nb-tooltip").forEach((e) => e.remove());
|
|
538
544
|
}
|
|
539
545
|
//#endregion
|
|
540
546
|
//#region src/directives/TourStep.directive.ts
|
|
541
|
-
var
|
|
542
|
-
function
|
|
543
|
-
let r =
|
|
547
|
+
var xt = /* @__PURE__ */ v({ default: () => Ct });
|
|
548
|
+
function St(e, t) {
|
|
549
|
+
let r = t.value;
|
|
544
550
|
if (r == null || r === "") {
|
|
545
|
-
e.removeAttribute(
|
|
551
|
+
e.removeAttribute(n);
|
|
546
552
|
return;
|
|
547
553
|
}
|
|
548
|
-
e.setAttribute(
|
|
554
|
+
e.setAttribute(n, String(r));
|
|
549
555
|
}
|
|
550
|
-
var
|
|
556
|
+
var Ct = (e) => {
|
|
551
557
|
e.directive("nb-tour-step", {
|
|
552
|
-
mounted:
|
|
553
|
-
updated:
|
|
558
|
+
mounted: St,
|
|
559
|
+
updated: St,
|
|
554
560
|
unmounted(e) {
|
|
555
|
-
e.removeAttribute(
|
|
561
|
+
e.removeAttribute(n);
|
|
556
562
|
}
|
|
557
563
|
});
|
|
558
|
-
},
|
|
564
|
+
}, wt = /* @__PURE__ */ Object.assign({
|
|
559
565
|
"./ContextMenu.directive.ts": y,
|
|
560
|
-
"./ToolTip.content.ts":
|
|
561
|
-
"./ToolTip.directive.ts":
|
|
562
|
-
"./TourStep.directive.ts":
|
|
563
|
-
}),
|
|
564
|
-
Object.values(
|
|
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) => {
|
|
565
571
|
typeof t.default == "function" && t.default(e);
|
|
566
572
|
});
|
|
567
|
-
} },
|
|
568
|
-
let t =
|
|
569
|
-
e.provide(
|
|
570
|
-
} },
|
|
573
|
+
} }, Et = { install(e) {
|
|
574
|
+
let t = i();
|
|
575
|
+
e.provide(r, t);
|
|
576
|
+
} }, Dt = /* @__PURE__ */ function(e) {
|
|
571
577
|
return e.Object = "object", e.Array = "array", e.Primitive = "primitive", e;
|
|
572
|
-
}(
|
|
578
|
+
}(Dt || {}), Ot = {
|
|
573
579
|
key: 0,
|
|
574
580
|
class: "nb-spreadsheet__toolbar"
|
|
575
|
-
},
|
|
581
|
+
}, kt = {
|
|
576
582
|
key: 0,
|
|
577
583
|
class: "nb-spreadsheet__corner",
|
|
578
584
|
style: {
|
|
579
585
|
gridRow: 1,
|
|
580
586
|
gridColumn: 1
|
|
581
587
|
}
|
|
582
|
-
},
|
|
588
|
+
}, At = ["onClick"], jt = { class: "nb-spreadsheet__header-label" }, Mt = {
|
|
583
589
|
key: 0,
|
|
584
590
|
class: "nb-spreadsheet__sort",
|
|
585
591
|
"aria-hidden": "true"
|
|
586
|
-
},
|
|
592
|
+
}, Nt = ["onMousedown"], Pt = [
|
|
587
593
|
"title",
|
|
588
594
|
"data-cell",
|
|
589
595
|
"data-row",
|
|
@@ -591,7 +597,7 @@ var St = (e) => {
|
|
|
591
597
|
"onMousedown",
|
|
592
598
|
"onMouseenter",
|
|
593
599
|
"onDblclick"
|
|
594
|
-
],
|
|
600
|
+
], Ft = ["inputmode"], It = 36, Lt = 32, Rt = /* @__PURE__ */ d({
|
|
595
601
|
__name: "Spreadsheet",
|
|
596
602
|
props: {
|
|
597
603
|
columns: {},
|
|
@@ -622,7 +628,7 @@ var St = (e) => {
|
|
|
622
628
|
"row-reorder"
|
|
623
629
|
],
|
|
624
630
|
setup(e, { expose: t, emit: n }) {
|
|
625
|
-
let r = e, i = 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(() => {
|
|
626
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);
|
|
627
633
|
return [
|
|
628
634
|
...e,
|
|
@@ -631,32 +637,32 @@ var St = (e) => {
|
|
|
631
637
|
];
|
|
632
638
|
});
|
|
633
639
|
function D(e) {
|
|
634
|
-
return
|
|
640
|
+
return _.value[e.id] ?? e.width ?? 120;
|
|
635
641
|
}
|
|
636
|
-
let ue =
|
|
642
|
+
let ue = s(() => ({ gridTemplateColumns: (r.showGutter ? `${r.gutterWidth}px ` : "") + E.value.map((e) => `${D(e)}px`).join(" ") })), O = s(() => {
|
|
637
643
|
let e = r.rows.filter((e) => !e.pinned);
|
|
638
|
-
if (!
|
|
639
|
-
let t = r.columns.find((e) => e.id ===
|
|
644
|
+
if (!v.value) return e;
|
|
645
|
+
let t = r.columns.find((e) => e.id === v.value.columnId);
|
|
640
646
|
if (!t) return e;
|
|
641
|
-
let n =
|
|
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;
|
|
642
648
|
return [...e].sort((e, n) => i(e.values[t.id], n.values[t.id]));
|
|
643
|
-
}), k =
|
|
644
|
-
let e = Math.max(1, Math.ceil((
|
|
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) => ({
|
|
645
651
|
...e,
|
|
646
652
|
__virtualIndex: t,
|
|
647
653
|
gutterLabel: ""
|
|
648
|
-
})),
|
|
654
|
+
})), c = O.value.slice(i, o).map((e, t) => ({
|
|
649
655
|
...e,
|
|
650
656
|
__virtualIndex: i + t + k.value.length
|
|
651
|
-
})),
|
|
657
|
+
})), l = A.value.map((e, t) => ({
|
|
652
658
|
...e,
|
|
653
659
|
__virtualIndex: k.value.length + O.value.length + t,
|
|
654
660
|
gutterLabel: ""
|
|
655
661
|
}));
|
|
656
662
|
return [
|
|
657
|
-
...o,
|
|
658
663
|
...s,
|
|
659
|
-
...c
|
|
664
|
+
...c,
|
|
665
|
+
...l
|
|
660
666
|
];
|
|
661
667
|
});
|
|
662
668
|
function fe(e, t) {
|
|
@@ -671,7 +677,7 @@ var St = (e) => {
|
|
|
671
677
|
}
|
|
672
678
|
return String(t);
|
|
673
679
|
}
|
|
674
|
-
function
|
|
680
|
+
function pe(e, t) {
|
|
675
681
|
if (t === "") return null;
|
|
676
682
|
if (e.type === "number") {
|
|
677
683
|
let e = t.replace(/\s/g, "").replace(",", "."), n = Number(e);
|
|
@@ -685,24 +691,24 @@ var St = (e) => {
|
|
|
685
691
|
}
|
|
686
692
|
return t;
|
|
687
693
|
}
|
|
688
|
-
function
|
|
694
|
+
function j(e, t) {
|
|
689
695
|
let n = r.rows.find((t) => t.id === e);
|
|
690
696
|
if (!n) return;
|
|
691
697
|
let i = n.values[t];
|
|
692
698
|
if (i !== void 0) return i;
|
|
693
|
-
if (r.computed) return r.computed(e, t,
|
|
699
|
+
if (r.computed) return r.computed(e, t, j);
|
|
694
700
|
}
|
|
695
|
-
function
|
|
701
|
+
function M(e, t) {
|
|
696
702
|
return r.cellAttrs ? r.cellAttrs(e.id, t.id, e, t) ?? {} : {};
|
|
697
703
|
}
|
|
698
|
-
function
|
|
699
|
-
let n =
|
|
704
|
+
function N(e, t) {
|
|
705
|
+
let n = M(e, t);
|
|
700
706
|
if (n.display !== void 0) return n.display;
|
|
701
|
-
let r =
|
|
707
|
+
let r = j(e.id, t.id);
|
|
702
708
|
return t.format ? t.format(r, e) : fe(t, r);
|
|
703
709
|
}
|
|
704
710
|
function me(e, t) {
|
|
705
|
-
let n =
|
|
711
|
+
let n = M(e, t), r = y.value?.rowId === e.id && y.value?.columnId === t.id, i = xe(e.id, t.id);
|
|
706
712
|
return {
|
|
707
713
|
[`nb-spreadsheet__cell--${t.align ?? (t.type === "number" || t.type === "date" ? "right" : "left")}`]: !0,
|
|
708
714
|
"nb-spreadsheet__cell--focused": r,
|
|
@@ -717,20 +723,20 @@ var St = (e) => {
|
|
|
717
723
|
}
|
|
718
724
|
function P(e, t) {
|
|
719
725
|
if (e.computed || t.readOnly) return !0;
|
|
720
|
-
let n =
|
|
726
|
+
let n = M(e, t);
|
|
721
727
|
return !!n.readOnly || !!n.computed;
|
|
722
728
|
}
|
|
723
729
|
function F(e, t) {
|
|
724
|
-
return
|
|
730
|
+
return M(e, t).tooltip ?? "";
|
|
725
731
|
}
|
|
726
|
-
function
|
|
732
|
+
function I(e) {
|
|
727
733
|
return {
|
|
728
734
|
"nb-spreadsheet__header--sortable": !!e.sortable,
|
|
729
735
|
"nb-spreadsheet__header--pinned-left": e.pinned === "left",
|
|
730
736
|
"nb-spreadsheet__header--pinned-right": e.pinned === "right"
|
|
731
737
|
};
|
|
732
738
|
}
|
|
733
|
-
function
|
|
739
|
+
function he(e) {
|
|
734
740
|
if (e.pinned !== "left") return 0;
|
|
735
741
|
let t = r.showGutter ? r.gutterWidth : 0;
|
|
736
742
|
for (let n of E.value) {
|
|
@@ -739,7 +745,7 @@ var St = (e) => {
|
|
|
739
745
|
}
|
|
740
746
|
return t;
|
|
741
747
|
}
|
|
742
|
-
function
|
|
748
|
+
function ge(e) {
|
|
743
749
|
if (e.pinned !== "right") return 0;
|
|
744
750
|
let t = 0, n = [...E.value].reverse();
|
|
745
751
|
for (let r of n) {
|
|
@@ -748,23 +754,23 @@ var St = (e) => {
|
|
|
748
754
|
}
|
|
749
755
|
return t;
|
|
750
756
|
}
|
|
751
|
-
function
|
|
757
|
+
function _e(e, t) {
|
|
752
758
|
let n = (r.showGutter ? 2 : 1) + t, i = {};
|
|
753
|
-
return e.pinned === "left" ? (i.position = "sticky", i.left = `${
|
|
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"), {
|
|
754
760
|
gridRow: 1,
|
|
755
761
|
gridColumn: n,
|
|
756
762
|
...i
|
|
757
763
|
};
|
|
758
764
|
}
|
|
759
|
-
function
|
|
765
|
+
function ve(e, t, n) {
|
|
760
766
|
let i = (r.showGutter ? 2 : 1) + n, a = e.__virtualIndex + 2, o = {};
|
|
761
|
-
return t.pinned === "left" ? (o.position = "sticky", o.left = `${
|
|
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))), {
|
|
762
768
|
gridRow: a,
|
|
763
769
|
gridColumn: i,
|
|
764
770
|
...o
|
|
765
771
|
};
|
|
766
772
|
}
|
|
767
|
-
function
|
|
773
|
+
function ye(e) {
|
|
768
774
|
if (e.pinned === "top") {
|
|
769
775
|
let t = k.value.findIndex((t) => t.id === e.id);
|
|
770
776
|
return { top: `calc(var(--nbss-header-height) + var(--nbss-row-height) * ${Math.max(0, t)})` };
|
|
@@ -775,75 +781,75 @@ var St = (e) => {
|
|
|
775
781
|
}
|
|
776
782
|
return {};
|
|
777
783
|
}
|
|
778
|
-
function
|
|
784
|
+
function be(e) {
|
|
779
785
|
return e.label === void 0 ? e.gutterLabel === void 0 ? String(e.__virtualIndex - k.value.length + 1) : e.gutterLabel : e.label;
|
|
780
786
|
}
|
|
781
|
-
function
|
|
787
|
+
function L(e) {
|
|
782
788
|
let t = {
|
|
783
789
|
position: "sticky",
|
|
784
790
|
left: "0",
|
|
785
791
|
zIndex: "2"
|
|
786
792
|
};
|
|
787
|
-
return e.pinned && (Object.assign(t,
|
|
793
|
+
return e.pinned && (Object.assign(t, ye(e)), t.zIndex = "4"), {
|
|
788
794
|
gridRow: e.__virtualIndex + 2,
|
|
789
795
|
gridColumn: 1,
|
|
790
796
|
...t
|
|
791
797
|
};
|
|
792
798
|
}
|
|
793
799
|
function xe(e, t) {
|
|
794
|
-
if (!
|
|
800
|
+
if (!b.value) return !1;
|
|
795
801
|
let n = [
|
|
796
802
|
...k.value,
|
|
797
803
|
...O.value,
|
|
798
804
|
...A.value
|
|
799
|
-
].map((e) => e.id), r = E.value.map((e) => e.id), i = n.indexOf(
|
|
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);
|
|
800
806
|
return c >= Math.min(i, a) && c <= Math.max(i, a) && l >= Math.min(o, s) && l <= Math.max(o, s);
|
|
801
807
|
}
|
|
802
808
|
function R(e, t, n = !1) {
|
|
803
|
-
|
|
809
|
+
y.value = {
|
|
804
810
|
rowId: e,
|
|
805
811
|
columnId: t
|
|
806
|
-
}, n &&
|
|
807
|
-
...
|
|
812
|
+
}, n && b.value ? b.value = {
|
|
813
|
+
...b.value,
|
|
808
814
|
endRowId: e,
|
|
809
815
|
endColumnId: t
|
|
810
|
-
} :
|
|
816
|
+
} : b.value = {
|
|
811
817
|
startRowId: e,
|
|
812
818
|
startColumnId: t,
|
|
813
819
|
endRowId: e,
|
|
814
820
|
endColumnId: t
|
|
815
|
-
}, i("focus",
|
|
821
|
+
}, i("focus", y.value), i("selection", b.value);
|
|
816
822
|
}
|
|
817
823
|
function Se(e) {
|
|
818
|
-
|
|
824
|
+
w = e.pointerType;
|
|
819
825
|
}
|
|
820
826
|
function Ce(e, t, n) {
|
|
821
|
-
let r =
|
|
822
|
-
if (
|
|
823
|
-
let e =
|
|
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);
|
|
824
830
|
G(t, n, e == null ? "" : String(e), "edit");
|
|
825
831
|
}
|
|
826
832
|
}
|
|
827
833
|
function we(e, t) {
|
|
828
|
-
!
|
|
829
|
-
...
|
|
834
|
+
!ce.value || !b.value || (b.value = {
|
|
835
|
+
...b.value,
|
|
830
836
|
endRowId: e.id,
|
|
831
837
|
endColumnId: t.id
|
|
832
|
-
}, i("selection",
|
|
838
|
+
}, i("selection", b.value));
|
|
833
839
|
}
|
|
834
840
|
function Te() {
|
|
835
|
-
|
|
841
|
+
ce.value = !1;
|
|
836
842
|
}
|
|
837
843
|
function Ee(e, t) {
|
|
838
844
|
if (P(e, t)) return;
|
|
839
|
-
let n =
|
|
845
|
+
let n = j(e.id, t.id);
|
|
840
846
|
G(e, t, n == null ? "" : String(n), "edit");
|
|
841
847
|
}
|
|
842
848
|
function z() {
|
|
843
|
-
|
|
849
|
+
a.value?.focus({ preventScroll: !0 });
|
|
844
850
|
}
|
|
845
851
|
function B(e, t, n = !1) {
|
|
846
|
-
if (!
|
|
852
|
+
if (!y.value) {
|
|
847
853
|
let e = E.value[0], t = de.value[0];
|
|
848
854
|
e && t && R(t.id, e.id);
|
|
849
855
|
return;
|
|
@@ -852,14 +858,14 @@ var St = (e) => {
|
|
|
852
858
|
...k.value,
|
|
853
859
|
...O.value,
|
|
854
860
|
...A.value
|
|
855
|
-
], i = r.findIndex((e) => e.id ===
|
|
856
|
-
R(c, l, n),
|
|
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);
|
|
857
863
|
}
|
|
858
864
|
function V(e) {
|
|
859
865
|
return e.replace(/["\\]/g, "\\$&");
|
|
860
866
|
}
|
|
861
867
|
function H(e) {
|
|
862
|
-
let t =
|
|
868
|
+
let t = a.value?.querySelector(e);
|
|
863
869
|
return t ? t.offsetHeight : 0;
|
|
864
870
|
}
|
|
865
871
|
function De(e) {
|
|
@@ -872,47 +878,47 @@ var St = (e) => {
|
|
|
872
878
|
for (let n of E.value) n.pinned === e && (t += D(n));
|
|
873
879
|
return t;
|
|
874
880
|
}
|
|
875
|
-
function
|
|
876
|
-
let n =
|
|
881
|
+
function ke(e, t) {
|
|
882
|
+
let n = a.value;
|
|
877
883
|
if (!n) return;
|
|
878
884
|
let i = O.value.findIndex((t) => t.id === e);
|
|
879
885
|
if (i >= 0) {
|
|
880
|
-
let e = H(".nb-spreadsheet__header") ||
|
|
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);
|
|
881
887
|
r - a < n.scrollTop ? n.scrollTop = r - a : r + t > n.scrollTop + n.clientHeight - o && (n.scrollTop = r + t - n.clientHeight + o);
|
|
882
888
|
}
|
|
883
|
-
let
|
|
884
|
-
if (
|
|
889
|
+
let o = t ? E.value.find((e) => e.id === t) : void 0;
|
|
890
|
+
if (o && !o.pinned) {
|
|
885
891
|
let e = r.showGutter ? r.gutterWidth : 0;
|
|
886
892
|
for (let t of E.value) {
|
|
887
|
-
if (t.id ===
|
|
893
|
+
if (t.id === o.id) break;
|
|
888
894
|
e += D(t);
|
|
889
895
|
}
|
|
890
|
-
let t = D(
|
|
891
|
-
e - i < n.scrollLeft ? n.scrollLeft = e - i : e + t > n.scrollLeft + n.clientWidth -
|
|
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);
|
|
892
898
|
}
|
|
893
|
-
|
|
899
|
+
U();
|
|
894
900
|
}
|
|
895
|
-
function
|
|
896
|
-
|
|
901
|
+
function U() {
|
|
902
|
+
S.value = a.value?.scrollTop ?? 0, C.value = a.value?.scrollLeft ?? 0;
|
|
897
903
|
}
|
|
898
904
|
function Ae() {
|
|
899
|
-
if (!
|
|
900
|
-
let e = r.rows.find((e) => e.id ===
|
|
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);
|
|
901
907
|
return e && t ? {
|
|
902
908
|
r: e,
|
|
903
909
|
c: t
|
|
904
910
|
} : null;
|
|
905
911
|
}
|
|
906
|
-
function
|
|
912
|
+
function je(e) {
|
|
907
913
|
return !e.metaKey && !e.ctrlKey && !e.altKey && e.key.length === 1;
|
|
908
914
|
}
|
|
909
|
-
function
|
|
910
|
-
if (
|
|
911
|
-
e.target !==
|
|
915
|
+
function W(e) {
|
|
916
|
+
if (x.value) {
|
|
917
|
+
e.target !== d.value && (je(e) ? (e.preventDefault(), x.value.draft += e.key) : Pe(e));
|
|
912
918
|
return;
|
|
913
919
|
}
|
|
914
920
|
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "z") {
|
|
915
|
-
e.preventDefault(), e.shiftKey ? Be() :
|
|
921
|
+
e.preventDefault(), e.shiftKey ? Be() : X();
|
|
916
922
|
return;
|
|
917
923
|
}
|
|
918
924
|
switch (e.key) {
|
|
@@ -935,58 +941,58 @@ var St = (e) => {
|
|
|
935
941
|
e.preventDefault(), B(e.shiftKey ? -1 : 1, 0);
|
|
936
942
|
break;
|
|
937
943
|
case "Escape":
|
|
938
|
-
|
|
944
|
+
b.value = null, i("selection", null);
|
|
939
945
|
break;
|
|
940
946
|
case "Delete":
|
|
941
947
|
case "Backspace":
|
|
942
|
-
e.preventDefault(),
|
|
948
|
+
e.preventDefault(), J();
|
|
943
949
|
break;
|
|
944
950
|
case "F2": {
|
|
945
951
|
e.preventDefault();
|
|
946
952
|
let t = Ae();
|
|
947
953
|
if (t && !P(t.r, t.c)) {
|
|
948
|
-
let e =
|
|
954
|
+
let e = j(t.r.id, t.c.id);
|
|
949
955
|
G(t.r, t.c, e == null ? "" : String(e), "edit");
|
|
950
956
|
}
|
|
951
957
|
break;
|
|
952
958
|
}
|
|
953
959
|
default: {
|
|
954
|
-
if (!
|
|
960
|
+
if (!je(e)) break;
|
|
955
961
|
let t = Ae();
|
|
956
962
|
t && !P(t.r, t.c) && (e.preventDefault(), G(t.r, t.c, e.key, "enter"));
|
|
957
963
|
}
|
|
958
964
|
}
|
|
959
965
|
}
|
|
960
966
|
function G(e, t, n, r) {
|
|
961
|
-
|
|
967
|
+
ke(e.id, t.id), x.value = {
|
|
962
968
|
rowId: e.id,
|
|
963
969
|
columnId: t.id,
|
|
964
970
|
draft: n,
|
|
965
971
|
mode: r
|
|
966
|
-
},
|
|
967
|
-
let e =
|
|
972
|
+
}, f(() => {
|
|
973
|
+
let e = d.value;
|
|
968
974
|
if (e) if (e.focus({ preventScroll: !0 }), r === "enter") {
|
|
969
975
|
let t = e.value.length;
|
|
970
976
|
e.setSelectionRange(t, t);
|
|
971
977
|
} else e.select();
|
|
972
978
|
});
|
|
973
979
|
}
|
|
974
|
-
let Me =
|
|
975
|
-
if (
|
|
976
|
-
}), Ne =
|
|
977
|
-
if (!
|
|
978
|
-
let e =
|
|
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}`)}"]`);
|
|
979
985
|
if (!e || !t) return { display: "none" };
|
|
980
986
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
981
987
|
return {
|
|
982
|
-
top: `${n.top - r.top - e.clientTop +
|
|
983
|
-
left: `${n.left - r.left - e.clientLeft +
|
|
988
|
+
top: `${n.top - r.top - e.clientTop + S.value}px`,
|
|
989
|
+
left: `${n.left - r.left - e.clientLeft + C.value}px`,
|
|
984
990
|
width: `${n.width}px`,
|
|
985
991
|
height: `${n.height}px`
|
|
986
992
|
};
|
|
987
993
|
});
|
|
988
|
-
function
|
|
989
|
-
let t =
|
|
994
|
+
function Pe(e) {
|
|
995
|
+
let t = x.value?.mode, n = null;
|
|
990
996
|
switch (e.key) {
|
|
991
997
|
case "Enter":
|
|
992
998
|
n = [e.shiftKey ? -1 : 1, 0];
|
|
@@ -1007,25 +1013,25 @@ var St = (e) => {
|
|
|
1007
1013
|
t === "enter" && (n = [0, 1]);
|
|
1008
1014
|
break;
|
|
1009
1015
|
case "Escape":
|
|
1010
|
-
e.preventDefault(),
|
|
1016
|
+
e.preventDefault(), x.value = null, z();
|
|
1011
1017
|
return;
|
|
1012
1018
|
}
|
|
1013
|
-
n && (e.preventDefault(),
|
|
1019
|
+
n && (e.preventDefault(), K(), B(n[0], n[1]));
|
|
1014
1020
|
}
|
|
1015
|
-
function
|
|
1016
|
-
if (!
|
|
1017
|
-
let { rowId: t, columnId: n, draft: a } =
|
|
1018
|
-
|
|
1021
|
+
function K(e = !0) {
|
|
1022
|
+
if (!x.value) return;
|
|
1023
|
+
let { rowId: t, columnId: n, draft: a } = x.value;
|
|
1024
|
+
x.value = null;
|
|
1019
1025
|
let o = r.columns.find((e) => e.id === n);
|
|
1020
1026
|
if (!o) return;
|
|
1021
1027
|
let s;
|
|
1022
1028
|
try {
|
|
1023
|
-
s = o.parse ? o.parse(a) :
|
|
1029
|
+
s = o.parse ? o.parse(a) : pe(o, a);
|
|
1024
1030
|
} catch {
|
|
1025
1031
|
e && z();
|
|
1026
1032
|
return;
|
|
1027
1033
|
}
|
|
1028
|
-
let c =
|
|
1034
|
+
let c = j(t, n);
|
|
1029
1035
|
if (c !== s) {
|
|
1030
1036
|
let e = {
|
|
1031
1037
|
rowId: t,
|
|
@@ -1033,29 +1039,29 @@ var St = (e) => {
|
|
|
1033
1039
|
before: c,
|
|
1034
1040
|
after: s
|
|
1035
1041
|
};
|
|
1036
|
-
|
|
1042
|
+
Y([e]), i("commit", e), i("change", [e]);
|
|
1037
1043
|
}
|
|
1038
1044
|
e && z();
|
|
1039
1045
|
}
|
|
1040
|
-
function
|
|
1041
|
-
if (!
|
|
1046
|
+
function q() {
|
|
1047
|
+
if (!b.value) return [];
|
|
1042
1048
|
let e = [
|
|
1043
1049
|
...k.value,
|
|
1044
1050
|
...O.value,
|
|
1045
1051
|
...A.value
|
|
1046
|
-
].map((e) => e.id), t = E.value.map((e) => e.id), n = e.indexOf(
|
|
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 = [];
|
|
1047
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({
|
|
1048
1054
|
rowId: e[s],
|
|
1049
1055
|
columnId: t[n]
|
|
1050
1056
|
});
|
|
1051
1057
|
return o;
|
|
1052
1058
|
}
|
|
1053
|
-
function
|
|
1054
|
-
let e =
|
|
1059
|
+
function J() {
|
|
1060
|
+
let e = q(), t = [];
|
|
1055
1061
|
for (let { rowId: n, columnId: i } of e) {
|
|
1056
1062
|
let e = r.rows.find((e) => e.id === n), a = r.columns.find((e) => e.id === i);
|
|
1057
1063
|
if (!e || !a || P(e, a)) continue;
|
|
1058
|
-
let o =
|
|
1064
|
+
let o = j(n, i);
|
|
1059
1065
|
o == null || o === "" || t.push({
|
|
1060
1066
|
rowId: n,
|
|
1061
1067
|
columnId: i,
|
|
@@ -1064,33 +1070,33 @@ var St = (e) => {
|
|
|
1064
1070
|
});
|
|
1065
1071
|
}
|
|
1066
1072
|
if (t.length !== 0) {
|
|
1067
|
-
|
|
1073
|
+
Y(t);
|
|
1068
1074
|
for (let e of t) i("commit", e);
|
|
1069
1075
|
i("change", t);
|
|
1070
1076
|
}
|
|
1071
1077
|
}
|
|
1072
|
-
function
|
|
1073
|
-
if (
|
|
1078
|
+
function Fe(e) {
|
|
1079
|
+
if (q().length === 0) return;
|
|
1074
1080
|
let t = [
|
|
1075
1081
|
...k.value,
|
|
1076
1082
|
...O.value,
|
|
1077
1083
|
...A.value
|
|
1078
|
-
].map((e) => e.id), n = E.value.map((e) => e.id), r = Math.min(t.indexOf(
|
|
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 = [];
|
|
1079
1085
|
for (let e = r; e <= i; e++) {
|
|
1080
1086
|
let r = [];
|
|
1081
1087
|
for (let i = a; i <= o; i++) {
|
|
1082
|
-
let a =
|
|
1088
|
+
let a = j(t[e], n[i]);
|
|
1083
1089
|
r.push(a == null ? "" : String(a));
|
|
1084
1090
|
}
|
|
1085
1091
|
s.push(r.join(" "));
|
|
1086
1092
|
}
|
|
1087
1093
|
e.preventDefault(), e.clipboardData?.setData("text/plain", s.join("\n"));
|
|
1088
1094
|
}
|
|
1089
|
-
function Fe(e) {
|
|
1090
|
-
Y(e), Pe();
|
|
1091
|
-
}
|
|
1092
1095
|
function Ie(e) {
|
|
1093
|
-
|
|
1096
|
+
Fe(e), J();
|
|
1097
|
+
}
|
|
1098
|
+
function Le(e) {
|
|
1099
|
+
if (!y.value) return;
|
|
1094
1100
|
let t = e.clipboardData?.getData("text/plain") ?? "";
|
|
1095
1101
|
if (!t) return;
|
|
1096
1102
|
e.preventDefault();
|
|
@@ -1098,7 +1104,7 @@ var St = (e) => {
|
|
|
1098
1104
|
...k.value,
|
|
1099
1105
|
...O.value,
|
|
1100
1106
|
...A.value
|
|
1101
|
-
].map((e) => e.id), o = E.value.map((e) => e.id), s = a.indexOf(
|
|
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 = [];
|
|
1102
1108
|
if (n.forEach((e, t) => {
|
|
1103
1109
|
e.forEach((e, n) => {
|
|
1104
1110
|
let i = a[s + t], u = o[c + n];
|
|
@@ -1107,11 +1113,11 @@ var St = (e) => {
|
|
|
1107
1113
|
if (!d || !f || P(d, f)) return;
|
|
1108
1114
|
let p;
|
|
1109
1115
|
try {
|
|
1110
|
-
p = f.parse ? f.parse(e) :
|
|
1116
|
+
p = f.parse ? f.parse(e) : pe(f, e);
|
|
1111
1117
|
} catch {
|
|
1112
1118
|
return;
|
|
1113
1119
|
}
|
|
1114
|
-
let m =
|
|
1120
|
+
let m = j(i, u);
|
|
1115
1121
|
m !== p && l.push({
|
|
1116
1122
|
rowId: i,
|
|
1117
1123
|
columnId: u,
|
|
@@ -1120,16 +1126,16 @@ var St = (e) => {
|
|
|
1120
1126
|
});
|
|
1121
1127
|
});
|
|
1122
1128
|
}), l.length !== 0) {
|
|
1123
|
-
|
|
1129
|
+
Y(l);
|
|
1124
1130
|
for (let e of l) i("commit", e);
|
|
1125
1131
|
i("change", l);
|
|
1126
1132
|
}
|
|
1127
1133
|
}
|
|
1128
|
-
function
|
|
1134
|
+
function Re(e, t) {
|
|
1129
1135
|
let n = e.clientX, r = D(t), i = t.minWidth ?? 60, a = (e) => {
|
|
1130
1136
|
let a = Math.max(i, r + (e.clientX - n));
|
|
1131
|
-
|
|
1132
|
-
...
|
|
1137
|
+
_.value = {
|
|
1138
|
+
..._.value,
|
|
1133
1139
|
[t.id]: a
|
|
1134
1140
|
};
|
|
1135
1141
|
}, o = () => {
|
|
@@ -1137,19 +1143,19 @@ var St = (e) => {
|
|
|
1137
1143
|
};
|
|
1138
1144
|
window.addEventListener("mousemove", a), window.addEventListener("mouseup", o);
|
|
1139
1145
|
}
|
|
1140
|
-
function
|
|
1141
|
-
e.sortable && (
|
|
1146
|
+
function ze(e) {
|
|
1147
|
+
e.sortable && (v.value?.columnId === e.id ? v.value = v.value.direction === "asc" ? {
|
|
1142
1148
|
columnId: e.id,
|
|
1143
1149
|
direction: "desc"
|
|
1144
|
-
} : null :
|
|
1150
|
+
} : null : v.value = {
|
|
1145
1151
|
columnId: e.id,
|
|
1146
1152
|
direction: "asc"
|
|
1147
1153
|
});
|
|
1148
1154
|
}
|
|
1149
|
-
function
|
|
1155
|
+
function Y(e) {
|
|
1150
1156
|
T.value.push(e), le.value = [];
|
|
1151
1157
|
}
|
|
1152
|
-
function
|
|
1158
|
+
function X() {
|
|
1153
1159
|
let e = T.value.pop();
|
|
1154
1160
|
if (!e) return;
|
|
1155
1161
|
let t = e.map((e) => ({
|
|
@@ -1167,53 +1173,53 @@ var St = (e) => {
|
|
|
1167
1173
|
i("change", e), T.value.push(e);
|
|
1168
1174
|
}
|
|
1169
1175
|
}
|
|
1170
|
-
return
|
|
1176
|
+
return ee(() => {
|
|
1171
1177
|
z();
|
|
1172
1178
|
}), t({
|
|
1173
1179
|
focus: (e, t) => R(e, t),
|
|
1174
|
-
undo:
|
|
1180
|
+
undo: X,
|
|
1175
1181
|
redo: Be,
|
|
1176
|
-
getSelection: () =>
|
|
1177
|
-
}), (t, n) => (h(),
|
|
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", {
|
|
1178
1184
|
ref_key: "scrollerRef",
|
|
1179
|
-
ref:
|
|
1185
|
+
ref: a,
|
|
1180
1186
|
class: "nb-spreadsheet__scroller",
|
|
1181
1187
|
tabindex: "0",
|
|
1182
|
-
onKeydown:
|
|
1183
|
-
onCopy:
|
|
1184
|
-
onCut:
|
|
1185
|
-
onPaste:
|
|
1186
|
-
onScroll:
|
|
1187
|
-
}, [
|
|
1188
|
+
onKeydown: W,
|
|
1189
|
+
onCopy: Fe,
|
|
1190
|
+
onCut: Ie,
|
|
1191
|
+
onPaste: Le,
|
|
1192
|
+
onScroll: U
|
|
1193
|
+
}, [u("div", {
|
|
1188
1194
|
class: "nb-spreadsheet__grid",
|
|
1189
|
-
style:
|
|
1195
|
+
style: m(ue.value)
|
|
1190
1196
|
}, [
|
|
1191
|
-
e.showGutter ? (h(),
|
|
1192
|
-
(h(!0),
|
|
1197
|
+
e.showGutter ? (h(), l("div", kt)) : c("", !0),
|
|
1198
|
+
(h(!0), l(o, null, te(E.value, (t, n) => (h(), l("div", {
|
|
1193
1199
|
key: `h-${t.id}`,
|
|
1194
|
-
class:
|
|
1195
|
-
style:
|
|
1196
|
-
onClick: (e) =>
|
|
1200
|
+
class: p(["nb-spreadsheet__header", I(t)]),
|
|
1201
|
+
style: m(_e(t, n)),
|
|
1202
|
+
onClick: (e) => ze(t)
|
|
1197
1203
|
}, [
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
e.resizable ? (h(),
|
|
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", {
|
|
1201
1207
|
key: 1,
|
|
1202
1208
|
class: "nb-spreadsheet__resize-handle",
|
|
1203
|
-
onMousedown:
|
|
1204
|
-
}, null, 40,
|
|
1205
|
-
], 14,
|
|
1206
|
-
(h(!0),
|
|
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", {
|
|
1207
1213
|
key: 0,
|
|
1208
|
-
class:
|
|
1214
|
+
class: p(["nb-spreadsheet__gutter", {
|
|
1209
1215
|
"nb-spreadsheet__gutter--pinned-top": t.pinned === "top",
|
|
1210
1216
|
"nb-spreadsheet__gutter--pinned-bottom": t.pinned === "bottom"
|
|
1211
1217
|
}]),
|
|
1212
|
-
style:
|
|
1213
|
-
},
|
|
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", {
|
|
1214
1220
|
key: `c-${t.id}-${e.id}`,
|
|
1215
|
-
class:
|
|
1216
|
-
style:
|
|
1221
|
+
class: p(["nb-spreadsheet__cell", me(t, e)]),
|
|
1222
|
+
style: m(ve(t, e, r)),
|
|
1217
1223
|
title: F(t, e),
|
|
1218
1224
|
"data-cell": `${t.id}::${e.id}`,
|
|
1219
1225
|
"data-row": t.id,
|
|
@@ -1222,28 +1228,28 @@ var St = (e) => {
|
|
|
1222
1228
|
onMousedown: (n) => Ce(n, t, e),
|
|
1223
1229
|
onMouseenter: (n) => we(t, e),
|
|
1224
1230
|
onDblclick: (n) => Ee(t, e)
|
|
1225
|
-
}, [
|
|
1226
|
-
], 4),
|
|
1231
|
+
}, [u("span", null, re(N(t, e)), 1)], 46, Pt))), 128))], 64))), 128))
|
|
1232
|
+
], 4), x.value ? oe((h(), l("input", {
|
|
1227
1233
|
key: 0,
|
|
1228
1234
|
ref_key: "editorRef",
|
|
1229
|
-
ref:
|
|
1230
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
1235
|
+
ref: d,
|
|
1236
|
+
"onUpdate:modelValue": n[1] ||= (e) => x.value.draft = e,
|
|
1231
1237
|
class: "nb-spreadsheet__editor",
|
|
1232
|
-
style:
|
|
1238
|
+
style: m(Ne.value),
|
|
1233
1239
|
inputmode: Me.value,
|
|
1234
1240
|
enterkeyhint: "next",
|
|
1235
|
-
onBlur: n[2] ||= (e) =>
|
|
1236
|
-
onKeydown:
|
|
1237
|
-
}, null, 44,
|
|
1241
|
+
onBlur: n[2] ||= (e) => K(!1),
|
|
1242
|
+
onKeydown: se(Pe, ["stop"])
|
|
1243
|
+
}, null, 44, Ft)), [[ae, x.value.draft]]) : c("", !0)], 544)], 2));
|
|
1238
1244
|
}
|
|
1239
|
-
}),
|
|
1240
|
-
Object.keys(
|
|
1241
|
-
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r =
|
|
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];
|
|
1242
1248
|
e.component(n, r.default);
|
|
1243
1249
|
});
|
|
1244
|
-
} },
|
|
1250
|
+
} }, Ut = { install(e, t = {}) {
|
|
1245
1251
|
if (t.components) for (let [n, r] of Object.entries(t.components)) e.component(n, r);
|
|
1246
|
-
e.use(
|
|
1252
|
+
e.use(Tt), e.use(Et);
|
|
1247
1253
|
} };
|
|
1248
1254
|
//#endregion
|
|
1249
|
-
export {
|
|
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 };
|