@nubisco/ui 5.23.0 → 5.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AiLabel-BMeJMSLm.cjs +1 -0
- package/dist/{AiLabel-DoXGg3-4.js → AiLabel-CGxUTm-X.js} +23 -10
- package/dist/AiProvider-BVT_8D6a.js +137 -0
- package/dist/AiProvider-BXWMTzi9.cjs +1 -0
- package/dist/AiUsage-CCMQdmZv.cjs +1 -0
- package/dist/AiUsage-q_WU2toP.js +74 -0
- package/dist/{Banner-BrN9hmXi.cjs → Banner-DQyHNDEP.cjs} +1 -1
- package/dist/{Banner-Bm2Hu1ei.js → Banner-r_cdQAMp.js} +4 -4
- package/dist/{BarChart-Cw-mjG2w.cjs → BarChart-CV1GzXgj.cjs} +1 -1
- package/dist/{BarChart-Bhwk1RAA.js → BarChart-DWH40Q0_.js} +4 -4
- package/dist/{Blueprint-zatuYikO.js → Blueprint-CQ0UBrND.js} +2 -2
- package/dist/{Blueprint-ibYR8trh.cjs → Blueprint-DxHaLr4P.cjs} +1 -1
- package/dist/{BlueprintCard-tVKffeYj.js → BlueprintCard-BpVITfop.js} +1 -1
- package/dist/{BlueprintCard-C-_y2p7z.cjs → BlueprintCard-ndSnIVKE.cjs} +1 -1
- package/dist/Briefing-B_D0X4pk.cjs +1 -0
- package/dist/Briefing-Ce2nPMi-.js +90 -0
- package/dist/BriefingDestination-CA8Dv-tJ.js +67 -0
- package/dist/BriefingDestination-DIXsBoE2.cjs +1 -0
- package/dist/{Checkbox-D2biuKfO.js → Checkbox-B3gBM6xy.js} +1 -1
- package/dist/{Checkbox-CD3ermir.cjs → Checkbox-lWejJzIQ.cjs} +1 -1
- package/dist/{CheckboxGroup-BzbVl8nN.cjs → CheckboxGroup-OKmBXLpx.cjs} +1 -1
- package/dist/{CheckboxGroup-BfmY55qm.js → CheckboxGroup-VqnA0eDK.js} +3 -3
- package/dist/{ColorStrip-CETVgwOW.cjs → ColorStrip-COhVH__l.cjs} +1 -1
- package/dist/{ColorStrip-g8nh1jkS.js → ColorStrip-c5l3AF0f.js} +14 -14
- package/dist/Confirm--cR6XRZQ.cjs +1 -0
- package/dist/Confirm-CHsxP6G_.js +313 -0
- package/dist/{DataTable-NBxBft5e.js → DataTable-COfiHgll.js} +2 -2
- package/dist/{DataTable-DWhnqBfu.cjs → DataTable-XSEybeeP.cjs} +1 -1
- package/dist/{DatePicker-CjxX5dia.cjs → DatePicker-DIdEzzsG.cjs} +1 -1
- package/dist/{DatePicker-C4g1DKZM.js → DatePicker-ZiWlM0Ee.js} +13 -13
- package/dist/{EmptyState-v_HI2o5s.js → EmptyState-63UqLFX6.js} +6 -6
- package/dist/{EmptyState-CEF56DXZ.cjs → EmptyState-CV-UfKR6.cjs} +1 -1
- package/dist/{Form-BXDKsJ1K.js → Form-2pXj4bhZ.js} +1 -1
- package/dist/{Form-DRxMVH6e.cjs → Form-CYesmztD.cjs} +1 -1
- package/dist/{GanttChart-B4PpjMj8.js → GanttChart-BTvjVa_d.js} +3 -3
- package/dist/{GanttChart-AMo8afU4.cjs → GanttChart-owqg5s-X.cjs} +1 -1
- package/dist/{ImageCropper-COX8b_KG.js → ImageCropper-CLyH3zZ-.js} +2 -2
- package/dist/{ImageCropper-Bcn4SsHm.cjs → ImageCropper-DAU0ddvI.cjs} +1 -1
- package/dist/{InlineLoading-DG7zyg55.js → InlineLoading-uGDGiTNv.js} +1 -1
- package/dist/{InlineLoading-BeYsf8lq.cjs → InlineLoading-w5XKQdGi.cjs} +1 -1
- package/dist/{InterpolationChart-BqVI7kwt.js → InterpolationChart-Bt3_BiHO.js} +3 -3
- package/dist/{InterpolationChart-4Di4G6uT.cjs → InterpolationChart-C2MFUf1D.cjs} +1 -1
- package/dist/{LineChart-CVUyH2vB.js → LineChart-BE5DVpYZ.js} +4 -4
- package/dist/{LineChart-BqIUGiO6.cjs → LineChart-Dt7wwxeW.cjs} +1 -1
- package/dist/{Message-CVzG-irA.js → Message-Cecz48PA.js} +4 -4
- package/dist/{Message-CjM5AAf0.cjs → Message-VfpaGblO.cjs} +1 -1
- package/dist/{Modal-gXKbarBf.js → Modal-CfcTmfeK.js} +1 -1
- package/dist/{Modal-qkDiK_C0.cjs → Modal-CtCD-xEb.cjs} +1 -1
- package/dist/{NotificationCenter-JFM6_Ggx.cjs → NotificationCenter-CGhxyax1.cjs} +1 -1
- package/dist/{NotificationCenter-3JCb8YI6.js → NotificationCenter-xL9_6BMt.js} +8 -8
- package/dist/{NotificationCenterItem-OEnjTlKV.cjs → NotificationCenterItem-C8zaSiem.cjs} +1 -1
- package/dist/{NotificationCenterItem-BDs9lzyK.js → NotificationCenterItem-CdzyTsCY.js} +4 -4
- package/dist/{NumberInput-DkkDXVfS.cjs → NumberInput-BtPQ7p5y.cjs} +1 -1
- package/dist/{NumberInput-BjtbP8wl.js → NumberInput-Dk8ofnNJ.js} +2 -2
- package/dist/{Pagination-vp1a1H76.js → Pagination-CSISbmpl.js} +1 -1
- package/dist/{Pagination-CiWTdOAg.cjs → Pagination-Ci1te4UW.cjs} +1 -1
- package/dist/{PieChart-cZ-uE8G0.js → PieChart-CQBJlBJI.js} +3 -3
- package/dist/{PieChart-BlFXpFAd.cjs → PieChart-DjFeDqdk.cjs} +1 -1
- package/dist/{ProgressBar-npqsbewE.js → ProgressBar-B2EXpOdC.js} +2 -2
- package/dist/{ProgressBar-B0UJSzzq.cjs → ProgressBar-D1O4iAxy.cjs} +1 -1
- package/dist/{Radio-cOifhSnr.cjs → Radio-DALC1A47.cjs} +1 -1
- package/dist/{Radio-Dl8WIbWc.js → Radio-fgJU2hwQ.js} +2 -2
- package/dist/{Select-C9DHfvVU.cjs → Select-CHuZfqLt.cjs} +1 -1
- package/dist/{Select-VG4y8qie.js → Select-CwO5aX8j.js} +22 -22
- package/dist/{SidebarCollapseToggle-DI45UmqY.js → SidebarCollapseToggle-CA6wQR0x.js} +2 -2
- package/dist/{SidebarCollapseToggle-DjUVy9hz.cjs → SidebarCollapseToggle-Cs4Azqiy.cjs} +1 -1
- package/dist/{Skeleton-De2o3-AO.js → Skeleton-Ba4m2jYi.js} +1 -1
- package/dist/{Skeleton-BUGvuSkQ.cjs → Skeleton-Bgo6pIY2.cjs} +1 -1
- package/dist/{Slider-DHdSeEex.js → Slider-BAhq6cJT.js} +10 -10
- package/dist/{Slider-DYIK46yw.cjs → Slider-BK5yS7Ih.cjs} +1 -1
- package/dist/{Spinner-7NpSM5DH.js → Spinner-BxnDJP1H.js} +1 -1
- package/dist/{Spinner-9ZIqaEbc.cjs → Spinner-swPRQ7kf.cjs} +1 -1
- package/dist/{Stepper-CeHPtQYu.js → Stepper-BH7RO00M.js} +1 -1
- package/dist/{Stepper-D6BPZujQ.cjs → Stepper-Da0Ba3PE.cjs} +1 -1
- package/dist/{StepperStep-4fcnVxew.cjs → StepperStep-CI482bzO.cjs} +1 -1
- package/dist/{StepperStep-DxA3iYZn.js → StepperStep-CLd8c1dj.js} +1 -1
- package/dist/{Switch-fe5gLkaC.js → Switch-DS297b1b.js} +4 -4
- package/dist/{Switch-CZno7eXw.cjs → Switch-a73y1wiu.cjs} +1 -1
- package/dist/{Tabs-T2vG1Mk0.js → Tabs-BzsQiQ2H.js} +1 -1
- package/dist/{Tabs-DfX22yn7.cjs → Tabs-D3daz-Xc.cjs} +1 -1
- package/dist/{TextInput-Vt5yOO6_.cjs → TextInput-BkCOQWfT.cjs} +2 -2
- package/dist/{TextInput-E5ZF9zwv.js → TextInput-Kt2ciMVI.js} +7 -7
- package/dist/{Toast-DnTF5Sjd.js → Toast-CeGAznEA.js} +8 -8
- package/dist/{Toast-CGwURAq3.cjs → Toast-Ci4P6mM0.cjs} +1 -1
- package/dist/{Toaster-CZ0TU1xS.cjs → Toaster-Cit4iNYG.cjs} +1 -1
- package/dist/{Toaster-I6fzB0nO.js → Toaster-zIdIFToW.js} +1 -1
- package/dist/{Tree-BLMOAVP2.cjs → Tree-BiqO99_n.cjs} +1 -1
- package/dist/{Tree-BLhTIpyZ.js → Tree-ZtXPSE7w.js} +1 -1
- package/dist/{TreeNode-BpcD9KRb.cjs → TreeNode-BcVuy7zd.cjs} +1 -1
- package/dist/{TreeNode-De6nqmBE.js → TreeNode-HVTTXuRl.js} +1 -1
- package/dist/{UserMenu-C4SoJOF7.js → UserMenu-DuAQ0yne.js} +2 -2
- package/dist/{UserMenu-Cq2dws0F.cjs → UserMenu-FhWFKqzy.cjs} +1 -1
- package/dist/Video-Bgzvf-C9.cjs +1 -0
- package/dist/Video-CY0UEDLL.js +103 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +235 -225
- package/dist/component-styles.json +34 -0
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.d.ts +8 -0
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiLabel.vue.d.ts +2 -0
- package/dist/components/AiLabel.vue.d.ts.map +1 -1
- package/dist/components/AiProvider.cjs +1 -0
- package/dist/components/AiProvider.d.ts +29 -0
- package/dist/components/AiProvider.mjs +2 -0
- package/dist/components/AiProvider.vue.d.ts +36 -0
- package/dist/components/AiProvider.vue.d.ts.map +1 -0
- package/dist/components/AiUsage.cjs +1 -0
- package/dist/components/AiUsage.d.ts +29 -0
- package/dist/components/AiUsage.mjs +2 -0
- package/dist/components/AiUsage.vue.d.ts +28 -0
- package/dist/components/AiUsage.vue.d.ts.map +1 -0
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/Avatar.vue.d.ts +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -0
- package/dist/components/Briefing.d.ts +22 -0
- package/dist/components/Briefing.mjs +2 -0
- package/dist/components/Briefing.vue.d.ts +36 -0
- package/dist/components/Briefing.vue.d.ts.map +1 -0
- package/dist/components/BriefingDestination.cjs +1 -0
- package/dist/components/BriefingDestination.d.ts +16 -0
- package/dist/components/BriefingDestination.mjs +2 -0
- package/dist/components/BriefingDestination.vue.d.ts +25 -0
- package/dist/components/BriefingDestination.vue.d.ts.map +1 -0
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Calendar.vue.d.ts +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +3 -3
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/EmptyState.cjs +1 -1
- package/dist/components/EmptyState.mjs +1 -1
- package/dist/components/Field.cjs +1 -1
- package/dist/components/Field.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Flag.cjs +1 -1
- package/dist/components/Flag.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/Grid.cjs +1 -1
- package/dist/components/Grid.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/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/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NubiscoMark.cjs +1 -1
- package/dist/components/NubiscoMark.mjs +1 -1
- package/dist/components/NubiscoPlatformMark.cjs +1 -1
- package/dist/components/NubiscoPlatformMark.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Slider.vue.d.ts +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/TableOfContents.vue.d.ts +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +2 -2
- 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/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/Video.cjs +1 -0
- package/dist/components/Video.d.ts +32 -0
- package/dist/components/Video.mjs +2 -0
- package/dist/components/Video.vue.d.ts +19 -0
- package/dist/components/Video.vue.d.ts.map +1 -0
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +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.mjs +3 -3
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/global.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +108 -103
- package/dist/main.d.ts +10 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AiLabel.css +1 -1
- package/dist/styles/AiProvider.css +1 -0
- package/dist/styles/AiUsage.css +1 -0
- package/dist/styles/Briefing.css +1 -0
- package/dist/styles/BriefingDestination.css +1 -0
- package/dist/styles/Video.css +1 -0
- package/dist/ui.css +14 -9
- package/package.json +1 -1
- package/dist/AiLabel-DFLG_lcX.cjs +0 -1
- package/dist/Confirm-BOyOJhjk.cjs +0 -1
- package/dist/Confirm-HGQclXDP.js +0 -313
- /package/dist/{Avatar-4BWmDFhO.js → Avatar-BibgBZuN.js} +0 -0
- /package/dist/{Avatar-BqiwSWeV.cjs → Avatar-BpPczEa8.cjs} +0 -0
- /package/dist/{Badge-CLgaADV-.cjs → Badge-D6nlcs4F.cjs} +0 -0
- /package/dist/{Badge-BH8qD-w8.js → Badge-DJx3RZxk.js} +0 -0
- /package/dist/{Blueprint.context-DJlWgsYP.js → Blueprint.context-BU2ujsDD.js} +0 -0
- /package/dist/{Blueprint.context-NJ6BfRCc.cjs → Blueprint.context-DjbRPuLQ.cjs} +0 -0
- /package/dist/{BlueprintBackground-BvuDpQUE.cjs → BlueprintBackground-D5i-Rlmm.cjs} +0 -0
- /package/dist/{BlueprintBackground-soZH2kxW.js → BlueprintBackground-DtGJCzDy.js} +0 -0
- /package/dist/{BlueprintControls-DWy8LEjL.cjs → BlueprintControls-BfTyqOwC.cjs} +0 -0
- /package/dist/{BlueprintControls-CIWV3aUi.js → BlueprintControls-COeG8N6G.js} +0 -0
- /package/dist/{BlueprintMinimap-BAXb_TXv.cjs → BlueprintMinimap-CujSRNvs.cjs} +0 -0
- /package/dist/{BlueprintMinimap-C9VkLKru.js → BlueprintMinimap-xwEOZlv6.js} +0 -0
- /package/dist/{Board-B_sqwxsN.cjs → Board-DmOzimbT.cjs} +0 -0
- /package/dist/{Board-nGnQkqJb.js → Board-R38Zb5t2.js} +0 -0
- /package/dist/{BottomPanel-hpH8K_gE.cjs → BottomPanel-Cpr7_cZI.cjs} +0 -0
- /package/dist/{BottomPanel-DStt1Vs4.js → BottomPanel-DdjpIyOA.js} +0 -0
- /package/dist/{Breadcrumbs-CRlWYf7S.js → Breadcrumbs-B0nEpUik.js} +0 -0
- /package/dist/{Breadcrumbs-Bw5LdW9D.cjs → Breadcrumbs-B8zyUzRM.cjs} +0 -0
- /package/dist/{Calendar-D-iSzX4T.cjs → Calendar-BPYKfErK.cjs} +0 -0
- /package/dist/{Calendar-CJd9UzLq.js → Calendar-C2KlJvo5.js} +0 -0
- /package/dist/{ChartLegend-C8_vklRf.js → ChartLegend-BtBKVnH3.js} +0 -0
- /package/dist/{ChartLegend-CTqPJ52N.cjs → ChartLegend-ndpGucTZ.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-CkKGdHsl.js → CheckboxGroup.context-B2qjPnB2.js} +0 -0
- /package/dist/{CheckboxGroup.context-DhlbQL2R.cjs → CheckboxGroup.context-DyFYVLH1.cjs} +0 -0
- /package/dist/{CommandPalette-X6RmB4AN.js → CommandPalette-CU8gkgTx.js} +0 -0
- /package/dist/{CommandPalette-CsaLt1R0.cjs → CommandPalette-zmNIqPex.cjs} +0 -0
- /package/dist/{DefinitionList-BM-83VTW.cjs → DefinitionList-COgbbyRS.cjs} +0 -0
- /package/dist/{DefinitionList-YSgdnnMD.js → DefinitionList-Xn-f_QhT.js} +0 -0
- /package/dist/{DefinitionListItem-Dx3z7niO.cjs → DefinitionListItem-B4bGJJJj.cjs} +0 -0
- /package/dist/{DefinitionListItem-DfTl4VTm.js → DefinitionListItem-ZRjLrhaI.js} +0 -0
- /package/dist/{DragHandle-Cl1rSe84.js → DragHandle-BbgSL4IW.js} +0 -0
- /package/dist/{DragHandle-BMjDksUb.cjs → DragHandle-bosa6iXA.cjs} +0 -0
- /package/dist/{Field-CMrrREJP.cjs → Field-DznERREe.cjs} +0 -0
- /package/dist/{Field-CWWJjU4A.js → Field-LiiMobFy.js} +0 -0
- /package/dist/{FileUploader-DVfw_iVE.cjs → FileUploader-BjYXOXxj.cjs} +0 -0
- /package/dist/{FileUploader-Crnkbwdg.js → FileUploader-DwKKUn71.js} +0 -0
- /package/dist/{Flag-Bx77nh4D.cjs → Flag-C326U1pM.cjs} +0 -0
- /package/dist/{Flag-COoTVYvu.js → Flag-DBHUM-oa.js} +0 -0
- /package/dist/{FloatingToolbar-2g0n78b0.js → FloatingToolbar-B_VISp4J.js} +0 -0
- /package/dist/{FloatingToolbar-DOfQyN7V.cjs → FloatingToolbar-CMYR7_b_.cjs} +0 -0
- /package/dist/{Grid-By_NqGWQ.cjs → Grid-D8c0StGs.cjs} +0 -0
- /package/dist/{Grid-BF4ObsbF.js → Grid-XtnH-vr_.js} +0 -0
- /package/dist/{InlineEdit-B_TZfaak.cjs → InlineEdit-BLrO3i1p.cjs} +0 -0
- /package/dist/{InlineEdit-c-jnDfer.js → InlineEdit-BemWhcI3.js} +0 -0
- /package/dist/{JsonTree-jLmyvqsZ.cjs → JsonTree-B3TskapA.cjs} +0 -0
- /package/dist/{JsonTree-leNZr45t.js → JsonTree-DzEsyR3A.js} +0 -0
- /package/dist/{Label-CR6g53gz.cjs → Label-CVCNXFn1.cjs} +0 -0
- /package/dist/{Label-DkdjCPeM.js → Label-ciCAG21-.js} +0 -0
- /package/dist/{Layer-cO7jQG6U.cjs → Layer-BRDO-CDw.cjs} +0 -0
- /package/dist/{Layer-DS-wr0D3.js → Layer-DsNOdX44.js} +0 -0
- /package/dist/{MenuBar-BnlOWZPx.js → MenuBar-BTSnSFvG.js} +0 -0
- /package/dist/{MenuBar-DaaelTAt.cjs → MenuBar-CFCpmpU7.cjs} +0 -0
- /package/dist/{MenuBarItem-DWb13-47.js → MenuBarItem-C7TPhYnN.js} +0 -0
- /package/dist/{MenuBarItem-C8spcn8y.cjs → MenuBarItem-D1LSKPxk.cjs} +0 -0
- /package/dist/{MenuDivider-DdDKDtsl.js → MenuDivider-BosPmiMO.js} +0 -0
- /package/dist/{MenuDivider-Ct38QgRf.cjs → MenuDivider-kpF-fk4u.cjs} +0 -0
- /package/dist/{NubiscoMark-Dvwu7mri.cjs → NubiscoMark-D4-pm2EX.cjs} +0 -0
- /package/dist/{NubiscoMark-DTPsWWI3.js → NubiscoMark-DgzvBHAd.js} +0 -0
- /package/dist/{NubiscoPlatformMark-COQnCydq.js → NubiscoPlatformMark-CayXaZGB.js} +0 -0
- /package/dist/{NubiscoPlatformMark-D2sQvlRb.cjs → NubiscoPlatformMark-DV2XeqiT.cjs} +0 -0
- /package/dist/{Panel-DONvL22y.js → Panel-Drfi9pqS.js} +0 -0
- /package/dist/{Panel-BWrUUlqX.cjs → Panel-valtWFWI.cjs} +0 -0
- /package/dist/{ReorderList-DlO13mZ8.js → ReorderList-BDLxDc6t.js} +0 -0
- /package/dist/{ReorderList-DaDY714T.cjs → ReorderList-BdHgEL4G.cjs} +0 -0
- /package/dist/{Shell-O5pHuqN_.cjs → Shell-6Dwl2FnC.cjs} +0 -0
- /package/dist/{Shell-BzWJG-uL.js → Shell-C9DK_Phw.js} +0 -0
- /package/dist/{ShellPanel-CaR2MkUx.js → ShellPanel-Cu3C3H9J.js} +0 -0
- /package/dist/{ShellPanel-BM1gd95L.cjs → ShellPanel-rrSF7BQs.cjs} +0 -0
- /package/dist/{SidebarBrand-8ps0KBdX.js → SidebarBrand-Ba6QIT1v.js} +0 -0
- /package/dist/{SidebarBrand-B9rpbPxq.cjs → SidebarBrand-BqSqQNPa.cjs} +0 -0
- /package/dist/{SidebarLink-fVVOKQD0.cjs → SidebarLink-BbzeT8Tq.cjs} +0 -0
- /package/dist/{SidebarLink-C1pnidb4.js → SidebarLink-Bi8GxvCf.js} +0 -0
- /package/dist/{SidebarMenu-CEolzMXZ.cjs → SidebarMenu-B4nng5Fz.cjs} +0 -0
- /package/dist/{SidebarMenu-BjF3NvGH.js → SidebarMenu-DoMgZO7c.js} +0 -0
- /package/dist/{SidebarMenuGroup-dknJHzxm.cjs → SidebarMenuGroup-BdOpz4N1.cjs} +0 -0
- /package/dist/{SidebarMenuGroup-BlB0bOcI.js → SidebarMenuGroup-CmCPtZJD.js} +0 -0
- /package/dist/{SidebarMenuItem-CCTidU1S.js → SidebarMenuItem-CWXKdUTX.js} +0 -0
- /package/dist/{SidebarMenuItem-CQqfWh7S.cjs → SidebarMenuItem-j21WVpId.cjs} +0 -0
- /package/dist/{Sparkline-D_TEhqXT.js → Sparkline-C4gA55Pc.js} +0 -0
- /package/dist/{Sparkline-8cu1otPs.cjs → Sparkline-DI7arXX0.cjs} +0 -0
- /package/dist/{Stepper.context-BIH2Xxbz.cjs → Stepper.context-Dxw8xYGX.cjs} +0 -0
- /package/dist/{Stepper.context-oquO9zUG.js → Stepper.context-q_CjX3CO.js} +0 -0
- /package/dist/{Submenu-B4VJgQkD.cjs → Submenu-CpNOHf-e.cjs} +0 -0
- /package/dist/{Submenu-B5KWJqKM.js → Submenu-DKpL5htf.js} +0 -0
- /package/dist/{TableOfContents-8CjpfWzI.js → TableOfContents-BqF5y-1t.js} +0 -0
- /package/dist/{TableOfContents-CtvYaZ2u.cjs → TableOfContents-C6xx7P4d.cjs} +0 -0
- /package/dist/{TreeContext-DwdiIf4U.cjs → TreeContext-we7Xt7IP.cjs} +0 -0
- /package/dist/{TreeContext-Dp3oUJn9.js → TreeContext-xtlNBGhB.js} +0 -0
- /package/dist/{Walkthrough-CGm8NO74.js → Walkthrough-KmxZqXxV.js} +0 -0
- /package/dist/{Walkthrough-DIyx12uH.cjs → Walkthrough-oU-NaG_A.cjs} +0 -0
- /package/dist/{Wireframe-C3XXG-B0.js → Wireframe-Bf55dFWu.js} +0 -0
- /package/dist/{Wireframe-BuEFZ0XB.cjs → Wireframe-CX8KvGJx.cjs} +0 -0
- /package/dist/{palette-0LscvyqA.cjs → palette-BoABA-De.cjs} +0 -0
- /package/dist/{palette-CxPgs-Dn.js → palette-VMXxKICH.js} +0 -0
- /package/dist/{pixi-scene-BkSfcgZb.js → pixi-scene-D57Y3MvT.js} +0 -0
- /package/dist/{pixi-scene-BYuWUsaY.cjs → pixi-scene-OOSMyGKD.cjs} +0 -0
- /package/dist/{scales-CFWdZe1z.cjs → scales-BWtB8m5D.cjs} +0 -0
- /package/dist/{scales-DMlq1jQZ.js → scales-DVJzRU1F.js} +0 -0
- /package/dist/{useChartSize-C8SNfQZL.cjs → useChartSize-D9UxUkiU.cjs} +0 -0
- /package/dist/{useChartSize-Dbm1f8au.js → useChartSize-Dyh37PYP.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-mJtCLHld.cjs → useLoadingAnnouncer.composable-BMMz4C1C.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-Cq9qioBv.js → useLoadingAnnouncer.composable-DY8jGEwJ.js} +0 -0
- /package/dist/{vue-i18n-CYAt-t4N.cjs → vue-i18n-B_5xehV9.cjs} +0 -0
- /package/dist/{vue-i18n-D5xWp3Q8.js → vue-i18n-Dzm-MDw4.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Blueprint.context-NJ6BfRCc.cjs`);let r=require(`vue`);var i=[`data-card-id`,`aria-label`],a={class:`nb-blueprint-card__ports nb-blueprint-card__ports--left`},o=[`title`],s=[`title`,`aria-label`,`onMousedown`,`onMouseup`,`onKeydown`],c=[`data-port`,`data-port-data-type`],l={key:0,class:`nb-blueprint-card__port-label`},u={class:`nb-blueprint-card__inner`},d={class:`nb-blueprint-card__body`},f={class:`nb-blueprint-card__header`},p=[`title`,`aria-label`,`aria-expanded`],m={class:`nb-blueprint-card__title-group`},h={class:`nb-blueprint-card__name`},g={key:0,class:`nb-blueprint-card__tag`},_=[`aria-label`],v=[`checked`,`aria-label`],ee=[`aria-label`],te={key:0,class:`nb-blueprint-card__preview`},ne={key:1,class:`nb-blueprint-card__params`},re={class:`nb-blueprint-card__row-label`},ie={class:`nb-blueprint-card__row-value`},ae={key:0,class:`nb-blueprint-card__row-unit`},oe={key:2,class:`nb-blueprint-card__content`},se={class:`nb-blueprint-card__ports nb-blueprint-card__ports--right`},ce=[`title`],le=[`title`,`aria-label`,`onMousedown`,`onMouseup`,`onKeydown`],ue=[`data-port`,`data-port-data-type`],de={key:0,class:`nb-blueprint-card__port-label`},fe=320,pe=1,me=10,y=(0,r.defineComponent)({__name:`BlueprintCard`,props:{id:{},title:{},color:{default:void 0},enabled:{type:Boolean,default:!0},selected:{type:Boolean,default:!1},category:{default:``},ports:{default:()=>[]},connectedPorts:{default:()=>[]},activePorts:{default:()=>[]},x:{default:0},y:{default:0},removable:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},status:{default:`none`},preview:{default:``},parameters:{default:()=>[]},showPortLabels:{type:[String,Boolean],default:!1},portLevels:{default:()=>({})},density:{default:void 0}},emits:[`select`,`toggle`,`remove`,`toggle-collapse`,`port-mousedown`,`port-mouseup`],setup(t,{emit:y}){let b=t,x=y,S=(0,r.inject)(n.t,null);function C(e){x(`port-mousedown`,e),S?.onPortDown(e)}function w(e){x(`port-mouseup`,e),S?.onPortUp(e)}function T(e){S?.dragOrigin?.value?w(e):C(e)}function E(e,t){if(e.key===`Enter`||e.key===` `){e.preventDefault(),e.stopPropagation(),T(t);return}e.key===`Escape`&&S?.dragOrigin?.value&&(e.preventDefault(),e.stopPropagation(),S.cancelPortDrag?.())}let D=(0,r.computed)(()=>b.density??S?.density?.value??`default`),O=(0,r.computed)(()=>!!S?.dragOrigin?.value);function k(e,t){return!e||!t||e===`any`||t===`any`||e===t?!0:e.split(`:`)[0]===t.split(`:`)[0]}function A(e,t){let n=S?.dragOrigin?.value;return!n||n.nodeId===b.id&&n.portId===e.portId?!1:n.nodeId!==b.id&&n.type!==t&&k(n.dataType,e.port.dataType)?`nb-blueprint-card__port--target-valid`:`nb-blueprint-card__port--target-invalid`}let j=e.useReducedMotion(),M=(0,r.ref)(new Set),N=new Map;(0,r.watch)(()=>b.activePorts,(e,t)=>{if(j.value)return;let n=new Set(t??[]);for(let t of e??[])n.has(t)||(M.value=new Set(M.value).add(t),clearTimeout(N.get(t)),N.set(t,setTimeout(()=>{let e=new Set(M.value);e.delete(t),M.value=e,N.delete(t)},fe)))},{deep:!0}),(0,r.onScopeDispose)(()=>{for(let e of N.values())clearTimeout(e);N.clear()});function P(e){return typeof b.portLevels?.[e]==`number`}function F(e){let t={"--pin-color":Ee(e.port)},n=b.portLevels?.[e.portId];return typeof n==`number`&&(t[`--pin-level`]=`${(Math.max(0,Math.min(1,n))*100).toFixed(1)}%`),t}let I={valid:`Valid`,warning:`Warning`,error:`Error`};function L(e,t){let n=K(e.portId)?`connected`:`not connected`;return`${J(e)}, ${t}, ${n}`}let R=(0,r.computed)(()=>{let e=[b.title];return b.category&&e.push(b.category),b.status&&b.status!==`none`&&e.push(I[b.status]),e.push(b.enabled?`enabled`:`disabled`),e.join(`, `)}),z={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]};function he(e){let t=z[e.key];if(!t||!S?.nudge)return;e.preventDefault();let n=e.shiftKey?me:pe;S.nudge(b.id,t[0]*n,t[1]*n)}function ge(e){return e.showLabel===void 0?b.showPortLabels===`both`?!0:b.showPortLabels===`left`?e.type===`input`:b.showPortLabels===`right`?e.type===`output`:!1:e.showLabel}function B(e){let t=[];for(let n of b.ports){if(n.type!==e)continue;let r=ge(n);if(n.channels&&n.channels.length>0)for(let e of n.channels)t.push({key:`${n.id}/${e.id}`,port:n,portId:`${n.id}/${e.id}`,channel:e,showLabel:r});else t.push({key:n.id,port:n,portId:n.id,showLabel:r})}return t}let V=(0,r.computed)(()=>B(`input`)),H=(0,r.computed)(()=>B(`output`)),_e=(0,r.computed)(()=>Math.max(V.value.length,H.value.length,1)),U=(0,r.computed)(()=>({left:V.value.some(e=>e.showLabel),right:H.value.some(e=>e.showLabel)})),ve=(0,r.computed)(()=>{let e=b.category||``;return!b.enabled&&e?`${e} · off`:e}),ye=(0,r.computed)(()=>{let e=b.color;if(!e||e.startsWith(`var(`))return`rgba(139, 124, 255, 0.18)`;if(e.startsWith(`#`)&&(e.length===7||e.length===4)){let t=e.length===4?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e;return`rgba(${parseInt(t.slice(1,3),16)}, ${parseInt(t.slice(3,5),16)}, ${parseInt(t.slice(5,7),16)}, 0.18)`}return`rgba(139, 124, 255, 0.18)`}),W=(0,r.computed)(()=>new Set(b.connectedPorts)),G=(0,r.computed)(()=>new Set(b.activePorts));function K(e){return W.value.has(e)}function q(e){return G.value.has(e)}let be=(0,r.computed)(()=>V.value.some(e=>W.value.has(e.portId))),xe=(0,r.computed)(()=>V.value.some(e=>G.value.has(e.portId))),Se=(0,r.computed)(()=>H.value.some(e=>W.value.has(e.portId))),Ce=(0,r.computed)(()=>H.value.some(e=>G.value.has(e.portId)));function J(e){return e.channel?`${e.port.label} . ${e.channel.label}`:e.port.label}function Y(e){return e.channel?e.channel.label:e.port.label}let X={geometry:`#6366f1`,celestial:`#f97316`,lighting:`#f59e0b`,effect:`#a855f7`,surface:`#3b82f6`,audio:`#22c55e`,"audio:mono":`#22c55e`,"audio:stereo":`#10b981`,"audio:bus":`#059669`,midi:`#a855f7`,"midi:rechannelized":`#9333ea`,control:`#94a3b8`,entity:`#ec4899`,number:`#94a3b8`,vector3:`#38bdf8`,color:`#fb923c`,asset:`#a78bfa`,any:`#64748b`},we={geometry:`pill`,celestial:`pill`,lighting:`pill`,effect:`pill`,surface:`pill`,audio:`pill`,"audio:mono":`pill`,"audio:stereo":`pill`,"audio:bus":`pill`,midi:`pill`,"midi:rechannelized":`pill`,control:`pill`,entity:`pill`,number:`pill`,vector3:`pill`,color:`pill`,asset:`pill`,any:`pill`},Te={geometry:`analog`,celestial:`analog`,lighting:`analog`,effect:`analog`,surface:`analog`,audio:`analog`,"audio:mono":`analog`,"audio:stereo":`analog`,"audio:bus":`analog`,midi:`digital`,"midi:rechannelized":`digital`,control:`digital`,entity:`digital`,number:`analog`,vector3:`analog`,color:`digital`,asset:`digital`,any:`analog`};function Ee(e){return e.color??X[e.dataType??`any`]??X.any}function Z(e){return e.shape??we[e.dataType??`any`]??`pill`}function Q(e){return e.size??`md`}function $(e){return e.signal??Te[e.dataType??`any`]??`analog`}return(e,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)([`nb-blueprint-card`,[`nb-blueprint-card--density-${D.value}`,{"nb-blueprint-card--selected":t.selected,"nb-blueprint-card--disabled":!t.enabled,"nb-blueprint-card--collapsed":t.collapsed,"nb-blueprint-card--has-category":!!t.category,"nb-blueprint-card--has-port-labels-left":U.value.left,"nb-blueprint-card--has-port-labels-right":U.value.right,"nb-blueprint-card--dragging-wire":O.value}]]),"data-card-id":t.id,style:(0,r.normalizeStyle)({"--nb-card-color":t.color||`var(--nb-c-primary)`,"--nb-card-glow":ye.value,"--nb-blueprint-port-count":_e.value}),tabindex:`0`,role:`group`,"aria-roledescription":`Graph node`,"aria-label":R.value,onMousedown:n[7]||=n=>e.$emit(`select`,t.id),onFocus:n[8]||=n=>e.$emit(`select`,t.id),onKeydown:he},[(0,r.createElementVNode)(`div`,a,[t.collapsed&&V.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-blueprint-card__port-combined nb-blueprint-card__port-combined--left`,{"nb-blueprint-card__port-combined--connected":be.value,"nb-blueprint-card__port-combined--active":xe.value}]),title:`${V.value.length} input${V.value.length===1?``:`s`}`},null,10,o)):(0,r.createCommentVNode)(``,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(V.value,e=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.key,class:`nb-blueprint-card__port-slot`},[(0,r.createElementVNode)(`button`,{type:`button`,class:`nb-blueprint-card__port-hit`,title:J(e),"aria-label":L(e,`input`),onMousedown:(0,r.withModifiers)(n=>C({nodeId:t.id,portId:e.portId,type:`input`,dataType:e.port.dataType}),[`stop`]),onMouseup:(0,r.withModifiers)(n=>w({nodeId:t.id,portId:e.portId,type:`input`,dataType:e.port.dataType}),[`stop`]),onKeydown:n=>E(n,{nodeId:t.id,portId:e.portId,type:`input`,dataType:e.port.dataType})},[(0,r.createElementVNode)(`span`,{"data-port":`${t.id}:${e.portId}`,"data-port-data-type":e.port.dataType??`any`,class:(0,r.normalizeClass)([`nb-blueprint-card__port nb-blueprint-card__port--left`,[`nb-blueprint-card__port--${Z(e.port)}`,`nb-blueprint-card__port--size-${Q(e.port)}`,`nb-blueprint-card__port--${$(e.port)}`,e.port.required?`nb-blueprint-card__port--required`:``,e.channel?`nb-blueprint-card__port--channel`:``,K(e.portId)?`nb-blueprint-card__port--connected`:``,q(e.portId)?`nb-blueprint-card__port--active`:``,P(e.portId)?`nb-blueprint-card__port--metered`:``,M.value.has(e.portId)?`nb-blueprint-card__port--ping`:``,A(e,`input`)]]),style:(0,r.normalizeStyle)(F(e))},null,14,c)],40,s),e.showLabel?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,l,(0,r.toDisplayString)(Y(e)),1)):(0,r.createCommentVNode)(``,!0)]))),128))]),(0,r.createElementVNode)(`div`,u,[(0,r.createElementVNode)(`div`,d,[(0,r.createElementVNode)(`div`,f,[(0,r.createElementVNode)(`button`,{type:`button`,class:`nb-blueprint-card__collapse`,title:t.collapsed?`Expand`:`Collapse`,"aria-label":`${t.collapsed?`Expand`:`Collapse`} ${t.title}`,"aria-expanded":!t.collapsed,onMousedown:n[0]||=(0,r.withModifiers)(()=>{},[`stop`]),onClick:n[1]||=(0,r.withModifiers)(n=>e.$emit(`toggle-collapse`,t.id),[`stop`])},[...n[9]||=[(0,r.createElementVNode)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[(0,r.createElementVNode)(`polyline`,{points:`4 6 8 10 12 6`})],-1)]],40,p),(0,r.createElementVNode)(`div`,m,[(0,r.createElementVNode)(`span`,h,(0,r.toDisplayString)(t.title),1),t.category?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,g,(0,r.toDisplayString)(ve.value),1)):(0,r.createCommentVNode)(``,!0)]),t.status&&t.status!==`none`?((0,r.openBlock)(),(0,r.createElementBlock)(`svg`,{key:0,class:(0,r.normalizeClass)([`nb-blueprint-card__status`,`nb-blueprint-card__status--${t.status}`]),viewBox:`0 0 16 16`,width:`14`,height:`14`,role:`img`,"aria-label":I[t.status]},[(0,r.createElementVNode)(`title`,null,(0,r.toDisplayString)(I[t.status]),1),t.status===`valid`?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[n[10]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),n[11]||=(0,r.createElementVNode)(`polyline`,{points:`4.5 8.2 7 10.5 11.5 5.5`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)],64)):t.status===`warning`?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[n[12]||=(0,r.createElementVNode)(`path`,{d:`M8 1.5 15 14.5 1 14.5 Z`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linejoin":`round`},null,-1),n[13]||=(0,r.createElementVNode)(`line`,{x1:`8`,y1:`6`,x2:`8`,y2:`10`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),n[14]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`12.2`,r:`0.9`,fill:`currentColor`},null,-1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[n[15]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:`currentColor`},null,-1),n[16]||=(0,r.createElementVNode)(`line`,{x1:`8`,y1:`4.5`,x2:`8`,y2:`9`,stroke:`var(--nb-c-surface)`,"stroke-width":`1.8`},null,-1),n[17]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`11.4`,r:`1`,fill:`var(--nb-c-surface)`},null,-1)],64))],10,_)):(0,r.createCommentVNode)(``,!0),t.enabled===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`label`,{key:1,class:`nb-blueprint-card__toggle`,onMousedown:n[3]||=(0,r.withModifiers)(()=>{},[`stop`]),onClick:n[4]||=(0,r.withModifiers)(()=>{},[`stop`])},[(0,r.createElementVNode)(`input`,{type:`checkbox`,checked:t.enabled,"aria-label":`Enable ${t.title}`,onChange:n[2]||=n=>e.$emit(`toggle`,t.id,n.target.checked)},null,40,v),n[18]||=(0,r.createElementVNode)(`span`,{class:`nb-blueprint-card__toggle-track`},null,-1)],32)),t.removable?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:2,type:`button`,class:`nb-blueprint-card__remove`,title:`Remove`,"aria-label":`Remove ${t.title}`,onMousedown:n[5]||=(0,r.withModifiers)(()=>{},[`stop`]),onClick:n[6]||=(0,r.withModifiers)(n=>e.$emit(`remove`,t.id),[`stop`])},` × `,40,ee)):(0,r.createCommentVNode)(``,!0)]),t.collapsed?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[t.preview?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,te,(0,r.toDisplayString)(t.preview),1)):(0,r.createCommentVNode)(``,!0),t.parameters&&t.parameters.length?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,ne,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t.parameters,e=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.label,class:`nb-blueprint-card__row`},[(0,r.createElementVNode)(`span`,re,(0,r.toDisplayString)(e.label),1),(0,r.createElementVNode)(`span`,ie,[(0,r.createTextVNode)((0,r.toDisplayString)(e.value)+` `,1),e.unit?((0,r.openBlock)(),(0,r.createElementBlock)(`em`,ae,(0,r.toDisplayString)(e.unit),1)):(0,r.createCommentVNode)(``,!0)]),e.bar===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:`nb-blueprint-card__row-bar`,style:(0,r.normalizeStyle)({"--bar-progress":`${e.bar}%`})},null,4))]))),128))])):(0,r.createCommentVNode)(``,!0),e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,oe,[(0,r.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)],64))])]),(0,r.createElementVNode)(`div`,se,[t.collapsed&&H.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-blueprint-card__port-combined nb-blueprint-card__port-combined--right`,{"nb-blueprint-card__port-combined--connected":Se.value,"nb-blueprint-card__port-combined--active":Ce.value}]),title:`${H.value.length} output${H.value.length===1?``:`s`}`},null,10,ce)):(0,r.createCommentVNode)(``,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(H.value,e=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.key,class:`nb-blueprint-card__port-slot`},[(0,r.createElementVNode)(`button`,{type:`button`,class:`nb-blueprint-card__port-hit`,title:J(e),"aria-label":L(e,`output`),onMousedown:(0,r.withModifiers)(n=>C({nodeId:t.id,portId:e.portId,type:`output`,dataType:e.port.dataType}),[`stop`]),onMouseup:(0,r.withModifiers)(n=>w({nodeId:t.id,portId:e.portId,type:`output`,dataType:e.port.dataType}),[`stop`]),onKeydown:n=>E(n,{nodeId:t.id,portId:e.portId,type:`output`,dataType:e.port.dataType})},[(0,r.createElementVNode)(`span`,{"data-port":`${t.id}:${e.portId}`,"data-port-data-type":e.port.dataType??`any`,class:(0,r.normalizeClass)([`nb-blueprint-card__port nb-blueprint-card__port--right`,[`nb-blueprint-card__port--${Z(e.port)}`,`nb-blueprint-card__port--size-${Q(e.port)}`,`nb-blueprint-card__port--${$(e.port)}`,e.channel?`nb-blueprint-card__port--channel`:``,K(e.portId)?`nb-blueprint-card__port--connected`:``,q(e.portId)?`nb-blueprint-card__port--active`:``,P(e.portId)?`nb-blueprint-card__port--metered`:``,M.value.has(e.portId)?`nb-blueprint-card__port--ping`:``,A(e,`output`)]]),style:(0,r.normalizeStyle)(F(e))},null,14,ue)],40,le),e.showLabel?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,de,(0,r.toDisplayString)(Y(e)),1)):(0,r.createCommentVNode)(``,!0)]))),128))])],46,i))}}),b=t.t(y,[[`__scopeId`,`data-v-abebdb9e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Blueprint.context-DjbRPuLQ.cjs`);let r=require(`vue`);var i=[`data-card-id`,`aria-label`],a={class:`nb-blueprint-card__ports nb-blueprint-card__ports--left`},o=[`title`],s=[`title`,`aria-label`,`onMousedown`,`onMouseup`,`onKeydown`],c=[`data-port`,`data-port-data-type`],l={key:0,class:`nb-blueprint-card__port-label`},u={class:`nb-blueprint-card__inner`},d={class:`nb-blueprint-card__body`},f={class:`nb-blueprint-card__header`},p=[`title`,`aria-label`,`aria-expanded`],m={class:`nb-blueprint-card__title-group`},h={class:`nb-blueprint-card__name`},g={key:0,class:`nb-blueprint-card__tag`},_=[`aria-label`],v=[`checked`,`aria-label`],ee=[`aria-label`],te={key:0,class:`nb-blueprint-card__preview`},ne={key:1,class:`nb-blueprint-card__params`},re={class:`nb-blueprint-card__row-label`},ie={class:`nb-blueprint-card__row-value`},ae={key:0,class:`nb-blueprint-card__row-unit`},oe={key:2,class:`nb-blueprint-card__content`},se={class:`nb-blueprint-card__ports nb-blueprint-card__ports--right`},ce=[`title`],le=[`title`,`aria-label`,`onMousedown`,`onMouseup`,`onKeydown`],ue=[`data-port`,`data-port-data-type`],de={key:0,class:`nb-blueprint-card__port-label`},fe=320,pe=1,me=10,y=(0,r.defineComponent)({__name:`BlueprintCard`,props:{id:{},title:{},color:{default:void 0},enabled:{type:Boolean,default:!0},selected:{type:Boolean,default:!1},category:{default:``},ports:{default:()=>[]},connectedPorts:{default:()=>[]},activePorts:{default:()=>[]},x:{default:0},y:{default:0},removable:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},status:{default:`none`},preview:{default:``},parameters:{default:()=>[]},showPortLabels:{type:[String,Boolean],default:!1},portLevels:{default:()=>({})},density:{default:void 0}},emits:[`select`,`toggle`,`remove`,`toggle-collapse`,`port-mousedown`,`port-mouseup`],setup(t,{emit:y}){let b=t,x=y,S=(0,r.inject)(n.t,null);function C(e){x(`port-mousedown`,e),S?.onPortDown(e)}function w(e){x(`port-mouseup`,e),S?.onPortUp(e)}function T(e){S?.dragOrigin?.value?w(e):C(e)}function E(e,t){if(e.key===`Enter`||e.key===` `){e.preventDefault(),e.stopPropagation(),T(t);return}e.key===`Escape`&&S?.dragOrigin?.value&&(e.preventDefault(),e.stopPropagation(),S.cancelPortDrag?.())}let D=(0,r.computed)(()=>b.density??S?.density?.value??`default`),O=(0,r.computed)(()=>!!S?.dragOrigin?.value);function k(e,t){return!e||!t||e===`any`||t===`any`||e===t?!0:e.split(`:`)[0]===t.split(`:`)[0]}function A(e,t){let n=S?.dragOrigin?.value;return!n||n.nodeId===b.id&&n.portId===e.portId?!1:n.nodeId!==b.id&&n.type!==t&&k(n.dataType,e.port.dataType)?`nb-blueprint-card__port--target-valid`:`nb-blueprint-card__port--target-invalid`}let j=e.useReducedMotion(),M=(0,r.ref)(new Set),N=new Map;(0,r.watch)(()=>b.activePorts,(e,t)=>{if(j.value)return;let n=new Set(t??[]);for(let t of e??[])n.has(t)||(M.value=new Set(M.value).add(t),clearTimeout(N.get(t)),N.set(t,setTimeout(()=>{let e=new Set(M.value);e.delete(t),M.value=e,N.delete(t)},fe)))},{deep:!0}),(0,r.onScopeDispose)(()=>{for(let e of N.values())clearTimeout(e);N.clear()});function P(e){return typeof b.portLevels?.[e]==`number`}function F(e){let t={"--pin-color":Ee(e.port)},n=b.portLevels?.[e.portId];return typeof n==`number`&&(t[`--pin-level`]=`${(Math.max(0,Math.min(1,n))*100).toFixed(1)}%`),t}let I={valid:`Valid`,warning:`Warning`,error:`Error`};function L(e,t){let n=K(e.portId)?`connected`:`not connected`;return`${J(e)}, ${t}, ${n}`}let R=(0,r.computed)(()=>{let e=[b.title];return b.category&&e.push(b.category),b.status&&b.status!==`none`&&e.push(I[b.status]),e.push(b.enabled?`enabled`:`disabled`),e.join(`, `)}),z={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]};function he(e){let t=z[e.key];if(!t||!S?.nudge)return;e.preventDefault();let n=e.shiftKey?me:pe;S.nudge(b.id,t[0]*n,t[1]*n)}function ge(e){return e.showLabel===void 0?b.showPortLabels===`both`?!0:b.showPortLabels===`left`?e.type===`input`:b.showPortLabels===`right`?e.type===`output`:!1:e.showLabel}function B(e){let t=[];for(let n of b.ports){if(n.type!==e)continue;let r=ge(n);if(n.channels&&n.channels.length>0)for(let e of n.channels)t.push({key:`${n.id}/${e.id}`,port:n,portId:`${n.id}/${e.id}`,channel:e,showLabel:r});else t.push({key:n.id,port:n,portId:n.id,showLabel:r})}return t}let V=(0,r.computed)(()=>B(`input`)),H=(0,r.computed)(()=>B(`output`)),_e=(0,r.computed)(()=>Math.max(V.value.length,H.value.length,1)),U=(0,r.computed)(()=>({left:V.value.some(e=>e.showLabel),right:H.value.some(e=>e.showLabel)})),ve=(0,r.computed)(()=>{let e=b.category||``;return!b.enabled&&e?`${e} · off`:e}),ye=(0,r.computed)(()=>{let e=b.color;if(!e||e.startsWith(`var(`))return`rgba(139, 124, 255, 0.18)`;if(e.startsWith(`#`)&&(e.length===7||e.length===4)){let t=e.length===4?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e;return`rgba(${parseInt(t.slice(1,3),16)}, ${parseInt(t.slice(3,5),16)}, ${parseInt(t.slice(5,7),16)}, 0.18)`}return`rgba(139, 124, 255, 0.18)`}),W=(0,r.computed)(()=>new Set(b.connectedPorts)),G=(0,r.computed)(()=>new Set(b.activePorts));function K(e){return W.value.has(e)}function q(e){return G.value.has(e)}let be=(0,r.computed)(()=>V.value.some(e=>W.value.has(e.portId))),xe=(0,r.computed)(()=>V.value.some(e=>G.value.has(e.portId))),Se=(0,r.computed)(()=>H.value.some(e=>W.value.has(e.portId))),Ce=(0,r.computed)(()=>H.value.some(e=>G.value.has(e.portId)));function J(e){return e.channel?`${e.port.label} . ${e.channel.label}`:e.port.label}function Y(e){return e.channel?e.channel.label:e.port.label}let X={geometry:`#6366f1`,celestial:`#f97316`,lighting:`#f59e0b`,effect:`#a855f7`,surface:`#3b82f6`,audio:`#22c55e`,"audio:mono":`#22c55e`,"audio:stereo":`#10b981`,"audio:bus":`#059669`,midi:`#a855f7`,"midi:rechannelized":`#9333ea`,control:`#94a3b8`,entity:`#ec4899`,number:`#94a3b8`,vector3:`#38bdf8`,color:`#fb923c`,asset:`#a78bfa`,any:`#64748b`},we={geometry:`pill`,celestial:`pill`,lighting:`pill`,effect:`pill`,surface:`pill`,audio:`pill`,"audio:mono":`pill`,"audio:stereo":`pill`,"audio:bus":`pill`,midi:`pill`,"midi:rechannelized":`pill`,control:`pill`,entity:`pill`,number:`pill`,vector3:`pill`,color:`pill`,asset:`pill`,any:`pill`},Te={geometry:`analog`,celestial:`analog`,lighting:`analog`,effect:`analog`,surface:`analog`,audio:`analog`,"audio:mono":`analog`,"audio:stereo":`analog`,"audio:bus":`analog`,midi:`digital`,"midi:rechannelized":`digital`,control:`digital`,entity:`digital`,number:`analog`,vector3:`analog`,color:`digital`,asset:`digital`,any:`analog`};function Ee(e){return e.color??X[e.dataType??`any`]??X.any}function Z(e){return e.shape??we[e.dataType??`any`]??`pill`}function Q(e){return e.size??`md`}function $(e){return e.signal??Te[e.dataType??`any`]??`analog`}return(e,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)([`nb-blueprint-card`,[`nb-blueprint-card--density-${D.value}`,{"nb-blueprint-card--selected":t.selected,"nb-blueprint-card--disabled":!t.enabled,"nb-blueprint-card--collapsed":t.collapsed,"nb-blueprint-card--has-category":!!t.category,"nb-blueprint-card--has-port-labels-left":U.value.left,"nb-blueprint-card--has-port-labels-right":U.value.right,"nb-blueprint-card--dragging-wire":O.value}]]),"data-card-id":t.id,style:(0,r.normalizeStyle)({"--nb-card-color":t.color||`var(--nb-c-primary)`,"--nb-card-glow":ye.value,"--nb-blueprint-port-count":_e.value}),tabindex:`0`,role:`group`,"aria-roledescription":`Graph node`,"aria-label":R.value,onMousedown:n[7]||=n=>e.$emit(`select`,t.id),onFocus:n[8]||=n=>e.$emit(`select`,t.id),onKeydown:he},[(0,r.createElementVNode)(`div`,a,[t.collapsed&&V.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-blueprint-card__port-combined nb-blueprint-card__port-combined--left`,{"nb-blueprint-card__port-combined--connected":be.value,"nb-blueprint-card__port-combined--active":xe.value}]),title:`${V.value.length} input${V.value.length===1?``:`s`}`},null,10,o)):(0,r.createCommentVNode)(``,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(V.value,e=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.key,class:`nb-blueprint-card__port-slot`},[(0,r.createElementVNode)(`button`,{type:`button`,class:`nb-blueprint-card__port-hit`,title:J(e),"aria-label":L(e,`input`),onMousedown:(0,r.withModifiers)(n=>C({nodeId:t.id,portId:e.portId,type:`input`,dataType:e.port.dataType}),[`stop`]),onMouseup:(0,r.withModifiers)(n=>w({nodeId:t.id,portId:e.portId,type:`input`,dataType:e.port.dataType}),[`stop`]),onKeydown:n=>E(n,{nodeId:t.id,portId:e.portId,type:`input`,dataType:e.port.dataType})},[(0,r.createElementVNode)(`span`,{"data-port":`${t.id}:${e.portId}`,"data-port-data-type":e.port.dataType??`any`,class:(0,r.normalizeClass)([`nb-blueprint-card__port nb-blueprint-card__port--left`,[`nb-blueprint-card__port--${Z(e.port)}`,`nb-blueprint-card__port--size-${Q(e.port)}`,`nb-blueprint-card__port--${$(e.port)}`,e.port.required?`nb-blueprint-card__port--required`:``,e.channel?`nb-blueprint-card__port--channel`:``,K(e.portId)?`nb-blueprint-card__port--connected`:``,q(e.portId)?`nb-blueprint-card__port--active`:``,P(e.portId)?`nb-blueprint-card__port--metered`:``,M.value.has(e.portId)?`nb-blueprint-card__port--ping`:``,A(e,`input`)]]),style:(0,r.normalizeStyle)(F(e))},null,14,c)],40,s),e.showLabel?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,l,(0,r.toDisplayString)(Y(e)),1)):(0,r.createCommentVNode)(``,!0)]))),128))]),(0,r.createElementVNode)(`div`,u,[(0,r.createElementVNode)(`div`,d,[(0,r.createElementVNode)(`div`,f,[(0,r.createElementVNode)(`button`,{type:`button`,class:`nb-blueprint-card__collapse`,title:t.collapsed?`Expand`:`Collapse`,"aria-label":`${t.collapsed?`Expand`:`Collapse`} ${t.title}`,"aria-expanded":!t.collapsed,onMousedown:n[0]||=(0,r.withModifiers)(()=>{},[`stop`]),onClick:n[1]||=(0,r.withModifiers)(n=>e.$emit(`toggle-collapse`,t.id),[`stop`])},[...n[9]||=[(0,r.createElementVNode)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[(0,r.createElementVNode)(`polyline`,{points:`4 6 8 10 12 6`})],-1)]],40,p),(0,r.createElementVNode)(`div`,m,[(0,r.createElementVNode)(`span`,h,(0,r.toDisplayString)(t.title),1),t.category?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,g,(0,r.toDisplayString)(ve.value),1)):(0,r.createCommentVNode)(``,!0)]),t.status&&t.status!==`none`?((0,r.openBlock)(),(0,r.createElementBlock)(`svg`,{key:0,class:(0,r.normalizeClass)([`nb-blueprint-card__status`,`nb-blueprint-card__status--${t.status}`]),viewBox:`0 0 16 16`,width:`14`,height:`14`,role:`img`,"aria-label":I[t.status]},[(0,r.createElementVNode)(`title`,null,(0,r.toDisplayString)(I[t.status]),1),t.status===`valid`?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[n[10]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),n[11]||=(0,r.createElementVNode)(`polyline`,{points:`4.5 8.2 7 10.5 11.5 5.5`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)],64)):t.status===`warning`?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[n[12]||=(0,r.createElementVNode)(`path`,{d:`M8 1.5 15 14.5 1 14.5 Z`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linejoin":`round`},null,-1),n[13]||=(0,r.createElementVNode)(`line`,{x1:`8`,y1:`6`,x2:`8`,y2:`10`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),n[14]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`12.2`,r:`0.9`,fill:`currentColor`},null,-1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[n[15]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:`currentColor`},null,-1),n[16]||=(0,r.createElementVNode)(`line`,{x1:`8`,y1:`4.5`,x2:`8`,y2:`9`,stroke:`var(--nb-c-surface)`,"stroke-width":`1.8`},null,-1),n[17]||=(0,r.createElementVNode)(`circle`,{cx:`8`,cy:`11.4`,r:`1`,fill:`var(--nb-c-surface)`},null,-1)],64))],10,_)):(0,r.createCommentVNode)(``,!0),t.enabled===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`label`,{key:1,class:`nb-blueprint-card__toggle`,onMousedown:n[3]||=(0,r.withModifiers)(()=>{},[`stop`]),onClick:n[4]||=(0,r.withModifiers)(()=>{},[`stop`])},[(0,r.createElementVNode)(`input`,{type:`checkbox`,checked:t.enabled,"aria-label":`Enable ${t.title}`,onChange:n[2]||=n=>e.$emit(`toggle`,t.id,n.target.checked)},null,40,v),n[18]||=(0,r.createElementVNode)(`span`,{class:`nb-blueprint-card__toggle-track`},null,-1)],32)),t.removable?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:2,type:`button`,class:`nb-blueprint-card__remove`,title:`Remove`,"aria-label":`Remove ${t.title}`,onMousedown:n[5]||=(0,r.withModifiers)(()=>{},[`stop`]),onClick:n[6]||=(0,r.withModifiers)(n=>e.$emit(`remove`,t.id),[`stop`])},` × `,40,ee)):(0,r.createCommentVNode)(``,!0)]),t.collapsed?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[t.preview?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,te,(0,r.toDisplayString)(t.preview),1)):(0,r.createCommentVNode)(``,!0),t.parameters&&t.parameters.length?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,ne,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t.parameters,e=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.label,class:`nb-blueprint-card__row`},[(0,r.createElementVNode)(`span`,re,(0,r.toDisplayString)(e.label),1),(0,r.createElementVNode)(`span`,ie,[(0,r.createTextVNode)((0,r.toDisplayString)(e.value)+` `,1),e.unit?((0,r.openBlock)(),(0,r.createElementBlock)(`em`,ae,(0,r.toDisplayString)(e.unit),1)):(0,r.createCommentVNode)(``,!0)]),e.bar===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:`nb-blueprint-card__row-bar`,style:(0,r.normalizeStyle)({"--bar-progress":`${e.bar}%`})},null,4))]))),128))])):(0,r.createCommentVNode)(``,!0),e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,oe,[(0,r.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)],64))])]),(0,r.createElementVNode)(`div`,se,[t.collapsed&&H.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-blueprint-card__port-combined nb-blueprint-card__port-combined--right`,{"nb-blueprint-card__port-combined--connected":Se.value,"nb-blueprint-card__port-combined--active":Ce.value}]),title:`${H.value.length} output${H.value.length===1?``:`s`}`},null,10,ce)):(0,r.createCommentVNode)(``,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(H.value,e=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.key,class:`nb-blueprint-card__port-slot`},[(0,r.createElementVNode)(`button`,{type:`button`,class:`nb-blueprint-card__port-hit`,title:J(e),"aria-label":L(e,`output`),onMousedown:(0,r.withModifiers)(n=>C({nodeId:t.id,portId:e.portId,type:`output`,dataType:e.port.dataType}),[`stop`]),onMouseup:(0,r.withModifiers)(n=>w({nodeId:t.id,portId:e.portId,type:`output`,dataType:e.port.dataType}),[`stop`]),onKeydown:n=>E(n,{nodeId:t.id,portId:e.portId,type:`output`,dataType:e.port.dataType})},[(0,r.createElementVNode)(`span`,{"data-port":`${t.id}:${e.portId}`,"data-port-data-type":e.port.dataType??`any`,class:(0,r.normalizeClass)([`nb-blueprint-card__port nb-blueprint-card__port--right`,[`nb-blueprint-card__port--${Z(e.port)}`,`nb-blueprint-card__port--size-${Q(e.port)}`,`nb-blueprint-card__port--${$(e.port)}`,e.channel?`nb-blueprint-card__port--channel`:``,K(e.portId)?`nb-blueprint-card__port--connected`:``,q(e.portId)?`nb-blueprint-card__port--active`:``,P(e.portId)?`nb-blueprint-card__port--metered`:``,M.value.has(e.portId)?`nb-blueprint-card__port--ping`:``,A(e,`output`)]]),style:(0,r.normalizeStyle)(F(e))},null,14,ue)],40,le),e.showLabel?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,de,(0,r.toDisplayString)(Y(e)),1)):(0,r.createCommentVNode)(``,!0)]))),128))])],46,i))}}),b=t.t(y,[[`__scopeId`,`data-v-abebdb9e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./AiLabel-BMeJMSLm.cjs`),t=require(`./Panel-valtWFWI.cjs`),n=require(`./Switch-a73y1wiu.cjs`);let r=require(`vue`);var i={class:`nb-briefing__header`},a={class:`nb-briefing__heading`},o={class:`nb-briefing__title`},s={key:0,class:`nb-briefing__status`},c={class:`nb-briefing__body`},l={class:`nb-briefing__main`},u={key:0,class:`nb-briefing__description`},d={key:1,class:`nb-briefing__ai`},f={class:`nb-briefing__ai-text`},p={key:2,class:`nb-briefing__destinations`},m={key:3,class:`nb-briefing__actions`},h={key:0,class:`nb-briefing__aside`},g=(0,r.defineComponent)({__name:`Briefing`,props:{title:{},enabled:{type:Boolean,default:void 0},aiWriting:{type:Boolean,default:void 0},status:{default:``},busy:{type:Boolean,default:!1}},emits:[`update:enabled`,`update:aiWriting`],setup(g,{emit:_}){let v=_,y=(0,r.useSlots)(),b=(0,r.useId)(),x=(0,r.computed)(()=>!!(y.preview||y.runs));return(_,y)=>((0,r.openBlock)(),(0,r.createBlock)(t.t,{class:(0,r.normalizeClass)([`nb-briefing`,{"nb-briefing--with-preview":x.value}])},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`header`,i,[(0,r.createElementVNode)(`div`,a,[(0,r.createElementVNode)(`h3`,o,(0,r.toDisplayString)(g.title),1),g.status?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,(0,r.toDisplayString)(g.status),1)):(0,r.createCommentVNode)(``,!0)]),g.enabled===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,"model-value":g.enabled,name:`${(0,r.unref)(b)}-enabled`,label:`Run ${g.title}`,"hide-label":``,disabled:g.busy,"onUpdate:modelValue":y[0]||=e=>v(`update:enabled`,!!e)},null,8,[`model-value`,`name`,`label`,`disabled`]))]),(0,r.createElementVNode)(`div`,c,[(0,r.createElementVNode)(`div`,l,[_.$slots.description?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,u,[(0,r.renderSlot)(_.$slots,`description`)])):(0,r.createCommentVNode)(``,!0),g.aiWriting===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createVNode)(n.t,{"model-value":g.aiWriting,name:`${(0,r.unref)(b)}-ai`,label:`Written by AI`,"hide-label":``,disabled:g.busy,"onUpdate:modelValue":y[1]||=e=>v(`update:aiWriting`,!!e)},null,8,[`model-value`,`name`,`disabled`]),(0,r.createElementVNode)(`span`,f,[y[2]||=(0,r.createElementVNode)(`strong`,null,`Written by AI`,-1),y[3]||=(0,r.createTextVNode)(),(0,r.createVNode)(e.t,{static:``,size:`sm`}),y[4]||=(0,r.createElementVNode)(`span`,{class:`nb-briefing__ai-hint`},` Off, it is the plain version built from the facts. `,-1)])])),(0,r.renderSlot)(_.$slots,`default`),_.$slots.destinations?((0,r.openBlock)(),(0,r.createElementBlock)(`section`,p,[y[5]||=(0,r.createElementVNode)(`h4`,{class:`nb-briefing__subtitle`},`Destinations`,-1),(0,r.renderSlot)(_.$slots,`destinations`)])):(0,r.createCommentVNode)(``,!0),_.$slots.actions?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,m,[(0,r.renderSlot)(_.$slots,`actions`)])):(0,r.createCommentVNode)(``,!0)]),x.value?((0,r.openBlock)(),(0,r.createElementBlock)(`aside`,h,[(0,r.renderSlot)(_.$slots,`preview`),(0,r.renderSlot)(_.$slots,`runs`)])):(0,r.createCommentVNode)(``,!0)])]),_:3},8,[`class`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { t as e } from "./AiLabel-CGxUTm-X.js";
|
|
2
|
+
import { t } from "./Panel-Drfi9pqS.js";
|
|
3
|
+
import { t as n } from "./Switch-DS297b1b.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, useId as g, useSlots as _, withCtx as v } from "vue";
|
|
5
|
+
//#region src/components/Briefing.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var y = { class: "nb-briefing__header" }, b = { class: "nb-briefing__heading" }, x = { class: "nb-briefing__title" }, S = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "nb-briefing__status"
|
|
9
|
+
}, C = { class: "nb-briefing__body" }, w = { class: "nb-briefing__main" }, T = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "nb-briefing__description"
|
|
12
|
+
}, E = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "nb-briefing__ai"
|
|
15
|
+
}, D = { class: "nb-briefing__ai-text" }, O = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "nb-briefing__destinations"
|
|
18
|
+
}, k = {
|
|
19
|
+
key: 3,
|
|
20
|
+
class: "nb-briefing__actions"
|
|
21
|
+
}, A = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "nb-briefing__aside"
|
|
24
|
+
}, j = /* @__PURE__ */ u({
|
|
25
|
+
__name: "Briefing",
|
|
26
|
+
props: {
|
|
27
|
+
title: {},
|
|
28
|
+
enabled: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
aiWriting: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: void 0
|
|
35
|
+
},
|
|
36
|
+
status: { default: "" },
|
|
37
|
+
busy: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
emits: ["update:enabled", "update:aiWriting"],
|
|
43
|
+
setup(u, { emit: j }) {
|
|
44
|
+
let M = j, N = _(), P = g(), F = r(() => !!(N.preview || N.runs));
|
|
45
|
+
return (r, g) => (f(), i(t, { class: d(["nb-briefing", { "nb-briefing--with-preview": F.value }]) }, {
|
|
46
|
+
default: v(() => [s("header", y, [s("div", b, [s("h3", x, m(u.title), 1), u.status ? (f(), o("span", S, m(u.status), 1)) : a("", !0)]), u.enabled === void 0 ? a("", !0) : (f(), i(n, {
|
|
47
|
+
key: 0,
|
|
48
|
+
"model-value": u.enabled,
|
|
49
|
+
name: `${h(P)}-enabled`,
|
|
50
|
+
label: `Run ${u.title}`,
|
|
51
|
+
"hide-label": "",
|
|
52
|
+
disabled: u.busy,
|
|
53
|
+
"onUpdate:modelValue": g[0] ||= (e) => M("update:enabled", !!e)
|
|
54
|
+
}, null, 8, [
|
|
55
|
+
"model-value",
|
|
56
|
+
"name",
|
|
57
|
+
"label",
|
|
58
|
+
"disabled"
|
|
59
|
+
]))]), s("div", C, [s("div", w, [
|
|
60
|
+
r.$slots.description ? (f(), o("div", T, [p(r.$slots, "description")])) : a("", !0),
|
|
61
|
+
u.aiWriting === void 0 ? a("", !0) : (f(), o("div", E, [l(n, {
|
|
62
|
+
"model-value": u.aiWriting,
|
|
63
|
+
name: `${h(P)}-ai`,
|
|
64
|
+
label: "Written by AI",
|
|
65
|
+
"hide-label": "",
|
|
66
|
+
disabled: u.busy,
|
|
67
|
+
"onUpdate:modelValue": g[1] ||= (e) => M("update:aiWriting", !!e)
|
|
68
|
+
}, null, 8, [
|
|
69
|
+
"model-value",
|
|
70
|
+
"name",
|
|
71
|
+
"disabled"
|
|
72
|
+
]), s("span", D, [
|
|
73
|
+
g[2] ||= s("strong", null, "Written by AI", -1),
|
|
74
|
+
g[3] ||= c(),
|
|
75
|
+
l(e, {
|
|
76
|
+
static: "",
|
|
77
|
+
size: "sm"
|
|
78
|
+
}),
|
|
79
|
+
g[4] ||= s("span", { class: "nb-briefing__ai-hint" }, " Off, it is the plain version built from the facts. ", -1)
|
|
80
|
+
])])),
|
|
81
|
+
p(r.$slots, "default"),
|
|
82
|
+
r.$slots.destinations ? (f(), o("section", O, [g[5] ||= s("h4", { class: "nb-briefing__subtitle" }, "Destinations", -1), p(r.$slots, "destinations")])) : a("", !0),
|
|
83
|
+
r.$slots.actions ? (f(), o("div", k, [p(r.$slots, "actions")])) : a("", !0)
|
|
84
|
+
]), F.value ? (f(), o("aside", A, [p(r.$slots, "preview"), p(r.$slots, "runs")])) : a("", !0)])]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 8, ["class"]));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
export { j as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
|
+
import { t } from "./Button-IcCXOoCT.js";
|
|
3
|
+
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderSlot as u, toDisplayString as d, withCtx as f } from "vue";
|
|
4
|
+
import * as p from "@nubisco/ui/icons/envelope";
|
|
5
|
+
import * as m from "@nubisco/ui/icons/slack-logo";
|
|
6
|
+
import * as h from "@nubisco/ui/icons/webhooks-logo";
|
|
7
|
+
//#region src/components/BriefingDestination.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var g = { class: "nb-briefing-destination" }, _ = { class: "nb-briefing-destination__head" }, v = { class: "nb-briefing-destination__label" }, y = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "nb-briefing-destination__summary"
|
|
11
|
+
}, b = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "nb-briefing-destination__summary"
|
|
14
|
+
}, x = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "nb-briefing-destination__body"
|
|
17
|
+
}, S = /* @__PURE__ */ c({
|
|
18
|
+
__name: "BriefingDestination",
|
|
19
|
+
props: {
|
|
20
|
+
kind: {},
|
|
21
|
+
label: { default: "" },
|
|
22
|
+
summary: { default: "" },
|
|
23
|
+
configured: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
testing: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
testLabel: { default: "Send a test" }
|
|
32
|
+
},
|
|
33
|
+
emits: ["test"],
|
|
34
|
+
setup(c, { emit: S }) {
|
|
35
|
+
let C = S, w = {
|
|
36
|
+
slack: m,
|
|
37
|
+
email: p,
|
|
38
|
+
webhook: h
|
|
39
|
+
}, T = {
|
|
40
|
+
slack: "Slack",
|
|
41
|
+
email: "Email",
|
|
42
|
+
webhook: "Webhook"
|
|
43
|
+
};
|
|
44
|
+
return (p, m) => (l(), i("div", g, [a("div", _, [
|
|
45
|
+
s(e, {
|
|
46
|
+
class: "nb-briefing-destination__icon",
|
|
47
|
+
icon: w[c.kind],
|
|
48
|
+
size: 20,
|
|
49
|
+
"aria-hidden": "true"
|
|
50
|
+
}, null, 8, ["icon"]),
|
|
51
|
+
a("span", v, [a("strong", null, d(c.label || T[c.kind]), 1), c.summary ? (l(), i("span", y, d(c.summary), 1)) : (l(), i("span", b, " Not set up "))]),
|
|
52
|
+
c.testLabel ? (l(), n(t, {
|
|
53
|
+
key: 0,
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
size: "sm",
|
|
56
|
+
loading: c.testing,
|
|
57
|
+
disabled: !c.configured,
|
|
58
|
+
onClick: m[0] ||= (e) => C("test")
|
|
59
|
+
}, {
|
|
60
|
+
default: f(() => [o(d(c.testLabel), 1)]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["loading", "disabled"])) : r("", !0)
|
|
63
|
+
]), p.$slots.default ? (l(), i("div", x, [u(p.$slots, "default")])) : r("", !0)]));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { S as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./Button-C0UUTgEB.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/envelope`);i=e.n(i);let a=require(`@nubisco/ui/icons/slack-logo`);a=e.n(a);let o=require(`@nubisco/ui/icons/webhooks-logo`);o=e.n(o);var s={class:`nb-briefing-destination`},c={class:`nb-briefing-destination__head`},l={class:`nb-briefing-destination__label`},u={key:0,class:`nb-briefing-destination__summary`},d={key:1,class:`nb-briefing-destination__summary`},f={key:0,class:`nb-briefing-destination__body`},p=(0,r.defineComponent)({__name:`BriefingDestination`,props:{kind:{},label:{default:``},summary:{default:``},configured:{type:Boolean,default:!1},testing:{type:Boolean,default:!1},testLabel:{default:`Send a test`}},emits:[`test`],setup(e,{emit:p}){let m=p,h={slack:a,email:i,webhook:o},g={slack:`Slack`,email:`Email`,webhook:`Webhook`};return(i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,s,[(0,r.createElementVNode)(`div`,c,[(0,r.createVNode)(t.t,{class:`nb-briefing-destination__icon`,icon:h[e.kind],size:20,"aria-hidden":`true`},null,8,[`icon`]),(0,r.createElementVNode)(`span`,l,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(e.label||g[e.kind]),1),e.summary?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,u,(0,r.toDisplayString)(e.summary),1)):((0,r.openBlock)(),(0,r.createElementBlock)(`span`,d,` Not set up `))]),e.testLabel?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,variant:`ghost`,size:`sm`,loading:e.testing,disabled:!e.configured,onClick:a[0]||=e=>m(`test`)},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.testLabel),1)]),_:1},8,[`loading`,`disabled`])):(0,r.createCommentVNode)(``,!0)]),i.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,f,[(0,r.renderSlot)(i.$slots,`default`)])):(0,r.createCommentVNode)(``,!0)]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./CheckboxGroup.context-
|
|
2
|
+
import { t } from "./CheckboxGroup.context-B2qjPnB2.js";
|
|
3
3
|
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d } from "vue";
|
|
4
4
|
//#region src/components/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var f = { class: "nb-checkbox__control" }, p = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./CheckboxGroup.context-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./CheckboxGroup.context-DyFYVLH1.cjs`);let n=require(`vue`);var r={class:`nb-checkbox__control`},i=[`checked`,`disabled`,`indeterminate`],a={class:`nb-checkbox__box`},o={key:0,class:`nb-checkbox__check`,viewBox:`0 0 10 8`,fill:`none`},s={key:1,class:`nb-checkbox__dash`},c={key:0,class:`nb-checkbox__label`},l=(0,n.defineComponent)({__name:`Checkbox`,props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox`},label:{}},emits:[`update:modelValue`],setup(e,{emit:l}){let u=e,d=l,f=(0,n.inject)(t.t,null),p=(0,n.computed)(()=>u.disabled||!!f?.disabled.value);function m(e){p.value||d(`update:modelValue`,e.target.checked)}return(t,l)=>((0,n.openBlock)(),(0,n.createElementBlock)(`label`,{class:(0,n.normalizeClass)([`nb-checkbox`,{"nb-checkbox--disabled":p.value}])},[(0,n.createElementVNode)(`span`,r,[(0,n.createElementVNode)(`input`,{type:`checkbox`,checked:e.modelValue,disabled:p.value,indeterminate:e.indeterminate,class:`nb-checkbox__input`,onChange:m},null,40,i),(0,n.createElementVNode)(`span`,a,[e.modelValue&&!e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,o,[...l[0]||=[(0,n.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,n.createCommentVNode)(``,!0),e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,s)):(0,n.createCommentVNode)(``,!0)])]),e.label?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,c,(0,n.toDisplayString)(e.label),1)):(0,n.renderSlot)(t.$slots,`default`,{key:1},void 0,!0)],2))}}),u=e.t(l,[[`__scopeId`,`data-v-e6cd7a41`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-CVCNXFn1.cjs`),n=require(`./Message-VfpaGblO.cjs`),r=require(`./CheckboxGroup.context-DyFYVLH1.cjs`);let i=require(`vue`);var a=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(a||{}),o=[`aria-label`],s=(0,i.defineComponent)({__name:`CheckboxGroup`,props:{direction:{default:a.Vertical},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox-group`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},setup(e){let a=e;(0,i.provide)(r.t,{disabled:(0,i.computed)(()=>a.disabled)});let s=(0,i.computed)(()=>[`nb-checkbox-group`,{"nb-checkbox-group--error":!!a.error,"nb-checkbox-group--warning":!a.error&&!!a.warning,"nb-checkbox-group--disabled":a.disabled}]);return(r,a)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(s.value),role:`group`,"aria-label":e.label||void 0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-checkbox-group__items`,`nb-checkbox-group__items--${e.direction}`])},[(0,i.renderSlot)(r.$slots,`default`,{},void 0,!0)],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,variant:`error`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],10,o))}}),c=e.t(s,[[`__scopeId`,`data-v-01e35535`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Label-
|
|
3
|
-
import { t as n } from "./Message-
|
|
4
|
-
import { t as r } from "./CheckboxGroup.context-
|
|
2
|
+
import { t } from "./Label-ciCAG21-.js";
|
|
3
|
+
import { t as n } from "./Message-Cecz48PA.js";
|
|
4
|
+
import { t as r } from "./CheckboxGroup.context-B2qjPnB2.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, provide as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
|
|
6
6
|
//#region src/components/CheckboxGroup.d.ts
|
|
7
7
|
var _ = /* @__PURE__ */ function(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Grid-D8c0StGs.cjs`),i=require(`./Label-CVCNXFn1.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/empty`);s=e.n(s);var c={key:1,class:`nb-color-strip-wrapper__inner-header`},l={key:1,class:`nb-color-strip-wrapper__inner-label`},u=30,d=8,f=(0,a.defineComponent)({__name:`ColorStrip`,props:(0,a.mergeModels)({options:{default:()=>[`#DCDCDC`,`#C0C0C0`,`#808080`]},onlyView:{type:Boolean,default:!1},allowMultiple:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},showNull:{type:Boolean,default:!1},variant:{default:`default`},id:{default:void 0},label:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,f=`nb-color-strip-${(0,a.useId)()}`,p=(0,a.computed)(()=>t.id??f),m=(0,a.useModel)(e,`modelValue`,{set:e=>e}),h=(0,a.computed)(()=>t.options.map(e=>typeof e==`string`?{value:e,color:e}:{...e,color:e.color||`#FFFFFF`,value:e.value===void 0?e.color:e.value})),g={id:`null-option`,value:null,color:`transparent`,label:`None`},_=(0,a.ref)(m.value==null);(0,a.watch)(()=>m.value,e=>{e??(_.value=!0)});let v=(0,a.computed)(()=>t.allowMultiple?!1:t.onlyView?t.showNull:t.showNull||_.value),y=(0,a.computed)(()=>v.value?[g,...h.value]:h.value),b=(0,a.computed)(()=>{if(!t.wrap)return{maxWidth:`none`,flexWrap:`nowrap`};let e=y.value.length;if(e<=0)return;let n=Math.ceil(Math.sqrt(e));return{maxWidth:`${n*u+(n-1)*d}px`,flexWrap:`wrap`}}),x=(0,a.computed)(()=>({"nb-color-strip":!0,"only-view":t.onlyView})),S=e=>t.onlyView?!1:e===null?m.value==null:e===void 0?!1:t.allowMultiple?Array.isArray(m.value)&&m.value.includes(e):m.value===e,C=e=>({"nb-color-strip-color":!0,"nb-color-strip-color-null":T(e),selected:!t.onlyView&&S(e.value)}),w=e=>{if(!T(e))return{backgroundColor:e.color}},T=e=>e.id===`null-option`,E=e=>S(e.value)?`duotone`:`regular`,D=e=>{if(e!==void 0){if(!t.allowMultiple&&e===null){m.value=null;return}if(t.allowMultiple){let t=Array.isArray(m.value)?m.value.slice():[],n=t.indexOf(e);n===-1?t.push(e):t.splice(n,1),m.value=t}else m.value=e}};function O(e){let t=typeof e==`string`?e:e.color,{r:n,g:r,b:i}=k((t&&t.startsWith(`var(`)?getComputedStyle(document.documentElement).getPropertyValue(t.slice(4,-1).trim()).trim():t)||`#FFFFFF`);return(.299*n+.587*r+.114*i)/255>.5?`black`:`white`}function k(e){let t=e.replace(`#`,``);t.length===3&&(t=t.split(``).map(e=>e+e).join(``));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}return(t,u)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-color-strip-wrapper`,`nb-color-strip-wrapper--${e.variant}`])},[e.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,for:p.value,disabled:!1},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1},8,[`for`])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0),e.variant===`fluid`&&(e.label||t.$slots.label)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,c,[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,l,(0,a.toDisplayString)(e.label),1))])):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(r.t,{id:p.value,dir:`row`,gap:`xs`,class:(0,a.normalizeClass)(x.value),shrink:!1,style:(0,a.normalizeStyle)(b.value)},{default:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.value,t=>((0,a.openBlock)(),(0,a.createBlock)(r.t,{is:`button`,key:`option-${t.id||t.value}`,align:`center`,justify:`center`,class:(0,a.normalizeClass)(C(t)),style:(0,a.normalizeStyle)(w(t)),disabled:t.disabled,onClick:n=>!e.onlyView&&D(t.value)},{default:(0,a.withCtx)(()=>[!e.onlyView&&S(t.value)&&!T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:(0,a.unref)(o.light),weight:`light`,color:O(t)},null,8,[`name`,`color`])):(0,a.createCommentVNode)(``,!0),T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,name:s,weight:E(t)},null,8,[`weight`])):(0,a.createCommentVNode)(``,!0)]),_:2},1032,[`class`,`style`,`disabled`,`onClick`]))),128))]),_:1},8,[`id`,`class`,`style`])],2))}}),p=t.t(f,[[`__scopeId`,`data-v-ddc31632`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { t as r } from "./
|
|
3
|
+
import { t as n } from "./Grid-XtnH-vr_.js";
|
|
4
|
+
import { t as r } from "./Label-ciCAG21-.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useId as x, useModel as S, watch as C, withCtx as w } from "vue";
|
|
6
6
|
import { light as T } from "@nubisco/ui/icons/check";
|
|
7
7
|
import * as E from "@nubisco/ui/icons/empty";
|
|
@@ -109,7 +109,7 @@ var D = {
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
return (a, d) => (h(), c("div", { class: p(["nb-color-strip-wrapper", `nb-color-strip-wrapper--${e.variant}`]) }, [
|
|
112
|
-
e.variant === "default" ? (h(), c(i, { key: 0 }, [a.$slots.label ? v(a.$slots, "label", { key: 0 }, void 0, !0) : e.label ? (h(), o(
|
|
112
|
+
e.variant === "default" ? (h(), c(i, { key: 0 }, [a.$slots.label ? v(a.$slots, "label", { key: 0 }, void 0, !0) : e.label ? (h(), o(r, {
|
|
113
113
|
key: 1,
|
|
114
114
|
for: j.value,
|
|
115
115
|
disabled: !1
|
|
@@ -118,7 +118,7 @@ var D = {
|
|
|
118
118
|
_: 1
|
|
119
119
|
}, 8, ["for"])) : s("", !0)], 64)) : s("", !0),
|
|
120
120
|
e.variant === "fluid" && (e.label || a.$slots.label) ? (h(), c("div", D, [a.$slots.label ? v(a.$slots, "label", { key: 0 }, void 0, !0) : (h(), c("label", O, y(e.label), 1))])) : s("", !0),
|
|
121
|
-
u(
|
|
121
|
+
u(n, {
|
|
122
122
|
id: j.value,
|
|
123
123
|
dir: "row",
|
|
124
124
|
gap: "xs",
|
|
@@ -126,25 +126,25 @@ var D = {
|
|
|
126
126
|
shrink: !1,
|
|
127
127
|
style: m(R.value)
|
|
128
128
|
}, {
|
|
129
|
-
default: w(() => [(h(!0), c(i, null, _(L.value, (
|
|
129
|
+
default: w(() => [(h(!0), c(i, null, _(L.value, (r) => (h(), o(n, {
|
|
130
130
|
is: "button",
|
|
131
|
-
key: `option-${
|
|
131
|
+
key: `option-${r.id || r.value}`,
|
|
132
132
|
align: "center",
|
|
133
133
|
justify: "center",
|
|
134
|
-
class: p(V(
|
|
135
|
-
style: m(H(
|
|
136
|
-
disabled:
|
|
137
|
-
onClick: (t) => !e.onlyView && G(
|
|
134
|
+
class: p(V(r)),
|
|
135
|
+
style: m(H(r)),
|
|
136
|
+
disabled: r.disabled,
|
|
137
|
+
onClick: (t) => !e.onlyView && G(r.value)
|
|
138
138
|
}, {
|
|
139
|
-
default: w(() => [!e.onlyView && B(
|
|
139
|
+
default: w(() => [!e.onlyView && B(r.value) && !U(r) ? (h(), o(t, {
|
|
140
140
|
key: 0,
|
|
141
141
|
name: b(T),
|
|
142
142
|
weight: "light",
|
|
143
|
-
color: K(
|
|
144
|
-
}, null, 8, ["name", "color"])) : s("", !0), U(
|
|
143
|
+
color: K(r)
|
|
144
|
+
}, null, 8, ["name", "color"])) : s("", !0), U(r) ? (h(), o(t, {
|
|
145
145
|
key: 1,
|
|
146
146
|
name: E,
|
|
147
|
-
weight: W(
|
|
147
|
+
weight: W(r)
|
|
148
148
|
}, null, 8, ["weight"])) : s("", !0)]),
|
|
149
149
|
_: 2
|
|
150
150
|
}, 1032, [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-C0UUTgEB.cjs`),i=require(`./Message-VfpaGblO.cjs`),a=require(`./TextInput-BkCOQWfT.cjs`),o=require(`./Modal-CtCD-xEb.cjs`);let s=require(`vue`),ee=require(`@nubisco/ui/icons/check`),c=require(`@nubisco/ui/icons/warning`);var l={key:0,class:`nb-confirm__message`},u={key:0,class:`nb-confirm__subject-kind`},d={class:`nb-confirm__subject-name`},f={key:1,class:`nb-confirm__gate`},p={class:`nb-confirm__live`},m={key:0,class:`nb-confirm__status`,role:`status`},h={key:1,class:`nb-confirm__status nb-confirm__status--success`,role:`status`},g=(0,s.defineComponent)({__name:`Confirm`,props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:`Confirm`},cancelLabel:{default:`Cancel`},tone:{default:`danger`},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:`Working...`},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:`sm`},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:[`confirm`,`cancel`],setup(t,{expose:g,emit:_}){let v=t,y=_,b=(0,s.useId)(),x=`nb-confirm-title-${b}`,S=`nb-confirm-body-${b}`,C=(0,s.useSlots)(),w=(0,s.ref)(null),T=(0,s.ref)(null),E=(0,s.ref)(null),D=(0,s.ref)(``),O=e.useReducedMotion(),k=(0,s.computed)(()=>v.busy||v.succeeded);function A(){return!!v.message||!!v.subject||!!C.default}let j=(0,s.computed)(()=>v.tone===`danger`?`danger`:`primary`),M=(0,s.computed)(()=>v.typeToConfirmLabel??`Type ${v.typeToConfirm} to confirm`),N=(0,s.computed)(()=>!v.typeToConfirm||D.value.trim()===v.typeToConfirm),P=(0,s.computed)(()=>N.value&&!k.value);function F(){P.value&&y(`confirm`)}function I(){let e=E.value?.$el;return e instanceof HTMLElement?e:null}function L(){return w.value?.closest(`[role="dialog"],[role="alertdialog"]`)??null}function te(){return typeof document>`u`?[]:Array.from(document.querySelectorAll(`[aria-modal="true"]`))}function R(){let e=L();if(!e)return!1;let t=te();return t.length===0||t[t.length-1]===e}let ne=[`a[href]:not([tabindex="-1"])`,`area[href]:not([tabindex="-1"])`,`button:not([disabled]):not([tabindex="-1"])`,`input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])`,`select:not([disabled]):not([tabindex="-1"])`,`textarea:not([disabled]):not([tabindex="-1"])`,`summary:not([tabindex="-1"])`,`audio[controls]:not([tabindex="-1"])`,`video[controls]:not([tabindex="-1"])`,`iframe:not([tabindex="-1"])`,`[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])`,`[tabindex]:not([tabindex="-1"])`].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(`,`);function re(){return o.i(v.floatingSelectors)}function z(e){return e instanceof Element?!!e.closest(re()):!1}function B(e){let t=L();return!!t&&!!e&&t.contains(e)}function V(){let e=L();return e?Array.from(e.querySelectorAll(ne)).filter(e=>e.getAttribute(`aria-disabled`)!==`true`):[]}function H(){let e=L();return e?(e.focus(),!0):!1}function U(){let e=V()[0];e?e.focus():H()}let W=null;function G(){let e=W;W=null,e?.isConnected&&e.focus()}function K(){o.r(L(),O.value)}(0,s.watch)(O,()=>{v.open&&K()}),(0,s.watch)(()=>[v.busy,v.error],async(e,t)=>{if(!v.open)return;let[n,r]=e,i=t?.[0]??!1;if(await(0,s.nextTick)(),n){V().length===0&&H();return}if(i&&r){let e=T.value;e?e.focus():U();return}let a=document.activeElement;!B(a)&&!z(a)&&U()}),(0,s.watch)(()=>v.open,async e=>{e?(W=document.activeElement instanceof HTMLElement?document.activeElement:null,D.value=``,await(0,s.nextTick)(),K(),I()?I()?.focus():H()):G()},{immediate:!0});function q(){k.value||y(`cancel`)}let J=!1,Y=!1;function X(e){let t=e.target;J=B(t)||z(t)}function Z(e){Y=B(e.target)}function ie(){let e=J&&!Y;J=!1,!e&&q()}function Q(e){if(!v.open||z(document.activeElement))return;if(e.key===`Escape`){if(!R())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),q();return}if(e.key!==`Tab`||!R())return;let t=V();if(t.length===0){e.preventDefault(),B(document.activeElement)||H();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||!B(i))?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r?(e.preventDefault(),n.focus()):B(i)||(e.preventDefault(),n.focus())}function $(e){if(!v.open)return;let t=e.relatedTarget;if(t instanceof Element){if(B(t)||z(t))return}else if(t!==null)return;requestAnimationFrame(()=>{if(!v.open)return;let e=document.activeElement;B(e)||z(e)||e&&e!==document.body&&!e.isConnected||R()&&U()})}return typeof document<`u`&&(document.addEventListener(`keydown`,Q,!0),document.addEventListener(`focusout`,$,!0),document.addEventListener(`mousedown`,X,!0),document.addEventListener(`touchstart`,X,!0),document.addEventListener(`click`,Z,!0)),(0,s.onMounted)(()=>{v.open&&(K(),I()?I()?.focus():H())}),(0,s.onUnmounted)(()=>{typeof document<`u`&&(document.removeEventListener(`keydown`,Q,!0),document.removeEventListener(`focusout`,$,!0),document.removeEventListener(`mousedown`,X,!0),document.removeEventListener(`touchstart`,X,!0),document.removeEventListener(`click`,Z,!0)),G()}),g({focusCancel:()=>I()?.focus(),restoreFocus:G,isTopmost:R}),(e,g)=>((0,s.openBlock)(),(0,s.createBlock)(o.t,{open:t.open,size:t.size,role:t.tone===`danger`?`alertdialog`:`dialog`,"labelled-by":x,"described-by":A()?S:void 0,busy:t.busy,"close-on-overlay":!k.value,"close-disabled":k.value,"close-on-escape":!1,"trap-focus":!1,onClose:ie},{header:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{id:x,class:(0,s.normalizeClass)([`nb-confirm__heading`,`nb-confirm__heading--${t.tone}`])},[t.tone===`danger`?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:0,name:(0,s.unref)(c.regular),size:16,"aria-hidden":`true`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.title),1)],2)]),footer:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{ref_key:`cancelRef`,ref:E,class:`nb-confirm__action nb-confirm__action--cancel`,variant:`ghost`,size:`lg`,disabled:k.value,"data-nb-confirm":`cancel`,onClick:q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.cancelLabel),1)]),_:1},8,[`disabled`]),(0,s.createVNode)(r.t,{class:`nb-confirm__action nb-confirm__action--confirm`,variant:j.value,size:`lg`,disabled:!P.value,loading:t.busy,"data-nb-confirm":`confirm`,onClick:F},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.confirmLabel),1)]),_:1},8,[`variant`,`disabled`,`loading`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`rootRef`,ref:w,class:(0,s.normalizeClass)([`nb-confirm`,t.contentClass])},[A()?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:S,class:`nb-confirm__body`},[(0,s.renderSlot)(e.$slots,`default`,{},()=>[t.message?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,l,(0,s.toDisplayString)(t.message),1)):(0,s.createCommentVNode)(``,!0)],!0),t.subject?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,class:(0,s.normalizeClass)([`nb-confirm__subject`,`nb-confirm__subject--${t.tone}`])},[t.subjectLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,u,(0,s.toDisplayString)(t.subjectLabel),1)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,d,(0,s.toDisplayString)(t.subject),1)],2)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),t.typeToConfirm?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,f,[(0,s.createVNode)(a.t,{modelValue:D.value,"onUpdate:modelValue":g[0]||=e=>D.value=e,class:`nb-confirm__gate-field`,label:M.value,helper:t.typeToConfirmHelper,disabled:k.value,autocomplete:`off`,spellcheck:`false`,"data-nb-confirm":`gate`,onKeydown:g[1]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`helper`,`disabled`])])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,p,[t.busy?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,m,(0,s.toDisplayString)(t.busyLabel),1)):(0,s.createCommentVNode)(``,!0),t.succeeded&&t.successLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,h,[(0,s.createVNode)(n.t,{name:(0,s.unref)(ee.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.successLabel),1)])):(0,s.createCommentVNode)(``,!0),t.error?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:2,ref_key:`errorRef`,ref:T,class:`nb-confirm__error`,tabindex:`-1`},[(0,s.createVNode)(i.t,{variant:`error`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.error),1)]),_:1})],512)):(0,s.createCommentVNode)(``,!0)])],2)]),_:3},8,[`open`,`size`,`role`,`described-by`,`busy`,`close-on-overlay`,`close-disabled`]))}}),_=t.t(g,[[`__scopeId`,`data-v-683eafb1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|