@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
|
@@ -1,1501 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
-
import { n as t, t as n } from "./Blueprint.context-CWzHXNtU.js";
|
|
3
|
-
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, nextTick as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onMounted as m, openBlock as h, provide as g, ref as _, renderList as v, renderSlot as y, unref as b, useSlots as x, vShow as S, watch as C, withCtx as w, withDirectives as T, withModifiers as E } from "vue";
|
|
4
|
-
//#region src/components/blueprint-port-cache.ts
|
|
5
|
-
function ee(e) {
|
|
6
|
-
let t = /* @__PURE__ */ new Map();
|
|
7
|
-
function n(n, r) {
|
|
8
|
-
let i = `${n}:${r}`, a = t.get(i);
|
|
9
|
-
if (a && a.isConnected) return a;
|
|
10
|
-
a && t.delete(i);
|
|
11
|
-
let o = e();
|
|
12
|
-
if (!o) return null;
|
|
13
|
-
let s = o.querySelector(`[data-port="${n}:${r}"]`);
|
|
14
|
-
return s && t.set(i, s), s;
|
|
15
|
-
}
|
|
16
|
-
function r() {
|
|
17
|
-
for (let [e, n] of t) n.isConnected || t.delete(e);
|
|
18
|
-
}
|
|
19
|
-
function i() {
|
|
20
|
-
t.clear();
|
|
21
|
-
}
|
|
22
|
-
function a() {
|
|
23
|
-
return t.size;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
get: n,
|
|
27
|
-
prune: r,
|
|
28
|
-
clear: i,
|
|
29
|
-
size: a
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function D(e) {
|
|
33
|
-
return e instanceof Element ? e.parentElement?.classList.contains("nb-blueprint__canvas") ?? !1 : !1;
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/components/BlueprintDomRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
37
|
-
var O = { class: "nb-blueprint__wires" }, k = [
|
|
38
|
-
"d",
|
|
39
|
-
"data-wire-index",
|
|
40
|
-
"onMousedown",
|
|
41
|
-
"onContextmenu",
|
|
42
|
-
"onMousemove",
|
|
43
|
-
"onMouseleave"
|
|
44
|
-
], A = ["d", "stroke"], te = ["d", "stroke"], j = ["d"], ne = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
45
|
-
__name: "BlueprintDomRenderer",
|
|
46
|
-
props: {
|
|
47
|
-
panX: {},
|
|
48
|
-
panY: {},
|
|
49
|
-
zoom: {},
|
|
50
|
-
isTransforming: { type: Boolean },
|
|
51
|
-
wires: {},
|
|
52
|
-
windowed: { type: Boolean },
|
|
53
|
-
visibleCards: {},
|
|
54
|
-
dragWire: {},
|
|
55
|
-
shouldFlow: { type: Function },
|
|
56
|
-
levelColoring: { type: Boolean },
|
|
57
|
-
activityStyle: {},
|
|
58
|
-
animateConnections: {},
|
|
59
|
-
background: {},
|
|
60
|
-
liveData: {}
|
|
61
|
-
},
|
|
62
|
-
emits: [
|
|
63
|
-
"wire-mousedown",
|
|
64
|
-
"wire-contextmenu",
|
|
65
|
-
"wire-mousemove",
|
|
66
|
-
"wire-mouseleave"
|
|
67
|
-
],
|
|
68
|
-
setup(e, { emit: t }) {
|
|
69
|
-
let n = e, a = t, l = i(() => `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`), u = i(() => n.isTransforming ? "transform" : void 0), p = i(() => ({
|
|
70
|
-
transform: l.value,
|
|
71
|
-
willChange: u.value
|
|
72
|
-
})), m = i(() => ({
|
|
73
|
-
transform: l.value,
|
|
74
|
-
transformOrigin: "0 0",
|
|
75
|
-
willChange: u.value
|
|
76
|
-
}));
|
|
77
|
-
return (t, n) => (h(), s(r, null, [e.background === "none" ? o("", !0) : (h(), s("div", {
|
|
78
|
-
key: 0,
|
|
79
|
-
class: d(["nb-blueprint__grid", `nb-blueprint__grid--${e.background}`]),
|
|
80
|
-
style: f(p.value)
|
|
81
|
-
}, null, 6)), c("div", {
|
|
82
|
-
class: "nb-blueprint__canvas",
|
|
83
|
-
style: f(m.value)
|
|
84
|
-
}, [(h(), s("svg", O, [
|
|
85
|
-
(h(!0), s(r, null, v(e.wires, (e, t) => (h(), s("g", {
|
|
86
|
-
key: t,
|
|
87
|
-
class: "nb-blueprint__wire-group"
|
|
88
|
-
}, [c("path", {
|
|
89
|
-
d: e.path,
|
|
90
|
-
fill: "none",
|
|
91
|
-
stroke: "transparent",
|
|
92
|
-
"stroke-width": "14",
|
|
93
|
-
class: "nb-blueprint__wire-hitregion",
|
|
94
|
-
"data-wire-index": t,
|
|
95
|
-
onMousedown: (t) => a("wire-mousedown", t, e.conn),
|
|
96
|
-
onContextmenu: E((t) => a("wire-contextmenu", t, e.conn), ["prevent"]),
|
|
97
|
-
onMousemove: (t) => a("wire-mousemove", t, e.conn),
|
|
98
|
-
onMouseleave: (t) => a("wire-mouseleave", e.conn)
|
|
99
|
-
}, null, 40, k), c("path", {
|
|
100
|
-
d: e.path,
|
|
101
|
-
fill: "none",
|
|
102
|
-
stroke: e.color,
|
|
103
|
-
"stroke-width": "1.5",
|
|
104
|
-
class: d(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
|
|
105
|
-
"pointer-events": "none"
|
|
106
|
-
}, null, 10, A)]))), 128)),
|
|
107
|
-
(h(!0), s(r, null, v(e.wires, (t, n) => T((h(), s("path", {
|
|
108
|
-
key: `flow-${n}`,
|
|
109
|
-
d: t.path,
|
|
110
|
-
fill: "none",
|
|
111
|
-
stroke: t.color,
|
|
112
|
-
"stroke-width": "1.5",
|
|
113
|
-
"stroke-dasharray": "4 8",
|
|
114
|
-
class: "nb-blueprint__wire-flow",
|
|
115
|
-
"pointer-events": "none"
|
|
116
|
-
}, null, 8, te)), [[S, e.shouldFlow(t.conn)]])), 128)),
|
|
117
|
-
e.dragWire ? (h(), s("path", {
|
|
118
|
-
key: 0,
|
|
119
|
-
d: e.dragWire,
|
|
120
|
-
fill: "none",
|
|
121
|
-
stroke: "var(--nb-c-primary)",
|
|
122
|
-
"stroke-width": "2",
|
|
123
|
-
"stroke-dasharray": "6 3",
|
|
124
|
-
opacity: "0.6"
|
|
125
|
-
}, null, 8, j)) : o("", !0)
|
|
126
|
-
])), e.windowed ? (h(!0), s(r, { key: 0 }, v(e.visibleCards, (e) => (h(), s("div", {
|
|
127
|
-
key: e.id,
|
|
128
|
-
class: "nb-blueprint__card-wrapper",
|
|
129
|
-
style: f({
|
|
130
|
-
position: "absolute",
|
|
131
|
-
left: `${e.x}px`,
|
|
132
|
-
top: `${e.y}px`
|
|
133
|
-
})
|
|
134
|
-
}, [y(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : y(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
|
|
135
|
-
}
|
|
136
|
-
}), [["__scopeId", "data-v-387c811f"]]), re = { class: "nb-blueprint__wires" }, M = ["d", "stroke"], N = [
|
|
137
|
-
"d",
|
|
138
|
-
"data-wire-index",
|
|
139
|
-
"onMousedown",
|
|
140
|
-
"onContextmenu",
|
|
141
|
-
"onMousemove",
|
|
142
|
-
"onMouseleave"
|
|
143
|
-
], P = ["d"], F = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
144
|
-
__name: "BlueprintPixiRenderer",
|
|
145
|
-
props: {
|
|
146
|
-
panX: {},
|
|
147
|
-
panY: {},
|
|
148
|
-
zoom: {},
|
|
149
|
-
isTransforming: { type: Boolean },
|
|
150
|
-
wires: {},
|
|
151
|
-
windowed: { type: Boolean },
|
|
152
|
-
visibleCards: {},
|
|
153
|
-
dragWire: {},
|
|
154
|
-
shouldFlow: { type: Function },
|
|
155
|
-
levelColoring: { type: Boolean },
|
|
156
|
-
activityStyle: {},
|
|
157
|
-
animateConnections: {},
|
|
158
|
-
background: {},
|
|
159
|
-
liveData: {}
|
|
160
|
-
},
|
|
161
|
-
emits: [
|
|
162
|
-
"wire-mousedown",
|
|
163
|
-
"wire-contextmenu",
|
|
164
|
-
"wire-mousemove",
|
|
165
|
-
"wire-mouseleave",
|
|
166
|
-
"unavailable"
|
|
167
|
-
],
|
|
168
|
-
setup(e, { emit: t }) {
|
|
169
|
-
let n = e, a = t, l = _(), u = _(), g = _(!1), b = null, x, S = i(() => ({
|
|
170
|
-
transform: `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`,
|
|
171
|
-
transformOrigin: "0 0",
|
|
172
|
-
willChange: n.isTransforming ? "transform" : "auto"
|
|
173
|
-
}));
|
|
174
|
-
function w() {
|
|
175
|
-
let e = l.value?.parentElement;
|
|
176
|
-
return {
|
|
177
|
-
width: e?.clientWidth ?? 0,
|
|
178
|
-
height: e?.clientHeight ?? 0
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
async function T() {
|
|
182
|
-
let e = l.value, t = u.value;
|
|
183
|
-
if (!(!e || !t)) try {
|
|
184
|
-
let [r, { PixiScene: i }] = await Promise.all([import("pixi.js"), import("./pixi-scene-CdHSFEve.js")]), { width: a, height: o } = w(), s = await i.create(r, {
|
|
185
|
-
canvas: e,
|
|
186
|
-
el: t,
|
|
187
|
-
width: a,
|
|
188
|
-
height: o,
|
|
189
|
-
resolution: window.devicePixelRatio || 1,
|
|
190
|
-
background: n.background,
|
|
191
|
-
liveData: n.liveData
|
|
192
|
-
});
|
|
193
|
-
if (!l.value) {
|
|
194
|
-
s.destroy();
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
b = s, ee(), g.value = !0, D();
|
|
198
|
-
} catch (e) {
|
|
199
|
-
a("unavailable", e);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function ee() {
|
|
203
|
-
b && (b.setCamera(n.panX, n.panY, n.zoom), b.setLevelColoring(n.levelColoring ?? !1), b.setActivityStyle(n.activityStyle ?? "flow"), b.setWires(n.wires, n.shouldFlow), b.setMeters(n.visibleCards));
|
|
204
|
-
}
|
|
205
|
-
function D() {
|
|
206
|
-
let e = l.value?.parentElement;
|
|
207
|
-
e && (x = new ResizeObserver(() => {
|
|
208
|
-
if (!b) return;
|
|
209
|
-
let { width: e, height: t } = w();
|
|
210
|
-
b.resize(e, t, window.devicePixelRatio || 1);
|
|
211
|
-
}), x.observe(e));
|
|
212
|
-
}
|
|
213
|
-
return C(() => [
|
|
214
|
-
n.panX,
|
|
215
|
-
n.panY,
|
|
216
|
-
n.zoom
|
|
217
|
-
], ([e, t, n]) => b?.setCamera(e, t, n)), C(() => n.wires, (e) => b?.setWires(e, n.shouldFlow)), C(() => n.visibleCards, (e) => b?.setMeters(e)), C(() => n.levelColoring, (e) => b?.setLevelColoring(e ?? !1)), C(() => n.activityStyle, (e) => b?.setActivityStyle(e ?? "flow")), C(() => n.animateConnections, () => b?.setWires(n.wires, n.shouldFlow)), C(() => n.background, (e) => b?.setBackground(e)), m(T), p(() => {
|
|
218
|
-
x?.disconnect(), b?.destroy(), b = null;
|
|
219
|
-
}), (t, n) => (h(), s(r, null, [c("canvas", {
|
|
220
|
-
ref_key: "canvasRef",
|
|
221
|
-
ref: l,
|
|
222
|
-
class: "nb-blueprint-pixi__canvas"
|
|
223
|
-
}, null, 512), c("div", {
|
|
224
|
-
ref_key: "overlayRef",
|
|
225
|
-
ref: u,
|
|
226
|
-
class: "nb-blueprint__canvas nb-blueprint-pixi__overlay",
|
|
227
|
-
style: f(S.value)
|
|
228
|
-
}, [(h(), s("svg", re, [
|
|
229
|
-
g.value ? o("", !0) : (h(!0), s(r, { key: 0 }, v(e.wires, (e, t) => (h(), s("path", {
|
|
230
|
-
key: `w-${t}`,
|
|
231
|
-
d: e.path,
|
|
232
|
-
fill: "none",
|
|
233
|
-
stroke: e.color,
|
|
234
|
-
"stroke-width": "1.5",
|
|
235
|
-
class: d(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
|
|
236
|
-
"pointer-events": "none"
|
|
237
|
-
}, null, 10, M))), 128)),
|
|
238
|
-
(h(!0), s(r, null, v(e.wires, (e, t) => (h(), s("path", {
|
|
239
|
-
key: `h-${t}`,
|
|
240
|
-
d: e.path,
|
|
241
|
-
fill: "none",
|
|
242
|
-
stroke: "transparent",
|
|
243
|
-
"stroke-width": "14",
|
|
244
|
-
class: "nb-blueprint__wire-hitregion",
|
|
245
|
-
"data-wire-index": t,
|
|
246
|
-
onMousedown: (t) => a("wire-mousedown", t, e.conn),
|
|
247
|
-
onContextmenu: E((t) => a("wire-contextmenu", t, e.conn), ["prevent"]),
|
|
248
|
-
onMousemove: (t) => a("wire-mousemove", t, e.conn),
|
|
249
|
-
onMouseleave: (t) => a("wire-mouseleave", e.conn)
|
|
250
|
-
}, null, 40, N))), 128)),
|
|
251
|
-
e.dragWire ? (h(), s("path", {
|
|
252
|
-
key: 1,
|
|
253
|
-
d: e.dragWire,
|
|
254
|
-
fill: "none",
|
|
255
|
-
stroke: "var(--nb-c-primary)",
|
|
256
|
-
"stroke-width": "2",
|
|
257
|
-
"stroke-dasharray": "6 3",
|
|
258
|
-
opacity: "0.6"
|
|
259
|
-
}, null, 8, P)) : o("", !0)
|
|
260
|
-
])), e.windowed ? (h(!0), s(r, { key: 0 }, v(e.visibleCards, (e) => (h(), s("div", {
|
|
261
|
-
key: e.id,
|
|
262
|
-
class: "nb-blueprint__card-wrapper",
|
|
263
|
-
style: f({
|
|
264
|
-
position: "absolute",
|
|
265
|
-
left: `${e.x}px`,
|
|
266
|
-
top: `${e.y}px`
|
|
267
|
-
})
|
|
268
|
-
}, [y(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : y(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
|
|
269
|
-
}
|
|
270
|
-
}), [["__scopeId", "data-v-6fdf251d"]]), I = class {
|
|
271
|
-
values = /* @__PURE__ */ new Map();
|
|
272
|
-
epoch = 0;
|
|
273
|
-
onChange = void 0;
|
|
274
|
-
set(e, t) {
|
|
275
|
-
this.values.set(e, t), this.epoch++, this.onChange?.();
|
|
276
|
-
}
|
|
277
|
-
setMany(e) {
|
|
278
|
-
for (let t in e) this.values.set(t, e[t]);
|
|
279
|
-
this.epoch++, this.onChange?.();
|
|
280
|
-
}
|
|
281
|
-
replace(e) {
|
|
282
|
-
this.values.clear(), this.setMany(e);
|
|
283
|
-
}
|
|
284
|
-
get(e) {
|
|
285
|
-
return this.values.get(e) ?? 0;
|
|
286
|
-
}
|
|
287
|
-
clear() {
|
|
288
|
-
this.values.size !== 0 && (this.values.clear(), this.epoch++, this.onChange?.());
|
|
289
|
-
}
|
|
290
|
-
get size() {
|
|
291
|
-
return this.values.size;
|
|
292
|
-
}
|
|
293
|
-
get version() {
|
|
294
|
-
return this.epoch;
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region src/components/blueprint-autolayout.ts
|
|
299
|
-
function ie(e, t, n = {}) {
|
|
300
|
-
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();
|
|
301
|
-
if (!e.length) return u;
|
|
302
|
-
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();
|
|
303
|
-
for (let t of e) m.set(t.id, /* @__PURE__ */ new Set()), h.set(t.id, /* @__PURE__ */ new Set());
|
|
304
|
-
let g = [];
|
|
305
|
-
for (let e of t) if (!(!d.has(e.from) || !d.has(e.to)) && e.kind !== "ignore") {
|
|
306
|
-
if (e.kind === "control") {
|
|
307
|
-
g.push({
|
|
308
|
-
from: e.from,
|
|
309
|
-
to: e.to
|
|
310
|
-
});
|
|
311
|
-
continue;
|
|
312
|
-
}
|
|
313
|
-
m.get(e.to).add(e.from), h.get(e.from).add(e.to);
|
|
314
|
-
}
|
|
315
|
-
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()) => {
|
|
316
|
-
let n = b.get(e);
|
|
317
|
-
if (n !== void 0) return n;
|
|
318
|
-
if (t.has(e)) return 0;
|
|
319
|
-
t.add(e);
|
|
320
|
-
let r = 0;
|
|
321
|
-
for (let n of m.get(e)) r = Math.max(r, x(n, t) + 1);
|
|
322
|
-
return t.delete(e), b.set(e, r), r;
|
|
323
|
-
};
|
|
324
|
-
for (let t of e) x(t.id);
|
|
325
|
-
let S, C = -1, w = -1;
|
|
326
|
-
for (let t of e) {
|
|
327
|
-
if (!y(t.id) || v(t.id) === 0) continue;
|
|
328
|
-
let e = b.get(t.id), n = _(t.id);
|
|
329
|
-
(e > C || e === C && n > w) && (C = e, w = n, S = t.id);
|
|
330
|
-
}
|
|
331
|
-
let T = /* @__PURE__ */ new Set();
|
|
332
|
-
if (S) {
|
|
333
|
-
let e = [S];
|
|
334
|
-
for (; e.length;) {
|
|
335
|
-
let t = e.pop();
|
|
336
|
-
if (!T.has(t)) {
|
|
337
|
-
T.add(t);
|
|
338
|
-
for (let n of h.get(t)) e.push(n);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
let E = (e) => {
|
|
343
|
-
let t = [...h.get(e)], n = new Set(t);
|
|
344
|
-
for (; t.length;) {
|
|
345
|
-
let e = t.shift();
|
|
346
|
-
if (y(e)) return e;
|
|
347
|
-
for (let r of h.get(e)) n.has(r) || (n.add(r), t.push(r));
|
|
348
|
-
}
|
|
349
|
-
return null;
|
|
350
|
-
}, ee = (e) => y(e) ? e : E(e), D = /* @__PURE__ */ new Set();
|
|
351
|
-
for (let t of e) {
|
|
352
|
-
if (_(t.id) !== 0 || v(t.id) < 2) continue;
|
|
353
|
-
let e = /* @__PURE__ */ new Set();
|
|
354
|
-
for (let n of h.get(t.id)) e.add(ee(n));
|
|
355
|
-
e.size > 1 && D.add(t.id);
|
|
356
|
-
}
|
|
357
|
-
let O = "\0shared", k = "\0trunk", A = /* @__PURE__ */ new Map();
|
|
358
|
-
for (let t of e) {
|
|
359
|
-
let e = t.id;
|
|
360
|
-
if (D.has(e)) {
|
|
361
|
-
A.set(e, O);
|
|
362
|
-
continue;
|
|
363
|
-
}
|
|
364
|
-
if (T.has(e)) {
|
|
365
|
-
A.set(e, k);
|
|
366
|
-
continue;
|
|
367
|
-
}
|
|
368
|
-
let n = y(e) ? e : E(e);
|
|
369
|
-
A.set(e, n && n !== S ? n : `direct:${e}`);
|
|
370
|
-
}
|
|
371
|
-
let te = e.map((e) => e.id).filter((e) => A.get(e)?.startsWith("direct:")), j = new Map(te.map((e) => [e, e])), ne = (e) => {
|
|
372
|
-
let t = e;
|
|
373
|
-
for (; j.get(t) !== t;) t = j.get(t);
|
|
374
|
-
for (; j.get(e) !== t;) {
|
|
375
|
-
let n = j.get(e);
|
|
376
|
-
j.set(e, t), e = n;
|
|
377
|
-
}
|
|
378
|
-
return t;
|
|
379
|
-
};
|
|
380
|
-
for (let e of t) e.kind === "signal" && A.get(e.from)?.startsWith("direct:") && A.get(e.to)?.startsWith("direct:") && j.set(ne(e.from), ne(e.to));
|
|
381
|
-
for (let e of te) A.set(e, `chain:${ne(e)}`);
|
|
382
|
-
for (let { from: e, to: t } of g) {
|
|
383
|
-
let n = A.get(t);
|
|
384
|
-
n && A.has(e) && A.set(e, n);
|
|
385
|
-
}
|
|
386
|
-
for (let t of e) A.has(t.id) || A.set(t.id, "\0orphan");
|
|
387
|
-
let re = [...new Set(A.values())].filter((e) => e !== O && e !== k), M = (t) => e.filter((e) => A.get(e.id) === t);
|
|
388
|
-
re.sort((e, t) => M(t).length - M(e).length);
|
|
389
|
-
let N = /* @__PURE__ */ new Map();
|
|
390
|
-
for (let e of re) N.set(e, Math.max(0, ...M(e).map((e) => b.get(e.id))));
|
|
391
|
-
let P = Math.max(0, ...N.values()), F = /* @__PURE__ */ new Map();
|
|
392
|
-
if (S) {
|
|
393
|
-
F.set(S, 0);
|
|
394
|
-
let e = [S];
|
|
395
|
-
for (; e.length;) {
|
|
396
|
-
let t = e.shift(), n = F.get(t);
|
|
397
|
-
for (let r of h.get(t)) T.has(r) && !F.has(r) && (F.set(r, n + 1), e.push(r));
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
let I = (e) => D.has(e) ? -1 : T.has(e) ? P + 1 + (F.get(e) ?? 0) : P - (N.get(A.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();
|
|
401
|
-
for (let t of ie) ae.set(t, Math.max(c, ...e.filter((e) => I(e.id) === t).map((e) => f(e.id))));
|
|
402
|
-
let oe = /* @__PURE__ */ new Map(), se = r;
|
|
403
|
-
for (let e of ie) oe.set(e, se), se += ae.get(e) + a;
|
|
404
|
-
let ce = /* @__PURE__ */ new Map(), L = (e) => e.reduce((e, t) => e + p(t) + o, 0) - o, R = (e) => {
|
|
405
|
-
let t = [...m.get(e), ...h.get(e)].map((e) => ce.get(e)).filter((e) => e != null).sort((e, t) => e - t);
|
|
406
|
-
return t.length ? t[Math.floor(t.length / 2)] : 0;
|
|
407
|
-
}, le = (e, t) => {
|
|
408
|
-
let n = t;
|
|
409
|
-
for (let t of e) ce.set(t, n), n += p(t) + o;
|
|
410
|
-
}, ue = (e) => {
|
|
411
|
-
let t = /* @__PURE__ */ new Map();
|
|
412
|
-
for (let n of e) {
|
|
413
|
-
let e = I(n);
|
|
414
|
-
(t.get(e) ?? t.set(e, []).get(e)).push(n);
|
|
415
|
-
}
|
|
416
|
-
return t;
|
|
417
|
-
}, z = i;
|
|
418
|
-
for (let e of re) {
|
|
419
|
-
let t = ue(M(e).map((e) => e.id)), n = l;
|
|
420
|
-
for (let e of t.values()) n = Math.max(n, L(e));
|
|
421
|
-
for (let [, e] of t) e.sort((e, t) => R(e) - R(t)), le(e, z + (n - L(e)) / 2);
|
|
422
|
-
z += n + s;
|
|
423
|
-
}
|
|
424
|
-
let de = (i + Math.max(i, z - s)) / 2;
|
|
425
|
-
{
|
|
426
|
-
let e = [...D];
|
|
427
|
-
le(e, de - L(e) / 2);
|
|
428
|
-
}
|
|
429
|
-
for (let [, e] of ue([...T])) le(e, de - L(e) / 2);
|
|
430
|
-
for (let t of e) u.set(t.id, {
|
|
431
|
-
x: oe.get(I(t.id)),
|
|
432
|
-
y: ce.get(t.id) ?? i
|
|
433
|
-
});
|
|
434
|
-
return u;
|
|
435
|
-
}
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region src/components/Blueprint.vue?vue&type=script&setup=true&lang.ts
|
|
438
|
-
var ae = {
|
|
439
|
-
key: 0,
|
|
440
|
-
class: "nb-blueprint__background-slot",
|
|
441
|
-
"aria-hidden": "true"
|
|
442
|
-
}, oe = { class: "nb-blueprint__chrome" }, se = 100, ce = .2, L = 3, R = 4, le = 240, ue = 400, z = 1.2, de = 40, B = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
443
|
-
__name: "Blueprint",
|
|
444
|
-
props: {
|
|
445
|
-
connections: { default: () => [] },
|
|
446
|
-
density: { default: "default" },
|
|
447
|
-
cards: {},
|
|
448
|
-
cardSizeEstimate: {},
|
|
449
|
-
animateConnections: { default: "never" },
|
|
450
|
-
activityStyle: {},
|
|
451
|
-
wheelMode: { default: "auto" },
|
|
452
|
-
editable: {
|
|
453
|
-
type: Boolean,
|
|
454
|
-
default: !1
|
|
455
|
-
},
|
|
456
|
-
renderer: { default: "auto" },
|
|
457
|
-
background: { default: "dots" },
|
|
458
|
-
layoutEdgeKind: {}
|
|
459
|
-
},
|
|
460
|
-
emits: [
|
|
461
|
-
"connect",
|
|
462
|
-
"disconnect",
|
|
463
|
-
"move",
|
|
464
|
-
"selection-change",
|
|
465
|
-
"focus",
|
|
466
|
-
"drop-on-wire",
|
|
467
|
-
"wire-hover",
|
|
468
|
-
"wire-mouseover",
|
|
469
|
-
"wire-mouseout"
|
|
470
|
-
],
|
|
471
|
-
setup(e, { expose: r, emit: l }) {
|
|
472
|
-
let v = e, S = x(), T = i(() => S.background ? "none" : v.background), O = _(!1), k = _(!1), A = i(() => v.renderer !== "dom" && O.value && !k.value ? "pixi" : "dom");
|
|
473
|
-
function te() {
|
|
474
|
-
try {
|
|
475
|
-
let e = document.createElement("canvas");
|
|
476
|
-
return !!(e.getContext("webgl2") || e.getContext("webgl") || e.getContext("experimental-webgl"));
|
|
477
|
-
} catch {
|
|
478
|
-
return !1;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
function j(e) {
|
|
482
|
-
v.renderer === "pixi" && console.warn(`[NubiscoUI] Blueprint renderer="pixi" unavailable (${e}); using the DOM renderer.`);
|
|
483
|
-
}
|
|
484
|
-
m(async () => {
|
|
485
|
-
if (!(v.renderer === "dom" || typeof window > "u")) {
|
|
486
|
-
if (!te()) {
|
|
487
|
-
j("no WebGL");
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
try {
|
|
491
|
-
await import("pixi.js"), O.value = !0;
|
|
492
|
-
} catch {
|
|
493
|
-
j("pixi.js not installed");
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
function re(e) {
|
|
498
|
-
k.value = !0, j(e instanceof Error ? e.message : "init failed");
|
|
499
|
-
}
|
|
500
|
-
let M = l, N = _(), P = _(0), B = _(0), V = _(1), H = _(0), fe = new I(), U = _(!1), pe;
|
|
501
|
-
function me() {
|
|
502
|
-
U.value = !0, pe && clearTimeout(pe), pe = setTimeout(() => {
|
|
503
|
-
U.value = !1;
|
|
504
|
-
}, 220);
|
|
505
|
-
}
|
|
506
|
-
let he = _(0), ge = _(0), _e = _(1), ve = 0;
|
|
507
|
-
function ye() {
|
|
508
|
-
he.value = P.value, ge.value = B.value, _e.value = V.value, ve = performance.now();
|
|
509
|
-
}
|
|
510
|
-
C([
|
|
511
|
-
P,
|
|
512
|
-
B,
|
|
513
|
-
V
|
|
514
|
-
], () => {
|
|
515
|
-
if (!U.value) {
|
|
516
|
-
ye();
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
performance.now() - ve >= se && ye();
|
|
520
|
-
}), C(U, (e) => {
|
|
521
|
-
e || ye();
|
|
522
|
-
});
|
|
523
|
-
let be = _({
|
|
524
|
-
w: 0,
|
|
525
|
-
h: 0
|
|
526
|
-
}), xe = ee(() => N.value), Se = /* @__PURE__ */ new Map();
|
|
527
|
-
function Ce(e) {
|
|
528
|
-
for (let [t, n] of Se) n.cardId === e && Se.delete(t);
|
|
529
|
-
}
|
|
530
|
-
function we() {
|
|
531
|
-
Se.clear();
|
|
532
|
-
}
|
|
533
|
-
function Te(e, t, n) {
|
|
534
|
-
let r = `${e}:${t}`, i = Se.get(r);
|
|
535
|
-
if (i) return {
|
|
536
|
-
x: i.x,
|
|
537
|
-
y: i.y
|
|
538
|
-
};
|
|
539
|
-
let a = xe.get(e, t);
|
|
540
|
-
if (!a) return null;
|
|
541
|
-
let o = a.getBoundingClientRect(), s = (o.left + o.width / 2 - n.left - P.value) / V.value, c = (o.top + o.height / 2 - n.top - B.value) / V.value, l = a.closest("[data-card-id]")?.getAttribute("data-card-id") ?? "";
|
|
542
|
-
return Se.set(r, {
|
|
543
|
-
cardId: l,
|
|
544
|
-
x: s,
|
|
545
|
-
y: c
|
|
546
|
-
}), {
|
|
547
|
-
x: s,
|
|
548
|
-
y: c
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
let Ee = {
|
|
552
|
-
width: 260,
|
|
553
|
-
height: 200
|
|
554
|
-
}, W = _(/* @__PURE__ */ new Set()), De = _(null);
|
|
555
|
-
function Oe(e) {
|
|
556
|
-
De.value = e, M("focus", e);
|
|
557
|
-
}
|
|
558
|
-
function G(e) {
|
|
559
|
-
W.value = new Set(e), M("selection-change", e);
|
|
560
|
-
}
|
|
561
|
-
function ke() {
|
|
562
|
-
if (v.cards) {
|
|
563
|
-
G(v.cards.map((e) => e.id));
|
|
564
|
-
return;
|
|
565
|
-
}
|
|
566
|
-
if (!N.value) return;
|
|
567
|
-
let e = [];
|
|
568
|
-
N.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
569
|
-
let n = t.dataset.cardId;
|
|
570
|
-
n && e.push(n);
|
|
571
|
-
}), G(e);
|
|
572
|
-
}
|
|
573
|
-
function Ae() {
|
|
574
|
-
G([]), Oe(null);
|
|
575
|
-
}
|
|
576
|
-
let je = _(!1);
|
|
577
|
-
function Me() {
|
|
578
|
-
let e = document.activeElement;
|
|
579
|
-
if (!e) return !1;
|
|
580
|
-
let t = e.tagName;
|
|
581
|
-
return t === "INPUT" || t === "TEXTAREA" ? !0 : e.isContentEditable === !0;
|
|
582
|
-
}
|
|
583
|
-
function Ne(e) {
|
|
584
|
-
if (e.code === "Space" && !e.repeat) {
|
|
585
|
-
if (Me()) return;
|
|
586
|
-
je.value = !0, e.preventDefault();
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
function Pe(e) {
|
|
590
|
-
e.code === "Space" && (je.value = !1);
|
|
591
|
-
}
|
|
592
|
-
let Fe = !1, Ie = 0, Le = 0, Re = [
|
|
593
|
-
"button",
|
|
594
|
-
"input",
|
|
595
|
-
"select",
|
|
596
|
-
"textarea",
|
|
597
|
-
"label",
|
|
598
|
-
"a[href]",
|
|
599
|
-
"[role=\"button\"]",
|
|
600
|
-
"[role=\"slider\"]",
|
|
601
|
-
"[contenteditable=\"true\"]",
|
|
602
|
-
"[data-no-card-drag]"
|
|
603
|
-
].join(", ");
|
|
604
|
-
function ze(e) {
|
|
605
|
-
return !!(e instanceof Element ? e : null)?.closest(Re);
|
|
606
|
-
}
|
|
607
|
-
let Be = [
|
|
608
|
-
"[role=\"slider\"]",
|
|
609
|
-
"[role=\"spinbutton\"]",
|
|
610
|
-
"[role=\"listbox\"]",
|
|
611
|
-
"[data-canvas-wheel-passthrough]",
|
|
612
|
-
"input[type=\"range\"]",
|
|
613
|
-
"input[type=\"number\"]"
|
|
614
|
-
].join(", ");
|
|
615
|
-
function Ve(e) {
|
|
616
|
-
let t = e instanceof Element ? e : null;
|
|
617
|
-
if (!t) return !1;
|
|
618
|
-
if (t.closest(Be)) return !0;
|
|
619
|
-
let n = t;
|
|
620
|
-
for (; n && n !== N.value;) {
|
|
621
|
-
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;
|
|
622
|
-
if (i || a) return !0;
|
|
623
|
-
n = n.parentElement;
|
|
624
|
-
}
|
|
625
|
-
return !1;
|
|
626
|
-
}
|
|
627
|
-
function He(e) {
|
|
628
|
-
let t = e.target instanceof HTMLElement ? e.target : null;
|
|
629
|
-
if (t?.closest(".nb-blueprint__chrome") || t?.closest(".nb-blueprint-card__port")) return;
|
|
630
|
-
if (e.button === 1) {
|
|
631
|
-
Ue(e);
|
|
632
|
-
return;
|
|
633
|
-
}
|
|
634
|
-
if (je.value) {
|
|
635
|
-
Ue(e);
|
|
636
|
-
return;
|
|
637
|
-
}
|
|
638
|
-
let n = t?.closest(".nb-blueprint-card");
|
|
639
|
-
if (n) {
|
|
640
|
-
it(e, n, !ze(t));
|
|
641
|
-
return;
|
|
642
|
-
}
|
|
643
|
-
pt(e);
|
|
644
|
-
}
|
|
645
|
-
function Ue(e) {
|
|
646
|
-
Fe = !0, Ie = e.clientX - P.value, Le = e.clientY - B.value, document.addEventListener("mousemove", We), document.addEventListener("mouseup", Ge);
|
|
647
|
-
}
|
|
648
|
-
function We(e) {
|
|
649
|
-
Fe && (me(), P.value = e.clientX - Ie, B.value = e.clientY - Le);
|
|
650
|
-
}
|
|
651
|
-
function Ge() {
|
|
652
|
-
Fe = !1, document.removeEventListener("mousemove", We), document.removeEventListener("mouseup", Ge);
|
|
653
|
-
}
|
|
654
|
-
function Ke(e, t, n) {
|
|
655
|
-
let r = N.value?.getBoundingClientRect();
|
|
656
|
-
if (!r) return;
|
|
657
|
-
let i = V.value, a = Math.max(ce, Math.min(L, i * n));
|
|
658
|
-
if (a === i) return;
|
|
659
|
-
let o = e - r.left, s = t - r.top, c = (o - P.value) / i, l = (s - B.value) / i;
|
|
660
|
-
P.value = o - c * a, B.value = s - l * a, V.value = a;
|
|
661
|
-
}
|
|
662
|
-
function qe(e) {
|
|
663
|
-
let t = N.value?.getBoundingClientRect();
|
|
664
|
-
t && Ke(t.left + t.width / 2, t.top + t.height / 2, e);
|
|
665
|
-
}
|
|
666
|
-
function Je() {
|
|
667
|
-
qe(z);
|
|
668
|
-
}
|
|
669
|
-
function Ye() {
|
|
670
|
-
qe(1 / z);
|
|
671
|
-
}
|
|
672
|
-
function Xe(e) {
|
|
673
|
-
if (!N.value?.getBoundingClientRect()) return;
|
|
674
|
-
let t = e.ctrlKey;
|
|
675
|
-
if (!t && Ve(e.target)) return;
|
|
676
|
-
e.preventDefault(), me();
|
|
677
|
-
let n;
|
|
678
|
-
if (n = t || v.wheelMode === "zoom" ? "zoom" : (v.wheelMode, "pan"), n === "zoom") {
|
|
679
|
-
let t = 1 - e.deltaY * .01;
|
|
680
|
-
Ke(e.clientX, e.clientY, t);
|
|
681
|
-
} else P.value -= e.deltaX, B.value -= e.deltaY;
|
|
682
|
-
}
|
|
683
|
-
let Ze = !1, Qe = null, $e = 0, et = 0, K = /* @__PURE__ */ new Map(), tt = !1;
|
|
684
|
-
function nt(e) {
|
|
685
|
-
let t = e;
|
|
686
|
-
for (; t?.parentElement;) {
|
|
687
|
-
if (t.parentElement.classList.contains("nb-blueprint__canvas")) return t;
|
|
688
|
-
t = t.parentElement;
|
|
689
|
-
}
|
|
690
|
-
return e.parentElement;
|
|
691
|
-
}
|
|
692
|
-
function q(e) {
|
|
693
|
-
let t = nt(e);
|
|
694
|
-
if (!t) return {
|
|
695
|
-
x: 0,
|
|
696
|
-
y: 0
|
|
697
|
-
};
|
|
698
|
-
let n = parseFloat(t.style.left), r = parseFloat(t.style.top);
|
|
699
|
-
if (!Number.isNaN(n) && !Number.isNaN(r)) return {
|
|
700
|
-
x: n,
|
|
701
|
-
y: r
|
|
702
|
-
};
|
|
703
|
-
let i = (t.style.transform || "").match(/translate\(([^,]+)px,\s*([^)]+)px\)/);
|
|
704
|
-
return i ? {
|
|
705
|
-
x: parseFloat(i[1]),
|
|
706
|
-
y: parseFloat(i[2])
|
|
707
|
-
} : {
|
|
708
|
-
x: t.offsetLeft,
|
|
709
|
-
y: t.offsetTop
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
function rt(e, t, n) {
|
|
713
|
-
let r = nt(e);
|
|
714
|
-
r && (r.style.left = `${t}px`, r.style.top = `${n}px`);
|
|
715
|
-
}
|
|
716
|
-
function it(e, t, n = !0) {
|
|
717
|
-
let r = t.dataset.cardId;
|
|
718
|
-
if (r) {
|
|
719
|
-
if ($e = e.clientX, et = e.clientY, tt = !1, K = /* @__PURE__ */ new Map(), e.shiftKey) {
|
|
720
|
-
let e = new Set(W.value);
|
|
721
|
-
e.has(r) ? e.delete(r) : e.add(r), G(Array.from(e));
|
|
722
|
-
} else W.value.has(r) || G([r]), Oe(r);
|
|
723
|
-
u(() => {
|
|
724
|
-
if (N.value) for (let e of W.value) {
|
|
725
|
-
let t = N.value.querySelector(`[data-card-id="${e}"]`);
|
|
726
|
-
t && K.set(e, q(t));
|
|
727
|
-
}
|
|
728
|
-
}), n && (document.addEventListener("mousemove", ot), document.addEventListener("mouseup", ct));
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
function at() {
|
|
732
|
-
if (!N.value) return;
|
|
733
|
-
let e = [];
|
|
734
|
-
for (let t of K.keys()) {
|
|
735
|
-
let n = N.value.querySelector(`[data-card-id="${t}"]`);
|
|
736
|
-
if (n) {
|
|
737
|
-
let r = q(n);
|
|
738
|
-
e.push({
|
|
739
|
-
id: t,
|
|
740
|
-
x: Math.round(r.x),
|
|
741
|
-
y: Math.round(r.y)
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
e.length && M("move", e);
|
|
746
|
-
}
|
|
747
|
-
function ot(e) {
|
|
748
|
-
let t = (e.clientX - $e) / V.value, n = (e.clientY - et) / V.value;
|
|
749
|
-
if (!(!Ze && Math.abs(t * V.value) < R && Math.abs(n * V.value) < R) && (Ze = !0, tt = !0, N.value)) {
|
|
750
|
-
for (let [e, r] of K) {
|
|
751
|
-
let i = N.value.querySelector(`[data-card-id="${e}"]`);
|
|
752
|
-
i && rt(i, r.x + t, r.y + n);
|
|
753
|
-
}
|
|
754
|
-
if (at(), H.value++, K.size === 1) {
|
|
755
|
-
let [t] = K.keys();
|
|
756
|
-
if (t) {
|
|
757
|
-
let n = st(e.clientX, e.clientY), r = n ? `${n.fromNode}/${n.fromPort}|${n.toNode}/${n.toPort}` : null;
|
|
758
|
-
r !== Qe && (Qe = r, M("wire-hover", t, n));
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
function st(e, t) {
|
|
764
|
-
if (!N.value) return null;
|
|
765
|
-
let n = N.value.querySelectorAll(".nb-blueprint__wire-hitregion");
|
|
766
|
-
for (let r of n) {
|
|
767
|
-
let n = r.ownerSVGElement;
|
|
768
|
-
if (!n) continue;
|
|
769
|
-
let i = n.getScreenCTM();
|
|
770
|
-
if (!i) continue;
|
|
771
|
-
let a = i.inverse(), o = n.createSVGPoint();
|
|
772
|
-
o.x = e, o.y = t;
|
|
773
|
-
let s = o.matrixTransform(a);
|
|
774
|
-
if (r.isPointInStroke(s)) {
|
|
775
|
-
let e = parseInt(r.getAttribute("data-wire-index") ?? "-1", 10), t = e >= 0 ? Rt.value[e] : void 0;
|
|
776
|
-
if (t) return t.conn;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
return null;
|
|
780
|
-
}
|
|
781
|
-
function ct(e) {
|
|
782
|
-
if (document.removeEventListener("mousemove", ot), document.removeEventListener("mouseup", ct), tt && (at(), e && K.size === 1)) {
|
|
783
|
-
let [t] = K.keys();
|
|
784
|
-
if (t) {
|
|
785
|
-
let n = st(e.clientX, e.clientY);
|
|
786
|
-
n && M("drop-on-wire", t, n);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
if (Ze = !1, tt = !1, K = /* @__PURE__ */ new Map(), Qe !== null) {
|
|
790
|
-
let [e] = K.keys();
|
|
791
|
-
e && M("wire-hover", e, null), Qe = null;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
let J = _(null), lt = !1, ut = i(() => {
|
|
795
|
-
if (!J.value) return {};
|
|
796
|
-
let { x1: e, y1: t, x2: n, y2: r } = J.value;
|
|
797
|
-
return {
|
|
798
|
-
left: `${Math.min(e, n)}px`,
|
|
799
|
-
top: `${Math.min(t, r)}px`,
|
|
800
|
-
width: `${Math.abs(n - e)}px`,
|
|
801
|
-
height: `${Math.abs(r - t)}px`
|
|
802
|
-
};
|
|
803
|
-
}), dt = _(null);
|
|
804
|
-
function ft() {
|
|
805
|
-
if (W.value.size < 2 || !N.value || J.value) return null;
|
|
806
|
-
let e = N.value.getBoundingClientRect(), t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
807
|
-
for (let a of W.value) {
|
|
808
|
-
let o = N.value.querySelector(`[data-card-id="${a}"]`);
|
|
809
|
-
if (!o) continue;
|
|
810
|
-
let s = o.getBoundingClientRect(), c = s.left - e.left, l = s.top - e.top;
|
|
811
|
-
t = Math.min(t, c), n = Math.min(n, l), r = Math.max(r, c + s.width), i = Math.max(i, l + s.height);
|
|
812
|
-
}
|
|
813
|
-
return t === Infinity ? null : {
|
|
814
|
-
left: `${t - 8}px`,
|
|
815
|
-
top: `${n - 8}px`,
|
|
816
|
-
width: `${r - t + 16}px`,
|
|
817
|
-
height: `${i - n + 16}px`
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
C([
|
|
821
|
-
P,
|
|
822
|
-
B,
|
|
823
|
-
V,
|
|
824
|
-
H,
|
|
825
|
-
W,
|
|
826
|
-
J
|
|
827
|
-
], () => {
|
|
828
|
-
dt.value = ft();
|
|
829
|
-
}, {
|
|
830
|
-
flush: "post",
|
|
831
|
-
immediate: !0
|
|
832
|
-
});
|
|
833
|
-
function pt(e) {
|
|
834
|
-
if (!N.value) return;
|
|
835
|
-
let t = N.value.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
836
|
-
lt = e.shiftKey, lt || G([]), J.value = {
|
|
837
|
-
x1: n,
|
|
838
|
-
y1: r,
|
|
839
|
-
x2: n,
|
|
840
|
-
y2: r
|
|
841
|
-
}, document.addEventListener("mousemove", mt), document.addEventListener("mouseup", ht);
|
|
842
|
-
}
|
|
843
|
-
function mt(e) {
|
|
844
|
-
if (!J.value || !N.value) return;
|
|
845
|
-
let t = N.value.getBoundingClientRect();
|
|
846
|
-
J.value.x2 = e.clientX - t.left, J.value.y2 = e.clientY - t.top;
|
|
847
|
-
}
|
|
848
|
-
function ht() {
|
|
849
|
-
if (document.removeEventListener("mousemove", mt), document.removeEventListener("mouseup", ht), !J.value || !N.value) {
|
|
850
|
-
J.value = null;
|
|
851
|
-
return;
|
|
852
|
-
}
|
|
853
|
-
let e = N.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = J.value, a = Math.min(t, r), o = Math.min(n, i), s = Math.max(t, r), c = Math.max(n, i);
|
|
854
|
-
if (Math.abs(r - t) < R && Math.abs(i - n) < R) {
|
|
855
|
-
lt || (G([]), Oe(null)), J.value = null;
|
|
856
|
-
return;
|
|
857
|
-
}
|
|
858
|
-
let l = lt ? [...W.value] : [];
|
|
859
|
-
N.value.querySelectorAll("[data-card-id]").forEach((t) => {
|
|
860
|
-
let n = t.getBoundingClientRect(), r = n.left - e.left, i = n.top - e.top, u = r + n.width, d = i + n.height;
|
|
861
|
-
if (r < s && u > a && i < c && d > o) {
|
|
862
|
-
let e = t.dataset.cardId;
|
|
863
|
-
e && !l.includes(e) && l.push(e);
|
|
864
|
-
}
|
|
865
|
-
}), G(l), J.value = null;
|
|
866
|
-
}
|
|
867
|
-
let gt = _(null), Y = _(null), X = _(null);
|
|
868
|
-
function _t(e) {
|
|
869
|
-
Y.value = e, X.value = null, document.addEventListener("mousemove", jt), document.addEventListener("mouseup", Mt);
|
|
870
|
-
}
|
|
871
|
-
function vt(e, t) {
|
|
872
|
-
if (e.button !== 0 || (e.stopPropagation(), !N.value)) return;
|
|
873
|
-
let n = N.value.getBoundingClientRect(), r = (e.clientX - n.left - P.value) / V.value, i = (e.clientY - n.top - B.value) / V.value, a = kt(t.fromNode, t.fromPort), o = kt(t.toNode, t.toPort);
|
|
874
|
-
if (!a || !o) return;
|
|
875
|
-
let s = a.getBoundingClientRect(), c = o.getBoundingClientRect(), l = (s.left + s.width / 2 - n.left - P.value) / V.value, u = (s.top + s.height / 2 - n.top - B.value) / V.value, d = (c.left + c.width / 2 - n.left - P.value) / V.value, f = (c.top + c.height / 2 - n.top - B.value) / V.value, p = Math.hypot(r - l, i - u), m = Math.hypot(r - d, i - f);
|
|
876
|
-
if (Math.min(p, m) > de) return;
|
|
877
|
-
e.preventDefault();
|
|
878
|
-
let h = p < m, g = h ? o : a;
|
|
879
|
-
Y.value = h ? {
|
|
880
|
-
nodeId: t.toNode,
|
|
881
|
-
portId: t.toPort,
|
|
882
|
-
type: "input",
|
|
883
|
-
dataType: At(g)
|
|
884
|
-
} : {
|
|
885
|
-
nodeId: t.fromNode,
|
|
886
|
-
portId: t.fromPort,
|
|
887
|
-
type: "output",
|
|
888
|
-
dataType: At(g)
|
|
889
|
-
}, X.value = t, document.addEventListener("mousemove", jt), document.addEventListener("mouseup", Mt);
|
|
890
|
-
}
|
|
891
|
-
g(n, {
|
|
892
|
-
onPortDown: (e) => _t(e),
|
|
893
|
-
onPortUp: (e) => Nt(e),
|
|
894
|
-
dragOrigin: Y,
|
|
895
|
-
density: i(() => v.density),
|
|
896
|
-
nudge: yt,
|
|
897
|
-
cancelPortDrag: Mt
|
|
898
|
-
});
|
|
899
|
-
function yt(e, t, n) {
|
|
900
|
-
let r = N.value;
|
|
901
|
-
if (!r) return;
|
|
902
|
-
let i;
|
|
903
|
-
if (W.value.has(e)) i = Q();
|
|
904
|
-
else {
|
|
905
|
-
let t = r.querySelector(`[data-card-id="${e}"]`);
|
|
906
|
-
if (!t) return;
|
|
907
|
-
let n = q(t);
|
|
908
|
-
i = [{
|
|
909
|
-
id: e,
|
|
910
|
-
el: t,
|
|
911
|
-
x: n.x,
|
|
912
|
-
y: n.y,
|
|
913
|
-
w: t.offsetWidth,
|
|
914
|
-
h: t.offsetHeight
|
|
915
|
-
}];
|
|
916
|
-
}
|
|
917
|
-
i.length && $(i.map((e) => ({
|
|
918
|
-
...e,
|
|
919
|
-
x: e.x + t,
|
|
920
|
-
y: e.y + n
|
|
921
|
-
})));
|
|
922
|
-
}
|
|
923
|
-
function bt(e, t) {
|
|
924
|
-
let n = N.value?.getBoundingClientRect(), r = n?.left ?? 0, i = n?.top ?? 0;
|
|
925
|
-
return {
|
|
926
|
-
x: (e - r - P.value) / V.value,
|
|
927
|
-
y: (t - i - B.value) / V.value
|
|
928
|
-
};
|
|
929
|
-
}
|
|
930
|
-
function xt(e, t) {
|
|
931
|
-
let n = N.value?.getBoundingClientRect(), r = n?.left ?? 0, i = n?.top ?? 0;
|
|
932
|
-
return {
|
|
933
|
-
clientX: e * V.value + P.value + r,
|
|
934
|
-
clientY: t * V.value + B.value + i
|
|
935
|
-
};
|
|
936
|
-
}
|
|
937
|
-
g(t, {
|
|
938
|
-
panX: P,
|
|
939
|
-
panY: B,
|
|
940
|
-
zoom: V,
|
|
941
|
-
selectedIds: W,
|
|
942
|
-
focusedId: De,
|
|
943
|
-
selectAll: ke,
|
|
944
|
-
deselectAll: Ae,
|
|
945
|
-
centerView: Ut,
|
|
946
|
-
fitToView: Wt,
|
|
947
|
-
resetView: Gt,
|
|
948
|
-
getCamera: Kt,
|
|
949
|
-
setCamera: qt,
|
|
950
|
-
zoomIn: Je,
|
|
951
|
-
zoomOut: Ye,
|
|
952
|
-
alignLeft: Jt,
|
|
953
|
-
alignCenter: Yt,
|
|
954
|
-
alignRight: Xt,
|
|
955
|
-
alignTop: Zt,
|
|
956
|
-
alignMiddle: Qt,
|
|
957
|
-
alignBottom: $t,
|
|
958
|
-
distributeHorizontally: en,
|
|
959
|
-
distributeVertically: tn,
|
|
960
|
-
autoLayout: nn,
|
|
961
|
-
screenToCanvas: bt,
|
|
962
|
-
canvasToScreen: xt,
|
|
963
|
-
isEditMode: i(() => v.editable),
|
|
964
|
-
viewportSize: be,
|
|
965
|
-
isTransforming: U,
|
|
966
|
-
live: fe,
|
|
967
|
-
onPortDown: (e) => _t(e),
|
|
968
|
-
onPortUp: (e) => Nt(e)
|
|
969
|
-
});
|
|
970
|
-
let Z = _(null);
|
|
971
|
-
function St(e, t) {
|
|
972
|
-
if (!N.value) return;
|
|
973
|
-
let n = N.value.getBoundingClientRect();
|
|
974
|
-
Z.value = {
|
|
975
|
-
x: e.clientX - n.left,
|
|
976
|
-
y: e.clientY - n.top,
|
|
977
|
-
conn: t
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
function Ct(e, t) {
|
|
981
|
-
M("wire-mouseover", t, e.clientX, e.clientY);
|
|
982
|
-
}
|
|
983
|
-
function wt(e) {
|
|
984
|
-
M("wire-mouseout", e);
|
|
985
|
-
}
|
|
986
|
-
function Tt() {
|
|
987
|
-
Z.value = null;
|
|
988
|
-
}
|
|
989
|
-
function Et(e) {
|
|
990
|
-
M("disconnect", e), Tt();
|
|
991
|
-
}
|
|
992
|
-
function Dt(e) {
|
|
993
|
-
Z.value && (e.target.closest(".nb-blueprint__wire-menu") || Tt());
|
|
994
|
-
}
|
|
995
|
-
function Ot(e) {
|
|
996
|
-
e.key === "Escape" && Z.value && Tt();
|
|
997
|
-
}
|
|
998
|
-
function kt(e, t) {
|
|
999
|
-
return xe.get(e, t);
|
|
1000
|
-
}
|
|
1001
|
-
function At(e) {
|
|
1002
|
-
let t = e?.getAttribute("data-port-data-type");
|
|
1003
|
-
return t && t !== "any" ? t : void 0;
|
|
1004
|
-
}
|
|
1005
|
-
function jt(e) {
|
|
1006
|
-
let t = Y.value;
|
|
1007
|
-
if (!t || !N.value) return;
|
|
1008
|
-
let n = N.value.getBoundingClientRect(), r = (e.clientX - n.left - P.value) / V.value, i = (e.clientY - n.top - B.value) / V.value, a = kt(t.nodeId, t.portId);
|
|
1009
|
-
if (!a) return;
|
|
1010
|
-
let o = a.getBoundingClientRect(), s = (o.left + o.width / 2 - n.left - P.value) / V.value, c = (o.top + o.height / 2 - n.top - B.value) / V.value, l = Math.abs(r - s) * .5;
|
|
1011
|
-
gt.value = `M ${s} ${c} C ${s + l} ${c}, ${r - l} ${i}, ${r} ${i}`;
|
|
1012
|
-
}
|
|
1013
|
-
function Mt() {
|
|
1014
|
-
Y.value = null, X.value = null, gt.value = null, document.removeEventListener("mousemove", jt), document.removeEventListener("mouseup", Mt);
|
|
1015
|
-
}
|
|
1016
|
-
function Nt(e) {
|
|
1017
|
-
let t = Y.value;
|
|
1018
|
-
if (!t || t.nodeId === e.nodeId || t.type === e.type) return;
|
|
1019
|
-
let n = t.type === "output" ? t : e, r = t.type === "output" ? e : t, i = {
|
|
1020
|
-
fromNode: n.nodeId,
|
|
1021
|
-
fromPort: n.portId,
|
|
1022
|
-
toNode: r.nodeId,
|
|
1023
|
-
toPort: r.portId
|
|
1024
|
-
}, a = X.value;
|
|
1025
|
-
a ? a.fromNode === i.fromNode && a.fromPort === i.fromPort && a.toNode === i.toNode && a.toPort === i.toPort || (M("disconnect", a), M("connect", i)) : M("connect", i), Y.value = null, X.value = null, gt.value = null;
|
|
1026
|
-
}
|
|
1027
|
-
let Pt = /* @__PURE__ */ new WeakMap();
|
|
1028
|
-
function Ft(e) {
|
|
1029
|
-
let t = Pt.get(e);
|
|
1030
|
-
if (t) return t;
|
|
1031
|
-
let n = e.closest(".nb-blueprint-card"), r = "var(--nb-c-primary)";
|
|
1032
|
-
if (n) {
|
|
1033
|
-
let e = getComputedStyle(n).getPropertyValue("--nb-card-color").trim();
|
|
1034
|
-
e && !e.startsWith("var(") && (r = e);
|
|
1035
|
-
}
|
|
1036
|
-
return Pt.set(e, r), r;
|
|
1037
|
-
}
|
|
1038
|
-
function It(e) {
|
|
1039
|
-
let t = e.getAttribute("data-port-data-type") ?? "";
|
|
1040
|
-
return t === "midi" || t.startsWith("midi:");
|
|
1041
|
-
}
|
|
1042
|
-
function Lt(e) {
|
|
1043
|
-
let t = Math.max(0, Math.min(1, e)), n = [
|
|
1044
|
-
34,
|
|
1045
|
-
197,
|
|
1046
|
-
94
|
|
1047
|
-
], r = [
|
|
1048
|
-
250,
|
|
1049
|
-
204,
|
|
1050
|
-
21
|
|
1051
|
-
], i = [
|
|
1052
|
-
239,
|
|
1053
|
-
68,
|
|
1054
|
-
68
|
|
1055
|
-
], a, o, s;
|
|
1056
|
-
t <= .5 ? (a = n, o = r, s = t * 2) : (a = r, o = i, s = (t - .5) * 2);
|
|
1057
|
-
let c = (e, t) => Math.round(e + (t - e) * s);
|
|
1058
|
-
return `rgb(${c(a[0], o[0])}, ${c(a[1], o[1])}, ${c(a[2], o[2])})`;
|
|
1059
|
-
}
|
|
1060
|
-
let Rt = i(() => {
|
|
1061
|
-
if (H.value, !N.value) return [];
|
|
1062
|
-
let e = N.value.getBoundingClientRect(), t = _e.value, n = le / t, r = (0 - he.value) / t - n, i = (e.width - he.value) / t + n, a = (0 - ge.value) / t - n, o = (e.height - ge.value) / t + n, s = X.value;
|
|
1063
|
-
return v.connections.filter((e) => !s || e.fromNode !== s.fromNode || e.fromPort !== s.fromPort || e.toNode !== s.toNode || e.toPort !== s.toPort).map((t) => {
|
|
1064
|
-
let n = Te(t.fromNode, t.fromPort, e), s = Te(t.toNode, t.toPort, e);
|
|
1065
|
-
if (!n || !s) return null;
|
|
1066
|
-
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;
|
|
1067
|
-
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;
|
|
1068
|
-
let h = kt(t.fromNode, t.fromPort);
|
|
1069
|
-
if (!h) return null;
|
|
1070
|
-
let g = `M ${c} ${l} C ${p} ${l}, ${m} ${d}, ${u} ${d}`, _ = Ft(h), y = It(h), b = _;
|
|
1071
|
-
return v.animateConnections === "levels" && t.active !== !1 && !y && typeof t.level == "number" && (b = Lt(t.level)), {
|
|
1072
|
-
path: g,
|
|
1073
|
-
conn: t,
|
|
1074
|
-
color: b,
|
|
1075
|
-
isMidi: y
|
|
1076
|
-
};
|
|
1077
|
-
}).filter(Boolean);
|
|
1078
|
-
}), zt = (e) => {
|
|
1079
|
-
let t = v.cardSizeEstimate ?? Ee;
|
|
1080
|
-
return {
|
|
1081
|
-
w: e.width ?? t.width,
|
|
1082
|
-
h: e.height ?? t.height
|
|
1083
|
-
};
|
|
1084
|
-
}, Bt = i(() => {
|
|
1085
|
-
let e = v.cards;
|
|
1086
|
-
if (!e || e.length === 0) return [];
|
|
1087
|
-
let t = _e.value, n = ue / t, r = (0 - he.value) / t - n, i = (be.value.w - he.value) / t + n, a = (0 - ge.value) / t - n, o = (be.value.h - ge.value) / t + n, s = (e, t, n, s) => n >= r && e <= i && s >= a && t <= o, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
|
|
1088
|
-
for (let t of e) {
|
|
1089
|
-
c.set(t.id, t);
|
|
1090
|
-
let { w: e, h: n } = zt(t);
|
|
1091
|
-
s(t.x, t.y, t.x + e, t.y + n) && l.add(t.id);
|
|
1092
|
-
}
|
|
1093
|
-
for (let e of v.connections) {
|
|
1094
|
-
let t = c.get(e.fromNode), n = c.get(e.toNode);
|
|
1095
|
-
if (!t || !n || l.has(t.id) && l.has(n.id)) continue;
|
|
1096
|
-
let r = zt(t), i = zt(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);
|
|
1097
|
-
s(p, o < d ? o : d, m, o < d ? d : o) && (l.add(t.id), l.add(n.id));
|
|
1098
|
-
}
|
|
1099
|
-
return e.filter((e) => l.has(e.id));
|
|
1100
|
-
});
|
|
1101
|
-
function Vt(e) {
|
|
1102
|
-
return v.animateConnections === "never" ? !1 : v.animateConnections === "always" ? !0 : v.animateConnections === "levels" ? !1 : e.active !== !1;
|
|
1103
|
-
}
|
|
1104
|
-
function Ht(e) {
|
|
1105
|
-
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity, a = e && e.length ? new Set(e) : null, o = 0;
|
|
1106
|
-
if (v.cards) {
|
|
1107
|
-
if (v.cards.length === 0) return null;
|
|
1108
|
-
for (let e of v.cards) {
|
|
1109
|
-
if (a && !a.has(e.id)) continue;
|
|
1110
|
-
let { w: s, h: c } = zt(e);
|
|
1111
|
-
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++;
|
|
1112
|
-
}
|
|
1113
|
-
return o > 0 ? {
|
|
1114
|
-
minX: t,
|
|
1115
|
-
minY: n,
|
|
1116
|
-
maxX: r,
|
|
1117
|
-
maxY: i
|
|
1118
|
-
} : null;
|
|
1119
|
-
}
|
|
1120
|
-
if (!N.value) return null;
|
|
1121
|
-
let s = N.value.querySelectorAll("[data-card-id]");
|
|
1122
|
-
return s.length === 0 ? null : (s.forEach((e) => {
|
|
1123
|
-
let s = e;
|
|
1124
|
-
if (a && !a.has(s.getAttribute("data-card-id") ?? "")) return;
|
|
1125
|
-
let c = q(s), l = s.offsetWidth, u = s.offsetHeight;
|
|
1126
|
-
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++;
|
|
1127
|
-
}), o > 0 ? {
|
|
1128
|
-
minX: t,
|
|
1129
|
-
minY: n,
|
|
1130
|
-
maxX: r,
|
|
1131
|
-
maxY: i
|
|
1132
|
-
} : null);
|
|
1133
|
-
}
|
|
1134
|
-
function Ut() {
|
|
1135
|
-
if (V.value = 1, !N.value) return;
|
|
1136
|
-
let e = Ht();
|
|
1137
|
-
if (!e) {
|
|
1138
|
-
P.value = 0, B.value = 0;
|
|
1139
|
-
return;
|
|
1140
|
-
}
|
|
1141
|
-
let t = N.value.getBoundingClientRect(), n = (e.minX + e.maxX) / 2, r = (e.minY + e.maxY) / 2;
|
|
1142
|
-
P.value = t.width / 2 - n, B.value = t.height / 2 - r;
|
|
1143
|
-
}
|
|
1144
|
-
function Wt(e = 40, t) {
|
|
1145
|
-
if (!N.value) return;
|
|
1146
|
-
let n = Ht(t);
|
|
1147
|
-
if (!n) {
|
|
1148
|
-
if (t && t.length) return;
|
|
1149
|
-
Gt();
|
|
1150
|
-
return;
|
|
1151
|
-
}
|
|
1152
|
-
let r = N.value.getBoundingClientRect(), i = n.maxX - n.minX, a = n.maxY - n.minY;
|
|
1153
|
-
if (i <= 0 || a <= 0) {
|
|
1154
|
-
Ut();
|
|
1155
|
-
return;
|
|
1156
|
-
}
|
|
1157
|
-
let o = r.width - e * 2, s = r.height - e * 2, c = o / i, l = s / a, u = Math.max(ce, Math.min(L, Math.min(c, l))), d = (n.minX + n.maxX) / 2, f = (n.minY + n.maxY) / 2;
|
|
1158
|
-
V.value = u, P.value = r.width / 2 - d * u, B.value = r.height / 2 - f * u;
|
|
1159
|
-
}
|
|
1160
|
-
function Gt() {
|
|
1161
|
-
P.value = 0, B.value = 0, V.value = 1;
|
|
1162
|
-
}
|
|
1163
|
-
function Kt() {
|
|
1164
|
-
return {
|
|
1165
|
-
panX: P.value,
|
|
1166
|
-
panY: B.value,
|
|
1167
|
-
zoom: V.value
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
function qt(e) {
|
|
1171
|
-
typeof e.panX == "number" && (P.value = e.panX), typeof e.panY == "number" && (B.value = e.panY), typeof e.zoom == "number" && (V.value = e.zoom);
|
|
1172
|
-
}
|
|
1173
|
-
function Q() {
|
|
1174
|
-
if (!N.value) return [];
|
|
1175
|
-
let e = [];
|
|
1176
|
-
for (let t of W.value) {
|
|
1177
|
-
let n = N.value.querySelector(`[data-card-id="${t}"]`);
|
|
1178
|
-
if (!n) continue;
|
|
1179
|
-
let r = q(n);
|
|
1180
|
-
e.push({
|
|
1181
|
-
id: t,
|
|
1182
|
-
el: n,
|
|
1183
|
-
x: r.x,
|
|
1184
|
-
y: r.y,
|
|
1185
|
-
w: n.offsetWidth,
|
|
1186
|
-
h: n.offsetHeight
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
return e;
|
|
1190
|
-
}
|
|
1191
|
-
function $(e) {
|
|
1192
|
-
let t = [];
|
|
1193
|
-
for (let n of e) n.el && rt(n.el, n.x, n.y), t.push({
|
|
1194
|
-
id: n.id,
|
|
1195
|
-
x: Math.round(n.x),
|
|
1196
|
-
y: Math.round(n.y)
|
|
1197
|
-
});
|
|
1198
|
-
t.length && (H.value++, M("move", t));
|
|
1199
|
-
}
|
|
1200
|
-
function Jt() {
|
|
1201
|
-
let e = Q();
|
|
1202
|
-
if (e.length < 2) return;
|
|
1203
|
-
let t = Math.min(...e.map((e) => e.x));
|
|
1204
|
-
e.forEach((e) => e.x = t), $(e);
|
|
1205
|
-
}
|
|
1206
|
-
function Yt() {
|
|
1207
|
-
let e = Q();
|
|
1208
|
-
if (e.length < 2) return;
|
|
1209
|
-
let t = e.map((e) => e.x + e.w / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
1210
|
-
e.forEach((e) => e.x = n - e.w / 2), $(e);
|
|
1211
|
-
}
|
|
1212
|
-
function Xt() {
|
|
1213
|
-
let e = Q();
|
|
1214
|
-
if (e.length < 2) return;
|
|
1215
|
-
let t = Math.max(...e.map((e) => e.x + e.w));
|
|
1216
|
-
e.forEach((e) => e.x = t - e.w), $(e);
|
|
1217
|
-
}
|
|
1218
|
-
function Zt() {
|
|
1219
|
-
let e = Q();
|
|
1220
|
-
if (e.length < 2) return;
|
|
1221
|
-
let t = Math.min(...e.map((e) => e.y));
|
|
1222
|
-
e.forEach((e) => e.y = t), $(e);
|
|
1223
|
-
}
|
|
1224
|
-
function Qt() {
|
|
1225
|
-
let e = Q();
|
|
1226
|
-
if (e.length < 2) return;
|
|
1227
|
-
let t = e.map((e) => e.y + e.h / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
|
|
1228
|
-
e.forEach((e) => e.y = n - e.h / 2), $(e);
|
|
1229
|
-
}
|
|
1230
|
-
function $t() {
|
|
1231
|
-
let e = Q();
|
|
1232
|
-
if (e.length < 2) return;
|
|
1233
|
-
let t = Math.max(...e.map((e) => e.y + e.h));
|
|
1234
|
-
e.forEach((e) => e.y = t - e.h), $(e);
|
|
1235
|
-
}
|
|
1236
|
-
function en() {
|
|
1237
|
-
let e = Q();
|
|
1238
|
-
if (e.length < 3) return;
|
|
1239
|
-
e.sort((e, t) => e.x - t.x);
|
|
1240
|
-
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;
|
|
1241
|
-
for (let t = 1; t < e.length - 1; t++) e[t].x = a, a += e[t].w + i;
|
|
1242
|
-
$(e);
|
|
1243
|
-
}
|
|
1244
|
-
function tn() {
|
|
1245
|
-
let e = Q();
|
|
1246
|
-
if (e.length < 3) return;
|
|
1247
|
-
e.sort((e, t) => e.y - t.y);
|
|
1248
|
-
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;
|
|
1249
|
-
for (let t = 1; t < e.length - 1; t++) e[t].y = a, a += e[t].h + i;
|
|
1250
|
-
$(e);
|
|
1251
|
-
}
|
|
1252
|
-
function nn(e) {
|
|
1253
|
-
if (!N.value) return;
|
|
1254
|
-
let t = e?.gapY ?? 40, n = e?.padding ?? 60, r = [];
|
|
1255
|
-
if (v.cards) for (let e of v.cards) {
|
|
1256
|
-
let t = N.value.querySelector(`[data-card-id="${e.id}"]`), { w: n, h: i } = zt(e);
|
|
1257
|
-
r.push({
|
|
1258
|
-
id: e.id,
|
|
1259
|
-
el: t,
|
|
1260
|
-
x: e.x,
|
|
1261
|
-
y: e.y,
|
|
1262
|
-
w: e.width ?? t?.offsetWidth ?? n,
|
|
1263
|
-
h: e.height ?? t?.offsetHeight ?? i
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
else N.value.querySelectorAll("[data-card-id]").forEach((e) => {
|
|
1267
|
-
let t = e, n = t.dataset.cardId;
|
|
1268
|
-
if (!n) return;
|
|
1269
|
-
let i = q(t);
|
|
1270
|
-
r.push({
|
|
1271
|
-
id: n,
|
|
1272
|
-
el: t,
|
|
1273
|
-
x: i.x,
|
|
1274
|
-
y: i.y,
|
|
1275
|
-
w: t.offsetWidth,
|
|
1276
|
-
h: t.offsetHeight
|
|
1277
|
-
});
|
|
1278
|
-
});
|
|
1279
|
-
if (!r.length) return;
|
|
1280
|
-
let i = new Map(r.map((e) => [e.id, e])), a = r.map((e) => ({
|
|
1281
|
-
id: e.id,
|
|
1282
|
-
w: e.w,
|
|
1283
|
-
h: e.h
|
|
1284
|
-
})), o = v.layoutEdgeKind, s = [];
|
|
1285
|
-
for (let e of v.connections) !i.has(e.fromNode) || !i.has(e.toNode) || s.push({
|
|
1286
|
-
from: e.fromNode,
|
|
1287
|
-
to: e.toNode,
|
|
1288
|
-
kind: o ? o(e) : "signal"
|
|
1289
|
-
});
|
|
1290
|
-
let c = ie(a, s, {
|
|
1291
|
-
colGap: e?.gapX,
|
|
1292
|
-
rowGap: t,
|
|
1293
|
-
originX: n,
|
|
1294
|
-
originY: n
|
|
1295
|
-
});
|
|
1296
|
-
for (let e of r) {
|
|
1297
|
-
let t = c.get(e.id);
|
|
1298
|
-
t && (e.x = t.x, e.y = t.y);
|
|
1299
|
-
}
|
|
1300
|
-
$(r);
|
|
1301
|
-
}
|
|
1302
|
-
let rn = new MutationObserver((e) => {
|
|
1303
|
-
xe.prune();
|
|
1304
|
-
let t = !1, n = !1;
|
|
1305
|
-
for (let r of e) {
|
|
1306
|
-
if (r.type === "childList") {
|
|
1307
|
-
t = !0;
|
|
1308
|
-
continue;
|
|
1309
|
-
}
|
|
1310
|
-
if (!D(r.target)) continue;
|
|
1311
|
-
n = !0;
|
|
1312
|
-
let e = r.target.querySelector("[data-card-id]")?.getAttribute("data-card-id");
|
|
1313
|
-
e && Ce(e);
|
|
1314
|
-
}
|
|
1315
|
-
t && we(), (t || n) && H.value++;
|
|
1316
|
-
}), an = null;
|
|
1317
|
-
return m(() => {
|
|
1318
|
-
if (N.value) {
|
|
1319
|
-
let e = N.value.getBoundingClientRect();
|
|
1320
|
-
be.value = {
|
|
1321
|
-
w: e.width,
|
|
1322
|
-
h: e.height
|
|
1323
|
-
}, typeof ResizeObserver < "u" && (an = new ResizeObserver((e) => {
|
|
1324
|
-
let t = e[0]?.contentRect;
|
|
1325
|
-
t && (be.value = {
|
|
1326
|
-
w: t.width,
|
|
1327
|
-
h: t.height
|
|
1328
|
-
});
|
|
1329
|
-
}), an.observe(N.value)), rn.observe(N.value, {
|
|
1330
|
-
childList: !0,
|
|
1331
|
-
subtree: !0,
|
|
1332
|
-
attributes: !0,
|
|
1333
|
-
attributeFilter: ["style"]
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
window.addEventListener("keydown", Ne), window.addEventListener("keyup", Pe), document.addEventListener("mousedown", Dt), document.addEventListener("keydown", Ot), u(() => u(Wt));
|
|
1337
|
-
}), p(() => {
|
|
1338
|
-
rn.disconnect(), an?.disconnect(), pe && clearTimeout(pe), window.removeEventListener("keydown", Ne), window.removeEventListener("keyup", Pe), document.removeEventListener("mousedown", Dt), document.removeEventListener("keydown", Ot);
|
|
1339
|
-
}), r({
|
|
1340
|
-
centerView: Ut,
|
|
1341
|
-
fitToView: Wt,
|
|
1342
|
-
resetView: Gt,
|
|
1343
|
-
getCamera: Kt,
|
|
1344
|
-
setCamera: qt,
|
|
1345
|
-
zoomIn: Je,
|
|
1346
|
-
zoomOut: Ye,
|
|
1347
|
-
selectedIds: W,
|
|
1348
|
-
focusedId: De,
|
|
1349
|
-
selectAll: ke,
|
|
1350
|
-
deselectAll: Ae,
|
|
1351
|
-
alignLeft: Jt,
|
|
1352
|
-
alignCenter: Yt,
|
|
1353
|
-
alignRight: Xt,
|
|
1354
|
-
alignTop: Zt,
|
|
1355
|
-
alignMiddle: Qt,
|
|
1356
|
-
alignBottom: $t,
|
|
1357
|
-
distributeHorizontally: en,
|
|
1358
|
-
distributeVertically: tn,
|
|
1359
|
-
autoLayout: nn,
|
|
1360
|
-
onPortMouseDown: _t,
|
|
1361
|
-
onPortMouseUp: Nt,
|
|
1362
|
-
panX: P,
|
|
1363
|
-
panY: B,
|
|
1364
|
-
zoom: V,
|
|
1365
|
-
isTransforming: U,
|
|
1366
|
-
live: fe
|
|
1367
|
-
}), (t, n) => (h(), s("div", {
|
|
1368
|
-
ref_key: "containerRef",
|
|
1369
|
-
ref: N,
|
|
1370
|
-
class: d(["nb-blueprint", {
|
|
1371
|
-
"is-panning": b(Fe),
|
|
1372
|
-
"is-space": je.value
|
|
1373
|
-
}]),
|
|
1374
|
-
onMousedown: He,
|
|
1375
|
-
onWheel: Xe
|
|
1376
|
-
}, [
|
|
1377
|
-
n[4] ||= c("div", { class: "nb-blueprint__ambient" }, null, -1),
|
|
1378
|
-
t.$slots.background ? (h(), s("div", ae, [y(t.$slots, "background", {}, void 0, !0)])) : o("", !0),
|
|
1379
|
-
A.value === "dom" ? (h(), a(ne, {
|
|
1380
|
-
key: 1,
|
|
1381
|
-
"pan-x": P.value,
|
|
1382
|
-
"pan-y": B.value,
|
|
1383
|
-
zoom: V.value,
|
|
1384
|
-
"is-transforming": U.value,
|
|
1385
|
-
wires: Rt.value,
|
|
1386
|
-
windowed: !!v.cards,
|
|
1387
|
-
"visible-cards": Bt.value,
|
|
1388
|
-
"drag-wire": gt.value,
|
|
1389
|
-
"should-flow": Vt,
|
|
1390
|
-
"level-coloring": e.animateConnections === "levels",
|
|
1391
|
-
"activity-style": e.activityStyle ?? "flow",
|
|
1392
|
-
"animate-connections": e.animateConnections,
|
|
1393
|
-
background: T.value,
|
|
1394
|
-
onWireMousedown: vt,
|
|
1395
|
-
onWireContextmenu: St,
|
|
1396
|
-
onWireMousemove: Ct,
|
|
1397
|
-
onWireMouseleave: wt
|
|
1398
|
-
}, {
|
|
1399
|
-
card: w(({ card: e }) => [y(t.$slots, "card", { card: e }, void 0, !0)]),
|
|
1400
|
-
default: w(() => [y(t.$slots, "default", {}, void 0, !0)]),
|
|
1401
|
-
_: 3
|
|
1402
|
-
}, 8, [
|
|
1403
|
-
"pan-x",
|
|
1404
|
-
"pan-y",
|
|
1405
|
-
"zoom",
|
|
1406
|
-
"is-transforming",
|
|
1407
|
-
"wires",
|
|
1408
|
-
"windowed",
|
|
1409
|
-
"visible-cards",
|
|
1410
|
-
"drag-wire",
|
|
1411
|
-
"level-coloring",
|
|
1412
|
-
"activity-style",
|
|
1413
|
-
"animate-connections",
|
|
1414
|
-
"background"
|
|
1415
|
-
])) : (h(), a(F, {
|
|
1416
|
-
key: 2,
|
|
1417
|
-
"pan-x": P.value,
|
|
1418
|
-
"pan-y": B.value,
|
|
1419
|
-
zoom: V.value,
|
|
1420
|
-
"is-transforming": U.value,
|
|
1421
|
-
wires: Rt.value,
|
|
1422
|
-
windowed: !!v.cards,
|
|
1423
|
-
"visible-cards": Bt.value,
|
|
1424
|
-
"drag-wire": gt.value,
|
|
1425
|
-
"should-flow": Vt,
|
|
1426
|
-
"level-coloring": e.animateConnections === "levels",
|
|
1427
|
-
"activity-style": e.activityStyle ?? "flow",
|
|
1428
|
-
"animate-connections": e.animateConnections,
|
|
1429
|
-
background: T.value,
|
|
1430
|
-
"live-data": b(fe),
|
|
1431
|
-
onWireMousedown: vt,
|
|
1432
|
-
onWireContextmenu: St,
|
|
1433
|
-
onWireMousemove: Ct,
|
|
1434
|
-
onWireMouseleave: wt,
|
|
1435
|
-
onUnavailable: re
|
|
1436
|
-
}, {
|
|
1437
|
-
card: w(({ card: e }) => [y(t.$slots, "card", { card: e }, void 0, !0)]),
|
|
1438
|
-
default: w(() => [y(t.$slots, "default", {}, void 0, !0)]),
|
|
1439
|
-
_: 3
|
|
1440
|
-
}, 8, [
|
|
1441
|
-
"pan-x",
|
|
1442
|
-
"pan-y",
|
|
1443
|
-
"zoom",
|
|
1444
|
-
"is-transforming",
|
|
1445
|
-
"wires",
|
|
1446
|
-
"windowed",
|
|
1447
|
-
"visible-cards",
|
|
1448
|
-
"drag-wire",
|
|
1449
|
-
"level-coloring",
|
|
1450
|
-
"activity-style",
|
|
1451
|
-
"animate-connections",
|
|
1452
|
-
"background",
|
|
1453
|
-
"live-data"
|
|
1454
|
-
])),
|
|
1455
|
-
J.value ? (h(), s("div", {
|
|
1456
|
-
key: 3,
|
|
1457
|
-
class: "nb-blueprint__marquee nb-blueprint__marquee--dragging",
|
|
1458
|
-
style: f(ut.value)
|
|
1459
|
-
}, null, 4)) : o("", !0),
|
|
1460
|
-
dt.value ? (h(), s("svg", {
|
|
1461
|
-
key: 4,
|
|
1462
|
-
class: "nb-blueprint__selection-box",
|
|
1463
|
-
style: f(dt.value)
|
|
1464
|
-
}, [...n[3] ||= [c("rect", {
|
|
1465
|
-
x: "0.75",
|
|
1466
|
-
y: "0.75",
|
|
1467
|
-
width: "calc(100% - 1.5px)",
|
|
1468
|
-
height: "calc(100% - 1.5px)",
|
|
1469
|
-
rx: "4",
|
|
1470
|
-
ry: "4",
|
|
1471
|
-
fill: "none",
|
|
1472
|
-
stroke: "var(--nb-blueprint-marquee-border, var(--nb-c-primary, #6366f1))",
|
|
1473
|
-
"stroke-width": "1.5",
|
|
1474
|
-
"stroke-dasharray": "6 4",
|
|
1475
|
-
class: "nb-blueprint__selection-ants"
|
|
1476
|
-
}, null, -1)]], 4)) : o("", !0),
|
|
1477
|
-
Z.value ? (h(), s("div", {
|
|
1478
|
-
key: 5,
|
|
1479
|
-
class: "nb-blueprint__wire-menu",
|
|
1480
|
-
style: f({
|
|
1481
|
-
left: `${Z.value.x}px`,
|
|
1482
|
-
top: `${Z.value.y}px`
|
|
1483
|
-
}),
|
|
1484
|
-
role: "menu",
|
|
1485
|
-
onClick: n[1] ||= E(() => {}, ["stop"]),
|
|
1486
|
-
onContextmenu: n[2] ||= E(() => {}, ["prevent"])
|
|
1487
|
-
}, [y(t.$slots, "wire-menu", {
|
|
1488
|
-
connection: Z.value.conn,
|
|
1489
|
-
close: Tt,
|
|
1490
|
-
disconnect: () => Et(Z.value.conn)
|
|
1491
|
-
}, () => [c("button", {
|
|
1492
|
-
type: "button",
|
|
1493
|
-
class: "nb-blueprint__wire-menu-item",
|
|
1494
|
-
onClick: n[0] ||= (e) => Et(Z.value.conn)
|
|
1495
|
-
}, " Disconnect ")], !0)], 36)) : o("", !0),
|
|
1496
|
-
c("div", oe, [y(t.$slots, "chrome", {}, void 0, !0)])
|
|
1497
|
-
], 34));
|
|
1498
|
-
}
|
|
1499
|
-
}), [["__scopeId", "data-v-4f734d4a"]]);
|
|
1500
|
-
//#endregion
|
|
1501
|
-
export { ie as n, I as r, B as t };
|