@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.
Files changed (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,466 @@
1
+ import { p as re } from "./chunk-JWPE2WC7.BV0i4LDu.js";
2
+ import { _ as o, o as oe, n as se, s as de, g as le, a as ce, b as me, l as g, c as T, z as ue, p as xe, A as fe, y as M, B as ge, h as y, w as P, a3 as he } from "./mermaid.core.Dspbw7Ig.js";
3
+ import { p as pe, i as be } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
4
+ import "./index.CrhRU5m8.js";
5
+ import "./transform.BuqENXeT.js";
6
+ import { s as ve } from "./select.C6_sM3Pr.js";
7
+ var $ = "position frame", D = "frame positioned", S = "position relation", N = "relation positioned", we = /* @__PURE__ */ o(function(e) {
8
+ g.debug("options str", e);
9
+ }, "setOptions"), ye = /* @__PURE__ */ o(function() {
10
+ return {};
11
+ }, "getOptions"), Pe = /* @__PURE__ */ o(function() {
12
+ C(), xe();
13
+ }, "clear");
14
+ function C() {
15
+ B = {};
16
+ }
17
+ o(C, "reset");
18
+ var Se = ge.eventmodeling, ke = /* @__PURE__ */ o(() => fe({
19
+ ...Se,
20
+ ...M().eventmodeling
21
+ }), "getConfig"), B = {};
22
+ function O() {
23
+ let e = Fe;
24
+ const { ast: n } = B, t = E();
25
+ if (!n)
26
+ throw new Error("No data for EventModel");
27
+ return n.frames.forEach((i, a) => {
28
+ const r = G(i, n.dataEntities, t);
29
+ e = v(e, {
30
+ $kind: $,
31
+ index: a,
32
+ frame: i,
33
+ textProps: r
34
+ });
35
+ let d;
36
+ K(i) ? (g.debug("source frame", i.sourceFrames), d = n.frames.filter((l) => i.sourceFrames.some((c) => c.$refText === l.name)), d.forEach((l) => {
37
+ e = v(e, {
38
+ $kind: S,
39
+ index: a,
40
+ frame: i,
41
+ sourceFrame: l
42
+ });
43
+ })) : e = v(e, {
44
+ $kind: S,
45
+ index: a,
46
+ frame: i
47
+ });
48
+ }), e = {
49
+ ...e,
50
+ sortedSwimlanesArray: A(e.swimlanes)
51
+ }, e;
52
+ }
53
+ o(O, "getState");
54
+ function I(e) {
55
+ B.ast = e;
56
+ }
57
+ o(I, "setAst");
58
+ var s = {
59
+ swimlaneMinHeight: 70,
60
+ swimlanePadding: 15,
61
+ swimlaneGap: 10,
62
+ boxPadding: 10,
63
+ boxOverlap: 90,
64
+ boxDefaultY: 0,
65
+ boxMinWidth: 80,
66
+ boxMaxWidth: 450,
67
+ boxMinHeight: 80,
68
+ boxMaxHeight: 750,
69
+ contentStartX: 250,
70
+ textMaxWidth: 430,
71
+ boxTextFontWeight: "bold",
72
+ boxTextPadding: 10,
73
+ swimlaneTextFontWeight: "bold",
74
+ labelUiAutomation: "UI/Automation",
75
+ labelUiAutomationPrefix: "UI/A: ",
76
+ labelCommandReadModel: "Command/Read Model",
77
+ labelCommandReadModelPrefix: "C/RM: ",
78
+ labelEvents: "Events",
79
+ labelEventsPrefix: "Stream: "
80
+ };
81
+ function E() {
82
+ return s;
83
+ }
84
+ o(E, "getDiagramProps");
85
+ var Fe = {
86
+ boxes: [],
87
+ swimlanes: {},
88
+ relations: [],
89
+ maxR: 0,
90
+ sortedSwimlanesArray: []
91
+ };
92
+ function W(e) {
93
+ const n = e.split(".");
94
+ if (n.length === 2)
95
+ return n[0];
96
+ }
97
+ o(W, "extractNamespace");
98
+ function H(e) {
99
+ const n = e.split(".");
100
+ return n.length === 2 ? n[1] : e;
101
+ }
102
+ o(H, "extractName");
103
+ function U(e, n) {
104
+ if (!(!n || n.length === 0))
105
+ return Object.values(e).find((t) => t.namespace === n);
106
+ }
107
+ o(U, "findSwimlaneByNamespace");
108
+ function b(e, n, t) {
109
+ return Math.max(
110
+ n,
111
+ ...Object.keys(e).filter((i) => {
112
+ const a = Number.parseInt(i);
113
+ return a > n && a < t;
114
+ }).map((i) => Number.parseInt(i))
115
+ ) + 1;
116
+ }
117
+ o(b, "findNextAvailableIndex");
118
+ function _(e, n) {
119
+ const t = W(e.entityIdentifier), i = U(n, t);
120
+ switch (e.modelEntityType) {
121
+ case "ui":
122
+ case "pcr":
123
+ case "processor":
124
+ return i ? {
125
+ index: i.index,
126
+ label: i.namespace || s.labelUiAutomation
127
+ } : t ? {
128
+ index: b(n, 0, 100),
129
+ label: s.labelUiAutomationPrefix + t
130
+ } : { index: 0, label: s.labelUiAutomation };
131
+ case "rmo":
132
+ case "readmodel":
133
+ case "cmd":
134
+ case "command":
135
+ return i ? {
136
+ index: i.index,
137
+ label: i.namespace || s.labelCommandReadModel
138
+ } : t ? {
139
+ index: b(n, 100, 200),
140
+ label: s.labelCommandReadModelPrefix + t
141
+ } : { index: 100, label: s.labelCommandReadModel };
142
+ case "evt":
143
+ case "event":
144
+ default:
145
+ return i ? {
146
+ index: i.index,
147
+ label: i.namespace || s.labelEvents
148
+ } : t ? {
149
+ index: b(n, 200, 300),
150
+ label: s.labelEventsPrefix + t
151
+ } : { index: 200, label: s.labelEvents };
152
+ }
153
+ }
154
+ o(_, "calculateSwimlaneProps");
155
+ function L(e) {
156
+ const { themeVariables: n } = M();
157
+ switch (e.modelEntityType) {
158
+ case "ui":
159
+ return {
160
+ fill: n.emUiFill ?? "white",
161
+ stroke: n.emUiStroke ?? "#dbdada"
162
+ };
163
+ case "pcr":
164
+ case "processor":
165
+ return {
166
+ fill: n.emProcessorFill ?? "#edb3f6",
167
+ stroke: n.emProcessorStroke ?? "#b88cbf"
168
+ };
169
+ case "rmo":
170
+ case "readmodel":
171
+ return {
172
+ fill: n.emReadModelFill ?? "#d3f1a2",
173
+ stroke: n.emReadModelStroke ?? "#a3b732"
174
+ };
175
+ case "cmd":
176
+ case "command":
177
+ return {
178
+ fill: n.emCommandFill ?? "#bcd6fe",
179
+ stroke: n.emCommandStroke ?? "#679ac3"
180
+ };
181
+ case "evt":
182
+ case "event":
183
+ return {
184
+ fill: n.emEventFill ?? "#ffb778",
185
+ stroke: n.emEventStroke ?? "#c19a0f"
186
+ };
187
+ default:
188
+ return {
189
+ fill: "red",
190
+ stroke: "black"
191
+ };
192
+ }
193
+ }
194
+ o(L, "calculateEntityVisualProps");
195
+ function G(e, n, t) {
196
+ const i = M(), a = y(H(e.entityIdentifier) ?? "", i);
197
+ let r;
198
+ const d = {
199
+ fontSize: 16,
200
+ fontWeight: 700,
201
+ fontFamily: '"trebuchet ms", verdana, arial, sans-serif',
202
+ joinWith: "<br/>"
203
+ };
204
+ let c = `<b>${P(a, t.textMaxWidth, d)}</b>`;
205
+ if (e.dataInlineValue && (r = e.dataInlineValue, r = r.substring(r.indexOf("{") + 1), r = r.substring(0, r.lastIndexOf("}") - 1), r = y(r, i), r = P(r, t.textMaxWidth, d), r = r.replaceAll(" ", "&nbsp;")), e.dataReference) {
206
+ const p = n.find(
207
+ (w) => w.name === e.dataReference?.$refText
208
+ );
209
+ p && (r = p.dataBlockValue, r = r.substring(r.indexOf(`{
210
+ `) + 2), r = r.substring(0, r.lastIndexOf("}") - 1), r = y(r, i), r = P(r, t.textMaxWidth, d), r = r.replaceAll(" ", "&nbsp;"), r += "<br/>");
211
+ }
212
+ const m = r !== void 0;
213
+ m && (c += `<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);
214
+ const x = {
215
+ fontSize: d.fontSize,
216
+ fontWeight: d.fontWeight,
217
+ fontFamily: d.fontFamily
218
+ }, u = he(c, x), h = m ? u.width / 3 : u.width, f = {
219
+ content: c,
220
+ width: h,
221
+ height: u.height
222
+ };
223
+ return g.debug(`[${e.name}] ${e.entityIdentifier} text`, f), f;
224
+ }
225
+ o(G, "calculateTextProps");
226
+ function V(e, n) {
227
+ const t = n, i = L(t.frame), a = {
228
+ width: t.textProps.width + 2 * s.boxTextPadding,
229
+ height: t.textProps.height + 2 * s.boxTextPadding
230
+ };
231
+ return [{
232
+ $kind: D,
233
+ frame: t.frame,
234
+ index: t.index,
235
+ visual: i,
236
+ dimension: a,
237
+ textProps: t.textProps
238
+ }];
239
+ }
240
+ o(V, "decidePositionFrame");
241
+ function X(e, n, t) {
242
+ return n === void 0 ? s.contentStartX : n.index === e.index && e.r ? e.r + s.boxPadding : t === void 0 ? s.contentStartX : t.r - s.boxOverlap + s.boxPadding;
243
+ }
244
+ o(X, "calculateX");
245
+ function j(e, n) {
246
+ const t = [...e.map((i) => i.r), n];
247
+ return Math.max(...t);
248
+ }
249
+ o(j, "calculateMaxRight");
250
+ function A(e) {
251
+ return Object.values(e).sort((n, t) => n.index - t.index);
252
+ }
253
+ o(A, "sortedSwimlanesArray");
254
+ function Y(e, n) {
255
+ const t = n, i = _(t.frame, e.swimlanes);
256
+ let a;
257
+ i.index in e.swimlanes ? a = e.swimlanes[i.index] : a = {
258
+ index: i.index,
259
+ label: i.label,
260
+ r: 0,
261
+ y: i.index * s.swimlaneMinHeight + s.swimlaneGap,
262
+ height: s.swimlaneMinHeight,
263
+ maxHeight: s.swimlaneMinHeight
264
+ };
265
+ const r = e.boxes.length > 0 ? e.boxes[e.boxes.length - 1] : void 0, d = e.previousSwimlaneNumber !== void 0 ? e.swimlanes[e.previousSwimlaneNumber] : void 0, l = {
266
+ width: Math.max(
267
+ s.boxMinWidth,
268
+ Math.min(s.boxMaxWidth, t.dimension.width)
269
+ ) + 2 * s.boxPadding,
270
+ height: Math.max(
271
+ s.boxMinHeight,
272
+ Math.min(s.boxMaxHeight, t.dimension.height)
273
+ ) + 2 * s.boxPadding
274
+ }, c = X(a, d, r), m = c + l.width + s.boxPadding, x = j(Object.values(e.swimlanes), m);
275
+ a.r = c + l.width, a.maxHeight = Math.max(a.maxHeight, l.height), a.height = Math.max(s.swimlaneMinHeight, a.maxHeight) + 2 * s.swimlanePadding;
276
+ const u = {
277
+ x: c,
278
+ y: s.swimlanePadding + a.y,
279
+ // y: diagramProps.swimlanePadding + (swimlane.y || diagramProps.boxDefaultY),
280
+ r: m,
281
+ dimension: l,
282
+ leftSibling: !1,
283
+ swimlane: a,
284
+ visual: t.visual,
285
+ text: t.textProps.content,
286
+ frame: t.frame,
287
+ index: t.index
288
+ }, h = {
289
+ ...e,
290
+ boxes: [...e.boxes, u],
291
+ swimlanes: {
292
+ ...e.swimlanes,
293
+ [`${a.index}`]: a
294
+ },
295
+ previousSwimlaneNumber: i.index,
296
+ previousFrame: t.frame,
297
+ maxR: x
298
+ }, f = A(h.swimlanes);
299
+ f.length > 0 && (f[0].y = 0);
300
+ for (let p = 1; p < f.length; p++) {
301
+ const w = f[p], R = f[p - 1];
302
+ w.y = R.y + R.height + s.swimlaneGap;
303
+ }
304
+ return h;
305
+ }
306
+ o(Y, "evolveFramePositioned");
307
+ function z(e, n) {
308
+ return e === 0 && n.sourceFrames.length === 0;
309
+ }
310
+ o(z, "isFirstFrame");
311
+ function K(e) {
312
+ return e.sourceFrames !== void 0 && e.sourceFrames !== null && e.sourceFrames.length > 0;
313
+ }
314
+ o(K, "hasSourceFrame");
315
+ function k(e, n) {
316
+ if (n != null)
317
+ return e.find((t) => t.frame.name === n.name);
318
+ }
319
+ o(k, "findBoxByFrame");
320
+ function q(e, n, t) {
321
+ if (!(t < 0))
322
+ for (let i = t; i >= 0; i--) {
323
+ const a = e[i];
324
+ if (a.swimlane.index !== n)
325
+ return a;
326
+ }
327
+ }
328
+ o(q, "findBoxByLineIndex");
329
+ function J(e, n) {
330
+ const t = n;
331
+ if (be(t.frame) || z(t.index, t.frame))
332
+ return [];
333
+ const i = k(e.boxes, t.frame);
334
+ if (i === void 0)
335
+ throw new Error(`Target box not found for frame ${t.frame.name}`);
336
+ let a;
337
+ return t.sourceFrame ? a = k(e.boxes, t.sourceFrame) : a = q(e.boxes, i.swimlane.index, t.index - 1), a === void 0 ? [] : [{
338
+ $kind: N,
339
+ frame: t.frame,
340
+ index: t.index,
341
+ sourceBox: a,
342
+ targetBox: i
343
+ }];
344
+ }
345
+ o(J, "decidePositionRelation");
346
+ function Q(e, n) {
347
+ const t = n, i = {
348
+ visual: {
349
+ fill: "none",
350
+ stroke: "#000"
351
+ },
352
+ source: {
353
+ x: t.sourceBox.x,
354
+ y: t.sourceBox.y
355
+ },
356
+ target: {
357
+ x: t.targetBox.x,
358
+ y: t.targetBox.y
359
+ },
360
+ sourceBox: t.sourceBox,
361
+ targetBox: t.targetBox
362
+ };
363
+ return {
364
+ ...e,
365
+ relations: [...e.relations, i]
366
+ };
367
+ }
368
+ o(Q, "evolveRelationPositioned");
369
+ var Me = {
370
+ [$]: V,
371
+ [S]: J
372
+ }, Be = {
373
+ [D]: Y,
374
+ [N]: Q
375
+ };
376
+ function Z(e, n) {
377
+ const t = Me[n.$kind];
378
+ if (t == null)
379
+ return [];
380
+ const i = t(e, n);
381
+ return g.debug("decided events", i), i;
382
+ }
383
+ o(Z, "decide");
384
+ function ee(e, n) {
385
+ const t = n.reduce((i, a) => {
386
+ const r = Be[a.$kind];
387
+ return r == null ? i : r(i, a);
388
+ }, e);
389
+ return g.debug("evolve events", { state: e, newState: t, events: n }), t;
390
+ }
391
+ o(ee, "evolve");
392
+ function v(e, n) {
393
+ const t = Z(e, n);
394
+ return ee(e, t);
395
+ }
396
+ o(v, "dispatch");
397
+ var F = {
398
+ getConfig: ke,
399
+ setOptions: we,
400
+ getOptions: ye,
401
+ clear: Pe,
402
+ setAccTitle: me,
403
+ getAccTitle: ce,
404
+ getAccDescription: le,
405
+ setAccDescription: de,
406
+ setDiagramTitle: se,
407
+ getDiagramTitle: oe,
408
+ setAst: I,
409
+ getDiagramProps: E,
410
+ getState: O
411
+ }, Ee = {
412
+ parse: /* @__PURE__ */ o(async (e) => {
413
+ const n = await pe("eventmodeling", e);
414
+ g.debug(n), F.setAst(n), re(n, F);
415
+ }, "parse")
416
+ }, Ae = T(), Re = Ae?.eventmodeling;
417
+ function te(e, n) {
418
+ return (t) => {
419
+ const i = t.swimlane.y + n.swimlanePadding, a = e.append("g").attr("class", "em-box");
420
+ a.append("rect").attr("x", t.x).attr("y", i).attr("rx", "3").attr("width", t.dimension.width).attr("height", t.dimension.height).attr("stroke", t.visual.stroke).attr("fill", t.visual.fill), a.append("foreignObject").attr("x", t.x + n.boxPadding).attr("y", i + 10).attr("width", t.dimension.width - 2 * n.boxPadding).attr("height", t.dimension.height - 2 * n.boxPadding).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%").append("span").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").html(t.text);
421
+ };
422
+ }
423
+ o(te, "renderD3Box");
424
+ function ne(e, n) {
425
+ return e > n;
426
+ }
427
+ o(ne, "dirUpwards");
428
+ function ie(e, n, t, i) {
429
+ return (a) => {
430
+ const r = a.sourceBox.swimlane.y + n.swimlanePadding, d = a.targetBox.swimlane.y + n.swimlanePadding, l = ne(r, d), c = a.sourceBox.x + a.sourceBox.dimension.width * 2 / 3, m = a.targetBox.x + a.targetBox.dimension.width / 3;
431
+ let x, u;
432
+ g.debug(`rendering relation up=${l} for `, {
433
+ sourceBox: a.sourceBox,
434
+ targetBox: a.targetBox
435
+ }), l ? (x = r, u = d + a.targetBox.dimension.height) : (x = r + a.sourceBox.dimension.height, u = d);
436
+ const h = i.emRelationStroke ?? a.visual.stroke;
437
+ e.append("path").attr("class", "em-relation").attr("fill", a.visual.fill).attr("stroke", h).attr("stroke-width", "1").attr("marker-end", `url(#${t})`).attr("d", `M${c} ${x} L${m} ${u}`);
438
+ };
439
+ }
440
+ o(ie, "renderD3Relation");
441
+ function ae(e, n, t, i) {
442
+ return (a) => {
443
+ const r = e.append("g").attr("class", "em-swimlane"), d = i.emSwimlaneBackgroundOdd ?? "rgb(250,250,250)", l = i.emSwimlaneBackgroundStroke ?? "rgb(240,240,240)";
444
+ r.append("rect").attr("x", 0).attr("y", a.y).attr("rx", "3").attr("width", n + t.swimlanePadding).attr("height", a.height).attr("fill", d).attr("stroke", l), r.append("text").attr("font-weight", t.swimlaneTextFontWeight).attr("x", 30).attr("y", a.y + 30).text(a.label);
445
+ };
446
+ }
447
+ o(ae, "renderD3Swimlane");
448
+ var Te = /* @__PURE__ */ o(function(e, n, t, i) {
449
+ if (g.debug("in eventmodeling renderer", e + `
450
+ `, "id:", n, t), !Re)
451
+ throw new Error("EventModeling config not found");
452
+ const a = i.db, { themeVariables: r, eventmodeling: d } = T(), l = ve(`[id="${n}"]`), c = a.getDiagramProps(), m = a.getState(), x = `em-arrowhead-${n}`, u = r.emArrowhead ?? "#000000";
453
+ m.sortedSwimlanesArray.forEach(
454
+ ae(l, m.maxR, c, r)
455
+ ), m.boxes.forEach(te(l, c)), m.relations.forEach(ie(l, c, x, r)), l.append("defs").append("marker").attr("id", x).attr("markerWidth", "10").attr("markerHeight", "7").attr("refX", "10").attr("refY", "3.5").attr("orient", "auto").append("polygon").attr("points", "0 0, 10 3.5, 0 7").attr("fill", u), ue(void 0, l, d?.padding ?? 30, d?.useMaxWidth);
456
+ }, "draw"), $e = {
457
+ draw: Te
458
+ }, De = /* @__PURE__ */ o((e) => "", "getStyles"), Ne = De, _e = {
459
+ parser: Ee,
460
+ db: F,
461
+ renderer: $e,
462
+ styles: Ne
463
+ };
464
+ export {
465
+ _e as diagram
466
+ };