@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8
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.
- package/package.json +4 -4
- package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/dist/angular-html-LD6QEAZE.mjs +0 -7
- package/dist/angular-html-LD6QEAZE.mjs.map +0 -1
- package/dist/angular-ts-FGK7I2F5.mjs +0 -37
- package/dist/angular-ts-FGK7I2F5.mjs.map +0 -1
- package/dist/angular-ts-XZTE5LQS.mjs +0 -37
- package/dist/angular-ts-XZTE5LQS.mjs.map +0 -1
- package/dist/apl-VB2EG5RZ.mjs +0 -22
- package/dist/apl-VB2EG5RZ.mjs.map +0 -1
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs +0 -8712
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs.map +0 -1
- package/dist/blade-EZDWULER.mjs +0 -26
- package/dist/blade-EZDWULER.mjs.map +0 -1
- package/dist/blade-HS4Z7O3Y.mjs +0 -26
- package/dist/blade-HS4Z7O3Y.mjs.map +0 -1
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs +0 -3618
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs.map +0 -1
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs +0 -2495
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs.map +0 -1
- package/dist/chunk-2BAFECUC.mjs +0 -28
- package/dist/chunk-2BAFECUC.mjs.map +0 -1
- package/dist/chunk-BF5LDW2L.mjs +0 -65
- package/dist/chunk-BF5LDW2L.mjs.map +0 -1
- package/dist/chunk-BUEC2HNL.mjs +0 -762
- package/dist/chunk-BUEC2HNL.mjs.map +0 -1
- package/dist/chunk-CRGJ2YCV.mjs +0 -109
- package/dist/chunk-CRGJ2YCV.mjs.map +0 -1
- package/dist/chunk-DKZXT4VQ.mjs +0 -19
- package/dist/chunk-DKZXT4VQ.mjs.map +0 -1
- package/dist/chunk-DYQXFOGA.mjs +0 -34
- package/dist/chunk-DYQXFOGA.mjs.map +0 -1
- package/dist/chunk-ENI667QL.mjs +0 -806
- package/dist/chunk-ENI667QL.mjs.map +0 -1
- package/dist/chunk-GEUZOPED.mjs +0 -1834
- package/dist/chunk-GEUZOPED.mjs.map +0 -1
- package/dist/chunk-GU7334FJ.mjs +0 -538
- package/dist/chunk-GU7334FJ.mjs.map +0 -1
- package/dist/chunk-HNKEYT4A.mjs +0 -4693
- package/dist/chunk-HNKEYT4A.mjs.map +0 -1
- package/dist/chunk-HTMHAYGC.mjs +0 -14
- package/dist/chunk-HTMHAYGC.mjs.map +0 -1
- package/dist/chunk-JRLFMJ6U.mjs +0 -1923
- package/dist/chunk-JRLFMJ6U.mjs.map +0 -1
- package/dist/chunk-JYRND4DC.mjs +0 -22
- package/dist/chunk-JYRND4DC.mjs.map +0 -1
- package/dist/chunk-KFEPUFID.mjs +0 -52
- package/dist/chunk-KFEPUFID.mjs.map +0 -1
- package/dist/chunk-M3UH7XZX.mjs +0 -6222
- package/dist/chunk-M3UH7XZX.mjs.map +0 -1
- package/dist/chunk-ND4RYWG7.mjs +0 -12
- package/dist/chunk-ND4RYWG7.mjs.map +0 -1
- package/dist/chunk-VLSLBZME.mjs +0 -51
- package/dist/chunk-VLSLBZME.mjs.map +0 -1
- package/dist/chunk-WJBV3P3K.mjs +0 -55
- package/dist/chunk-WJBV3P3K.mjs.map +0 -1
- package/dist/chunk-X2TQ2HDS.mjs +0 -44
- package/dist/chunk-X2TQ2HDS.mjs.map +0 -1
- package/dist/chunk-YIDZOZG3.mjs +0 -103
- package/dist/chunk-YIDZOZG3.mjs.map +0 -1
- package/dist/chunk-YLW7IP7V.mjs +0 -14525
- package/dist/chunk-YLW7IP7V.mjs.map +0 -1
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs +0 -38
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs.map +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs +0 -38
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs.map +0 -1
- package/dist/cobol-PNTKRG5I.mjs +0 -17
- package/dist/cobol-PNTKRG5I.mjs.map +0 -1
- package/dist/crystal-BSMHK65A.mjs +0 -23
- package/dist/crystal-BSMHK65A.mjs.map +0 -1
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs +0 -710
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs.map +0 -1
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs +0 -538
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs.map +0 -1
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs +0 -319
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs.map +0 -1
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs +0 -231
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs.map +0 -1
- package/dist/edge-JOI74UJM.mjs +0 -19
- package/dist/edge-JOI74UJM.mjs.map +0 -1
- package/dist/elixir-FEL6DDPJ.mjs +0 -15
- package/dist/elixir-FEL6DDPJ.mjs.map +0 -1
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs +0 -1175
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs.map +0 -1
- package/dist/erb-Q2D6FWX3.mjs +0 -32
- package/dist/erb-Q2D6FWX3.mjs.map +0 -1
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs +0 -2349
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs.map +0 -1
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs +0 -2344
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs.map +0 -1
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs +0 -1221
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs.map +0 -1
- package/dist/glimmer-js-B32LCGFA.mjs +0 -19
- package/dist/glimmer-js-B32LCGFA.mjs.map +0 -1
- package/dist/glimmer-ts-4PHFAQCG.mjs +0 -19
- package/dist/glimmer-ts-4PHFAQCG.mjs.map +0 -1
- package/dist/hack-3ZNSL4KD.mjs +0 -17
- package/dist/hack-3ZNSL4KD.mjs.map +0 -1
- package/dist/handlebars-ICBC3AZK.mjs +0 -19
- package/dist/handlebars-ICBC3AZK.mjs.map +0 -1
- package/dist/html-BGY5P773.mjs +0 -6
- package/dist/html-BGY5P773.mjs.map +0 -1
- package/dist/html-derivative-3HGXHHFE.mjs +0 -7
- package/dist/html-derivative-3HGXHHFE.mjs.map +0 -1
- package/dist/index.css +0 -2385
- package/dist/index.css.map +0 -1
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs +0 -49
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs.map +0 -1
- package/dist/jinja-WL6HNMB5.mjs +0 -22
- package/dist/jinja-WL6HNMB5.mjs.map +0 -1
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs +0 -1259
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs.map +0 -1
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs +0 -1062
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map +0 -1
- package/dist/katex-4R42CMCB.mjs +0 -4
- package/dist/katex-4R42CMCB.mjs.map +0 -1
- package/dist/liquid-YS3YPW54.mjs +0 -19
- package/dist/liquid-YS3YPW54.mjs.map +0 -1
- package/dist/logo-mark-OHF64HAY.svg +0 -8
- package/dist/mdc-A66KLOT4.mjs +0 -20
- package/dist/mdc-A66KLOT4.mjs.map +0 -1
- package/dist/mermaid.core-4OWTNZSL.mjs +0 -1587
- package/dist/mermaid.core-4OWTNZSL.mjs.map +0 -1
- package/dist/mermaid.core-7AUE4M6E.mjs +0 -1587
- package/dist/mermaid.core-7AUE4M6E.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs.map +0 -1
- package/dist/nim-HUBKBJHZ.mjs +0 -26
- package/dist/nim-HUBKBJHZ.mjs.map +0 -1
- package/dist/perl-QHAMWWQ5.mjs +0 -22
- package/dist/perl-QHAMWWQ5.mjs.map +0 -1
- package/dist/php-FS5GKSPN.mjs +0 -11
- package/dist/php-FS5GKSPN.mjs.map +0 -1
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs +0 -200
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs.map +0 -1
- package/dist/pug-WTY5FMEA.mjs +0 -17
- package/dist/pug-WTY5FMEA.mjs.map +0 -1
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs +0 -1344
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs.map +0 -1
- package/dist/razor-BAB7LFWZ.mjs +0 -17
- package/dist/razor-BAB7LFWZ.mjs.map +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs +0 -1179
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map +0 -1
- package/dist/rst-AY7U27YM.mjs +0 -41
- package/dist/rst-AY7U27YM.mjs.map +0 -1
- package/dist/rst-Y2VLYMJI.mjs +0 -41
- package/dist/rst-Y2VLYMJI.mjs.map +0 -1
- package/dist/ruby-K4BNEYWG.mjs +0 -22
- package/dist/ruby-K4BNEYWG.mjs.map +0 -1
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs +0 -1230
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs.map +0 -1
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs +0 -3885
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs.map +0 -1
- package/dist/soy-5QMQV2KL.mjs +0 -15
- package/dist/soy-5QMQV2KL.mjs.map +0 -1
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs +0 -467
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs +0 -37
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs.map +0 -1
- package/dist/templ-VSARRSO2.mjs +0 -17
- package/dist/templ-VSARRSO2.mjs.map +0 -1
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs +0 -1226
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map +0 -1
- package/dist/ts-tags-YK3Q2LIW.mjs +0 -68
- package/dist/ts-tags-YK3Q2LIW.mjs.map +0 -1
- package/dist/twig-HNMWLN6H.mjs +0 -40
- package/dist/twig-HNMWLN6H.mjs.map +0 -1
- package/dist/vue-7OSX6ZY5.mjs +0 -10
- package/dist/vue-7OSX6ZY5.mjs.map +0 -1
- package/dist/vue-html-AQH2V2EU.mjs +0 -20
- package/dist/vue-html-AQH2V2EU.mjs.map +0 -1
- package/dist/vue-vine-GCYT2IGV.mjs +0 -29
- package/dist/vue-vine-GCYT2IGV.mjs.map +0 -1
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs +0 -1865
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs.map +0 -1
|
@@ -1,1062 +0,0 @@
|
|
|
1
|
-
import { selectSvgElement } from './chunk-DKZXT4VQ.mjs';
|
|
2
|
-
import { getIconStyles } from './chunk-A62SCAQY.mjs';
|
|
3
|
-
import { load, JSON_SCHEMA } from './chunk-NGMW22OJ.mjs';
|
|
4
|
-
import { insertCluster, insertNode, positionNode } from './chunk-M3UH7XZX.mjs';
|
|
5
|
-
import './chunk-6WA5F2SG.mjs';
|
|
6
|
-
import './chunk-YIDZOZG3.mjs';
|
|
7
|
-
import './chunk-BUEC2HNL.mjs';
|
|
8
|
-
import './chunk-GU7334FJ.mjs';
|
|
9
|
-
import './chunk-ZGPFSRJJ.mjs';
|
|
10
|
-
import { getConfig2, sanitizeText, defaultConfig_default, setupGraphViewbox, is_dark_default, lighten_default, darken_default } from './chunk-HNKEYT4A.mjs';
|
|
11
|
-
import './chunk-7O6EKIFY.mjs';
|
|
12
|
-
import { __name, log } from './chunk-WHXHCOFP.mjs';
|
|
13
|
-
import './chunk-RAC6KEKF.mjs';
|
|
14
|
-
import './chunk-SH6YXSHR.mjs';
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.mjs
|
|
17
|
-
var parser = function() {
|
|
18
|
-
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
19
|
-
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
20
|
-
return o2;
|
|
21
|
-
}, "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];
|
|
22
|
-
var parser2 = {
|
|
23
|
-
trace: /* @__PURE__ */ __name(function trace() {
|
|
24
|
-
}, "trace"),
|
|
25
|
-
yy: {},
|
|
26
|
-
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 },
|
|
27
|
-
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" },
|
|
28
|
-
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]],
|
|
29
|
-
performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
30
|
-
var $0 = $$.length - 1;
|
|
31
|
-
switch (yystate) {
|
|
32
|
-
case 6:
|
|
33
|
-
case 7:
|
|
34
|
-
return yy;
|
|
35
|
-
case 8:
|
|
36
|
-
yy.getLogger().trace("Stop NL ");
|
|
37
|
-
break;
|
|
38
|
-
case 9:
|
|
39
|
-
yy.getLogger().trace("Stop EOF ");
|
|
40
|
-
break;
|
|
41
|
-
case 11:
|
|
42
|
-
yy.getLogger().trace("Stop NL2 ");
|
|
43
|
-
break;
|
|
44
|
-
case 12:
|
|
45
|
-
yy.getLogger().trace("Stop EOF2 ");
|
|
46
|
-
break;
|
|
47
|
-
case 15:
|
|
48
|
-
yy.getLogger().info("Node: ", $$[$0 - 1].id);
|
|
49
|
-
yy.addNode($$[$0 - 2].length, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
|
|
50
|
-
break;
|
|
51
|
-
case 16:
|
|
52
|
-
yy.getLogger().info("Node: ", $$[$0].id);
|
|
53
|
-
yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);
|
|
54
|
-
break;
|
|
55
|
-
case 17:
|
|
56
|
-
yy.getLogger().trace("Icon: ", $$[$0]);
|
|
57
|
-
yy.decorateNode({ icon: $$[$0] });
|
|
58
|
-
break;
|
|
59
|
-
case 18:
|
|
60
|
-
case 23:
|
|
61
|
-
yy.decorateNode({ class: $$[$0] });
|
|
62
|
-
break;
|
|
63
|
-
case 19:
|
|
64
|
-
yy.getLogger().trace("SPACELIST");
|
|
65
|
-
break;
|
|
66
|
-
case 20:
|
|
67
|
-
yy.getLogger().trace("Node: ", $$[$0 - 1].id);
|
|
68
|
-
yy.addNode(0, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);
|
|
69
|
-
break;
|
|
70
|
-
case 21:
|
|
71
|
-
yy.getLogger().trace("Node: ", $$[$0].id);
|
|
72
|
-
yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);
|
|
73
|
-
break;
|
|
74
|
-
case 22:
|
|
75
|
-
yy.decorateNode({ icon: $$[$0] });
|
|
76
|
-
break;
|
|
77
|
-
case 27:
|
|
78
|
-
yy.getLogger().trace("node found ..", $$[$0 - 2]);
|
|
79
|
-
this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
|
|
80
|
-
break;
|
|
81
|
-
case 28:
|
|
82
|
-
this.$ = { id: $$[$0], descr: $$[$0], type: 0 };
|
|
83
|
-
break;
|
|
84
|
-
case 29:
|
|
85
|
-
yy.getLogger().trace("node found ..", $$[$0 - 3]);
|
|
86
|
-
this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
|
|
87
|
-
break;
|
|
88
|
-
case 30:
|
|
89
|
-
this.$ = $$[$0 - 1] + $$[$0];
|
|
90
|
-
break;
|
|
91
|
-
case 31:
|
|
92
|
-
this.$ = $$[$0];
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
}, "anonymous"),
|
|
96
|
-
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])],
|
|
97
|
-
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
98
|
-
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
99
|
-
if (hash.recoverable) {
|
|
100
|
-
this.trace(str);
|
|
101
|
-
} else {
|
|
102
|
-
var error = new Error(str);
|
|
103
|
-
error.hash = hash;
|
|
104
|
-
throw error;
|
|
105
|
-
}
|
|
106
|
-
}, "parseError"),
|
|
107
|
-
parse: /* @__PURE__ */ __name(function parse(input) {
|
|
108
|
-
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
|
|
109
|
-
var args = lstack.slice.call(arguments, 1);
|
|
110
|
-
var lexer2 = Object.create(this.lexer);
|
|
111
|
-
var sharedState = { yy: {} };
|
|
112
|
-
for (var k in this.yy) {
|
|
113
|
-
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
114
|
-
sharedState.yy[k] = this.yy[k];
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
lexer2.setInput(input, sharedState.yy);
|
|
118
|
-
sharedState.yy.lexer = lexer2;
|
|
119
|
-
sharedState.yy.parser = this;
|
|
120
|
-
if (typeof lexer2.yylloc == "undefined") {
|
|
121
|
-
lexer2.yylloc = {};
|
|
122
|
-
}
|
|
123
|
-
var yyloc = lexer2.yylloc;
|
|
124
|
-
lstack.push(yyloc);
|
|
125
|
-
var ranges = lexer2.options && lexer2.options.ranges;
|
|
126
|
-
if (typeof sharedState.yy.parseError === "function") {
|
|
127
|
-
this.parseError = sharedState.yy.parseError;
|
|
128
|
-
} else {
|
|
129
|
-
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
130
|
-
}
|
|
131
|
-
function popStack(n) {
|
|
132
|
-
stack.length = stack.length - 2 * n;
|
|
133
|
-
vstack.length = vstack.length - n;
|
|
134
|
-
lstack.length = lstack.length - n;
|
|
135
|
-
}
|
|
136
|
-
__name(popStack, "popStack");
|
|
137
|
-
function lex() {
|
|
138
|
-
var token;
|
|
139
|
-
token = tstack.pop() || lexer2.lex() || EOF;
|
|
140
|
-
if (typeof token !== "number") {
|
|
141
|
-
if (token instanceof Array) {
|
|
142
|
-
tstack = token;
|
|
143
|
-
token = tstack.pop();
|
|
144
|
-
}
|
|
145
|
-
token = self.symbols_[token] || token;
|
|
146
|
-
}
|
|
147
|
-
return token;
|
|
148
|
-
}
|
|
149
|
-
__name(lex, "lex");
|
|
150
|
-
var symbol, state, action, r, yyval = {}, p, len, newState, expected;
|
|
151
|
-
while (true) {
|
|
152
|
-
state = stack[stack.length - 1];
|
|
153
|
-
if (this.defaultActions[state]) {
|
|
154
|
-
action = this.defaultActions[state];
|
|
155
|
-
} else {
|
|
156
|
-
if (symbol === null || typeof symbol == "undefined") {
|
|
157
|
-
symbol = lex();
|
|
158
|
-
}
|
|
159
|
-
action = table[state] && table[state][symbol];
|
|
160
|
-
}
|
|
161
|
-
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
162
|
-
var errStr = "";
|
|
163
|
-
expected = [];
|
|
164
|
-
for (p in table[state]) {
|
|
165
|
-
if (this.terminals_[p] && p > TERROR) {
|
|
166
|
-
expected.push("'" + this.terminals_[p] + "'");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
if (lexer2.showPosition) {
|
|
170
|
-
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
171
|
-
} else {
|
|
172
|
-
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
173
|
-
}
|
|
174
|
-
this.parseError(errStr, {
|
|
175
|
-
text: lexer2.match,
|
|
176
|
-
token: this.terminals_[symbol] || symbol,
|
|
177
|
-
line: lexer2.yylineno,
|
|
178
|
-
loc: yyloc,
|
|
179
|
-
expected
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
if (action[0] instanceof Array && action.length > 1) {
|
|
183
|
-
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
184
|
-
}
|
|
185
|
-
switch (action[0]) {
|
|
186
|
-
case 1:
|
|
187
|
-
stack.push(symbol);
|
|
188
|
-
vstack.push(lexer2.yytext);
|
|
189
|
-
lstack.push(lexer2.yylloc);
|
|
190
|
-
stack.push(action[1]);
|
|
191
|
-
symbol = null;
|
|
192
|
-
{
|
|
193
|
-
yyleng = lexer2.yyleng;
|
|
194
|
-
yytext = lexer2.yytext;
|
|
195
|
-
yylineno = lexer2.yylineno;
|
|
196
|
-
yyloc = lexer2.yylloc;
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
case 2:
|
|
200
|
-
len = this.productions_[action[1]][1];
|
|
201
|
-
yyval.$ = vstack[vstack.length - len];
|
|
202
|
-
yyval._$ = {
|
|
203
|
-
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
204
|
-
last_line: lstack[lstack.length - 1].last_line,
|
|
205
|
-
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
206
|
-
last_column: lstack[lstack.length - 1].last_column
|
|
207
|
-
};
|
|
208
|
-
if (ranges) {
|
|
209
|
-
yyval._$.range = [
|
|
210
|
-
lstack[lstack.length - (len || 1)].range[0],
|
|
211
|
-
lstack[lstack.length - 1].range[1]
|
|
212
|
-
];
|
|
213
|
-
}
|
|
214
|
-
r = this.performAction.apply(yyval, [
|
|
215
|
-
yytext,
|
|
216
|
-
yyleng,
|
|
217
|
-
yylineno,
|
|
218
|
-
sharedState.yy,
|
|
219
|
-
action[1],
|
|
220
|
-
vstack,
|
|
221
|
-
lstack
|
|
222
|
-
].concat(args));
|
|
223
|
-
if (typeof r !== "undefined") {
|
|
224
|
-
return r;
|
|
225
|
-
}
|
|
226
|
-
if (len) {
|
|
227
|
-
stack = stack.slice(0, -1 * len * 2);
|
|
228
|
-
vstack = vstack.slice(0, -1 * len);
|
|
229
|
-
lstack = lstack.slice(0, -1 * len);
|
|
230
|
-
}
|
|
231
|
-
stack.push(this.productions_[action[1]][0]);
|
|
232
|
-
vstack.push(yyval.$);
|
|
233
|
-
lstack.push(yyval._$);
|
|
234
|
-
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
235
|
-
stack.push(newState);
|
|
236
|
-
break;
|
|
237
|
-
case 3:
|
|
238
|
-
return true;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
return true;
|
|
242
|
-
}, "parse")
|
|
243
|
-
};
|
|
244
|
-
var lexer = /* @__PURE__ */ function() {
|
|
245
|
-
var lexer2 = {
|
|
246
|
-
EOF: 1,
|
|
247
|
-
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
248
|
-
if (this.yy.parser) {
|
|
249
|
-
this.yy.parser.parseError(str, hash);
|
|
250
|
-
} else {
|
|
251
|
-
throw new Error(str);
|
|
252
|
-
}
|
|
253
|
-
}, "parseError"),
|
|
254
|
-
// resets the lexer, sets new input
|
|
255
|
-
setInput: /* @__PURE__ */ __name(function(input, yy) {
|
|
256
|
-
this.yy = yy || this.yy || {};
|
|
257
|
-
this._input = input;
|
|
258
|
-
this._more = this._backtrack = this.done = false;
|
|
259
|
-
this.yylineno = this.yyleng = 0;
|
|
260
|
-
this.yytext = this.matched = this.match = "";
|
|
261
|
-
this.conditionStack = ["INITIAL"];
|
|
262
|
-
this.yylloc = {
|
|
263
|
-
first_line: 1,
|
|
264
|
-
first_column: 0,
|
|
265
|
-
last_line: 1,
|
|
266
|
-
last_column: 0
|
|
267
|
-
};
|
|
268
|
-
if (this.options.ranges) {
|
|
269
|
-
this.yylloc.range = [0, 0];
|
|
270
|
-
}
|
|
271
|
-
this.offset = 0;
|
|
272
|
-
return this;
|
|
273
|
-
}, "setInput"),
|
|
274
|
-
// consumes and returns one char from the input
|
|
275
|
-
input: /* @__PURE__ */ __name(function() {
|
|
276
|
-
var ch = this._input[0];
|
|
277
|
-
this.yytext += ch;
|
|
278
|
-
this.yyleng++;
|
|
279
|
-
this.offset++;
|
|
280
|
-
this.match += ch;
|
|
281
|
-
this.matched += ch;
|
|
282
|
-
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
283
|
-
if (lines) {
|
|
284
|
-
this.yylineno++;
|
|
285
|
-
this.yylloc.last_line++;
|
|
286
|
-
} else {
|
|
287
|
-
this.yylloc.last_column++;
|
|
288
|
-
}
|
|
289
|
-
if (this.options.ranges) {
|
|
290
|
-
this.yylloc.range[1]++;
|
|
291
|
-
}
|
|
292
|
-
this._input = this._input.slice(1);
|
|
293
|
-
return ch;
|
|
294
|
-
}, "input"),
|
|
295
|
-
// unshifts one char (or a string) into the input
|
|
296
|
-
unput: /* @__PURE__ */ __name(function(ch) {
|
|
297
|
-
var len = ch.length;
|
|
298
|
-
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
299
|
-
this._input = ch + this._input;
|
|
300
|
-
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
301
|
-
this.offset -= len;
|
|
302
|
-
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
303
|
-
this.match = this.match.substr(0, this.match.length - 1);
|
|
304
|
-
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
305
|
-
if (lines.length - 1) {
|
|
306
|
-
this.yylineno -= lines.length - 1;
|
|
307
|
-
}
|
|
308
|
-
var r = this.yylloc.range;
|
|
309
|
-
this.yylloc = {
|
|
310
|
-
first_line: this.yylloc.first_line,
|
|
311
|
-
last_line: this.yylineno + 1,
|
|
312
|
-
first_column: this.yylloc.first_column,
|
|
313
|
-
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
|
|
314
|
-
};
|
|
315
|
-
if (this.options.ranges) {
|
|
316
|
-
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
317
|
-
}
|
|
318
|
-
this.yyleng = this.yytext.length;
|
|
319
|
-
return this;
|
|
320
|
-
}, "unput"),
|
|
321
|
-
// When called from action, caches matched text and appends it on next action
|
|
322
|
-
more: /* @__PURE__ */ __name(function() {
|
|
323
|
-
this._more = true;
|
|
324
|
-
return this;
|
|
325
|
-
}, "more"),
|
|
326
|
-
// 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.
|
|
327
|
-
reject: /* @__PURE__ */ __name(function() {
|
|
328
|
-
if (this.options.backtrack_lexer) {
|
|
329
|
-
this._backtrack = true;
|
|
330
|
-
} else {
|
|
331
|
-
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(), {
|
|
332
|
-
text: "",
|
|
333
|
-
token: null,
|
|
334
|
-
line: this.yylineno
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
return this;
|
|
338
|
-
}, "reject"),
|
|
339
|
-
// retain first n characters of the match
|
|
340
|
-
less: /* @__PURE__ */ __name(function(n) {
|
|
341
|
-
this.unput(this.match.slice(n));
|
|
342
|
-
}, "less"),
|
|
343
|
-
// displays already matched input, i.e. for error messages
|
|
344
|
-
pastInput: /* @__PURE__ */ __name(function() {
|
|
345
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
346
|
-
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
347
|
-
}, "pastInput"),
|
|
348
|
-
// displays upcoming input, i.e. for error messages
|
|
349
|
-
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
350
|
-
var next = this.match;
|
|
351
|
-
if (next.length < 20) {
|
|
352
|
-
next += this._input.substr(0, 20 - next.length);
|
|
353
|
-
}
|
|
354
|
-
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
355
|
-
}, "upcomingInput"),
|
|
356
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
357
|
-
showPosition: /* @__PURE__ */ __name(function() {
|
|
358
|
-
var pre = this.pastInput();
|
|
359
|
-
var c = new Array(pre.length + 1).join("-");
|
|
360
|
-
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
361
|
-
}, "showPosition"),
|
|
362
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
363
|
-
test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
|
|
364
|
-
var token, lines, backup;
|
|
365
|
-
if (this.options.backtrack_lexer) {
|
|
366
|
-
backup = {
|
|
367
|
-
yylineno: this.yylineno,
|
|
368
|
-
yylloc: {
|
|
369
|
-
first_line: this.yylloc.first_line,
|
|
370
|
-
last_line: this.last_line,
|
|
371
|
-
first_column: this.yylloc.first_column,
|
|
372
|
-
last_column: this.yylloc.last_column
|
|
373
|
-
},
|
|
374
|
-
yytext: this.yytext,
|
|
375
|
-
match: this.match,
|
|
376
|
-
matches: this.matches,
|
|
377
|
-
matched: this.matched,
|
|
378
|
-
yyleng: this.yyleng,
|
|
379
|
-
offset: this.offset,
|
|
380
|
-
_more: this._more,
|
|
381
|
-
_input: this._input,
|
|
382
|
-
yy: this.yy,
|
|
383
|
-
conditionStack: this.conditionStack.slice(0),
|
|
384
|
-
done: this.done
|
|
385
|
-
};
|
|
386
|
-
if (this.options.ranges) {
|
|
387
|
-
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
391
|
-
if (lines) {
|
|
392
|
-
this.yylineno += lines.length;
|
|
393
|
-
}
|
|
394
|
-
this.yylloc = {
|
|
395
|
-
first_line: this.yylloc.last_line,
|
|
396
|
-
last_line: this.yylineno + 1,
|
|
397
|
-
first_column: this.yylloc.last_column,
|
|
398
|
-
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
399
|
-
};
|
|
400
|
-
this.yytext += match[0];
|
|
401
|
-
this.match += match[0];
|
|
402
|
-
this.matches = match;
|
|
403
|
-
this.yyleng = this.yytext.length;
|
|
404
|
-
if (this.options.ranges) {
|
|
405
|
-
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
406
|
-
}
|
|
407
|
-
this._more = false;
|
|
408
|
-
this._backtrack = false;
|
|
409
|
-
this._input = this._input.slice(match[0].length);
|
|
410
|
-
this.matched += match[0];
|
|
411
|
-
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
412
|
-
if (this.done && this._input) {
|
|
413
|
-
this.done = false;
|
|
414
|
-
}
|
|
415
|
-
if (token) {
|
|
416
|
-
return token;
|
|
417
|
-
} else if (this._backtrack) {
|
|
418
|
-
for (var k in backup) {
|
|
419
|
-
this[k] = backup[k];
|
|
420
|
-
}
|
|
421
|
-
return false;
|
|
422
|
-
}
|
|
423
|
-
return false;
|
|
424
|
-
}, "test_match"),
|
|
425
|
-
// return next match in input
|
|
426
|
-
next: /* @__PURE__ */ __name(function() {
|
|
427
|
-
if (this.done) {
|
|
428
|
-
return this.EOF;
|
|
429
|
-
}
|
|
430
|
-
if (!this._input) {
|
|
431
|
-
this.done = true;
|
|
432
|
-
}
|
|
433
|
-
var token, match, tempMatch, index;
|
|
434
|
-
if (!this._more) {
|
|
435
|
-
this.yytext = "";
|
|
436
|
-
this.match = "";
|
|
437
|
-
}
|
|
438
|
-
var rules = this._currentRules();
|
|
439
|
-
for (var i = 0; i < rules.length; i++) {
|
|
440
|
-
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
441
|
-
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
442
|
-
match = tempMatch;
|
|
443
|
-
index = i;
|
|
444
|
-
if (this.options.backtrack_lexer) {
|
|
445
|
-
token = this.test_match(tempMatch, rules[i]);
|
|
446
|
-
if (token !== false) {
|
|
447
|
-
return token;
|
|
448
|
-
} else if (this._backtrack) {
|
|
449
|
-
match = false;
|
|
450
|
-
continue;
|
|
451
|
-
} else {
|
|
452
|
-
return false;
|
|
453
|
-
}
|
|
454
|
-
} else if (!this.options.flex) {
|
|
455
|
-
break;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
if (match) {
|
|
460
|
-
token = this.test_match(match, rules[index]);
|
|
461
|
-
if (token !== false) {
|
|
462
|
-
return token;
|
|
463
|
-
}
|
|
464
|
-
return false;
|
|
465
|
-
}
|
|
466
|
-
if (this._input === "") {
|
|
467
|
-
return this.EOF;
|
|
468
|
-
} else {
|
|
469
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
470
|
-
text: "",
|
|
471
|
-
token: null,
|
|
472
|
-
line: this.yylineno
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
}, "next"),
|
|
476
|
-
// return next match that has a token
|
|
477
|
-
lex: /* @__PURE__ */ __name(function lex() {
|
|
478
|
-
var r = this.next();
|
|
479
|
-
if (r) {
|
|
480
|
-
return r;
|
|
481
|
-
} else {
|
|
482
|
-
return this.lex();
|
|
483
|
-
}
|
|
484
|
-
}, "lex"),
|
|
485
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
486
|
-
begin: /* @__PURE__ */ __name(function begin(condition) {
|
|
487
|
-
this.conditionStack.push(condition);
|
|
488
|
-
}, "begin"),
|
|
489
|
-
// pop the previously active lexer condition state off the condition stack
|
|
490
|
-
popState: /* @__PURE__ */ __name(function popState() {
|
|
491
|
-
var n = this.conditionStack.length - 1;
|
|
492
|
-
if (n > 0) {
|
|
493
|
-
return this.conditionStack.pop();
|
|
494
|
-
} else {
|
|
495
|
-
return this.conditionStack[0];
|
|
496
|
-
}
|
|
497
|
-
}, "popState"),
|
|
498
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
499
|
-
_currentRules: /* @__PURE__ */ __name(function _currentRules() {
|
|
500
|
-
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
501
|
-
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
502
|
-
} else {
|
|
503
|
-
return this.conditions["INITIAL"].rules;
|
|
504
|
-
}
|
|
505
|
-
}, "_currentRules"),
|
|
506
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
507
|
-
topState: /* @__PURE__ */ __name(function topState(n) {
|
|
508
|
-
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
509
|
-
if (n >= 0) {
|
|
510
|
-
return this.conditionStack[n];
|
|
511
|
-
} else {
|
|
512
|
-
return "INITIAL";
|
|
513
|
-
}
|
|
514
|
-
}, "topState"),
|
|
515
|
-
// alias for begin(condition)
|
|
516
|
-
pushState: /* @__PURE__ */ __name(function pushState(condition) {
|
|
517
|
-
this.begin(condition);
|
|
518
|
-
}, "pushState"),
|
|
519
|
-
// return the number of states currently on the stack
|
|
520
|
-
stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
|
|
521
|
-
return this.conditionStack.length;
|
|
522
|
-
}, "stateStackSize"),
|
|
523
|
-
options: { "case-insensitive": true },
|
|
524
|
-
performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
525
|
-
switch ($avoiding_name_collisions) {
|
|
526
|
-
case 0:
|
|
527
|
-
this.pushState("shapeData");
|
|
528
|
-
yy_.yytext = "";
|
|
529
|
-
return 24;
|
|
530
|
-
case 1:
|
|
531
|
-
this.pushState("shapeDataStr");
|
|
532
|
-
return 24;
|
|
533
|
-
case 2:
|
|
534
|
-
this.popState();
|
|
535
|
-
return 24;
|
|
536
|
-
case 3:
|
|
537
|
-
const re = /\n\s*/g;
|
|
538
|
-
yy_.yytext = yy_.yytext.replace(re, "<br/>");
|
|
539
|
-
return 24;
|
|
540
|
-
case 4:
|
|
541
|
-
return 24;
|
|
542
|
-
case 5:
|
|
543
|
-
this.popState();
|
|
544
|
-
break;
|
|
545
|
-
case 6:
|
|
546
|
-
yy.getLogger().trace("Found comment", yy_.yytext);
|
|
547
|
-
return 6;
|
|
548
|
-
case 7:
|
|
549
|
-
return 8;
|
|
550
|
-
case 8:
|
|
551
|
-
this.begin("CLASS");
|
|
552
|
-
break;
|
|
553
|
-
case 9:
|
|
554
|
-
this.popState();
|
|
555
|
-
return 17;
|
|
556
|
-
case 10:
|
|
557
|
-
this.popState();
|
|
558
|
-
break;
|
|
559
|
-
case 11:
|
|
560
|
-
yy.getLogger().trace("Begin icon");
|
|
561
|
-
this.begin("ICON");
|
|
562
|
-
break;
|
|
563
|
-
case 12:
|
|
564
|
-
yy.getLogger().trace("SPACELINE");
|
|
565
|
-
return 6;
|
|
566
|
-
case 13:
|
|
567
|
-
return 7;
|
|
568
|
-
case 14:
|
|
569
|
-
return 16;
|
|
570
|
-
case 15:
|
|
571
|
-
yy.getLogger().trace("end icon");
|
|
572
|
-
this.popState();
|
|
573
|
-
break;
|
|
574
|
-
case 16:
|
|
575
|
-
yy.getLogger().trace("Exploding node");
|
|
576
|
-
this.begin("NODE");
|
|
577
|
-
return 20;
|
|
578
|
-
case 17:
|
|
579
|
-
yy.getLogger().trace("Cloud");
|
|
580
|
-
this.begin("NODE");
|
|
581
|
-
return 20;
|
|
582
|
-
case 18:
|
|
583
|
-
yy.getLogger().trace("Explosion Bang");
|
|
584
|
-
this.begin("NODE");
|
|
585
|
-
return 20;
|
|
586
|
-
case 19:
|
|
587
|
-
yy.getLogger().trace("Cloud Bang");
|
|
588
|
-
this.begin("NODE");
|
|
589
|
-
return 20;
|
|
590
|
-
case 20:
|
|
591
|
-
this.begin("NODE");
|
|
592
|
-
return 20;
|
|
593
|
-
case 21:
|
|
594
|
-
this.begin("NODE");
|
|
595
|
-
return 20;
|
|
596
|
-
case 22:
|
|
597
|
-
this.begin("NODE");
|
|
598
|
-
return 20;
|
|
599
|
-
case 23:
|
|
600
|
-
this.begin("NODE");
|
|
601
|
-
return 20;
|
|
602
|
-
case 24:
|
|
603
|
-
return 13;
|
|
604
|
-
case 25:
|
|
605
|
-
return 23;
|
|
606
|
-
case 26:
|
|
607
|
-
return 11;
|
|
608
|
-
case 27:
|
|
609
|
-
this.begin("NSTR2");
|
|
610
|
-
break;
|
|
611
|
-
case 28:
|
|
612
|
-
return "NODE_DESCR";
|
|
613
|
-
case 29:
|
|
614
|
-
this.popState();
|
|
615
|
-
break;
|
|
616
|
-
case 30:
|
|
617
|
-
yy.getLogger().trace("Starting NSTR");
|
|
618
|
-
this.begin("NSTR");
|
|
619
|
-
break;
|
|
620
|
-
case 31:
|
|
621
|
-
yy.getLogger().trace("description:", yy_.yytext);
|
|
622
|
-
return "NODE_DESCR";
|
|
623
|
-
case 32:
|
|
624
|
-
this.popState();
|
|
625
|
-
break;
|
|
626
|
-
case 33:
|
|
627
|
-
this.popState();
|
|
628
|
-
yy.getLogger().trace("node end ))");
|
|
629
|
-
return "NODE_DEND";
|
|
630
|
-
case 34:
|
|
631
|
-
this.popState();
|
|
632
|
-
yy.getLogger().trace("node end )");
|
|
633
|
-
return "NODE_DEND";
|
|
634
|
-
case 35:
|
|
635
|
-
this.popState();
|
|
636
|
-
yy.getLogger().trace("node end ...", yy_.yytext);
|
|
637
|
-
return "NODE_DEND";
|
|
638
|
-
case 36:
|
|
639
|
-
this.popState();
|
|
640
|
-
yy.getLogger().trace("node end ((");
|
|
641
|
-
return "NODE_DEND";
|
|
642
|
-
case 37:
|
|
643
|
-
this.popState();
|
|
644
|
-
yy.getLogger().trace("node end (-");
|
|
645
|
-
return "NODE_DEND";
|
|
646
|
-
case 38:
|
|
647
|
-
this.popState();
|
|
648
|
-
yy.getLogger().trace("node end (-");
|
|
649
|
-
return "NODE_DEND";
|
|
650
|
-
case 39:
|
|
651
|
-
this.popState();
|
|
652
|
-
yy.getLogger().trace("node end ((");
|
|
653
|
-
return "NODE_DEND";
|
|
654
|
-
case 40:
|
|
655
|
-
this.popState();
|
|
656
|
-
yy.getLogger().trace("node end ((");
|
|
657
|
-
return "NODE_DEND";
|
|
658
|
-
case 41:
|
|
659
|
-
yy.getLogger().trace("Long description:", yy_.yytext);
|
|
660
|
-
return 21;
|
|
661
|
-
case 42:
|
|
662
|
-
yy.getLogger().trace("Long description:", yy_.yytext);
|
|
663
|
-
return 21;
|
|
664
|
-
}
|
|
665
|
-
}, "anonymous"),
|
|
666
|
-
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],
|
|
667
|
-
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 } }
|
|
668
|
-
};
|
|
669
|
-
return lexer2;
|
|
670
|
-
}();
|
|
671
|
-
parser2.lexer = lexer;
|
|
672
|
-
function Parser() {
|
|
673
|
-
this.yy = {};
|
|
674
|
-
}
|
|
675
|
-
__name(Parser, "Parser");
|
|
676
|
-
Parser.prototype = parser2;
|
|
677
|
-
parser2.Parser = Parser;
|
|
678
|
-
return new Parser();
|
|
679
|
-
}();
|
|
680
|
-
parser.parser = parser;
|
|
681
|
-
var kanban_default = parser;
|
|
682
|
-
var nodes = [];
|
|
683
|
-
var sections = [];
|
|
684
|
-
var cnt = 0;
|
|
685
|
-
var elements = {};
|
|
686
|
-
var clear = /* @__PURE__ */ __name(() => {
|
|
687
|
-
nodes = [];
|
|
688
|
-
sections = [];
|
|
689
|
-
cnt = 0;
|
|
690
|
-
elements = {};
|
|
691
|
-
}, "clear");
|
|
692
|
-
var getSection = /* @__PURE__ */ __name((level) => {
|
|
693
|
-
if (nodes.length === 0) {
|
|
694
|
-
return null;
|
|
695
|
-
}
|
|
696
|
-
const sectionLevel = nodes[0].level;
|
|
697
|
-
let lastSection = null;
|
|
698
|
-
for (let i = nodes.length - 1; i >= 0; i--) {
|
|
699
|
-
if (nodes[i].level === sectionLevel && !lastSection) {
|
|
700
|
-
lastSection = nodes[i];
|
|
701
|
-
}
|
|
702
|
-
if (nodes[i].level < sectionLevel) {
|
|
703
|
-
throw new Error('Items without section detected, found section ("' + nodes[i].label + '")');
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
if (level === lastSection?.level) {
|
|
707
|
-
return null;
|
|
708
|
-
}
|
|
709
|
-
return lastSection;
|
|
710
|
-
}, "getSection");
|
|
711
|
-
var getSections = /* @__PURE__ */ __name(function() {
|
|
712
|
-
return sections;
|
|
713
|
-
}, "getSections");
|
|
714
|
-
var getData = /* @__PURE__ */ __name(function() {
|
|
715
|
-
const edges = [];
|
|
716
|
-
const _nodes = [];
|
|
717
|
-
const sections2 = getSections();
|
|
718
|
-
const conf = getConfig2();
|
|
719
|
-
for (const section of sections2) {
|
|
720
|
-
const node = {
|
|
721
|
-
id: section.id,
|
|
722
|
-
label: sanitizeText(section.label ?? "", conf),
|
|
723
|
-
isGroup: true,
|
|
724
|
-
ticket: section.ticket,
|
|
725
|
-
shape: "kanbanSection",
|
|
726
|
-
level: section.level,
|
|
727
|
-
look: conf.look
|
|
728
|
-
};
|
|
729
|
-
_nodes.push(node);
|
|
730
|
-
const children = nodes.filter((n) => n.parentId === section.id);
|
|
731
|
-
for (const item of children) {
|
|
732
|
-
const childNode = {
|
|
733
|
-
id: item.id,
|
|
734
|
-
parentId: section.id,
|
|
735
|
-
label: sanitizeText(item.label ?? "", conf),
|
|
736
|
-
isGroup: false,
|
|
737
|
-
ticket: item?.ticket,
|
|
738
|
-
priority: item?.priority,
|
|
739
|
-
assigned: item?.assigned,
|
|
740
|
-
icon: item?.icon,
|
|
741
|
-
shape: "kanbanItem",
|
|
742
|
-
level: item.level,
|
|
743
|
-
rx: 5,
|
|
744
|
-
ry: 5,
|
|
745
|
-
cssStyles: ["text-align: left"]
|
|
746
|
-
};
|
|
747
|
-
_nodes.push(childNode);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
return { nodes: _nodes, edges, other: {}, config: getConfig2() };
|
|
751
|
-
}, "getData");
|
|
752
|
-
var addNode = /* @__PURE__ */ __name((level, id, descr, type, shapeData) => {
|
|
753
|
-
const conf = getConfig2();
|
|
754
|
-
let padding = conf.mindmap?.padding ?? defaultConfig_default.mindmap.padding;
|
|
755
|
-
switch (type) {
|
|
756
|
-
case nodeType.ROUNDED_RECT:
|
|
757
|
-
case nodeType.RECT:
|
|
758
|
-
case nodeType.HEXAGON:
|
|
759
|
-
padding *= 2;
|
|
760
|
-
}
|
|
761
|
-
const node = {
|
|
762
|
-
id: sanitizeText(id, conf) || "kbn" + cnt++,
|
|
763
|
-
level,
|
|
764
|
-
label: sanitizeText(descr, conf),
|
|
765
|
-
width: conf.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,
|
|
766
|
-
padding,
|
|
767
|
-
isGroup: false
|
|
768
|
-
};
|
|
769
|
-
if (shapeData !== void 0) {
|
|
770
|
-
let yamlData;
|
|
771
|
-
if (!shapeData.includes("\n")) {
|
|
772
|
-
yamlData = "{\n" + shapeData + "\n}";
|
|
773
|
-
} else {
|
|
774
|
-
yamlData = shapeData + "\n";
|
|
775
|
-
}
|
|
776
|
-
const doc = load(yamlData, { schema: JSON_SCHEMA });
|
|
777
|
-
if (doc.shape && (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_"))) {
|
|
778
|
-
throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
|
|
779
|
-
}
|
|
780
|
-
if (doc?.shape && doc.shape === "kanbanItem") {
|
|
781
|
-
node.shape = doc?.shape;
|
|
782
|
-
}
|
|
783
|
-
if (doc?.label) {
|
|
784
|
-
node.label = doc?.label;
|
|
785
|
-
}
|
|
786
|
-
if (doc?.icon) {
|
|
787
|
-
node.icon = doc?.icon.toString();
|
|
788
|
-
}
|
|
789
|
-
if (doc?.assigned) {
|
|
790
|
-
node.assigned = doc?.assigned.toString();
|
|
791
|
-
}
|
|
792
|
-
if (doc?.ticket) {
|
|
793
|
-
node.ticket = doc?.ticket.toString();
|
|
794
|
-
}
|
|
795
|
-
if (doc?.priority) {
|
|
796
|
-
node.priority = doc?.priority;
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
const section = getSection(level);
|
|
800
|
-
if (section) {
|
|
801
|
-
node.parentId = section.id || "kbn" + cnt++;
|
|
802
|
-
} else {
|
|
803
|
-
sections.push(node);
|
|
804
|
-
}
|
|
805
|
-
nodes.push(node);
|
|
806
|
-
}, "addNode");
|
|
807
|
-
var nodeType = {
|
|
808
|
-
DEFAULT: 0,
|
|
809
|
-
NO_BORDER: 0,
|
|
810
|
-
ROUNDED_RECT: 1,
|
|
811
|
-
RECT: 2,
|
|
812
|
-
CIRCLE: 3,
|
|
813
|
-
CLOUD: 4,
|
|
814
|
-
BANG: 5,
|
|
815
|
-
HEXAGON: 6
|
|
816
|
-
};
|
|
817
|
-
var getType = /* @__PURE__ */ __name((startStr, endStr) => {
|
|
818
|
-
log.debug("In get type", startStr, endStr);
|
|
819
|
-
switch (startStr) {
|
|
820
|
-
case "[":
|
|
821
|
-
return nodeType.RECT;
|
|
822
|
-
case "(":
|
|
823
|
-
return endStr === ")" ? nodeType.ROUNDED_RECT : nodeType.CLOUD;
|
|
824
|
-
case "((":
|
|
825
|
-
return nodeType.CIRCLE;
|
|
826
|
-
case ")":
|
|
827
|
-
return nodeType.CLOUD;
|
|
828
|
-
case "))":
|
|
829
|
-
return nodeType.BANG;
|
|
830
|
-
case "{{":
|
|
831
|
-
return nodeType.HEXAGON;
|
|
832
|
-
default:
|
|
833
|
-
return nodeType.DEFAULT;
|
|
834
|
-
}
|
|
835
|
-
}, "getType");
|
|
836
|
-
var setElementForId = /* @__PURE__ */ __name((id, element) => {
|
|
837
|
-
elements[id] = element;
|
|
838
|
-
}, "setElementForId");
|
|
839
|
-
var decorateNode = /* @__PURE__ */ __name((decoration) => {
|
|
840
|
-
if (!decoration) {
|
|
841
|
-
return;
|
|
842
|
-
}
|
|
843
|
-
const config = getConfig2();
|
|
844
|
-
const node = nodes[nodes.length - 1];
|
|
845
|
-
if (decoration.icon) {
|
|
846
|
-
node.icon = sanitizeText(decoration.icon, config);
|
|
847
|
-
}
|
|
848
|
-
if (decoration.class) {
|
|
849
|
-
node.cssClasses = sanitizeText(decoration.class, config);
|
|
850
|
-
}
|
|
851
|
-
}, "decorateNode");
|
|
852
|
-
var type2Str = /* @__PURE__ */ __name((type) => {
|
|
853
|
-
switch (type) {
|
|
854
|
-
case nodeType.DEFAULT:
|
|
855
|
-
return "no-border";
|
|
856
|
-
case nodeType.RECT:
|
|
857
|
-
return "rect";
|
|
858
|
-
case nodeType.ROUNDED_RECT:
|
|
859
|
-
return "rounded-rect";
|
|
860
|
-
case nodeType.CIRCLE:
|
|
861
|
-
return "circle";
|
|
862
|
-
case nodeType.CLOUD:
|
|
863
|
-
return "cloud";
|
|
864
|
-
case nodeType.BANG:
|
|
865
|
-
return "bang";
|
|
866
|
-
case nodeType.HEXAGON:
|
|
867
|
-
return "hexgon";
|
|
868
|
-
// cspell: disable-line
|
|
869
|
-
default:
|
|
870
|
-
return "no-border";
|
|
871
|
-
}
|
|
872
|
-
}, "type2Str");
|
|
873
|
-
var getLogger = /* @__PURE__ */ __name(() => log, "getLogger");
|
|
874
|
-
var getElementById = /* @__PURE__ */ __name((id) => elements[id], "getElementById");
|
|
875
|
-
var db = {
|
|
876
|
-
clear,
|
|
877
|
-
addNode,
|
|
878
|
-
getSections,
|
|
879
|
-
getData,
|
|
880
|
-
nodeType,
|
|
881
|
-
getType,
|
|
882
|
-
setElementForId,
|
|
883
|
-
decorateNode,
|
|
884
|
-
type2Str,
|
|
885
|
-
getLogger,
|
|
886
|
-
getElementById
|
|
887
|
-
};
|
|
888
|
-
var kanbanDb_default = db;
|
|
889
|
-
var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
|
|
890
|
-
log.debug("Rendering kanban diagram\n" + text);
|
|
891
|
-
const db2 = diagObj.db;
|
|
892
|
-
const data4Layout = db2.getData();
|
|
893
|
-
const conf = getConfig2();
|
|
894
|
-
conf.htmlLabels = false;
|
|
895
|
-
const svg = selectSvgElement(id);
|
|
896
|
-
const sectionsElem = svg.append("g");
|
|
897
|
-
sectionsElem.attr("class", "sections");
|
|
898
|
-
const nodesElem = svg.append("g");
|
|
899
|
-
nodesElem.attr("class", "items");
|
|
900
|
-
const sections2 = data4Layout.nodes.filter(
|
|
901
|
-
// TODO: TypeScript 5.5 will infer this predicate automatically
|
|
902
|
-
(node) => node.isGroup
|
|
903
|
-
);
|
|
904
|
-
let cnt2 = 0;
|
|
905
|
-
const padding = 10;
|
|
906
|
-
const sectionObjects = [];
|
|
907
|
-
let maxLabelHeight = 25;
|
|
908
|
-
for (const section of sections2) {
|
|
909
|
-
const WIDTH = conf?.kanban?.sectionWidth || 200;
|
|
910
|
-
cnt2 = cnt2 + 1;
|
|
911
|
-
section.x = WIDTH * cnt2 + (cnt2 - 1) * padding / 2;
|
|
912
|
-
section.width = WIDTH;
|
|
913
|
-
section.y = 0;
|
|
914
|
-
section.height = WIDTH * 3;
|
|
915
|
-
section.rx = 5;
|
|
916
|
-
section.ry = 5;
|
|
917
|
-
section.cssClasses = section.cssClasses + " section-" + cnt2;
|
|
918
|
-
const sectionObj = await insertCluster(sectionsElem, section);
|
|
919
|
-
maxLabelHeight = Math.max(maxLabelHeight, sectionObj?.labelBBox?.height);
|
|
920
|
-
sectionObjects.push(sectionObj);
|
|
921
|
-
}
|
|
922
|
-
let i = 0;
|
|
923
|
-
for (const section of sections2) {
|
|
924
|
-
const sectionObj = sectionObjects[i];
|
|
925
|
-
i = i + 1;
|
|
926
|
-
const WIDTH = conf?.kanban?.sectionWidth || 200;
|
|
927
|
-
const top = -WIDTH * 3 / 2 + maxLabelHeight;
|
|
928
|
-
let y = top;
|
|
929
|
-
const sectionItems = data4Layout.nodes.filter((node) => node.parentId === section.id);
|
|
930
|
-
for (const item of sectionItems) {
|
|
931
|
-
if (item.isGroup) {
|
|
932
|
-
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
933
|
-
}
|
|
934
|
-
item.x = section.x;
|
|
935
|
-
item.width = WIDTH - 1.5 * padding;
|
|
936
|
-
const nodeEl = await insertNode(nodesElem, item, { config: conf });
|
|
937
|
-
const bbox = nodeEl.node().getBBox();
|
|
938
|
-
item.y = y + bbox.height / 2;
|
|
939
|
-
await positionNode(item);
|
|
940
|
-
y = item.y + bbox.height / 2 + padding / 2;
|
|
941
|
-
}
|
|
942
|
-
const rect = sectionObj.cluster.select("rect");
|
|
943
|
-
const height = Math.max(y - top + 3 * padding, 50) + (maxLabelHeight - 25);
|
|
944
|
-
rect.attr("height", height);
|
|
945
|
-
}
|
|
946
|
-
setupGraphViewbox(
|
|
947
|
-
void 0,
|
|
948
|
-
svg,
|
|
949
|
-
conf.mindmap?.padding ?? defaultConfig_default.kanban.padding,
|
|
950
|
-
conf.mindmap?.useMaxWidth ?? defaultConfig_default.kanban.useMaxWidth
|
|
951
|
-
);
|
|
952
|
-
}, "draw");
|
|
953
|
-
var kanbanRenderer_default = {
|
|
954
|
-
draw
|
|
955
|
-
};
|
|
956
|
-
var genSections = /* @__PURE__ */ __name((options) => {
|
|
957
|
-
let sections2 = "";
|
|
958
|
-
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
|
|
959
|
-
options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
|
|
960
|
-
if (is_dark_default(options["lineColor" + i])) {
|
|
961
|
-
options["lineColor" + i] = lighten_default(options["lineColor" + i], 20);
|
|
962
|
-
} else {
|
|
963
|
-
options["lineColor" + i] = darken_default(options["lineColor" + i], 20);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
const adjuster = /* @__PURE__ */ __name((color, level) => options.darkMode ? darken_default(color, level) : lighten_default(color, level), "adjuster");
|
|
967
|
-
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
|
|
968
|
-
const sw = "" + (17 - 3 * i);
|
|
969
|
-
sections2 += `
|
|
970
|
-
.section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
|
|
971
|
-
fill: ${adjuster(options["cScale" + i], 10)};
|
|
972
|
-
stroke: ${adjuster(options["cScale" + i], 10)};
|
|
973
|
-
|
|
974
|
-
}
|
|
975
|
-
.section-${i - 1} text {
|
|
976
|
-
fill: ${options["cScaleLabel" + i]};
|
|
977
|
-
}
|
|
978
|
-
.node-icon-${i - 1} {
|
|
979
|
-
font-size: 40px;
|
|
980
|
-
color: ${options["cScaleLabel" + i]};
|
|
981
|
-
}
|
|
982
|
-
.section-edge-${i - 1}{
|
|
983
|
-
stroke: ${options["cScale" + i]};
|
|
984
|
-
}
|
|
985
|
-
.edge-depth-${i - 1}{
|
|
986
|
-
stroke-width: ${sw};
|
|
987
|
-
}
|
|
988
|
-
.section-${i - 1} line {
|
|
989
|
-
stroke: ${options["cScaleInv" + i]} ;
|
|
990
|
-
stroke-width: 3;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.disabled, .disabled circle, .disabled text {
|
|
994
|
-
fill: lightgray;
|
|
995
|
-
}
|
|
996
|
-
.disabled text {
|
|
997
|
-
fill: #efefef;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
.node rect,
|
|
1001
|
-
.node circle,
|
|
1002
|
-
.node ellipse,
|
|
1003
|
-
.node polygon,
|
|
1004
|
-
.node path {
|
|
1005
|
-
fill: ${options.background};
|
|
1006
|
-
stroke: ${options.nodeBorder};
|
|
1007
|
-
stroke-width: 1px;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
.kanban-ticket-link {
|
|
1011
|
-
fill: ${options.background};
|
|
1012
|
-
stroke: ${options.nodeBorder};
|
|
1013
|
-
text-decoration: underline;
|
|
1014
|
-
}
|
|
1015
|
-
`;
|
|
1016
|
-
}
|
|
1017
|
-
return sections2;
|
|
1018
|
-
}, "genSections");
|
|
1019
|
-
var getStyles = /* @__PURE__ */ __name((options) => `
|
|
1020
|
-
.edge {
|
|
1021
|
-
stroke-width: 3;
|
|
1022
|
-
}
|
|
1023
|
-
${genSections(options)}
|
|
1024
|
-
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
1025
|
-
fill: ${options.git0};
|
|
1026
|
-
}
|
|
1027
|
-
.section-root text {
|
|
1028
|
-
fill: ${options.gitBranchLabel0};
|
|
1029
|
-
}
|
|
1030
|
-
.icon-container {
|
|
1031
|
-
height:100%;
|
|
1032
|
-
display: flex;
|
|
1033
|
-
justify-content: center;
|
|
1034
|
-
align-items: center;
|
|
1035
|
-
}
|
|
1036
|
-
.edge {
|
|
1037
|
-
fill: none;
|
|
1038
|
-
}
|
|
1039
|
-
.cluster-label, .label {
|
|
1040
|
-
color: ${options.textColor};
|
|
1041
|
-
fill: ${options.textColor};
|
|
1042
|
-
}
|
|
1043
|
-
.kanban-label {
|
|
1044
|
-
dy: 1em;
|
|
1045
|
-
alignment-baseline: middle;
|
|
1046
|
-
text-anchor: middle;
|
|
1047
|
-
dominant-baseline: middle;
|
|
1048
|
-
text-align: center;
|
|
1049
|
-
}
|
|
1050
|
-
${getIconStyles()}
|
|
1051
|
-
`, "getStyles");
|
|
1052
|
-
var styles_default = getStyles;
|
|
1053
|
-
var diagram = {
|
|
1054
|
-
db: kanbanDb_default,
|
|
1055
|
-
renderer: kanbanRenderer_default,
|
|
1056
|
-
parser: kanban_default,
|
|
1057
|
-
styles: styles_default
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
export { diagram };
|
|
1061
|
-
//# sourceMappingURL=kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map
|
|
1062
|
-
//# sourceMappingURL=kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map
|