@kong-ui-public/documentation 1.4.20 → 1.4.21-pr.2722.b1aa23ae4.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 (163) hide show
  1. package/package.json +2 -2
  2. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +0 -151
  3. package/dist/_baseUniq-CsvgMmt0-CCBG5z_B.js +0 -614
  4. package/dist/arc-DYb5Ak6k-js8YHzj6.js +0 -83
  5. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +0 -5
  6. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +0 -4665
  7. package/dist/astro-Uf8_VxKJ-CZxoSljj.js +0 -16
  8. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +0 -2265
  9. package/dist/c-DASdrs7p-DASdrs7p.js +0 -6
  10. package/dist/c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js +0 -1581
  11. package/dist/channel-3QVQMCTA-BwyrTaJi.js +0 -5
  12. package/dist/chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js +0 -9
  13. package/dist/chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js +0 -15
  14. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +0 -19
  15. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +0 -1374
  16. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +0 -1382
  17. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +0 -20
  18. package/dist/chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js +0 -64
  19. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +0 -8
  20. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +0 -16
  21. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +0 -16
  22. package/dist/clone-C0dvnYv6-BozdSvey.js +0 -8
  23. package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +0 -6
  24. package/dist/css-D1aVdRIU-D1aVdRIU.js +0 -6
  25. package/dist/csv-DvCncUGQ-Tno401i9.js +0 -6
  26. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +0 -18721
  27. package/dist/dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js +0 -447
  28. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +0 -171
  29. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +0 -533
  30. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +0 -143
  31. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +0 -221
  32. package/dist/diff-XmNrvgM1-XmNrvgM1.js +0 -6
  33. package/dist/docker-DWH2onkn-DWH2onkn.js +0 -6
  34. package/dist/documentation.es.js +0 -7
  35. package/dist/documentation.umd.js +0 -2865
  36. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +0 -840
  37. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +0 -1627
  38. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +0 -2504
  39. package/dist/git-commit-BspYIY3P-VkbIfR3L.js +0 -8
  40. package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +0 -8
  41. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +0 -5
  42. package/dist/gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js +0 -712
  43. package/dist/go-BErP6iv1-BErP6iv1.js +0 -6
  44. package/dist/graph-B_1gOUDz-Dm6REFzZ.js +0 -247
  45. package/dist/graphql-DWpQF4JI-C-3VJmtp.js +0 -14
  46. package/dist/haml-CMN0hQaL-BV5BsZTy.js +0 -10
  47. package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +0 -14
  48. package/dist/haskell-CtlGos0K-CtlGos0K.js +0 -6
  49. package/dist/html-B0P_v3yU-BojM9zZg.js +0 -10
  50. package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +0 -8
  51. package/dist/http-Dcjm_K1m-1LFSbOE1.js +0 -14
  52. package/dist/index-BDD0CD9m.js +0 -37385
  53. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +0 -5
  54. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +0 -24
  55. package/dist/ini-BUcvsX-U-BUcvsX-U.js +0 -6
  56. package/dist/init-DjUOC4st-C8Nwz6AJ.js +0 -16
  57. package/dist/java-B7odJ7Ap-B7odJ7Ap.js +0 -6
  58. package/dist/javascript-fa8UlHZE-fa8UlHZE.js +0 -6
  59. package/dist/journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js +0 -834
  60. package/dist/json-71t8ZF9g-71t8ZF9g.js +0 -6
  61. package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +0 -6
  62. package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +0 -6
  63. package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +0 -6
  64. package/dist/jsx-Bkesy5tT-Bkesy5tT.js +0 -6
  65. package/dist/kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js +0 -720
  66. package/dist/katex-C0Lgw_Sx-CbX2I1cQ.js +0 -11687
  67. package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +0 -6
  68. package/dist/latex-CZXk8SiZ-DbjDPp_f.js +0 -11
  69. package/dist/layout-9vIfpCf3-FfABA43y.js +0 -1321
  70. package/dist/less-DQA4v-Nm-DQA4v-Nm.js +0 -6
  71. package/dist/linear-C-k9vokG-Md9dfBfB.js +0 -259
  72. package/dist/liquid-CvufO3kO-D90bBAdm.js +0 -14
  73. package/dist/lua-BVfhNLDr-DAa90qLN.js +0 -8
  74. package/dist/make-BjuHP00g-BjuHP00g.js +0 -6
  75. package/dist/markdown-B6guhLWd-B6guhLWd.js +0 -6
  76. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +0 -4
  77. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +0 -4
  78. package/dist/mdc-Bq810vct-Dr8CpN8f.js +0 -12
  79. package/dist/mdx-DIoECIFU-DIoECIFU.js +0 -6
  80. package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +0 -6
  81. package/dist/mermaid-parser.core-DHL9WXVx-DeKF3RZx.js +0 -12890
  82. package/dist/mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js +0 -3231
  83. package/dist/nginx-Can2eAjw-DKMoypYC.js +0 -8
  84. package/dist/objective-c-BGg9R27G-BGg9R27G.js +0 -6
  85. package/dist/ordinal-DfAQgscy-BEJTu10r.js +0 -61
  86. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +0 -5
  87. package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +0 -6
  88. package/dist/perl-DaMQyPwp-Cxx4wmV7.js +0 -16
  89. package/dist/php-BL3EfPBi-BZu5YwDX.js +0 -18
  90. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +0 -5
  91. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +0 -161
  92. package/dist/plsql-oVq_K_wH-oVq_K_wH.js +0 -6
  93. package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +0 -6
  94. package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +0 -6
  95. package/dist/proto-o9HLmF90-o9HLmF90.js +0 -6
  96. package/dist/pug-HKe4Luo3-BYb0El_4.js +0 -12
  97. package/dist/python-xYxLFJY--xYxLFJY-.js +0 -6
  98. package/dist/quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js +0 -1024
  99. package/dist/r-F-9I-ITZ-F-9I-ITZ.js +0 -6
  100. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +0 -5
  101. package/dist/reg-CMUdAgIP-CMUdAgIP.js +0 -6
  102. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +0 -850
  103. package/dist/rst-B8JEEtLI-Dyxh6LOj.js +0 -22
  104. package/dist/ruby-FDlfLkNa-nf7VLvCK.js +0 -50
  105. package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +0 -6
  106. package/dist/sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js +0 -810
  107. package/dist/sass-iCyS6eP9-iCyS6eP9.js +0 -6
  108. package/dist/scss-DhHc4lxB-D1lMETuy.js +0 -8
  109. package/dist/sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js +0 -2283
  110. package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +0 -6
  111. package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +0 -8
  112. package/dist/splunk-CTqDjQdo-CTqDjQdo.js +0 -6
  113. package/dist/sql-DCkt643--DCkt643-.js +0 -6
  114. package/dist/ssh-config-DHHGll-v-DHHGll-v.js +0 -6
  115. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +0 -263
  116. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +0 -16
  117. package/dist/style.css +0 -1
  118. package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +0 -6
  119. package/dist/svelte-01qw6Rxm-Cjp5Srko.js +0 -14
  120. package/dist/swift-BAWqNR8A-BAWqNR8A.js +0 -6
  121. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +0 -799
  122. package/dist/toml-CQSfOn0e-CQSfOn0e.js +0 -6
  123. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +0 -5
  124. package/dist/tsx-DiGsgWT8-DiGsgWT8.js +0 -6
  125. package/dist/twig-DxrNSc26-BIWbKTFO.js +0 -18
  126. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -34
  127. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  128. package/dist/types/components/DocumentationContent.vue.d.ts +0 -174
  129. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  130. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -93
  131. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  132. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -30
  133. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  134. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -71
  135. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  136. package/dist/types/composables/index.d.ts +0 -6
  137. package/dist/types/composables/index.d.ts.map +0 -1
  138. package/dist/types/composables/useI18n.d.ts +0 -9
  139. package/dist/types/composables/useI18n.d.ts.map +0 -1
  140. package/dist/types/external-links.d.ts +0 -5
  141. package/dist/types/external-links.d.ts.map +0 -1
  142. package/dist/types/helpers.d.ts +0 -8
  143. package/dist/types/helpers.d.ts.map +0 -1
  144. package/dist/types/index.d.ts +0 -7
  145. package/dist/types/index.d.ts.map +0 -1
  146. package/dist/types/types/document-list.d.ts +0 -28
  147. package/dist/types/types/document-list.d.ts.map +0 -1
  148. package/dist/types/types/document-modal.d.ts +0 -8
  149. package/dist/types/types/document-modal.d.ts.map +0 -1
  150. package/dist/types/types/index.d.ts +0 -3
  151. package/dist/types/types/index.d.ts.map +0 -1
  152. package/dist/typescript-buWNZFwO-buWNZFwO.js +0 -6
  153. package/dist/v-wa8Orrdd-wa8Orrdd.js +0 -6
  154. package/dist/vb-E2_-jk4M-E2_-jk4M.js +0 -6
  155. package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +0 -6
  156. package/dist/vue-DdqTpW8B-BrYVXV7A.js +0 -31
  157. package/dist/vue-html-B9t4RWro-D1UeMTSX.js +0 -10
  158. package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +0 -6
  159. package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +0 -6
  160. package/dist/xml-ChBsf5uy-0Ovnixsj.js +0 -8
  161. package/dist/xsl-BefjlXrd-CZ7IlB9K.js +0 -8
  162. package/dist/xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js +0 -1340
  163. package/dist/yaml-Bbg74JKr-Bbg74JKr.js +0 -6
@@ -1,720 +0,0 @@
1
- import { l as pe } from "./chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js";
2
- import { _ as a, l as ee, g as F, aU as ye, f as fe, i as me, p as be, bm as _e, aC as K, ad as M, ap as Ee, aq as Se, bn as ke, bo as ae, bp as le } from "./index-BDD0CD9m.js";
3
- var Y = function() {
4
- var i = /* @__PURE__ */ a(function(k, e, n, r) {
5
- for (n = n || {}, r = k.length; r--; n[k[r]] = e) ;
6
- return n;
7
- }, "o"), u = [1, 4], d = [1, 13], s = [1, 12], g = [1, 15], D = [1, 16], S = [1, 20], h = [1, 19], v = [6, 7, 8], b = [1, 26], _ = [1, 24], C = [1, 25], o = [6, 7, 11], j = [1, 31], w = [6, 7, 11, 24], $ = [1, 6, 13, 16, 17, 20, 23], T = [1, 35], H = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], U = [1, 38], y = {
8
- trace: /* @__PURE__ */ a(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__ */ a(function(k, e, n, r, c, t, m) {
15
- var l = t.length - 1;
16
- switch (c) {
17
- case 6:
18
- case 7:
19
- return r;
20
- case 8:
21
- r.getLogger().trace("Stop NL ");
22
- break;
23
- case 9:
24
- r.getLogger().trace("Stop EOF ");
25
- break;
26
- case 11:
27
- r.getLogger().trace("Stop NL2 ");
28
- break;
29
- case 12:
30
- r.getLogger().trace("Stop EOF2 ");
31
- break;
32
- case 15:
33
- r.getLogger().info("Node: ", t[l - 1].id), r.addNode(t[l - 2].length, t[l - 1].id, t[l - 1].descr, t[l - 1].type, t[l]);
34
- break;
35
- case 16:
36
- r.getLogger().info("Node: ", t[l].id), r.addNode(t[l - 1].length, t[l].id, t[l].descr, t[l].type);
37
- break;
38
- case 17:
39
- r.getLogger().trace("Icon: ", t[l]), r.decorateNode({ icon: t[l] });
40
- break;
41
- case 18:
42
- case 23:
43
- r.decorateNode({ class: t[l] });
44
- break;
45
- case 19:
46
- r.getLogger().trace("SPACELIST");
47
- break;
48
- case 20:
49
- r.getLogger().trace("Node: ", t[l - 1].id), r.addNode(0, t[l - 1].id, t[l - 1].descr, t[l - 1].type, t[l]);
50
- break;
51
- case 21:
52
- r.getLogger().trace("Node: ", t[l].id), r.addNode(0, t[l].id, t[l].descr, t[l].type);
53
- break;
54
- case 22:
55
- r.decorateNode({ icon: t[l] });
56
- break;
57
- case 27:
58
- r.getLogger().trace("node found ..", t[l - 2]), this.$ = { id: t[l - 1], descr: t[l - 1], type: r.getType(t[l - 2], t[l]) };
59
- break;
60
- case 28:
61
- this.$ = { id: t[l], descr: t[l], type: 0 };
62
- break;
63
- case 29:
64
- r.getLogger().trace("node found ..", t[l - 3]), this.$ = { id: t[l - 3], descr: t[l - 1], type: r.getType(t[l - 2], t[l]) };
65
- break;
66
- case 30:
67
- this.$ = t[l - 1] + t[l];
68
- break;
69
- case 31:
70
- this.$ = t[l];
71
- break;
72
- }
73
- }, "anonymous"),
74
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: u }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: u }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(v, [2, 3]), { 1: [2, 2] }, i(v, [2, 4]), i(v, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: d, 9: 22, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: b, 7: _, 10: 23, 11: C }, i(o, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: S, 23: h }), i(o, [2, 19]), i(o, [2, 21], { 15: 30, 24: j }), i(o, [2, 22]), i(o, [2, 23]), i(w, [2, 25]), i(w, [2, 26]), i(w, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: b, 7: _, 10: 34, 11: C }, { 1: [2, 7], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i($, [2, 14], { 7: T, 11: H }), i(A, [2, 8]), i(A, [2, 9]), i(A, [2, 10]), i(o, [2, 16], { 15: 37, 24: j }), i(o, [2, 17]), i(o, [2, 18]), i(o, [2, 20], { 24: U }), i(w, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, i($, [2, 13], { 7: T, 11: H }), i(A, [2, 11]), i(A, [2, 12]), i(o, [2, 15], { 24: U }), i(w, [2, 30]), { 22: [1, 41] }, i(w, [2, 27]), i(w, [2, 29])],
75
- defaultActions: { 2: [2, 1], 6: [2, 2] },
76
- parseError: /* @__PURE__ */ a(function(k, e) {
77
- if (e.recoverable)
78
- this.trace(k);
79
- else {
80
- var n = new Error(k);
81
- throw n.hash = e, n;
82
- }
83
- }, "parseError"),
84
- parse: /* @__PURE__ */ a(function(k) {
85
- var e = this, n = [0], r = [], c = [null], t = [], m = this.table, l = "", W = 0, ne = 0, he = 2, se = 1, ue = t.slice.call(arguments, 1), f = Object.create(this.lexer), P = { yy: {} };
86
- for (var q in this.yy)
87
- Object.prototype.hasOwnProperty.call(this.yy, q) && (P.yy[q] = this.yy[q]);
88
- f.setInput(k, P.yy), P.yy.lexer = f, P.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
89
- var X = f.yylloc;
90
- t.push(X);
91
- var ge = f.options && f.options.ranges;
92
- typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
93
- function de(N) {
94
- n.length = n.length - 2 * N, c.length = c.length - N, t.length = t.length - N;
95
- }
96
- a(de, "popStack");
97
- function re() {
98
- var N;
99
- return N = r.pop() || f.lex() || se, typeof N != "number" && (N instanceof Array && (r = N, N = r.pop()), N = e.symbols_[N] || N), N;
100
- }
101
- a(re, "lex");
102
- for (var E, B, x, J, G = {}, z, I, oe, V; ; ) {
103
- if (B = n[n.length - 1], this.defaultActions[B] ? x = this.defaultActions[B] : ((E === null || typeof E > "u") && (E = re()), x = m[B] && m[B][E]), typeof x > "u" || !x.length || !x[0]) {
104
- var Q = "";
105
- V = [];
106
- for (z in m[B])
107
- this.terminals_[z] && z > he && V.push("'" + this.terminals_[z] + "'");
108
- f.showPosition ? Q = "Parse error on line " + (W + 1) + `:
109
- ` + f.showPosition() + `
110
- Expecting ` + V.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "Parse error on line " + (W + 1) + ": Unexpected " + (E == se ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Q, {
111
- text: f.match,
112
- token: this.terminals_[E] || E,
113
- line: f.yylineno,
114
- loc: X,
115
- expected: V
116
- });
117
- }
118
- if (x[0] instanceof Array && x.length > 1)
119
- throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + E);
120
- switch (x[0]) {
121
- case 1:
122
- n.push(E), c.push(f.yytext), t.push(f.yylloc), n.push(x[1]), E = null, ne = f.yyleng, l = f.yytext, W = f.yylineno, X = f.yylloc;
123
- break;
124
- case 2:
125
- if (I = this.productions_[x[1]][1], G.$ = c[c.length - I], G._$ = {
126
- first_line: t[t.length - (I || 1)].first_line,
127
- last_line: t[t.length - 1].last_line,
128
- first_column: t[t.length - (I || 1)].first_column,
129
- last_column: t[t.length - 1].last_column
130
- }, ge && (G._$.range = [
131
- t[t.length - (I || 1)].range[0],
132
- t[t.length - 1].range[1]
133
- ]), J = this.performAction.apply(G, [
134
- l,
135
- ne,
136
- W,
137
- P.yy,
138
- x[1],
139
- c,
140
- t
141
- ].concat(ue)), typeof J < "u")
142
- return J;
143
- I && (n = n.slice(0, -1 * I * 2), c = c.slice(0, -1 * I), t = t.slice(0, -1 * I)), n.push(this.productions_[x[1]][0]), c.push(G.$), t.push(G._$), oe = m[n[n.length - 2]][n[n.length - 1]], n.push(oe);
144
- break;
145
- case 3:
146
- return !0;
147
- }
148
- }
149
- return !0;
150
- }, "parse")
151
- }, R = /* @__PURE__ */ function() {
152
- var k = {
153
- EOF: 1,
154
- parseError: /* @__PURE__ */ a(function(e, n) {
155
- if (this.yy.parser)
156
- this.yy.parser.parseError(e, n);
157
- else
158
- throw new Error(e);
159
- }, "parseError"),
160
- // resets the lexer, sets new input
161
- setInput: /* @__PURE__ */ a(function(e, n) {
162
- return this.yy = n || this.yy || {}, this._input = e, 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__ */ a(function() {
171
- var e = this._input[0];
172
- this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e;
173
- var n = e.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), e;
175
- }, "input"),
176
- // unshifts one char (or a string) into the input
177
- unput: /* @__PURE__ */ a(function(e) {
178
- var n = e.length, r = e.split(/(?:\r\n?|\n)/g);
179
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
180
- var c = 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), r.length - 1 && (this.yylineno -= r.length - 1);
182
- var t = 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: r ? (r.length === c.length ? this.yylloc.first_column : 0) + c[c.length - r.length].length - r[0].length : this.yylloc.first_column - n
188
- }, this.options.ranges && (this.yylloc.range = [t[0], t[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__ */ a(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__ */ a(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__ */ a(function(e) {
209
- this.unput(this.match.slice(e));
210
- }, "less"),
211
- // displays already matched input, i.e. for error messages
212
- pastInput: /* @__PURE__ */ a(function() {
213
- var e = this.matched.substr(0, this.matched.length - this.match.length);
214
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
215
- }, "pastInput"),
216
- // displays upcoming input, i.e. for error messages
217
- upcomingInput: /* @__PURE__ */ a(function() {
218
- var e = this.match;
219
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.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__ */ a(function() {
223
- var e = this.pastInput(), n = new Array(e.length + 1).join("-");
224
- return e + this.upcomingInput() + `
225
- ` + n + "^";
226
- }, "showPosition"),
227
- // test the lexed token: return FALSE when not a match, otherwise return token
228
- test_match: /* @__PURE__ */ a(function(e, n) {
229
- var r, c, t;
230
- if (this.options.backtrack_lexer && (t = {
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 && (t.yylloc.range = this.yylloc.range.slice(0))), c = e[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.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: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
254
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
255
- return r;
256
- if (this._backtrack) {
257
- for (var m in t)
258
- this[m] = t[m];
259
- return !1;
260
- }
261
- return !1;
262
- }, "test_match"),
263
- // return next match in input
264
- next: /* @__PURE__ */ a(function() {
265
- if (this.done)
266
- return this.EOF;
267
- this._input || (this.done = !0);
268
- var e, n, r, c;
269
- this._more || (this.yytext = "", this.match = "");
270
- for (var t = this._currentRules(), m = 0; m < t.length; m++)
271
- if (r = this._input.match(this.rules[t[m]]), r && (!n || r[0].length > n[0].length)) {
272
- if (n = r, c = m, this.options.backtrack_lexer) {
273
- if (e = this.test_match(r, t[m]), e !== !1)
274
- return e;
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 ? (e = this.test_match(n, t[c]), e !== !1 ? e : !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__ */ a(function() {
292
- var e = this.next();
293
- return e || this.lex();
294
- }, "lex"),
295
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
296
- begin: /* @__PURE__ */ a(function(e) {
297
- this.conditionStack.push(e);
298
- }, "begin"),
299
- // pop the previously active lexer condition state off the condition stack
300
- popState: /* @__PURE__ */ a(function() {
301
- var e = this.conditionStack.length - 1;
302
- return e > 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__ */ a(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__ */ a(function(e) {
310
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
311
- }, "topState"),
312
- // alias for begin(condition)
313
- pushState: /* @__PURE__ */ a(function(e) {
314
- this.begin(e);
315
- }, "pushState"),
316
- // return the number of states currently on the stack
317
- stateStackSize: /* @__PURE__ */ a(function() {
318
- return this.conditionStack.length;
319
- }, "stateStackSize"),
320
- options: { "case-insensitive": !0 },
321
- performAction: /* @__PURE__ */ a(function(e, n, r, c) {
322
- switch (r) {
323
- case 0:
324
- return this.pushState("shapeData"), n.yytext = "", 24;
325
- case 1:
326
- return this.pushState("shapeDataStr"), 24;
327
- case 2:
328
- return this.popState(), 24;
329
- case 3:
330
- const t = /\n\s*/g;
331
- return n.yytext = n.yytext.replace(t, "<br/>"), 24;
332
- case 4:
333
- return 24;
334
- case 5:
335
- this.popState();
336
- break;
337
- case 6:
338
- return e.getLogger().trace("Found comment", n.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
- e.getLogger().trace("Begin icon"), this.begin("ICON");
351
- break;
352
- case 12:
353
- return e.getLogger().trace("SPACELINE"), 6;
354
- case 13:
355
- return 7;
356
- case 14:
357
- return 16;
358
- case 15:
359
- e.getLogger().trace("end icon"), this.popState();
360
- break;
361
- case 16:
362
- return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
363
- case 17:
364
- return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
365
- case 18:
366
- return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
367
- case 19:
368
- return e.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
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
393
- break;
394
- case 31:
395
- return e.getLogger().trace("description:", n.yytext), "NODE_DESCR";
396
- case 32:
397
- this.popState();
398
- break;
399
- case 33:
400
- return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
401
- case 34:
402
- return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
403
- case 35:
404
- return this.popState(), e.getLogger().trace("node end ...", n.yytext), "NODE_DEND";
405
- case 36:
406
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
407
- case 37:
408
- return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
409
- case 38:
410
- return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
411
- case 39:
412
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
413
- case 40:
414
- return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
415
- case 41:
416
- return e.getLogger().trace("Long description:", n.yytext), 21;
417
- case 42:
418
- return e.getLogger().trace("Long description:", n.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 k;
425
- }();
426
- y.lexer = R;
427
- function O() {
428
- this.yy = {};
429
- }
430
- return a(O, "Parser"), O.prototype = y, y.Parser = O, new O();
431
- }();
432
- Y.parser = Y;
433
- var Ne = Y, L = [], te = [], Z = 0, ie = {}, De = /* @__PURE__ */ a(() => {
434
- L = [], te = [], Z = 0, ie = {};
435
- }, "clear"), xe = /* @__PURE__ */ a((i) => {
436
- if (L.length === 0)
437
- return null;
438
- const u = L[0].level;
439
- let d = null;
440
- for (let s = L.length - 1; s >= 0; s--)
441
- if (L[s].level === u && !d && (d = L[s]), L[s].level < u)
442
- throw new Error('Items without section detected, found section ("' + L[s].label + '")');
443
- return i === (d == null ? void 0 : d.level) ? null : d;
444
- }, "getSection"), ce = /* @__PURE__ */ a(function() {
445
- return te;
446
- }, "getSections"), Le = /* @__PURE__ */ a(function() {
447
- const i = [], u = [], d = ce(), s = F();
448
- for (const g of d) {
449
- const D = {
450
- id: g.id,
451
- label: M(g.label ?? "", s),
452
- isGroup: !0,
453
- ticket: g.ticket,
454
- shape: "kanbanSection",
455
- level: g.level,
456
- look: s.look
457
- };
458
- u.push(D);
459
- const S = L.filter((h) => h.parentId === g.id);
460
- for (const h of S) {
461
- const v = {
462
- id: h.id,
463
- parentId: g.id,
464
- label: M(h.label ?? "", s),
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
- u.push(v);
477
- }
478
- }
479
- return { nodes: u, edges: i, other: {}, config: F() };
480
- }, "getData"), ve = /* @__PURE__ */ a((i, u, d, s, g) => {
481
- var D, S;
482
- const h = F();
483
- let v = ((D = h.mindmap) == null ? void 0 : D.padding) ?? K.mindmap.padding;
484
- switch (s) {
485
- case p.ROUNDED_RECT:
486
- case p.RECT:
487
- case p.HEXAGON:
488
- v *= 2;
489
- }
490
- const b = {
491
- id: M(u, h) || "kbn" + Z++,
492
- level: i,
493
- label: M(d, h),
494
- width: ((S = h.mindmap) == null ? void 0 : S.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
495
- padding: v,
496
- isGroup: !1
497
- };
498
- if (g !== void 0) {
499
- let C;
500
- g.includes(`
501
- `) ? C = g + `
502
- ` : C = `{
503
- ` + g + `
504
- }`;
505
- const o = Ee(C, { schema: Se });
506
- if (o.shape && (o.shape !== o.shape.toLowerCase() || o.shape.includes("_")))
507
- throw new Error(`No such shape: ${o.shape}. Shape names should be lowercase.`);
508
- o != null && o.shape && o.shape === "kanbanItem" && (b.shape = o == null ? void 0 : o.shape), o != null && o.label && (b.label = o == null ? void 0 : o.label), o != null && o.icon && (b.icon = o == null ? void 0 : o.icon.toString()), o != null && o.assigned && (b.assigned = o == null ? void 0 : o.assigned.toString()), o != null && o.ticket && (b.ticket = o == null ? void 0 : o.ticket.toString()), o != null && o.priority && (b.priority = o == null ? void 0 : o.priority);
509
- }
510
- const _ = xe(i);
511
- _ ? b.parentId = _.id || "kbn" + Z++ : te.push(b), L.push(b);
512
- }, "addNode"), p = {
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
- }, Oe = /* @__PURE__ */ a((i, u) => {
522
- switch (ee.debug("In get type", i, u), i) {
523
- case "[":
524
- return p.RECT;
525
- case "(":
526
- return u === ")" ? p.ROUNDED_RECT : p.CLOUD;
527
- case "((":
528
- return p.CIRCLE;
529
- case ")":
530
- return p.CLOUD;
531
- case "))":
532
- return p.BANG;
533
- case "{{":
534
- return p.HEXAGON;
535
- default:
536
- return p.DEFAULT;
537
- }
538
- }, "getType"), Ce = /* @__PURE__ */ a((i, u) => {
539
- ie[i] = u;
540
- }, "setElementForId"), we = /* @__PURE__ */ a((i) => {
541
- if (!i)
542
- return;
543
- const u = F(), d = L[L.length - 1];
544
- i.icon && (d.icon = M(i.icon, u)), i.class && (d.cssClasses = M(i.class, u));
545
- }, "decorateNode"), Ae = /* @__PURE__ */ a((i) => {
546
- switch (i) {
547
- case p.DEFAULT:
548
- return "no-border";
549
- case p.RECT:
550
- return "rect";
551
- case p.ROUNDED_RECT:
552
- return "rounded-rect";
553
- case p.CIRCLE:
554
- return "circle";
555
- case p.CLOUD:
556
- return "cloud";
557
- case p.BANG:
558
- return "bang";
559
- case p.HEXAGON:
560
- return "hexgon";
561
- default:
562
- return "no-border";
563
- }
564
- }, "type2Str"), Ie = /* @__PURE__ */ a(() => ee, "getLogger"), $e = /* @__PURE__ */ a((i) => ie[i], "getElementById"), Te = {
565
- clear: De,
566
- addNode: ve,
567
- getSections: ce,
568
- getData: Le,
569
- nodeType: p,
570
- getType: Oe,
571
- setElementForId: Ce,
572
- decorateNode: we,
573
- type2Str: Ae,
574
- getLogger: Ie,
575
- getElementById: $e
576
- }, Re = Te, Pe = /* @__PURE__ */ a(async (i, u, d, s) => {
577
- var g, D, S, h, v;
578
- ee.debug(`Rendering kanban diagram
579
- ` + i);
580
- const b = s.db.getData(), _ = F();
581
- _.htmlLabels = !1;
582
- const C = ye(u), o = C.append("g");
583
- o.attr("class", "sections");
584
- const j = C.append("g");
585
- j.attr("class", "items");
586
- const w = b.nodes.filter(
587
- // TODO: TypeScript 5.5 will infer this predicate automatically
588
- (y) => y.isGroup
589
- );
590
- let $ = 0;
591
- const T = 10, H = [];
592
- let A = 25;
593
- for (const y of w) {
594
- const R = ((g = _ == null ? void 0 : _.kanban) == null ? void 0 : g.sectionWidth) || 200;
595
- $ = $ + 1, y.x = R * $ + ($ - 1) * T / 2, y.width = R, y.y = 0, y.height = R * 3, y.rx = 5, y.ry = 5, y.cssClasses = y.cssClasses + " section-" + $;
596
- const O = await fe(o, y);
597
- A = Math.max(A, (D = O == null ? void 0 : O.labelBBox) == null ? void 0 : D.height), H.push(O);
598
- }
599
- let U = 0;
600
- for (const y of w) {
601
- const R = H[U];
602
- U = U + 1;
603
- const O = ((S = _ == null ? void 0 : _.kanban) == null ? void 0 : S.sectionWidth) || 200, k = -O * 3 / 2 + A;
604
- let e = k;
605
- const n = b.nodes.filter((t) => t.parentId === y.id);
606
- for (const t of n) {
607
- if (t.isGroup)
608
- throw new Error("Groups within groups are not allowed in Kanban diagrams");
609
- t.x = y.x, t.width = O - 1.5 * T;
610
- const m = (await me(j, t, { config: _ })).node().getBBox();
611
- t.y = e + m.height / 2, await be(t), e = t.y + m.height / 2 + T / 2;
612
- }
613
- const r = R.cluster.select("rect"), c = Math.max(e - k + 3 * T, 50) + (A - 25);
614
- r.attr("height", c);
615
- }
616
- _e(
617
- void 0,
618
- C,
619
- ((h = _.mindmap) == null ? void 0 : h.padding) ?? K.kanban.padding,
620
- ((v = _.mindmap) == null ? void 0 : v.useMaxWidth) ?? K.kanban.useMaxWidth
621
- );
622
- }, "draw"), Be = {
623
- draw: Pe
624
- }, Ue = /* @__PURE__ */ a((i) => {
625
- let u = "";
626
- for (let s = 0; s < i.THEME_COLOR_LIMIT; s++)
627
- i["lineColor" + s] = i["lineColor" + s] || i["cScaleInv" + s], ke(i["lineColor" + s]) ? i["lineColor" + s] = ae(i["lineColor" + s], 20) : i["lineColor" + s] = le(i["lineColor" + s], 20);
628
- const d = /* @__PURE__ */ a((s, g) => i.darkMode ? le(s, g) : ae(s, g), "adjuster");
629
- for (let s = 0; s < i.THEME_COLOR_LIMIT; s++) {
630
- const g = "" + (17 - 3 * s);
631
- u += `
632
- .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
633
- fill: ${d(i["cScale" + s], 10)};
634
- stroke: ${d(i["cScale" + s], 10)};
635
-
636
- }
637
- .section-${s - 1} text {
638
- fill: ${i["cScaleLabel" + s]};
639
- }
640
- .node-icon-${s - 1} {
641
- font-size: 40px;
642
- color: ${i["cScaleLabel" + s]};
643
- }
644
- .section-edge-${s - 1}{
645
- stroke: ${i["cScale" + s]};
646
- }
647
- .edge-depth-${s - 1}{
648
- stroke-width: ${g};
649
- }
650
- .section-${s - 1} line {
651
- stroke: ${i["cScaleInv" + s]} ;
652
- stroke-width: 3;
653
- }
654
-
655
- .disabled, .disabled circle, .disabled text {
656
- fill: lightgray;
657
- }
658
- .disabled text {
659
- fill: #efefef;
660
- }
661
-
662
- .node rect,
663
- .node circle,
664
- .node ellipse,
665
- .node polygon,
666
- .node path {
667
- fill: ${i.background};
668
- stroke: ${i.nodeBorder};
669
- stroke-width: 1px;
670
- }
671
-
672
- .kanban-ticket-link {
673
- fill: ${i.background};
674
- stroke: ${i.nodeBorder};
675
- text-decoration: underline;
676
- }
677
- `;
678
- }
679
- return u;
680
- }, "genSections"), Ge = /* @__PURE__ */ a((i) => `
681
- .edge {
682
- stroke-width: 3;
683
- }
684
- ${Ue(i)}
685
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
686
- fill: ${i.git0};
687
- }
688
- .section-root text {
689
- fill: ${i.gitBranchLabel0};
690
- }
691
- .icon-container {
692
- height:100%;
693
- display: flex;
694
- justify-content: center;
695
- align-items: center;
696
- }
697
- .edge {
698
- fill: none;
699
- }
700
- .cluster-label, .label {
701
- color: ${i.textColor};
702
- fill: ${i.textColor};
703
- }
704
- .kanban-label {
705
- dy: 1em;
706
- alignment-baseline: middle;
707
- text-anchor: middle;
708
- dominant-baseline: middle;
709
- text-align: center;
710
- }
711
- ${pe()}
712
- `, "getStyles"), Me = Ge, Fe = {
713
- db: Re,
714
- renderer: Be,
715
- parser: Ne,
716
- styles: Me
717
- };
718
- export {
719
- Fe as diagram
720
- };