@aiderdesk/aiderdesk 0.88.0 → 0.90.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 (166) hide show
  1. package/bin/aiderdesk.js +23 -4
  2. package/out/renderer/assets/2DXBBFLN-CN7PCbP4.js +666 -0
  3. package/out/renderer/assets/46IJ22JX-C0JBV-DN.js +853 -0
  4. package/out/renderer/assets/4TTDE5I4-9dfnF-mJ.js +501 -0
  5. package/out/renderer/assets/4UF3HTLV-BOGNNOtG.js +29 -0
  6. package/out/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
  7. package/out/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
  8. package/out/renderer/assets/AAXQQPKT-CUxujcLx.js +1130 -0
  9. package/out/renderer/assets/AKE5O7KZ-BacZZCk1.js +184 -0
  10. package/out/renderer/assets/{AgentSettings-DffQ3g7i.js → AgentSettings-d970JEBg.js} +711 -265
  11. package/out/renderer/assets/BNMLP6AG-CPZZ4Yk4.js +804 -0
  12. package/out/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
  13. package/out/renderer/assets/DR6PKOQU-B1RVO4q1.js +301 -0
  14. package/out/renderer/assets/E4RJ7UJB-DblNDQqr.js +441 -0
  15. package/out/renderer/assets/ELSXBIJH-Cv7twqii.js +39 -0
  16. package/out/renderer/assets/ERTIBQVS-BOWB3hEk.js +182 -0
  17. package/out/renderer/assets/F653G4FO-W-KqfQ-Y.js +1497 -0
  18. package/out/renderer/assets/FKCDD66M-B14TkcR1.js +205 -0
  19. package/out/renderer/assets/FP7KDXVC-CfbGNJSU.js +221 -0
  20. package/out/renderer/assets/FT5I3RHX-CN4zS9Hs.js +243 -0
  21. package/out/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
  22. package/out/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
  23. package/out/renderer/assets/GY35JXOZ-JZ4iNyhl.js +168 -0
  24. package/out/renderer/assets/H5EEJPP2-uIwpGj04.js +353 -0
  25. package/out/renderer/assets/HWDLEDTA-B-21e-nW.js +982 -0
  26. package/out/renderer/assets/{InfoIcon-CMLVIQF3.js → InfoIcon-BdHyLaWR.js} +1 -1
  27. package/out/renderer/assets/JZWSX6AR-CGOPcITT.js +67 -0
  28. package/out/renderer/assets/KQOEJWJY-CVXfAIs2.js +84 -0
  29. package/out/renderer/assets/KS3BB3KE-CtBv4FqR.js +138 -0
  30. package/out/renderer/assets/KXJRRZHI-BM99Fieb.js +502 -0
  31. package/out/renderer/assets/MFVI5XKI-CnIb_NK6.js +10 -0
  32. package/out/renderer/assets/MWY2J62P-_tQcE8Un.js +1102 -0
  33. package/out/renderer/assets/MXGNCBL2-BNrmRaJD.js +216 -0
  34. package/out/renderer/assets/N6DAJLIZ-BAz5hAGi.js +120 -0
  35. package/out/renderer/assets/NU5M23IW-CffAjbNM.js +116 -0
  36. package/out/renderer/assets/NV4XNBIS-CVgN6zoj.js +1221 -0
  37. package/out/renderer/assets/OGLU4SIR-BWc9bhhe.js +289 -0
  38. package/out/renderer/assets/OUNS5N76-Da3c60xf.js +1064 -0
  39. package/out/renderer/assets/{Onboarding-699qRMTN.js → Onboarding-C_40udgn.js} +4 -4
  40. package/out/renderer/assets/PU4ISKXV-caynfvUT.js +515 -0
  41. package/out/renderer/assets/PUZGS23X-BBtie16s.js +21 -0
  42. package/out/renderer/assets/{ProviderHeader-BnuGEmze.js → ProviderHeader-DTr3RouJ.js} +226 -68
  43. package/out/renderer/assets/Q3IYVLG5-BtsgTutD.js +500 -0
  44. package/out/renderer/assets/QYHQDLKZ-B_qsOSul.js +983 -0
  45. package/out/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
  46. package/out/renderer/assets/RZSVICHU-Bmzdqx47.js +263 -0
  47. package/out/renderer/assets/{SettingsPage-CLTNRnQI.js → SettingsPage-BfCnceVZ.js} +1952 -1744
  48. package/out/renderer/assets/UEXXS2NB-BzcZ5Jtl.js +25 -0
  49. package/out/renderer/assets/UHTQJXKL-C3dTKgrU.js +134 -0
  50. package/out/renderer/assets/URA2L2QI-B0LuLlBK.js +201 -0
  51. package/out/renderer/assets/UXCHDUKG-BCkRaN06.js +173 -0
  52. package/out/renderer/assets/{UsageDashboard-DRihVOqx.js → UsageDashboard-C8R2mFRK.js} +11329 -8646
  53. package/out/renderer/assets/VKNV3BUX-DIigERiR.js +277 -0
  54. package/out/renderer/assets/VMV7XPHP-ZutksyU0.js +127 -0
  55. package/out/renderer/assets/WEVWDWVA-RbwADIlH.js +57 -0
  56. package/out/renderer/assets/XRRJ35LF-C0MrgsVR.js +119 -0
  57. package/out/renderer/assets/YFKBLVVN-DWeGL1O-.js +990 -0
  58. package/out/renderer/assets/YHRE5QGZ-QRdA6Sjw.js +697 -0
  59. package/out/renderer/assets/ZF3OVT4B-Br3NszUk.js +420 -0
  60. package/out/renderer/assets/{index-DTwId9nn.js → index--wHnLMDb.js} +1 -1
  61. package/out/renderer/assets/{index-D1Him45L.js → index-8j5_0Xmy.js} +2 -2
  62. package/out/renderer/assets/{index-BeF6VrSe.js → index-B5RSRSoJ.js} +1 -1
  63. package/out/renderer/assets/{index-8-JzmzqC.js → index-B7B7XIvK.js} +2 -2
  64. package/out/renderer/assets/{index-4IKrE3Ch.js → index-B8KC4V_E.js} +2 -2
  65. package/out/renderer/assets/{index-CNGDTtBW.js → index-BE3TwVrI.js} +1 -1
  66. package/out/renderer/assets/{index-BSh2X31_.js → index-BI_bWG8f.js} +5 -5
  67. package/out/renderer/assets/{index-DBHj35Nq.js → index-BSVdNEPT.js} +2 -2
  68. package/out/renderer/assets/{index-CY4zeK5l.js → index-Bfv_tHDl.js} +3 -3
  69. package/out/renderer/assets/{index-tkTKXqGX.js → index-BgwAdiY-.js} +3 -3
  70. package/out/renderer/assets/{index-TTgmBk0H.js → index-CCXOgMyH.js} +1 -1
  71. package/out/renderer/assets/{index-DZ8Tuuit.js → index-CPsc5AXE.js} +33253 -56520
  72. package/out/renderer/assets/{index-Z7VaFhjR.js → index-CbIhyJsA.js} +1 -1
  73. package/out/renderer/assets/{index-ly0cB32v.css → index-CmC58I3A.css} +147 -0
  74. package/out/renderer/assets/{index-C-WEDvyw.js → index-CmZ1Jh7h.js} +5 -5
  75. package/out/renderer/assets/{index-Dq8m0XiD.js → index-Cpbtrl5u.js} +2 -2
  76. package/out/renderer/assets/{index-D2Y9BB9n.js → index-Ctxv0x2L.js} +5 -5
  77. package/out/renderer/assets/{index-BFLm6WFt.js → index-CuPAggjp.js} +5 -5
  78. package/out/renderer/assets/{index-BhXi7Le_.js → index-D3XbzIRk.js} +5 -5
  79. package/out/renderer/assets/{index-3hl2j-_p.js → index-D5x1sIX6.js} +2 -2
  80. package/out/renderer/assets/{index-vBiBurKH.js → index-D6Wnf7gd.js} +2 -2
  81. package/out/renderer/assets/{index-Otcl72On.js → index-DLjRa0WD.js} +1403 -1403
  82. package/out/renderer/assets/{index-D1jY29Az.js → index-DjulCRn0.js} +4 -4
  83. package/out/renderer/assets/{index-CnxPOcjf.js → index-Dmxn6jrh.js} +1 -1
  84. package/out/renderer/assets/{index-HjbPyDJm.js → index-Dq6Gglw0.js} +5 -5
  85. package/out/renderer/assets/{index-DUOs3uZb.js → index-DvBIPTnQ.js} +1 -1
  86. package/out/renderer/assets/{index--DpoC2Fa.js → index-XefJXdnR.js} +2 -2
  87. package/out/renderer/assets/{index-CC_7dh5L.js → index-ZECsEmSY.js} +2 -2
  88. package/out/renderer/assets/{index-B41U46QG.js → index-cOR6WxqF.js} +1 -1
  89. package/out/renderer/assets/{index-Bv8Yvnki.js → index-dFdSx4rr.js} +2 -2
  90. package/out/renderer/assets/{index-BJ-vdpjD.js → index-j2Lce0uE.js} +1 -1
  91. package/out/renderer/assets/{index-DHZvdQmh.js → index-rCofdqK1.js} +2 -2
  92. package/out/renderer/assets/{index-CBVmxCYX.js → index-sKm26BNt.js} +2 -2
  93. package/out/renderer/assets/{jsx-dev-runtime-DshTpFeb.js → jsx-dev-runtime-Cc6Jhn6s.js} +1 -1
  94. package/out/renderer/index.html +2 -2
  95. package/out/resources/prompts/system-prompt.hbs +11 -0
  96. package/out/resources/skills/extension-creator/SKILL.md +32 -1
  97. package/out/resources/skills/extension-creator/references/event-types.md +3 -3
  98. package/out/resources/skills/extension-creator/references/extension-interface.md +67 -0
  99. package/out/resources/skills/extension-creator/references/external-agent-providers.md +90 -0
  100. package/out/resources/skills/extension-creator/references/ui-components.md +29 -4
  101. package/out/runner.js +2235 -393
  102. package/package.json +22 -22
  103. package/out/renderer/assets/abnfDiagram-N423BO3Z-D0STbTTF.js +0 -118
  104. package/out/renderer/assets/arc-DeFSKBzy.js +0 -131
  105. package/out/renderer/assets/architectureDiagram-T3A2C74G-BDrfxwK6.js +0 -8829
  106. package/out/renderer/assets/band-zXq5o_Ib.js +0 -77
  107. package/out/renderer/assets/blockDiagram-VBNYF7ZC-x_YF9Yme.js +0 -3824
  108. package/out/renderer/assets/c4Diagram-5PPSVZJV-C7kuvNRf.js +0 -2482
  109. package/out/renderer/assets/channel-T97-CMvj.js +0 -7
  110. package/out/renderer/assets/chunk-2GRJ4B5K-C7nbnxgH.js +0 -116
  111. package/out/renderer/assets/chunk-2Q5K7J3B-D5IUyzX4.js +0 -19
  112. package/out/renderer/assets/chunk-5RXB4S5H-DkL2I1-Q.js +0 -1988
  113. package/out/renderer/assets/chunk-5VM5RSS4-qszW8EYL.js +0 -19
  114. package/out/renderer/assets/chunk-6Q2QTUOP-CbtMo4y_.js +0 -860
  115. package/out/renderer/assets/chunk-GF5L2VYU-C6qdgHXJ.js +0 -2026
  116. package/out/renderer/assets/chunk-JWPE2WC7-DxAg7bLn.js +0 -16
  117. package/out/renderer/assets/chunk-KBJHAD2P-Cqd2HDdS.js +0 -24
  118. package/out/renderer/assets/chunk-RYQCIY6F-DVzbqgRf.js +0 -474
  119. package/out/renderer/assets/chunk-XXDRQBXY-DF_8pbWI.js +0 -13
  120. package/out/renderer/assets/classDiagram-JCYQIIEL-MfTsDS5w.js +0 -23
  121. package/out/renderer/assets/classDiagram-v2-OCEON4UE-MfTsDS5w.js +0 -23
  122. package/out/renderer/assets/cose-bilkent-JH36ORCC-BvzyW9fn.js +0 -4942
  123. package/out/renderer/assets/cynefin-VYW2F7L2-BmRenSSB.js +0 -32093
  124. package/out/renderer/assets/cynefinDiagram-MW4NZA55-DmybMaTR.js +0 -453
  125. package/out/renderer/assets/cytoscape.esm-Bx_1tVW-.js +0 -30332
  126. package/out/renderer/assets/dagre-VZM6K2ZE-b6plu1_t.js +0 -522
  127. package/out/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
  128. package/out/renderer/assets/diagram-7IWD3JNH-B0LyLNK-.js +0 -488
  129. package/out/renderer/assets/diagram-B4RE2ZJO-BtJGLH72.js +0 -632
  130. package/out/renderer/assets/diagram-LBJQPF4R-BpSykW90.js +0 -212
  131. package/out/renderer/assets/diagram-Q27KOJAE-_vw0jdNl.js +0 -857
  132. package/out/renderer/assets/diagram-UB23O5K3-rE12zYQ8.js +0 -311
  133. package/out/renderer/assets/ebnfDiagram-BXEA7PRR-BXR1_d_o.js +0 -138
  134. package/out/renderer/assets/erDiagram-JOGREHBK-B1QCAGl4.js +0 -1238
  135. package/out/renderer/assets/flowDiagram-UKHOOZJN-wRfN63to.js +0 -2348
  136. package/out/renderer/assets/ganttDiagram-PKOTCBZU-DsXpzatp.js +0 -2782
  137. package/out/renderer/assets/gitGraphDiagram-DS77QQ5N-CsYsZ42q.js +0 -1373
  138. package/out/renderer/assets/graph-CfUL5tFv.js +0 -1308
  139. package/out/renderer/assets/infoDiagram-6WML65LV-BXT6TYnf.js +0 -31
  140. package/out/renderer/assets/init-CTO7spbL.js +0 -35
  141. package/out/renderer/assets/ishikawaDiagram-WSZJBQD7-6BJ687Ec.js +0 -967
  142. package/out/renderer/assets/journeyDiagram-NVQOT4AX-HgkRlCT0.js +0 -1255
  143. package/out/renderer/assets/kanban-definition-27J2QSJJ-COYri25f.js +0 -1052
  144. package/out/renderer/assets/layout-BBVpFPy1.js +0 -2326
  145. package/out/renderer/assets/linear-DuNIFrPi.js +0 -361
  146. package/out/renderer/assets/map-toxJVbdU.js +0 -299
  147. package/out/renderer/assets/mindmap-definition-FAOFIHXS-DhCEcxPL.js +0 -1153
  148. package/out/renderer/assets/ordinal-BD3Y6v77.js +0 -77
  149. package/out/renderer/assets/pegDiagram-VL7TDLO6-DZ8w3ViJ.js +0 -126
  150. package/out/renderer/assets/pieDiagram-7S7Q4E2Y-JcEYE_Dn.js +0 -316
  151. package/out/renderer/assets/quadrantDiagram-CIZ2JOQS-De59Sk4l.js +0 -1343
  152. package/out/renderer/assets/railroadDiagram-AXF67PYL-D7nWbE5S.js +0 -92
  153. package/out/renderer/assets/requirementDiagram-LRYGKXZP-DKWcKu7I.js +0 -1204
  154. package/out/renderer/assets/sankeyDiagram-W5VNT64P-Bj8jLitx.js +0 -1274
  155. package/out/renderer/assets/sequenceDiagram-SI44F4Z6-D9Jp65xC.js +0 -4514
  156. package/out/renderer/assets/sizeCapture-X5ZJPWSS-mY9H2lE6.js +0 -62
  157. package/out/renderer/assets/stateDiagram-OKZ733FA-BEn9ud4k.js +0 -452
  158. package/out/renderer/assets/stateDiagram-v2-UEYNNEHI-D_psrMs3.js +0 -22
  159. package/out/renderer/assets/swimlanes-SLNWSIFB-BMcpfWEi.js +0 -8557
  160. package/out/renderer/assets/swimlanesDiagram-ULZ7WXOC-OwdbT2xV.js +0 -20
  161. package/out/renderer/assets/time-DMe8nTku.js +0 -985
  162. package/out/renderer/assets/timeline-definition-Z64GVDOM-BTi-OvtJ.js +0 -1596
  163. package/out/renderer/assets/vennDiagram-T6HMQDX7-CoxSnB7W.js +0 -2515
  164. package/out/renderer/assets/wardleyDiagram-T6FBY63Y-Dj0FNpwr.js +0 -975
  165. package/out/renderer/assets/xychartDiagram-ELKLHX3M-jVSDR4Ov.js +0 -1943
  166. package/patches/ai+7.0.127.patch +0 -29
@@ -1,1052 +0,0 @@
1
- import { _ as __name, A as log, y as getConfig2, a8 as selectSvgElement, aL as insertCluster, aM as insertNode, aN as positionNode, aH as setupGraphViewbox, a6 as defaultConfig_default, J as sanitizeText, as as load, at as JSON_SCHEMA, aE as isDark, aF as lighten, aG as darken } from "./index-DZ8Tuuit.js";
2
- import { g as getIconStyles } from "./chunk-5VM5RSS4-qszW8EYL.js";
3
- var parser = (function() {
4
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
5
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
6
- return o2;
7
- }, "o"), $V0 = [1, 4], $V1 = [1, 13], $V2 = [1, 12], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 20], $V6 = [1, 19], $V7 = [6, 7, 8], $V8 = [1, 26], $V9 = [1, 24], $Va = [1, 25], $Vb = [6, 7, 11], $Vc = [1, 31], $Vd = [6, 7, 11, 24], $Ve = [1, 6, 13, 16, 17, 20, 23], $Vf = [1, 35], $Vg = [1, 36], $Vh = [1, 6, 7, 11, 13, 16, 17, 20, 23], $Vi = [1, 38];
8
- var parser2 = {
9
- trace: /* @__PURE__ */ __name(function trace() {
10
- }, "trace"),
11
- yy: {},
12
- 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 },
13
- 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" },
14
- 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]],
15
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
16
- var $0 = $$.length - 1;
17
- switch (yystate) {
18
- case 6:
19
- case 7:
20
- return yy;
21
- case 8:
22
- yy.getLogger().trace("Stop NL ");
23
- break;
24
- case 9:
25
- yy.getLogger().trace("Stop EOF ");
26
- break;
27
- case 11:
28
- yy.getLogger().trace("Stop NL2 ");
29
- break;
30
- case 12:
31
- yy.getLogger().trace("Stop EOF2 ");
32
- break;
33
- case 15:
34
- yy.getLogger().info("Node: ", $$[$0 - 1].id);
35
- yy.addNode($$[$0 - 2].length, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
36
- break;
37
- case 16:
38
- yy.getLogger().info("Node: ", $$[$0].id);
39
- yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);
40
- break;
41
- case 17:
42
- yy.getLogger().trace("Icon: ", $$[$0]);
43
- yy.decorateNode({ icon: $$[$0] });
44
- break;
45
- case 18:
46
- case 23:
47
- yy.decorateNode({ class: $$[$0] });
48
- break;
49
- case 19:
50
- yy.getLogger().trace("SPACELIST");
51
- break;
52
- case 20:
53
- yy.getLogger().trace("Node: ", $$[$0 - 1].id);
54
- yy.addNode(0, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
55
- break;
56
- case 21:
57
- yy.getLogger().trace("Node: ", $$[$0].id);
58
- yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);
59
- break;
60
- case 22:
61
- yy.decorateNode({ icon: $$[$0] });
62
- break;
63
- case 27:
64
- yy.getLogger().trace("node found ..", $$[$0 - 2]);
65
- this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
66
- break;
67
- case 28:
68
- this.$ = { id: $$[$0], descr: $$[$0], type: 0 };
69
- break;
70
- case 29:
71
- yy.getLogger().trace("node found ..", $$[$0 - 3]);
72
- this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
73
- break;
74
- case 30:
75
- this.$ = $$[$0 - 1] + $$[$0];
76
- break;
77
- case 31:
78
- this.$ = $$[$0];
79
- break;
80
- }
81
- }, "anonymous"),
82
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: $V0 }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: $V0 }, { 6: $V1, 7: [1, 10], 9: 9, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($V7, [2, 3]), { 1: [2, 2] }, o($V7, [2, 4]), o($V7, [2, 5]), { 1: [2, 6], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V1, 9: 22, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V8, 7: $V9, 10: 23, 11: $Va }, o($Vb, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: $V5, 23: $V6 }), o($Vb, [2, 19]), o($Vb, [2, 21], { 15: 30, 24: $Vc }), o($Vb, [2, 22]), o($Vb, [2, 23]), o($Vd, [2, 25]), o($Vd, [2, 26]), o($Vd, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: $V8, 7: $V9, 10: 34, 11: $Va }, { 1: [2, 7], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($Ve, [2, 14], { 7: $Vf, 11: $Vg }), o($Vh, [2, 8]), o($Vh, [2, 9]), o($Vh, [2, 10]), o($Vb, [2, 16], { 15: 37, 24: $Vc }), o($Vb, [2, 17]), o($Vb, [2, 18]), o($Vb, [2, 20], { 24: $Vi }), o($Vd, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, o($Ve, [2, 13], { 7: $Vf, 11: $Vg }), o($Vh, [2, 11]), o($Vh, [2, 12]), o($Vb, [2, 15], { 24: $Vi }), o($Vd, [2, 30]), { 22: [1, 41] }, o($Vd, [2, 27]), o($Vd, [2, 29])],
83
- defaultActions: { 2: [2, 1], 6: [2, 2] },
84
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
85
- if (hash.recoverable) {
86
- this.trace(str);
87
- } else {
88
- var error = new Error(str);
89
- error.hash = hash;
90
- throw error;
91
- }
92
- }, "parseError"),
93
- parse: /* @__PURE__ */ __name(function parse(input) {
94
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
95
- var args = lstack.slice.call(arguments, 1);
96
- var lexer2 = Object.create(this.lexer);
97
- var sharedState = { yy: {} };
98
- for (var k in this.yy) {
99
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
100
- sharedState.yy[k] = this.yy[k];
101
- }
102
- }
103
- lexer2.setInput(input, sharedState.yy);
104
- sharedState.yy.lexer = lexer2;
105
- sharedState.yy.parser = this;
106
- if (typeof lexer2.yylloc == "undefined") {
107
- lexer2.yylloc = {};
108
- }
109
- var yyloc = lexer2.yylloc;
110
- lstack.push(yyloc);
111
- var ranges = lexer2.options && lexer2.options.ranges;
112
- if (typeof sharedState.yy.parseError === "function") {
113
- this.parseError = sharedState.yy.parseError;
114
- } else {
115
- this.parseError = Object.getPrototypeOf(this).parseError;
116
- }
117
- function popStack(n) {
118
- stack.length = stack.length - 2 * n;
119
- vstack.length = vstack.length - n;
120
- lstack.length = lstack.length - n;
121
- }
122
- __name(popStack, "popStack");
123
- function lex() {
124
- var token;
125
- token = tstack.pop() || lexer2.lex() || EOF;
126
- if (typeof token !== "number") {
127
- if (token instanceof Array) {
128
- tstack = token;
129
- token = tstack.pop();
130
- }
131
- token = self.symbols_[token] || token;
132
- }
133
- return token;
134
- }
135
- __name(lex, "lex");
136
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
137
- while (true) {
138
- state = stack[stack.length - 1];
139
- if (this.defaultActions[state]) {
140
- action = this.defaultActions[state];
141
- } else {
142
- if (symbol === null || typeof symbol == "undefined") {
143
- symbol = lex();
144
- }
145
- action = table[state] && table[state][symbol];
146
- }
147
- if (typeof action === "undefined" || !action.length || !action[0]) {
148
- var errStr = "";
149
- expected = [];
150
- for (p in table[state]) {
151
- if (this.terminals_[p] && p > TERROR) {
152
- expected.push("'" + this.terminals_[p] + "'");
153
- }
154
- }
155
- if (lexer2.showPosition) {
156
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
157
- } else {
158
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
159
- }
160
- this.parseError(errStr, {
161
- text: lexer2.match,
162
- token: this.terminals_[symbol] || symbol,
163
- line: lexer2.yylineno,
164
- loc: yyloc,
165
- expected
166
- });
167
- }
168
- if (action[0] instanceof Array && action.length > 1) {
169
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
170
- }
171
- switch (action[0]) {
172
- case 1:
173
- stack.push(symbol);
174
- vstack.push(lexer2.yytext);
175
- lstack.push(lexer2.yylloc);
176
- stack.push(action[1]);
177
- symbol = null;
178
- {
179
- yyleng = lexer2.yyleng;
180
- yytext = lexer2.yytext;
181
- yylineno = lexer2.yylineno;
182
- yyloc = lexer2.yylloc;
183
- }
184
- break;
185
- case 2:
186
- len = this.productions_[action[1]][1];
187
- yyval.$ = vstack[vstack.length - len];
188
- yyval._$ = {
189
- first_line: lstack[lstack.length - (len || 1)].first_line,
190
- last_line: lstack[lstack.length - 1].last_line,
191
- first_column: lstack[lstack.length - (len || 1)].first_column,
192
- last_column: lstack[lstack.length - 1].last_column
193
- };
194
- if (ranges) {
195
- yyval._$.range = [
196
- lstack[lstack.length - (len || 1)].range[0],
197
- lstack[lstack.length - 1].range[1]
198
- ];
199
- }
200
- r = this.performAction.apply(yyval, [
201
- yytext,
202
- yyleng,
203
- yylineno,
204
- sharedState.yy,
205
- action[1],
206
- vstack,
207
- lstack
208
- ].concat(args));
209
- if (typeof r !== "undefined") {
210
- return r;
211
- }
212
- if (len) {
213
- stack = stack.slice(0, -1 * len * 2);
214
- vstack = vstack.slice(0, -1 * len);
215
- lstack = lstack.slice(0, -1 * len);
216
- }
217
- stack.push(this.productions_[action[1]][0]);
218
- vstack.push(yyval.$);
219
- lstack.push(yyval._$);
220
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
221
- stack.push(newState);
222
- break;
223
- case 3:
224
- return true;
225
- }
226
- }
227
- return true;
228
- }, "parse")
229
- };
230
- var lexer = /* @__PURE__ */ (function() {
231
- var lexer2 = {
232
- EOF: 1,
233
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
234
- if (this.yy.parser) {
235
- this.yy.parser.parseError(str, hash);
236
- } else {
237
- throw new Error(str);
238
- }
239
- }, "parseError"),
240
- // resets the lexer, sets new input
241
- setInput: /* @__PURE__ */ __name(function(input, yy) {
242
- this.yy = yy || this.yy || {};
243
- this._input = input;
244
- this._more = this._backtrack = this.done = false;
245
- this.yylineno = this.yyleng = 0;
246
- this.yytext = this.matched = this.match = "";
247
- this.conditionStack = ["INITIAL"];
248
- this.yylloc = {
249
- first_line: 1,
250
- first_column: 0,
251
- last_line: 1,
252
- last_column: 0
253
- };
254
- if (this.options.ranges) {
255
- this.yylloc.range = [0, 0];
256
- }
257
- this.offset = 0;
258
- return this;
259
- }, "setInput"),
260
- // consumes and returns one char from the input
261
- input: /* @__PURE__ */ __name(function() {
262
- var ch = this._input[0];
263
- this.yytext += ch;
264
- this.yyleng++;
265
- this.offset++;
266
- this.match += ch;
267
- this.matched += ch;
268
- var lines = ch.match(/(?:\r\n?|\n).*/g);
269
- if (lines) {
270
- this.yylineno++;
271
- this.yylloc.last_line++;
272
- } else {
273
- this.yylloc.last_column++;
274
- }
275
- if (this.options.ranges) {
276
- this.yylloc.range[1]++;
277
- }
278
- this._input = this._input.slice(1);
279
- return ch;
280
- }, "input"),
281
- // unshifts one char (or a string) into the input
282
- unput: /* @__PURE__ */ __name(function(ch) {
283
- var len = ch.length;
284
- var lines = ch.split(/(?:\r\n?|\n)/g);
285
- this._input = ch + this._input;
286
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
287
- this.offset -= len;
288
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
289
- this.match = this.match.substr(0, this.match.length - 1);
290
- this.matched = this.matched.substr(0, this.matched.length - 1);
291
- if (lines.length - 1) {
292
- this.yylineno -= lines.length - 1;
293
- }
294
- var r = this.yylloc.range;
295
- this.yylloc = {
296
- first_line: this.yylloc.first_line,
297
- last_line: this.yylineno + 1,
298
- first_column: this.yylloc.first_column,
299
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
300
- };
301
- if (this.options.ranges) {
302
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
303
- }
304
- this.yyleng = this.yytext.length;
305
- return this;
306
- }, "unput"),
307
- // When called from action, caches matched text and appends it on next action
308
- more: /* @__PURE__ */ __name(function() {
309
- this._more = true;
310
- return this;
311
- }, "more"),
312
- // 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.
313
- reject: /* @__PURE__ */ __name(function() {
314
- if (this.options.backtrack_lexer) {
315
- this._backtrack = true;
316
- } else {
317
- 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).\n" + this.showPosition(), {
318
- text: "",
319
- token: null,
320
- line: this.yylineno
321
- });
322
- }
323
- return this;
324
- }, "reject"),
325
- // retain first n characters of the match
326
- less: /* @__PURE__ */ __name(function(n) {
327
- this.unput(this.match.slice(n));
328
- }, "less"),
329
- // displays already matched input, i.e. for error messages
330
- pastInput: /* @__PURE__ */ __name(function() {
331
- var past = this.matched.substr(0, this.matched.length - this.match.length);
332
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
333
- }, "pastInput"),
334
- // displays upcoming input, i.e. for error messages
335
- upcomingInput: /* @__PURE__ */ __name(function() {
336
- var next = this.match;
337
- if (next.length < 20) {
338
- next += this._input.substr(0, 20 - next.length);
339
- }
340
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
341
- }, "upcomingInput"),
342
- // displays the character position where the lexing error occurred, i.e. for error messages
343
- showPosition: /* @__PURE__ */ __name(function() {
344
- var pre = this.pastInput();
345
- var c = new Array(pre.length + 1).join("-");
346
- return pre + this.upcomingInput() + "\n" + c + "^";
347
- }, "showPosition"),
348
- // test the lexed token: return FALSE when not a match, otherwise return token
349
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
350
- var token, lines, backup;
351
- if (this.options.backtrack_lexer) {
352
- backup = {
353
- yylineno: this.yylineno,
354
- yylloc: {
355
- first_line: this.yylloc.first_line,
356
- last_line: this.last_line,
357
- first_column: this.yylloc.first_column,
358
- last_column: this.yylloc.last_column
359
- },
360
- yytext: this.yytext,
361
- match: this.match,
362
- matches: this.matches,
363
- matched: this.matched,
364
- yyleng: this.yyleng,
365
- offset: this.offset,
366
- _more: this._more,
367
- _input: this._input,
368
- yy: this.yy,
369
- conditionStack: this.conditionStack.slice(0),
370
- done: this.done
371
- };
372
- if (this.options.ranges) {
373
- backup.yylloc.range = this.yylloc.range.slice(0);
374
- }
375
- }
376
- lines = match[0].match(/(?:\r\n?|\n).*/g);
377
- if (lines) {
378
- this.yylineno += lines.length;
379
- }
380
- this.yylloc = {
381
- first_line: this.yylloc.last_line,
382
- last_line: this.yylineno + 1,
383
- first_column: this.yylloc.last_column,
384
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
385
- };
386
- this.yytext += match[0];
387
- this.match += match[0];
388
- this.matches = match;
389
- this.yyleng = this.yytext.length;
390
- if (this.options.ranges) {
391
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
392
- }
393
- this._more = false;
394
- this._backtrack = false;
395
- this._input = this._input.slice(match[0].length);
396
- this.matched += match[0];
397
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
398
- if (this.done && this._input) {
399
- this.done = false;
400
- }
401
- if (token) {
402
- return token;
403
- } else if (this._backtrack) {
404
- for (var k in backup) {
405
- this[k] = backup[k];
406
- }
407
- return false;
408
- }
409
- return false;
410
- }, "test_match"),
411
- // return next match in input
412
- next: /* @__PURE__ */ __name(function() {
413
- if (this.done) {
414
- return this.EOF;
415
- }
416
- if (!this._input) {
417
- this.done = true;
418
- }
419
- var token, match, tempMatch, index;
420
- if (!this._more) {
421
- this.yytext = "";
422
- this.match = "";
423
- }
424
- var rules = this._currentRules();
425
- for (var i = 0; i < rules.length; i++) {
426
- tempMatch = this._input.match(this.rules[rules[i]]);
427
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
428
- match = tempMatch;
429
- index = i;
430
- if (this.options.backtrack_lexer) {
431
- token = this.test_match(tempMatch, rules[i]);
432
- if (token !== false) {
433
- return token;
434
- } else if (this._backtrack) {
435
- match = false;
436
- continue;
437
- } else {
438
- return false;
439
- }
440
- } else if (!this.options.flex) {
441
- break;
442
- }
443
- }
444
- }
445
- if (match) {
446
- token = this.test_match(match, rules[index]);
447
- if (token !== false) {
448
- return token;
449
- }
450
- return false;
451
- }
452
- if (this._input === "") {
453
- return this.EOF;
454
- } else {
455
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
456
- text: "",
457
- token: null,
458
- line: this.yylineno
459
- });
460
- }
461
- }, "next"),
462
- // return next match that has a token
463
- lex: /* @__PURE__ */ __name(function lex() {
464
- var r = this.next();
465
- if (r) {
466
- return r;
467
- } else {
468
- return this.lex();
469
- }
470
- }, "lex"),
471
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
472
- begin: /* @__PURE__ */ __name(function begin(condition) {
473
- this.conditionStack.push(condition);
474
- }, "begin"),
475
- // pop the previously active lexer condition state off the condition stack
476
- popState: /* @__PURE__ */ __name(function popState() {
477
- var n = this.conditionStack.length - 1;
478
- if (n > 0) {
479
- return this.conditionStack.pop();
480
- } else {
481
- return this.conditionStack[0];
482
- }
483
- }, "popState"),
484
- // produce the lexer rule set which is active for the currently active lexer condition state
485
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
486
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
487
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
488
- } else {
489
- return this.conditions["INITIAL"].rules;
490
- }
491
- }, "_currentRules"),
492
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
493
- topState: /* @__PURE__ */ __name(function topState(n) {
494
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
495
- if (n >= 0) {
496
- return this.conditionStack[n];
497
- } else {
498
- return "INITIAL";
499
- }
500
- }, "topState"),
501
- // alias for begin(condition)
502
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
503
- this.begin(condition);
504
- }, "pushState"),
505
- // return the number of states currently on the stack
506
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
507
- return this.conditionStack.length;
508
- }, "stateStackSize"),
509
- options: { "case-insensitive": true },
510
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
511
- switch ($avoiding_name_collisions) {
512
- case 0:
513
- this.pushState("shapeData");
514
- yy_.yytext = "";
515
- return 24;
516
- case 1:
517
- this.pushState("shapeDataStr");
518
- return 24;
519
- case 2:
520
- this.popState();
521
- return 24;
522
- case 3:
523
- const re = /\n\s*/g;
524
- yy_.yytext = yy_.yytext.replace(re, "<br/>");
525
- return 24;
526
- case 4:
527
- return 24;
528
- case 5:
529
- this.popState();
530
- break;
531
- case 6:
532
- yy.getLogger().trace("Found comment", yy_.yytext);
533
- return 6;
534
- case 7:
535
- return 8;
536
- case 8:
537
- this.begin("CLASS");
538
- break;
539
- case 9:
540
- this.popState();
541
- return 17;
542
- case 10:
543
- this.popState();
544
- break;
545
- case 11:
546
- yy.getLogger().trace("Begin icon");
547
- this.begin("ICON");
548
- break;
549
- case 12:
550
- yy.getLogger().trace("SPACELINE");
551
- return 6;
552
- case 13:
553
- return 7;
554
- case 14:
555
- return 16;
556
- case 15:
557
- yy.getLogger().trace("end icon");
558
- this.popState();
559
- break;
560
- case 16:
561
- yy.getLogger().trace("Exploding node");
562
- this.begin("NODE");
563
- return 20;
564
- case 17:
565
- yy.getLogger().trace("Cloud");
566
- this.begin("NODE");
567
- return 20;
568
- case 18:
569
- yy.getLogger().trace("Explosion Bang");
570
- this.begin("NODE");
571
- return 20;
572
- case 19:
573
- yy.getLogger().trace("Cloud Bang");
574
- this.begin("NODE");
575
- return 20;
576
- case 20:
577
- this.begin("NODE");
578
- return 20;
579
- case 21:
580
- this.begin("NODE");
581
- return 20;
582
- case 22:
583
- this.begin("NODE");
584
- return 20;
585
- case 23:
586
- this.begin("NODE");
587
- return 20;
588
- case 24:
589
- return 13;
590
- case 25:
591
- return 23;
592
- case 26:
593
- return 11;
594
- case 27:
595
- this.begin("NSTR2");
596
- break;
597
- case 28:
598
- return "NODE_DESCR";
599
- case 29:
600
- this.popState();
601
- break;
602
- case 30:
603
- yy.getLogger().trace("Starting NSTR");
604
- this.begin("NSTR");
605
- break;
606
- case 31:
607
- yy.getLogger().trace("description:", yy_.yytext);
608
- return "NODE_DESCR";
609
- case 32:
610
- this.popState();
611
- break;
612
- case 33:
613
- this.popState();
614
- yy.getLogger().trace("node end ))");
615
- return "NODE_DEND";
616
- case 34:
617
- this.popState();
618
- yy.getLogger().trace("node end )");
619
- return "NODE_DEND";
620
- case 35:
621
- this.popState();
622
- yy.getLogger().trace("node end ...", yy_.yytext);
623
- return "NODE_DEND";
624
- case 36:
625
- this.popState();
626
- yy.getLogger().trace("node end ((");
627
- return "NODE_DEND";
628
- case 37:
629
- this.popState();
630
- yy.getLogger().trace("node end (-");
631
- return "NODE_DEND";
632
- case 38:
633
- this.popState();
634
- yy.getLogger().trace("node end (-");
635
- return "NODE_DEND";
636
- case 39:
637
- this.popState();
638
- yy.getLogger().trace("node end ((");
639
- return "NODE_DEND";
640
- case 40:
641
- this.popState();
642
- yy.getLogger().trace("node end ((");
643
- return "NODE_DEND";
644
- case 41:
645
- yy.getLogger().trace("Long description:", yy_.yytext);
646
- return 21;
647
- case 42:
648
- yy.getLogger().trace("Long description:", yy_.yytext);
649
- return 21;
650
- }
651
- }, "anonymous"),
652
- 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],
653
- conditions: { "shapeDataEndBracket": { "rules": [], "inclusive": false }, "shapeDataStr": { "rules": [2, 3], "inclusive": false }, "shapeData": { "rules": [1, 4, 5], "inclusive": false }, "CLASS": { "rules": [9, 10], "inclusive": false }, "ICON": { "rules": [14, 15], "inclusive": false }, "NSTR2": { "rules": [28, 29], "inclusive": false }, "NSTR": { "rules": [31, 32], "inclusive": false }, "NODE": { "rules": [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "inclusive": false }, "INITIAL": { "rules": [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "inclusive": true } }
654
- };
655
- return lexer2;
656
- })();
657
- parser2.lexer = lexer;
658
- function Parser() {
659
- this.yy = {};
660
- }
661
- __name(Parser, "Parser");
662
- Parser.prototype = parser2;
663
- parser2.Parser = Parser;
664
- return new Parser();
665
- })();
666
- parser.parser = parser;
667
- var kanban_default = parser;
668
- var nodes = [];
669
- var sections = [];
670
- var cnt = 0;
671
- var elements = {};
672
- var clear = /* @__PURE__ */ __name(() => {
673
- nodes = [];
674
- sections = [];
675
- cnt = 0;
676
- elements = {};
677
- }, "clear");
678
- var getSection = /* @__PURE__ */ __name((level) => {
679
- if (nodes.length === 0) {
680
- return null;
681
- }
682
- const sectionLevel = nodes[0].level;
683
- let lastSection = null;
684
- for (let i = nodes.length - 1; i >= 0; i--) {
685
- if (nodes[i].level === sectionLevel && !lastSection) {
686
- lastSection = nodes[i];
687
- }
688
- if (nodes[i].level < sectionLevel) {
689
- throw new Error('Items without section detected, found section ("' + nodes[i].label + '")');
690
- }
691
- }
692
- if (level === lastSection?.level) {
693
- return null;
694
- }
695
- return lastSection;
696
- }, "getSection");
697
- var getSections = /* @__PURE__ */ __name(function() {
698
- return sections;
699
- }, "getSections");
700
- var getData = /* @__PURE__ */ __name(function() {
701
- const edges = [];
702
- const _nodes = [];
703
- const sections2 = getSections();
704
- const conf = getConfig2();
705
- for (const section of sections2) {
706
- const node = {
707
- id: section.id,
708
- label: sanitizeText(section.label ?? "", conf),
709
- labelType: "markdown",
710
- isGroup: true,
711
- ticket: section.ticket,
712
- shape: "kanbanSection",
713
- level: section.level,
714
- look: conf.look
715
- };
716
- _nodes.push(node);
717
- const children = nodes.filter((n) => n.parentId === section.id);
718
- for (const item of children) {
719
- const childNode = {
720
- id: item.id,
721
- parentId: section.id,
722
- label: sanitizeText(item.label ?? "", conf),
723
- labelType: "markdown",
724
- isGroup: false,
725
- ticket: item?.ticket,
726
- priority: item?.priority,
727
- assigned: item?.assigned,
728
- icon: item?.icon,
729
- shape: "kanbanItem",
730
- level: item.level,
731
- rx: 5,
732
- ry: 5,
733
- cssStyles: ["text-align: left"]
734
- };
735
- _nodes.push(childNode);
736
- }
737
- }
738
- return { nodes: _nodes, edges, other: {}, config: getConfig2() };
739
- }, "getData");
740
- var addNode = /* @__PURE__ */ __name((level, id, descr, type, shapeData) => {
741
- const conf = getConfig2();
742
- let padding = conf.mindmap?.padding ?? defaultConfig_default.mindmap.padding;
743
- switch (type) {
744
- case nodeType.ROUNDED_RECT:
745
- case nodeType.RECT:
746
- case nodeType.HEXAGON:
747
- padding *= 2;
748
- }
749
- const node = {
750
- id: sanitizeText(id, conf) || "kbn" + cnt++,
751
- level,
752
- label: sanitizeText(descr, conf),
753
- width: conf.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,
754
- padding,
755
- isGroup: false
756
- };
757
- if (shapeData !== void 0) {
758
- let yamlData;
759
- if (!shapeData.includes("\n")) {
760
- yamlData = "{\n" + shapeData + "\n}";
761
- } else {
762
- yamlData = shapeData + "\n";
763
- }
764
- const doc = load(yamlData, { schema: JSON_SCHEMA });
765
- if (doc.shape && (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_"))) {
766
- throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
767
- }
768
- if (doc?.shape && doc.shape === "kanbanItem") {
769
- node.shape = doc?.shape;
770
- }
771
- if (doc?.label) {
772
- node.label = doc?.label;
773
- }
774
- if (doc?.icon) {
775
- node.icon = doc?.icon.toString();
776
- }
777
- if (doc?.assigned) {
778
- node.assigned = doc?.assigned.toString();
779
- }
780
- if (doc?.ticket) {
781
- node.ticket = doc?.ticket.toString();
782
- }
783
- if (doc?.priority) {
784
- node.priority = doc?.priority;
785
- }
786
- }
787
- const section = getSection(level);
788
- if (section) {
789
- node.parentId = section.id || "kbn" + cnt++;
790
- } else {
791
- sections.push(node);
792
- }
793
- nodes.push(node);
794
- }, "addNode");
795
- var nodeType = {
796
- DEFAULT: 0,
797
- NO_BORDER: 0,
798
- ROUNDED_RECT: 1,
799
- RECT: 2,
800
- CIRCLE: 3,
801
- CLOUD: 4,
802
- BANG: 5,
803
- HEXAGON: 6
804
- };
805
- var getType = /* @__PURE__ */ __name((startStr, endStr) => {
806
- log.debug("In get type", startStr, endStr);
807
- switch (startStr) {
808
- case "[":
809
- return nodeType.RECT;
810
- case "(":
811
- return endStr === ")" ? nodeType.ROUNDED_RECT : nodeType.CLOUD;
812
- case "((":
813
- return nodeType.CIRCLE;
814
- case ")":
815
- return nodeType.CLOUD;
816
- case "))":
817
- return nodeType.BANG;
818
- case "{{":
819
- return nodeType.HEXAGON;
820
- default:
821
- return nodeType.DEFAULT;
822
- }
823
- }, "getType");
824
- var setElementForId = /* @__PURE__ */ __name((id, element) => {
825
- elements[id] = element;
826
- }, "setElementForId");
827
- var decorateNode = /* @__PURE__ */ __name((decoration) => {
828
- if (!decoration) {
829
- return;
830
- }
831
- const config = getConfig2();
832
- const node = nodes[nodes.length - 1];
833
- if (decoration.icon) {
834
- node.icon = sanitizeText(decoration.icon, config);
835
- }
836
- if (decoration.class) {
837
- node.cssClasses = sanitizeText(decoration.class, config);
838
- }
839
- }, "decorateNode");
840
- var type2Str = /* @__PURE__ */ __name((type) => {
841
- switch (type) {
842
- case nodeType.DEFAULT:
843
- return "no-border";
844
- case nodeType.RECT:
845
- return "rect";
846
- case nodeType.ROUNDED_RECT:
847
- return "rounded-rect";
848
- case nodeType.CIRCLE:
849
- return "circle";
850
- case nodeType.CLOUD:
851
- return "cloud";
852
- case nodeType.BANG:
853
- return "bang";
854
- case nodeType.HEXAGON:
855
- return "hexgon";
856
- // cspell: disable-line
857
- default:
858
- return "no-border";
859
- }
860
- }, "type2Str");
861
- var getLogger = /* @__PURE__ */ __name(() => log, "getLogger");
862
- var getElementById = /* @__PURE__ */ __name((id) => elements[id], "getElementById");
863
- var db = {
864
- clear,
865
- addNode,
866
- getSections,
867
- getData,
868
- nodeType,
869
- getType,
870
- setElementForId,
871
- decorateNode,
872
- type2Str,
873
- getLogger,
874
- getElementById
875
- };
876
- var kanbanDb_default = db;
877
- var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
878
- log.debug("Rendering kanban diagram\n" + text);
879
- const db2 = diagObj.db;
880
- const data4Layout = db2.getData();
881
- const conf = getConfig2();
882
- conf.htmlLabels = false;
883
- const svg = selectSvgElement(id);
884
- for (const node of data4Layout.nodes) {
885
- node.domId = `${id}-${node.id}`;
886
- }
887
- const sectionsElem = svg.append("g");
888
- sectionsElem.attr("class", "sections");
889
- const nodesElem = svg.append("g");
890
- nodesElem.attr("class", "items");
891
- const sections2 = data4Layout.nodes.filter(
892
- // TODO: TypeScript 5.5 will infer this predicate automatically
893
- (node) => node.isGroup
894
- );
895
- let cnt2 = 0;
896
- const padding = 10;
897
- const sectionObjects = [];
898
- let maxLabelHeight = 25;
899
- for (const section of sections2) {
900
- const WIDTH = conf?.kanban?.sectionWidth || 200;
901
- cnt2 = cnt2 + 1;
902
- section.x = WIDTH * cnt2 + (cnt2 - 1) * padding / 2;
903
- section.width = WIDTH;
904
- section.y = 0;
905
- section.height = WIDTH * 3;
906
- section.rx = 5;
907
- section.ry = 5;
908
- section.cssClasses = section.cssClasses + " section-" + cnt2;
909
- const sectionObj = await insertCluster(sectionsElem, section);
910
- maxLabelHeight = Math.max(maxLabelHeight, sectionObj?.labelBBox?.height);
911
- sectionObjects.push(sectionObj);
912
- }
913
- let i = 0;
914
- for (const section of sections2) {
915
- const sectionObj = sectionObjects[i];
916
- i = i + 1;
917
- const WIDTH = conf?.kanban?.sectionWidth || 200;
918
- const top = -WIDTH * 3 / 2 + maxLabelHeight;
919
- let y = top;
920
- const sectionItems = data4Layout.nodes.filter((node) => node.parentId === section.id);
921
- for (const item of sectionItems) {
922
- if (item.isGroup) {
923
- throw new Error("Groups within groups are not allowed in Kanban diagrams");
924
- }
925
- item.x = section.x;
926
- item.width = WIDTH - 1.5 * padding;
927
- const nodeEl = await insertNode(nodesElem, item, { config: conf });
928
- const bbox = nodeEl.node().getBBox();
929
- item.y = y + bbox.height / 2;
930
- await positionNode(item);
931
- y = item.y + bbox.height / 2 + padding / 2;
932
- }
933
- const rect = sectionObj.cluster.select("rect");
934
- const height = Math.max(y - top + 3 * padding, 50) + (maxLabelHeight - 25);
935
- rect.attr("height", height);
936
- }
937
- setupGraphViewbox(
938
- void 0,
939
- svg,
940
- conf.mindmap?.padding ?? defaultConfig_default.kanban.padding,
941
- conf.mindmap?.useMaxWidth ?? defaultConfig_default.kanban.useMaxWidth
942
- );
943
- }, "draw");
944
- var kanbanRenderer_default = {
945
- draw
946
- };
947
- var genSections = /* @__PURE__ */ __name((options) => {
948
- let sections2 = "";
949
- for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
950
- options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
951
- if (isDark(options["lineColor" + i])) {
952
- options["lineColor" + i] = lighten(options["lineColor" + i], 20);
953
- } else {
954
- options["lineColor" + i] = darken(options["lineColor" + i], 20);
955
- }
956
- }
957
- const adjuster = /* @__PURE__ */ __name((color, level) => options.darkMode ? darken(color, level) : lighten(color, level), "adjuster");
958
- for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
959
- const sw = "" + (17 - 3 * i);
960
- sections2 += `
961
- .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
962
- fill: ${adjuster(options["cScale" + i], 10)};
963
- stroke: ${adjuster(options["cScale" + i], 10)};
964
-
965
- }
966
- .section-${i - 1} text {
967
- fill: ${options["cScaleLabel" + i]};
968
- }
969
- .node-icon-${i - 1} {
970
- font-size: 40px;
971
- color: ${options["cScaleLabel" + i]};
972
- }
973
- .section-edge-${i - 1}{
974
- stroke: ${options["cScale" + i]};
975
- }
976
- .edge-depth-${i - 1}{
977
- stroke-width: ${sw};
978
- }
979
- .section-${i - 1} line {
980
- stroke: ${options["cScaleInv" + i]} ;
981
- stroke-width: 3;
982
- }
983
-
984
- .disabled, .disabled circle, .disabled text {
985
- fill: lightgray;
986
- }
987
- .disabled text {
988
- fill: #efefef;
989
- }
990
-
991
- .node rect,
992
- .node circle,
993
- .node ellipse,
994
- .node polygon,
995
- .node path {
996
- fill: ${options.background};
997
- stroke: ${options.nodeBorder};
998
- stroke-width: 1px;
999
- }
1000
-
1001
- .kanban-ticket-link {
1002
- fill: ${options.background};
1003
- stroke: ${options.nodeBorder};
1004
- text-decoration: underline;
1005
- }
1006
- `;
1007
- }
1008
- return sections2;
1009
- }, "genSections");
1010
- var getStyles = /* @__PURE__ */ __name((options) => `
1011
- .edge {
1012
- stroke-width: 3;
1013
- }
1014
- ${genSections(options)}
1015
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
1016
- fill: ${options.git0};
1017
- }
1018
- .section-root text {
1019
- fill: ${options.gitBranchLabel0};
1020
- }
1021
- .icon-container {
1022
- height:100%;
1023
- display: flex;
1024
- justify-content: center;
1025
- align-items: center;
1026
- }
1027
- .edge {
1028
- fill: none;
1029
- }
1030
- .cluster-label, .label {
1031
- color: ${options.textColor};
1032
- fill: ${options.textColor};
1033
- }
1034
- .kanban-label {
1035
- dy: 1em;
1036
- alignment-baseline: middle;
1037
- text-anchor: middle;
1038
- dominant-baseline: middle;
1039
- text-align: center;
1040
- }
1041
- ${getIconStyles()}
1042
- `, "getStyles");
1043
- var styles_default = getStyles;
1044
- var diagram = {
1045
- db: kanbanDb_default,
1046
- renderer: kanbanRenderer_default,
1047
- parser: kanban_default,
1048
- styles: styles_default
1049
- };
1050
- export {
1051
- diagram
1052
- };