@orangelogic/design-system 2.162.0 → 2.164.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/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
- package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
- package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
- package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
- package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
- package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
- package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
- package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
- package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
- package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
- package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
- package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
- package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
- package/library/chunks/Slice.BVI8rfHI.js +34 -0
- package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
- package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
- package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
- package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
- package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
- package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
- package/library/chunks/_baseEach.DQk0As2f.js +32 -0
- package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
- package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
- package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
- package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
- package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
- package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
- package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
- package/library/chunks/arc.xqNd6x9S.js +84 -0
- package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
- package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
- package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
- package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
- package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
- package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
- package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
- package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
- package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
- package/library/chunks/channel.s_XjcUYI.js +5 -0
- package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
- package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
- package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
- package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
- package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
- package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
- package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
- package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
- package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
- package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
- package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
- package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
- package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
- package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
- package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
- package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
- package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
- package/library/chunks/constant.BQ4UJ-kW.js +12 -0
- package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
- package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
- package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
- package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
- package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
- package/library/chunks/debounce.Bv1rtE8D.js +55 -0
- package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
- package/library/chunks/descending.AD5n-tFs.js +10 -0
- package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
- package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
- package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
- package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
- package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
- package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
- package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
- package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
- package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
- package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
- package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
- package/library/chunks/flow.aZRVH3p1.js +1304 -0
- package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
- package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
- package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
- package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
- package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
- package/library/chunks/graph.XHMI5hta.js +653 -0
- package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
- package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
- package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
- package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
- package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
- package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
- package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
- package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
- package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
- package/library/chunks/index.BDn1QW8J.js +167 -0
- package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
- package/library/chunks/index.thKLME8E.js +77 -0
- package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
- package/library/chunks/init.DjUOC4st.js +16 -0
- package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
- package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
- package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
- package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
- package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
- package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
- package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
- package/library/chunks/katex.DoRnZ_sp.js +11682 -0
- package/library/chunks/layout.DZcMFKol.js +1446 -0
- package/library/chunks/line.DP-iSN_J.js +157 -0
- package/library/chunks/linear.TNHhsH1m.js +215 -0
- package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
- package/library/chunks/map.DJnohTgl.js +18 -0
- package/library/chunks/markdown.I1AJG75v.js +4180 -0
- package/library/chunks/math.D2lKC7md.js +22 -0
- package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
- package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
- package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
- package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
- package/library/chunks/ordinal.bqVaUip-.js +61 -0
- package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
- package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
- package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
- package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
- package/library/chunks/position-picker.DjnhxIKF.js +4 -0
- package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
- package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
- package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
- package/library/chunks/range.DdOGybNB.js +9 -0
- package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
- package/library/chunks/sankey.BR94A-8L.js +294 -0
- package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
- package/library/chunks/select.C6_sM3Pr.js +7 -0
- package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
- package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
- package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
- package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
- package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
- package/library/chunks/step.almIqwJ6.js +51 -0
- package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
- package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
- package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
- package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
- package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
- package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
- package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
- package/library/chunks/toNumber.MuDz8DgU.js +31 -0
- package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
- package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +264 -0
- package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
- package/library/chunks/value.BXEGBVFV.js +44 -0
- package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
- package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
- package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
- package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
- package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
- package/library/chunks/xy.BO6U5QrZ.js +294 -0
- package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
- package/library/components/alert.js +2 -2
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +8 -7
- package/library/components/atoms.js +29 -29
- package/library/components/audio.js +3 -3
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +195 -18
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +3 -3
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +4 -4
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +2 -2
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +3 -3
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +6 -6
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +350 -374
- package/library/components/folder-select.js +5 -5
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/include.js +1 -1
- package/library/components/input.js +3 -3
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +11 -2704
- package/library/components/masonry.js +76 -73
- package/library/components/menu-item.js +2 -2
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/position-picker.js +25 -25
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +1 -1
- package/library/components/rating.js +2 -2
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +3 -3
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +122327 -120686
- package/library/components/video.js +2 -2
- package/library/package.json +2 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
- package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
- package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
- package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
- package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
- package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
- package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
- package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
- package/library/packages/types/src/asset-link-format.d.ts +19 -0
- package/library/packages/types/src/markdown-viewer.d.ts +12 -0
- package/library/packages/types/src/tree-item.d.ts +12 -0
- package/library/react-web-component.d.ts +86 -8
- package/library/utils.js +64 -65
- package/package.json +2 -1
- package/library/chunks/Slice.C5lVu2g_.js +0 -120
- package/library/chunks/_baseXor.VohG8cOH.js +0 -116
- package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
- package/library/chunks/checkbox.3i2j3PHc.js +0 -198
- package/library/chunks/content-builder.BU8X7I6V.js +0 -60
- package/library/chunks/debounce.C_J-9zJi.js +0 -82
- package/library/chunks/flow.hz0UDjCb.js +0 -1594
- package/library/chunks/index.DU0XUO4k.js +0 -176
- package/library/chunks/transformation.D1alV_s4.js +0 -189
- package/library/chunks/xy.BNgyrwGD.js +0 -333
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { _ as u, l as i } from "./mermaid.core.Dspbw7Ig.js";
|
|
2
|
+
import { i as m, G as y } from "./graph.XHMI5hta.js";
|
|
3
|
+
import { b as L } from "./_baseClone.BHNjfIdS.js";
|
|
4
|
+
import { m as X } from "./map.DJnohTgl.js";
|
|
5
|
+
var _ = 4;
|
|
6
|
+
function j(e) {
|
|
7
|
+
return L(e, _);
|
|
8
|
+
}
|
|
9
|
+
function C(e) {
|
|
10
|
+
var r = {
|
|
11
|
+
options: {
|
|
12
|
+
directed: e.isDirected(),
|
|
13
|
+
multigraph: e.isMultigraph(),
|
|
14
|
+
compound: e.isCompound()
|
|
15
|
+
},
|
|
16
|
+
nodes: F(e),
|
|
17
|
+
edges: M(e)
|
|
18
|
+
};
|
|
19
|
+
return m(e.graph()) || (r.value = j(e.graph())), r;
|
|
20
|
+
}
|
|
21
|
+
function F(e) {
|
|
22
|
+
return X(e.nodes(), function(r) {
|
|
23
|
+
var n = e.node(r), s = e.parent(r), t = { v: r };
|
|
24
|
+
return m(n) || (t.value = n), m(s) || (t.parent = s), t;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function M(e) {
|
|
28
|
+
return X(e.edges(), function(r) {
|
|
29
|
+
var n = e.edge(r), s = { v: r.v, w: r.w };
|
|
30
|
+
return m(r.name) || (s.name = r.name), m(n) || (s.value = n), s;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
var c = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ u(() => {
|
|
34
|
+
w.clear(), A.clear(), c.clear();
|
|
35
|
+
}, "clear"), v = /* @__PURE__ */ u((e, r) => {
|
|
36
|
+
const n = w.get(r) || [];
|
|
37
|
+
return i.trace("In isDescendant", r, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
38
|
+
}, "isDescendant"), R = /* @__PURE__ */ u((e, r) => {
|
|
39
|
+
const n = w.get(r) || [];
|
|
40
|
+
return i.info("Descendants of ", r, " is ", n), i.info("Edge is ", e), e.v === r || e.w === r ? !1 : n ? n.includes(e.v) || v(e.v, r) || v(e.w, r) || n.includes(e.w) : (i.debug("Tilt, ", r, ",not in descendants"), !1);
|
|
41
|
+
}, "edgeInCluster"), b = /* @__PURE__ */ u((e, r, n, s) => {
|
|
42
|
+
i.warn(
|
|
43
|
+
"Copying children of ",
|
|
44
|
+
e,
|
|
45
|
+
"root",
|
|
46
|
+
s,
|
|
47
|
+
"data",
|
|
48
|
+
r.node(e),
|
|
49
|
+
s
|
|
50
|
+
);
|
|
51
|
+
const t = r.children(e) || [];
|
|
52
|
+
e !== s && t.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", t), t.forEach((o) => {
|
|
53
|
+
if (r.children(o).length > 0)
|
|
54
|
+
b(o, r, n, s);
|
|
55
|
+
else {
|
|
56
|
+
const l = r.node(o);
|
|
57
|
+
i.info("cp ", o, " to ", s, " with parent ", e), n.setNode(o, l), s !== r.parent(o) && (i.warn("Setting parent", o, r.parent(o)), n.setParent(o, r.parent(o))), e !== s && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", s, "data", r.node(e), s), i.debug(
|
|
58
|
+
"Not Setting parent for node=",
|
|
59
|
+
o,
|
|
60
|
+
"cluster!==rootId",
|
|
61
|
+
e !== s,
|
|
62
|
+
"node!==clusterId",
|
|
63
|
+
o !== e
|
|
64
|
+
));
|
|
65
|
+
const f = r.edges(o);
|
|
66
|
+
i.debug("Copying Edges", f), f.forEach((a) => {
|
|
67
|
+
i.info("Edge", a);
|
|
68
|
+
const d = r.edge(a.v, a.w, a.name);
|
|
69
|
+
i.info("Edge data", d, s);
|
|
70
|
+
try {
|
|
71
|
+
if (R(a, s)) {
|
|
72
|
+
const g = w.get(s) || [], E = g.includes(a.v) || v(a.v, s) || a.v === s, x = g.includes(a.w) || v(a.w, s) || a.w === s;
|
|
73
|
+
if (E && x)
|
|
74
|
+
i.info("Copying as ", a.v, a.w, d, a.name), n.setEdge(a.v, a.w, d, a.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]));
|
|
75
|
+
else {
|
|
76
|
+
const N = E ? s : a.v, h = x ? s : a.w;
|
|
77
|
+
i.info("Rebinding cross-boundary edge as ", N, h, d, a.name), r.setEdge(N, h, d, a.name);
|
|
78
|
+
}
|
|
79
|
+
} else
|
|
80
|
+
i.info(
|
|
81
|
+
"Skipping copy of edge ",
|
|
82
|
+
a.v,
|
|
83
|
+
"-->",
|
|
84
|
+
a.w,
|
|
85
|
+
" rootId: ",
|
|
86
|
+
s,
|
|
87
|
+
" clusterId:",
|
|
88
|
+
e
|
|
89
|
+
);
|
|
90
|
+
} catch (g) {
|
|
91
|
+
i.error(g);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
i.debug("Removing node", o), r.removeNode(o);
|
|
96
|
+
});
|
|
97
|
+
}, "copy"), O = /* @__PURE__ */ u((e, r) => {
|
|
98
|
+
const n = r.children(e);
|
|
99
|
+
let s = [...n];
|
|
100
|
+
for (const t of n)
|
|
101
|
+
A.set(t, e), s = [...s, ...O(t, r)];
|
|
102
|
+
return s;
|
|
103
|
+
}, "extractDescendants"), P = /* @__PURE__ */ u((e, r, n) => {
|
|
104
|
+
const s = e.edges().filter((a) => a.v === r || a.w === r), t = e.edges().filter((a) => a.v === n || a.w === n), o = s.map((a) => ({ v: a.v === r ? n : a.v, w: a.w === r ? r : a.w })), l = t.map((a) => ({ v: a.v, w: a.w }));
|
|
105
|
+
return o.filter((a) => l.some((d) => a.v === d.v && a.w === d.w));
|
|
106
|
+
}, "findCommonEdges"), D = /* @__PURE__ */ u((e, r, n) => {
|
|
107
|
+
const s = r.children(e);
|
|
108
|
+
if (i.trace("Searching children of id ", e, s), s.length < 1)
|
|
109
|
+
return e;
|
|
110
|
+
let t;
|
|
111
|
+
for (const o of s) {
|
|
112
|
+
const l = D(o, r, n), f = P(r, n, l);
|
|
113
|
+
if (l)
|
|
114
|
+
if (f.length > 0)
|
|
115
|
+
t = l;
|
|
116
|
+
else
|
|
117
|
+
return l;
|
|
118
|
+
}
|
|
119
|
+
return t;
|
|
120
|
+
}, "findNonClusterChild"), S = /* @__PURE__ */ u((e) => !c.has(e) || !c.get(e).externalConnections ? e : c.has(e) ? c.get(e).id : e, "getAnchorId"), W = /* @__PURE__ */ u((e, r) => {
|
|
121
|
+
if (!e || r > 10) {
|
|
122
|
+
i.debug("Opting out, no graph ");
|
|
123
|
+
return;
|
|
124
|
+
} else
|
|
125
|
+
i.debug("Opting in, graph ");
|
|
126
|
+
e.nodes().forEach(function(n) {
|
|
127
|
+
e.children(n).length > 0 && (i.warn(
|
|
128
|
+
"Cluster identified",
|
|
129
|
+
n,
|
|
130
|
+
" Replacement id in edges: ",
|
|
131
|
+
D(n, e, n)
|
|
132
|
+
), w.set(n, O(n, e)), c.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
|
|
133
|
+
}), e.nodes().forEach(function(n) {
|
|
134
|
+
const s = e.children(n), t = e.edges();
|
|
135
|
+
s.length > 0 ? (i.debug("Cluster identified", n, w), t.forEach((o) => {
|
|
136
|
+
const l = v(o.v, n), f = v(o.w, n);
|
|
137
|
+
l ^ f && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", w.get(n)), c.get(n).externalConnections = !0);
|
|
138
|
+
})) : i.debug("Not a cluster ", n, w);
|
|
139
|
+
});
|
|
140
|
+
for (let n of c.keys()) {
|
|
141
|
+
const s = c.get(n).id, t = e.parent(s);
|
|
142
|
+
t !== n && c.has(t) && !c.get(t).externalConnections && (c.get(n).id = t);
|
|
143
|
+
const o = e.edges().some((l) => l.v === n);
|
|
144
|
+
if (s && c.get(n)?.externalConnections && o && B(e, s, n)) {
|
|
145
|
+
const l = T(e, n, e.parent(s));
|
|
146
|
+
l && (c.get(n).id = l);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
e.edges().forEach(function(n) {
|
|
150
|
+
const s = e.edge(n);
|
|
151
|
+
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
152
|
+
let t = n.v, o = n.w;
|
|
153
|
+
if (i.warn(
|
|
154
|
+
"Fix XXX",
|
|
155
|
+
c,
|
|
156
|
+
"ids:",
|
|
157
|
+
n.v,
|
|
158
|
+
n.w,
|
|
159
|
+
"Translating: ",
|
|
160
|
+
c.get(n.v),
|
|
161
|
+
" --- ",
|
|
162
|
+
c.get(n.w)
|
|
163
|
+
), c.get(n.v) || c.get(n.w)) {
|
|
164
|
+
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), t = S(n.v), o = S(n.w), e.removeEdge(n.v, n.w, n.name), t !== n.v) {
|
|
165
|
+
const l = e.parent(t);
|
|
166
|
+
c.get(l).externalConnections = !0, s.fromCluster = n.v;
|
|
167
|
+
}
|
|
168
|
+
if (o !== n.w) {
|
|
169
|
+
const l = e.parent(o);
|
|
170
|
+
c.get(l).externalConnections = !0, s.toCluster = n.w;
|
|
171
|
+
}
|
|
172
|
+
i.warn("Fix Replacing with XXX", t, o, n.name), e.setEdge(t, o, s, n.name);
|
|
173
|
+
}
|
|
174
|
+
}), i.warn("Adjusted Graph", C(e)), k(e, 0), i.trace(c);
|
|
175
|
+
}, "adjustClustersAndEdges"), k = /* @__PURE__ */ u((e, r) => {
|
|
176
|
+
if (i.warn("extractor - ", r, C(e), e.children("D")), r > 10) {
|
|
177
|
+
i.error("Bailing out");
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
let n = e.nodes(), s = !1;
|
|
181
|
+
for (const t of n) {
|
|
182
|
+
const o = e.children(t);
|
|
183
|
+
s = s || o.length > 0;
|
|
184
|
+
}
|
|
185
|
+
if (!s) {
|
|
186
|
+
i.debug("Done, no node has children", e.nodes());
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
i.debug("Nodes = ", n, r);
|
|
190
|
+
for (const t of n)
|
|
191
|
+
if (i.debug(
|
|
192
|
+
"Extracting node",
|
|
193
|
+
t,
|
|
194
|
+
c,
|
|
195
|
+
c.has(t) && !c.get(t).externalConnections,
|
|
196
|
+
!e.parent(t),
|
|
197
|
+
e.node(t),
|
|
198
|
+
e.children("D"),
|
|
199
|
+
" Depth ",
|
|
200
|
+
r
|
|
201
|
+
), !c.has(t))
|
|
202
|
+
i.debug("Not a cluster", t, r);
|
|
203
|
+
else if (c.get(t)?.clusterData?.explicitDir && e.children(t) && e.children(t).length > 0) {
|
|
204
|
+
i.warn("Cluster with explicit dir, creating subgraph for children", t, r);
|
|
205
|
+
const o = c.get(t).clusterData.dir, l = new y({
|
|
206
|
+
multigraph: !0,
|
|
207
|
+
compound: !0
|
|
208
|
+
}).setGraph({
|
|
209
|
+
rankdir: o,
|
|
210
|
+
nodesep: 50,
|
|
211
|
+
ranksep: 50,
|
|
212
|
+
marginx: 8,
|
|
213
|
+
marginy: 8
|
|
214
|
+
}).setDefaultEdgeLabel(function() {
|
|
215
|
+
return {};
|
|
216
|
+
});
|
|
217
|
+
b(t, e, l, t);
|
|
218
|
+
const f = e.node(t) || {};
|
|
219
|
+
e.setNode(t, {
|
|
220
|
+
...f,
|
|
221
|
+
clusterNode: !0,
|
|
222
|
+
id: t,
|
|
223
|
+
clusterData: c.get(t).clusterData,
|
|
224
|
+
label: c.get(t).label,
|
|
225
|
+
graph: l
|
|
226
|
+
}), i.warn(
|
|
227
|
+
"Subgraph for cluster with explicit dir created:",
|
|
228
|
+
t,
|
|
229
|
+
C(l)
|
|
230
|
+
);
|
|
231
|
+
} else if (!c.get(t).externalConnections && e.children(t) && e.children(t).length > 0) {
|
|
232
|
+
i.warn(
|
|
233
|
+
"Cluster without external connections, without a parent and with children",
|
|
234
|
+
t,
|
|
235
|
+
r
|
|
236
|
+
);
|
|
237
|
+
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
238
|
+
c.get(t)?.clusterData?.dir && (l = c.get(t).clusterData.dir, i.warn("Fixing dir", c.get(t).clusterData.dir, l));
|
|
239
|
+
const f = new y({
|
|
240
|
+
multigraph: !0,
|
|
241
|
+
compound: !0
|
|
242
|
+
}).setGraph({
|
|
243
|
+
rankdir: l,
|
|
244
|
+
nodesep: 50,
|
|
245
|
+
ranksep: 50,
|
|
246
|
+
marginx: 8,
|
|
247
|
+
marginy: 8
|
|
248
|
+
}).setDefaultEdgeLabel(function() {
|
|
249
|
+
return {};
|
|
250
|
+
});
|
|
251
|
+
b(t, e, f, t);
|
|
252
|
+
const a = e.node(t) || {};
|
|
253
|
+
e.setNode(t, {
|
|
254
|
+
...a,
|
|
255
|
+
clusterNode: !0,
|
|
256
|
+
id: t,
|
|
257
|
+
clusterData: c.get(t).clusterData,
|
|
258
|
+
label: c.get(t).label,
|
|
259
|
+
graph: f
|
|
260
|
+
}), i.debug("Old graph after copy", C(e));
|
|
261
|
+
} else
|
|
262
|
+
i.warn(
|
|
263
|
+
"Cluster ** ",
|
|
264
|
+
t,
|
|
265
|
+
" **not meeting the criteria !externalConnections:",
|
|
266
|
+
!c.get(t).externalConnections,
|
|
267
|
+
" no parent: ",
|
|
268
|
+
!e.parent(t),
|
|
269
|
+
" children ",
|
|
270
|
+
e.children(t) && e.children(t).length > 0,
|
|
271
|
+
e.children("D"),
|
|
272
|
+
r
|
|
273
|
+
), i.debug(c);
|
|
274
|
+
n = e.nodes(), i.warn("New list of nodes", n);
|
|
275
|
+
for (const t of n) {
|
|
276
|
+
const o = e.node(t);
|
|
277
|
+
i.warn(" Now next level", t, o), o?.clusterNode && k(o.graph, r + 1);
|
|
278
|
+
}
|
|
279
|
+
}, "extractor"), p = /* @__PURE__ */ u((e, r) => {
|
|
280
|
+
if (r.length === 0)
|
|
281
|
+
return [];
|
|
282
|
+
let n = Object.assign([], r);
|
|
283
|
+
return r.forEach((s) => {
|
|
284
|
+
const t = e.children(s), o = p(e, t);
|
|
285
|
+
n = [...n, ...o];
|
|
286
|
+
}), n;
|
|
287
|
+
}, "sorter"), Y = /* @__PURE__ */ u((e) => p(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ u((e, r, n) => {
|
|
288
|
+
let s = e.parent(r);
|
|
289
|
+
for (; s && s !== n; ) {
|
|
290
|
+
const t = c.get(s);
|
|
291
|
+
if (t && !t.externalConnections)
|
|
292
|
+
return !0;
|
|
293
|
+
s = e.parent(s);
|
|
294
|
+
}
|
|
295
|
+
return !1;
|
|
296
|
+
}, "isNodeInExtractableCluster"), T = /* @__PURE__ */ u((e, r, n) => {
|
|
297
|
+
const s = e.children(r) ?? [];
|
|
298
|
+
for (const t of s) {
|
|
299
|
+
if (t === n || v(t, n))
|
|
300
|
+
continue;
|
|
301
|
+
const o = D(t, e, r);
|
|
302
|
+
if (o && !B(e, o, r))
|
|
303
|
+
return o;
|
|
304
|
+
}
|
|
305
|
+
return null;
|
|
306
|
+
}, "findSafeAnchorNode");
|
|
307
|
+
export {
|
|
308
|
+
W as a,
|
|
309
|
+
c as b,
|
|
310
|
+
U as c,
|
|
311
|
+
D as f,
|
|
312
|
+
Y as s,
|
|
313
|
+
C as w
|
|
314
|
+
};
|