@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
@@ -99,9 +99,9 @@ function v(t) {
99
99
  return e !== void 0 ? `${o}${s}.${e}` : `${o}${s}`;
100
100
  }
101
101
  export {
102
- m as a,
102
+ l as a,
103
103
  b,
104
- l as c,
104
+ m as c,
105
105
  N as d,
106
106
  p as e,
107
107
  v as f,
@@ -2,13 +2,13 @@ import { n as s, C as x } from "./lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as m } from "./component.styles.CRO4Odto.js";
3
3
  import { c as v } from "./custom-element.L4WJXn1j.js";
4
4
  import { L as g } from "./i18n.Bchq8v1d.js";
5
- import { w as d } from "./watch.DOt4Mabe.js";
5
+ import { w as d } from "./watch.DJF5K-8U.js";
6
6
  import { i as _, x as h } from "./lit-element.jLBm65_O.js";
7
7
  import { r as f } from "./state.CSDxrqLd.js";
8
8
  import { e as b } from "./query.BBf1UFkC.js";
9
9
  import { e as y } from "./class-map.BiVq-cVR.js";
10
10
  import { n as u } from "./when.Dr1es41R.js";
11
- import { C as w } from "./icon.mxNZ85k0.js";
11
+ import { C as w } from "./icon.D5iM9wXS.js";
12
12
  import k from "../components/space.js";
13
13
  var r = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(r || {});
14
14
  const C = _`:host{-webkit-user-select:none;user-select:none;display:block}:host(:focus){outline:none}.option{font-family:var(--option-font-family), var(--cx-font-sans);font-size:var(--cx-font-size-small);font-weight:var(--option-font-weight,var(--cx-font-weight-regular));line-height:var(--cx-line-height-large);letter-spacing:var(--cx-letter-spacing-normal);color:var(--option-color,var(--cx-color-neutral-700));padding:var(--cx-spacing-x-small) var(--cx-spacing-medium) var(--cx-spacing-x-small) var(--cx-spacing-x-small);transition:var(--cx-transition-fast) fill;cursor:pointer;align-items:center;display:flex;position:relative}.option:not(.option--show-check){padding-inline:var(--cx-spacing-small)}.option--hover:not(.option--current):not(.option--disabled){background-color:var(--cx-menu-item-background-color-hover)}.option--current,.option--current.option--disabled{background-color:var(--cx-menu-item-background-color-hover);opacity:1}.option--selected{color:var(--option-selected-color,var(--cx-color-primary));font-weight:var(--option-selected-font-weight,var(--cx-font-weight-regular))}.option--disabled{opacity:.5;cursor:default;outline:none}.option__content{flex:1}.option__label{line-height:var(--cx-line-height-medium);flex:auto;display:inline-block}.option .option__check{visibility:hidden;flex:none;justify-content:center;align-items:center;padding-inline-end:var(--cx-spacing-2x-small);display:none}.option--show-check .option__check{display:block}.option--show-check.option--selected .option__check{visibility:visible}.option__help-text{color:var(--option-help-text-color,var(--cx-color-neutral-600));font-weight:var(--option-help-text-font-weight,var(--cx-font-weight-regular))}.option--selected .option__content .option__help-text{color:var(--option-selected-help-text-color,var(--cx-color-primary));font-weight:var(--option-selected-help-text-font-weight,var(--cx-font-weight-regular))}.option__prefix,.option__suffix{flex:none;align-items:center;display:flex}.option__prefix::slotted(*){margin-inline-end:var(--cx-spacing-x-small)}.option__suffix::slotted(*){margin-inline-start:var(--cx-spacing-x-small)}.option__prefix{align-self:var(--prefix-alignment,center)}.option__suffix{align-self:var(--suffix-alignment,center)}.option__check{align-self:var(--check-alignment,center)}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .option{outline-offset:-1px;outline:1px dashed selecteditem}}`;
@@ -0,0 +1,61 @@
1
+ import { i as a } from "./init.DjUOC4st.js";
2
+ class o extends Map {
3
+ constructor(n, t = g) {
4
+ if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: t } }), n != null) for (const [r, s] of n) this.set(r, s);
5
+ }
6
+ get(n) {
7
+ return super.get(c(this, n));
8
+ }
9
+ has(n) {
10
+ return super.has(c(this, n));
11
+ }
12
+ set(n, t) {
13
+ return super.set(l(this, n), t);
14
+ }
15
+ delete(n) {
16
+ return super.delete(p(this, n));
17
+ }
18
+ }
19
+ function c({ _intern: e, _key: n }, t) {
20
+ const r = n(t);
21
+ return e.has(r) ? e.get(r) : t;
22
+ }
23
+ function l({ _intern: e, _key: n }, t) {
24
+ const r = n(t);
25
+ return e.has(r) ? e.get(r) : (e.set(r, t), t);
26
+ }
27
+ function p({ _intern: e, _key: n }, t) {
28
+ const r = n(t);
29
+ return e.has(r) && (t = e.get(r), e.delete(r)), t;
30
+ }
31
+ function g(e) {
32
+ return e !== null && typeof e == "object" ? e.valueOf() : e;
33
+ }
34
+ const f = Symbol("implicit");
35
+ function h() {
36
+ var e = new o(), n = [], t = [], r = f;
37
+ function s(u) {
38
+ let i = e.get(u);
39
+ if (i === void 0) {
40
+ if (r !== f) return r;
41
+ e.set(u, i = n.push(u) - 1);
42
+ }
43
+ return t[i % t.length];
44
+ }
45
+ return s.domain = function(u) {
46
+ if (!arguments.length) return n.slice();
47
+ n = [], e = new o();
48
+ for (const i of u)
49
+ e.has(i) || e.set(i, n.push(i) - 1);
50
+ return s;
51
+ }, s.range = function(u) {
52
+ return arguments.length ? (t = Array.from(u), s) : t.slice();
53
+ }, s.unknown = function(u) {
54
+ return arguments.length ? (r = u, s) : r;
55
+ }, s.copy = function() {
56
+ return h(n, t).unknown(r);
57
+ }, a.apply(s, arguments), s;
58
+ }
59
+ export {
60
+ h as o
61
+ };
@@ -1,18 +1,18 @@
1
1
  import b from "../components/space.js";
2
2
  import { n as o, C as _ } from "./lib-cortex-element.CVMmyPMC.js";
3
- import { C as P, I as y } from "./icon-button.DbVIFgu7.js";
3
+ import { C as P, I as y } from "./icon-button.BwmMJ0bI.js";
4
4
  import { c as f } from "./custom-element.L4WJXn1j.js";
5
5
  import { L as z } from "./i18n.Bchq8v1d.js";
6
6
  import { c as m } from "./math.DuKzLacZ.js";
7
- import { w as d } from "./watch.DOt4Mabe.js";
7
+ import { w as d } from "./watch.DJF5K-8U.js";
8
8
  import { i as C, x as s } from "./lit-element.jLBm65_O.js";
9
9
  import { r as S } from "./state.CSDxrqLd.js";
10
10
  import { e as $ } from "./class-map.BiVq-cVR.js";
11
11
  import { c as x } from "./repeat.CFjcER6_.js";
12
12
  import { n as g } from "./when.Dr1es41R.js";
13
- import { C as w } from "./button.8syoJXYs.js";
14
- import { C as v } from "./input.BcyLZUmv.js";
15
- import { C as I } from "./option.qN3aaqVI.js";
13
+ import { C as w } from "./button.DGyqdBou.js";
14
+ import { C as v } from "./input.DOorVTYZ.js";
15
+ import { C as I } from "./option.DyNR1vzy.js";
16
16
  import B from "../components/select.js";
17
17
  import N from "../components/tooltip.js";
18
18
  import { C as k } from "./typography.IqHbnd3C.js";
@@ -0,0 +1,97 @@
1
+ import { g as l, r as m, d as a } from "./chunk-MOJQB5TN.BZstBMYC.js";
2
+ import { p } from "./chunk-JWPE2WC7.BV0i4LDu.js";
3
+ import { _ as t, l as o } from "./mermaid.core.Dspbw7Ig.js";
4
+ import "./index.CrhRU5m8.js";
5
+ import "./transform.BuqENXeT.js";
6
+ import { d as u, M as c } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
7
+ var f = u().RailroadPeg.parser.LangiumParser, i = /* @__PURE__ */ t((e) => {
8
+ const r = e.alternatives.map(d);
9
+ return r.length === 1 ? r[0] : {
10
+ type: "choice",
11
+ alternatives: r
12
+ };
13
+ }, "transformOrderedChoice"), d = /* @__PURE__ */ t((e) => {
14
+ const r = e.elements.map(P);
15
+ return r.length === 1 ? r[0] : {
16
+ type: "sequence",
17
+ elements: r
18
+ };
19
+ }, "transformSequence"), P = /* @__PURE__ */ t((e) => {
20
+ const r = g(e.suffix);
21
+ return e.operator ? {
22
+ type: "special",
23
+ text: e.operator === "&" ? `&${s(r)}` : `!${s(r)}`
24
+ } : r;
25
+ }, "transformPrefix"), s = /* @__PURE__ */ t((e) => {
26
+ switch (e.type) {
27
+ case "terminal":
28
+ return `"${e.value}"`;
29
+ case "nonterminal":
30
+ return e.name;
31
+ case "special":
32
+ return e.text;
33
+ default:
34
+ return "(...)";
35
+ }
36
+ }, "nodeToLabel"), g = /* @__PURE__ */ t((e) => {
37
+ const r = v(e.primary);
38
+ if (!e.operator)
39
+ return r;
40
+ switch (e.operator) {
41
+ case "?":
42
+ return { type: "optional", element: r };
43
+ case "*":
44
+ return { type: "repetition", element: r, min: 0, max: 1 / 0 };
45
+ case "+":
46
+ return { type: "repetition", element: r, min: 1, max: 1 / 0 };
47
+ default:
48
+ throw new Error(`Unsupported PEG suffix operator: ${e.operator}`);
49
+ }
50
+ }, "transformSuffix"), v = /* @__PURE__ */ t((e) => {
51
+ switch (e.$type) {
52
+ case "PegLiteral":
53
+ return {
54
+ type: "terminal",
55
+ value: e.value
56
+ };
57
+ case "PegIdentifier":
58
+ return {
59
+ type: "nonterminal",
60
+ name: e.name
61
+ };
62
+ case "PegGroup":
63
+ return i(e.element);
64
+ case "PegAny":
65
+ return {
66
+ type: "special",
67
+ text: e.dot
68
+ };
69
+ default:
70
+ throw new Error(`Unsupported PEG primary node: ${e.$type}`);
71
+ }
72
+ }, "transformPrimary"), y = /* @__PURE__ */ t((e) => ({
73
+ name: e.name,
74
+ definition: i(e.definition)
75
+ }), "transformRule"), h = /* @__PURE__ */ t((e) => {
76
+ p(e, a), e.title && a.setTitle(e.title), e.rules.map((r) => a.addRule(y(r)));
77
+ }, "populateDb"), b = {
78
+ parse: /* @__PURE__ */ t((e) => {
79
+ a.clear(), o.debug("[PEG Parser] Starting Langium parse");
80
+ const r = f.parse(e);
81
+ if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
82
+ throw new c(r);
83
+ const n = r.value;
84
+ o.debug("[PEG Parser] Parsed rules:", n.rules.length), h(n), o.debug("[PEG Parser] Parse complete");
85
+ }, "parse"),
86
+ parser: {
87
+ yy: a
88
+ }
89
+ }, L = {
90
+ parser: b,
91
+ db: a,
92
+ renderer: m,
93
+ styles: l
94
+ };
95
+ export {
96
+ L as diagram
97
+ };
@@ -1,6 +1,6 @@
1
- import { D as gt, x as P, al as dt, H as et, q as b, am as pt, aF as ot, J as ht, C as tt, e as v, _ as V, a as G, v as _t, b1 as rt, P as ft, b2 as mt, r as A, L as R, T as M, m as W, aG as ct, p as yt, j as w, h as T, G as $, aj as J, b3 as k, b as bt } from "./am-chart.CqdmTS0P.js";
2
- import { S as xt } from "./Slice.C5lVu2g_.js";
3
- import { R as kt } from "./RadialLabel.BYH69FGU.js";
1
+ import { D as gt, x as P, aj as dt, H as et, q as b, ak as pt, aD as ot, J as ht, C as tt, e as v, _ as V, a as G, v as _t, a$ as rt, P as ft, b0 as mt, r as A, L as R, T as M, m as W, aE as ct, p as yt, j as w, h as T, G as J, ah as $, b3 as k, b as bt } from "./am-chart.Cr-vMjcY.js";
2
+ import { S as xt } from "./Slice.BVI8rfHI.js";
3
+ import { R as kt } from "./RadialLabel.7ka6ND-t.js";
4
4
  class vt extends gt {
5
5
  setupDefaultRules() {
6
6
  super.setupDefaultRules();
@@ -600,7 +600,7 @@ class it extends X {
600
600
  }
601
601
  it.className = "PieSeries";
602
602
  it.classNames = X.classNames.concat([it.className]);
603
- class U extends $ {
603
+ class U extends J {
604
604
  constructor() {
605
605
  super(...arguments), this._projectionDirty = !1, this._tlx = 0, this._tly = 0, this._trx = 0, this._try = 0, this._blx = 0, this._bly = 0, this._brx = 0, this._bry = 0, this._cprx = 0, this._cplx = 0, this._cpry = 0, this._cply = 0;
606
606
  }
@@ -609,7 +609,7 @@ class U extends $ {
609
609
  const t = this.width(), s = this.height();
610
610
  let i = Math.min(t, s) / 2, l = A(this.get("cornerRadiusTL", 0), i), a = A(this.get("cornerRadiusTR", 0), i), n = A(this.get("cornerRadiusBR", 0), i), r = A(this.get("cornerRadiusBL", 0), i), c = this._trx, o = this._try, p = this._tlx, h = this._tly, g = this._brx, d = this._bry, u = this._blx, _ = this._bly;
611
611
  o == h && (o = o - 0.01), d == _ && (d = d - 0.01);
612
- let m = J({ x: p, y: h }, { x: c, y: o }), y = J({ x: c, y: o }, { x: g, y: d }), x = J({ x: g, y: d }, { x: u, y: _ }), f = J({ x: u, y: _ }, { x: p, y: h });
612
+ let m = $({ x: p, y: h }, { x: c, y: o }), y = $({ x: c, y: o }, { x: g, y: d }), x = $({ x: g, y: d }, { x: u, y: _ }), f = $({ x: u, y: _ }, { x: p, y: h });
613
613
  this.get("orientation") == "horizontal" ? (l = Math.min(l, Math.abs(h - o) / 2), a = Math.min(a, Math.abs(h - o) / 2), n = Math.min(n, Math.abs(_ - d) / 2), r = Math.min(r, Math.abs(_ - d) / 2)) : (l = Math.min(l, Math.abs(p - c) / 2), a = Math.min(a, Math.abs(p - c) / 2), n = Math.min(n, Math.abs(u - g) / 2), r = Math.min(r, Math.abs(u - g) / 2));
614
614
  const D = p - l * k((m - f) / 2) * T(f), L = h - l * k((m - f) / 2) * w(f), z = p - l * k((f - m) / 2) * T(m), F = h - l * k((f - m) / 2) * w(m), S = c - a * k((y - m) / 2) * T(m), Q = o - a * k((y - m) / 2) * w(m), N = c - a * k((m - y) / 2) * T(y), Y = o - a * k((m - y) / 2) * w(y), O = g - n * k((x - y) / 2) * T(y), B = d - n * k((x - y) / 2) * w(y), j = g - n * k((y - x) / 2) * T(x), q = d - n * k((y - x) / 2) * w(x), nt = u - r * k((f - x) / 2) * T(x), Z = _ - r * k((f - x) / 2) * w(x), I = u - r * k((x - f) / 2) * T(f), ut = _ - r * k((x - f) / 2) * w(f);
615
615
  e.moveTo(z, F), e.lineTo(S, Q), e.arcTo(c, o, N, Y, a), e.quadraticCurveTo(this._cprx, this._cpry, O, B), e.arcTo(g, d, j, q, n), e.lineTo(nt, Z), e.arcTo(u, _, I, ut, r), e.quadraticCurveTo(this._cplx, this._cply, D, L), e.arcTo(p, h, z, F, l);
@@ -637,8 +637,8 @@ class U extends $ {
637
637
  }
638
638
  }
639
639
  U.className = "FunnelSlice";
640
- U.classNames = $.classNames.concat([U.className]);
641
- class K extends X {
640
+ U.classNames = J.classNames.concat([U.className]);
641
+ class E extends X {
642
642
  constructor() {
643
643
  super(...arguments), this._tag = "funnel", this.links = this.addDisposer(this._makeLinks()), this._total = 0, this._count = 0, this._nextCoord = 0, this._opposite = !1;
644
644
  }
@@ -825,9 +825,9 @@ class K extends X {
825
825
  }
826
826
  }
827
827
  }
828
- K.className = "FunnelSeries";
829
- K.classNames = X.classNames.concat([K.className]);
830
- class E extends K {
828
+ E.className = "FunnelSeries";
829
+ E.classNames = X.classNames.concat([E.className]);
830
+ class K extends E {
831
831
  constructor() {
832
832
  super(...arguments), this._tag = "pyramid";
833
833
  }
@@ -856,11 +856,11 @@ class E extends K {
856
856
  t == "vertical" ? (l.set("y", Y), l.get("opacity") > 0 && this._rLabels.push({ label: l, y: Y }), i.set("height", u)) : (l.set("x", Y), l.get("opacity") > 0 && this._hLabels.push({ label: l, y: Y }), [O, B] = [B, O], [j, q] = [q, j], i.set("width", u)), i.setAll({ orientation: t, bottomWidth: _, topWidth: S, x: O, y: B }), a.setAll({ orientation: t, x: j, y: q, topWidth: _, bottomWidth: _ }), this._nextSize = _, this._nextCoord += u + f;
857
857
  }
858
858
  }
859
- E.className = "PyramidSeries";
860
- E.classNames = K.classNames.concat([E.className]);
861
- class lt extends E {
859
+ K.className = "PyramidSeries";
860
+ K.classNames = E.classNames.concat([K.className]);
861
+ class lt extends K {
862
862
  constructor() {
863
- super(...arguments), this._tag = "pictorial", this.seriesMask = $.new(this._root, { position: "absolute", x: b, y: b, centerX: b, centerY: b }), this.seriesGraphics = this.slicesContainer.children.push($.new(this._root, { themeTags: ["pictorial", "background"], position: "absolute", x: b, y: b, centerX: b, centerY: b }));
863
+ super(...arguments), this._tag = "pictorial", this.seriesMask = J.new(this._root, { position: "absolute", x: b, y: b, centerX: b, centerY: b }), this.seriesGraphics = this.slicesContainer.children.push(J.new(this._root, { themeTags: ["pictorial", "background"], position: "absolute", x: b, y: b, centerX: b, centerY: b }));
864
864
  }
865
865
  _afterNew() {
866
866
  super._afterNew(), this.set("topWidth", P), this.set("bottomWidth", P), this.set("valueIs", "height"), this.slicesContainer.set("mask", this.seriesMask);
@@ -880,7 +880,7 @@ class lt extends E {
880
880
  }
881
881
  }
882
882
  lt.className = "PictorialStackedSeries";
883
- lt.classNames = E.classNames.concat([lt.className]);
883
+ lt.classNames = K.classNames.concat([lt.className]);
884
884
  class at extends H {
885
885
  _afterNew() {
886
886
  super._afterNew(), this.seriesContainer.setAll({ isMeasured: !0, layout: this._root.horizontalLayout });
@@ -890,13 +890,13 @@ at.className = "SlicedChart";
890
890
  at.classNames = H.classNames.concat([at.className]);
891
891
  export {
892
892
  vt as DefaultTheme,
893
- K as FunnelSeries,
893
+ E as FunnelSeries,
894
894
  U as FunnelSlice,
895
895
  H as PercentChart,
896
896
  X as PercentSeries,
897
897
  lt as PictorialStackedSeries,
898
898
  st as PieChart,
899
899
  it as PieSeries,
900
- E as PyramidSeries,
900
+ K as PyramidSeries,
901
901
  at as SlicedChart
902
902
  };
@@ -0,0 +1,212 @@
1
+ import { p as at } from "./chunk-JWPE2WC7.BV0i4LDu.js";
2
+ import { _ as g, g as rt, s as nt, a as it, b as ot, o as st, n as lt, l as G, c as ct, A as ut, E as dt, L as gt, d as pt, p as ht, B as ft } from "./mermaid.core.Dspbw7Ig.js";
3
+ import { p as mt } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
4
+ import "./index.CrhRU5m8.js";
5
+ import "./transform.BuqENXeT.js";
6
+ import { d as q } from "./arc.xqNd6x9S.js";
7
+ import { o as vt } from "./ordinal.bqVaUip-.js";
8
+ import { c as T, a as xt } from "./line.DP-iSN_J.js";
9
+ import { t as B } from "./math.D2lKC7md.js";
10
+ function St(t, n) {
11
+ return n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
12
+ }
13
+ function yt(t) {
14
+ return t;
15
+ }
16
+ function wt() {
17
+ var t = yt, n = St, y = null, b = T(0), l = T(B), p = T(0);
18
+ function i(e) {
19
+ var r, s = (e = xt(e)).length, h, w, $ = 0, f = new Array(s), o = new Array(s), D = +b.apply(this, arguments), z = Math.min(B, Math.max(-B, l.apply(this, arguments) - D)), k, R = Math.min(Math.abs(z) / s, p.apply(this, arguments)), u = R * (z < 0 ? -1 : 1), A;
20
+ for (r = 0; r < s; ++r)
21
+ (A = o[f[r] = r] = +t(e[r], r, e)) > 0 && ($ += A);
22
+ for (n != null ? f.sort(function(M, m) {
23
+ return n(o[M], o[m]);
24
+ }) : y != null && f.sort(function(M, m) {
25
+ return y(e[M], e[m]);
26
+ }), r = 0, w = $ ? (z - s * u) / $ : 0; r < s; ++r, D = k)
27
+ h = f[r], A = o[h], k = D + (A > 0 ? A * w : 0) + u, o[h] = {
28
+ data: e[h],
29
+ index: r,
30
+ value: A,
31
+ startAngle: D,
32
+ endAngle: k,
33
+ padAngle: R
34
+ };
35
+ return o;
36
+ }
37
+ return i.value = function(e) {
38
+ return arguments.length ? (t = typeof e == "function" ? e : T(+e), i) : t;
39
+ }, i.sortValues = function(e) {
40
+ return arguments.length ? (n = e, y = null, i) : n;
41
+ }, i.sort = function(e) {
42
+ return arguments.length ? (y = e, n = null, i) : y;
43
+ }, i.startAngle = function(e) {
44
+ return arguments.length ? (b = typeof e == "function" ? e : T(+e), i) : b;
45
+ }, i.endAngle = function(e) {
46
+ return arguments.length ? (l = typeof e == "function" ? e : T(+e), i) : l;
47
+ }, i.padAngle = function(e) {
48
+ return arguments.length ? (p = typeof e == "function" ? e : T(+e), i) : p;
49
+ }, i;
50
+ }
51
+ var At = ft.pie, I = {
52
+ sections: /* @__PURE__ */ new Map(),
53
+ showData: !1
54
+ }, F = I.sections, V = I.showData, Ct = structuredClone(At), $t = /* @__PURE__ */ g(() => structuredClone(Ct), "getConfig"), Dt = /* @__PURE__ */ g(() => {
55
+ F = /* @__PURE__ */ new Map(), V = I.showData, ht();
56
+ }, "clear"), Tt = /* @__PURE__ */ g(({ label: t, value: n }) => {
57
+ if (n < 0)
58
+ throw new Error(
59
+ `"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
60
+ );
61
+ F.has(t) || (F.set(t, n), G.debug(`added new section: ${t}, with value: ${n}`));
62
+ }, "addSection"), bt = /* @__PURE__ */ g(() => F, "getSections"), kt = /* @__PURE__ */ g((t) => {
63
+ V = t;
64
+ }, "setShowData"), Et = /* @__PURE__ */ g(() => V, "getShowData"), J = {
65
+ getConfig: $t,
66
+ clear: Dt,
67
+ setDiagramTitle: lt,
68
+ getDiagramTitle: st,
69
+ setAccTitle: ot,
70
+ getAccTitle: it,
71
+ setAccDescription: nt,
72
+ getAccDescription: rt,
73
+ addSection: Tt,
74
+ getSections: bt,
75
+ setShowData: kt,
76
+ getShowData: Et
77
+ }, zt = /* @__PURE__ */ g((t, n) => {
78
+ at(t, n), n.setShowData(t.showData), t.sections.map(n.addSection);
79
+ }, "populateDb"), Mt = {
80
+ parse: /* @__PURE__ */ g(async (t) => {
81
+ const n = await mt("pie", t);
82
+ G.debug(n), zt(n, J);
83
+ }, "parse")
84
+ }, Lt = /* @__PURE__ */ g((t) => `
85
+ .pieCircle{
86
+ stroke: ${t.pieStrokeColor};
87
+ stroke-width : ${t.pieStrokeWidth};
88
+ opacity : ${t.pieOpacity};
89
+ }
90
+ .pieCircle.highlighted{
91
+ scale: 1.05;
92
+ opacity: 1;
93
+ }
94
+ .pieCircle.highlightedOnHover:hover{
95
+ transition-duration: 250ms;
96
+ scale: 1.05;
97
+ opacity: 1;
98
+ }
99
+ .pieOuterCircle{
100
+ stroke: ${t.pieOuterStrokeColor};
101
+ stroke-width: ${t.pieOuterStrokeWidth};
102
+ fill: none;
103
+ }
104
+ .pieTitleText {
105
+ text-anchor: middle;
106
+ font-size: ${t.pieTitleTextSize};
107
+ fill: ${t.pieTitleTextColor};
108
+ font-family: ${t.fontFamily};
109
+ }
110
+ .slice {
111
+ font-family: ${t.fontFamily};
112
+ fill: ${t.pieSectionTextColor};
113
+ font-size:${t.pieSectionTextSize};
114
+ // fill: white;
115
+ }
116
+ .legend text {
117
+ fill: ${t.pieLegendTextColor};
118
+ font-family: ${t.fontFamily};
119
+ font-size: ${t.pieLegendTextSize};
120
+ }
121
+ `, "getStyles"), Rt = Lt, Wt = /* @__PURE__ */ g((t) => {
122
+ const n = [...t.values()].reduce((l, p) => l + p, 0), y = [...t.entries()].map(([l, p]) => ({ label: l, value: p })).filter((l) => l.value / n * 100 >= 1);
123
+ return wt().value((l) => l.value).sort(null)(y);
124
+ }, "createPieArcs"), _t = /* @__PURE__ */ g((t, n, y, b) => {
125
+ G.debug(`rendering pie chart
126
+ ` + t);
127
+ const l = b.db, p = ct(), i = ut(l.getConfig(), p.pie), e = 40, r = 18, s = 4, h = 450, w = h, $ = dt(n), f = $.append("g");
128
+ f.attr("transform", "translate(" + w / 2 + "," + h / 2 + ")");
129
+ const { themeVariables: o } = p;
130
+ let [D] = gt(o.pieOuterStrokeWidth);
131
+ D ??= 2;
132
+ const z = i.legendPosition, k = i.textPosition, R = i.donutHole > 0 && i.donutHole <= 0.9 ? i.donutHole : 0, u = Math.min(w, h) / 2 - e, A = q().innerRadius(R * u).outerRadius(u), M = q().innerRadius(u * k).outerRadius(u * k), m = f.append("g");
133
+ m.append("circle").attr("cx", 0).attr("cy", 0).attr("r", u + D / 2).attr("class", "pieOuterCircle");
134
+ const W = l.getSections(), K = Wt(W), Q = [
135
+ o.pie1,
136
+ o.pie2,
137
+ o.pie3,
138
+ o.pie4,
139
+ o.pie5,
140
+ o.pie6,
141
+ o.pie7,
142
+ o.pie8,
143
+ o.pie9,
144
+ o.pie10,
145
+ o.pie11,
146
+ o.pie12
147
+ ];
148
+ let H = 0;
149
+ W.forEach((a) => {
150
+ H += a;
151
+ });
152
+ const U = K.filter((a) => (a.data.value / H * 100).toFixed(0) !== "0"), N = vt(Q).domain([
153
+ ...W.keys()
154
+ ]);
155
+ m.selectAll("mySlices").data(U).enter().append("path").attr("d", A).attr("fill", (a) => N(a.data.label)).attr("class", (a) => {
156
+ let c = "pieCircle";
157
+ return i.highlightSlice === "hover" ? c += " highlightedOnHover" : i.highlightSlice === a.data.label && (c += " highlighted"), c;
158
+ }), m.selectAll("mySlices").data(U).enter().append("text").text((a) => (a.data.value / H * 100).toFixed(0) + "%").attr("transform", (a) => "translate(" + M.centroid(a) + ")").style("text-anchor", "middle").attr("class", "slice");
159
+ const Y = f.append("text").text(l.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), L = [...W.entries()].map(([a, c]) => ({
160
+ label: a,
161
+ value: c
162
+ })), C = f.selectAll(".legend").data(L).enter().append("g").attr("class", "legend");
163
+ C.append("rect").attr("width", r).attr("height", r).style("fill", (a) => N(a.label)).style("stroke", (a) => N(a.label)), C.append("text").attr("x", r + s).attr("y", r - s).text((a) => l.getShowData() ? `${a.label} [${a.value}]` : a.label);
164
+ const E = Math.max(
165
+ ...C.selectAll("text").nodes().map((a) => a?.getBoundingClientRect().width ?? 0)
166
+ );
167
+ let _ = h, O = w + e;
168
+ const d = r + s, P = L.length * d;
169
+ switch (z) {
170
+ case "center":
171
+ C.attr("transform", (a, c) => {
172
+ const v = d * L.length / 2, x = -E / 2 - (r + s), S = c * d - v;
173
+ return "translate(" + x + "," + S + ")";
174
+ });
175
+ break;
176
+ case "top":
177
+ _ += P, C.attr("transform", (a, c) => {
178
+ const v = u, x = -E / 2 - (r + s), S = c * d - v;
179
+ return `translate(${x}, ${S})`;
180
+ }), m.attr("transform", () => `translate(0, ${P + d})`);
181
+ break;
182
+ case "bottom":
183
+ _ += P, C.attr("transform", (a, c) => {
184
+ const v = -u - d, x = -E / 2 - (r + s), S = c * d - v;
185
+ return "translate(" + x + "," + S + ")";
186
+ });
187
+ break;
188
+ case "left":
189
+ O += r + s + E, C.attr("transform", (a, c) => {
190
+ const v = d * L.length / 2, x = -u - (r + s), S = c * d - v;
191
+ return "translate(" + x + "," + S + ")";
192
+ }), m.attr("transform", () => `translate(${E + r + s}, 0)`);
193
+ break;
194
+ case "right":
195
+ default:
196
+ O += r + s + E, C.attr("transform", (a, c) => {
197
+ const v = d * L.length / 2, x = 12 * r, S = c * d - v;
198
+ return "translate(" + x + "," + S + ")";
199
+ });
200
+ break;
201
+ }
202
+ const j = Y.node()?.getBoundingClientRect().width ?? 0, tt = w / 2 - j / 2, et = w / 2 + j / 2, X = Math.min(0, tt), Z = Math.max(O, et) - X;
203
+ $.attr("viewBox", `${X} 0 ${Z} ${_}`), pt($, _, Z, i.useMaxWidth);
204
+ }, "draw"), Ft = { draw: _t }, Xt = {
205
+ parser: Mt,
206
+ db: J,
207
+ renderer: Ft,
208
+ styles: Rt
209
+ };
210
+ export {
211
+ Xt as diagram
212
+ };
@@ -0,0 +1,4 @@
1
+ var e = /* @__PURE__ */ ((t) => (t.BottomCenter = "bottom-center", t.BottomLeft = "bottom-left", t.BottomRight = "bottom-right", t.CenterCenter = "center-center", t.CenterLeft = "center-left", t.CenterRight = "center-right", t.TopCenter = "top-center", t.TopLeft = "top-left", t.TopRight = "top-right", t))(e || {});
2
+ export {
3
+ e as P
4
+ };