@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.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 (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,1029 +0,0 @@
1
- import { a as r, m as J, c as M, a2 as yt, bn as ft, bo as mt, bp as bt, bk as _t, L as X, Q as T, o as Et, E as kt, bh as Nt, bi as at, bj as lt } from "./index-BaAWoj3P.js";
2
- import { t as St } from "./chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js";
3
- var V = (function() {
4
- var e = /* @__PURE__ */ r(function(t, l, a, s) {
5
- for (a ||= {}, s = t.length; s--; a[t[s]] = l) ;
6
- return a;
7
- }, "o"), u = [1, 4], y = [1, 13], n = [1, 12], g = [1, 15], m = [1, 16], E = [1, 20], c = [1, 19], D = [
8
- 6,
9
- 7,
10
- 8
11
- ], I = [1, 26], h = [1, 24], P = [1, 25], _ = [
12
- 6,
13
- 7,
14
- 11
15
- ], B = [1, 31], d = [
16
- 6,
17
- 7,
18
- 11,
19
- 24
20
- ], v = [
21
- 1,
22
- 6,
23
- 13,
24
- 16,
25
- 17,
26
- 20,
27
- 23
28
- ], C = [1, 35], F = [1, 36], L = [
29
- 1,
30
- 6,
31
- 7,
32
- 11,
33
- 13,
34
- 16,
35
- 17,
36
- 20,
37
- 23
38
- ], j = [1, 38], G = {
39
- trace: /* @__PURE__ */ r(function() {
40
- }, "trace"),
41
- yy: {},
42
- symbols_: {
43
- error: 2,
44
- start: 3,
45
- mindMap: 4,
46
- spaceLines: 5,
47
- SPACELINE: 6,
48
- NL: 7,
49
- KANBAN: 8,
50
- document: 9,
51
- stop: 10,
52
- EOF: 11,
53
- statement: 12,
54
- SPACELIST: 13,
55
- node: 14,
56
- shapeData: 15,
57
- ICON: 16,
58
- CLASS: 17,
59
- nodeWithId: 18,
60
- nodeWithoutId: 19,
61
- NODE_DSTART: 20,
62
- NODE_DESCR: 21,
63
- NODE_DEND: 22,
64
- NODE_ID: 23,
65
- SHAPE_DATA: 24,
66
- $accept: 0,
67
- $end: 1
68
- },
69
- terminals_: {
70
- 2: "error",
71
- 6: "SPACELINE",
72
- 7: "NL",
73
- 8: "KANBAN",
74
- 11: "EOF",
75
- 13: "SPACELIST",
76
- 16: "ICON",
77
- 17: "CLASS",
78
- 20: "NODE_DSTART",
79
- 21: "NODE_DESCR",
80
- 22: "NODE_DEND",
81
- 23: "NODE_ID",
82
- 24: "SHAPE_DATA"
83
- },
84
- productions_: [
85
- 0,
86
- [3, 1],
87
- [3, 2],
88
- [5, 1],
89
- [5, 2],
90
- [5, 2],
91
- [4, 2],
92
- [4, 3],
93
- [10, 1],
94
- [10, 1],
95
- [10, 1],
96
- [10, 2],
97
- [10, 2],
98
- [9, 3],
99
- [9, 2],
100
- [12, 3],
101
- [12, 2],
102
- [12, 2],
103
- [12, 2],
104
- [12, 1],
105
- [12, 2],
106
- [12, 1],
107
- [12, 1],
108
- [12, 1],
109
- [12, 1],
110
- [14, 1],
111
- [14, 1],
112
- [19, 3],
113
- [18, 1],
114
- [18, 4],
115
- [15, 2],
116
- [15, 1]
117
- ],
118
- performAction: /* @__PURE__ */ r(function(t, l, a, s, p, i, U) {
119
- var o = i.length - 1;
120
- switch (p) {
121
- case 6:
122
- case 7:
123
- return s;
124
- case 8:
125
- s.getLogger().trace("Stop NL ");
126
- break;
127
- case 9:
128
- s.getLogger().trace("Stop EOF ");
129
- break;
130
- case 11:
131
- s.getLogger().trace("Stop NL2 ");
132
- break;
133
- case 12:
134
- s.getLogger().trace("Stop EOF2 ");
135
- break;
136
- case 15:
137
- s.getLogger().info("Node: ", i[o - 1].id), s.addNode(i[o - 2].length, i[o - 1].id, i[o - 1].descr, i[o - 1].type, i[o]);
138
- break;
139
- case 16:
140
- s.getLogger().info("Node: ", i[o].id), s.addNode(i[o - 1].length, i[o].id, i[o].descr, i[o].type);
141
- break;
142
- case 17:
143
- s.getLogger().trace("Icon: ", i[o]), s.decorateNode({ icon: i[o] });
144
- break;
145
- case 18:
146
- case 23:
147
- s.decorateNode({ class: i[o] });
148
- break;
149
- case 19:
150
- s.getLogger().trace("SPACELIST");
151
- break;
152
- case 20:
153
- s.getLogger().trace("Node: ", i[o - 1].id), s.addNode(0, i[o - 1].id, i[o - 1].descr, i[o - 1].type, i[o]);
154
- break;
155
- case 21:
156
- s.getLogger().trace("Node: ", i[o].id), s.addNode(0, i[o].id, i[o].descr, i[o].type);
157
- break;
158
- case 22:
159
- s.decorateNode({ icon: i[o] });
160
- break;
161
- case 27:
162
- s.getLogger().trace("node found ..", i[o - 2]), this.$ = {
163
- id: i[o - 1],
164
- descr: i[o - 1],
165
- type: s.getType(i[o - 2], i[o])
166
- };
167
- break;
168
- case 28:
169
- this.$ = {
170
- id: i[o],
171
- descr: i[o],
172
- type: 0
173
- };
174
- break;
175
- case 29:
176
- s.getLogger().trace("node found ..", i[o - 3]), this.$ = {
177
- id: i[o - 3],
178
- descr: i[o - 1],
179
- type: s.getType(i[o - 2], i[o])
180
- };
181
- break;
182
- case 30:
183
- this.$ = i[o - 1] + i[o];
184
- break;
185
- case 31:
186
- this.$ = i[o];
187
- }
188
- }, "anonymous"),
189
- table: [
190
- {
191
- 3: 1,
192
- 4: 2,
193
- 5: 3,
194
- 6: [1, 5],
195
- 8: u
196
- },
197
- { 1: [3] },
198
- { 1: [2, 1] },
199
- {
200
- 4: 6,
201
- 6: [1, 7],
202
- 7: [1, 8],
203
- 8: u
204
- },
205
- {
206
- 6: y,
207
- 7: [1, 10],
208
- 9: 9,
209
- 12: 11,
210
- 13: n,
211
- 14: 14,
212
- 16: g,
213
- 17: m,
214
- 18: 17,
215
- 19: 18,
216
- 20: E,
217
- 23: c
218
- },
219
- e(D, [2, 3]),
220
- { 1: [2, 2] },
221
- e(D, [2, 4]),
222
- e(D, [2, 5]),
223
- {
224
- 1: [2, 6],
225
- 6: y,
226
- 12: 21,
227
- 13: n,
228
- 14: 14,
229
- 16: g,
230
- 17: m,
231
- 18: 17,
232
- 19: 18,
233
- 20: E,
234
- 23: c
235
- },
236
- {
237
- 6: y,
238
- 9: 22,
239
- 12: 11,
240
- 13: n,
241
- 14: 14,
242
- 16: g,
243
- 17: m,
244
- 18: 17,
245
- 19: 18,
246
- 20: E,
247
- 23: c
248
- },
249
- {
250
- 6: I,
251
- 7: h,
252
- 10: 23,
253
- 11: P
254
- },
255
- e(_, [2, 24], {
256
- 18: 17,
257
- 19: 18,
258
- 14: 27,
259
- 16: [1, 28],
260
- 17: [1, 29],
261
- 20: E,
262
- 23: c
263
- }),
264
- e(_, [2, 19]),
265
- e(_, [2, 21], {
266
- 15: 30,
267
- 24: B
268
- }),
269
- e(_, [2, 22]),
270
- e(_, [2, 23]),
271
- e(d, [2, 25]),
272
- e(d, [2, 26]),
273
- e(d, [2, 28], { 20: [1, 32] }),
274
- { 21: [1, 33] },
275
- {
276
- 6: I,
277
- 7: h,
278
- 10: 34,
279
- 11: P
280
- },
281
- {
282
- 1: [2, 7],
283
- 6: y,
284
- 12: 21,
285
- 13: n,
286
- 14: 14,
287
- 16: g,
288
- 17: m,
289
- 18: 17,
290
- 19: 18,
291
- 20: E,
292
- 23: c
293
- },
294
- e(v, [2, 14], {
295
- 7: C,
296
- 11: F
297
- }),
298
- e(L, [2, 8]),
299
- e(L, [2, 9]),
300
- e(L, [2, 10]),
301
- e(_, [2, 16], {
302
- 15: 37,
303
- 24: B
304
- }),
305
- e(_, [2, 17]),
306
- e(_, [2, 18]),
307
- e(_, [2, 20], { 24: j }),
308
- e(d, [2, 31]),
309
- { 21: [1, 39] },
310
- { 22: [1, 40] },
311
- e(v, [2, 13], {
312
- 7: C,
313
- 11: F
314
- }),
315
- e(L, [2, 11]),
316
- e(L, [2, 12]),
317
- e(_, [2, 15], { 24: j }),
318
- e(d, [2, 30]),
319
- { 22: [1, 41] },
320
- e(d, [2, 27]),
321
- e(d, [2, 29])
322
- ],
323
- defaultActions: {
324
- 2: [2, 1],
325
- 6: [2, 2]
326
- },
327
- parseError: /* @__PURE__ */ r(function(t, l) {
328
- if (l.recoverable) this.trace(t);
329
- else {
330
- var a = Error(t);
331
- throw a.hash = l, a;
332
- }
333
- }, "parseError"),
334
- parse: /* @__PURE__ */ r(function(t) {
335
- var l = this, a = [0], s = [], p = [null], i = [], U = this.table, o = "", H = 0, it = 0, ht = 0, ut = 2, nt = 1, gt = i.slice.call(arguments, 1), b = Object.create(this.lexer), A = { yy: {} };
336
- for (var K in this.yy) Object.prototype.hasOwnProperty.call(this.yy, K) && (A.yy[K] = this.yy[K]);
337
- b.setInput(t, A.yy), A.yy.lexer = b, A.yy.parser = this, b.yylloc === void 0 && (b.yylloc = {});
338
- var Q = b.yylloc;
339
- i.push(Q);
340
- var dt = b.options && b.options.ranges;
341
- this.parseError = typeof A.yy.parseError == "function" ? A.yy.parseError : Object.getPrototypeOf(this).parseError;
342
- function pt(S) {
343
- a.length -= 2 * S, p.length -= S, i.length -= S;
344
- }
345
- r(pt, "popStack");
346
- function st() {
347
- var S = s.pop() || b.lex() || nt;
348
- return typeof S != "number" && (S instanceof Array && (s = S, S = s.pop()), S = l.symbols_[S] || S), S;
349
- }
350
- r(st, "lex");
351
- for (var k, Y, $, N, q, R = {}, W, O, rt, z; ; ) {
352
- if ($ = a[a.length - 1], this.defaultActions[$] ? N = this.defaultActions[$] : (k ??= st(), N = U[$] && U[$][k]), N === void 0 || !N.length || !N[0]) {
353
- var ot = "";
354
- for (W in z = [], U[$]) this.terminals_[W] && W > ut && z.push("'" + this.terminals_[W] + "'");
355
- ot = b.showPosition ? "Parse error on line " + (H + 1) + `:
356
- ` + b.showPosition() + `
357
- Expecting ` + z.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : "Parse error on line " + (H + 1) + ": Unexpected " + (k == nt ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(ot, {
358
- text: b.match,
359
- token: this.terminals_[k] || k,
360
- line: b.yylineno,
361
- loc: Q,
362
- expected: z
363
- });
364
- }
365
- if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + k);
366
- switch (N[0]) {
367
- case 1:
368
- a.push(k), p.push(b.yytext), i.push(b.yylloc), a.push(N[1]), k = null, Y ? (k = Y, Y = null) : (it = b.yyleng, o = b.yytext, H = b.yylineno, Q = b.yylloc, ht > 0);
369
- break;
370
- case 2:
371
- if (O = this.productions_[N[1]][1], R.$ = p[p.length - O], R._$ = {
372
- first_line: i[i.length - (O || 1)].first_line,
373
- last_line: i[i.length - 1].last_line,
374
- first_column: i[i.length - (O || 1)].first_column,
375
- last_column: i[i.length - 1].last_column
376
- }, dt && (R._$.range = [i[i.length - (O || 1)].range[0], i[i.length - 1].range[1]]), q = this.performAction.apply(R, [
377
- o,
378
- it,
379
- H,
380
- A.yy,
381
- N[1],
382
- p,
383
- i
384
- ].concat(gt)), q !== void 0) return q;
385
- O && (a = a.slice(0, -1 * O * 2), p = p.slice(0, -1 * O), i = i.slice(0, -1 * O)), a.push(this.productions_[N[1]][0]), p.push(R.$), i.push(R._$), rt = U[a[a.length - 2]][a[a.length - 1]], a.push(rt);
386
- break;
387
- case 3:
388
- return !0;
389
- }
390
- }
391
- return !0;
392
- }, "parse")
393
- };
394
- G.lexer = /* @__PURE__ */ (function() {
395
- return {
396
- EOF: 1,
397
- parseError: /* @__PURE__ */ r(function(t, l) {
398
- if (this.yy.parser) this.yy.parser.parseError(t, l);
399
- else throw Error(t);
400
- }, "parseError"),
401
- setInput: /* @__PURE__ */ r(function(t, l) {
402
- return this.yy = l || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
403
- first_line: 1,
404
- first_column: 0,
405
- last_line: 1,
406
- last_column: 0
407
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
408
- }, "setInput"),
409
- input: /* @__PURE__ */ r(function() {
410
- var t = this._input[0];
411
- return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
412
- }, "input"),
413
- unput: /* @__PURE__ */ r(function(t) {
414
- var l = t.length, a = t.split(/(?:\r\n?|\n)/g);
415
- this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
416
- var s = this.match.split(/(?:\r\n?|\n)/g);
417
- 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);
418
- var p = this.yylloc.range;
419
- return this.yylloc = {
420
- first_line: this.yylloc.first_line,
421
- last_line: this.yylineno + 1,
422
- first_column: this.yylloc.first_column,
423
- last_column: a ? (a.length === s.length ? this.yylloc.first_column : 0) + s[s.length - a.length].length - a[0].length : this.yylloc.first_column - l
424
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
425
- }, "unput"),
426
- more: /* @__PURE__ */ r(function() {
427
- return this._more = !0, this;
428
- }, "more"),
429
- reject: /* @__PURE__ */ r(function() {
430
- if (this.options.backtrack_lexer) this._backtrack = !0;
431
- else 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).
432
- ` + this.showPosition(), {
433
- text: "",
434
- token: null,
435
- line: this.yylineno
436
- });
437
- return this;
438
- }, "reject"),
439
- less: /* @__PURE__ */ r(function(t) {
440
- this.unput(this.match.slice(t));
441
- }, "less"),
442
- pastInput: /* @__PURE__ */ r(function() {
443
- var t = this.matched.substr(0, this.matched.length - this.match.length);
444
- return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
445
- }, "pastInput"),
446
- upcomingInput: /* @__PURE__ */ r(function() {
447
- var t = this.match;
448
- return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
449
- }, "upcomingInput"),
450
- showPosition: /* @__PURE__ */ r(function() {
451
- var t = this.pastInput(), l = Array(t.length + 1).join("-");
452
- return t + this.upcomingInput() + `
453
- ` + l + "^";
454
- }, "showPosition"),
455
- test_match: /* @__PURE__ */ r(function(t, l) {
456
- var a, s, p;
457
- if (this.options.backtrack_lexer && (p = {
458
- yylineno: this.yylineno,
459
- yylloc: {
460
- first_line: this.yylloc.first_line,
461
- last_line: this.last_line,
462
- first_column: this.yylloc.first_column,
463
- last_column: this.yylloc.last_column
464
- },
465
- yytext: this.yytext,
466
- match: this.match,
467
- matches: this.matches,
468
- matched: this.matched,
469
- yyleng: this.yyleng,
470
- offset: this.offset,
471
- _more: this._more,
472
- _input: this._input,
473
- yy: this.yy,
474
- conditionStack: this.conditionStack.slice(0),
475
- done: this.done
476
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
477
- first_line: this.yylloc.last_line,
478
- last_line: this.yylineno + 1,
479
- first_column: this.yylloc.last_column,
480
- last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
481
- }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], a = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a) return a;
482
- if (this._backtrack) {
483
- for (var i in p) this[i] = p[i];
484
- return !1;
485
- }
486
- return !1;
487
- }, "test_match"),
488
- next: /* @__PURE__ */ r(function() {
489
- if (this.done) return this.EOF;
490
- this._input || (this.done = !0);
491
- var t, l, a, s;
492
- this._more || (this.yytext = "", this.match = "");
493
- for (var p = this._currentRules(), i = 0; i < p.length; i++) if (a = this._input.match(this.rules[p[i]]), a && (!l || a[0].length > l[0].length)) {
494
- if (l = a, s = i, this.options.backtrack_lexer) {
495
- if (t = this.test_match(a, p[i]), t !== !1) return t;
496
- if (this._backtrack) {
497
- l = !1;
498
- continue;
499
- }
500
- return !1;
501
- }
502
- if (!this.options.flex) break;
503
- }
504
- return l ? (t = this.test_match(l, p[s]), t !== !1 && t) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
505
- ` + this.showPosition(), {
506
- text: "",
507
- token: null,
508
- line: this.yylineno
509
- });
510
- }, "next"),
511
- lex: /* @__PURE__ */ r(function() {
512
- return this.next() || this.lex();
513
- }, "lex"),
514
- begin: /* @__PURE__ */ r(function(t) {
515
- this.conditionStack.push(t);
516
- }, "begin"),
517
- popState: /* @__PURE__ */ r(function() {
518
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
519
- }, "popState"),
520
- _currentRules: /* @__PURE__ */ r(function() {
521
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
522
- }, "_currentRules"),
523
- topState: /* @__PURE__ */ r(function(t) {
524
- return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
525
- }, "topState"),
526
- pushState: /* @__PURE__ */ r(function(t) {
527
- this.begin(t);
528
- }, "pushState"),
529
- stateStackSize: /* @__PURE__ */ r(function() {
530
- return this.conditionStack.length;
531
- }, "stateStackSize"),
532
- options: { "case-insensitive": !0 },
533
- performAction: /* @__PURE__ */ r(function(t, l, a, s) {
534
- switch (a) {
535
- case 0:
536
- return this.pushState("shapeData"), l.yytext = "", 24;
537
- case 1:
538
- return this.pushState("shapeDataStr"), 24;
539
- case 2:
540
- return this.popState(), 24;
541
- case 3:
542
- return l.yytext = l.yytext.replace(/\n\s*/g, "<br/>"), 24;
543
- case 4:
544
- return 24;
545
- case 5:
546
- this.popState();
547
- break;
548
- case 6:
549
- return t.getLogger().trace("Found comment", l.yytext), 6;
550
- case 7:
551
- return 8;
552
- case 8:
553
- this.begin("CLASS");
554
- break;
555
- case 9:
556
- return this.popState(), 17;
557
- case 10:
558
- this.popState();
559
- break;
560
- case 11:
561
- t.getLogger().trace("Begin icon"), this.begin("ICON");
562
- break;
563
- case 12:
564
- return t.getLogger().trace("SPACELINE"), 6;
565
- case 13:
566
- return 7;
567
- case 14:
568
- return 16;
569
- case 15:
570
- t.getLogger().trace("end icon"), this.popState();
571
- break;
572
- case 16:
573
- return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
574
- case 17:
575
- return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
576
- case 18:
577
- return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
578
- case 19:
579
- return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
580
- case 20:
581
- return this.begin("NODE"), 20;
582
- case 21:
583
- return this.begin("NODE"), 20;
584
- case 22:
585
- return this.begin("NODE"), 20;
586
- case 23:
587
- return this.begin("NODE"), 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
- t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
604
- break;
605
- case 31:
606
- return t.getLogger().trace("description:", l.yytext), "NODE_DESCR";
607
- case 32:
608
- this.popState();
609
- break;
610
- case 33:
611
- return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
612
- case 34:
613
- return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
614
- case 35:
615
- return this.popState(), t.getLogger().trace("node end ...", l.yytext), "NODE_DEND";
616
- case 36:
617
- return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
618
- case 37:
619
- return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
620
- case 38:
621
- return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
622
- case 39:
623
- return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
624
- case 40:
625
- return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
626
- case 41:
627
- return t.getLogger().trace("Long description:", l.yytext), 21;
628
- case 42:
629
- return t.getLogger().trace("Long description:", l.yytext), 21;
630
- }
631
- }, "anonymous"),
632
- rules: [
633
- /^(?:@\{)/i,
634
- /^(?:["])/i,
635
- /^(?:["])/i,
636
- /^(?:[^\"]+)/i,
637
- /^(?:[^}^"]+)/i,
638
- /^(?:\})/i,
639
- /^(?:\s*%%.*)/i,
640
- /^(?:kanban\b)/i,
641
- /^(?::::)/i,
642
- /^(?:.+)/i,
643
- /^(?:\n)/i,
644
- /^(?:::icon\()/i,
645
- /^(?:[\s]+[\n])/i,
646
- /^(?:[\n]+)/i,
647
- /^(?:[^\)]+)/i,
648
- /^(?:\))/i,
649
- /^(?:-\))/i,
650
- /^(?:\(-)/i,
651
- /^(?:\)\))/i,
652
- /^(?:\))/i,
653
- /^(?:\(\()/i,
654
- /^(?:\{\{)/i,
655
- /^(?:\()/i,
656
- /^(?:\[)/i,
657
- /^(?:[\s]+)/i,
658
- /^(?:[^\(\[\n\)\{\}@]+)/i,
659
- /^(?:$)/i,
660
- /^(?:["][`])/i,
661
- /^(?:[^`"]+)/i,
662
- /^(?:[`]["])/i,
663
- /^(?:["])/i,
664
- /^(?:[^"]+)/i,
665
- /^(?:["])/i,
666
- /^(?:[\)]\))/i,
667
- /^(?:[\)])/i,
668
- /^(?:[\]])/i,
669
- /^(?:\}\})/i,
670
- /^(?:\(-)/i,
671
- /^(?:-\))/i,
672
- /^(?:\(\()/i,
673
- /^(?:\()/i,
674
- /^(?:[^\)\]\(\}]+)/i,
675
- /^(?:.+(?!\(\())/i
676
- ],
677
- conditions: {
678
- shapeDataEndBracket: {
679
- rules: [],
680
- inclusive: !1
681
- },
682
- shapeDataStr: {
683
- rules: [2, 3],
684
- inclusive: !1
685
- },
686
- shapeData: {
687
- rules: [
688
- 1,
689
- 4,
690
- 5
691
- ],
692
- inclusive: !1
693
- },
694
- CLASS: {
695
- rules: [9, 10],
696
- inclusive: !1
697
- },
698
- ICON: {
699
- rules: [14, 15],
700
- inclusive: !1
701
- },
702
- NSTR2: {
703
- rules: [28, 29],
704
- inclusive: !1
705
- },
706
- NSTR: {
707
- rules: [31, 32],
708
- inclusive: !1
709
- },
710
- NODE: {
711
- rules: [
712
- 27,
713
- 30,
714
- 33,
715
- 34,
716
- 35,
717
- 36,
718
- 37,
719
- 38,
720
- 39,
721
- 40,
722
- 41,
723
- 42
724
- ],
725
- inclusive: !1
726
- },
727
- INITIAL: {
728
- rules: [
729
- 0,
730
- 6,
731
- 7,
732
- 8,
733
- 11,
734
- 12,
735
- 13,
736
- 16,
737
- 17,
738
- 18,
739
- 19,
740
- 20,
741
- 21,
742
- 22,
743
- 23,
744
- 24,
745
- 25,
746
- 26
747
- ],
748
- inclusive: !0
749
- }
750
- }
751
- };
752
- })();
753
- function w() {
754
- this.yy = {};
755
- }
756
- return r(w, "Parser"), w.prototype = G, G.Parser = w, new w();
757
- })();
758
- V.parser = V;
759
- var xt = V, x = [], et = [], Z = 0, tt = {}, Dt = /* @__PURE__ */ r(() => {
760
- x = [], et = [], Z = 0, tt = {};
761
- }, "clear"), Lt = /* @__PURE__ */ r((e) => {
762
- if (x.length === 0) return null;
763
- let u = x[0].level, y = null;
764
- for (let n = x.length - 1; n >= 0; n--) if (x[n].level === u && !y && (y = x[n]), x[n].level < u) throw Error('Items without section detected, found section ("' + x[n].label + '")');
765
- return e === y?.level ? null : y;
766
- }, "getSection"), ct = /* @__PURE__ */ r(function() {
767
- return et;
768
- }, "getSections"), Ot = /* @__PURE__ */ r(function() {
769
- let e = [], u = [], y = ct(), n = M();
770
- for (let g of y) {
771
- let m = {
772
- id: g.id,
773
- label: T(g.label ?? "", n),
774
- labelType: "markdown",
775
- isGroup: !0,
776
- ticket: g.ticket,
777
- shape: "kanbanSection",
778
- level: g.level,
779
- look: n.look
780
- };
781
- u.push(m);
782
- let E = x.filter((c) => c.parentId === g.id);
783
- for (let c of E) {
784
- let D = {
785
- id: c.id,
786
- parentId: g.id,
787
- label: T(c.label ?? "", n),
788
- labelType: "markdown",
789
- isGroup: !1,
790
- ticket: c?.ticket,
791
- priority: c?.priority,
792
- assigned: c?.assigned,
793
- icon: c?.icon,
794
- shape: "kanbanItem",
795
- level: c.level,
796
- rx: 5,
797
- ry: 5,
798
- cssStyles: ["text-align: left"]
799
- };
800
- u.push(D);
801
- }
802
- }
803
- return {
804
- nodes: u,
805
- edges: e,
806
- other: {},
807
- config: M()
808
- };
809
- }, "getData"), It = /* @__PURE__ */ r((e, u, y, n, g) => {
810
- let m = M(), E = m.mindmap?.padding ?? X.mindmap.padding;
811
- switch (n) {
812
- case f.ROUNDED_RECT:
813
- case f.RECT:
814
- case f.HEXAGON:
815
- E *= 2;
816
- }
817
- let c = {
818
- id: T(u, m) || "kbn" + Z++,
819
- level: e,
820
- label: T(y, m),
821
- width: m.mindmap?.maxNodeWidth ?? X.mindmap.maxNodeWidth,
822
- padding: E,
823
- isGroup: !1
824
- };
825
- if (g !== void 0) {
826
- let I;
827
- I = g.includes(`
828
- `) ? g + `
829
- ` : `{
830
- ` + g + `
831
- }`;
832
- let h = Et(I, { schema: kt });
833
- if (h.shape && (h.shape !== h.shape.toLowerCase() || h.shape.includes("_"))) throw Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);
834
- h?.shape && h.shape === "kanbanItem" && (c.shape = h?.shape), h?.label && (c.label = h?.label), h?.icon && (c.icon = h?.icon.toString()), h?.assigned && (c.assigned = h?.assigned.toString()), h?.ticket && (c.ticket = h?.ticket.toString()), h?.priority && (c.priority = h?.priority);
835
- }
836
- let D = Lt(e);
837
- D ? c.parentId = D.id || "kbn" + Z++ : et.push(c), x.push(c);
838
- }, "addNode"), f = {
839
- DEFAULT: 0,
840
- NO_BORDER: 0,
841
- ROUNDED_RECT: 1,
842
- RECT: 2,
843
- CIRCLE: 3,
844
- CLOUD: 4,
845
- BANG: 5,
846
- HEXAGON: 6
847
- }, vt = {
848
- clear: Dt,
849
- addNode: It,
850
- getSections: ct,
851
- getData: Ot,
852
- nodeType: f,
853
- getType: /* @__PURE__ */ r((e, u) => {
854
- switch (J.debug("In get type", e, u), e) {
855
- case "[":
856
- return f.RECT;
857
- case "(":
858
- return u === ")" ? f.ROUNDED_RECT : f.CLOUD;
859
- case "((":
860
- return f.CIRCLE;
861
- case ")":
862
- return f.CLOUD;
863
- case "))":
864
- return f.BANG;
865
- case "{{":
866
- return f.HEXAGON;
867
- default:
868
- return f.DEFAULT;
869
- }
870
- }, "getType"),
871
- setElementForId: /* @__PURE__ */ r((e, u) => {
872
- tt[e] = u;
873
- }, "setElementForId"),
874
- decorateNode: /* @__PURE__ */ r((e) => {
875
- if (!e) return;
876
- let u = M(), y = x[x.length - 1];
877
- e.icon && (y.icon = T(e.icon, u)), e.class && (y.cssClasses = T(e.class, u));
878
- }, "decorateNode"),
879
- type2Str: /* @__PURE__ */ r((e) => {
880
- switch (e) {
881
- case f.DEFAULT:
882
- return "no-border";
883
- case f.RECT:
884
- return "rect";
885
- case f.ROUNDED_RECT:
886
- return "rounded-rect";
887
- case f.CIRCLE:
888
- return "circle";
889
- case f.CLOUD:
890
- return "cloud";
891
- case f.BANG:
892
- return "bang";
893
- case f.HEXAGON:
894
- return "hexgon";
895
- default:
896
- return "no-border";
897
- }
898
- }, "type2Str"),
899
- getLogger: /* @__PURE__ */ r(() => J, "getLogger"),
900
- getElementById: /* @__PURE__ */ r((e) => tt[e], "getElementById")
901
- }, Ct = { draw: /* @__PURE__ */ r(async (e, u, y, n) => {
902
- J.debug(`Rendering kanban diagram
903
- ` + e);
904
- let g = n.db.getData(), m = M();
905
- m.htmlLabels = !1;
906
- let E = yt(u);
907
- for (let d of g.nodes) d.domId = `${u}-${d.id}`;
908
- let c = E.append("g");
909
- c.attr("class", "sections");
910
- let D = E.append("g");
911
- D.attr("class", "items");
912
- let I = g.nodes.filter((d) => d.isGroup), h = 0, P = [], _ = 25;
913
- for (let d of I) {
914
- let v = m?.kanban?.sectionWidth || 200;
915
- h += 1, d.x = v * h + (h - 1) * 10 / 2, d.width = v, d.y = 0, d.height = v * 3, d.rx = 5, d.ry = 5, d.cssClasses = d.cssClasses + " section-" + h;
916
- let C = await ft(c, d);
917
- _ = Math.max(_, C?.labelBBox?.height), P.push(C);
918
- }
919
- let B = 0;
920
- for (let d of I) {
921
- let v = P[B];
922
- B += 1;
923
- let C = m?.kanban?.sectionWidth || 200, F = -C * 3 / 2 + _, L = F, j = g.nodes.filter((t) => t.parentId === d.id);
924
- for (let t of j) {
925
- if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
926
- t.x = d.x, t.width = C - 15;
927
- let l = (await mt(D, t, { config: m })).node().getBBox();
928
- t.y = L + l.height / 2, await bt(t), L = t.y + l.height / 2 + 5;
929
- }
930
- let G = v.cluster.select("rect"), w = Math.max(L - F + 30, 50) + (_ - 25);
931
- G.attr("height", w);
932
- }
933
- _t(void 0, E, m.mindmap?.padding ?? X.kanban.padding, m.mindmap?.useMaxWidth ?? X.kanban.useMaxWidth);
934
- }, "draw") }, At = /* @__PURE__ */ r((e) => {
935
- let u = "";
936
- for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Nt(e["lineColor" + n]) ? e["lineColor" + n] = at(e["lineColor" + n], 20) : e["lineColor" + n] = lt(e["lineColor" + n], 20);
937
- let y = /* @__PURE__ */ r((n, g) => e.darkMode ? lt(n, g) : at(n, g), "adjuster");
938
- for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
939
- let g = "" + (17 - 3 * n);
940
- u += `
941
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
942
- fill: ${y(e["cScale" + n], 10)};
943
- stroke: ${y(e["cScale" + n], 10)};
944
-
945
- }
946
- .section-${n - 1} text {
947
- fill: ${e["cScaleLabel" + n]};
948
- }
949
- .node-icon-${n - 1} {
950
- font-size: 40px;
951
- color: ${e["cScaleLabel" + n]};
952
- }
953
- .section-edge-${n - 1}{
954
- stroke: ${e["cScale" + n]};
955
- }
956
- .edge-depth-${n - 1}{
957
- stroke-width: ${g};
958
- }
959
- .section-${n - 1} line {
960
- stroke: ${e["cScaleInv" + n]} ;
961
- stroke-width: 3;
962
- }
963
-
964
- .disabled, .disabled circle, .disabled text {
965
- fill: lightgray;
966
- }
967
- .disabled text {
968
- fill: #efefef;
969
- }
970
-
971
- .node rect,
972
- .node circle,
973
- .node ellipse,
974
- .node polygon,
975
- .node path {
976
- fill: ${e.background};
977
- stroke: ${e.nodeBorder};
978
- stroke-width: 1px;
979
- }
980
-
981
- .kanban-ticket-link {
982
- fill: ${e.background};
983
- stroke: ${e.nodeBorder};
984
- text-decoration: underline;
985
- }
986
- `;
987
- }
988
- return u;
989
- }, "genSections"), Rt = {
990
- db: vt,
991
- renderer: Ct,
992
- parser: xt,
993
- styles: /* @__PURE__ */ r((e) => `
994
- .edge {
995
- stroke-width: 3;
996
- }
997
- ${At(e)}
998
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
999
- fill: ${e.git0};
1000
- }
1001
- .section-root text {
1002
- fill: ${e.gitBranchLabel0};
1003
- }
1004
- .icon-container {
1005
- height:100%;
1006
- display: flex;
1007
- justify-content: center;
1008
- align-items: center;
1009
- }
1010
- .edge {
1011
- fill: none;
1012
- }
1013
- .cluster-label, .label {
1014
- color: ${e.textColor};
1015
- fill: ${e.textColor};
1016
- }
1017
- .kanban-label {
1018
- dy: 1em;
1019
- alignment-baseline: middle;
1020
- text-anchor: middle;
1021
- dominant-baseline: middle;
1022
- text-align: center;
1023
- }
1024
- ${St()}
1025
- `, "getStyles")
1026
- };
1027
- export {
1028
- Rt as diagram
1029
- };