@leanspec/ui-components 0.2.21 → 0.2.22

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 (167) hide show
  1. package/dist/{_baseUniq-KSDS6tgF.js → _baseUniq-D7Jo4wA-.js} +2 -2
  2. package/dist/{_baseUniq-ifpVq4u5.cjs → _baseUniq-DuU2z5Ko.cjs} +1 -1
  3. package/dist/{arc-CutFaiCL.cjs → arc-DVobalXV.cjs} +1 -1
  4. package/dist/{arc-C-X5Xt_b.js → arc-bSbgZKu2.js} +1 -1
  5. package/dist/{architecture-U656AL7Q-DOVRDeZr.cjs → architecture-U656AL7Q-BnnsKr-v.cjs} +1 -1
  6. package/dist/{architecture-U656AL7Q-BB1A66AM.js → architecture-U656AL7Q-pOUzdaWZ.js} +1 -1
  7. package/dist/{architectureDiagram-VXUJARFQ-Bal8NTn4.js → architectureDiagram-VXUJARFQ-B9csKaKv.js} +1272 -1279
  8. package/dist/architectureDiagram-VXUJARFQ-Dwe8uzg_.cjs +36 -0
  9. package/dist/blockDiagram-VD42YOAC-B4iBhDdw.cjs +122 -0
  10. package/dist/{blockDiagram-VD42YOAC-B2gTo5wW.js → blockDiagram-VD42YOAC-DrRsdznF.js} +911 -920
  11. package/dist/c4Diagram-YG6GDRKO-BRDnNTAH.cjs +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-dIf_vNCY.js → c4Diagram-YG6GDRKO-Di2rkJ8i.js} +162 -163
  13. package/dist/{channel-klR7o7JB.js → channel-CTeTHv-y.js} +1 -1
  14. package/dist/channel-Dzz86sIh.cjs +1 -0
  15. package/dist/chunk-4BX2VUAB-Ckv-xIp1.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-Dkr-Egsj.js +8 -0
  17. package/dist/{chunk-55IACEB6-C88Xx0rU.cjs → chunk-55IACEB6-CVnZTCiR.cjs} +1 -1
  18. package/dist/{chunk-55IACEB6-Dd3NjClm.js → chunk-55IACEB6-D_uwi6CC.js} +1 -1
  19. package/dist/{chunk-B4BG7PRW-DLUrgkJI.js → chunk-B4BG7PRW-BipBIVhj.js} +247 -248
  20. package/dist/{chunk-B4BG7PRW-BTU_nPVE.cjs → chunk-B4BG7PRW-Bne1UwNu.cjs} +6 -6
  21. package/dist/{chunk-DI55MBZ5-BwHLqSW9.js → chunk-DI55MBZ5-8tWOlvAD.js} +440 -452
  22. package/dist/chunk-DI55MBZ5-UAAzyEQX.cjs +220 -0
  23. package/dist/{chunk-FMBD7UC4-6dsbMKM7.js → chunk-FMBD7UC4-CLc8_72-.js} +1 -1
  24. package/dist/{chunk-FMBD7UC4-CedTj9g2.cjs → chunk-FMBD7UC4-DsaPsLgZ.cjs} +1 -1
  25. package/dist/chunk-QN33PNHL-BBlw4H4R.cjs +1 -0
  26. package/dist/chunk-QN33PNHL-QKH9jByz.js +19 -0
  27. package/dist/{chunk-QZHKN3VN-CVAEdzef.js → chunk-QZHKN3VN-BPpgPA2g.js} +1 -1
  28. package/dist/{chunk-QZHKN3VN-CU1cLvn7.cjs → chunk-QZHKN3VN-CB9ZTvXU.cjs} +1 -1
  29. package/dist/{chunk-TZMSLE5B-Cc8_PJIq.js → chunk-TZMSLE5B-Coq49FaX.js} +1 -1
  30. package/dist/{chunk-TZMSLE5B-Dy6zxWyY.cjs → chunk-TZMSLE5B-Dl7DiX7D.cjs} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-D7bjndmT.js → classDiagram-2ON5EDUG-DYaKkEXb.js} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CJQWUYqu.cjs → classDiagram-2ON5EDUG-Fsj2z4ej.cjs} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-D7bjndmT.js → classDiagram-v2-WZHVMYZB-DYaKkEXb.js} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CJQWUYqu.cjs → classDiagram-v2-WZHVMYZB-Fsj2z4ej.cjs} +1 -1
  35. package/dist/{clone-7srXemyd.js → clone-Ctm6tjrV.js} +1 -1
  36. package/dist/clone-JAtNXNmq.cjs +1 -0
  37. package/dist/{code-block-37QAKDTI-MRm4xHKr.js → code-block-37QAKDTI-3zaK1Sok.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-BAYBliUK.cjs → code-block-37QAKDTI-UmxtJ5VR.cjs} +1 -1
  39. package/dist/components/graph/dependency-graph.d.ts.map +1 -1
  40. package/dist/components/hierarchy/hierarchy-tree.d.ts +17 -0
  41. package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
  42. package/dist/components/hierarchy/index.d.ts +2 -0
  43. package/dist/components/hierarchy/index.d.ts.map +1 -0
  44. package/dist/components/index.d.ts +1 -0
  45. package/dist/components/index.d.ts.map +1 -1
  46. package/dist/components/spec/spec-card.d.ts +1 -1
  47. package/dist/components/spec/spec-card.d.ts.map +1 -1
  48. package/dist/components/ui/index.d.ts +3 -3
  49. package/dist/components/ui/index.d.ts.map +1 -1
  50. package/dist/cose-bilkent-S5V4N54A-BMt11jHq.cjs +1 -0
  51. package/dist/{cose-bilkent-S5V4N54A-0O3dLIoy.js → cose-bilkent-S5V4N54A-iUMgKFJZ.js} +281 -281
  52. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  53. package/dist/{cytoscape.esm-CjI2IsL8.js → cytoscape.esm-Cvf3sx9F.js} +18 -49
  54. package/dist/dagre-6UL2VRFP-CKc2IEbO.js +443 -0
  55. package/dist/dagre-6UL2VRFP-sN44kpPp.cjs +4 -0
  56. package/dist/{diagram-PSM6KHXK-s2xYLlND.js → diagram-PSM6KHXK-DERIvROx.js} +17 -19
  57. package/dist/diagram-PSM6KHXK-Ltn89usT.cjs +24 -0
  58. package/dist/{diagram-QEK2KX5R-D700jvoY.js → diagram-QEK2KX5R-B6CdcylU.js} +10 -14
  59. package/dist/diagram-QEK2KX5R-CDZWBlgA.cjs +43 -0
  60. package/dist/{diagram-S2PKOQOG-BkgBSa1Q.js → diagram-S2PKOQOG-5f_4uCtF.js} +22 -23
  61. package/dist/diagram-S2PKOQOG-D4WcZEo0.cjs +24 -0
  62. package/dist/{erDiagram-Q2GNP2WA-CXv6THpi.js → erDiagram-Q2GNP2WA-CnN7DF_N.js} +73 -74
  63. package/dist/{erDiagram-Q2GNP2WA-DKKIPwgH.cjs → erDiagram-Q2GNP2WA-mIz8VRgG.cjs} +3 -3
  64. package/dist/flowDiagram-NV44I4VS-BwUl8_y0.cjs +162 -0
  65. package/dist/{flowDiagram-NV44I4VS-Dsrv00Gy.js → flowDiagram-NV44I4VS-Dl3ZZj2W.js} +438 -445
  66. package/dist/{ganttDiagram-JELNMOA3-BuwyOUxF.cjs → ganttDiagram-JELNMOA3-Dl_PUPHn.cjs} +1 -1
  67. package/dist/{ganttDiagram-JELNMOA3-CqVYbgbk.js → ganttDiagram-JELNMOA3-q87tSGGF.js} +2 -2
  68. package/dist/{gitGraph-F6HP7TQM-q5owfB75.js → gitGraph-F6HP7TQM-C4DmI2Gg.js} +1 -1
  69. package/dist/{gitGraph-F6HP7TQM-BtoBLEOj.cjs → gitGraph-F6HP7TQM-Cq9d8Pu6.cjs} +1 -1
  70. package/dist/gitGraphDiagram-NY62KEGX-DMhKqh_S.cjs +65 -0
  71. package/dist/gitGraphDiagram-NY62KEGX-NeHUXng4.js +699 -0
  72. package/dist/{graph-CxpBbnBw.cjs → graph-AuIe-DO_.cjs} +1 -1
  73. package/dist/{graph-rt_wscbL.js → graph-Da1z0n_J.js} +2 -2
  74. package/dist/hooks/index.d.ts +1 -0
  75. package/dist/hooks/index.d.ts.map +1 -1
  76. package/dist/hooks/use-spec-sync.d.ts +13 -0
  77. package/dist/hooks/use-spec-sync.d.ts.map +1 -0
  78. package/dist/{index-BsdeQX2F.js → index-B5zgF_S5.js} +30337 -30055
  79. package/dist/index-KEDsBA0n.cjs +2103 -0
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.js +512 -500
  82. package/dist/info-NVLQJR56-A56PvZ_B.js +5 -0
  83. package/dist/{info-NVLQJR56-Ctx23Jwq.cjs → info-NVLQJR56-FWiEuR29.cjs} +1 -1
  84. package/dist/{infoDiagram-WHAUD3N6-Fq8ToFQ6.js → infoDiagram-WHAUD3N6-Cj-s-gtw.js} +2 -2
  85. package/dist/{infoDiagram-WHAUD3N6-ICmXrgfx.cjs → infoDiagram-WHAUD3N6-Dvc-cZjb.cjs} +1 -1
  86. package/dist/{journeyDiagram-XKPGCS4Q-BkYLuV5M.cjs → journeyDiagram-XKPGCS4Q-B54o9W3g.cjs} +1 -1
  87. package/dist/{journeyDiagram-XKPGCS4Q-BzZgPZwu.js → journeyDiagram-XKPGCS4Q-BbXXFBC-.js} +4 -4
  88. package/dist/kanban-definition-3W4ZIXB7-BQfiIWMB.cjs +89 -0
  89. package/dist/kanban-definition-3W4ZIXB7-ClCUbNCO.js +719 -0
  90. package/dist/{layout-CeChnsru.cjs → layout-9b_FTQ6g.cjs} +1 -1
  91. package/dist/{layout-CX9neEHw.js → layout-BoJlbrAK.js} +4 -4
  92. package/dist/lib/hierarchy.d.ts +12 -0
  93. package/dist/lib/hierarchy.d.ts.map +1 -0
  94. package/dist/lib/index.d.ts +1 -0
  95. package/dist/lib/index.d.ts.map +1 -1
  96. package/dist/{linear-CkUVga7d.js → linear-4rmylyIU.js} +1 -1
  97. package/dist/{linear-DLfe3Is-.cjs → linear-FU7lEwDb.cjs} +1 -1
  98. package/dist/{mermaid-4DMBBIKO-DK6bOe0l.cjs → mermaid-4DMBBIKO-CGMd2ylH.cjs} +1 -1
  99. package/dist/mermaid-4DMBBIKO-CNvUKRvV.js +4 -0
  100. package/dist/{mermaid-parser.core-B7VTdQ1C.js → mermaid-parser.core-BbeEQ08m.js} +2740 -2756
  101. package/dist/mermaid-parser.core-CQwGaxt2.cjs +128 -0
  102. package/dist/{min-Ar5ebLd-.js → min-C8aXS73f.js} +2 -2
  103. package/dist/{min-C_bmS8M7.cjs → min-Ddv5U3O-.cjs} +1 -1
  104. package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-BRNm-2aJ.js} +166 -169
  105. package/dist/mindmap-definition-VGOIOE7T-Gp-Ji6eO.cjs +68 -0
  106. package/dist/{ordinal-DfAQgscy.js → ordinal-B6-f3MAq.js} +1 -1
  107. package/dist/{packet-BFZMPI3H-DFZzoAsC.js → packet-BFZMPI3H-CJ8lOlJN.js} +1 -1
  108. package/dist/{packet-BFZMPI3H-BVRarKKV.cjs → packet-BFZMPI3H-CpWVF6Ne.cjs} +1 -1
  109. package/dist/pie-7BOR55EZ-BCyVC33Q.js +5 -0
  110. package/dist/{pie-7BOR55EZ-0edBRKAY.cjs → pie-7BOR55EZ-Ceke0LDu.cjs} +1 -1
  111. package/dist/{pieDiagram-ADFJNKIX-C_V2NX6O.js → pieDiagram-ADFJNKIX-BVRqurYx.js} +21 -21
  112. package/dist/{pieDiagram-ADFJNKIX-Ceq-kf3C.cjs → pieDiagram-ADFJNKIX-CwhRxtMH.cjs} +2 -2
  113. package/dist/{quadrantDiagram-AYHSOK5B-B8fSnYQi.js → quadrantDiagram-AYHSOK5B-CcsZBY3e.js} +227 -229
  114. package/dist/quadrantDiagram-AYHSOK5B-DBTVya8p.cjs +7 -0
  115. package/dist/radar-NHE76QYJ-C6zEuLeW.js +5 -0
  116. package/dist/{radar-NHE76QYJ-gAJ22qc7.cjs → radar-NHE76QYJ-CX8DsGdu.cjs} +1 -1
  117. package/dist/{requirementDiagram-UZGBJVZJ-D6BE-Q1l.cjs → requirementDiagram-UZGBJVZJ-5bxQUo0r.cjs} +7 -7
  118. package/dist/{requirementDiagram-UZGBJVZJ-MnXD59Yw.js → requirementDiagram-UZGBJVZJ-CV5SUGj-.js} +186 -188
  119. package/dist/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6.js → sankeyDiagram-TZEHDZUN-BFPvVGcz.js} +186 -186
  120. package/dist/{sankeyDiagram-TZEHDZUN-Dx8_KSIc.cjs → sankeyDiagram-TZEHDZUN-D33DzO8E.cjs} +5 -5
  121. package/dist/{sequenceDiagram-WL72ISMW-D2pgAoWi.js → sequenceDiagram-WL72ISMW-CQ5u3b_o.js} +213 -220
  122. package/dist/{sequenceDiagram-WL72ISMW-CUYHrDfm.cjs → sequenceDiagram-WL72ISMW-DFEVNSSA.cjs} +16 -16
  123. package/dist/{stateDiagram-FKZM4ZOC-CtYt1Ixa.cjs → stateDiagram-FKZM4ZOC-sKqH3kHZ.cjs} +1 -1
  124. package/dist/{stateDiagram-FKZM4ZOC-DYV-na53.js → stateDiagram-FKZM4ZOC-zOb-V3pD.js} +4 -4
  125. package/dist/{stateDiagram-v2-4FDKWEC3-CeSnHO3T.cjs → stateDiagram-v2-4FDKWEC3-DwWb55sM.cjs} +1 -1
  126. package/dist/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o.js → stateDiagram-v2-4FDKWEC3-_Mzc1jVl.js} +2 -2
  127. package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-B2T2QrC5.js} +211 -215
  128. package/dist/timeline-definition-IT6M3QCI-D19MQs5w.cjs +61 -0
  129. package/dist/{treemap-KMMF4GRG-DSNryTu7.cjs → treemap-KMMF4GRG-C7E3CtG7.cjs} +1 -1
  130. package/dist/{treemap-KMMF4GRG-l6HrdCLC.js → treemap-KMMF4GRG-wB3pBnFc.js} +1 -1
  131. package/dist/types/specs.d.ts +2 -0
  132. package/dist/types/specs.d.ts.map +1 -1
  133. package/dist/ui-components.css +1 -1
  134. package/dist/{xychartDiagram-PRI3JC2R-CkfCv2o_.js → xychartDiagram-PRI3JC2R-BSPghzKh.js} +3 -3
  135. package/dist/{xychartDiagram-PRI3JC2R-C2_xziD5.cjs → xychartDiagram-PRI3JC2R-hKFxVf6x.cjs} +1 -1
  136. package/package.json +5 -2
  137. package/dist/architectureDiagram-VXUJARFQ-WCtQIdet.cjs +0 -36
  138. package/dist/blockDiagram-VD42YOAC-CGdaLv7H.cjs +0 -122
  139. package/dist/c4Diagram-YG6GDRKO-DfRXyZHM.cjs +0 -10
  140. package/dist/channel-CMrUjUoZ.cjs +0 -1
  141. package/dist/chunk-4BX2VUAB-BQgzc1Sm.js +0 -9
  142. package/dist/chunk-4BX2VUAB-CO5acanJ.cjs +0 -1
  143. package/dist/chunk-DI55MBZ5-lVvJu2kr.cjs +0 -220
  144. package/dist/chunk-QN33PNHL-DHNejhbC.js +0 -20
  145. package/dist/chunk-QN33PNHL-Dr9ghdFD.cjs +0 -1
  146. package/dist/clone-Chgndk5P.cjs +0 -1
  147. package/dist/cose-bilkent-S5V4N54A-CPai-c_a.cjs +0 -1
  148. package/dist/cytoscape.esm-o9WRfNPd.cjs +0 -331
  149. package/dist/dagre-6UL2VRFP-BqaZre9N.js +0 -446
  150. package/dist/dagre-6UL2VRFP-CeIiJJG5.cjs +0 -4
  151. package/dist/diagram-PSM6KHXK-oD045yZG.cjs +0 -24
  152. package/dist/diagram-QEK2KX5R-VH7_rcp0.cjs +0 -43
  153. package/dist/diagram-S2PKOQOG-CjDpLVdl.cjs +0 -24
  154. package/dist/flowDiagram-NV44I4VS-U52jVnrS.cjs +0 -162
  155. package/dist/gitGraphDiagram-NY62KEGX-DH1I05Ix.cjs +0 -65
  156. package/dist/gitGraphDiagram-NY62KEGX-DOanbk62.js +0 -712
  157. package/dist/index-Cg8ByiK0.cjs +0 -2153
  158. package/dist/info-NVLQJR56-hH82KARZ.js +0 -5
  159. package/dist/kanban-definition-3W4ZIXB7-BV7UYL3n.cjs +0 -89
  160. package/dist/kanban-definition-3W4ZIXB7-CrmrjRAg.js +0 -721
  161. package/dist/mermaid-4DMBBIKO-wnX9ATcq.js +0 -4
  162. package/dist/mermaid-parser.core-DvlzR6J2.cjs +0 -128
  163. package/dist/mindmap-definition-VGOIOE7T-BBqv9TKM.cjs +0 -68
  164. package/dist/pie-7BOR55EZ-zLMdfI8h.js +0 -5
  165. package/dist/quadrantDiagram-AYHSOK5B-BButfYaS.cjs +0 -7
  166. package/dist/radar-NHE76QYJ-DeqJwy76.js +0 -5
  167. package/dist/timeline-definition-IT6M3QCI-4fRZfQpb.cjs +0 -61
@@ -1,721 +0,0 @@
1
- import { _ as c, l as te, f as W, P as fe, am as ye, an as be, ao as me, ah as _e, M as Y, m as G, A as Ee, J as ke, ai as Se, aj as le, ak as ce } from "./index-BsdeQX2F.js";
2
- import { g as Ne } from "./chunk-FMBD7UC4-6dsbMKM7.js";
3
- var $ = (function() {
4
- var t = /* @__PURE__ */ c(function(_, s, n, a) {
5
- for (n = n || {}, a = _.length; a--; n[_[a]] = s) ;
6
- return n;
7
- }, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], E = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], M = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], j = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], V = {
8
- trace: /* @__PURE__ */ c(function() {
9
- }, "trace"),
10
- yy: {},
11
- symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
12
- terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
13
- productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
14
- performAction: /* @__PURE__ */ c(function(s, n, a, o, u, e, B) {
15
- var l = e.length - 1;
16
- switch (u) {
17
- case 6:
18
- case 7:
19
- return o;
20
- case 8:
21
- o.getLogger().trace("Stop NL ");
22
- break;
23
- case 9:
24
- o.getLogger().trace("Stop EOF ");
25
- break;
26
- case 11:
27
- o.getLogger().trace("Stop NL2 ");
28
- break;
29
- case 12:
30
- o.getLogger().trace("Stop EOF2 ");
31
- break;
32
- case 15:
33
- o.getLogger().info("Node: ", e[l - 1].id), o.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
34
- break;
35
- case 16:
36
- o.getLogger().info("Node: ", e[l].id), o.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
37
- break;
38
- case 17:
39
- o.getLogger().trace("Icon: ", e[l]), o.decorateNode({ icon: e[l] });
40
- break;
41
- case 18:
42
- case 23:
43
- o.decorateNode({ class: e[l] });
44
- break;
45
- case 19:
46
- o.getLogger().trace("SPACELIST");
47
- break;
48
- case 20:
49
- o.getLogger().trace("Node: ", e[l - 1].id), o.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
50
- break;
51
- case 21:
52
- o.getLogger().trace("Node: ", e[l].id), o.addNode(0, e[l].id, e[l].descr, e[l].type);
53
- break;
54
- case 22:
55
- o.decorateNode({ icon: e[l] });
56
- break;
57
- case 27:
58
- o.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
59
- break;
60
- case 28:
61
- this.$ = { id: e[l], descr: e[l], type: 0 };
62
- break;
63
- case 29:
64
- o.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
65
- break;
66
- case 30:
67
- this.$ = e[l - 1] + e[l];
68
- break;
69
- case 31:
70
- this.$ = e[l];
71
- break;
72
- }
73
- }, "anonymous"),
74
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: M }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: j, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: M }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: H }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: j, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: H }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
75
- defaultActions: { 2: [2, 1], 6: [2, 2] },
76
- parseError: /* @__PURE__ */ c(function(s, n) {
77
- if (n.recoverable)
78
- this.trace(s);
79
- else {
80
- var a = new Error(s);
81
- throw a.hash = n, a;
82
- }
83
- }, "parseError"),
84
- parse: /* @__PURE__ */ c(function(s) {
85
- var n = this, a = [0], o = [], u = [null], e = [], B = this.table, l = "", z = 0, ie = 0, ue = 2, re = 1, ge = e.slice.call(arguments, 1), b = Object.create(this.lexer), T = { yy: {} };
86
- for (var J in this.yy)
87
- Object.prototype.hasOwnProperty.call(this.yy, J) && (T.yy[J] = this.yy[J]);
88
- b.setInput(s, T.yy), T.yy.lexer = b, T.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
89
- var q = b.yylloc;
90
- e.push(q);
91
- var de = b.options && b.options.ranges;
92
- typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
93
- function pe(S) {
94
- a.length = a.length - 2 * S, u.length = u.length - S, e.length = e.length - S;
95
- }
96
- c(pe, "popStack");
97
- function ae() {
98
- var S;
99
- return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
100
- }
101
- c(ae, "lex");
102
- for (var k, R, v, Q, F = {}, X, I, oe, K; ; ) {
103
- if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
104
- var Z = "";
105
- K = [];
106
- for (X in B[R])
107
- this.terminals_[X] && X > ue && K.push("'" + this.terminals_[X] + "'");
108
- b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
109
- ` + b.showPosition() + `
110
- Expecting ` + K.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
111
- text: b.match,
112
- token: this.terminals_[k] || k,
113
- line: b.yylineno,
114
- loc: q,
115
- expected: K
116
- });
117
- }
118
- if (v[0] instanceof Array && v.length > 1)
119
- throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + k);
120
- switch (v[0]) {
121
- case 1:
122
- a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno, q = b.yylloc;
123
- break;
124
- case 2:
125
- if (I = this.productions_[v[1]][1], F.$ = u[u.length - I], F._$ = {
126
- first_line: e[e.length - (I || 1)].first_line,
127
- last_line: e[e.length - 1].last_line,
128
- first_column: e[e.length - (I || 1)].first_column,
129
- last_column: e[e.length - 1].last_column
130
- }, de && (F._$.range = [
131
- e[e.length - (I || 1)].range[0],
132
- e[e.length - 1].range[1]
133
- ]), Q = this.performAction.apply(F, [
134
- l,
135
- ie,
136
- z,
137
- T.yy,
138
- v[1],
139
- u,
140
- e
141
- ].concat(ge)), typeof Q < "u")
142
- return Q;
143
- I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(F.$), e.push(F._$), oe = B[a[a.length - 2]][a[a.length - 1]], a.push(oe);
144
- break;
145
- case 3:
146
- return !0;
147
- }
148
- }
149
- return !0;
150
- }, "parse")
151
- }, m = /* @__PURE__ */ (function() {
152
- var _ = {
153
- EOF: 1,
154
- parseError: /* @__PURE__ */ c(function(n, a) {
155
- if (this.yy.parser)
156
- this.yy.parser.parseError(n, a);
157
- else
158
- throw new Error(n);
159
- }, "parseError"),
160
- // resets the lexer, sets new input
161
- setInput: /* @__PURE__ */ c(function(s, n) {
162
- return this.yy = n || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
163
- first_line: 1,
164
- first_column: 0,
165
- last_line: 1,
166
- last_column: 0
167
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
168
- }, "setInput"),
169
- // consumes and returns one char from the input
170
- input: /* @__PURE__ */ c(function() {
171
- var s = this._input[0];
172
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
173
- var n = s.match(/(?:\r\n?|\n).*/g);
174
- return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
175
- }, "input"),
176
- // unshifts one char (or a string) into the input
177
- unput: /* @__PURE__ */ c(function(s) {
178
- var n = s.length, a = s.split(/(?:\r\n?|\n)/g);
179
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
180
- var o = this.match.split(/(?:\r\n?|\n)/g);
181
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
182
- var u = this.yylloc.range;
183
- return this.yylloc = {
184
- first_line: this.yylloc.first_line,
185
- last_line: this.yylineno + 1,
186
- first_column: this.yylloc.first_column,
187
- last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - n
188
- }, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
189
- }, "unput"),
190
- // When called from action, caches matched text and appends it on next action
191
- more: /* @__PURE__ */ c(function() {
192
- return this._more = !0, this;
193
- }, "more"),
194
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
195
- reject: /* @__PURE__ */ c(function() {
196
- if (this.options.backtrack_lexer)
197
- this._backtrack = !0;
198
- else
199
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
200
- ` + this.showPosition(), {
201
- text: "",
202
- token: null,
203
- line: this.yylineno
204
- });
205
- return this;
206
- }, "reject"),
207
- // retain first n characters of the match
208
- less: /* @__PURE__ */ c(function(s) {
209
- this.unput(this.match.slice(s));
210
- }, "less"),
211
- // displays already matched input, i.e. for error messages
212
- pastInput: /* @__PURE__ */ c(function() {
213
- var s = this.matched.substr(0, this.matched.length - this.match.length);
214
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
215
- }, "pastInput"),
216
- // displays upcoming input, i.e. for error messages
217
- upcomingInput: /* @__PURE__ */ c(function() {
218
- var s = this.match;
219
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
220
- }, "upcomingInput"),
221
- // displays the character position where the lexing error occurred, i.e. for error messages
222
- showPosition: /* @__PURE__ */ c(function() {
223
- var s = this.pastInput(), n = new Array(s.length + 1).join("-");
224
- return s + this.upcomingInput() + `
225
- ` + n + "^";
226
- }, "showPosition"),
227
- // test the lexed token: return FALSE when not a match, otherwise return token
228
- test_match: /* @__PURE__ */ c(function(s, n) {
229
- var a, o, u;
230
- if (this.options.backtrack_lexer && (u = {
231
- yylineno: this.yylineno,
232
- yylloc: {
233
- first_line: this.yylloc.first_line,
234
- last_line: this.last_line,
235
- first_column: this.yylloc.first_column,
236
- last_column: this.yylloc.last_column
237
- },
238
- yytext: this.yytext,
239
- match: this.match,
240
- matches: this.matches,
241
- matched: this.matched,
242
- yyleng: this.yyleng,
243
- offset: this.offset,
244
- _more: this._more,
245
- _input: this._input,
246
- yy: this.yy,
247
- conditionStack: this.conditionStack.slice(0),
248
- done: this.done
249
- }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
250
- first_line: this.yylloc.last_line,
251
- last_line: this.yylineno + 1,
252
- first_column: this.yylloc.last_column,
253
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
254
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
255
- return a;
256
- if (this._backtrack) {
257
- for (var e in u)
258
- this[e] = u[e];
259
- return !1;
260
- }
261
- return !1;
262
- }, "test_match"),
263
- // return next match in input
264
- next: /* @__PURE__ */ c(function() {
265
- if (this.done)
266
- return this.EOF;
267
- this._input || (this.done = !0);
268
- var s, n, a, o;
269
- this._more || (this.yytext = "", this.match = "");
270
- for (var u = this._currentRules(), e = 0; e < u.length; e++)
271
- if (a = this._input.match(this.rules[u[e]]), a && (!n || a[0].length > n[0].length)) {
272
- if (n = a, o = e, this.options.backtrack_lexer) {
273
- if (s = this.test_match(a, u[e]), s !== !1)
274
- return s;
275
- if (this._backtrack) {
276
- n = !1;
277
- continue;
278
- } else
279
- return !1;
280
- } else if (!this.options.flex)
281
- break;
282
- }
283
- return n ? (s = this.test_match(n, u[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
284
- ` + this.showPosition(), {
285
- text: "",
286
- token: null,
287
- line: this.yylineno
288
- });
289
- }, "next"),
290
- // return next match that has a token
291
- lex: /* @__PURE__ */ c(function() {
292
- var n = this.next();
293
- return n || this.lex();
294
- }, "lex"),
295
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
296
- begin: /* @__PURE__ */ c(function(n) {
297
- this.conditionStack.push(n);
298
- }, "begin"),
299
- // pop the previously active lexer condition state off the condition stack
300
- popState: /* @__PURE__ */ c(function() {
301
- var n = this.conditionStack.length - 1;
302
- return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
303
- }, "popState"),
304
- // produce the lexer rule set which is active for the currently active lexer condition state
305
- _currentRules: /* @__PURE__ */ c(function() {
306
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
307
- }, "_currentRules"),
308
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
309
- topState: /* @__PURE__ */ c(function(n) {
310
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
311
- }, "topState"),
312
- // alias for begin(condition)
313
- pushState: /* @__PURE__ */ c(function(n) {
314
- this.begin(n);
315
- }, "pushState"),
316
- // return the number of states currently on the stack
317
- stateStackSize: /* @__PURE__ */ c(function() {
318
- return this.conditionStack.length;
319
- }, "stateStackSize"),
320
- options: { "case-insensitive": !0 },
321
- performAction: /* @__PURE__ */ c(function(n, a, o, u) {
322
- switch (o) {
323
- case 0:
324
- return this.pushState("shapeData"), a.yytext = "", 24;
325
- case 1:
326
- return this.pushState("shapeDataStr"), 24;
327
- case 2:
328
- return this.popState(), 24;
329
- case 3:
330
- const e = /\n\s*/g;
331
- return a.yytext = a.yytext.replace(e, "<br/>"), 24;
332
- case 4:
333
- return 24;
334
- case 5:
335
- this.popState();
336
- break;
337
- case 6:
338
- return n.getLogger().trace("Found comment", a.yytext), 6;
339
- case 7:
340
- return 8;
341
- case 8:
342
- this.begin("CLASS");
343
- break;
344
- case 9:
345
- return this.popState(), 17;
346
- case 10:
347
- this.popState();
348
- break;
349
- case 11:
350
- n.getLogger().trace("Begin icon"), this.begin("ICON");
351
- break;
352
- case 12:
353
- return n.getLogger().trace("SPACELINE"), 6;
354
- case 13:
355
- return 7;
356
- case 14:
357
- return 16;
358
- case 15:
359
- n.getLogger().trace("end icon"), this.popState();
360
- break;
361
- case 16:
362
- return n.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
363
- case 17:
364
- return n.getLogger().trace("Cloud"), this.begin("NODE"), 20;
365
- case 18:
366
- return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
367
- case 19:
368
- return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
369
- case 20:
370
- return this.begin("NODE"), 20;
371
- case 21:
372
- return this.begin("NODE"), 20;
373
- case 22:
374
- return this.begin("NODE"), 20;
375
- case 23:
376
- return this.begin("NODE"), 20;
377
- case 24:
378
- return 13;
379
- case 25:
380
- return 23;
381
- case 26:
382
- return 11;
383
- case 27:
384
- this.begin("NSTR2");
385
- break;
386
- case 28:
387
- return "NODE_DESCR";
388
- case 29:
389
- this.popState();
390
- break;
391
- case 30:
392
- n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
393
- break;
394
- case 31:
395
- return n.getLogger().trace("description:", a.yytext), "NODE_DESCR";
396
- case 32:
397
- this.popState();
398
- break;
399
- case 33:
400
- return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
401
- case 34:
402
- return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
403
- case 35:
404
- return this.popState(), n.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
405
- case 36:
406
- return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
407
- case 37:
408
- return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
409
- case 38:
410
- return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
411
- case 39:
412
- return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
413
- case 40:
414
- return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
415
- case 41:
416
- return n.getLogger().trace("Long description:", a.yytext), 21;
417
- case 42:
418
- return n.getLogger().trace("Long description:", a.yytext), 21;
419
- }
420
- }, "anonymous"),
421
- rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
422
- conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
423
- };
424
- return _;
425
- })();
426
- V.lexer = m;
427
- function O() {
428
- this.yy = {};
429
- }
430
- return c(O, "Parser"), O.prototype = V, V.Parser = O, new O();
431
- })();
432
- $.parser = $;
433
- var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
434
- D = [], ne = [], ee = 0, se = {};
435
- }, "clear"), De = /* @__PURE__ */ c((t) => {
436
- if (D.length === 0)
437
- return null;
438
- const g = D[0].level;
439
- let d = null;
440
- for (let r = D.length - 1; r >= 0; r--)
441
- if (D[r].level === g && !d && (d = D[r]), D[r].level < g)
442
- throw new Error('Items without section detected, found section ("' + D[r].label + '")');
443
- return t === (d == null ? void 0 : d.level) ? null : d;
444
- }, "getSection"), he = /* @__PURE__ */ c(function() {
445
- return ne;
446
- }, "getSections"), Le = /* @__PURE__ */ c(function() {
447
- const t = [], g = [], d = he(), r = W();
448
- for (const p of d) {
449
- const E = {
450
- id: p.id,
451
- label: G(p.label ?? "", r),
452
- isGroup: !0,
453
- ticket: p.ticket,
454
- shape: "kanbanSection",
455
- level: p.level,
456
- look: r.look
457
- };
458
- g.push(E);
459
- const f = D.filter((h) => h.parentId === p.id);
460
- for (const h of f) {
461
- const L = {
462
- id: h.id,
463
- parentId: p.id,
464
- label: G(h.label ?? "", r),
465
- isGroup: !1,
466
- ticket: h == null ? void 0 : h.ticket,
467
- priority: h == null ? void 0 : h.priority,
468
- assigned: h == null ? void 0 : h.assigned,
469
- icon: h == null ? void 0 : h.icon,
470
- shape: "kanbanItem",
471
- level: h.level,
472
- rx: 5,
473
- ry: 5,
474
- cssStyles: ["text-align: left"]
475
- };
476
- g.push(L);
477
- }
478
- }
479
- return { nodes: g, edges: t, other: {}, config: W() };
480
- }, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
481
- var C, w;
482
- const E = W();
483
- let f = ((C = E.mindmap) == null ? void 0 : C.padding) ?? Y.mindmap.padding;
484
- switch (r) {
485
- case y.ROUNDED_RECT:
486
- case y.RECT:
487
- case y.HEXAGON:
488
- f *= 2;
489
- }
490
- const h = {
491
- id: G(g, E) || "kbn" + ee++,
492
- level: t,
493
- label: G(d, E),
494
- width: ((w = E.mindmap) == null ? void 0 : w.maxNodeWidth) ?? Y.mindmap.maxNodeWidth,
495
- padding: f,
496
- isGroup: !1
497
- };
498
- if (p !== void 0) {
499
- let N;
500
- p.includes(`
501
- `) ? N = p + `
502
- ` : N = `{
503
- ` + p + `
504
- }`;
505
- const i = Ee(N, { schema: ke });
506
- if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
507
- throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
508
- i != null && i.shape && i.shape === "kanbanItem" && (h.shape = i == null ? void 0 : i.shape), i != null && i.label && (h.label = i == null ? void 0 : i.label), i != null && i.icon && (h.icon = i == null ? void 0 : i.icon.toString()), i != null && i.assigned && (h.assigned = i == null ? void 0 : i.assigned.toString()), i != null && i.ticket && (h.ticket = i == null ? void 0 : i.ticket.toString()), i != null && i.priority && (h.priority = i == null ? void 0 : i.priority);
509
- }
510
- const L = De(t);
511
- L ? h.parentId = L.id || "kbn" + ee++ : ne.push(h), D.push(h);
512
- }, "addNode"), y = {
513
- DEFAULT: 0,
514
- NO_BORDER: 0,
515
- ROUNDED_RECT: 1,
516
- RECT: 2,
517
- CIRCLE: 3,
518
- CLOUD: 4,
519
- BANG: 5,
520
- HEXAGON: 6
521
- }, Ie = /* @__PURE__ */ c((t, g) => {
522
- switch (te.debug("In get type", t, g), t) {
523
- case "[":
524
- return y.RECT;
525
- case "(":
526
- return g === ")" ? y.ROUNDED_RECT : y.CLOUD;
527
- case "((":
528
- return y.CIRCLE;
529
- case ")":
530
- return y.CLOUD;
531
- case "))":
532
- return y.BANG;
533
- case "{{":
534
- return y.HEXAGON;
535
- default:
536
- return y.DEFAULT;
537
- }
538
- }, "getType"), Ce = /* @__PURE__ */ c((t, g) => {
539
- se[t] = g;
540
- }, "setElementForId"), we = /* @__PURE__ */ c((t) => {
541
- if (!t)
542
- return;
543
- const g = W(), d = D[D.length - 1];
544
- t.icon && (d.icon = G(t.icon, g)), t.class && (d.cssClasses = G(t.class, g));
545
- }, "decorateNode"), Ae = /* @__PURE__ */ c((t) => {
546
- switch (t) {
547
- case y.DEFAULT:
548
- return "no-border";
549
- case y.RECT:
550
- return "rect";
551
- case y.ROUNDED_RECT:
552
- return "rounded-rect";
553
- case y.CIRCLE:
554
- return "circle";
555
- case y.CLOUD:
556
- return "cloud";
557
- case y.BANG:
558
- return "bang";
559
- case y.HEXAGON:
560
- return "hexgon";
561
- // cspell: disable-line
562
- default:
563
- return "no-border";
564
- }
565
- }, "type2Str"), Te = /* @__PURE__ */ c(() => te, "getLogger"), Re = /* @__PURE__ */ c((t) => se[t], "getElementById"), Pe = {
566
- clear: ve,
567
- addNode: Oe,
568
- getSections: he,
569
- getData: Le,
570
- nodeType: y,
571
- getType: Ie,
572
- setElementForId: Ce,
573
- decorateNode: we,
574
- type2Str: Ae,
575
- getLogger: Te,
576
- getElementById: Re
577
- }, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
578
- var j, U, A, H, V;
579
- te.debug(`Rendering kanban diagram
580
- ` + t);
581
- const E = r.db.getData(), f = W();
582
- f.htmlLabels = !1;
583
- const h = fe(g), L = h.append("g");
584
- L.attr("class", "sections");
585
- const C = h.append("g");
586
- C.attr("class", "items");
587
- const w = E.nodes.filter(
588
- // TODO: TypeScript 5.5 will infer this predicate automatically
589
- (m) => m.isGroup
590
- );
591
- let N = 0;
592
- const i = 10, M = [];
593
- let x = 25;
594
- for (const m of w) {
595
- const O = ((j = f == null ? void 0 : f.kanban) == null ? void 0 : j.sectionWidth) || 200;
596
- N = N + 1, m.x = O * N + (N - 1) * i / 2, m.width = O, m.y = 0, m.height = O * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + N;
597
- const _ = await ye(L, m);
598
- x = Math.max(x, (U = _ == null ? void 0 : _.labelBBox) == null ? void 0 : U.height), M.push(_);
599
- }
600
- let P = 0;
601
- for (const m of w) {
602
- const O = M[P];
603
- P = P + 1;
604
- const _ = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -_ * 3 / 2 + x;
605
- let n = s;
606
- const a = E.nodes.filter((e) => e.parentId === m.id);
607
- for (const e of a) {
608
- if (e.isGroup)
609
- throw new Error("Groups within groups are not allowed in Kanban diagrams");
610
- e.x = m.x, e.width = _ - 1.5 * i;
611
- const l = (await be(C, e, { config: f })).node().getBBox();
612
- e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
613
- }
614
- const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
615
- o.attr("height", u);
616
- }
617
- _e(
618
- void 0,
619
- h,
620
- ((H = f.mindmap) == null ? void 0 : H.padding) ?? Y.kanban.padding,
621
- ((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? Y.kanban.useMaxWidth
622
- );
623
- }, "draw"), Fe = {
624
- draw: Be
625
- }, Ge = /* @__PURE__ */ c((t) => {
626
- let g = "";
627
- for (let r = 0; r < t.THEME_COLOR_LIMIT; r++)
628
- t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], Se(t["lineColor" + r]) ? t["lineColor" + r] = le(t["lineColor" + r], 20) : t["lineColor" + r] = ce(t["lineColor" + r], 20);
629
- const d = /* @__PURE__ */ c((r, p) => t.darkMode ? ce(r, p) : le(r, p), "adjuster");
630
- for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) {
631
- const p = "" + (17 - 3 * r);
632
- g += `
633
- .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
634
- fill: ${d(t["cScale" + r], 10)};
635
- stroke: ${d(t["cScale" + r], 10)};
636
-
637
- }
638
- .section-${r - 1} text {
639
- fill: ${t["cScaleLabel" + r]};
640
- }
641
- .node-icon-${r - 1} {
642
- font-size: 40px;
643
- color: ${t["cScaleLabel" + r]};
644
- }
645
- .section-edge-${r - 1}{
646
- stroke: ${t["cScale" + r]};
647
- }
648
- .edge-depth-${r - 1}{
649
- stroke-width: ${p};
650
- }
651
- .section-${r - 1} line {
652
- stroke: ${t["cScaleInv" + r]} ;
653
- stroke-width: 3;
654
- }
655
-
656
- .disabled, .disabled circle, .disabled text {
657
- fill: lightgray;
658
- }
659
- .disabled text {
660
- fill: #efefef;
661
- }
662
-
663
- .node rect,
664
- .node circle,
665
- .node ellipse,
666
- .node polygon,
667
- .node path {
668
- fill: ${t.background};
669
- stroke: ${t.nodeBorder};
670
- stroke-width: 1px;
671
- }
672
-
673
- .kanban-ticket-link {
674
- fill: ${t.background};
675
- stroke: ${t.nodeBorder};
676
- text-decoration: underline;
677
- }
678
- `;
679
- }
680
- return g;
681
- }, "genSections"), Me = /* @__PURE__ */ c((t) => `
682
- .edge {
683
- stroke-width: 3;
684
- }
685
- ${Ge(t)}
686
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
687
- fill: ${t.git0};
688
- }
689
- .section-root text {
690
- fill: ${t.gitBranchLabel0};
691
- }
692
- .icon-container {
693
- height:100%;
694
- display: flex;
695
- justify-content: center;
696
- align-items: center;
697
- }
698
- .edge {
699
- fill: none;
700
- }
701
- .cluster-label, .label {
702
- color: ${t.textColor};
703
- fill: ${t.textColor};
704
- }
705
- .kanban-label {
706
- dy: 1em;
707
- alignment-baseline: middle;
708
- text-anchor: middle;
709
- dominant-baseline: middle;
710
- text-align: center;
711
- }
712
- ${Ne()}
713
- `, "getStyles"), je = Me, We = {
714
- db: Ve,
715
- renderer: Fe,
716
- parser: xe,
717
- styles: je
718
- };
719
- export {
720
- We as diagram
721
- };