@leanspec/ui-components 0.2.21 → 0.2.22
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/dist/{_baseUniq-KSDS6tgF.js → _baseUniq-D7Jo4wA-.js} +2 -2
- package/dist/{_baseUniq-ifpVq4u5.cjs → _baseUniq-DuU2z5Ko.cjs} +1 -1
- package/dist/{arc-CutFaiCL.cjs → arc-DVobalXV.cjs} +1 -1
- package/dist/{arc-C-X5Xt_b.js → arc-bSbgZKu2.js} +1 -1
- package/dist/{architecture-U656AL7Q-DOVRDeZr.cjs → architecture-U656AL7Q-BnnsKr-v.cjs} +1 -1
- package/dist/{architecture-U656AL7Q-BB1A66AM.js → architecture-U656AL7Q-pOUzdaWZ.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-Bal8NTn4.js → architectureDiagram-VXUJARFQ-B9csKaKv.js} +1272 -1279
- package/dist/architectureDiagram-VXUJARFQ-Dwe8uzg_.cjs +36 -0
- package/dist/blockDiagram-VD42YOAC-B4iBhDdw.cjs +122 -0
- package/dist/{blockDiagram-VD42YOAC-B2gTo5wW.js → blockDiagram-VD42YOAC-DrRsdznF.js} +911 -920
- package/dist/c4Diagram-YG6GDRKO-BRDnNTAH.cjs +10 -0
- package/dist/{c4Diagram-YG6GDRKO-dIf_vNCY.js → c4Diagram-YG6GDRKO-Di2rkJ8i.js} +162 -163
- package/dist/{channel-klR7o7JB.js → channel-CTeTHv-y.js} +1 -1
- package/dist/channel-Dzz86sIh.cjs +1 -0
- package/dist/chunk-4BX2VUAB-Ckv-xIp1.cjs +1 -0
- package/dist/chunk-4BX2VUAB-Dkr-Egsj.js +8 -0
- package/dist/{chunk-55IACEB6-C88Xx0rU.cjs → chunk-55IACEB6-CVnZTCiR.cjs} +1 -1
- package/dist/{chunk-55IACEB6-Dd3NjClm.js → chunk-55IACEB6-D_uwi6CC.js} +1 -1
- package/dist/{chunk-B4BG7PRW-DLUrgkJI.js → chunk-B4BG7PRW-BipBIVhj.js} +247 -248
- package/dist/{chunk-B4BG7PRW-BTU_nPVE.cjs → chunk-B4BG7PRW-Bne1UwNu.cjs} +6 -6
- package/dist/{chunk-DI55MBZ5-BwHLqSW9.js → chunk-DI55MBZ5-8tWOlvAD.js} +440 -452
- package/dist/chunk-DI55MBZ5-UAAzyEQX.cjs +220 -0
- package/dist/{chunk-FMBD7UC4-6dsbMKM7.js → chunk-FMBD7UC4-CLc8_72-.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CedTj9g2.cjs → chunk-FMBD7UC4-DsaPsLgZ.cjs} +1 -1
- package/dist/chunk-QN33PNHL-BBlw4H4R.cjs +1 -0
- package/dist/chunk-QN33PNHL-QKH9jByz.js +19 -0
- package/dist/{chunk-QZHKN3VN-CVAEdzef.js → chunk-QZHKN3VN-BPpgPA2g.js} +1 -1
- package/dist/{chunk-QZHKN3VN-CU1cLvn7.cjs → chunk-QZHKN3VN-CB9ZTvXU.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-Cc8_PJIq.js → chunk-TZMSLE5B-Coq49FaX.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Dy6zxWyY.cjs → chunk-TZMSLE5B-Dl7DiX7D.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-D7bjndmT.js → classDiagram-2ON5EDUG-DYaKkEXb.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CJQWUYqu.cjs → classDiagram-2ON5EDUG-Fsj2z4ej.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-D7bjndmT.js → classDiagram-v2-WZHVMYZB-DYaKkEXb.js} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CJQWUYqu.cjs → classDiagram-v2-WZHVMYZB-Fsj2z4ej.cjs} +1 -1
- package/dist/{clone-7srXemyd.js → clone-Ctm6tjrV.js} +1 -1
- package/dist/clone-JAtNXNmq.cjs +1 -0
- package/dist/{code-block-37QAKDTI-MRm4xHKr.js → code-block-37QAKDTI-3zaK1Sok.js} +1 -1
- package/dist/{code-block-37QAKDTI-BAYBliUK.cjs → code-block-37QAKDTI-UmxtJ5VR.cjs} +1 -1
- package/dist/components/graph/dependency-graph.d.ts.map +1 -1
- package/dist/components/hierarchy/hierarchy-tree.d.ts +17 -0
- package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
- package/dist/components/hierarchy/index.d.ts +2 -0
- package/dist/components/hierarchy/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/spec/spec-card.d.ts +1 -1
- package/dist/components/spec/spec-card.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +3 -3
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-BMt11jHq.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-0O3dLIoy.js → cose-bilkent-S5V4N54A-iUMgKFJZ.js} +281 -281
- package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
- package/dist/{cytoscape.esm-CjI2IsL8.js → cytoscape.esm-Cvf3sx9F.js} +18 -49
- package/dist/dagre-6UL2VRFP-CKc2IEbO.js +443 -0
- package/dist/dagre-6UL2VRFP-sN44kpPp.cjs +4 -0
- package/dist/{diagram-PSM6KHXK-s2xYLlND.js → diagram-PSM6KHXK-DERIvROx.js} +17 -19
- package/dist/diagram-PSM6KHXK-Ltn89usT.cjs +24 -0
- package/dist/{diagram-QEK2KX5R-D700jvoY.js → diagram-QEK2KX5R-B6CdcylU.js} +10 -14
- package/dist/diagram-QEK2KX5R-CDZWBlgA.cjs +43 -0
- package/dist/{diagram-S2PKOQOG-BkgBSa1Q.js → diagram-S2PKOQOG-5f_4uCtF.js} +22 -23
- package/dist/diagram-S2PKOQOG-D4WcZEo0.cjs +24 -0
- package/dist/{erDiagram-Q2GNP2WA-CXv6THpi.js → erDiagram-Q2GNP2WA-CnN7DF_N.js} +73 -74
- package/dist/{erDiagram-Q2GNP2WA-DKKIPwgH.cjs → erDiagram-Q2GNP2WA-mIz8VRgG.cjs} +3 -3
- package/dist/flowDiagram-NV44I4VS-BwUl8_y0.cjs +162 -0
- package/dist/{flowDiagram-NV44I4VS-Dsrv00Gy.js → flowDiagram-NV44I4VS-Dl3ZZj2W.js} +438 -445
- package/dist/{ganttDiagram-JELNMOA3-BuwyOUxF.cjs → ganttDiagram-JELNMOA3-Dl_PUPHn.cjs} +1 -1
- package/dist/{ganttDiagram-JELNMOA3-CqVYbgbk.js → ganttDiagram-JELNMOA3-q87tSGGF.js} +2 -2
- package/dist/{gitGraph-F6HP7TQM-q5owfB75.js → gitGraph-F6HP7TQM-C4DmI2Gg.js} +1 -1
- package/dist/{gitGraph-F6HP7TQM-BtoBLEOj.cjs → gitGraph-F6HP7TQM-Cq9d8Pu6.cjs} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-DMhKqh_S.cjs +65 -0
- package/dist/gitGraphDiagram-NY62KEGX-NeHUXng4.js +699 -0
- package/dist/{graph-CxpBbnBw.cjs → graph-AuIe-DO_.cjs} +1 -1
- package/dist/{graph-rt_wscbL.js → graph-Da1z0n_J.js} +2 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-spec-sync.d.ts +13 -0
- package/dist/hooks/use-spec-sync.d.ts.map +1 -0
- package/dist/{index-BsdeQX2F.js → index-B5zgF_S5.js} +30337 -30055
- package/dist/index-KEDsBA0n.cjs +2103 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +512 -500
- package/dist/info-NVLQJR56-A56PvZ_B.js +5 -0
- package/dist/{info-NVLQJR56-Ctx23Jwq.cjs → info-NVLQJR56-FWiEuR29.cjs} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-Fq8ToFQ6.js → infoDiagram-WHAUD3N6-Cj-s-gtw.js} +2 -2
- package/dist/{infoDiagram-WHAUD3N6-ICmXrgfx.cjs → infoDiagram-WHAUD3N6-Dvc-cZjb.cjs} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BkYLuV5M.cjs → journeyDiagram-XKPGCS4Q-B54o9W3g.cjs} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BzZgPZwu.js → journeyDiagram-XKPGCS4Q-BbXXFBC-.js} +4 -4
- package/dist/kanban-definition-3W4ZIXB7-BQfiIWMB.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-ClCUbNCO.js +719 -0
- package/dist/{layout-CeChnsru.cjs → layout-9b_FTQ6g.cjs} +1 -1
- package/dist/{layout-CX9neEHw.js → layout-BoJlbrAK.js} +4 -4
- package/dist/lib/hierarchy.d.ts +12 -0
- package/dist/lib/hierarchy.d.ts.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/{linear-CkUVga7d.js → linear-4rmylyIU.js} +1 -1
- package/dist/{linear-DLfe3Is-.cjs → linear-FU7lEwDb.cjs} +1 -1
- package/dist/{mermaid-4DMBBIKO-DK6bOe0l.cjs → mermaid-4DMBBIKO-CGMd2ylH.cjs} +1 -1
- package/dist/mermaid-4DMBBIKO-CNvUKRvV.js +4 -0
- package/dist/{mermaid-parser.core-B7VTdQ1C.js → mermaid-parser.core-BbeEQ08m.js} +2740 -2756
- package/dist/mermaid-parser.core-CQwGaxt2.cjs +128 -0
- package/dist/{min-Ar5ebLd-.js → min-C8aXS73f.js} +2 -2
- package/dist/{min-C_bmS8M7.cjs → min-Ddv5U3O-.cjs} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-BRNm-2aJ.js} +166 -169
- package/dist/mindmap-definition-VGOIOE7T-Gp-Ji6eO.cjs +68 -0
- package/dist/{ordinal-DfAQgscy.js → ordinal-B6-f3MAq.js} +1 -1
- package/dist/{packet-BFZMPI3H-DFZzoAsC.js → packet-BFZMPI3H-CJ8lOlJN.js} +1 -1
- package/dist/{packet-BFZMPI3H-BVRarKKV.cjs → packet-BFZMPI3H-CpWVF6Ne.cjs} +1 -1
- package/dist/pie-7BOR55EZ-BCyVC33Q.js +5 -0
- package/dist/{pie-7BOR55EZ-0edBRKAY.cjs → pie-7BOR55EZ-Ceke0LDu.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-C_V2NX6O.js → pieDiagram-ADFJNKIX-BVRqurYx.js} +21 -21
- package/dist/{pieDiagram-ADFJNKIX-Ceq-kf3C.cjs → pieDiagram-ADFJNKIX-CwhRxtMH.cjs} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-B8fSnYQi.js → quadrantDiagram-AYHSOK5B-CcsZBY3e.js} +227 -229
- package/dist/quadrantDiagram-AYHSOK5B-DBTVya8p.cjs +7 -0
- package/dist/radar-NHE76QYJ-C6zEuLeW.js +5 -0
- package/dist/{radar-NHE76QYJ-gAJ22qc7.cjs → radar-NHE76QYJ-CX8DsGdu.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-D6BE-Q1l.cjs → requirementDiagram-UZGBJVZJ-5bxQUo0r.cjs} +7 -7
- package/dist/{requirementDiagram-UZGBJVZJ-MnXD59Yw.js → requirementDiagram-UZGBJVZJ-CV5SUGj-.js} +186 -188
- package/dist/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6.js → sankeyDiagram-TZEHDZUN-BFPvVGcz.js} +186 -186
- package/dist/{sankeyDiagram-TZEHDZUN-Dx8_KSIc.cjs → sankeyDiagram-TZEHDZUN-D33DzO8E.cjs} +5 -5
- package/dist/{sequenceDiagram-WL72ISMW-D2pgAoWi.js → sequenceDiagram-WL72ISMW-CQ5u3b_o.js} +213 -220
- package/dist/{sequenceDiagram-WL72ISMW-CUYHrDfm.cjs → sequenceDiagram-WL72ISMW-DFEVNSSA.cjs} +16 -16
- package/dist/{stateDiagram-FKZM4ZOC-CtYt1Ixa.cjs → stateDiagram-FKZM4ZOC-sKqH3kHZ.cjs} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DYV-na53.js → stateDiagram-FKZM4ZOC-zOb-V3pD.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-CeSnHO3T.cjs → stateDiagram-v2-4FDKWEC3-DwWb55sM.cjs} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o.js → stateDiagram-v2-4FDKWEC3-_Mzc1jVl.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-B2T2QrC5.js} +211 -215
- package/dist/timeline-definition-IT6M3QCI-D19MQs5w.cjs +61 -0
- package/dist/{treemap-KMMF4GRG-DSNryTu7.cjs → treemap-KMMF4GRG-C7E3CtG7.cjs} +1 -1
- package/dist/{treemap-KMMF4GRG-l6HrdCLC.js → treemap-KMMF4GRG-wB3pBnFc.js} +1 -1
- package/dist/types/specs.d.ts +2 -0
- package/dist/types/specs.d.ts.map +1 -1
- package/dist/ui-components.css +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-CkfCv2o_.js → xychartDiagram-PRI3JC2R-BSPghzKh.js} +3 -3
- package/dist/{xychartDiagram-PRI3JC2R-C2_xziD5.cjs → xychartDiagram-PRI3JC2R-hKFxVf6x.cjs} +1 -1
- package/package.json +5 -2
- package/dist/architectureDiagram-VXUJARFQ-WCtQIdet.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-CGdaLv7H.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-DfRXyZHM.cjs +0 -10
- package/dist/channel-CMrUjUoZ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BQgzc1Sm.js +0 -9
- package/dist/chunk-4BX2VUAB-CO5acanJ.cjs +0 -1
- package/dist/chunk-DI55MBZ5-lVvJu2kr.cjs +0 -220
- package/dist/chunk-QN33PNHL-DHNejhbC.js +0 -20
- package/dist/chunk-QN33PNHL-Dr9ghdFD.cjs +0 -1
- package/dist/clone-Chgndk5P.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-CPai-c_a.cjs +0 -1
- package/dist/cytoscape.esm-o9WRfNPd.cjs +0 -331
- package/dist/dagre-6UL2VRFP-BqaZre9N.js +0 -446
- package/dist/dagre-6UL2VRFP-CeIiJJG5.cjs +0 -4
- package/dist/diagram-PSM6KHXK-oD045yZG.cjs +0 -24
- package/dist/diagram-QEK2KX5R-VH7_rcp0.cjs +0 -43
- package/dist/diagram-S2PKOQOG-CjDpLVdl.cjs +0 -24
- package/dist/flowDiagram-NV44I4VS-U52jVnrS.cjs +0 -162
- package/dist/gitGraphDiagram-NY62KEGX-DH1I05Ix.cjs +0 -65
- package/dist/gitGraphDiagram-NY62KEGX-DOanbk62.js +0 -712
- package/dist/index-Cg8ByiK0.cjs +0 -2153
- package/dist/info-NVLQJR56-hH82KARZ.js +0 -5
- package/dist/kanban-definition-3W4ZIXB7-BV7UYL3n.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-CrmrjRAg.js +0 -721
- package/dist/mermaid-4DMBBIKO-wnX9ATcq.js +0 -4
- package/dist/mermaid-parser.core-DvlzR6J2.cjs +0 -128
- package/dist/mindmap-definition-VGOIOE7T-BBqv9TKM.cjs +0 -68
- package/dist/pie-7BOR55EZ-zLMdfI8h.js +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-BButfYaS.cjs +0 -7
- package/dist/radar-NHE76QYJ-DeqJwy76.js +0 -5
- package/dist/timeline-definition-IT6M3QCI-4fRZfQpb.cjs +0 -61
package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-B2T2QrC5.js}
RENAMED
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { _ as s, f as xt, l as E, h as
|
|
2
|
-
import { d as nt } from "./arc-
|
|
3
|
-
var
|
|
4
|
-
var n = /* @__PURE__ */ s(function(
|
|
5
|
-
for (a = a || {},
|
|
1
|
+
import { _ as s, f as xt, l as E, h as j, ah as kt, ai as vt, aj as _t, ak as bt, H as wt, al as St, D as Et } from "./index-B5zgF_S5.js";
|
|
2
|
+
import { d as nt } from "./arc-bSbgZKu2.js";
|
|
3
|
+
var Q = (function() {
|
|
4
|
+
var n = /* @__PURE__ */ s(function(x, r, a, c) {
|
|
5
|
+
for (a = a || {}, c = x.length; c--; a[x[c]] = r) ;
|
|
6
6
|
return a;
|
|
7
|
-
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12],
|
|
7
|
+
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], p = {
|
|
8
8
|
trace: /* @__PURE__ */ s(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
11
11
|
symbols_: { error: 2, start: 3, timeline: 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, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
|
|
12
12
|
terminals_: { 2: "error", 4: "timeline", 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", 20: "period", 21: "event" },
|
|
13
13
|
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, 1], [9, 1], [18, 1], [19, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ s(function(r, a,
|
|
15
|
-
var
|
|
14
|
+
performAction: /* @__PURE__ */ s(function(r, a, c, u, y, o, w) {
|
|
15
|
+
var v = o.length - 1;
|
|
16
16
|
switch (y) {
|
|
17
17
|
case 1:
|
|
18
|
-
return o[
|
|
18
|
+
return o[v - 1];
|
|
19
19
|
case 2:
|
|
20
20
|
this.$ = [];
|
|
21
21
|
break;
|
|
22
22
|
case 3:
|
|
23
|
-
o[
|
|
23
|
+
o[v - 1].push(o[v]), this.$ = o[v - 1];
|
|
24
24
|
break;
|
|
25
25
|
case 4:
|
|
26
26
|
case 5:
|
|
27
|
-
this.$ = o[
|
|
27
|
+
this.$ = o[v];
|
|
28
28
|
break;
|
|
29
29
|
case 6:
|
|
30
30
|
case 7:
|
|
31
31
|
this.$ = [];
|
|
32
32
|
break;
|
|
33
33
|
case 8:
|
|
34
|
-
u.getCommonDb().setDiagramTitle(o[
|
|
34
|
+
u.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
|
|
35
35
|
break;
|
|
36
36
|
case 9:
|
|
37
|
-
this.$ = o[
|
|
37
|
+
this.$ = o[v].trim(), u.getCommonDb().setAccTitle(this.$);
|
|
38
38
|
break;
|
|
39
39
|
case 10:
|
|
40
40
|
case 11:
|
|
41
|
-
this.$ = o[
|
|
41
|
+
this.$ = o[v].trim(), u.getCommonDb().setAccDescription(this.$);
|
|
42
42
|
break;
|
|
43
43
|
case 12:
|
|
44
|
-
u.addSection(o[
|
|
44
|
+
u.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
|
|
45
45
|
break;
|
|
46
46
|
case 15:
|
|
47
|
-
u.addTask(o[
|
|
47
|
+
u.addTask(o[v], 0, ""), this.$ = o[v];
|
|
48
48
|
break;
|
|
49
49
|
case 16:
|
|
50
|
-
u.addEvent(o[
|
|
50
|
+
u.addEvent(o[v].substr(2)), this.$ = o[v];
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
}, "anonymous"),
|
|
54
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17:
|
|
54
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
|
|
55
55
|
defaultActions: {},
|
|
56
56
|
parseError: /* @__PURE__ */ s(function(r, a) {
|
|
57
57
|
if (a.recoverable)
|
|
58
58
|
this.trace(r);
|
|
59
59
|
else {
|
|
60
|
-
var
|
|
61
|
-
throw
|
|
60
|
+
var c = new Error(r);
|
|
61
|
+
throw c.hash = a, c;
|
|
62
62
|
}
|
|
63
63
|
}, "parseError"),
|
|
64
64
|
parse: /* @__PURE__ */ s(function(r) {
|
|
65
|
-
var a = this,
|
|
65
|
+
var a = this, c = [0], u = [], y = [null], o = [], w = this.table, v = "", N = 0, P = 0, V = 2, U = 1, H = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
|
|
66
66
|
for (var L in this.yy)
|
|
67
|
-
Object.prototype.hasOwnProperty.call(this.yy, L) && (
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
o.push(
|
|
71
|
-
var
|
|
72
|
-
typeof
|
|
73
|
-
function
|
|
74
|
-
|
|
67
|
+
Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
|
|
68
|
+
g.setInput(r, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
|
|
69
|
+
var M = g.yylloc;
|
|
70
|
+
o.push(M);
|
|
71
|
+
var W = g.options && g.options.ranges;
|
|
72
|
+
typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
73
|
+
function Z(T) {
|
|
74
|
+
c.length = c.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
|
|
75
75
|
}
|
|
76
|
-
s(
|
|
77
|
-
function
|
|
76
|
+
s(Z, "popStack");
|
|
77
|
+
function tt() {
|
|
78
78
|
var T;
|
|
79
|
-
return T = u.pop() ||
|
|
79
|
+
return T = u.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
|
|
80
80
|
}
|
|
81
|
-
s(
|
|
82
|
-
for (var
|
|
83
|
-
if (
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
for (
|
|
87
|
-
this.terminals_[
|
|
88
|
-
|
|
89
|
-
` +
|
|
90
|
-
Expecting ` +
|
|
91
|
-
text:
|
|
92
|
-
token: this.terminals_[
|
|
93
|
-
line:
|
|
94
|
-
loc:
|
|
95
|
-
expected:
|
|
81
|
+
s(tt, "lex");
|
|
82
|
+
for (var S, A, I, J, R = {}, B, $, et, O; ; ) {
|
|
83
|
+
if (A = c[c.length - 1], this.defaultActions[A] ? I = this.defaultActions[A] : ((S === null || typeof S > "u") && (S = tt()), I = w[A] && w[A][S]), typeof I > "u" || !I.length || !I[0]) {
|
|
84
|
+
var K = "";
|
|
85
|
+
O = [];
|
|
86
|
+
for (B in w[A])
|
|
87
|
+
this.terminals_[B] && B > V && O.push("'" + this.terminals_[B] + "'");
|
|
88
|
+
g.showPosition ? K = "Parse error on line " + (N + 1) + `:
|
|
89
|
+
` + g.showPosition() + `
|
|
90
|
+
Expecting ` + O.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : K = "Parse error on line " + (N + 1) + ": Unexpected " + (S == U ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(K, {
|
|
91
|
+
text: g.match,
|
|
92
|
+
token: this.terminals_[S] || S,
|
|
93
|
+
line: g.yylineno,
|
|
94
|
+
loc: M,
|
|
95
|
+
expected: O
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
if (I[0] instanceof Array && I.length > 1)
|
|
99
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
99
|
+
throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + S);
|
|
100
100
|
switch (I[0]) {
|
|
101
101
|
case 1:
|
|
102
|
-
|
|
102
|
+
c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, P = g.yyleng, v = g.yytext, N = g.yylineno, M = g.yylloc;
|
|
103
103
|
break;
|
|
104
104
|
case 2:
|
|
105
|
-
if (
|
|
106
|
-
first_line: o[o.length - (
|
|
105
|
+
if ($ = this.productions_[I[1]][1], R.$ = y[y.length - $], R._$ = {
|
|
106
|
+
first_line: o[o.length - ($ || 1)].first_line,
|
|
107
107
|
last_line: o[o.length - 1].last_line,
|
|
108
|
-
first_column: o[o.length - (
|
|
108
|
+
first_column: o[o.length - ($ || 1)].first_column,
|
|
109
109
|
last_column: o[o.length - 1].last_column
|
|
110
|
-
},
|
|
111
|
-
o[o.length - (
|
|
110
|
+
}, W && (R._$.range = [
|
|
111
|
+
o[o.length - ($ || 1)].range[0],
|
|
112
112
|
o[o.length - 1].range[1]
|
|
113
|
-
]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
]), J = this.performAction.apply(R, [
|
|
114
|
+
v,
|
|
115
|
+
P,
|
|
116
|
+
N,
|
|
117
|
+
b.yy,
|
|
118
118
|
I[1],
|
|
119
119
|
y,
|
|
120
120
|
o
|
|
121
|
-
].concat(
|
|
122
|
-
return
|
|
123
|
-
|
|
121
|
+
].concat(H)), typeof J < "u")
|
|
122
|
+
return J;
|
|
123
|
+
$ && (c = c.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), c.push(this.productions_[I[1]][0]), y.push(R.$), o.push(R._$), et = w[c[c.length - 2]][c[c.length - 1]], c.push(et);
|
|
124
124
|
break;
|
|
125
125
|
case 3:
|
|
126
126
|
return !0;
|
|
@@ -128,12 +128,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
128
128
|
}
|
|
129
129
|
return !0;
|
|
130
130
|
}, "parse")
|
|
131
|
-
},
|
|
132
|
-
var
|
|
131
|
+
}, k = /* @__PURE__ */ (function() {
|
|
132
|
+
var x = {
|
|
133
133
|
EOF: 1,
|
|
134
|
-
parseError: /* @__PURE__ */ s(function(a,
|
|
134
|
+
parseError: /* @__PURE__ */ s(function(a, c) {
|
|
135
135
|
if (this.yy.parser)
|
|
136
|
-
this.yy.parser.parseError(a,
|
|
136
|
+
this.yy.parser.parseError(a, c);
|
|
137
137
|
else
|
|
138
138
|
throw new Error(a);
|
|
139
139
|
}, "parseError"),
|
|
@@ -155,16 +155,16 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
155
155
|
}, "input"),
|
|
156
156
|
// unshifts one char (or a string) into the input
|
|
157
157
|
unput: /* @__PURE__ */ s(function(r) {
|
|
158
|
-
var a = r.length,
|
|
158
|
+
var a = r.length, c = r.split(/(?:\r\n?|\n)/g);
|
|
159
159
|
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
160
160
|
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
161
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
161
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
162
162
|
var y = this.yylloc.range;
|
|
163
163
|
return this.yylloc = {
|
|
164
164
|
first_line: this.yylloc.first_line,
|
|
165
165
|
last_line: this.yylineno + 1,
|
|
166
166
|
first_column: this.yylloc.first_column,
|
|
167
|
-
last_column:
|
|
167
|
+
last_column: c ? (c.length === u.length ? this.yylloc.first_column : 0) + u[u.length - c.length].length - c[0].length : this.yylloc.first_column - a
|
|
168
168
|
}, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
169
169
|
}, "unput"),
|
|
170
170
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -206,7 +206,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
206
206
|
}, "showPosition"),
|
|
207
207
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
208
208
|
test_match: /* @__PURE__ */ s(function(r, a) {
|
|
209
|
-
var
|
|
209
|
+
var c, u, y;
|
|
210
210
|
if (this.options.backtrack_lexer && (y = {
|
|
211
211
|
yylineno: this.yylineno,
|
|
212
212
|
yylloc: {
|
|
@@ -231,8 +231,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
231
231
|
last_line: this.yylineno + 1,
|
|
232
232
|
first_column: this.yylloc.last_column,
|
|
233
233
|
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
234
|
-
}, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0],
|
|
235
|
-
return
|
|
234
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
|
|
235
|
+
return c;
|
|
236
236
|
if (this._backtrack) {
|
|
237
237
|
for (var o in y)
|
|
238
238
|
this[o] = y[o];
|
|
@@ -245,12 +245,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
245
245
|
if (this.done)
|
|
246
246
|
return this.EOF;
|
|
247
247
|
this._input || (this.done = !0);
|
|
248
|
-
var r, a,
|
|
248
|
+
var r, a, c, u;
|
|
249
249
|
this._more || (this.yytext = "", this.match = "");
|
|
250
250
|
for (var y = this._currentRules(), o = 0; o < y.length; o++)
|
|
251
|
-
if (
|
|
252
|
-
if (a =
|
|
253
|
-
if (r = this.test_match(
|
|
251
|
+
if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
|
|
252
|
+
if (a = c, u = o, this.options.backtrack_lexer) {
|
|
253
|
+
if (r = this.test_match(c, y[o]), r !== !1)
|
|
254
254
|
return r;
|
|
255
255
|
if (this._backtrack) {
|
|
256
256
|
a = !1;
|
|
@@ -298,7 +298,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
298
298
|
return this.conditionStack.length;
|
|
299
299
|
}, "stateStackSize"),
|
|
300
300
|
options: { "case-insensitive": !0 },
|
|
301
|
-
performAction: /* @__PURE__ */ s(function(a,
|
|
301
|
+
performAction: /* @__PURE__ */ s(function(a, c, u, y) {
|
|
302
302
|
switch (u) {
|
|
303
303
|
case 0:
|
|
304
304
|
break;
|
|
@@ -345,16 +345,16 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
345
345
|
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
346
346
|
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
|
|
347
347
|
};
|
|
348
|
-
return
|
|
348
|
+
return x;
|
|
349
349
|
})();
|
|
350
|
-
p.lexer =
|
|
350
|
+
p.lexer = k;
|
|
351
351
|
function _() {
|
|
352
352
|
this.yy = {};
|
|
353
353
|
}
|
|
354
354
|
return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
|
|
355
355
|
})();
|
|
356
|
-
|
|
357
|
-
var Tt =
|
|
356
|
+
Q.parser = Q;
|
|
357
|
+
var Tt = Q, at = {};
|
|
358
358
|
wt(at, {
|
|
359
359
|
addEvent: () => yt,
|
|
360
360
|
addSection: () => ht,
|
|
@@ -366,47 +366,47 @@ wt(at, {
|
|
|
366
366
|
getSections: () => dt,
|
|
367
367
|
getTasks: () => ut
|
|
368
368
|
});
|
|
369
|
-
var
|
|
370
|
-
|
|
369
|
+
var F = "", lt = 0, X = [], G = [], z = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
|
|
370
|
+
X.length = 0, G.length = 0, F = "", z.length = 0, Et();
|
|
371
371
|
}, "clear"), ht = /* @__PURE__ */ s(function(n) {
|
|
372
|
-
|
|
372
|
+
F = n, X.push(n);
|
|
373
373
|
}, "addSection"), dt = /* @__PURE__ */ s(function() {
|
|
374
|
-
return
|
|
374
|
+
return X;
|
|
375
375
|
}, "getSections"), ut = /* @__PURE__ */ s(function() {
|
|
376
376
|
let n = it();
|
|
377
377
|
const t = 100;
|
|
378
378
|
let e = 0;
|
|
379
379
|
for (; !n && e < t; )
|
|
380
380
|
n = it(), e++;
|
|
381
|
-
return
|
|
381
|
+
return G.push(...z), G;
|
|
382
382
|
}, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
|
|
383
383
|
const l = {
|
|
384
384
|
id: lt++,
|
|
385
|
-
section:
|
|
386
|
-
type:
|
|
385
|
+
section: F,
|
|
386
|
+
type: F,
|
|
387
387
|
task: n,
|
|
388
388
|
score: t || 0,
|
|
389
389
|
//if event is defined, then add it the events array
|
|
390
390
|
events: e ? [e] : []
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
z.push(l);
|
|
393
393
|
}, "addTask"), yt = /* @__PURE__ */ s(function(n) {
|
|
394
|
-
|
|
394
|
+
z.find((e) => e.id === lt - 1).events.push(n);
|
|
395
395
|
}, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
|
|
396
396
|
const t = {
|
|
397
|
-
section:
|
|
398
|
-
type:
|
|
397
|
+
section: F,
|
|
398
|
+
type: F,
|
|
399
399
|
description: n,
|
|
400
400
|
task: n,
|
|
401
401
|
classes: []
|
|
402
402
|
};
|
|
403
|
-
|
|
403
|
+
G.push(t);
|
|
404
404
|
}, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
|
|
405
405
|
const n = /* @__PURE__ */ s(function(e) {
|
|
406
|
-
return
|
|
406
|
+
return z[e].processed;
|
|
407
407
|
}, "compileTask");
|
|
408
408
|
let t = !0;
|
|
409
|
-
for (const [e, l] of
|
|
409
|
+
for (const [e, l] of z.entries())
|
|
410
410
|
n(e), t = t && l.processed;
|
|
411
411
|
return t;
|
|
412
412
|
}, "compileTasks"), It = {
|
|
@@ -418,7 +418,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
418
418
|
addTask: pt,
|
|
419
419
|
addTaskOrg: gt,
|
|
420
420
|
addEvent: yt
|
|
421
|
-
}, Nt = 12,
|
|
421
|
+
}, Nt = 12, q = /* @__PURE__ */ s(function(n, t) {
|
|
422
422
|
const e = n.append("rect");
|
|
423
423
|
return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
|
|
424
424
|
}, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
|
|
@@ -429,15 +429,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
429
429
|
m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
430
430
|
}
|
|
431
431
|
s(d, "smile");
|
|
432
|
-
function
|
|
432
|
+
function h(m) {
|
|
433
433
|
const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
434
434
|
m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
435
435
|
}
|
|
436
|
-
s(
|
|
437
|
-
function
|
|
436
|
+
s(h, "sad");
|
|
437
|
+
function f(m) {
|
|
438
438
|
m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
439
439
|
}
|
|
440
|
-
return s(
|
|
440
|
+
return s(f, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? h(i) : f(i), l;
|
|
441
441
|
}, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
|
|
442
442
|
const e = n.append("circle");
|
|
443
443
|
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
@@ -447,15 +447,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
447
447
|
const i = l.append("tspan");
|
|
448
448
|
return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
|
|
449
449
|
}, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
|
|
450
|
-
function e(i, d,
|
|
451
|
-
return i + "," + d + " " + (i +
|
|
450
|
+
function e(i, d, h, f, m) {
|
|
451
|
+
return i + "," + d + " " + (i + h) + "," + d + " " + (i + h) + "," + (d + f - m) + " " + (i + h - m * 1.2) + "," + (d + f) + " " + i + "," + (d + f);
|
|
452
452
|
}
|
|
453
453
|
s(e, "genPoints");
|
|
454
454
|
const l = n.append("polygon");
|
|
455
455
|
l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
|
|
456
456
|
}, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
|
|
457
|
-
const l = n.append("g"), i =
|
|
458
|
-
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3,
|
|
457
|
+
const l = n.append("g"), i = Y();
|
|
458
|
+
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, q(l, i), mt(e)(
|
|
459
459
|
t.text,
|
|
460
460
|
l,
|
|
461
461
|
i.x,
|
|
@@ -473,20 +473,20 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
473
473
|
cy: 300 + (5 - t.score) * 30,
|
|
474
474
|
score: t.score
|
|
475
475
|
});
|
|
476
|
-
const
|
|
477
|
-
|
|
476
|
+
const h = Y();
|
|
477
|
+
h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = e.width, h.height = e.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, q(i, h), mt(e)(
|
|
478
478
|
t.task,
|
|
479
479
|
i,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
480
|
+
h.x,
|
|
481
|
+
h.y,
|
|
482
|
+
h.width,
|
|
483
|
+
h.height,
|
|
484
484
|
{ class: "task" },
|
|
485
485
|
e,
|
|
486
486
|
t.colour
|
|
487
487
|
);
|
|
488
488
|
}, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
|
|
489
|
-
|
|
489
|
+
q(n, {
|
|
490
490
|
x: t.startx,
|
|
491
491
|
y: t.starty,
|
|
492
492
|
width: t.stopx - t.startx,
|
|
@@ -506,7 +506,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
506
506
|
rx: 0,
|
|
507
507
|
ry: 0
|
|
508
508
|
};
|
|
509
|
-
}, "getTextObj"),
|
|
509
|
+
}, "getTextObj"), Y = /* @__PURE__ */ s(function() {
|
|
510
510
|
return {
|
|
511
511
|
x: 0,
|
|
512
512
|
y: 0,
|
|
@@ -517,27 +517,27 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
517
517
|
ry: 0
|
|
518
518
|
};
|
|
519
519
|
}, "getNoteRect"), mt = /* @__PURE__ */ (function() {
|
|
520
|
-
function n(i, d,
|
|
521
|
-
const
|
|
522
|
-
l(
|
|
520
|
+
function n(i, d, h, f, m, p, k, _) {
|
|
521
|
+
const x = d.append("text").attr("x", h + m / 2).attr("y", f + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
|
|
522
|
+
l(x, k);
|
|
523
523
|
}
|
|
524
524
|
s(n, "byText");
|
|
525
|
-
function t(i, d,
|
|
526
|
-
const { taskFontSize: r, taskFontFamily: a } = _,
|
|
527
|
-
for (let u = 0; u <
|
|
528
|
-
const y = u * r - r * (
|
|
529
|
-
o.append("tspan").attr("x",
|
|
525
|
+
function t(i, d, h, f, m, p, k, _, x) {
|
|
526
|
+
const { taskFontSize: r, taskFontFamily: a } = _, c = i.split(/<br\s*\/?>/gi);
|
|
527
|
+
for (let u = 0; u < c.length; u++) {
|
|
528
|
+
const y = u * r - r * (c.length - 1) / 2, o = d.append("text").attr("x", h + m / 2).attr("y", f).attr("fill", x).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
|
|
529
|
+
o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[u]), o.attr("y", f + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
s(t, "byTspan");
|
|
533
|
-
function e(i, d,
|
|
534
|
-
const
|
|
535
|
-
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i,
|
|
533
|
+
function e(i, d, h, f, m, p, k, _) {
|
|
534
|
+
const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
535
|
+
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, x, h, f, m, p, k, _), l(a, k);
|
|
536
536
|
}
|
|
537
537
|
s(e, "byFo");
|
|
538
538
|
function l(i, d) {
|
|
539
|
-
for (const
|
|
540
|
-
|
|
539
|
+
for (const h in d)
|
|
540
|
+
h in d && i.attr(h, d[h]);
|
|
541
541
|
}
|
|
542
542
|
return s(l, "_setTextAttrs"), function(i) {
|
|
543
543
|
return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
|
|
@@ -545,34 +545,32 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
545
545
|
})(), Rt = /* @__PURE__ */ s(function(n) {
|
|
546
546
|
n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
547
547
|
}, "initGraphics");
|
|
548
|
-
function
|
|
548
|
+
function D(n, t) {
|
|
549
549
|
n.each(function() {
|
|
550
|
-
var e =
|
|
551
|
-
for (let
|
|
552
|
-
i = l[l.length - 1 -
|
|
550
|
+
var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
|
|
551
|
+
for (let k = 0; k < l.length; k++)
|
|
552
|
+
i = l[l.length - 1 - k], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(i));
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
s(
|
|
555
|
+
s(D, "wrap");
|
|
556
556
|
var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
557
|
-
var _;
|
|
558
557
|
const i = e % Nt - 1, d = n.append("g");
|
|
559
558
|
t.section = i, d.attr(
|
|
560
559
|
"class",
|
|
561
560
|
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
|
|
562
561
|
);
|
|
563
|
-
const
|
|
564
|
-
return t.height = p.height +
|
|
562
|
+
const h = d.append("g"), f = d.append("g"), p = f.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), k = l.fontSize?.replace ? l.fontSize.replace("px", "") : l.fontSize;
|
|
563
|
+
return t.height = p.height + k * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, f.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(h, t, i, l), t;
|
|
565
564
|
}, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
|
|
565
|
+
const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), h = e.fontSize?.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
566
|
+
return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
|
|
569
567
|
}, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
|
|
570
568
|
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
571
569
|
"d",
|
|
572
570
|
`M0 ${t.height - 5} v${-t.height + 10} q0,-5 5,-5 h${t.width - 10} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
573
571
|
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
574
|
-
}, "defaultBkg"),
|
|
575
|
-
drawRect:
|
|
572
|
+
}, "defaultBkg"), C = {
|
|
573
|
+
drawRect: q,
|
|
576
574
|
drawCircle: Mt,
|
|
577
575
|
drawSection: Ht,
|
|
578
576
|
drawText: ft,
|
|
@@ -580,131 +578,129 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
580
578
|
drawTask: Pt,
|
|
581
579
|
drawBackgroundRect: At,
|
|
582
580
|
getTextObj: Ct,
|
|
583
|
-
getNoteRect:
|
|
581
|
+
getNoteRect: Y,
|
|
584
582
|
initGraphics: Rt,
|
|
585
583
|
drawNode: Ft,
|
|
586
584
|
getVirtualNodeHeight: zt
|
|
587
585
|
}, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
588
|
-
|
|
589
|
-
const i = xt(), d = ((O = i.timeline) == null ? void 0 : O.leftMargin) ?? 50;
|
|
586
|
+
const i = xt(), d = i.timeline?.leftMargin ?? 50;
|
|
590
587
|
E.debug("timeline", l.db);
|
|
591
|
-
const
|
|
592
|
-
let
|
|
593
|
-
|
|
594
|
-
const p = (
|
|
588
|
+
const h = i.securityLevel;
|
|
589
|
+
let f;
|
|
590
|
+
h === "sandbox" && (f = j("#i" + t));
|
|
591
|
+
const p = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
|
|
595
592
|
p.append("g");
|
|
596
|
-
const
|
|
597
|
-
E.debug("task",
|
|
598
|
-
const
|
|
599
|
-
E.debug("sections",
|
|
600
|
-
let r = 0, a = 0,
|
|
593
|
+
const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
|
|
594
|
+
E.debug("task", k), C.initGraphics(p);
|
|
595
|
+
const x = l.db.getSections();
|
|
596
|
+
E.debug("sections", x);
|
|
597
|
+
let r = 0, a = 0, c = 0, u = 0, y = 50 + d, o = 50;
|
|
601
598
|
u = 50;
|
|
602
|
-
let
|
|
603
|
-
|
|
604
|
-
const
|
|
605
|
-
number:
|
|
606
|
-
descr:
|
|
607
|
-
section:
|
|
599
|
+
let w = 0, v = !0;
|
|
600
|
+
x.forEach(function(H) {
|
|
601
|
+
const g = {
|
|
602
|
+
number: w,
|
|
603
|
+
descr: H,
|
|
604
|
+
section: w,
|
|
608
605
|
width: 150,
|
|
609
606
|
padding: 20,
|
|
610
607
|
maxHeight: r
|
|
611
|
-
},
|
|
612
|
-
E.debug("sectionHeight before draw",
|
|
608
|
+
}, b = C.getVirtualNodeHeight(p, g, i);
|
|
609
|
+
E.debug("sectionHeight before draw", b), r = Math.max(r, b + 20);
|
|
613
610
|
});
|
|
614
|
-
let
|
|
615
|
-
E.debug("tasks.length",
|
|
616
|
-
for (const [
|
|
617
|
-
const
|
|
618
|
-
number:
|
|
619
|
-
descr:
|
|
620
|
-
section:
|
|
611
|
+
let N = 0, P = 0;
|
|
612
|
+
E.debug("tasks.length", k.length);
|
|
613
|
+
for (const [H, g] of k.entries()) {
|
|
614
|
+
const b = {
|
|
615
|
+
number: H,
|
|
616
|
+
descr: g,
|
|
617
|
+
section: g.section,
|
|
621
618
|
width: 150,
|
|
622
619
|
padding: 20,
|
|
623
620
|
maxHeight: a
|
|
624
|
-
},
|
|
625
|
-
E.debug("taskHeight before draw",
|
|
626
|
-
let
|
|
627
|
-
for (const
|
|
628
|
-
const
|
|
629
|
-
descr:
|
|
630
|
-
section:
|
|
631
|
-
number:
|
|
621
|
+
}, L = C.getVirtualNodeHeight(p, b, i);
|
|
622
|
+
E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
|
|
623
|
+
let M = 0;
|
|
624
|
+
for (const W of g.events) {
|
|
625
|
+
const Z = {
|
|
626
|
+
descr: W,
|
|
627
|
+
section: g.section,
|
|
628
|
+
number: g.section,
|
|
632
629
|
width: 150,
|
|
633
630
|
padding: 20,
|
|
634
631
|
maxHeight: 50
|
|
635
632
|
};
|
|
636
|
-
|
|
633
|
+
M += C.getVirtualNodeHeight(p, Z, i);
|
|
637
634
|
}
|
|
638
|
-
|
|
635
|
+
g.events.length > 0 && (M += (g.events.length - 1) * 10), P = Math.max(P, M);
|
|
639
636
|
}
|
|
640
|
-
E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a),
|
|
641
|
-
const
|
|
642
|
-
number:
|
|
643
|
-
descr:
|
|
644
|
-
section:
|
|
645
|
-
width: 200 * Math.max(
|
|
637
|
+
E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach((H) => {
|
|
638
|
+
const g = k.filter((W) => W.section === H), b = {
|
|
639
|
+
number: w,
|
|
640
|
+
descr: H,
|
|
641
|
+
section: w,
|
|
642
|
+
width: 200 * Math.max(g.length, 1) - 50,
|
|
646
643
|
padding: 20,
|
|
647
644
|
maxHeight: r
|
|
648
645
|
};
|
|
649
|
-
E.debug("sectionNode",
|
|
650
|
-
const
|
|
651
|
-
E.debug("sectionNode output",
|
|
646
|
+
E.debug("sectionNode", b);
|
|
647
|
+
const L = p.append("g"), M = C.drawNode(L, b, w, i);
|
|
648
|
+
E.debug("sectionNode output", M), L.attr("transform", `translate(${y}, ${u})`), o += r + 50, g.length > 0 && st(
|
|
652
649
|
p,
|
|
653
|
-
|
|
654
|
-
|
|
650
|
+
g,
|
|
651
|
+
w,
|
|
655
652
|
y,
|
|
656
653
|
o,
|
|
657
654
|
a,
|
|
658
655
|
i,
|
|
659
|
-
|
|
660
|
-
|
|
656
|
+
N,
|
|
657
|
+
P,
|
|
661
658
|
r,
|
|
662
659
|
!1
|
|
663
|
-
), y += 200 * Math.max(
|
|
664
|
-
}) : (
|
|
660
|
+
), y += 200 * Math.max(g.length, 1), o = u, w++;
|
|
661
|
+
}) : (v = !1, st(
|
|
665
662
|
p,
|
|
666
|
-
|
|
667
|
-
|
|
663
|
+
k,
|
|
664
|
+
w,
|
|
668
665
|
y,
|
|
669
666
|
o,
|
|
670
667
|
a,
|
|
671
668
|
i,
|
|
672
|
-
|
|
673
|
-
|
|
669
|
+
N,
|
|
670
|
+
P,
|
|
674
671
|
r,
|
|
675
672
|
!0
|
|
676
673
|
));
|
|
677
|
-
const
|
|
678
|
-
E.debug("bounds",
|
|
674
|
+
const V = p.node().getBBox();
|
|
675
|
+
E.debug("bounds", V), _ && p.append("text").text(_).attr("x", V.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", c).attr("x2", V.width + 3 * d).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
|
|
679
676
|
void 0,
|
|
680
677
|
p,
|
|
681
|
-
|
|
682
|
-
|
|
678
|
+
i.timeline?.padding ?? 50,
|
|
679
|
+
i.timeline?.useMaxWidth ?? !1
|
|
683
680
|
);
|
|
684
|
-
}, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
descr: f.task,
|
|
681
|
+
}, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, h, f, m, p, k) {
|
|
682
|
+
for (const _ of t) {
|
|
683
|
+
const x = {
|
|
684
|
+
descr: _.task,
|
|
689
685
|
section: e,
|
|
690
686
|
number: e,
|
|
691
687
|
width: 150,
|
|
692
688
|
padding: 20,
|
|
693
689
|
maxHeight: d
|
|
694
690
|
};
|
|
695
|
-
E.debug("taskNode",
|
|
696
|
-
const
|
|
697
|
-
if (E.debug("taskHeight after draw",
|
|
698
|
-
const
|
|
699
|
-
let
|
|
700
|
-
i += 100,
|
|
691
|
+
E.debug("taskNode", x);
|
|
692
|
+
const r = n.append("g").attr("class", "taskWrapper"), c = C.drawNode(r, x, e, h).height;
|
|
693
|
+
if (E.debug("taskHeight after draw", c), r.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, c), _.events) {
|
|
694
|
+
const u = n.append("g").attr("class", "lineWrapper");
|
|
695
|
+
let y = d;
|
|
696
|
+
i += 100, y = y + Bt(n, _.events, e, l, i, h), i -= 100, u.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
701
697
|
}
|
|
702
|
-
l = l + 200,
|
|
698
|
+
l = l + 200, k && !h.timeline?.disableMulticolor && e++;
|
|
703
699
|
}
|
|
704
700
|
i = i - 10;
|
|
705
701
|
}, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
|
|
706
|
-
let
|
|
707
|
-
const
|
|
702
|
+
let h = 0;
|
|
703
|
+
const f = i;
|
|
708
704
|
i = i + 100;
|
|
709
705
|
for (const m of t) {
|
|
710
706
|
const p = {
|
|
@@ -716,10 +712,10 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
716
712
|
maxHeight: 50
|
|
717
713
|
};
|
|
718
714
|
E.debug("eventNode", p);
|
|
719
|
-
const
|
|
720
|
-
|
|
715
|
+
const k = n.append("g").attr("class", "eventWrapper"), x = C.drawNode(k, p, e, d).height;
|
|
716
|
+
h = h + x, k.attr("transform", `translate(${l}, ${i})`), i = i + 10 + x;
|
|
721
717
|
}
|
|
722
|
-
return i =
|
|
718
|
+
return i = f, h;
|
|
723
719
|
}, "drawEvents"), Ot = {
|
|
724
720
|
setConf: /* @__PURE__ */ s(() => {
|
|
725
721
|
}, "setConf"),
|