@aiquants/markdown 9.0.1 → 11.0.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.
- package/README.md +161 -52
- package/dist/{abnfDiagram-VRR7QNED-CqzHEoGP.js → abnfDiagram-VRR7QNED-CxQnFjoJ.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-CfcidEeF.cjs → abnfDiagram-VRR7QNED-npWEsqYc.cjs} +1 -1
- package/dist/{arc-CIHnI5Tn.js → arc-8h1FB6uq.js} +20 -20
- package/dist/{arc-BD-XC8JG.cjs → arc-CUfL06Yf.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-CLgC4ySs.cjs → architectureDiagram-ZJ3FMSHR-B20pDRbn.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-CX5DaRgk.js → architectureDiagram-ZJ3FMSHR-B3AN9LVb.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-B45jR5Ef.cjs → blockDiagram-677ZJIJ3-BpyvdB6a.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-BVvPQ2BZ.js → blockDiagram-677ZJIJ3-Cyl2Lsxi.js} +3 -3
- package/dist/{c4Diagram-LMCZKHZV-CmpNmuYQ.js → c4Diagram-LMCZKHZV-B1v06ANz.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-CUgZ93IA.cjs → c4Diagram-LMCZKHZV-C9aMoZww.cjs} +1 -1
- package/dist/{channel-CCNoIO-n.cjs → channel-BFKA8ne6.cjs} +1 -1
- package/dist/{channel-CJnvKaiK.js → channel-DHWInoX5.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-CGvZIrla.cjs → chunk-2Q5K7J3B-CKQJDnvh.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-DI5NSXs3.js → chunk-2Q5K7J3B-Hkei_N8G.js} +1 -1
- package/dist/{chunk-32BRIVSS-DBxZTCPU.js → chunk-32BRIVSS-BVjoQVFd.js} +1 -1
- package/dist/{chunk-32BRIVSS-Buxmelj1.cjs → chunk-32BRIVSS-BegSeeKc.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-DJudqxeH.cjs → chunk-5VM5RSS4-BQ9OvvVm.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-B3vhx_6_.js → chunk-5VM5RSS4-Bwvu3ZQn.js} +1 -1
- package/dist/{chunk-EX3LRPZG-BYk-yeom.cjs → chunk-EX3LRPZG-Bj_q1v7R.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-3mU4tF-T.js → chunk-EX3LRPZG-Bz5BV4Fn.js} +4 -4
- package/dist/{chunk-JWPE2WC7-05_7DU1b.js → chunk-JWPE2WC7-C01naS5D.js} +1 -1
- package/dist/{chunk-JWPE2WC7-CF8PY84Z.cjs → chunk-JWPE2WC7-CZGO5NQs.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-MX6h9dRz.js → chunk-MOJQB5TN-C3Hq75Zv.js} +10 -10
- package/dist/{chunk-MOJQB5TN-C1PxO_ZB.cjs → chunk-MOJQB5TN-DFFX8TKc.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-nwjWRhQa.cjs → chunk-PUDLZKDR-2MWL0ZoW.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-CEaKE3Nm.js → chunk-PUDLZKDR-Sz0OB5IT.js} +6 -6
- package/dist/{chunk-RYQCIY6F-DCzkxbV-.js → chunk-RYQCIY6F-CBI5EYhC.js} +12 -12
- package/dist/{chunk-RYQCIY6F-0Xvnmozd.cjs → chunk-RYQCIY6F-CSDblZx6.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-9kUlPSlw.js → chunk-V7JOEXUC-Br5K_lDL.js} +15 -15
- package/dist/{chunk-V7JOEXUC-DJ6NOMBh.cjs → chunk-V7JOEXUC-D3Y19ZhK.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-DTcdZAIy.js → chunk-VR4S4FIN-CQXol07w.js} +3 -3
- package/dist/{chunk-VR4S4FIN-DjgjZOol.cjs → chunk-VR4S4FIN-DjxDq6sN.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-BSD7H18E.js → chunk-XXDRQBXY--FT3CTeH.js} +1 -1
- package/dist/{chunk-XXDRQBXY-BAN-bNyU.cjs → chunk-XXDRQBXY-DwP8HH5V.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-CAVtDASr.js → classDiagram-OUVF2IWQ-HKTI1J11.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-D9dkL55K.cjs → classDiagram-OUVF2IWQ-WUNGB5FC.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-CAVtDASr.js → classDiagram-v2-EOCWNBFH-HKTI1J11.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-D9dkL55K.cjs → classDiagram-v2-EOCWNBFH-WUNGB5FC.cjs} +1 -1
- package/dist/code-blocks-Bax5Xik7.cjs +4 -0
- package/dist/code-blocks-bgwDIVp1.js +267 -0
- package/dist/code-blocks.cjs +1 -1
- package/dist/code-blocks.d.ts +15 -1
- package/dist/code-blocks.js +19 -34
- package/dist/components/SpreadsheetBlock.d.ts +8 -2
- package/dist/components/SpreadsheetToolbar.d.ts +20 -2
- package/dist/components/blockKeys.d.ts +14 -0
- package/dist/components/controlStyles.d.ts +2 -1
- package/dist/components/spreadsheetClipboard.d.ts +1 -1
- package/dist/components/spreadsheetLabels.d.ts +13 -0
- package/dist/components/spreadsheetModel.d.ts +13 -8
- package/dist/components/toolbar.d.ts +25 -0
- package/dist/components/viewerLabels.d.ts +5 -2
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-aJGIpkTB.js → cose-bilkent-JH36ORCC-BYqXiffa.js} +5 -5
- package/dist/{cose-bilkent-JH36ORCC-KQT29htQ.cjs → cose-bilkent-JH36ORCC-X2Leg8js.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-C_rGUs0a.cjs → cynefinDiagram-TSTJHNR4-DYAvR3E8.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-C3F_WdyT.js → cynefinDiagram-TSTJHNR4-YATbGDfo.js} +47 -47
- package/dist/{dagre-VKFMJZFB-CrmCHDPv.js → dagre-VKFMJZFB-Co2RmhO1.js} +20 -20
- package/dist/{dagre-VKFMJZFB-Bn_WdZ6A.cjs → dagre-VKFMJZFB-yjrP1oXL.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-B8Bka9S6.cjs → diagram-FQU43EPY-DVts5oXk.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-DuJ6IxJz.js → diagram-FQU43EPY-DfigqQP9.js} +2 -2
- package/dist/{diagram-G47NLZAW-D--MA_nT.cjs → diagram-G47NLZAW-Cave3JO_.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-3UXM5joI.js → diagram-G47NLZAW-k5OpX3J4.js} +38 -38
- package/dist/{diagram-NH7WQ7WH-Cqc8orqE.cjs → diagram-NH7WQ7WH-ByEOvB5o.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-CtH8Gdkl.js → diagram-NH7WQ7WH-DDA_wiMC.js} +20 -20
- package/dist/{diagram-OA4YK3LP-DfKPIPFJ.cjs → diagram-OA4YK3LP-C85REJhK.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-CWRyqD4L.js → diagram-OA4YK3LP-DR63MTHd.js} +58 -58
- package/dist/{diagram-WEI45ONY-BYMVLI0Q.cjs → diagram-WEI45ONY-9_82j2nL.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-C0OrOx2a.js → diagram-WEI45ONY-DKy9LVdb.js} +10 -10
- package/dist/{ebnfDiagram-CCIWWBDH-DZKq52yC.cjs → ebnfDiagram-CCIWWBDH-CYd0AUSE.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-CQ7558AK.js → ebnfDiagram-CCIWWBDH-Cn6FnIur.js} +5 -5
- package/dist/{erDiagram-Q63AITRT-CsCp6RSB.js → erDiagram-Q63AITRT-BF_5IEpU.js} +9 -9
- package/dist/{erDiagram-Q63AITRT-CzkYgQ0q.cjs → erDiagram-Q63AITRT-CMIoja24.cjs} +1 -1
- package/dist/{extractHeadings-BUjTmniO.js → extractHeadings-DZi9v6vp.js} +8478 -8138
- package/dist/extractHeadings-sSLGzcdt.cjs +315 -0
- package/dist/fencedBlockLines.d.ts +36 -0
- package/dist/flowDiagram-23GEKE2U-BCDxgNfH.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DDbv1eCW.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-BVnjew_C.js → ganttDiagram-NO4QXBWP-DEnf80Mq.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-7oIdk62h.cjs → ganttDiagram-NO4QXBWP-Drcm5yEd.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-BufmbyyT.cjs → gitGraphDiagram-IHSO6WYX-GII6PPu9.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-fP0zuss4.js → gitGraphDiagram-IHSO6WYX-eyfAn5cz.js} +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +2 -2
- package/dist/index.client.js +37 -35
- package/dist/index.js +37 -35
- package/dist/{infoDiagram-FWYZ7A6U-DerCFmks.cjs → infoDiagram-FWYZ7A6U-C2FBPXIG.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-DzsSutoh.js → infoDiagram-FWYZ7A6U-DPC7xHqx.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-BN-byOYP.cjs → ishikawaDiagram-FXEZZL3T-CJVI_dU0.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-BZ_ric9v.js → ishikawaDiagram-FXEZZL3T-DqNbTlei.js} +25 -25
- package/dist/{journeyDiagram-5HDEW3XC-C7iTlBhN.cjs → journeyDiagram-5HDEW3XC-DiVOEWa6.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-CfZ11aJu.js → journeyDiagram-5HDEW3XC-DuKx5oFy.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-BNNQtqj9.cjs → kanban-definition-HUTT4EX6-BklyDLxL.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-De7q9Kj3.js → kanban-definition-HUTT4EX6-DezliCFs.js} +52 -52
- package/dist/{linear-Bh2aX99D.js → linear-CdYfVjua.js} +5 -5
- package/dist/{linear-D8TLf9nV.cjs → linear-w1JR48Qh.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-3bksVDiB.js → mindmap-definition-LN4V7U3C-7q4b7Jdd.js} +16 -16
- package/dist/{mindmap-definition-LN4V7U3C-CmbdSctZ.cjs → mindmap-definition-LN4V7U3C-BlvTH7wL.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-ffi6qFEn.js → pegDiagram-2B236MQR-BPY_9I4m.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-BWozQII1.cjs → pegDiagram-2B236MQR-DirAhjr9.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-DfTgyWpG.cjs → pieDiagram-ENE6RG2P-CLMNCcZD.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-De3q_Av5.js → pieDiagram-ENE6RG2P-L4j2AB7Y.js} +51 -51
- package/dist/{quadrantDiagram-ABIIQ3AL-CP7NgI8w.js → quadrantDiagram-ABIIQ3AL-B9uzT4Zl.js} +43 -43
- package/dist/{quadrantDiagram-ABIIQ3AL-BZF5Z12H.cjs → quadrantDiagram-ABIIQ3AL-lyExQfuw.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-BuWP-rUP.js → railroadDiagram-RFXS5EU6-BgW-4T7B.js} +7 -7
- package/dist/{railroadDiagram-RFXS5EU6-Cui5Nx7p.cjs → railroadDiagram-RFXS5EU6-u2Ztkufm.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-DOEubcGx.js → requirementDiagram-TGXJPOKE-BnyCTa79.js} +18 -18
- package/dist/{requirementDiagram-TGXJPOKE-C-WJSUrB.cjs → requirementDiagram-TGXJPOKE-Cm9r8e07.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-BrD3GLG6.js → sankeyDiagram-HTMAVEWB-Cv3KCrBX.js} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CyT8wRcS.cjs → sankeyDiagram-HTMAVEWB-KJ5WdXGw.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CT6w_sxa.js → sequenceDiagram-DBY2YBRQ-CUa9htwo.js} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-DmNBUeEN.cjs → sequenceDiagram-DBY2YBRQ-DYXMeMoq.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-h_Xsq3-D.cjs → sizeCapture-X5ZJPWSS-C4RUlRk2.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-Dt-2lcQO.js → sizeCapture-X5ZJPWSS-D0cfhTVe.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-C9dyCEcu.cjs → stateDiagram-2N3HPSRC-C4DOBTHC.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CjJrf8oq.js → stateDiagram-2N3HPSRC-CUQCdjYa.js} +10 -10
- package/dist/{stateDiagram-v2-6OUMAXLB-BhwjG0NA.cjs → stateDiagram-v2-6OUMAXLB-BK27mYqW.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-APLiC-KL.js → stateDiagram-v2-6OUMAXLB-C1Fb_pKt.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-Dlu3b_xG.js → swimlanes-5IMT3BWC-DUPAete1.js} +313 -313
- package/dist/{swimlanes-5IMT3BWC-DRPswRoa.cjs → swimlanes-5IMT3BWC-DZLnPVID.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-CX2jbFCF.js → swimlanesDiagram-G3AALYLV-BrpRN3Vb.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-VAEv3KP_.cjs → swimlanesDiagram-G3AALYLV-CMa-ZboO.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-Ct68OfPR.js → timeline-definition-FHXFAJF6-DC2SJZSb.js} +108 -108
- package/dist/{timeline-definition-FHXFAJF6-C6xF4zqV.cjs → timeline-definition-FHXFAJF6-wvuHQLus.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-CUaYoUAd.cjs → vennDiagram-L72KCM5P-DbIG-wm1.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-BfTAjs8X.js → vennDiagram-L72KCM5P-HK22xYss.js} +101 -101
- package/dist/{wardleyDiagram-EHGQE667-Cp3kY_DT.cjs → wardleyDiagram-EHGQE667-BN2PkxRg.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-2foz0EAt.js → wardleyDiagram-EHGQE667-JHC6pqAp.js} +85 -85
- package/dist/{xychartDiagram-FW5EYKEG-CDkSOK02.cjs → xychartDiagram-FW5EYKEG-CMRlyJDS.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-B3dGYiSE.js → xychartDiagram-FW5EYKEG-DNLQTD-2.js} +40 -40
- package/package.json +11 -11
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -115
- package/dist/extractHeadings-Dkf-aqDu.cjs +0 -314
- package/dist/flowDiagram-23GEKE2U-DwEDOisR.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-aboipivB.js +0 -7
package/dist/index.js
CHANGED
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import {
|
|
1
|
+
import { B as o, C as s, D as r, a as t, b as d, c as n, d as N, E, F as L, e as A, f as T, H as m, g as _, I as i, h as k, L as D, i as S, j as M, M as l, k as I, l as B, N as R, P as C, S as g, m as c, T as F, n as H, o as O, p, Z as f, q as h, r as x, s as P, t as U, u as w, v as K, w as b, x as u, y as G, z as W } from "./extractHeadings-DZi9v6vp.js";
|
|
2
|
+
import { S as q, a as z } from "./code-blocks-bgwDIVp1.js";
|
|
3
|
+
import { CONTENT_ALIGNS as j, DEFAULT_CONTENT_ALIGN as v, DEFAULT_MARKDOWN_STYLES as y, toContentAlign as Y } from "./viewer-settings.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
o as BlockquoteNode,
|
|
6
|
+
j as CONTENT_ALIGNS,
|
|
7
|
+
s as CodeNode,
|
|
8
|
+
v as DEFAULT_CONTENT_ALIGN,
|
|
8
9
|
r as DEFAULT_MARKDOWN_EMBED_LABELS,
|
|
9
|
-
|
|
10
|
+
y as DEFAULT_MARKDOWN_STYLES,
|
|
10
11
|
t as DEFAULT_MARKDOWN_VIEWER_LABELS,
|
|
11
12
|
d as DEFAULT_MERMAID_DIAGRAM_LABELS,
|
|
12
13
|
n as DEFAULT_MERMAID_INTERACTION,
|
|
13
14
|
N as DeleteNode,
|
|
14
|
-
|
|
15
|
+
E as EmphasisNode,
|
|
15
16
|
L as FootnoteBackLinkNode,
|
|
16
|
-
|
|
17
|
+
A as FootnoteReferenceNode,
|
|
17
18
|
T as FootnotesSection,
|
|
18
19
|
m as HeadingNode,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
_ as HostedScrollArea,
|
|
21
|
+
i as ImageNode,
|
|
22
|
+
k as InlineCodeNode,
|
|
22
23
|
D as LinkNode,
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
S as ListItemNode,
|
|
25
|
+
M as ListNode,
|
|
25
26
|
l as MarkdownRenderer,
|
|
26
27
|
I as MarkdownViewer,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
B as MermaidDiagram,
|
|
29
|
+
R as NodesRenderer,
|
|
30
|
+
C as ParagraphNode,
|
|
31
|
+
q as SPREADSHEET_BLOCK_LABEL_CATALOGS,
|
|
32
|
+
z as SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS,
|
|
33
|
+
g as SpreadsheetBlock,
|
|
34
|
+
c as StrongNode,
|
|
35
|
+
F as TableNode,
|
|
36
|
+
H as TableOfContents,
|
|
37
|
+
O as TextNode,
|
|
36
38
|
p as ThematicBreakNode,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
f as ZennDetailsNode,
|
|
40
|
+
h as ZennMessageNode,
|
|
41
|
+
x as extractHeadings,
|
|
42
|
+
P as remarkCustomHeadingId,
|
|
43
|
+
U as remarkFootnoteBackLink,
|
|
44
|
+
w as remarkHtmlAnchorToLink,
|
|
45
|
+
K as remarkHtmlInHtml,
|
|
46
|
+
b as remarkImageSize,
|
|
47
|
+
u as remarkParentNode,
|
|
48
|
+
G as remarkZennMessage,
|
|
49
|
+
Y as toContentAlign,
|
|
50
|
+
W as useMarkdownToolbarState
|
|
49
51
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-sSLGzcdt.cjs"),s=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var i={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},o={version:"11.16.0"},g=e.__name(()=>o.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:i,db:d,renderer:c};exports.diagram=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e,
|
|
1
|
+
import { _ as e, R as s, am as o, U as i } from "./extractHeadings-DZi9v6vp.js";
|
|
2
2
|
import { p as g } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
3
3
|
var p = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
package/dist/{ishikawaDiagram-FXEZZL3T-BN-byOYP.cjs → ishikawaDiagram-FXEZZL3T-CJVI_dU0.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-sSLGzcdt.cjs");var J=(function(){var i=e.__name(function(T,t,s,n){for(s=s||{},n=T.length;n--;s[T[n]]=t);return s},"o"),h=[1,4],l=[1,14],r=[1,12],o=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],g=[1,6,13,14],_=[1,23],w=[1,24],x=[1,6,7,11,13,14],D={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,2],[12,1],[12,1],[12,1]],performAction:e.__name(function(t,s,n,c,p,a,v){var k=a.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(a[k-1].length,a[k].trim());break;case 16:c.addNode(0,a[k].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:l,7:[1,10],9:9,12:11,13:r,14:o},i(y,[2,3]),{1:[2,2]},i(y,[2,4]),i(y,[2,5]),{1:[2,6],6:l,12:15,13:r,14:o},{6:l,9:16,12:11,13:r,14:o},{6:f,7:d,10:17,11:m},i(u,[2,18],{14:[1,21]}),i(u,[2,16]),i(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:l,12:15,13:r,14:o},i(g,[2,14],{7:_,11:w}),i(x,[2,8]),i(x,[2,9]),i(x,[2,10]),i(u,[2,15]),i(g,[2,13],{7:_,11:w}),i(x,[2,11]),i(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e.__name(function(t,s){if(s.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=s,n}},"parseError"),parse:e.__name(function(t){var s=this,n=[0],c=[],p=[null],a=[],v=this.table,k="",I=0,$=0,L=2,A=1,C=a.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;a.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){n.length=n.length-2*B,p.length=p.length-B,a.length=a.length-B}e.__name(Y,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}e.__name(tt,"lex");for(var M,W,N,q,j={},U,V,et,Z;;){if(W=n[n.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var K="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?K="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Z.join(", ")+", got '"+(this.terminals_[M]||M)+"'":K="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(K,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:n.push(M),p.push(b.yytext),a.push(b.yylloc),n.push(N[1]),M=null,$=b.yyleng,k=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],j.$=p[p.length-V],j._$={first_line:a[a.length-(V||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(V||1)].first_column,last_column:a[a.length-1].last_column},G&&(j._$.range=[a[a.length-(V||1)].range[0],a[a.length-1].range[1]]),q=this.performAction.apply(j,[k,$,I,S.yy,N[1],p,a].concat(C)),typeof q<"u")return q;V&&(n=n.slice(0,-1*V*2),p=p.slice(0,-1*V),a=a.slice(0,-1*V)),n.push(this.productions_[N[1]][0]),p.push(j.$),a.push(j._$),et=v[n[n.length-2]][n[n.length-1]],n.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:e.__name(function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},"parseError"),setInput:e.__name(function(t,s){return this.yy=s||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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:e.__name(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:e.__name(function(t){var s=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===c.length?this.yylloc.first_column:0)+c[c.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:e.__name(function(){return this._more=!0,this},"more"),reject:e.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:e.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o,
|
|
2
|
-
var
|
|
1
|
+
import { _ as o, O as ot, aq as ut, am as dt, a$ as yt, ad as ft, a0 as pt, a7 as it, J as gt, K as kt, G as mt, A as wt, a8 as _t, U as bt } from "./extractHeadings-DZi9v6vp.js";
|
|
2
|
+
var Q = (function() {
|
|
3
3
|
var e = /* @__PURE__ */ o(function(T, t, s, i) {
|
|
4
4
|
for (s = s || {}, i = T.length; i--; s[T[i]] = t) ;
|
|
5
5
|
return s;
|
|
@@ -35,7 +35,7 @@ var J = (function() {
|
|
|
35
35
|
}
|
|
36
36
|
}, "parseError"),
|
|
37
37
|
parse: /* @__PURE__ */ o(function(t) {
|
|
38
|
-
var s = this, i = [0], c = [], p = [null], n = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1,
|
|
38
|
+
var s = this, i = [0], c = [], p = [null], n = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1, C = n.slice.call(arguments, 1), b = Object.create(this.lexer), S = { yy: {} };
|
|
39
39
|
for (var P in this.yy)
|
|
40
40
|
Object.prototype.hasOwnProperty.call(this.yy, P) && (S.yy[P] = this.yy[P]);
|
|
41
41
|
b.setInput(t, S.yy), S.yy.lexer = b, S.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
@@ -52,15 +52,15 @@ var J = (function() {
|
|
|
52
52
|
return B = c.pop() || b.lex() || A, typeof B != "number" && (B instanceof Array && (c = B, B = c.pop()), B = s.symbols_[B] || B), B;
|
|
53
53
|
}
|
|
54
54
|
o(tt, "lex");
|
|
55
|
-
for (var M, W, N, Y, F = {}, U,
|
|
55
|
+
for (var M, W, N, Y, F = {}, U, V, et, Z; ; ) {
|
|
56
56
|
if (W = i[i.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : ((M === null || typeof M > "u") && (M = tt()), N = v[W] && v[W][M]), typeof N > "u" || !N.length || !N[0]) {
|
|
57
|
-
var
|
|
57
|
+
var q = "";
|
|
58
58
|
Z = [];
|
|
59
59
|
for (U in v[W])
|
|
60
60
|
this.terminals_[U] && U > L && Z.push("'" + this.terminals_[U] + "'");
|
|
61
|
-
b.showPosition ?
|
|
61
|
+
b.showPosition ? q = "Parse error on line " + (I + 1) + `:
|
|
62
62
|
` + b.showPosition() + `
|
|
63
|
-
Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" :
|
|
63
|
+
Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "Parse error on line " + (I + 1) + ": Unexpected " + (M == A ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(q, {
|
|
64
64
|
text: b.match,
|
|
65
65
|
token: this.terminals_[M] || M,
|
|
66
66
|
line: b.yylineno,
|
|
@@ -75,13 +75,13 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
|
|
|
75
75
|
i.push(M), p.push(b.yytext), n.push(b.yylloc), i.push(N[1]), M = null, $ = b.yyleng, w = b.yytext, I = b.yylineno, R = b.yylloc;
|
|
76
76
|
break;
|
|
77
77
|
case 2:
|
|
78
|
-
if (
|
|
79
|
-
first_line: n[n.length - (
|
|
78
|
+
if (V = this.productions_[N[1]][1], F.$ = p[p.length - V], F._$ = {
|
|
79
|
+
first_line: n[n.length - (V || 1)].first_line,
|
|
80
80
|
last_line: n[n.length - 1].last_line,
|
|
81
|
-
first_column: n[n.length - (
|
|
81
|
+
first_column: n[n.length - (V || 1)].first_column,
|
|
82
82
|
last_column: n[n.length - 1].last_column
|
|
83
83
|
}, G && (F._$.range = [
|
|
84
|
-
n[n.length - (
|
|
84
|
+
n[n.length - (V || 1)].range[0],
|
|
85
85
|
n[n.length - 1].range[1]
|
|
86
86
|
]), Y = this.performAction.apply(F, [
|
|
87
87
|
w,
|
|
@@ -91,9 +91,9 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
|
|
|
91
91
|
N[1],
|
|
92
92
|
p,
|
|
93
93
|
n
|
|
94
|
-
].concat(
|
|
94
|
+
].concat(C)), typeof Y < "u")
|
|
95
95
|
return Y;
|
|
96
|
-
|
|
96
|
+
V && (i = i.slice(0, -1 * V * 2), p = p.slice(0, -1 * V), n = n.slice(0, -1 * V)), i.push(this.productions_[N[1]][0]), p.push(F.$), n.push(F._$), et = v[i[i.length - 2]][i[i.length - 1]], i.push(et);
|
|
97
97
|
break;
|
|
98
98
|
case 3:
|
|
99
99
|
return !0;
|
|
@@ -302,8 +302,8 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Q = "
|
|
|
302
302
|
}
|
|
303
303
|
return o(E, "Parser"), E.prototype = D, D.Parser = E, new E();
|
|
304
304
|
})();
|
|
305
|
-
|
|
306
|
-
var xt =
|
|
305
|
+
Q.parser = Q;
|
|
306
|
+
var xt = Q, H, vt = (H = class {
|
|
307
307
|
constructor() {
|
|
308
308
|
this.stack = [], this.clear = this.clear.bind(this), this.addNode = this.addNode.bind(this), this.getRoot = this.getRoot.bind(this);
|
|
309
309
|
}
|
|
@@ -371,8 +371,8 @@ var xt = J, H, vt = (H = class {
|
|
|
371
371
|
const S = j * 2, P = j * 0.3;
|
|
372
372
|
L = Math.max(P, S * (w.total / $)), A = Math.max(P, S * (I.total / $));
|
|
373
373
|
}
|
|
374
|
-
const
|
|
375
|
-
L = Math.max(L, w.max *
|
|
374
|
+
const C = k * 2;
|
|
375
|
+
L = Math.max(L, w.max * C), A = Math.max(A, I.max * C), c = Math.max(L, j), p && p.attr("y1", c).attr("y2", c), E.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
|
|
376
376
|
const b = Math.ceil(_.length / 2);
|
|
377
377
|
for (let S = 0; S < b; S++) {
|
|
378
378
|
const P = E.append("g").attr("class", "ishikawa-pair");
|
|
@@ -469,7 +469,7 @@ var xt = J, H, vt = (H = class {
|
|
|
469
469
|
d.insert(() => k, ":first-child").attr("class", "ishikawa-label-box");
|
|
470
470
|
} else
|
|
471
471
|
d.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", u.x - 20).attr("y", u.y - 2).attr("width", u.width + 40).attr("height", u.height + 4);
|
|
472
|
-
}, "drawCauseLabel"),
|
|
472
|
+
}, "drawCauseLabel"), J = /* @__PURE__ */ o((e, h, r, a, l, y) => {
|
|
473
473
|
const f = Math.sqrt(a * a + l * l);
|
|
474
474
|
if (f === 0)
|
|
475
475
|
return;
|
|
@@ -484,7 +484,7 @@ var xt = J, H, vt = (H = class {
|
|
|
484
484
|
e.append(() => O);
|
|
485
485
|
}, "drawArrowMarker"), Pt = /* @__PURE__ */ o((e, h, r, a, l, y, f, d) => {
|
|
486
486
|
const m = h.children ?? [], u = y * (m.length ? 1 : 0.2), k = -st * u, g = nt * u * l, _ = r + k, x = a + g;
|
|
487
|
-
if (z(e, r, a, _, x, "ishikawa-branch", d), d &&
|
|
487
|
+
if (z(e, r, a, _, x, "ishikawa-branch", d), d && J(e, r, a, r - _, a - x, d), Mt(e, h.text, _, x, l, f, d), !m.length)
|
|
488
488
|
return;
|
|
489
489
|
const { entries: D, yOrder: O } = Tt(m, l), E = D.length, T = new Array(E);
|
|
490
490
|
for (const [p, n] of O.entries())
|
|
@@ -503,11 +503,11 @@ var xt = J, H, vt = (H = class {
|
|
|
503
503
|
const v = T[p], w = t.get(n.parentIndex), I = e.append("g").attr("class", "ishikawa-sub-group");
|
|
504
504
|
let $ = 0, L = 0, A = 0;
|
|
505
505
|
if (n.depth % 2 === 0) {
|
|
506
|
-
const
|
|
507
|
-
$ = lt(w.x0, w.x1,
|
|
506
|
+
const C = w.y1 - w.y0;
|
|
507
|
+
$ = lt(w.x0, w.x1, C ? (v - w.y0) / C : 0.5), L = v, A = $ - (n.childCount > 0 ? Et + n.childCount * At : $t), z(I, $, v, A, v, "ishikawa-sub-branch", d), d && J(I, $, v, 1, 0, d), K(I, n.text, A, v, "ishikawa-label align", "end", f);
|
|
508
508
|
} else {
|
|
509
|
-
const
|
|
510
|
-
$ = lt(w.x0, w.x1, (w.childCount -
|
|
509
|
+
const C = w.childrenDrawn++;
|
|
510
|
+
$ = lt(w.x0, w.x1, (w.childCount - C) / (w.childCount + 1)), L = w.y0, A = $ + s * ((v - L) / i), z(I, $, L, A, v, "ishikawa-sub-branch", d), d && J(I, $, L, $ - A, L - v, d), K(I, n.text, A, v, c, "end", f);
|
|
511
511
|
}
|
|
512
512
|
n.childCount > 0 && t.set(p, {
|
|
513
513
|
x0: $,
|
|
@@ -608,7 +608,7 @@ var xt = J, H, vt = (H = class {
|
|
|
608
608
|
.ishikawa .ishikawa-label.down {
|
|
609
609
|
dominant-baseline: hanging;
|
|
610
610
|
}
|
|
611
|
-
`, "getStyles"), Ot = Dt,
|
|
611
|
+
`, "getStyles"), Ot = Dt, Vt = {
|
|
612
612
|
parser: xt,
|
|
613
613
|
get db() {
|
|
614
614
|
return new vt();
|
|
@@ -617,5 +617,5 @@ var xt = J, H, vt = (H = class {
|
|
|
617
617
|
styles: Ot
|
|
618
618
|
};
|
|
619
619
|
export {
|
|
620
|
-
|
|
620
|
+
Vt as diagram
|
|
621
621
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-BQ9OvvVm.cjs"),j=require("./chunk-32BRIVSS-BegSeeKc.cjs"),n=require("./extractHeadings-sSLGzcdt.cjs"),et=require("./arc-CUfL06Yf.cjs");var G=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,K=0,ht=2,Q=1,ut=c.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function D(){var w;return w=y.pop()||k.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(D,"lex");for(var b,I,T,Y,R={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=D()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(b==Q?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(k.yytext),c.push(k.yylloc),l.push(T[1]),b=null,K=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],R.$=d[d.length-M],R._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},yt&&(R._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(R,[x,K,E,A.yy,T[1],d,c].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(R.$),c.push(R._$),tt=v[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:n.__name(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n.__name(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n.__name(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as gt } from "./chunk-5VM5RSS4-
|
|
2
|
-
import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-
|
|
3
|
-
import {
|
|
4
|
-
import { d as it } from "./arc-
|
|
1
|
+
import { g as gt } from "./chunk-5VM5RSS4-Bwvu3ZQn.js";
|
|
2
|
+
import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-BVjoQVFd.js";
|
|
3
|
+
import { G as _t, A as vt, J as bt, K as wt, a8 as Tt, a7 as St, _ as s, O as R, Q as H, U as $t, ad as Mt } from "./extractHeadings-DZi9v6vp.js";
|
|
4
|
+
import { d as it } from "./arc-8h1FB6uq.js";
|
|
5
5
|
var U = (function() {
|
|
6
6
|
var t = /* @__PURE__ */ s(function(h, r, n, l) {
|
|
7
7
|
for (n = n || {}, l = h.length; l--; n[h[l]] = r) ;
|
package/dist/{kanban-definition-HUTT4EX6-BNNQtqj9.cjs → kanban-definition-HUTT4EX6-BklyDLxL.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-sSLGzcdt.cjs"),le=require("./chunk-5VM5RSS4-BQ9OvvVm.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],F=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},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},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"},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]],performAction:n.__name(function(s,i,a,o,u,t,G){var c=t.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:T},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(V,[2,14],{7:f,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:F}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:w}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:F}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],u=[null],t=[],G=this.table,c="",H=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},U,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(U in G[P])this.terminals_[U]&&U>re&&z.push("'"+this.terminals_[U]+"'");m.showPosition?q="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(H+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),u.push(m.yytext),t.push(m.yylloc),a.push(N[1]),E=null,ee=m.yyleng,c=m.yytext,H=m.yylineno,K=m.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=u[u.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,H,R.yy,N[1],u,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),u.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=(function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);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);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
package/dist/{kanban-definition-HUTT4EX6-De7q9Kj3.js → kanban-definition-HUTT4EX6-DezliCFs.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as o,
|
|
2
|
-
import { g as Ne } from "./chunk-5VM5RSS4-
|
|
1
|
+
import { _ as o, R as te, O as H, am as fe, aT as ye, aU as be, aV as me, aC as ke, ak as K, X as F, a9 as _e, aa as Ee, az as Se, aA as ce, aB as le } from "./extractHeadings-DZi9v6vp.js";
|
|
2
|
+
import { g as Ne } from "./chunk-5VM5RSS4-Bwvu3ZQn.js";
|
|
3
3
|
var $ = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(O, s, n, r) {
|
|
5
5
|
for (n = n || {}, r = O.length; r--; n[O[r]] = s) ;
|
|
6
6
|
return n;
|
|
7
|
-
}, "o"), h = [1, 4], p = [1, 13], i = [1, 12], d = [1, 15],
|
|
7
|
+
}, "o"), h = [1, 4], p = [1, 13], i = [1, 12], d = [1, 15], k = [1, 16], m = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], _ = [6, 7, 11], G = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], U = [1, 38], T = {
|
|
8
8
|
trace: /* @__PURE__ */ o(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
@@ -71,7 +71,7 @@ var $ = (function() {
|
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
73
|
}, "anonymous"),
|
|
74
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: i, 14: 14, 16: d, 17:
|
|
74
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: i, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p, 12: 21, 13: i, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: i, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(_, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: m, 23: l }), e(_, [2, 19]), e(_, [2, 21], { 15: 30, 24: G }), e(_, [2, 22]), e(_, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p, 12: 21, 13: i, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(V, [2, 14], { 7: f, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(_, [2, 16], { 15: 37, 24: G }), e(_, [2, 17]), e(_, [2, 18]), e(_, [2, 20], { 24: U }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(_, [2, 15], { 24: U }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
|
|
75
75
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
76
76
|
parseError: /* @__PURE__ */ o(function(s, n) {
|
|
77
77
|
if (n.recoverable)
|
|
@@ -86,8 +86,8 @@ var $ = (function() {
|
|
|
86
86
|
for (var J in this.yy)
|
|
87
87
|
Object.prototype.hasOwnProperty.call(this.yy, J) && (R.yy[J] = this.yy[J]);
|
|
88
88
|
b.setInput(s, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
89
|
-
var
|
|
90
|
-
t.push(
|
|
89
|
+
var q = b.yylloc;
|
|
90
|
+
t.push(q);
|
|
91
91
|
var de = b.options && b.options.ranges;
|
|
92
92
|
typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
93
93
|
function pe(S) {
|
|
@@ -99,7 +99,7 @@ var $ = (function() {
|
|
|
99
99
|
return S = a.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = n.symbols_[S] || S), S;
|
|
100
100
|
}
|
|
101
101
|
o(ae, "lex");
|
|
102
|
-
for (var E, P, x,
|
|
102
|
+
for (var E, P, x, Q, j = {}, z, C, oe, X; ; ) {
|
|
103
103
|
if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = ae()), x = M[P] && M[P][E]), typeof x > "u" || !x.length || !x[0]) {
|
|
104
104
|
var Z = "";
|
|
105
105
|
X = [];
|
|
@@ -111,7 +111,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
|
|
|
111
111
|
text: b.match,
|
|
112
112
|
token: this.terminals_[E] || E,
|
|
113
113
|
line: b.yylineno,
|
|
114
|
-
loc:
|
|
114
|
+
loc: q,
|
|
115
115
|
expected: X
|
|
116
116
|
});
|
|
117
117
|
}
|
|
@@ -119,18 +119,18 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
|
|
|
119
119
|
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + E);
|
|
120
120
|
switch (x[0]) {
|
|
121
121
|
case 1:
|
|
122
|
-
r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, ie = b.yyleng, c = b.yytext, W = b.yylineno,
|
|
122
|
+
r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, ie = b.yyleng, c = b.yytext, W = b.yylineno, q = b.yylloc;
|
|
123
123
|
break;
|
|
124
124
|
case 2:
|
|
125
|
-
if (C = this.productions_[x[1]][1],
|
|
125
|
+
if (C = this.productions_[x[1]][1], j.$ = u[u.length - C], j._$ = {
|
|
126
126
|
first_line: t[t.length - (C || 1)].first_line,
|
|
127
127
|
last_line: t[t.length - 1].last_line,
|
|
128
128
|
first_column: t[t.length - (C || 1)].first_column,
|
|
129
129
|
last_column: t[t.length - 1].last_column
|
|
130
|
-
}, de && (
|
|
130
|
+
}, de && (j._$.range = [
|
|
131
131
|
t[t.length - (C || 1)].range[0],
|
|
132
132
|
t[t.length - 1].range[1]
|
|
133
|
-
]),
|
|
133
|
+
]), Q = this.performAction.apply(j, [
|
|
134
134
|
c,
|
|
135
135
|
ie,
|
|
136
136
|
W,
|
|
@@ -138,9 +138,9 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
|
|
|
138
138
|
x[1],
|
|
139
139
|
u,
|
|
140
140
|
t
|
|
141
|
-
].concat(ge)), typeof
|
|
142
|
-
return
|
|
143
|
-
C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(
|
|
141
|
+
].concat(ge)), typeof Q < "u")
|
|
142
|
+
return Q;
|
|
143
|
+
C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(j.$), t.push(j._$), oe = M[r[r.length - 2]][r[r.length - 1]], r.push(oe);
|
|
144
144
|
break;
|
|
145
145
|
case 3:
|
|
146
146
|
return !0;
|
|
@@ -148,7 +148,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
|
|
|
148
148
|
}
|
|
149
149
|
return !0;
|
|
150
150
|
}, "parse")
|
|
151
|
-
},
|
|
151
|
+
}, Y = /* @__PURE__ */ (function() {
|
|
152
152
|
var O = {
|
|
153
153
|
EOF: 1,
|
|
154
154
|
parseError: /* @__PURE__ */ o(function(n, r) {
|
|
@@ -423,7 +423,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
|
|
|
423
423
|
};
|
|
424
424
|
return O;
|
|
425
425
|
})();
|
|
426
|
-
T.lexer =
|
|
426
|
+
T.lexer = Y;
|
|
427
427
|
function B() {
|
|
428
428
|
this.yy = {};
|
|
429
429
|
}
|
|
@@ -446,9 +446,9 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
446
446
|
}, "getSections"), Le = /* @__PURE__ */ o(function() {
|
|
447
447
|
const e = [], h = [], p = he(), i = H();
|
|
448
448
|
for (const d of p) {
|
|
449
|
-
const
|
|
449
|
+
const k = {
|
|
450
450
|
id: d.id,
|
|
451
|
-
label:
|
|
451
|
+
label: F(d.label ?? "", i),
|
|
452
452
|
labelType: "markdown",
|
|
453
453
|
isGroup: !0,
|
|
454
454
|
ticket: d.ticket,
|
|
@@ -456,13 +456,13 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
456
456
|
level: d.level,
|
|
457
457
|
look: i.look
|
|
458
458
|
};
|
|
459
|
-
h.push(
|
|
459
|
+
h.push(k);
|
|
460
460
|
const m = v.filter((l) => l.parentId === d.id);
|
|
461
461
|
for (const l of m) {
|
|
462
462
|
const D = {
|
|
463
463
|
id: l.id,
|
|
464
464
|
parentId: d.id,
|
|
465
|
-
label:
|
|
465
|
+
label: F(l.label ?? "", i),
|
|
466
466
|
labelType: "markdown",
|
|
467
467
|
isGroup: !1,
|
|
468
468
|
ticket: l?.ticket,
|
|
@@ -480,8 +480,8 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
480
480
|
}
|
|
481
481
|
return { nodes: h, edges: e, other: {}, config: H() };
|
|
482
482
|
}, "getData"), Oe = /* @__PURE__ */ o((e, h, p, i, d) => {
|
|
483
|
-
const
|
|
484
|
-
let m =
|
|
483
|
+
const k = H();
|
|
484
|
+
let m = k.mindmap?.padding ?? K.mindmap.padding;
|
|
485
485
|
switch (i) {
|
|
486
486
|
case y.ROUNDED_RECT:
|
|
487
487
|
case y.RECT:
|
|
@@ -489,10 +489,10 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
489
489
|
m *= 2;
|
|
490
490
|
}
|
|
491
491
|
const l = {
|
|
492
|
-
id:
|
|
492
|
+
id: F(h, k) || "kbn" + ee++,
|
|
493
493
|
level: e,
|
|
494
|
-
label:
|
|
495
|
-
width:
|
|
494
|
+
label: F(p, k),
|
|
495
|
+
width: k.mindmap?.maxNodeWidth ?? K.mindmap.maxNodeWidth,
|
|
496
496
|
padding: m,
|
|
497
497
|
isGroup: !1
|
|
498
498
|
};
|
|
@@ -503,7 +503,7 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
503
503
|
` : I = `{
|
|
504
504
|
` + d + `
|
|
505
505
|
}`;
|
|
506
|
-
const g =
|
|
506
|
+
const g = _e(I, { schema: Ee });
|
|
507
507
|
if (g.shape && (g.shape !== g.shape.toLowerCase() || g.shape.includes("_")))
|
|
508
508
|
throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);
|
|
509
509
|
g?.shape && g.shape === "kanbanItem" && (l.shape = g?.shape), g?.label && (l.label = g?.label), g?.icon && (l.icon = g?.icon.toString()), g?.assigned && (l.assigned = g?.assigned.toString()), g?.ticket && (l.ticket = g?.ticket.toString()), g?.priority && (l.priority = g?.priority);
|
|
@@ -542,7 +542,7 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
542
542
|
if (!e)
|
|
543
543
|
return;
|
|
544
544
|
const h = H(), p = v[v.length - 1];
|
|
545
|
-
e.icon && (p.icon =
|
|
545
|
+
e.icon && (p.icon = F(e.icon, h)), e.class && (p.cssClasses = F(e.class, h));
|
|
546
546
|
}, "decorateNode"), Ae = /* @__PURE__ */ o((e) => {
|
|
547
547
|
switch (e) {
|
|
548
548
|
case y.DEFAULT:
|
|
@@ -578,54 +578,54 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
578
578
|
}, Ve = Pe, Be = /* @__PURE__ */ o(async (e, h, p, i) => {
|
|
579
579
|
te.debug(`Rendering kanban diagram
|
|
580
580
|
` + e);
|
|
581
|
-
const
|
|
581
|
+
const k = i.db.getData(), m = H();
|
|
582
582
|
m.htmlLabels = !1;
|
|
583
583
|
const l = fe(h);
|
|
584
|
-
for (const f of
|
|
584
|
+
for (const f of k.nodes)
|
|
585
585
|
f.domId = `${h}-${f.id}`;
|
|
586
586
|
const D = l.append("g");
|
|
587
587
|
D.attr("class", "sections");
|
|
588
588
|
const I = l.append("g");
|
|
589
589
|
I.attr("class", "items");
|
|
590
|
-
const g =
|
|
590
|
+
const g = k.nodes.filter(
|
|
591
591
|
// TODO: TypeScript 5.5 will infer this predicate automatically
|
|
592
592
|
(f) => f.isGroup
|
|
593
593
|
);
|
|
594
594
|
let w = 0;
|
|
595
|
-
const
|
|
595
|
+
const _ = 10, G = [];
|
|
596
596
|
let N = 25;
|
|
597
597
|
for (const f of g) {
|
|
598
598
|
const A = m?.kanban?.sectionWidth || 200;
|
|
599
|
-
w = w + 1, f.x = A * w + (w - 1) *
|
|
599
|
+
w = w + 1, f.x = A * w + (w - 1) * _ / 2, f.width = A, f.y = 0, f.height = A * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + w;
|
|
600
600
|
const L = await ye(D, f);
|
|
601
|
-
N = Math.max(N, L?.labelBBox?.height),
|
|
601
|
+
N = Math.max(N, L?.labelBBox?.height), G.push(L);
|
|
602
602
|
}
|
|
603
603
|
let V = 0;
|
|
604
604
|
for (const f of g) {
|
|
605
|
-
const A =
|
|
605
|
+
const A = G[V];
|
|
606
606
|
V = V + 1;
|
|
607
|
-
const L = m?.kanban?.sectionWidth || 200,
|
|
608
|
-
let T =
|
|
609
|
-
const
|
|
610
|
-
for (const s of
|
|
607
|
+
const L = m?.kanban?.sectionWidth || 200, U = -L * 3 / 2 + N;
|
|
608
|
+
let T = U;
|
|
609
|
+
const Y = k.nodes.filter((s) => s.parentId === f.id);
|
|
610
|
+
for (const s of Y) {
|
|
611
611
|
if (s.isGroup)
|
|
612
612
|
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
613
|
-
s.x = f.x, s.width = L - 1.5 *
|
|
613
|
+
s.x = f.x, s.width = L - 1.5 * _;
|
|
614
614
|
const r = (await be(I, s, { config: m })).node().getBBox();
|
|
615
|
-
s.y = T + r.height / 2, await me(s), T = s.y + r.height / 2 +
|
|
615
|
+
s.y = T + r.height / 2, await me(s), T = s.y + r.height / 2 + _ / 2;
|
|
616
616
|
}
|
|
617
|
-
const B = A.cluster.select("rect"), O = Math.max(T -
|
|
617
|
+
const B = A.cluster.select("rect"), O = Math.max(T - U + 3 * _, 50) + (N - 25);
|
|
618
618
|
B.attr("height", O);
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
ke(
|
|
621
621
|
void 0,
|
|
622
622
|
l,
|
|
623
|
-
m.mindmap?.padding ??
|
|
624
|
-
m.mindmap?.useMaxWidth ??
|
|
623
|
+
m.mindmap?.padding ?? K.kanban.padding,
|
|
624
|
+
m.mindmap?.useMaxWidth ?? K.kanban.useMaxWidth
|
|
625
625
|
);
|
|
626
|
-
}, "draw"),
|
|
626
|
+
}, "draw"), je = {
|
|
627
627
|
draw: Be
|
|
628
|
-
},
|
|
628
|
+
}, Fe = /* @__PURE__ */ o((e) => {
|
|
629
629
|
let h = "";
|
|
630
630
|
for (let i = 0; i < e.THEME_COLOR_LIMIT; i++)
|
|
631
631
|
e["lineColor" + i] = e["lineColor" + i] || e["cScaleInv" + i], Se(e["lineColor" + i]) ? e["lineColor" + i] = ce(e["lineColor" + i], 20) : e["lineColor" + i] = le(e["lineColor" + i], 20);
|
|
@@ -681,11 +681,11 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
681
681
|
`;
|
|
682
682
|
}
|
|
683
683
|
return h;
|
|
684
|
-
}, "genSections"),
|
|
684
|
+
}, "genSections"), Ge = /* @__PURE__ */ o((e) => `
|
|
685
685
|
.edge {
|
|
686
686
|
stroke-width: 3;
|
|
687
687
|
}
|
|
688
|
-
${
|
|
688
|
+
${Fe(e)}
|
|
689
689
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
690
690
|
fill: ${e.git0};
|
|
691
691
|
}
|
|
@@ -713,11 +713,11 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
|
|
|
713
713
|
text-align: center;
|
|
714
714
|
}
|
|
715
715
|
${Ne()}
|
|
716
|
-
`, "getStyles"),
|
|
716
|
+
`, "getStyles"), Ue = Ge, We = {
|
|
717
717
|
db: Ve,
|
|
718
|
-
renderer:
|
|
718
|
+
renderer: je,
|
|
719
719
|
parser: xe,
|
|
720
|
-
styles:
|
|
720
|
+
styles: Ue
|
|
721
721
|
};
|
|
722
722
|
export {
|
|
723
723
|
We as diagram
|