@nubisco/ui 5.52.2 → 5.54.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/{ActionGroup-McCtSDV8.cjs → ActionGroup-0rG92kFk.cjs} +1 -1
- package/dist/{ActionGroup-CkwZEnUN.js → ActionGroup-Cn22xj1t.js} +2 -2
- package/dist/{AiLabel-oV9j_9bX.cjs → AiLabel-AGSSBanb.cjs} +1 -1
- package/dist/{AiLabel-DKhHwWNt.js → AiLabel-D32aNf1F.js} +1 -1
- package/dist/{AiProvider-GiId484Q.cjs → AiProvider-CLtCD_UR.cjs} +1 -1
- package/dist/{AiProvider-D1Sn67yz.js → AiProvider-gprbR5ts.js} +14 -14
- package/dist/{AiUsage-C2t5uXV-.cjs → AiUsage-XOKmuxyo.cjs} +1 -1
- package/dist/{AiUsage-eY9pNKxE.js → AiUsage-v8EdG3EN.js} +2 -2
- package/dist/{BackToTop-DumUwoJ1.js → BackToTop-BDFb1y3c.js} +1 -1
- package/dist/{BackToTop-DQ6vCoQu.cjs → BackToTop-R6yiw3lt.cjs} +1 -1
- package/dist/{Banner-FWDVwwVx.js → Banner-BjnbX4C3.js} +5 -5
- package/dist/{Banner-DTIRkPRb.cjs → Banner-C-mikJ5n.cjs} +1 -1
- package/dist/{BarChart-DKpSrGm3.cjs → BarChart-CVoLmSKs.cjs} +1 -1
- package/dist/{BarChart-hs_OZZD4.js → BarChart-GO-rGcKL.js} +5 -5
- package/dist/{BatchActions-DmMLy_y-.cjs → BatchActions-6IO5GRFm.cjs} +1 -1
- package/dist/{BatchActions-B5hv7U0E.js → BatchActions-Ckx8kyZt.js} +2 -2
- package/dist/Blueprint-BDPb5y1N.cjs +1 -0
- package/dist/Blueprint-DEboZ8ul.js +1538 -0
- package/dist/{BlueprintCard-Ce48mEtN.js → BlueprintCard-BO2pjY2S.js} +206 -162
- package/dist/BlueprintCard-CDxodt3T.cjs +1 -0
- package/dist/{BlueprintControls-DQE_gDOe.js → BlueprintControls-Bt4KoDp5.js} +5 -5
- package/dist/{BlueprintControls-C0V9FX8S.cjs → BlueprintControls-zX5yxOB1.cjs} +1 -1
- package/dist/{Board-DyAO3ko2.js → Board-BdqGOVNF.js} +1 -1
- package/dist/{Board-Htlm-mra.cjs → Board-DtOWyvKh.cjs} +1 -1
- package/dist/{BottomPanel-Dad7czGY.cjs → BottomPanel-C_u39INJ.cjs} +1 -1
- package/dist/{BottomPanel-BsfMrQaS.js → BottomPanel-CkEc9gvb.js} +1 -1
- package/dist/{Breadcrumbs-DrXxTJB4.js → Breadcrumbs-Bc-acmPE.js} +2 -2
- package/dist/{Breadcrumbs-Ck445rx6.cjs → Breadcrumbs-BzyDVvEk.cjs} +1 -1
- package/dist/{Briefing-nJ0LjXnp.js → Briefing-BiEICh1u.js} +3 -3
- package/dist/{Briefing-UMUWCsHh.cjs → Briefing-DwKWCOGm.cjs} +1 -1
- package/dist/{BriefingDestination-BMsPXWd6.js → BriefingDestination-BjNteNgh.js} +1 -1
- package/dist/{BriefingDestination-B2_e90ZN.cjs → BriefingDestination-Cs1y3z_5.cjs} +1 -1
- package/dist/Button-CGIbF1e-.cjs +1 -0
- package/dist/{Button-CxJMKPpw.js → Button-DmJ_J3UO.js} +55 -53
- package/dist/{ButtonSet-2vJioRDT.js → ButtonSet-Cg1ixzOK.js} +1 -1
- package/dist/{ButtonSet-CbR2EwbT.cjs → ButtonSet-SziuuT6_.cjs} +1 -1
- package/dist/{Calendar-C_UWF6F5.js → Calendar-fVDg_EgD.js} +1 -1
- package/dist/{Calendar-BKJoim3w.cjs → Calendar-fsZN4OIr.cjs} +1 -1
- package/dist/ChatMessage-1L_xCXZF.cjs +1 -0
- package/dist/ChatMessage-C2Ecm175.js +66 -0
- package/dist/ChatThread-B_F3xTdE.cjs +1 -0
- package/dist/ChatThread-COdOb1rH.js +154 -0
- package/dist/{Checkbox-B6qnpOXg.cjs → Checkbox-B2O4tB6x.cjs} +1 -1
- package/dist/{Checkbox-Bf3XzGbG.js → Checkbox-U1tS47Qx.js} +1 -1
- package/dist/{CheckboxGroup-C3ng8k3R.js → CheckboxGroup-DRQxWsVv.js} +2 -2
- package/dist/{CheckboxGroup-BG1efn5_.cjs → CheckboxGroup-md4kjLSp.cjs} +1 -1
- package/dist/{CloseButton-D0Aj3uQK.cjs → CloseButton-Bdk7rJ8E.cjs} +1 -1
- package/dist/{CloseButton-BeaS7MQc.js → CloseButton-CAPfd6yf.js} +1 -1
- package/dist/{ColorStrip-BaLKZV51.js → ColorStrip-CZcIHOg3.js} +14 -14
- package/dist/{ColorStrip-D6p71EPQ.cjs → ColorStrip-EDliYkMo.cjs} +1 -1
- package/dist/{CommandPalette-CI31tVG0.cjs → CommandPalette-CC_Aj4Uh.cjs} +1 -1
- package/dist/{CommandPalette-Co6sxIQz.js → CommandPalette-zqTMjpm8.js} +1 -1
- package/dist/{Confirm-jHGXPMJE.cjs → Confirm-Baz2WG7b.cjs} +1 -1
- package/dist/{Confirm-CJQsUNOq.js → Confirm-CvMuXK9Q.js} +4 -4
- package/dist/{ContentSwitcher-B96jZqzZ.cjs → ContentSwitcher-DYxJZdcm.cjs} +1 -1
- package/dist/{ContentSwitcher-DCB9W7wd.js → ContentSwitcher-NpFxiGbz.js} +1 -1
- package/dist/{CopyButton-DMuuBwJc.cjs → CopyButton-D-cnpfOJ.cjs} +1 -1
- package/dist/{CopyButton-CfEOWedU.js → CopyButton-MOJj3pS0.js} +1 -1
- package/dist/{DataTable-CA_p6GdD.js → DataTable-B8THDBLS.js} +12 -12
- package/dist/{DataTable-DNAUGxuj.cjs → DataTable-DeFzOlcP.cjs} +1 -1
- package/dist/{DatePicker-l-HrmC9V.cjs → DatePicker-B5YRb64p.cjs} +1 -1
- package/dist/{DatePicker-DKNte5ZT.js → DatePicker-BrUXcNUj.js} +18 -18
- package/dist/{FileUploader-CYa_FX-W.js → FileUploader-CcGdRBxp.js} +1 -1
- package/dist/{FileUploader-DCTMJY5p.cjs → FileUploader-CcieVEGZ.cjs} +1 -1
- package/dist/{Form-Co-23Ktg.js → Form-BztycGqC.js} +1 -1
- package/dist/{Form-Bc4QF6Lk.cjs → Form-DlzhKRWM.cjs} +1 -1
- package/dist/{GanttChart-D24__YLV.cjs → GanttChart-BiDTXqR1.cjs} +1 -1
- package/dist/{GanttChart-C70BwZZo.js → GanttChart-CFGdp4xL.js} +3 -3
- package/dist/{ImageCropper-3omi5zWi.cjs → ImageCropper-CgmDT83u.cjs} +1 -1
- package/dist/{ImageCropper-lLgzrsWr.js → ImageCropper-D61PEzb2.js} +2 -2
- package/dist/{ImagePicker-DOnGfEc6.js → ImagePicker-LhpR7jjR.js} +2 -2
- package/dist/{ImagePicker-4LRkWaLL.cjs → ImagePicker-vhg7b-UL.cjs} +1 -1
- package/dist/{InlineLoading-BovtIkg7.cjs → InlineLoading-CA0_IT29.cjs} +1 -1
- package/dist/{InlineLoading-CNetV7ih.js → InlineLoading-Cknqq0vv.js} +4 -4
- package/dist/{InputGroup-BHOJSSQ_.cjs → InputGroup-CjcEkzFL.cjs} +1 -1
- package/dist/{InputGroup-OytJ8AMk.js → InputGroup-Dgv9hKmM.js} +5 -5
- package/dist/{InterpolationChart-DnHzBcLG.cjs → InterpolationChart-BWFOnJWn.cjs} +1 -1
- package/dist/{InterpolationChart-Cohmbfep.js → InterpolationChart-CiY-hBgJ.js} +3 -3
- package/dist/{LineChart-BNhJBKO6.cjs → LineChart-BdVIHw3u.cjs} +1 -1
- package/dist/{LineChart-lMX9rTr7.js → LineChart-D0h0rBVq.js} +5 -5
- package/dist/LogView-BLa9W5S7.js +136 -0
- package/dist/LogView-BNztzJri.cjs +2 -0
- package/dist/{Message-BJO4MjiQ.cjs → Message-B1CQ0Bcf.cjs} +1 -1
- package/dist/{Message-DCeg8qsC.js → Message-Bi70NgGd.js} +6 -6
- package/dist/{Modal-BywbXivu.js → Modal-CESCi2dE.js} +10 -10
- package/dist/{Modal-GsDlHF-E.cjs → Modal-C_EWDvmH.cjs} +1 -1
- package/dist/{NotificationCenter-4MBTSGRl.js → NotificationCenter-DkGc0ETD.js} +209 -209
- package/dist/{NotificationCenter-BuVz7oP1.cjs → NotificationCenter-DxZgHQyt.cjs} +1 -1
- package/dist/{NotificationCenterItem-zIL89umA.cjs → NotificationCenterItem--0XKF1Bf.cjs} +1 -1
- package/dist/{NotificationCenterItem-DdH7jvvg.js → NotificationCenterItem-Hf0S6Jls.js} +6 -6
- package/dist/{NumberInput-DmKNMQLk.js → NumberInput-B91ahziS.js} +5 -5
- package/dist/{NumberInput-04v9eS0u.cjs → NumberInput-DLPSNgsr.cjs} +1 -1
- package/dist/{OverflowMenu-DXJ8waZo.js → OverflowMenu-BWZ7c8oI.js} +1 -1
- package/dist/{OverflowMenu-CWgdicDN.cjs → OverflowMenu-C8q28FrD.cjs} +1 -1
- package/dist/{PageHeader-8n0wHC1J.cjs → PageHeader-DElq_kdh.cjs} +1 -1
- package/dist/{PageHeader-ChUje7zF.js → PageHeader-DOYN9sto.js} +1 -1
- package/dist/{Pagination-CvvzkY1W.cjs → Pagination-9mPN8ych.cjs} +1 -1
- package/dist/{Pagination-DccRxFxs.js → Pagination-CxBHFwy0.js} +2 -2
- package/dist/{PieChart-Be8RVmz0.js → PieChart-BgDtTMZg.js} +4 -4
- package/dist/{PieChart-0_n0Ihir.cjs → PieChart-WU4Cxtrp.cjs} +1 -1
- package/dist/{ProgressBar-C-mDH8u0.js → ProgressBar-B2ZMiY12.js} +4 -4
- package/dist/{ProgressBar-BSPcsJ13.cjs → ProgressBar-BSqwVfaP.cjs} +1 -1
- package/dist/{Radio-LlTK1Sug.cjs → Radio-BJ4SLyFW.cjs} +1 -1
- package/dist/{Radio-q_unHymB.js → Radio-CfJTD69M.js} +1 -1
- package/dist/{Search-CI787J6m.js → Search-Bwdxxe29.js} +2 -2
- package/dist/{Search-BxYPouus.cjs → Search-DIZ1Ea45.cjs} +1 -1
- package/dist/Select-7gJ3_fWh.js +615 -0
- package/dist/Select-Dg4HSHOu.cjs +1 -0
- package/dist/{Shell-Btxqmkh-.cjs → Shell-BZslT2aj.cjs} +1 -1
- package/dist/{Shell-nNxGdcuI.js → Shell-CRmhoU2H.js} +2 -2
- package/dist/{ShellPanel-D1-l6JRg.js → ShellPanel-C4vQJmRI.js} +1 -1
- package/dist/{ShellPanel-BeTojwfU.cjs → ShellPanel-DUBq5BL6.cjs} +1 -1
- package/dist/SidebarBrand-BPInsf52.cjs +1 -0
- package/dist/SidebarBrand-Dp9YZCqy.js +54 -0
- package/dist/{SidebarCollapseToggle-DobruD4n.cjs → SidebarCollapseToggle-CABmF-PC.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-BLY8EEaD.js → SidebarCollapseToggle-DraqbhwM.js} +2 -2
- package/dist/{SidebarHeaderToggle-TwULd9e3.cjs → SidebarHeaderToggle-DB2Q6u5x.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-BVfhMhvD.js → SidebarHeaderToggle-DbUS4eEa.js} +1 -1
- package/dist/SidebarMenuItem-DQRQtqrp.js +300 -0
- package/dist/SidebarMenuItem-Dwk7vKN5.cjs +1 -0
- package/dist/{Skeleton-CUUa44lM.cjs → Skeleton-D46kzIzB.cjs} +1 -1
- package/dist/{Skeleton-DI7l_96J.js → Skeleton-DFi5DNiP.js} +1 -1
- package/dist/{Slider-D7BgYMeu.js → Slider-B6QXQMqb.js} +8 -8
- package/dist/{Slider-CtN6andn.cjs → Slider-B7m_luyq.cjs} +1 -1
- package/dist/{Sparkline-0CmemDu3.js → Sparkline-B9547TtT.js} +1 -1
- package/dist/{Sparkline-ByPgkuSC.cjs → Sparkline-DfiriQYp.cjs} +1 -1
- package/dist/{Spinner-D_6qJT6u.js → Spinner-DYFhiTB1.js} +1 -1
- package/dist/{Spinner-BDwIIS4H.cjs → Spinner-j13gRoUF.cjs} +1 -1
- package/dist/{Stat-BiuBoOoE.cjs → Stat-BCvXYr-z.cjs} +1 -1
- package/dist/{Stat-C_Z2D-TS.js → Stat-No3RhGB3.js} +1 -1
- package/dist/{Stepper-CARQL6xx.cjs → Stepper-CoLXwmrJ.cjs} +1 -1
- package/dist/{Stepper-BG9PfjPD.js → Stepper-pk0QfMn_.js} +1 -1
- package/dist/{StepperStep-C7F_8ErM.js → StepperStep-BGUqRHwQ.js} +1 -1
- package/dist/{StepperStep-DHsfAMv0.cjs → StepperStep-Bo8aYLjJ.cjs} +1 -1
- package/dist/{SuggestionList-BT-xOJBx.cjs → SuggestionList-Cxy4jjjd.cjs} +1 -1
- package/dist/{SuggestionList-Cm0pD7_C.js → SuggestionList-Dv4yQAi-.js} +15 -15
- package/dist/{Switch-CqLfdT_m.js → Switch-Bvt-JPWp.js} +4 -4
- package/dist/{Switch-CQj6AsQh.cjs → Switch-PBdutuj_.cjs} +1 -1
- package/dist/{TableOfContents-B7Qmz4t9.js → TableOfContents-CeZX4dH0.js} +1 -1
- package/dist/{TableOfContents-IQordoiY.cjs → TableOfContents-D9FCu6gN.cjs} +1 -1
- package/dist/{Tabs-W2hUdYvl.cjs → Tabs-C9bZ5cp1.cjs} +1 -1
- package/dist/{Tabs-D_LFyWTX.js → Tabs-CCVuHp4s.js} +1 -1
- package/dist/{TextInput-DG8aUZeu.js → TextInput-BeqDf1R7.js} +12 -12
- package/dist/{TextInput-r8ap24-5.cjs → TextInput-SJ34hD2Y.cjs} +2 -2
- package/dist/{Toast-yB4u936W.cjs → Toast-CN5Jzkr5.cjs} +1 -1
- package/dist/{Toast-CpdX-63Q.js → Toast-DIf2XRCa.js} +8 -8
- package/dist/{Toaster-XMqkamDu.js → Toaster-ByObLDkk.js} +1 -1
- package/dist/{Toaster-BqCi69_x.cjs → Toaster-CJAbZ9pv.cjs} +1 -1
- package/dist/{Tree-hitkY9yg.cjs → Tree-BhR3gNlT.cjs} +1 -1
- package/dist/{Tree-Nn3HGP-T.js → Tree-CW-735rp.js} +1 -1
- package/dist/{TreeNode-giUfunjf.js → TreeNode-BGVvJ76v.js} +1 -1
- package/dist/{TreeNode-DHSYezap.cjs → TreeNode-Dx8SKr1Z.cjs} +1 -1
- package/dist/UserMenu-BjSO_Uml.cjs +1 -0
- package/dist/{UserMenu-C52WN7-m.js → UserMenu-CjmhyTwN.js} +56 -48
- package/dist/{Video-B0FTFBYF.js → Video-Agby8uRA.js} +1 -1
- package/dist/{Video-DxTpvMsS.cjs → Video-B93sRbBU.cjs} +1 -1
- package/dist/{Walkthrough-BRtkSFsq.js → Walkthrough-DYYqtpwJ.js} +2 -2
- package/dist/{Walkthrough-DO75HV1w.cjs → Walkthrough-DxAIdo3M.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +282 -276
- package/dist/blueprint-connect-DyenBFX3.cjs +1 -0
- package/dist/blueprint-connect-dcuHxtzp.js +6 -0
- package/dist/component-styles.json +23 -0
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/AiUsage.cjs +1 -1
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/AiUsage.vue.d.ts +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +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/BatchActions.cjs +1 -1
- package/dist/components/BatchActions.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/Blueprint.types.d.ts +58 -1
- package/dist/components/Blueprint.types.d.ts.map +1 -1
- package/dist/components/Blueprint.vue.d.ts +1 -0
- package/dist/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.types.d.ts +35 -5
- package/dist/components/BlueprintCard.types.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +1 -0
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintControls.vue.d.ts.map +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/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 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.context.d.ts +21 -0
- package/dist/components/Button.context.d.ts.map +1 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +1 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -1
- package/dist/components/ButtonSet.mjs +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/ChatMessage.cjs +1 -0
- package/dist/components/ChatMessage.d.ts +49 -0
- package/dist/components/ChatMessage.mjs +2 -0
- package/dist/components/ChatMessage.vue.d.ts +32 -0
- package/dist/components/ChatMessage.vue.d.ts.map +1 -0
- package/dist/components/ChatThread.cjs +1 -0
- package/dist/components/ChatThread.d.ts +62 -0
- package/dist/components/ChatThread.mjs +2 -0
- package/dist/components/ChatThread.vue.d.ts +49 -0
- package/dist/components/ChatThread.vue.d.ts.map +1 -0
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ChipGroup.cjs +1 -1
- package/dist/components/ChipGroup.mjs +1 -1
- package/dist/components/CloseButton.cjs +1 -1
- package/dist/components/CloseButton.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/Confirm.vue.d.ts +1 -1
- package/dist/components/ContainedList.cjs +1 -1
- package/dist/components/ContainedList.mjs +1 -1
- package/dist/components/ContainedListItem.cjs +1 -1
- package/dist/components/ContainedListItem.mjs +1 -1
- package/dist/components/ContentSwitcher.cjs +1 -1
- package/dist/components/ContentSwitcher.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/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/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.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/InlineLoading.vue.d.ts +1 -1
- package/dist/components/InputGroup.cjs +1 -1
- package/dist/components/InputGroup.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/LogView.cjs +1 -0
- package/dist/components/LogView.d.ts +75 -0
- package/dist/components/LogView.mjs +2 -0
- package/dist/components/LogView.vue.d.ts +27 -0
- package/dist/components/LogView.vue.d.ts.map +1 -0
- 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/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/NotificationCenterItem.vue.d.ts +1 -1
- package/dist/components/NubiscoMark.cjs +1 -1
- package/dist/components/NubiscoMark.mjs +1 -1
- package/dist/components/NubiscoPlatformMark.cjs +1 -1
- package/dist/components/NubiscoPlatformMark.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/OverflowMenu.cjs +1 -1
- package/dist/components/OverflowMenu.mjs +1 -1
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.mjs +1 -1
- package/dist/components/PageLayout.cjs +1 -1
- package/dist/components/PageLayout.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Search.cjs +1 -1
- package/dist/components/Search.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +2 -2
- 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.d.ts +11 -0
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarBrand.vue.d.ts +1 -0
- package/dist/components/SidebarBrand.vue.d.ts.map +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/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.d.ts +16 -0
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts +2 -0
- package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/SidebarStatus.cjs +1 -1
- package/dist/components/SidebarStatus.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Skeleton.vue.d.ts +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/Spinner.vue.d.ts +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/Stepper.vue.d.ts +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/StructuredList.cjs +1 -1
- package/dist/components/StructuredList.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/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/Toolbar.cjs +1 -1
- package/dist/components/Toolbar.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/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/blueprint-connect.d.ts +16 -0
- package/dist/components/blueprint-connect.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +3 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +3 -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/useFollowNewest.composable.cjs +1 -0
- package/dist/composables/useFollowNewest.composable.d.ts +21 -0
- package/dist/composables/useFollowNewest.composable.d.ts.map +1 -0
- package/dist/composables/useFollowNewest.composable.mjs +47 -0
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/composables/useNbStrings.composable.cjs +1 -1
- package/dist/composables/useNbStrings.composable.d.ts +26 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +19 -0
- package/dist/global.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +155 -152
- package/dist/{main-Dr-OZ97R.cjs → main-Cs0FFBfV.cjs} +2 -2
- package/dist/{main-hHSQ2Z9E.js → main-D6qY7QeE.js} +76 -76
- package/dist/main.d.ts +17 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/Blueprint.css +1 -1
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/BlueprintControls.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/ChatMessage.css +1 -0
- package/dist/styles/ChatThread.css +1 -0
- package/dist/styles/LogView.css +1 -0
- package/dist/styles/SidebarBrand.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/ui.css +11 -8
- package/package.json +1 -1
- package/src/styles/_theme.scss +5 -0
- package/dist/Blueprint-ePiyl5dw.js +0 -1501
- package/dist/Blueprint-kNZLEHJz.cjs +0 -1
- package/dist/BlueprintCard-L5FqZKvJ.cjs +0 -1
- package/dist/Button-5ClGtoaz.cjs +0 -1
- package/dist/Select-C3AHxgi1.cjs +0 -1
- package/dist/Select-e-sgQurr.js +0 -615
- package/dist/SidebarBrand-DmWBakJG.cjs +0 -1
- package/dist/SidebarBrand-Dz8O0JHj.js +0 -31
- package/dist/SidebarMenuItem-D7rkGP2L.js +0 -268
- package/dist/SidebarMenuItem-DYREDfqx.cjs +0 -1
- package/dist/UserMenu-DFxqVHMM.cjs +0 -1
- /package/dist/{Badge-BYfdJcdD.cjs → Badge-Bf0l95o1.cjs} +0 -0
- /package/dist/{Badge-scjsdx_V.js → Badge-TXLmvfLG.js} +0 -0
- /package/dist/{Blueprint.context-KUd38ozw.cjs → Blueprint.context-CKxT98w8.cjs} +0 -0
- /package/dist/{Blueprint.context-CWzHXNtU.js → Blueprint.context-Cr8R0YY2.js} +0 -0
- /package/dist/{BlueprintBackground-CfII_po9.cjs → BlueprintBackground-BSrAsA2t.cjs} +0 -0
- /package/dist/{BlueprintBackground-CBU9iwAA.js → BlueprintBackground-XyU-rJ20.js} +0 -0
- /package/dist/{BlueprintMinimap-5mdeNCgk.cjs → BlueprintMinimap-DIjmvRAm.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CP2-gY4i.js → BlueprintMinimap-DWx_bkp3.js} +0 -0
- /package/dist/{ChartLegend-LDNukufA.js → ChartLegend-CQQwcGvz.js} +0 -0
- /package/dist/{ChartLegend-COJeG-2B.cjs → ChartLegend-DMxlEhT6.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-B21mAPv4.js → CheckboxGroup.context-B2xhGoXC.js} +0 -0
- /package/dist/{CheckboxGroup.context-DRWqTj9S.cjs → CheckboxGroup.context-RLOznZPB.cjs} +0 -0
- /package/dist/{ChipGroup-BplLSI81.cjs → ChipGroup-C8ar8YCb.cjs} +0 -0
- /package/dist/{ChipGroup-BNp7OB2t.js → ChipGroup-E8l7aJxx.js} +0 -0
- /package/dist/{ContainedList-PUA2OJ08.js → ContainedList-DPGBeeeX.js} +0 -0
- /package/dist/{ContainedList-CBWwEmoK.cjs → ContainedList-Dky4V9Ob.cjs} +0 -0
- /package/dist/{ContainedListItem-BKvHedZO.cjs → ContainedListItem-3p-iC-eG.cjs} +0 -0
- /package/dist/{ContainedListItem-8z2bmoRG.js → ContainedListItem-BLn6xfWd.js} +0 -0
- /package/dist/{DefinitionList-BOVcW-V7.js → DefinitionList--Q2HEB_R.js} +0 -0
- /package/dist/{DefinitionList-CndoLDLs.cjs → DefinitionList-CGIDl914.cjs} +0 -0
- /package/dist/{DefinitionListItem-C3VrLhWY.js → DefinitionListItem-B4iWsaSC.js} +0 -0
- /package/dist/{DefinitionListItem-CLztc8mQ.cjs → DefinitionListItem-CR5vx_kx.cjs} +0 -0
- /package/dist/{DragHandle-IJoaUK75.cjs → DragHandle-BiYccTJN.cjs} +0 -0
- /package/dist/{DragHandle-CuEBPvz8.js → DragHandle-qTw3v4uw.js} +0 -0
- /package/dist/{EmptyState-Db0Zrrk2.cjs → EmptyState-1ZLgFpJO.cjs} +0 -0
- /package/dist/{EmptyState-DhlJV0C6.js → EmptyState-DE1pPuw-.js} +0 -0
- /package/dist/{Field-COMPegVv.cjs → Field-AXSzk3l3.cjs} +0 -0
- /package/dist/{Field-D12Dja-u.js → Field-B8wNroAI.js} +0 -0
- /package/dist/{Flag-CKhucUhD.js → Flag-DxtJyiq7.js} +0 -0
- /package/dist/{Flag-D5hPnq37.cjs → Flag-sm9H7OLB.cjs} +0 -0
- /package/dist/{FloatingToolbar-Clz7tlQQ.js → FloatingToolbar-BikX_AsP.js} +0 -0
- /package/dist/{FloatingToolbar-By_-ubVi.cjs → FloatingToolbar-DWVY8Fxo.cjs} +0 -0
- /package/dist/{Grid-B7d8x0tA.js → Grid-BVIhOyQ1.js} +0 -0
- /package/dist/{Grid-BOtE_jXr.cjs → Grid-tn5_R2fP.cjs} +0 -0
- /package/dist/{InlineEdit-hVNTw3FL.cjs → InlineEdit-DNYN-OKH.cjs} +0 -0
- /package/dist/{InlineEdit-Ccm5eW9r.js → InlineEdit-vsfyBgw7.js} +0 -0
- /package/dist/{JsonTree-E9Z-ELBN.js → JsonTree-6CdJ-Gzr.js} +0 -0
- /package/dist/{JsonTree-D2auUavc.cjs → JsonTree-Da24d7DW.cjs} +0 -0
- /package/dist/{Layer--aoEMtI2.js → Layer-CSuwMbCG.js} +0 -0
- /package/dist/{Layer-C8RYJ-6a.cjs → Layer-DgvW9hHn.cjs} +0 -0
- /package/dist/{MenuBar-3tuFXaKq.cjs → MenuBar-C9DS_hIo.cjs} +0 -0
- /package/dist/{MenuBar-T-R82ARB.js → MenuBar-DVv2g_rC.js} +0 -0
- /package/dist/{MenuBarItem-GgXvNoo-.cjs → MenuBarItem-DlnIAhRw.cjs} +0 -0
- /package/dist/{MenuBarItem-DWx9J8-L.js → MenuBarItem-yr5aizl3.js} +0 -0
- /package/dist/{MenuDivider-9wQ-fCik.cjs → MenuDivider-CN0P3E6g.cjs} +0 -0
- /package/dist/{MenuDivider-ksA6NvMu.js → MenuDivider-DdwhPon9.js} +0 -0
- /package/dist/{NubiscoMark-BmzCQO-3.js → NubiscoMark-0ZIaMys6.js} +0 -0
- /package/dist/{NubiscoMark-xthZ972G.cjs → NubiscoMark-BM7WFUNi.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-DCr77bqN.js → NubiscoPlatformMark-D09gaMWr.js} +0 -0
- /package/dist/{NubiscoPlatformMark-DA2jJFJN.cjs → NubiscoPlatformMark-DoU7dFxt.cjs} +0 -0
- /package/dist/{PageLayout-DHi1w1PD.cjs → PageLayout-BkkrJvOm.cjs} +0 -0
- /package/dist/{PageLayout-BMcT2mzU.js → PageLayout-Czzxu6ua.js} +0 -0
- /package/dist/{Panel-7LIVYu68.js → Panel-4itscCsS.js} +0 -0
- /package/dist/{Panel-BRPE3B-O.cjs → Panel-BKASZF-B.cjs} +0 -0
- /package/dist/{ReorderList-qScXc3-v.cjs → ReorderList-DJSXspkB.cjs} +0 -0
- /package/dist/{ReorderList-DmjW30Mw.js → ReorderList-DRFcrUfl.js} +0 -0
- /package/dist/{SidebarLink-D1rsmzP_.cjs → SidebarLink-C-tnZtCU.cjs} +0 -0
- /package/dist/{SidebarLink-qbDy2Jip.js → SidebarLink-D9w9PHz_.js} +0 -0
- /package/dist/{SidebarMenu-CEff0kWr.cjs → SidebarMenu-BVqk_jY1.cjs} +0 -0
- /package/dist/{SidebarMenu-Cz7k20qd.js → SidebarMenu-CxFS4i9J.js} +0 -0
- /package/dist/{SidebarMenuGroup-BvrYrQQi.js → SidebarMenuGroup-BxMynLi3.js} +0 -0
- /package/dist/{SidebarMenuGroup-vc3SM277.cjs → SidebarMenuGroup-CPhxz_bV.cjs} +0 -0
- /package/dist/{SidebarStatus-COgGJjkA.js → SidebarStatus-Bw8CU-vJ.js} +0 -0
- /package/dist/{SidebarStatus-Coh-cSGj.cjs → SidebarStatus-Cv95lDM4.cjs} +0 -0
- /package/dist/{Stepper.context-CIIC0ucN.cjs → Stepper.context--rpq0sA4.cjs} +0 -0
- /package/dist/{Stepper.context-BBwBAwSJ.js → Stepper.context-BI40m7my.js} +0 -0
- /package/dist/{StructuredList-BexC0c1Z.cjs → StructuredList-C7A2hCt7.cjs} +0 -0
- /package/dist/{StructuredList-DuBBP01p.js → StructuredList-DuHjSiZQ.js} +0 -0
- /package/dist/{Submenu-M1q8mdSB.js → Submenu-BDs-yAqv.js} +0 -0
- /package/dist/{Submenu-DK6C5mjc.cjs → Submenu-BLjx2kWl.cjs} +0 -0
- /package/dist/{TextInput.context-B-mipPOo.js → TextInput.context-CIHw4T0Y.js} +0 -0
- /package/dist/{TextInput.context-ChkcqMNM.cjs → TextInput.context-pJ99Jqwr.cjs} +0 -0
- /package/dist/{Toolbar-DN0gMuyj.cjs → Toolbar-0yonvSaQ.cjs} +0 -0
- /package/dist/{Toolbar-Cc_31FMW.js → Toolbar-DX2l8FUL.js} +0 -0
- /package/dist/{TreeContext-JbeO4_mW.cjs → TreeContext-CA4uqhBq.cjs} +0 -0
- /package/dist/{TreeContext-BSNQGIEd.js → TreeContext-CwTEdedz.js} +0 -0
- /package/dist/{Wireframe-B-Dnmefu.js → Wireframe-DJRZl5rd.js} +0 -0
- /package/dist/{Wireframe-DBqyeEzE.cjs → Wireframe-Dhxj8wYJ.cjs} +0 -0
- /package/dist/{palette-BPqd521m.js → palette-4rzDlIAy.js} +0 -0
- /package/dist/{palette-MlQ_k4iu.cjs → palette-DxWvvteq.cjs} +0 -0
- /package/dist/{pixi-scene-RJljCo62.cjs → pixi-scene-ZtVQmHpg.cjs} +0 -0
- /package/dist/{pixi-scene-CdHSFEve.js → pixi-scene-hlXJlAf5.js} +0 -0
- /package/dist/{scales-BRSHTjbp.cjs → scales-Dbh3TYrl.cjs} +0 -0
- /package/dist/{scales-BGzTviac.js → scales-TfA6Pl4e.js} +0 -0
- /package/dist/{useChartEntrance-D8vJ7eWq.cjs → useChartEntrance-BSMpWsax.cjs} +0 -0
- /package/dist/{useChartEntrance-heEx5_ZG.js → useChartEntrance-BqG_st9U.js} +0 -0
- /package/dist/{useChartSize-05CLdiR0.js → useChartSize-B-Rv6Q7a.js} +0 -0
- /package/dist/{useChartSize-CUZ7BuGD.cjs → useChartSize-c75YO_2m.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-CZT2zf7e.js → useLoadingAnnouncer.composable-Cihu0ZHU.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BXyCMUDe.cjs → useLoadingAnnouncer.composable-vqmtAsfY.cjs} +0 -0
- /package/dist/{vue-i18n-D8JKgg8C.cjs → vue-i18n-BaeznwnA.cjs} +0 -0
- /package/dist/{vue-i18n-B8N89VAx.js → vue-i18n-DgCNp5tk.js} +0 -0
|
@@ -0,0 +1,1538 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
+
import { n as t, t as n } from "./Blueprint.context-Cr8R0YY2.js";
|
|
3
|
+
import { t as r } from "./blueprint-connect-dcuHxtzp.js";
|
|
4
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, onMounted as h, openBlock as g, provide as _, ref as v, renderList as y, renderSlot as b, unref as x, useSlots as S, vShow as C, watch as w, withCtx as T, withDirectives as E, withModifiers as D } from "vue";
|
|
5
|
+
//#region src/components/blueprint-port-cache.ts
|
|
6
|
+
function O(e) {
|
|
7
|
+
let t = /* @__PURE__ */ new Map();
|
|
8
|
+
function n(n, r) {
|
|
9
|
+
let i = `${n}:${r}`, a = t.get(i);
|
|
10
|
+
if (a && a.isConnected) return a;
|
|
11
|
+
a && t.delete(i);
|
|
12
|
+
let o = e();
|
|
13
|
+
if (!o) return null;
|
|
14
|
+
let s = o.querySelector(`[data-port="${n}:${r}"]`);
|
|
15
|
+
return s && t.set(i, s), s;
|
|
16
|
+
}
|
|
17
|
+
function r() {
|
|
18
|
+
for (let [e, n] of t) n.isConnected || t.delete(e);
|
|
19
|
+
}
|
|
20
|
+
function i() {
|
|
21
|
+
t.clear();
|
|
22
|
+
}
|
|
23
|
+
function a() {
|
|
24
|
+
return t.size;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
get: n,
|
|
28
|
+
prune: r,
|
|
29
|
+
clear: i,
|
|
30
|
+
size: a
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function ee(e) {
|
|
34
|
+
return e instanceof Element ? e.parentElement?.classList.contains("nb-blueprint__canvas") ?? !1 : !1;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/BlueprintDomRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
38
|
+
var te = { class: "nb-blueprint__wires" }, k = [
|
|
39
|
+
"d",
|
|
40
|
+
"data-wire-index",
|
|
41
|
+
"onMousedown",
|
|
42
|
+
"onContextmenu",
|
|
43
|
+
"onMousemove",
|
|
44
|
+
"onMouseleave"
|
|
45
|
+
], ne = ["d", "stroke"], A = ["d", "stroke"], j = ["d"], re = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
46
|
+
__name: "BlueprintDomRenderer",
|
|
47
|
+
props: {
|
|
48
|
+
panX: {},
|
|
49
|
+
panY: {},
|
|
50
|
+
zoom: {},
|
|
51
|
+
isTransforming: { type: Boolean },
|
|
52
|
+
wires: {},
|
|
53
|
+
windowed: { type: Boolean },
|
|
54
|
+
visibleCards: {},
|
|
55
|
+
dragWire: {},
|
|
56
|
+
shouldFlow: { type: Function },
|
|
57
|
+
levelColoring: { type: Boolean },
|
|
58
|
+
activityStyle: {},
|
|
59
|
+
animateConnections: {},
|
|
60
|
+
background: {},
|
|
61
|
+
liveData: {}
|
|
62
|
+
},
|
|
63
|
+
emits: [
|
|
64
|
+
"wire-mousedown",
|
|
65
|
+
"wire-contextmenu",
|
|
66
|
+
"wire-mousemove",
|
|
67
|
+
"wire-mouseleave"
|
|
68
|
+
],
|
|
69
|
+
setup(e, { emit: t }) {
|
|
70
|
+
let n = e, r = t, o = a(() => `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`), u = a(() => n.isTransforming ? "transform" : void 0), d = a(() => ({
|
|
71
|
+
transform: o.value,
|
|
72
|
+
willChange: u.value
|
|
73
|
+
})), m = a(() => ({
|
|
74
|
+
transform: o.value,
|
|
75
|
+
transformOrigin: "0 0",
|
|
76
|
+
willChange: u.value
|
|
77
|
+
}));
|
|
78
|
+
return (t, n) => (g(), c(i, null, [e.background === "none" ? s("", !0) : (g(), c("div", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: f(["nb-blueprint__grid", `nb-blueprint__grid--${e.background}`]),
|
|
81
|
+
style: p(d.value)
|
|
82
|
+
}, null, 6)), l("div", {
|
|
83
|
+
class: "nb-blueprint__canvas",
|
|
84
|
+
style: p(m.value)
|
|
85
|
+
}, [(g(), c("svg", te, [
|
|
86
|
+
(g(!0), c(i, null, y(e.wires, (e, t) => (g(), c("g", {
|
|
87
|
+
key: t,
|
|
88
|
+
class: "nb-blueprint__wire-group"
|
|
89
|
+
}, [l("path", {
|
|
90
|
+
d: e.path,
|
|
91
|
+
fill: "none",
|
|
92
|
+
stroke: "transparent",
|
|
93
|
+
"stroke-width": "14",
|
|
94
|
+
class: "nb-blueprint__wire-hitregion",
|
|
95
|
+
"data-wire-index": t,
|
|
96
|
+
onMousedown: (t) => r("wire-mousedown", t, e.conn),
|
|
97
|
+
onContextmenu: D((t) => r("wire-contextmenu", t, e.conn), ["prevent"]),
|
|
98
|
+
onMousemove: (t) => r("wire-mousemove", t, e.conn),
|
|
99
|
+
onMouseleave: (t) => r("wire-mouseleave", e.conn)
|
|
100
|
+
}, null, 40, k), l("path", {
|
|
101
|
+
d: e.path,
|
|
102
|
+
fill: "none",
|
|
103
|
+
stroke: e.color,
|
|
104
|
+
"stroke-width": "1.5",
|
|
105
|
+
class: f(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
|
|
106
|
+
"pointer-events": "none"
|
|
107
|
+
}, null, 10, ne)]))), 128)),
|
|
108
|
+
(g(!0), c(i, null, y(e.wires, (t, n) => E((g(), c("path", {
|
|
109
|
+
key: `flow-${n}`,
|
|
110
|
+
d: t.path,
|
|
111
|
+
fill: "none",
|
|
112
|
+
stroke: t.color,
|
|
113
|
+
"stroke-width": "1.5",
|
|
114
|
+
"stroke-dasharray": "4 8",
|
|
115
|
+
class: "nb-blueprint__wire-flow",
|
|
116
|
+
"pointer-events": "none"
|
|
117
|
+
}, null, 8, A)), [[C, e.shouldFlow(t.conn)]])), 128)),
|
|
118
|
+
e.dragWire ? (g(), c("path", {
|
|
119
|
+
key: 0,
|
|
120
|
+
d: e.dragWire,
|
|
121
|
+
fill: "none",
|
|
122
|
+
stroke: "var(--nb-c-primary)",
|
|
123
|
+
"stroke-width": "2",
|
|
124
|
+
"stroke-dasharray": "6 3",
|
|
125
|
+
opacity: "0.6"
|
|
126
|
+
}, null, 8, j)) : s("", !0)
|
|
127
|
+
])), e.windowed ? (g(!0), c(i, { key: 0 }, y(e.visibleCards, (e) => (g(), c("div", {
|
|
128
|
+
key: e.id,
|
|
129
|
+
class: "nb-blueprint__card-wrapper",
|
|
130
|
+
style: p({
|
|
131
|
+
position: "absolute",
|
|
132
|
+
left: `${e.x}px`,
|
|
133
|
+
top: `${e.y}px`
|
|
134
|
+
})
|
|
135
|
+
}, [b(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : b(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
|
|
136
|
+
}
|
|
137
|
+
}), [["__scopeId", "data-v-387c811f"]]), M = { class: "nb-blueprint__wires" }, N = ["d", "stroke"], P = [
|
|
138
|
+
"d",
|
|
139
|
+
"data-wire-index",
|
|
140
|
+
"onMousedown",
|
|
141
|
+
"onContextmenu",
|
|
142
|
+
"onMousemove",
|
|
143
|
+
"onMouseleave"
|
|
144
|
+
], F = ["d"], I = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
145
|
+
__name: "BlueprintPixiRenderer",
|
|
146
|
+
props: {
|
|
147
|
+
panX: {},
|
|
148
|
+
panY: {},
|
|
149
|
+
zoom: {},
|
|
150
|
+
isTransforming: { type: Boolean },
|
|
151
|
+
wires: {},
|
|
152
|
+
windowed: { type: Boolean },
|
|
153
|
+
visibleCards: {},
|
|
154
|
+
dragWire: {},
|
|
155
|
+
shouldFlow: { type: Function },
|
|
156
|
+
levelColoring: { type: Boolean },
|
|
157
|
+
activityStyle: {},
|
|
158
|
+
animateConnections: {},
|
|
159
|
+
background: {},
|
|
160
|
+
liveData: {}
|
|
161
|
+
},
|
|
162
|
+
emits: [
|
|
163
|
+
"wire-mousedown",
|
|
164
|
+
"wire-contextmenu",
|
|
165
|
+
"wire-mousemove",
|
|
166
|
+
"wire-mouseleave",
|
|
167
|
+
"unavailable"
|
|
168
|
+
],
|
|
169
|
+
setup(e, { emit: t }) {
|
|
170
|
+
let n = e, r = t, o = v(), u = v(), d = v(!1), _ = null, x, S = a(() => ({
|
|
171
|
+
transform: `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`,
|
|
172
|
+
transformOrigin: "0 0",
|
|
173
|
+
willChange: n.isTransforming ? "transform" : "auto"
|
|
174
|
+
}));
|
|
175
|
+
function C() {
|
|
176
|
+
let e = o.value?.parentElement;
|
|
177
|
+
return {
|
|
178
|
+
width: e?.clientWidth ?? 0,
|
|
179
|
+
height: e?.clientHeight ?? 0
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
async function T() {
|
|
183
|
+
let e = o.value, t = u.value;
|
|
184
|
+
if (!(!e || !t)) try {
|
|
185
|
+
let [r, { PixiScene: i }] = await Promise.all([import("pixi.js"), import("./pixi-scene-hlXJlAf5.js")]), { width: a, height: s } = C(), c = await i.create(r, {
|
|
186
|
+
canvas: e,
|
|
187
|
+
el: t,
|
|
188
|
+
width: a,
|
|
189
|
+
height: s,
|
|
190
|
+
resolution: window.devicePixelRatio || 1,
|
|
191
|
+
background: n.background,
|
|
192
|
+
liveData: n.liveData
|
|
193
|
+
});
|
|
194
|
+
if (!o.value) {
|
|
195
|
+
c.destroy();
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
_ = c, E(), d.value = !0, O();
|
|
199
|
+
} catch (e) {
|
|
200
|
+
r("unavailable", e);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
function E() {
|
|
204
|
+
_ && (_.setCamera(n.panX, n.panY, n.zoom), _.setLevelColoring(n.levelColoring ?? !1), _.setActivityStyle(n.activityStyle ?? "flow"), _.setWires(n.wires, n.shouldFlow), _.setMeters(n.visibleCards));
|
|
205
|
+
}
|
|
206
|
+
function O() {
|
|
207
|
+
let e = o.value?.parentElement;
|
|
208
|
+
e && (x = new ResizeObserver(() => {
|
|
209
|
+
if (!_) return;
|
|
210
|
+
let { width: e, height: t } = C();
|
|
211
|
+
_.resize(e, t, window.devicePixelRatio || 1);
|
|
212
|
+
}), x.observe(e));
|
|
213
|
+
}
|
|
214
|
+
return w(() => [
|
|
215
|
+
n.panX,
|
|
216
|
+
n.panY,
|
|
217
|
+
n.zoom
|
|
218
|
+
], ([e, t, n]) => _?.setCamera(e, t, n)), w(() => n.wires, (e) => _?.setWires(e, n.shouldFlow)), w(() => n.visibleCards, (e) => _?.setMeters(e)), w(() => n.levelColoring, (e) => _?.setLevelColoring(e ?? !1)), w(() => n.activityStyle, (e) => _?.setActivityStyle(e ?? "flow")), w(() => n.animateConnections, () => _?.setWires(n.wires, n.shouldFlow)), w(() => n.background, (e) => _?.setBackground(e)), h(T), m(() => {
|
|
219
|
+
x?.disconnect(), _?.destroy(), _ = null;
|
|
220
|
+
}), (t, n) => (g(), c(i, null, [l("canvas", {
|
|
221
|
+
ref_key: "canvasRef",
|
|
222
|
+
ref: o,
|
|
223
|
+
class: "nb-blueprint-pixi__canvas"
|
|
224
|
+
}, null, 512), l("div", {
|
|
225
|
+
ref_key: "overlayRef",
|
|
226
|
+
ref: u,
|
|
227
|
+
class: "nb-blueprint__canvas nb-blueprint-pixi__overlay",
|
|
228
|
+
style: p(S.value)
|
|
229
|
+
}, [(g(), c("svg", M, [
|
|
230
|
+
d.value ? s("", !0) : (g(!0), c(i, { key: 0 }, y(e.wires, (e, t) => (g(), c("path", {
|
|
231
|
+
key: `w-${t}`,
|
|
232
|
+
d: e.path,
|
|
233
|
+
fill: "none",
|
|
234
|
+
stroke: e.color,
|
|
235
|
+
"stroke-width": "1.5",
|
|
236
|
+
class: f(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
|
|
237
|
+
"pointer-events": "none"
|
|
238
|
+
}, null, 10, N))), 128)),
|
|
239
|
+
(g(!0), c(i, null, y(e.wires, (e, t) => (g(), c("path", {
|
|
240
|
+
key: `h-${t}`,
|
|
241
|
+
d: e.path,
|
|
242
|
+
fill: "none",
|
|
243
|
+
stroke: "transparent",
|
|
244
|
+
"stroke-width": "14",
|
|
245
|
+
class: "nb-blueprint__wire-hitregion",
|
|
246
|
+
"data-wire-index": t,
|
|
247
|
+
onMousedown: (t) => r("wire-mousedown", t, e.conn),
|
|
248
|
+
onContextmenu: D((t) => r("wire-contextmenu", t, e.conn), ["prevent"]),
|
|
249
|
+
onMousemove: (t) => r("wire-mousemove", t, e.conn),
|
|
250
|
+
onMouseleave: (t) => r("wire-mouseleave", e.conn)
|
|
251
|
+
}, null, 40, P))), 128)),
|
|
252
|
+
e.dragWire ? (g(), c("path", {
|
|
253
|
+
key: 1,
|
|
254
|
+
d: e.dragWire,
|
|
255
|
+
fill: "none",
|
|
256
|
+
stroke: "var(--nb-c-primary)",
|
|
257
|
+
"stroke-width": "2",
|
|
258
|
+
"stroke-dasharray": "6 3",
|
|
259
|
+
opacity: "0.6"
|
|
260
|
+
}, null, 8, F)) : s("", !0)
|
|
261
|
+
])), e.windowed ? (g(!0), c(i, { key: 0 }, y(e.visibleCards, (e) => (g(), c("div", {
|
|
262
|
+
key: e.id,
|
|
263
|
+
class: "nb-blueprint__card-wrapper",
|
|
264
|
+
style: p({
|
|
265
|
+
position: "absolute",
|
|
266
|
+
left: `${e.x}px`,
|
|
267
|
+
top: `${e.y}px`
|
|
268
|
+
})
|
|
269
|
+
}, [b(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : b(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
|
|
270
|
+
}
|
|
271
|
+
}), [["__scopeId", "data-v-6fdf251d"]]), ie = class {
|
|
272
|
+
values = /* @__PURE__ */ new Map();
|
|
273
|
+
epoch = 0;
|
|
274
|
+
onChange = void 0;
|
|
275
|
+
set(e, t) {
|
|
276
|
+
this.values.set(e, t), this.epoch++, this.onChange?.();
|
|
277
|
+
}
|
|
278
|
+
setMany(e) {
|
|
279
|
+
for (let t in e) this.values.set(t, e[t]);
|
|
280
|
+
this.epoch++, this.onChange?.();
|
|
281
|
+
}
|
|
282
|
+
replace(e) {
|
|
283
|
+
this.values.clear(), this.setMany(e);
|
|
284
|
+
}
|
|
285
|
+
get(e) {
|
|
286
|
+
return this.values.get(e) ?? 0;
|
|
287
|
+
}
|
|
288
|
+
clear() {
|
|
289
|
+
this.values.size !== 0 && (this.values.clear(), this.epoch++, this.onChange?.());
|
|
290
|
+
}
|
|
291
|
+
get size() {
|
|
292
|
+
return this.values.size;
|
|
293
|
+
}
|
|
294
|
+
get version() {
|
|
295
|
+
return this.epoch;
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/components/blueprint-autolayout.ts
|
|
300
|
+
function ae(e, t, n = {}) {
|
|
301
|
+
let r = n.originX ?? 80, i = n.originY ?? 80, a = n.colGap ?? 420, o = n.rowGap ?? 48, s = n.bandGap ?? 90, c = n.defaultW ?? 220, l = n.defaultH ?? 140, u = /* @__PURE__ */ new Map();
|
|
302
|
+
if (!e.length) return u;
|
|
303
|
+
let d = new Map(e.map((e) => [e.id, e])), f = (e) => Math.max(c, d.get(e)?.w || c), p = (e) => Math.max(l, d.get(e)?.h || l), m = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
304
|
+
for (let t of e) m.set(t.id, /* @__PURE__ */ new Set()), h.set(t.id, /* @__PURE__ */ new Set());
|
|
305
|
+
let g = [];
|
|
306
|
+
for (let e of t) if (!(!d.has(e.from) || !d.has(e.to)) && e.kind !== "ignore") {
|
|
307
|
+
if (e.kind === "control") {
|
|
308
|
+
g.push({
|
|
309
|
+
from: e.from,
|
|
310
|
+
to: e.to
|
|
311
|
+
});
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
m.get(e.to).add(e.from), h.get(e.from).add(e.to);
|
|
315
|
+
}
|
|
316
|
+
let _ = (e) => m.get(e).size, v = (e) => h.get(e).size, y = (e) => _(e) >= 2, b = /* @__PURE__ */ new Map(), x = (e, t = /* @__PURE__ */ new Set()) => {
|
|
317
|
+
let n = b.get(e);
|
|
318
|
+
if (n !== void 0) return n;
|
|
319
|
+
if (t.has(e)) return 0;
|
|
320
|
+
t.add(e);
|
|
321
|
+
let r = 0;
|
|
322
|
+
for (let n of m.get(e)) r = Math.max(r, x(n, t) + 1);
|
|
323
|
+
return t.delete(e), b.set(e, r), r;
|
|
324
|
+
};
|
|
325
|
+
for (let t of e) x(t.id);
|
|
326
|
+
let S, C = -1, w = -1;
|
|
327
|
+
for (let t of e) {
|
|
328
|
+
if (!y(t.id) || v(t.id) === 0) continue;
|
|
329
|
+
let e = b.get(t.id), n = _(t.id);
|
|
330
|
+
(e > C || e === C && n > w) && (C = e, w = n, S = t.id);
|
|
331
|
+
}
|
|
332
|
+
let T = /* @__PURE__ */ new Set();
|
|
333
|
+
if (S) {
|
|
334
|
+
let e = [S];
|
|
335
|
+
for (; e.length;) {
|
|
336
|
+
let t = e.pop();
|
|
337
|
+
if (!T.has(t)) {
|
|
338
|
+
T.add(t);
|
|
339
|
+
for (let n of h.get(t)) e.push(n);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
let E = (e) => {
|
|
344
|
+
let t = [...h.get(e)], n = new Set(t);
|
|
345
|
+
for (; t.length;) {
|
|
346
|
+
let e = t.shift();
|
|
347
|
+
if (y(e)) return e;
|
|
348
|
+
for (let r of h.get(e)) n.has(r) || (n.add(r), t.push(r));
|
|
349
|
+
}
|
|
350
|
+
return null;
|
|
351
|
+
}, D = (e) => y(e) ? e : E(e), O = /* @__PURE__ */ new Set();
|
|
352
|
+
for (let t of e) {
|
|
353
|
+
if (_(t.id) !== 0 || v(t.id) < 2) continue;
|
|
354
|
+
let e = /* @__PURE__ */ new Set();
|
|
355
|
+
for (let n of h.get(t.id)) e.add(D(n));
|
|
356
|
+
e.size > 1 && O.add(t.id);
|
|
357
|
+
}
|
|
358
|
+
let ee = "\0shared", te = "\0trunk", k = /* @__PURE__ */ new Map();
|
|
359
|
+
for (let t of e) {
|
|
360
|
+
let e = t.id;
|
|
361
|
+
if (O.has(e)) {
|
|
362
|
+
k.set(e, ee);
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
if (T.has(e)) {
|
|
366
|
+
k.set(e, te);
|
|
367
|
+
continue;
|
|
368
|
+
}
|
|
369
|
+
let n = y(e) ? e : E(e);
|
|
370
|
+
k.set(e, n && n !== S ? n : `direct:${e}`);
|
|
371
|
+
}
|
|
372
|
+
let ne = e.map((e) => e.id).filter((e) => k.get(e)?.startsWith("direct:")), A = new Map(ne.map((e) => [e, e])), j = (e) => {
|
|
373
|
+
let t = e;
|
|
374
|
+
for (; A.get(t) !== t;) t = A.get(t);
|
|
375
|
+
for (; A.get(e) !== t;) {
|
|
376
|
+
let n = A.get(e);
|
|
377
|
+
A.set(e, t), e = n;
|
|
378
|
+
}
|
|
379
|
+
return t;
|
|
380
|
+
};
|
|
381
|
+
for (let e of t) e.kind === "signal" && k.get(e.from)?.startsWith("direct:") && k.get(e.to)?.startsWith("direct:") && A.set(j(e.from), j(e.to));
|
|
382
|
+
for (let e of ne) k.set(e, `chain:${j(e)}`);
|
|
383
|
+
for (let { from: e, to: t } of g) {
|
|
384
|
+
let n = k.get(t);
|
|
385
|
+
n && k.has(e) && k.set(e, n);
|
|
386
|
+
}
|
|
387
|
+
for (let t of e) k.has(t.id) || k.set(t.id, "\0orphan");
|
|
388
|
+
let re = [...new Set(k.values())].filter((e) => e !== ee && e !== te), M = (t) => e.filter((e) => k.get(e.id) === t);
|
|
389
|
+
re.sort((e, t) => M(t).length - M(e).length);
|
|
390
|
+
let N = /* @__PURE__ */ new Map();
|
|
391
|
+
for (let e of re) N.set(e, Math.max(0, ...M(e).map((e) => b.get(e.id))));
|
|
392
|
+
let P = Math.max(0, ...N.values()), F = /* @__PURE__ */ new Map();
|
|
393
|
+
if (S) {
|
|
394
|
+
F.set(S, 0);
|
|
395
|
+
let e = [S];
|
|
396
|
+
for (; e.length;) {
|
|
397
|
+
let t = e.shift(), n = F.get(t);
|
|
398
|
+
for (let r of h.get(t)) T.has(r) && !F.has(r) && (F.set(r, n + 1), e.push(r));
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
let I = (e) => O.has(e) ? -1 : T.has(e) ? P + 1 + (F.get(e) ?? 0) : P - (N.get(k.get(e)) ?? 0) + (b.get(e) ?? 0), ie = [...new Set(e.map((e) => I(e.id)))].sort((e, t) => e - t), ae = /* @__PURE__ */ new Map();
|
|
402
|
+
for (let t of ie) ae.set(t, Math.max(c, ...e.filter((e) => I(e.id) === t).map((e) => f(e.id))));
|
|
403
|
+
let oe = /* @__PURE__ */ new Map(), se = r;
|
|
404
|
+
for (let e of ie) oe.set(e, se), se += ae.get(e) + a;
|
|
405
|
+
let ce = /* @__PURE__ */ new Map(), L = (e) => e.reduce((e, t) => e + p(t) + o, 0) - o, le = (e) => {
|
|
406
|
+
let t = [...m.get(e), ...h.get(e)].map((e) => ce.get(e)).filter((e) => e != null).sort((e, t) => e - t);
|
|
407
|
+
return t.length ? t[Math.floor(t.length / 2)] : 0;
|
|
408
|
+
}, R = (e, t) => {
|
|
409
|
+
let n = t;
|
|
410
|
+
for (let t of e) ce.set(t, n), n += p(t) + o;
|
|
411
|
+
}, ue = (e) => {
|
|
412
|
+
let t = /* @__PURE__ */ new Map();
|
|
413
|
+
for (let n of e) {
|
|
414
|
+
let e = I(n);
|
|
415
|
+
(t.get(e) ?? t.set(e, []).get(e)).push(n);
|
|
416
|
+
}
|
|
417
|
+
return t;
|
|
418
|
+
}, de = i;
|
|
419
|
+
for (let e of re) {
|
|
420
|
+
let t = ue(M(e).map((e) => e.id)), n = l;
|
|
421
|
+
for (let e of t.values()) n = Math.max(n, L(e));
|
|
422
|
+
for (let [, e] of t) e.sort((e, t) => le(e) - le(t)), R(e, de + (n - L(e)) / 2);
|
|
423
|
+
de += n + s;
|
|
424
|
+
}
|
|
425
|
+
let fe = (i + Math.max(i, de - s)) / 2;
|
|
426
|
+
{
|
|
427
|
+
let e = [...O];
|
|
428
|
+
R(e, fe - L(e) / 2);
|
|
429
|
+
}
|
|
430
|
+
for (let [, e] of ue([...T])) R(e, fe - L(e) / 2);
|
|
431
|
+
for (let t of e) u.set(t.id, {
|
|
432
|
+
x: oe.get(I(t.id)),
|
|
433
|
+
y: ce.get(t.id) ?? i
|
|
434
|
+
});
|
|
435
|
+
return u;
|
|
436
|
+
}
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/components/Blueprint.vue?vue&type=script&setup=true&lang.ts
|
|
439
|
+
var oe = {
|
|
440
|
+
key: 0,
|
|
441
|
+
class: "nb-blueprint__background-slot",
|
|
442
|
+
"aria-hidden": "true"
|
|
443
|
+
}, se = { class: "nb-blueprint__chrome" }, ce = 100, L = .2, le = 3, R = 4, ue = 240, de = 400, fe = 1.2, pe = 40, z = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
444
|
+
__name: "Blueprint",
|
|
445
|
+
props: {
|
|
446
|
+
connections: { default: () => [] },
|
|
447
|
+
density: { default: "default" },
|
|
448
|
+
cards: {},
|
|
449
|
+
cardSizeEstimate: {},
|
|
450
|
+
animateConnections: { default: "never" },
|
|
451
|
+
activityStyle: {},
|
|
452
|
+
wheelMode: { default: "auto" },
|
|
453
|
+
editable: {
|
|
454
|
+
type: Boolean,
|
|
455
|
+
default: !1
|
|
456
|
+
},
|
|
457
|
+
readonly: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
default: !1
|
|
460
|
+
},
|
|
461
|
+
canConnect: {},
|
|
462
|
+
renderer: { default: "auto" },
|
|
463
|
+
background: { default: "dots" },
|
|
464
|
+
layoutEdgeKind: {}
|
|
465
|
+
},
|
|
466
|
+
emits: [
|
|
467
|
+
"connect",
|
|
468
|
+
"disconnect",
|
|
469
|
+
"move",
|
|
470
|
+
"selection-change",
|
|
471
|
+
"focus",
|
|
472
|
+
"drop-on-wire",
|
|
473
|
+
"wire-hover",
|
|
474
|
+
"wire-mouseover",
|
|
475
|
+
"wire-mouseout"
|
|
476
|
+
],
|
|
477
|
+
setup(e, { expose: i, emit: u }) {
|
|
478
|
+
let y = e, C = S(), E = a(() => C.background ? "none" : y.background), te = v(!1), k = v(!1), ne = a(() => y.renderer !== "dom" && te.value && !k.value ? "pixi" : "dom");
|
|
479
|
+
function A() {
|
|
480
|
+
try {
|
|
481
|
+
let e = document.createElement("canvas");
|
|
482
|
+
return !!(e.getContext("webgl2") || e.getContext("webgl") || e.getContext("experimental-webgl"));
|
|
483
|
+
} catch {
|
|
484
|
+
return !1;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function j(e) {
|
|
488
|
+
y.renderer === "pixi" && console.warn(`[NubiscoUI] Blueprint renderer="pixi" unavailable (${e}); using the DOM renderer.`);
|
|
489
|
+
}
|
|
490
|
+
h(async () => {
|
|
491
|
+
if (!(y.renderer === "dom" || typeof window > "u")) {
|
|
492
|
+
if (!A()) {
|
|
493
|
+
j("no WebGL");
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
try {
|
|
497
|
+
await import("pixi.js"), te.value = !0;
|
|
498
|
+
} catch {
|
|
499
|
+
j("pixi.js not installed");
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
function M(e) {
|
|
504
|
+
k.value = !0, j(e instanceof Error ? e.message : "init failed");
|
|
505
|
+
}
|
|
506
|
+
let N = u, P = v(), F = v(0), z = v(0), B = v(1), me = v(0), he = new ie(), V = v(!1), ge;
|
|
507
|
+
function _e() {
|
|
508
|
+
V.value = !0, ge && clearTimeout(ge), ge = setTimeout(() => {
|
|
509
|
+
V.value = !1;
|
|
510
|
+
}, 220);
|
|
511
|
+
}
|
|
512
|
+
let ve = v(0), ye = v(0), be = v(1), xe = 0;
|
|
513
|
+
function Se() {
|
|
514
|
+
ve.value = F.value, ye.value = z.value, be.value = B.value, xe = performance.now();
|
|
515
|
+
}
|
|
516
|
+
w([
|
|
517
|
+
F,
|
|
518
|
+
z,
|
|
519
|
+
B
|
|
520
|
+
], () => {
|
|
521
|
+
if (!V.value) {
|
|
522
|
+
Se();
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
performance.now() - xe >= ce && Se();
|
|
526
|
+
}), w(V, (e) => {
|
|
527
|
+
e || Se();
|
|
528
|
+
});
|
|
529
|
+
let Ce = v({
|
|
530
|
+
w: 0,
|
|
531
|
+
h: 0
|
|
532
|
+
}), we = O(() => P.value), Te = /* @__PURE__ */ new Map();
|
|
533
|
+
function Ee(e) {
|
|
534
|
+
for (let [t, n] of Te) n.cardId === e && Te.delete(t);
|
|
535
|
+
}
|
|
536
|
+
function De() {
|
|
537
|
+
Te.clear();
|
|
538
|
+
}
|
|
539
|
+
function Oe(e, t, n) {
|
|
540
|
+
let r = `${e}:${t}`, i = Te.get(r);
|
|
541
|
+
if (i) return {
|
|
542
|
+
x: i.x,
|
|
543
|
+
y: i.y
|
|
544
|
+
};
|
|
545
|
+
let a = we.get(e, t);
|
|
546
|
+
if (!a) return null;
|
|
547
|
+
let o = a.getBoundingClientRect(), s = (o.left + o.width / 2 - n.left - F.value) / B.value, c = (o.top + o.height / 2 - n.top - z.value) / B.value, l = a.closest("[data-card-id]")?.getAttribute("data-card-id") ?? "";
|
|
548
|
+
return Te.set(r, {
|
|
549
|
+
cardId: l,
|
|
550
|
+
x: s,
|
|
551
|
+
y: c
|
|
552
|
+
}), {
|
|
553
|
+
x: s,
|
|
554
|
+
y: c
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
let ke = {
|
|
558
|
+
width: 260,
|
|
559
|
+
height: 200
|
|
560
|
+
}, H = v(/* @__PURE__ */ new Set()), Ae = v(null);
|
|
561
|
+
function je(e) {
|
|
562
|
+
Ae.value = e, N("focus", e);
|
|
563
|
+
}
|
|
564
|
+
function U(e) {
|
|
565
|
+
H.value = new Set(e), N("selection-change", e);
|
|
566
|
+
}
|
|
567
|
+
function Me() {
|
|
568
|
+
if (y.cards) {
|
|
569
|
+
U(y.cards.map((e) => e.id));
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
if (!P.value) return;
|
|
573
|
+
let e = [];
|
|
574
|
+
P.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
575
|
+
let n = t.dataset.cardId;
|
|
576
|
+
n && e.push(n);
|
|
577
|
+
}), U(e);
|
|
578
|
+
}
|
|
579
|
+
function Ne() {
|
|
580
|
+
U([]), je(null);
|
|
581
|
+
}
|
|
582
|
+
let Pe = v(!1);
|
|
583
|
+
function Fe() {
|
|
584
|
+
let e = document.activeElement;
|
|
585
|
+
if (!e) return !1;
|
|
586
|
+
let t = e.tagName;
|
|
587
|
+
return t === "INPUT" || t === "TEXTAREA" ? !0 : e.isContentEditable === !0;
|
|
588
|
+
}
|
|
589
|
+
function Ie(e) {
|
|
590
|
+
if (e.code === "Space" && !e.repeat) {
|
|
591
|
+
if (Fe()) return;
|
|
592
|
+
Pe.value = !0, e.preventDefault();
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
function Le(e) {
|
|
596
|
+
e.code === "Space" && (Pe.value = !1);
|
|
597
|
+
}
|
|
598
|
+
let Re = !1, ze = 0, Be = 0, Ve = [
|
|
599
|
+
"button",
|
|
600
|
+
"input",
|
|
601
|
+
"select",
|
|
602
|
+
"textarea",
|
|
603
|
+
"label",
|
|
604
|
+
"a[href]",
|
|
605
|
+
"[role=\"button\"]",
|
|
606
|
+
"[role=\"slider\"]",
|
|
607
|
+
"[contenteditable=\"true\"]",
|
|
608
|
+
"[data-no-card-drag]"
|
|
609
|
+
].join(", ");
|
|
610
|
+
function He(e) {
|
|
611
|
+
return !!(e instanceof Element ? e : null)?.closest(Ve);
|
|
612
|
+
}
|
|
613
|
+
let Ue = [
|
|
614
|
+
"[role=\"slider\"]",
|
|
615
|
+
"[role=\"spinbutton\"]",
|
|
616
|
+
"[role=\"listbox\"]",
|
|
617
|
+
"[data-canvas-wheel-passthrough]",
|
|
618
|
+
"input[type=\"range\"]",
|
|
619
|
+
"input[type=\"number\"]"
|
|
620
|
+
].join(", ");
|
|
621
|
+
function We(e) {
|
|
622
|
+
let t = e instanceof Element ? e : null;
|
|
623
|
+
if (!t) return !1;
|
|
624
|
+
if (t.closest(Ue)) return !0;
|
|
625
|
+
let n = t;
|
|
626
|
+
for (; n && n !== P.value;) {
|
|
627
|
+
let e = window.getComputedStyle(n), t = e.overflowY, r = e.overflowX, i = (t === "auto" || t === "scroll" || t === "overlay") && n.scrollHeight > n.clientHeight, a = (r === "auto" || r === "scroll" || r === "overlay") && n.scrollWidth > n.clientWidth;
|
|
628
|
+
if (i || a) return !0;
|
|
629
|
+
n = n.parentElement;
|
|
630
|
+
}
|
|
631
|
+
return !1;
|
|
632
|
+
}
|
|
633
|
+
function Ge(e) {
|
|
634
|
+
let t = e.target instanceof HTMLElement ? e.target : null;
|
|
635
|
+
if (t?.closest(".nb-blueprint__chrome") || t?.closest(".nb-blueprint-card__port")) return;
|
|
636
|
+
if (e.button === 1) {
|
|
637
|
+
Ke(e);
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
if (Pe.value) {
|
|
641
|
+
Ke(e);
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
let n = t?.closest(".nb-blueprint-card");
|
|
645
|
+
if (n) {
|
|
646
|
+
st(e, n, !y.readonly && !He(t));
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
gt(e);
|
|
650
|
+
}
|
|
651
|
+
function Ke(e) {
|
|
652
|
+
Re = !0, ze = e.clientX - F.value, Be = e.clientY - z.value, document.addEventListener("mousemove", qe), document.addEventListener("mouseup", Je);
|
|
653
|
+
}
|
|
654
|
+
function qe(e) {
|
|
655
|
+
Re && (_e(), F.value = e.clientX - ze, z.value = e.clientY - Be);
|
|
656
|
+
}
|
|
657
|
+
function Je() {
|
|
658
|
+
Re = !1, document.removeEventListener("mousemove", qe), document.removeEventListener("mouseup", Je);
|
|
659
|
+
}
|
|
660
|
+
function Ye(e, t, n) {
|
|
661
|
+
let r = P.value?.getBoundingClientRect();
|
|
662
|
+
if (!r) return;
|
|
663
|
+
let i = B.value, a = Math.max(L, Math.min(le, i * n));
|
|
664
|
+
if (a === i) return;
|
|
665
|
+
let o = e - r.left, s = t - r.top, c = (o - F.value) / i, l = (s - z.value) / i;
|
|
666
|
+
F.value = o - c * a, z.value = s - l * a, B.value = a;
|
|
667
|
+
}
|
|
668
|
+
function Xe(e) {
|
|
669
|
+
let t = P.value?.getBoundingClientRect();
|
|
670
|
+
t && Ye(t.left + t.width / 2, t.top + t.height / 2, e);
|
|
671
|
+
}
|
|
672
|
+
function Ze() {
|
|
673
|
+
Xe(fe);
|
|
674
|
+
}
|
|
675
|
+
function Qe() {
|
|
676
|
+
Xe(1 / fe);
|
|
677
|
+
}
|
|
678
|
+
function $e(e) {
|
|
679
|
+
if (!P.value?.getBoundingClientRect()) return;
|
|
680
|
+
let t = e.ctrlKey;
|
|
681
|
+
if (!t && We(e.target)) return;
|
|
682
|
+
e.preventDefault(), _e();
|
|
683
|
+
let n;
|
|
684
|
+
if (n = t || y.wheelMode === "zoom" ? "zoom" : (y.wheelMode, "pan"), n === "zoom") {
|
|
685
|
+
let t = 1 - e.deltaY * .01;
|
|
686
|
+
Ye(e.clientX, e.clientY, t);
|
|
687
|
+
} else F.value -= e.deltaX, z.value -= e.deltaY;
|
|
688
|
+
}
|
|
689
|
+
let et = !1, tt = null, nt = 0, rt = 0, W = /* @__PURE__ */ new Map(), it = !1;
|
|
690
|
+
function at(e) {
|
|
691
|
+
let t = e;
|
|
692
|
+
for (; t?.parentElement;) {
|
|
693
|
+
if (t.parentElement.classList.contains("nb-blueprint__canvas")) return t;
|
|
694
|
+
t = t.parentElement;
|
|
695
|
+
}
|
|
696
|
+
return e.parentElement;
|
|
697
|
+
}
|
|
698
|
+
function G(e) {
|
|
699
|
+
let t = at(e);
|
|
700
|
+
if (!t) return {
|
|
701
|
+
x: 0,
|
|
702
|
+
y: 0
|
|
703
|
+
};
|
|
704
|
+
let n = parseFloat(t.style.left), r = parseFloat(t.style.top);
|
|
705
|
+
if (!Number.isNaN(n) && !Number.isNaN(r)) return {
|
|
706
|
+
x: n,
|
|
707
|
+
y: r
|
|
708
|
+
};
|
|
709
|
+
let i = (t.style.transform || "").match(/translate\(([^,]+)px,\s*([^)]+)px\)/);
|
|
710
|
+
return i ? {
|
|
711
|
+
x: parseFloat(i[1]),
|
|
712
|
+
y: parseFloat(i[2])
|
|
713
|
+
} : {
|
|
714
|
+
x: t.offsetLeft,
|
|
715
|
+
y: t.offsetTop
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
function ot(e, t, n) {
|
|
719
|
+
let r = at(e);
|
|
720
|
+
r && (r.style.left = `${t}px`, r.style.top = `${n}px`);
|
|
721
|
+
}
|
|
722
|
+
function st(e, t, n = !0) {
|
|
723
|
+
let r = t.dataset.cardId;
|
|
724
|
+
if (r) {
|
|
725
|
+
if (nt = e.clientX, rt = e.clientY, it = !1, W = /* @__PURE__ */ new Map(), e.shiftKey) {
|
|
726
|
+
let e = new Set(H.value);
|
|
727
|
+
e.has(r) ? e.delete(r) : e.add(r), U(Array.from(e));
|
|
728
|
+
} else H.value.has(r) || U([r]), je(r);
|
|
729
|
+
d(() => {
|
|
730
|
+
if (P.value) for (let e of H.value) {
|
|
731
|
+
let t = P.value.querySelector(`[data-card-id="${e}"]`);
|
|
732
|
+
t && W.set(e, G(t));
|
|
733
|
+
}
|
|
734
|
+
}), n && (document.addEventListener("mousemove", lt), document.addEventListener("mouseup", dt));
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function ct() {
|
|
738
|
+
if (!P.value || y.readonly) return;
|
|
739
|
+
let e = [];
|
|
740
|
+
for (let t of W.keys()) {
|
|
741
|
+
let n = P.value.querySelector(`[data-card-id="${t}"]`);
|
|
742
|
+
if (n) {
|
|
743
|
+
let r = G(n);
|
|
744
|
+
e.push({
|
|
745
|
+
id: t,
|
|
746
|
+
x: Math.round(r.x),
|
|
747
|
+
y: Math.round(r.y)
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
e.length && N("move", e);
|
|
752
|
+
}
|
|
753
|
+
function lt(e) {
|
|
754
|
+
let t = (e.clientX - nt) / B.value, n = (e.clientY - rt) / B.value;
|
|
755
|
+
if (!(!et && Math.abs(t * B.value) < R && Math.abs(n * B.value) < R) && (et = !0, it = !0, P.value)) {
|
|
756
|
+
for (let [e, r] of W) {
|
|
757
|
+
let i = P.value.querySelector(`[data-card-id="${e}"]`);
|
|
758
|
+
i && ot(i, r.x + t, r.y + n);
|
|
759
|
+
}
|
|
760
|
+
if (ct(), me.value++, W.size === 1) {
|
|
761
|
+
let [t] = W.keys();
|
|
762
|
+
if (t) {
|
|
763
|
+
let n = ut(e.clientX, e.clientY), r = n ? `${n.fromNode}/${n.fromPort}|${n.toNode}/${n.toPort}` : null;
|
|
764
|
+
r !== tt && (tt = r, N("wire-hover", t, n));
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
function ut(e, t) {
|
|
770
|
+
if (!P.value) return null;
|
|
771
|
+
let n = P.value.querySelectorAll(".nb-blueprint__wire-hitregion");
|
|
772
|
+
for (let r of n) {
|
|
773
|
+
let n = r.ownerSVGElement;
|
|
774
|
+
if (!n) continue;
|
|
775
|
+
let i = n.getScreenCTM();
|
|
776
|
+
if (!i) continue;
|
|
777
|
+
let a = i.inverse(), o = n.createSVGPoint();
|
|
778
|
+
o.x = e, o.y = t;
|
|
779
|
+
let s = o.matrixTransform(a);
|
|
780
|
+
if (r.isPointInStroke(s)) {
|
|
781
|
+
let e = parseInt(r.getAttribute("data-wire-index") ?? "-1", 10), t = e >= 0 ? Vt.value[e] : void 0;
|
|
782
|
+
if (t) return t.conn;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return null;
|
|
786
|
+
}
|
|
787
|
+
function dt(e) {
|
|
788
|
+
if (document.removeEventListener("mousemove", lt), document.removeEventListener("mouseup", dt), it && (ct(), e && W.size === 1 && !y.readonly)) {
|
|
789
|
+
let [t] = W.keys();
|
|
790
|
+
if (t) {
|
|
791
|
+
let n = ut(e.clientX, e.clientY);
|
|
792
|
+
n && N("drop-on-wire", t, n);
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
if (et = !1, it = !1, W = /* @__PURE__ */ new Map(), tt !== null) {
|
|
796
|
+
let [e] = W.keys();
|
|
797
|
+
e && N("wire-hover", e, null), tt = null;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
let K = v(null), ft = !1, pt = a(() => {
|
|
801
|
+
if (!K.value) return {};
|
|
802
|
+
let { x1: e, y1: t, x2: n, y2: r } = K.value;
|
|
803
|
+
return {
|
|
804
|
+
left: `${Math.min(e, n)}px`,
|
|
805
|
+
top: `${Math.min(t, r)}px`,
|
|
806
|
+
width: `${Math.abs(n - e)}px`,
|
|
807
|
+
height: `${Math.abs(r - t)}px`
|
|
808
|
+
};
|
|
809
|
+
}), mt = v(null);
|
|
810
|
+
function ht() {
|
|
811
|
+
if (H.value.size < 2 || !P.value || K.value) return null;
|
|
812
|
+
let e = P.value.getBoundingClientRect(), t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
813
|
+
for (let a of H.value) {
|
|
814
|
+
let o = P.value.querySelector(`[data-card-id="${a}"]`);
|
|
815
|
+
if (!o) continue;
|
|
816
|
+
let s = o.getBoundingClientRect(), c = s.left - e.left, l = s.top - e.top;
|
|
817
|
+
t = Math.min(t, c), n = Math.min(n, l), r = Math.max(r, c + s.width), i = Math.max(i, l + s.height);
|
|
818
|
+
}
|
|
819
|
+
return t === Infinity ? null : {
|
|
820
|
+
left: `${t - 8}px`,
|
|
821
|
+
top: `${n - 8}px`,
|
|
822
|
+
width: `${r - t + 16}px`,
|
|
823
|
+
height: `${i - n + 16}px`
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
w([
|
|
827
|
+
F,
|
|
828
|
+
z,
|
|
829
|
+
B,
|
|
830
|
+
me,
|
|
831
|
+
H,
|
|
832
|
+
K
|
|
833
|
+
], () => {
|
|
834
|
+
mt.value = ht();
|
|
835
|
+
}, {
|
|
836
|
+
flush: "post",
|
|
837
|
+
immediate: !0
|
|
838
|
+
});
|
|
839
|
+
function gt(e) {
|
|
840
|
+
if (!P.value) return;
|
|
841
|
+
let t = P.value.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
842
|
+
ft = e.shiftKey, ft || U([]), K.value = {
|
|
843
|
+
x1: n,
|
|
844
|
+
y1: r,
|
|
845
|
+
x2: n,
|
|
846
|
+
y2: r
|
|
847
|
+
}, document.addEventListener("mousemove", _t), document.addEventListener("mouseup", vt);
|
|
848
|
+
}
|
|
849
|
+
function _t(e) {
|
|
850
|
+
if (!K.value || !P.value) return;
|
|
851
|
+
let t = P.value.getBoundingClientRect();
|
|
852
|
+
K.value.x2 = e.clientX - t.left, K.value.y2 = e.clientY - t.top;
|
|
853
|
+
}
|
|
854
|
+
function vt() {
|
|
855
|
+
if (document.removeEventListener("mousemove", _t), document.removeEventListener("mouseup", vt), !K.value || !P.value) {
|
|
856
|
+
K.value = null;
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
let e = P.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = K.value, a = Math.min(t, r), o = Math.min(n, i), s = Math.max(t, r), c = Math.max(n, i);
|
|
860
|
+
if (Math.abs(r - t) < R && Math.abs(i - n) < R) {
|
|
861
|
+
ft || (U([]), je(null)), K.value = null;
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
let l = ft ? [...H.value] : [];
|
|
865
|
+
P.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
866
|
+
let n = t.getBoundingClientRect(), r = n.left - e.left, i = n.top - e.top, u = r + n.width, d = i + n.height;
|
|
867
|
+
if (r < s && u > a && i < c && d > o) {
|
|
868
|
+
let e = t.dataset.cardId;
|
|
869
|
+
e && !l.includes(e) && l.push(e);
|
|
870
|
+
}
|
|
871
|
+
}), U(l), K.value = null;
|
|
872
|
+
}
|
|
873
|
+
let yt = v(null), q = v(null), J = v(null);
|
|
874
|
+
function bt(e) {
|
|
875
|
+
y.readonly || (q.value = e, J.value = null, document.addEventListener("mousemove", Ft), document.addEventListener("mouseup", Z));
|
|
876
|
+
}
|
|
877
|
+
function xt(e, t) {
|
|
878
|
+
if (e.button !== 0 || (e.stopPropagation(), !P.value || y.readonly)) return;
|
|
879
|
+
let n = P.value.getBoundingClientRect(), r = (e.clientX - n.left - F.value) / B.value, i = (e.clientY - n.top - z.value) / B.value, a = jt(t.fromNode, t.fromPort), o = jt(t.toNode, t.toPort);
|
|
880
|
+
if (!a || !o) return;
|
|
881
|
+
let s = a.getBoundingClientRect(), c = o.getBoundingClientRect(), l = (s.left + s.width / 2 - n.left - F.value) / B.value, u = (s.top + s.height / 2 - n.top - z.value) / B.value, d = (c.left + c.width / 2 - n.left - F.value) / B.value, f = (c.top + c.height / 2 - n.top - z.value) / B.value, p = Math.hypot(r - l, i - u), m = Math.hypot(r - d, i - f);
|
|
882
|
+
if (Math.min(p, m) > pe) return;
|
|
883
|
+
e.preventDefault();
|
|
884
|
+
let h = p < m, g = h ? o : a;
|
|
885
|
+
q.value = h ? {
|
|
886
|
+
nodeId: t.toNode,
|
|
887
|
+
portId: t.toPort,
|
|
888
|
+
type: "input",
|
|
889
|
+
dataType: Mt(g)
|
|
890
|
+
} : {
|
|
891
|
+
nodeId: t.fromNode,
|
|
892
|
+
portId: t.fromPort,
|
|
893
|
+
type: "output",
|
|
894
|
+
dataType: Mt(g)
|
|
895
|
+
}, J.value = t, document.addEventListener("mousemove", Ft), document.addEventListener("mouseup", Z);
|
|
896
|
+
}
|
|
897
|
+
_(n, {
|
|
898
|
+
onPortDown: (e) => bt(e),
|
|
899
|
+
onPortUp: (e) => It(e),
|
|
900
|
+
dragOrigin: q,
|
|
901
|
+
density: a(() => y.density),
|
|
902
|
+
nudge: St,
|
|
903
|
+
cancelPortDrag: Z,
|
|
904
|
+
readonly: a(() => y.readonly),
|
|
905
|
+
allowsConnection: Pt
|
|
906
|
+
});
|
|
907
|
+
function St(e, t, n) {
|
|
908
|
+
let r = P.value;
|
|
909
|
+
if (!r || y.readonly) return;
|
|
910
|
+
let i;
|
|
911
|
+
if (H.value.has(e)) i = Q();
|
|
912
|
+
else {
|
|
913
|
+
let t = r.querySelector(`[data-card-id="${e}"]`);
|
|
914
|
+
if (!t) return;
|
|
915
|
+
let n = G(t);
|
|
916
|
+
i = [{
|
|
917
|
+
id: e,
|
|
918
|
+
el: t,
|
|
919
|
+
x: n.x,
|
|
920
|
+
y: n.y,
|
|
921
|
+
w: t.offsetWidth,
|
|
922
|
+
h: t.offsetHeight
|
|
923
|
+
}];
|
|
924
|
+
}
|
|
925
|
+
i.length && $(i.map((e) => ({
|
|
926
|
+
...e,
|
|
927
|
+
x: e.x + t,
|
|
928
|
+
y: e.y + n
|
|
929
|
+
})));
|
|
930
|
+
}
|
|
931
|
+
function Ct(e, t) {
|
|
932
|
+
let n = P.value?.getBoundingClientRect(), r = n?.left ?? 0, i = n?.top ?? 0;
|
|
933
|
+
return {
|
|
934
|
+
x: (e - r - F.value) / B.value,
|
|
935
|
+
y: (t - i - z.value) / B.value
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
function wt(e, t) {
|
|
939
|
+
let n = P.value?.getBoundingClientRect(), r = n?.left ?? 0, i = n?.top ?? 0;
|
|
940
|
+
return {
|
|
941
|
+
clientX: e * B.value + F.value + r,
|
|
942
|
+
clientY: t * B.value + z.value + i
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
_(t, {
|
|
946
|
+
panX: F,
|
|
947
|
+
panY: z,
|
|
948
|
+
zoom: B,
|
|
949
|
+
selectedIds: H,
|
|
950
|
+
focusedId: Ae,
|
|
951
|
+
selectAll: Me,
|
|
952
|
+
deselectAll: Ne,
|
|
953
|
+
centerView: Kt,
|
|
954
|
+
fitToView: qt,
|
|
955
|
+
resetView: Jt,
|
|
956
|
+
getCamera: Yt,
|
|
957
|
+
setCamera: Xt,
|
|
958
|
+
zoomIn: Ze,
|
|
959
|
+
zoomOut: Qe,
|
|
960
|
+
alignLeft: Zt,
|
|
961
|
+
alignCenter: Qt,
|
|
962
|
+
alignRight: $t,
|
|
963
|
+
alignTop: en,
|
|
964
|
+
alignMiddle: tn,
|
|
965
|
+
alignBottom: nn,
|
|
966
|
+
distributeHorizontally: rn,
|
|
967
|
+
distributeVertically: an,
|
|
968
|
+
autoLayout: on,
|
|
969
|
+
screenToCanvas: Ct,
|
|
970
|
+
canvasToScreen: wt,
|
|
971
|
+
isEditMode: a(() => y.editable),
|
|
972
|
+
isReadonly: a(() => y.readonly),
|
|
973
|
+
viewportSize: Ce,
|
|
974
|
+
isTransforming: V,
|
|
975
|
+
live: he,
|
|
976
|
+
onPortDown: (e) => bt(e),
|
|
977
|
+
onPortUp: (e) => It(e)
|
|
978
|
+
}), w(() => y.readonly, (e) => {
|
|
979
|
+
e && (dt(), Z(), X());
|
|
980
|
+
});
|
|
981
|
+
let Y = v(null);
|
|
982
|
+
function Tt(e, t) {
|
|
983
|
+
if (!P.value || y.readonly) return;
|
|
984
|
+
let n = P.value.getBoundingClientRect();
|
|
985
|
+
Y.value = {
|
|
986
|
+
x: e.clientX - n.left,
|
|
987
|
+
y: e.clientY - n.top,
|
|
988
|
+
conn: t
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
function Et(e, t) {
|
|
992
|
+
N("wire-mouseover", t, e.clientX, e.clientY);
|
|
993
|
+
}
|
|
994
|
+
function Dt(e) {
|
|
995
|
+
N("wire-mouseout", e);
|
|
996
|
+
}
|
|
997
|
+
function X() {
|
|
998
|
+
Y.value = null;
|
|
999
|
+
}
|
|
1000
|
+
function Ot(e) {
|
|
1001
|
+
if (y.readonly) {
|
|
1002
|
+
X();
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
N("disconnect", e), X();
|
|
1006
|
+
}
|
|
1007
|
+
function kt(e) {
|
|
1008
|
+
Y.value && (e.target.closest(".nb-blueprint__wire-menu") || X());
|
|
1009
|
+
}
|
|
1010
|
+
function At(e) {
|
|
1011
|
+
e.key === "Escape" && Y.value && X();
|
|
1012
|
+
}
|
|
1013
|
+
function jt(e, t) {
|
|
1014
|
+
return we.get(e, t);
|
|
1015
|
+
}
|
|
1016
|
+
function Mt(e) {
|
|
1017
|
+
let t = e?.getAttribute("data-port-data-type");
|
|
1018
|
+
return t && t !== "any" ? t : void 0;
|
|
1019
|
+
}
|
|
1020
|
+
function Nt(e) {
|
|
1021
|
+
return {
|
|
1022
|
+
nodeId: e.nodeId,
|
|
1023
|
+
portId: e.portId,
|
|
1024
|
+
type: e.type,
|
|
1025
|
+
dataType: e.dataType && e.dataType !== "any" ? e.dataType : void 0
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
function Pt(e, t) {
|
|
1029
|
+
let n = y.canConnect;
|
|
1030
|
+
if (!n || e.type === t.type) return !0;
|
|
1031
|
+
let r = e.type === "output" ? e : t, i = e.type === "output" ? t : e;
|
|
1032
|
+
return n(Nt(r), Nt(i));
|
|
1033
|
+
}
|
|
1034
|
+
function Ft(e) {
|
|
1035
|
+
let t = q.value;
|
|
1036
|
+
if (!t || !P.value) return;
|
|
1037
|
+
let n = P.value.getBoundingClientRect(), r = (e.clientX - n.left - F.value) / B.value, i = (e.clientY - n.top - z.value) / B.value, a = jt(t.nodeId, t.portId);
|
|
1038
|
+
if (!a) return;
|
|
1039
|
+
let o = a.getBoundingClientRect(), s = (o.left + o.width / 2 - n.left - F.value) / B.value, c = (o.top + o.height / 2 - n.top - z.value) / B.value, l = Math.abs(r - s) * .5;
|
|
1040
|
+
yt.value = `M ${s} ${c} C ${s + l} ${c}, ${r - l} ${i}, ${r} ${i}`;
|
|
1041
|
+
}
|
|
1042
|
+
function Z() {
|
|
1043
|
+
q.value = null, J.value = null, yt.value = null, document.removeEventListener("mousemove", Ft), document.removeEventListener("mouseup", Z);
|
|
1044
|
+
}
|
|
1045
|
+
function It(e) {
|
|
1046
|
+
if (y.readonly) return;
|
|
1047
|
+
let t = q.value;
|
|
1048
|
+
if (!t || t.nodeId === e.nodeId || t.type === e.type) return;
|
|
1049
|
+
let n = t.type === "output" ? t : e, i = t.type === "output" ? e : t;
|
|
1050
|
+
if (y.canConnect && (!r(n.dataType, i.dataType) || !Pt(t, e))) {
|
|
1051
|
+
Z();
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
let a = {
|
|
1055
|
+
fromNode: n.nodeId,
|
|
1056
|
+
fromPort: n.portId,
|
|
1057
|
+
toNode: i.nodeId,
|
|
1058
|
+
toPort: i.portId
|
|
1059
|
+
}, o = J.value;
|
|
1060
|
+
o ? o.fromNode === a.fromNode && o.fromPort === a.fromPort && o.toNode === a.toNode && o.toPort === a.toPort || (N("disconnect", o), N("connect", a)) : N("connect", a), q.value = null, J.value = null, yt.value = null;
|
|
1061
|
+
}
|
|
1062
|
+
let Lt = /* @__PURE__ */ new WeakMap();
|
|
1063
|
+
function Rt(e) {
|
|
1064
|
+
let t = Lt.get(e);
|
|
1065
|
+
if (t) return t;
|
|
1066
|
+
let n = e.closest(".nb-blueprint-card"), r = "var(--nb-c-primary)";
|
|
1067
|
+
if (n) {
|
|
1068
|
+
let e = getComputedStyle(n).getPropertyValue("--nb-card-color").trim();
|
|
1069
|
+
e && !e.startsWith("var(") && (r = e);
|
|
1070
|
+
}
|
|
1071
|
+
return Lt.set(e, r), r;
|
|
1072
|
+
}
|
|
1073
|
+
function zt(e) {
|
|
1074
|
+
let t = e.getAttribute("data-port-data-type") ?? "";
|
|
1075
|
+
return t === "midi" || t.startsWith("midi:");
|
|
1076
|
+
}
|
|
1077
|
+
function Bt(e) {
|
|
1078
|
+
let t = Math.max(0, Math.min(1, e)), n = [
|
|
1079
|
+
34,
|
|
1080
|
+
197,
|
|
1081
|
+
94
|
|
1082
|
+
], r = [
|
|
1083
|
+
250,
|
|
1084
|
+
204,
|
|
1085
|
+
21
|
|
1086
|
+
], i = [
|
|
1087
|
+
239,
|
|
1088
|
+
68,
|
|
1089
|
+
68
|
|
1090
|
+
], a, o, s;
|
|
1091
|
+
t <= .5 ? (a = n, o = r, s = t * 2) : (a = r, o = i, s = (t - .5) * 2);
|
|
1092
|
+
let c = (e, t) => Math.round(e + (t - e) * s);
|
|
1093
|
+
return `rgb(${c(a[0], o[0])}, ${c(a[1], o[1])}, ${c(a[2], o[2])})`;
|
|
1094
|
+
}
|
|
1095
|
+
let Vt = a(() => {
|
|
1096
|
+
if (me.value, !P.value) return [];
|
|
1097
|
+
let e = P.value.getBoundingClientRect(), t = be.value, n = ue / t, r = (0 - ve.value) / t - n, i = (e.width - ve.value) / t + n, a = (0 - ye.value) / t - n, o = (e.height - ye.value) / t + n, s = J.value;
|
|
1098
|
+
return y.connections.filter((e) => !s || e.fromNode !== s.fromNode || e.fromPort !== s.fromPort || e.toNode !== s.toNode || e.toPort !== s.toPort).map((t) => {
|
|
1099
|
+
let n = Oe(t.fromNode, t.fromPort, e), s = Oe(t.toNode, t.toPort, e);
|
|
1100
|
+
if (!n || !s) return null;
|
|
1101
|
+
let c = n.x, l = n.y, u = s.x, d = s.y, f = Math.abs(u - c) * .4, p = c + f, m = u - f;
|
|
1102
|
+
if (Math.max(c, p, m, u) < r || Math.min(c, p, m, u) > i || (l < d ? d : l) < a || (l < d ? l : d) > o) return null;
|
|
1103
|
+
let h = jt(t.fromNode, t.fromPort);
|
|
1104
|
+
if (!h) return null;
|
|
1105
|
+
let g = `M ${c} ${l} C ${p} ${l}, ${m} ${d}, ${u} ${d}`, _ = Rt(h), v = zt(h), b = _;
|
|
1106
|
+
return y.animateConnections === "levels" && t.active !== !1 && !v && typeof t.level == "number" && (b = Bt(t.level)), {
|
|
1107
|
+
path: g,
|
|
1108
|
+
conn: t,
|
|
1109
|
+
color: b,
|
|
1110
|
+
isMidi: v
|
|
1111
|
+
};
|
|
1112
|
+
}).filter(Boolean);
|
|
1113
|
+
}), Ht = (e) => {
|
|
1114
|
+
let t = y.cardSizeEstimate ?? ke;
|
|
1115
|
+
return {
|
|
1116
|
+
w: e.width ?? t.width,
|
|
1117
|
+
h: e.height ?? t.height
|
|
1118
|
+
};
|
|
1119
|
+
}, Ut = a(() => {
|
|
1120
|
+
let e = y.cards;
|
|
1121
|
+
if (!e || e.length === 0) return [];
|
|
1122
|
+
let t = be.value, n = de / t, r = (0 - ve.value) / t - n, i = (Ce.value.w - ve.value) / t + n, a = (0 - ye.value) / t - n, o = (Ce.value.h - ye.value) / t + n, s = (e, t, n, s) => n >= r && e <= i && s >= a && t <= o, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
|
|
1123
|
+
for (let t of e) {
|
|
1124
|
+
c.set(t.id, t);
|
|
1125
|
+
let { w: e, h: n } = Ht(t);
|
|
1126
|
+
s(t.x, t.y, t.x + e, t.y + n) && l.add(t.id);
|
|
1127
|
+
}
|
|
1128
|
+
for (let e of y.connections) {
|
|
1129
|
+
let t = c.get(e.fromNode), n = c.get(e.toNode);
|
|
1130
|
+
if (!t || !n || l.has(t.id) && l.has(n.id)) continue;
|
|
1131
|
+
let r = Ht(t), i = Ht(n), a = t.x + r.w, o = t.y + r.h / 2, u = n.x, d = n.y + i.h / 2, f = Math.abs(u - a) * .4, p = Math.min(a, a + f, u - f, u), m = Math.max(a, a + f, u - f, u);
|
|
1132
|
+
s(p, o < d ? o : d, m, o < d ? d : o) && (l.add(t.id), l.add(n.id));
|
|
1133
|
+
}
|
|
1134
|
+
return e.filter((e) => l.has(e.id));
|
|
1135
|
+
});
|
|
1136
|
+
function Wt(e) {
|
|
1137
|
+
return y.animateConnections === "never" ? !1 : y.animateConnections === "always" ? !0 : y.animateConnections === "levels" ? !1 : e.active !== !1;
|
|
1138
|
+
}
|
|
1139
|
+
function Gt(e) {
|
|
1140
|
+
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity, a = e && e.length ? new Set(e) : null, o = 0;
|
|
1141
|
+
if (y.cards) {
|
|
1142
|
+
if (y.cards.length === 0) return null;
|
|
1143
|
+
for (let e of y.cards) {
|
|
1144
|
+
if (a && !a.has(e.id)) continue;
|
|
1145
|
+
let { w: s, h: c } = Ht(e);
|
|
1146
|
+
t = Math.min(t, e.x), n = Math.min(n, e.y), r = Math.max(r, e.x + s), i = Math.max(i, e.y + c), o++;
|
|
1147
|
+
}
|
|
1148
|
+
return o > 0 ? {
|
|
1149
|
+
minX: t,
|
|
1150
|
+
minY: n,
|
|
1151
|
+
maxX: r,
|
|
1152
|
+
maxY: i
|
|
1153
|
+
} : null;
|
|
1154
|
+
}
|
|
1155
|
+
if (!P.value) return null;
|
|
1156
|
+
let s = P.value.querySelectorAll("[data-card-id]");
|
|
1157
|
+
return s.length === 0 ? null : (s.forEach((e) => {
|
|
1158
|
+
let s = e;
|
|
1159
|
+
if (a && !a.has(s.getAttribute("data-card-id") ?? "")) return;
|
|
1160
|
+
let c = G(s), l = s.offsetWidth, u = s.offsetHeight;
|
|
1161
|
+
t = Math.min(t, c.x), n = Math.min(n, c.y), r = Math.max(r, c.x + l), i = Math.max(i, c.y + u), o++;
|
|
1162
|
+
}), o > 0 ? {
|
|
1163
|
+
minX: t,
|
|
1164
|
+
minY: n,
|
|
1165
|
+
maxX: r,
|
|
1166
|
+
maxY: i
|
|
1167
|
+
} : null);
|
|
1168
|
+
}
|
|
1169
|
+
function Kt() {
|
|
1170
|
+
if (B.value = 1, !P.value) return;
|
|
1171
|
+
let e = Gt();
|
|
1172
|
+
if (!e) {
|
|
1173
|
+
F.value = 0, z.value = 0;
|
|
1174
|
+
return;
|
|
1175
|
+
}
|
|
1176
|
+
let t = P.value.getBoundingClientRect(), n = (e.minX + e.maxX) / 2, r = (e.minY + e.maxY) / 2;
|
|
1177
|
+
F.value = t.width / 2 - n, z.value = t.height / 2 - r;
|
|
1178
|
+
}
|
|
1179
|
+
function qt(e = 40, t) {
|
|
1180
|
+
if (!P.value) return;
|
|
1181
|
+
let n = Gt(t);
|
|
1182
|
+
if (!n) {
|
|
1183
|
+
if (t && t.length) return;
|
|
1184
|
+
Jt();
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
let r = P.value.getBoundingClientRect(), i = n.maxX - n.minX, a = n.maxY - n.minY;
|
|
1188
|
+
if (i <= 0 || a <= 0) {
|
|
1189
|
+
Kt();
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
let o = r.width - e * 2, s = r.height - e * 2, c = o / i, l = s / a, u = Math.max(L, Math.min(le, Math.min(c, l))), d = (n.minX + n.maxX) / 2, f = (n.minY + n.maxY) / 2;
|
|
1193
|
+
B.value = u, F.value = r.width / 2 - d * u, z.value = r.height / 2 - f * u;
|
|
1194
|
+
}
|
|
1195
|
+
function Jt() {
|
|
1196
|
+
F.value = 0, z.value = 0, B.value = 1;
|
|
1197
|
+
}
|
|
1198
|
+
function Yt() {
|
|
1199
|
+
return {
|
|
1200
|
+
panX: F.value,
|
|
1201
|
+
panY: z.value,
|
|
1202
|
+
zoom: B.value
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
function Xt(e) {
|
|
1206
|
+
typeof e.panX == "number" && (F.value = e.panX), typeof e.panY == "number" && (z.value = e.panY), typeof e.zoom == "number" && (B.value = e.zoom);
|
|
1207
|
+
}
|
|
1208
|
+
function Q() {
|
|
1209
|
+
if (!P.value) return [];
|
|
1210
|
+
let e = [];
|
|
1211
|
+
for (let t of H.value) {
|
|
1212
|
+
let n = P.value.querySelector(`[data-card-id="${t}"]`);
|
|
1213
|
+
if (!n) continue;
|
|
1214
|
+
let r = G(n);
|
|
1215
|
+
e.push({
|
|
1216
|
+
id: t,
|
|
1217
|
+
el: n,
|
|
1218
|
+
x: r.x,
|
|
1219
|
+
y: r.y,
|
|
1220
|
+
w: n.offsetWidth,
|
|
1221
|
+
h: n.offsetHeight
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
return e;
|
|
1225
|
+
}
|
|
1226
|
+
function $(e) {
|
|
1227
|
+
if (y.readonly) return;
|
|
1228
|
+
let t = [];
|
|
1229
|
+
for (let n of e) n.el && ot(n.el, n.x, n.y), t.push({
|
|
1230
|
+
id: n.id,
|
|
1231
|
+
x: Math.round(n.x),
|
|
1232
|
+
y: Math.round(n.y)
|
|
1233
|
+
});
|
|
1234
|
+
t.length && (me.value++, N("move", t));
|
|
1235
|
+
}
|
|
1236
|
+
function Zt() {
|
|
1237
|
+
let e = Q();
|
|
1238
|
+
if (e.length < 2) return;
|
|
1239
|
+
let t = Math.min(...e.map((e) => e.x));
|
|
1240
|
+
e.forEach((e) => e.x = t), $(e);
|
|
1241
|
+
}
|
|
1242
|
+
function Qt() {
|
|
1243
|
+
let e = Q();
|
|
1244
|
+
if (e.length < 2) return;
|
|
1245
|
+
let t = e.map((e) => e.x + e.w / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
1246
|
+
e.forEach((e) => e.x = n - e.w / 2), $(e);
|
|
1247
|
+
}
|
|
1248
|
+
function $t() {
|
|
1249
|
+
let e = Q();
|
|
1250
|
+
if (e.length < 2) return;
|
|
1251
|
+
let t = Math.max(...e.map((e) => e.x + e.w));
|
|
1252
|
+
e.forEach((e) => e.x = t - e.w), $(e);
|
|
1253
|
+
}
|
|
1254
|
+
function en() {
|
|
1255
|
+
let e = Q();
|
|
1256
|
+
if (e.length < 2) return;
|
|
1257
|
+
let t = Math.min(...e.map((e) => e.y));
|
|
1258
|
+
e.forEach((e) => e.y = t), $(e);
|
|
1259
|
+
}
|
|
1260
|
+
function tn() {
|
|
1261
|
+
let e = Q();
|
|
1262
|
+
if (e.length < 2) return;
|
|
1263
|
+
let t = e.map((e) => e.y + e.h / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
1264
|
+
e.forEach((e) => e.y = n - e.h / 2), $(e);
|
|
1265
|
+
}
|
|
1266
|
+
function nn() {
|
|
1267
|
+
let e = Q();
|
|
1268
|
+
if (e.length < 2) return;
|
|
1269
|
+
let t = Math.max(...e.map((e) => e.y + e.h));
|
|
1270
|
+
e.forEach((e) => e.y = t - e.h), $(e);
|
|
1271
|
+
}
|
|
1272
|
+
function rn() {
|
|
1273
|
+
let e = Q();
|
|
1274
|
+
if (e.length < 3) return;
|
|
1275
|
+
e.sort((e, t) => e.x - t.x);
|
|
1276
|
+
let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.w, 0), i = (n.x + n.w - t.x - r) / (e.length - 1), a = t.x + t.w + i;
|
|
1277
|
+
for (let t = 1; t < e.length - 1; t++) e[t].x = a, a += e[t].w + i;
|
|
1278
|
+
$(e);
|
|
1279
|
+
}
|
|
1280
|
+
function an() {
|
|
1281
|
+
let e = Q();
|
|
1282
|
+
if (e.length < 3) return;
|
|
1283
|
+
e.sort((e, t) => e.y - t.y);
|
|
1284
|
+
let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.h, 0), i = (n.y + n.h - t.y - r) / (e.length - 1), a = t.y + t.h + i;
|
|
1285
|
+
for (let t = 1; t < e.length - 1; t++) e[t].y = a, a += e[t].h + i;
|
|
1286
|
+
$(e);
|
|
1287
|
+
}
|
|
1288
|
+
function on(e) {
|
|
1289
|
+
if (!P.value || y.readonly) return;
|
|
1290
|
+
let t = e?.gapY ?? 40, n = e?.padding ?? 60, r = [];
|
|
1291
|
+
if (y.cards) for (let e of y.cards) {
|
|
1292
|
+
let t = P.value.querySelector(`[data-card-id="${e.id}"]`), { w: n, h: i } = Ht(e);
|
|
1293
|
+
r.push({
|
|
1294
|
+
id: e.id,
|
|
1295
|
+
el: t,
|
|
1296
|
+
x: e.x,
|
|
1297
|
+
y: e.y,
|
|
1298
|
+
w: e.width ?? t?.offsetWidth ?? n,
|
|
1299
|
+
h: e.height ?? t?.offsetHeight ?? i
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
else P.value.querySelectorAll("[data-card-id]").forEach((e) => {
|
|
1303
|
+
let t = e, n = t.dataset.cardId;
|
|
1304
|
+
if (!n) return;
|
|
1305
|
+
let i = G(t);
|
|
1306
|
+
r.push({
|
|
1307
|
+
id: n,
|
|
1308
|
+
el: t,
|
|
1309
|
+
x: i.x,
|
|
1310
|
+
y: i.y,
|
|
1311
|
+
w: t.offsetWidth,
|
|
1312
|
+
h: t.offsetHeight
|
|
1313
|
+
});
|
|
1314
|
+
});
|
|
1315
|
+
if (!r.length) return;
|
|
1316
|
+
let i = new Map(r.map((e) => [e.id, e])), a = r.map((e) => ({
|
|
1317
|
+
id: e.id,
|
|
1318
|
+
w: e.w,
|
|
1319
|
+
h: e.h
|
|
1320
|
+
})), o = y.layoutEdgeKind, s = [];
|
|
1321
|
+
for (let e of y.connections) !i.has(e.fromNode) || !i.has(e.toNode) || s.push({
|
|
1322
|
+
from: e.fromNode,
|
|
1323
|
+
to: e.toNode,
|
|
1324
|
+
kind: o ? o(e) : "signal"
|
|
1325
|
+
});
|
|
1326
|
+
let c = ae(a, s, {
|
|
1327
|
+
colGap: e?.gapX,
|
|
1328
|
+
rowGap: t,
|
|
1329
|
+
originX: n,
|
|
1330
|
+
originY: n
|
|
1331
|
+
});
|
|
1332
|
+
for (let e of r) {
|
|
1333
|
+
let t = c.get(e.id);
|
|
1334
|
+
t && (e.x = t.x, e.y = t.y);
|
|
1335
|
+
}
|
|
1336
|
+
$(r);
|
|
1337
|
+
}
|
|
1338
|
+
let sn = new MutationObserver((e) => {
|
|
1339
|
+
we.prune();
|
|
1340
|
+
let t = !1, n = !1;
|
|
1341
|
+
for (let r of e) {
|
|
1342
|
+
if (r.type === "childList") {
|
|
1343
|
+
t = !0;
|
|
1344
|
+
continue;
|
|
1345
|
+
}
|
|
1346
|
+
if (!ee(r.target)) continue;
|
|
1347
|
+
n = !0;
|
|
1348
|
+
let e = r.target.querySelector("[data-card-id]")?.getAttribute("data-card-id");
|
|
1349
|
+
e && Ee(e);
|
|
1350
|
+
}
|
|
1351
|
+
t && De(), (t || n) && me.value++;
|
|
1352
|
+
}), cn = null;
|
|
1353
|
+
return h(() => {
|
|
1354
|
+
if (P.value) {
|
|
1355
|
+
let e = P.value.getBoundingClientRect();
|
|
1356
|
+
Ce.value = {
|
|
1357
|
+
w: e.width,
|
|
1358
|
+
h: e.height
|
|
1359
|
+
}, typeof ResizeObserver < "u" && (cn = new ResizeObserver((e) => {
|
|
1360
|
+
let t = e[0]?.contentRect;
|
|
1361
|
+
t && (Ce.value = {
|
|
1362
|
+
w: t.width,
|
|
1363
|
+
h: t.height
|
|
1364
|
+
});
|
|
1365
|
+
}), cn.observe(P.value)), sn.observe(P.value, {
|
|
1366
|
+
childList: !0,
|
|
1367
|
+
subtree: !0,
|
|
1368
|
+
attributes: !0,
|
|
1369
|
+
attributeFilter: ["style"]
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
window.addEventListener("keydown", Ie), window.addEventListener("keyup", Le), document.addEventListener("mousedown", kt), document.addEventListener("keydown", At), d(() => d(qt));
|
|
1373
|
+
}), m(() => {
|
|
1374
|
+
sn.disconnect(), cn?.disconnect(), ge && clearTimeout(ge), window.removeEventListener("keydown", Ie), window.removeEventListener("keyup", Le), document.removeEventListener("mousedown", kt), document.removeEventListener("keydown", At);
|
|
1375
|
+
}), i({
|
|
1376
|
+
centerView: Kt,
|
|
1377
|
+
fitToView: qt,
|
|
1378
|
+
resetView: Jt,
|
|
1379
|
+
getCamera: Yt,
|
|
1380
|
+
setCamera: Xt,
|
|
1381
|
+
zoomIn: Ze,
|
|
1382
|
+
zoomOut: Qe,
|
|
1383
|
+
selectedIds: H,
|
|
1384
|
+
focusedId: Ae,
|
|
1385
|
+
selectAll: Me,
|
|
1386
|
+
deselectAll: Ne,
|
|
1387
|
+
alignLeft: Zt,
|
|
1388
|
+
alignCenter: Qt,
|
|
1389
|
+
alignRight: $t,
|
|
1390
|
+
alignTop: en,
|
|
1391
|
+
alignMiddle: tn,
|
|
1392
|
+
alignBottom: nn,
|
|
1393
|
+
distributeHorizontally: rn,
|
|
1394
|
+
distributeVertically: an,
|
|
1395
|
+
autoLayout: on,
|
|
1396
|
+
onPortMouseDown: bt,
|
|
1397
|
+
onPortMouseUp: It,
|
|
1398
|
+
panX: F,
|
|
1399
|
+
panY: z,
|
|
1400
|
+
zoom: B,
|
|
1401
|
+
isTransforming: V,
|
|
1402
|
+
live: he
|
|
1403
|
+
}), (t, n) => (g(), c("div", {
|
|
1404
|
+
ref_key: "containerRef",
|
|
1405
|
+
ref: P,
|
|
1406
|
+
class: f(["nb-blueprint", {
|
|
1407
|
+
"is-panning": x(Re),
|
|
1408
|
+
"is-space": Pe.value,
|
|
1409
|
+
"nb-blueprint--readonly": e.readonly
|
|
1410
|
+
}]),
|
|
1411
|
+
onMousedown: Ge,
|
|
1412
|
+
onWheel: $e
|
|
1413
|
+
}, [
|
|
1414
|
+
n[4] ||= l("div", { class: "nb-blueprint__ambient" }, null, -1),
|
|
1415
|
+
t.$slots.background ? (g(), c("div", oe, [b(t.$slots, "background", {}, void 0, !0)])) : s("", !0),
|
|
1416
|
+
ne.value === "dom" ? (g(), o(re, {
|
|
1417
|
+
key: 1,
|
|
1418
|
+
"pan-x": F.value,
|
|
1419
|
+
"pan-y": z.value,
|
|
1420
|
+
zoom: B.value,
|
|
1421
|
+
"is-transforming": V.value,
|
|
1422
|
+
wires: Vt.value,
|
|
1423
|
+
windowed: !!y.cards,
|
|
1424
|
+
"visible-cards": Ut.value,
|
|
1425
|
+
"drag-wire": yt.value,
|
|
1426
|
+
"should-flow": Wt,
|
|
1427
|
+
"level-coloring": e.animateConnections === "levels",
|
|
1428
|
+
"activity-style": e.activityStyle ?? "flow",
|
|
1429
|
+
"animate-connections": e.animateConnections,
|
|
1430
|
+
background: E.value,
|
|
1431
|
+
onWireMousedown: xt,
|
|
1432
|
+
onWireContextmenu: Tt,
|
|
1433
|
+
onWireMousemove: Et,
|
|
1434
|
+
onWireMouseleave: Dt
|
|
1435
|
+
}, {
|
|
1436
|
+
card: T(({ card: e }) => [b(t.$slots, "card", { card: e }, void 0, !0)]),
|
|
1437
|
+
default: T(() => [b(t.$slots, "default", {}, void 0, !0)]),
|
|
1438
|
+
_: 3
|
|
1439
|
+
}, 8, [
|
|
1440
|
+
"pan-x",
|
|
1441
|
+
"pan-y",
|
|
1442
|
+
"zoom",
|
|
1443
|
+
"is-transforming",
|
|
1444
|
+
"wires",
|
|
1445
|
+
"windowed",
|
|
1446
|
+
"visible-cards",
|
|
1447
|
+
"drag-wire",
|
|
1448
|
+
"level-coloring",
|
|
1449
|
+
"activity-style",
|
|
1450
|
+
"animate-connections",
|
|
1451
|
+
"background"
|
|
1452
|
+
])) : (g(), o(I, {
|
|
1453
|
+
key: 2,
|
|
1454
|
+
"pan-x": F.value,
|
|
1455
|
+
"pan-y": z.value,
|
|
1456
|
+
zoom: B.value,
|
|
1457
|
+
"is-transforming": V.value,
|
|
1458
|
+
wires: Vt.value,
|
|
1459
|
+
windowed: !!y.cards,
|
|
1460
|
+
"visible-cards": Ut.value,
|
|
1461
|
+
"drag-wire": yt.value,
|
|
1462
|
+
"should-flow": Wt,
|
|
1463
|
+
"level-coloring": e.animateConnections === "levels",
|
|
1464
|
+
"activity-style": e.activityStyle ?? "flow",
|
|
1465
|
+
"animate-connections": e.animateConnections,
|
|
1466
|
+
background: E.value,
|
|
1467
|
+
"live-data": x(he),
|
|
1468
|
+
onWireMousedown: xt,
|
|
1469
|
+
onWireContextmenu: Tt,
|
|
1470
|
+
onWireMousemove: Et,
|
|
1471
|
+
onWireMouseleave: Dt,
|
|
1472
|
+
onUnavailable: M
|
|
1473
|
+
}, {
|
|
1474
|
+
card: T(({ card: e }) => [b(t.$slots, "card", { card: e }, void 0, !0)]),
|
|
1475
|
+
default: T(() => [b(t.$slots, "default", {}, void 0, !0)]),
|
|
1476
|
+
_: 3
|
|
1477
|
+
}, 8, [
|
|
1478
|
+
"pan-x",
|
|
1479
|
+
"pan-y",
|
|
1480
|
+
"zoom",
|
|
1481
|
+
"is-transforming",
|
|
1482
|
+
"wires",
|
|
1483
|
+
"windowed",
|
|
1484
|
+
"visible-cards",
|
|
1485
|
+
"drag-wire",
|
|
1486
|
+
"level-coloring",
|
|
1487
|
+
"activity-style",
|
|
1488
|
+
"animate-connections",
|
|
1489
|
+
"background",
|
|
1490
|
+
"live-data"
|
|
1491
|
+
])),
|
|
1492
|
+
K.value ? (g(), c("div", {
|
|
1493
|
+
key: 3,
|
|
1494
|
+
class: "nb-blueprint__marquee nb-blueprint__marquee--dragging",
|
|
1495
|
+
style: p(pt.value)
|
|
1496
|
+
}, null, 4)) : s("", !0),
|
|
1497
|
+
mt.value ? (g(), c("svg", {
|
|
1498
|
+
key: 4,
|
|
1499
|
+
class: "nb-blueprint__selection-box",
|
|
1500
|
+
style: p(mt.value)
|
|
1501
|
+
}, [...n[3] ||= [l("rect", {
|
|
1502
|
+
x: "0.75",
|
|
1503
|
+
y: "0.75",
|
|
1504
|
+
width: "calc(100% - 1.5px)",
|
|
1505
|
+
height: "calc(100% - 1.5px)",
|
|
1506
|
+
rx: "4",
|
|
1507
|
+
ry: "4",
|
|
1508
|
+
fill: "none",
|
|
1509
|
+
stroke: "var(--nb-blueprint-marquee-border, var(--nb-c-primary, #6366f1))",
|
|
1510
|
+
"stroke-width": "1.5",
|
|
1511
|
+
"stroke-dasharray": "6 4",
|
|
1512
|
+
class: "nb-blueprint__selection-ants"
|
|
1513
|
+
}, null, -1)]], 4)) : s("", !0),
|
|
1514
|
+
Y.value ? (g(), c("div", {
|
|
1515
|
+
key: 5,
|
|
1516
|
+
class: "nb-blueprint__wire-menu",
|
|
1517
|
+
style: p({
|
|
1518
|
+
left: `${Y.value.x}px`,
|
|
1519
|
+
top: `${Y.value.y}px`
|
|
1520
|
+
}),
|
|
1521
|
+
role: "menu",
|
|
1522
|
+
onClick: n[1] ||= D(() => {}, ["stop"]),
|
|
1523
|
+
onContextmenu: n[2] ||= D(() => {}, ["prevent"])
|
|
1524
|
+
}, [b(t.$slots, "wire-menu", {
|
|
1525
|
+
connection: Y.value.conn,
|
|
1526
|
+
close: X,
|
|
1527
|
+
disconnect: () => Ot(Y.value.conn)
|
|
1528
|
+
}, () => [l("button", {
|
|
1529
|
+
type: "button",
|
|
1530
|
+
class: "nb-blueprint__wire-menu-item",
|
|
1531
|
+
onClick: n[0] ||= (e) => Ot(Y.value.conn)
|
|
1532
|
+
}, " Disconnect ")], !0)], 36)) : s("", !0),
|
|
1533
|
+
l("div", se, [b(t.$slots, "chrome", {}, void 0, !0)])
|
|
1534
|
+
], 34));
|
|
1535
|
+
}
|
|
1536
|
+
}), [["__scopeId", "data-v-2ad58242"]]);
|
|
1537
|
+
//#endregion
|
|
1538
|
+
export { ae as n, ie as r, z as t };
|