@loopstack/loopstack-studio 0.25.0 → 0.25.2
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/components/ai-elements/message.js +2 -2
- package/dist/components/ai-elements/reasoning.js +9 -9
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +2 -5
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +69 -72
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-7HQA4BMR.js → architecture-YZFGNWBL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-TQ3KTPDO.js → chunk-2KRD3SAO.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-4F5CHEZ2.js → chunk-67CJDMHE.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-UMXZTB3W.js → chunk-7N4EOEYR.js} +5 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-PL6DKKU2.js → chunk-AA7GKIK3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-SJTYNZTY.js → chunk-FOC6F5B3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1197 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FRFDVMJY.js → chunk-KGLVRYIC.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-B2363JML.js → chunk-LIHQZDEY.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +29 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-G5XIXVHT.js → gitGraph-7Q5UKJZL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +27 -17
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +903 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +76 -75
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +30 -28
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +31 -40
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +23 -26
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +181 -205
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +8 -9
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +176 -183
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +153 -160
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +36 -38
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +37 -45
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +80 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +6 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +39 -41
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +7 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +69 -70
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +215 -205
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +76 -76
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +29 -39
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +252 -274
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +93 -106
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +61 -61
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +31 -41
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +15 -18
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +226 -226
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +17 -17
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +17 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +61 -61
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +67 -67
- package/dist/node_modules/katex/dist/katex.js +1256 -1209
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -0
- package/dist/node_modules/lodash-es/_baseClone.js +2 -2
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseToString.js +1 -1
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/flatMap.js +1 -1
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +691 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-VD42YOAC.js → blockDiagram-DXYQGD6D.js} +183 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +65 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +47 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EXTU4WIE.js → chunk-426QAEUC.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +533 -393
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3638 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-S3R3BYOJ.js → chunk-5PVQY5BW.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-HN2XXSSU.js → chunk-BSJP7CBP.js} +20 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-QN33PNHL.js → chunk-EDXVE4YY.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +568 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2320 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-DI55MBZ5.js → chunk-OYMX7WX6.js} +35 -21
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +272 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ATLVNIR6.js → chunk-X2U36JSP.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-MI3HLSF2.js → chunk-XPW4576I.js} +11 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +60 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +30 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-2ON5EDUG.js → classDiagram-6PBFFD2Q.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-WZHVMYZB.js → classDiagram-v2-HSJHXN6E.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-6UL2VRFP.js → dagre-KV5264BT.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +99 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-PSM6KHXK.js → diagram-G4DWMVQ6.js} +20 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +211 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-S2PKOQOG.js → diagram-TYMM5635.js} +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +486 -386
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +915 -898
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-JELNMOA3.js → ganttDiagram-T4ZO3ILL.js} +59 -29
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +728 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +17 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +714 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-XKPGCS4Q.js → journeyDiagram-VCZTEJTY.js} +32 -32
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +13 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +105 -59
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +117 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +49 -19
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-TZEHDZUN.js → sankeyDiagram-XADWPNL6.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4155 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FKZM4ZOC.js → stateDiagram-FHFEXIEX.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-4FDKWEC3.js → stateDiagram-v2-QKLJ7IA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1071 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +959 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +574 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-PRI3JC2R.js → xychartDiagram-5P7HB3ND.js} +38 -35
- package/dist/node_modules/mermaid/dist/mermaid.core.js +235 -192
- package/dist/node_modules/nanoid/url-alphabet/index.js +1 -1
- package/dist/node_modules/remend/dist/index.js +333 -264
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2498 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +35 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +672 -667
- package/dist/pages/DashboardPage.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
|
@@ -0,0 +1,1071 @@
|
|
|
1
|
+
import { __export, __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import is_dark_default from "../../../../khroma/dist/methods/is_dark.js";
|
|
3
|
+
import lighten_default from "../../../../khroma/dist/methods/lighten.js";
|
|
4
|
+
import darken_default from "../../../../khroma/dist/methods/darken.js";
|
|
5
|
+
import { clear, commonDb_exports, getConfig, getConfig2, setupGraphViewbox } from "./chunk-ICPOFSXX.js";
|
|
6
|
+
import select_default from "../../../../d3-selection/src/select.js";
|
|
7
|
+
import arc_default from "../../../../d3-shape/src/arc.js";
|
|
8
|
+
import "../../../../d3/src/index.js";
|
|
9
|
+
import { selectSvgElement } from "./chunk-426QAEUC.js";
|
|
10
|
+
import { parseFontSize } from "./chunk-5PVQY5BW.js";
|
|
11
|
+
var parser = (function() {
|
|
12
|
+
var e = /* @__PURE__ */ __name(function(e, b, x, S) {
|
|
13
|
+
for (x ||= {}, S = e.length; S--; x[e[S]] = b);
|
|
14
|
+
return x;
|
|
15
|
+
}, "o"), x = [
|
|
16
|
+
6,
|
|
17
|
+
11,
|
|
18
|
+
13,
|
|
19
|
+
14,
|
|
20
|
+
15,
|
|
21
|
+
17,
|
|
22
|
+
19,
|
|
23
|
+
20,
|
|
24
|
+
23,
|
|
25
|
+
24
|
|
26
|
+
], S = [1, 12], C = [1, 13], w = [1, 14], T = [1, 15], E = [1, 16], D = [1, 19], O = [1, 20], k = {
|
|
27
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
28
|
+
yy: {},
|
|
29
|
+
symbols_: {
|
|
30
|
+
error: 2,
|
|
31
|
+
start: 3,
|
|
32
|
+
timeline_header: 4,
|
|
33
|
+
document: 5,
|
|
34
|
+
EOF: 6,
|
|
35
|
+
timeline: 7,
|
|
36
|
+
timeline_lr: 8,
|
|
37
|
+
timeline_td: 9,
|
|
38
|
+
line: 10,
|
|
39
|
+
SPACE: 11,
|
|
40
|
+
statement: 12,
|
|
41
|
+
NEWLINE: 13,
|
|
42
|
+
title: 14,
|
|
43
|
+
acc_title: 15,
|
|
44
|
+
acc_title_value: 16,
|
|
45
|
+
acc_descr: 17,
|
|
46
|
+
acc_descr_value: 18,
|
|
47
|
+
acc_descr_multiline_value: 19,
|
|
48
|
+
section: 20,
|
|
49
|
+
period_statement: 21,
|
|
50
|
+
event_statement: 22,
|
|
51
|
+
period: 23,
|
|
52
|
+
event: 24,
|
|
53
|
+
$accept: 0,
|
|
54
|
+
$end: 1
|
|
55
|
+
},
|
|
56
|
+
terminals_: {
|
|
57
|
+
2: "error",
|
|
58
|
+
6: "EOF",
|
|
59
|
+
7: "timeline",
|
|
60
|
+
8: "timeline_lr",
|
|
61
|
+
9: "timeline_td",
|
|
62
|
+
11: "SPACE",
|
|
63
|
+
13: "NEWLINE",
|
|
64
|
+
14: "title",
|
|
65
|
+
15: "acc_title",
|
|
66
|
+
16: "acc_title_value",
|
|
67
|
+
17: "acc_descr",
|
|
68
|
+
18: "acc_descr_value",
|
|
69
|
+
19: "acc_descr_multiline_value",
|
|
70
|
+
20: "section",
|
|
71
|
+
23: "period",
|
|
72
|
+
24: "event"
|
|
73
|
+
},
|
|
74
|
+
productions_: [
|
|
75
|
+
0,
|
|
76
|
+
[3, 3],
|
|
77
|
+
[4, 1],
|
|
78
|
+
[4, 1],
|
|
79
|
+
[4, 1],
|
|
80
|
+
[5, 0],
|
|
81
|
+
[5, 2],
|
|
82
|
+
[10, 2],
|
|
83
|
+
[10, 1],
|
|
84
|
+
[10, 1],
|
|
85
|
+
[10, 1],
|
|
86
|
+
[12, 1],
|
|
87
|
+
[12, 2],
|
|
88
|
+
[12, 2],
|
|
89
|
+
[12, 1],
|
|
90
|
+
[12, 1],
|
|
91
|
+
[12, 1],
|
|
92
|
+
[12, 1],
|
|
93
|
+
[21, 1],
|
|
94
|
+
[22, 1]
|
|
95
|
+
],
|
|
96
|
+
performAction: /* @__PURE__ */ __name(function(e, b, x, S, C, w, T) {
|
|
97
|
+
var E = w.length - 1;
|
|
98
|
+
switch (C) {
|
|
99
|
+
case 1: return w[E - 1];
|
|
100
|
+
case 3:
|
|
101
|
+
S.setDirection("LR");
|
|
102
|
+
break;
|
|
103
|
+
case 4:
|
|
104
|
+
S.setDirection("TD");
|
|
105
|
+
break;
|
|
106
|
+
case 5:
|
|
107
|
+
this.$ = [];
|
|
108
|
+
break;
|
|
109
|
+
case 6:
|
|
110
|
+
w[E - 1].push(w[E]), this.$ = w[E - 1];
|
|
111
|
+
break;
|
|
112
|
+
case 7:
|
|
113
|
+
case 8:
|
|
114
|
+
this.$ = w[E];
|
|
115
|
+
break;
|
|
116
|
+
case 9:
|
|
117
|
+
case 10:
|
|
118
|
+
this.$ = [];
|
|
119
|
+
break;
|
|
120
|
+
case 11:
|
|
121
|
+
S.getCommonDb().setDiagramTitle(w[E].substr(6)), this.$ = w[E].substr(6);
|
|
122
|
+
break;
|
|
123
|
+
case 12:
|
|
124
|
+
this.$ = w[E].trim(), S.getCommonDb().setAccTitle(this.$);
|
|
125
|
+
break;
|
|
126
|
+
case 13:
|
|
127
|
+
case 14:
|
|
128
|
+
this.$ = w[E].trim(), S.getCommonDb().setAccDescription(this.$);
|
|
129
|
+
break;
|
|
130
|
+
case 15:
|
|
131
|
+
S.addSection(w[E].substr(8)), this.$ = w[E].substr(8);
|
|
132
|
+
break;
|
|
133
|
+
case 18:
|
|
134
|
+
S.addTask(w[E], 0, ""), this.$ = w[E];
|
|
135
|
+
break;
|
|
136
|
+
case 19:
|
|
137
|
+
S.addEvent(w[E].substr(2)), this.$ = w[E];
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}, "anonymous"),
|
|
141
|
+
table: [
|
|
142
|
+
{
|
|
143
|
+
3: 1,
|
|
144
|
+
4: 2,
|
|
145
|
+
7: [1, 3],
|
|
146
|
+
8: [1, 4],
|
|
147
|
+
9: [1, 5]
|
|
148
|
+
},
|
|
149
|
+
{ 1: [3] },
|
|
150
|
+
e(x, [2, 5], { 5: 6 }),
|
|
151
|
+
e(x, [2, 2]),
|
|
152
|
+
e(x, [2, 3]),
|
|
153
|
+
e(x, [2, 4]),
|
|
154
|
+
{
|
|
155
|
+
6: [1, 7],
|
|
156
|
+
10: 8,
|
|
157
|
+
11: [1, 9],
|
|
158
|
+
12: 10,
|
|
159
|
+
13: [1, 11],
|
|
160
|
+
14: S,
|
|
161
|
+
15: C,
|
|
162
|
+
17: w,
|
|
163
|
+
19: T,
|
|
164
|
+
20: E,
|
|
165
|
+
21: 17,
|
|
166
|
+
22: 18,
|
|
167
|
+
23: D,
|
|
168
|
+
24: O
|
|
169
|
+
},
|
|
170
|
+
e(x, [2, 10], { 1: [2, 1] }),
|
|
171
|
+
e(x, [2, 6]),
|
|
172
|
+
{
|
|
173
|
+
12: 21,
|
|
174
|
+
14: S,
|
|
175
|
+
15: C,
|
|
176
|
+
17: w,
|
|
177
|
+
19: T,
|
|
178
|
+
20: E,
|
|
179
|
+
21: 17,
|
|
180
|
+
22: 18,
|
|
181
|
+
23: D,
|
|
182
|
+
24: O
|
|
183
|
+
},
|
|
184
|
+
e(x, [2, 8]),
|
|
185
|
+
e(x, [2, 9]),
|
|
186
|
+
e(x, [2, 11]),
|
|
187
|
+
{ 16: [1, 22] },
|
|
188
|
+
{ 18: [1, 23] },
|
|
189
|
+
e(x, [2, 14]),
|
|
190
|
+
e(x, [2, 15]),
|
|
191
|
+
e(x, [2, 16]),
|
|
192
|
+
e(x, [2, 17]),
|
|
193
|
+
e(x, [2, 18]),
|
|
194
|
+
e(x, [2, 19]),
|
|
195
|
+
e(x, [2, 7]),
|
|
196
|
+
e(x, [2, 12]),
|
|
197
|
+
e(x, [2, 13])
|
|
198
|
+
],
|
|
199
|
+
defaultActions: {},
|
|
200
|
+
parseError: /* @__PURE__ */ __name(function(e, b) {
|
|
201
|
+
if (b.recoverable) this.trace(e);
|
|
202
|
+
else {
|
|
203
|
+
var x = Error(e);
|
|
204
|
+
throw x.hash = b, x;
|
|
205
|
+
}
|
|
206
|
+
}, "parseError"),
|
|
207
|
+
parse: /* @__PURE__ */ __name(function(e) {
|
|
208
|
+
var x = this, S = [0], C = [], w = [null], T = [], E = this.table, D = "", O = 0, k = 0, A = 0, j = 2, M = 1, N = T.slice.call(arguments, 1), P = Object.create(this.lexer), F = { yy: {} };
|
|
209
|
+
for (var I in this.yy) Object.prototype.hasOwnProperty.call(this.yy, I) && (F.yy[I] = this.yy[I]);
|
|
210
|
+
P.setInput(e, F.yy), F.yy.lexer = P, F.yy.parser = this, P.yylloc === void 0 && (P.yylloc = {});
|
|
211
|
+
var L = P.yylloc;
|
|
212
|
+
T.push(L);
|
|
213
|
+
var R = P.options && P.options.ranges;
|
|
214
|
+
typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
215
|
+
function z(e) {
|
|
216
|
+
S.length -= 2 * e, w.length -= e, T.length -= e;
|
|
217
|
+
}
|
|
218
|
+
__name(z, "popStack");
|
|
219
|
+
function B() {
|
|
220
|
+
var e = C.pop() || P.lex() || M;
|
|
221
|
+
return typeof e != "number" && (e instanceof Array && (C = e, e = C.pop()), e = x.symbols_[e] || e), e;
|
|
222
|
+
}
|
|
223
|
+
__name(B, "lex");
|
|
224
|
+
for (var V, H, U, W, G, K = {}, q, J, Y, X;;) {
|
|
225
|
+
if (U = S[S.length - 1], this.defaultActions[U] ? W = this.defaultActions[U] : (V ??= B(), W = E[U] && E[U][V]), W === void 0 || !W.length || !W[0]) {
|
|
226
|
+
var Z = "";
|
|
227
|
+
for (q in X = [], E[U]) this.terminals_[q] && q > j && X.push("'" + this.terminals_[q] + "'");
|
|
228
|
+
Z = P.showPosition ? "Parse error on line " + (O + 1) + ":\n" + P.showPosition() + "\nExpecting " + X.join(", ") + ", got '" + (this.terminals_[V] || V) + "'" : "Parse error on line " + (O + 1) + ": Unexpected " + (V == M ? "end of input" : "'" + (this.terminals_[V] || V) + "'"), this.parseError(Z, {
|
|
229
|
+
text: P.match,
|
|
230
|
+
token: this.terminals_[V] || V,
|
|
231
|
+
line: P.yylineno,
|
|
232
|
+
loc: L,
|
|
233
|
+
expected: X
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
if (W[0] instanceof Array && W.length > 1) throw Error("Parse Error: multiple actions possible at state: " + U + ", token: " + V);
|
|
237
|
+
switch (W[0]) {
|
|
238
|
+
case 1:
|
|
239
|
+
S.push(V), w.push(P.yytext), T.push(P.yylloc), S.push(W[1]), V = null, H ? (V = H, H = null) : (k = P.yyleng, D = P.yytext, O = P.yylineno, L = P.yylloc, A > 0 && A--);
|
|
240
|
+
break;
|
|
241
|
+
case 2:
|
|
242
|
+
if (J = this.productions_[W[1]][1], K.$ = w[w.length - J], K._$ = {
|
|
243
|
+
first_line: T[T.length - (J || 1)].first_line,
|
|
244
|
+
last_line: T[T.length - 1].last_line,
|
|
245
|
+
first_column: T[T.length - (J || 1)].first_column,
|
|
246
|
+
last_column: T[T.length - 1].last_column
|
|
247
|
+
}, R && (K._$.range = [T[T.length - (J || 1)].range[0], T[T.length - 1].range[1]]), G = this.performAction.apply(K, [
|
|
248
|
+
D,
|
|
249
|
+
k,
|
|
250
|
+
O,
|
|
251
|
+
F.yy,
|
|
252
|
+
W[1],
|
|
253
|
+
w,
|
|
254
|
+
T
|
|
255
|
+
].concat(N)), G !== void 0) return G;
|
|
256
|
+
J && (S = S.slice(0, -1 * J * 2), w = w.slice(0, -1 * J), T = T.slice(0, -1 * J)), S.push(this.productions_[W[1]][0]), w.push(K.$), T.push(K._$), Y = E[S[S.length - 2]][S[S.length - 1]], S.push(Y);
|
|
257
|
+
break;
|
|
258
|
+
case 3: return !0;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return !0;
|
|
262
|
+
}, "parse")
|
|
263
|
+
};
|
|
264
|
+
k.lexer = /* @__PURE__ */ (function() {
|
|
265
|
+
return {
|
|
266
|
+
EOF: 1,
|
|
267
|
+
parseError: /* @__PURE__ */ __name(function(e, b) {
|
|
268
|
+
if (this.yy.parser) this.yy.parser.parseError(e, b);
|
|
269
|
+
else throw Error(e);
|
|
270
|
+
}, "parseError"),
|
|
271
|
+
setInput: /* @__PURE__ */ __name(function(e, b) {
|
|
272
|
+
return this.yy = b || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
273
|
+
first_line: 1,
|
|
274
|
+
first_column: 0,
|
|
275
|
+
last_line: 1,
|
|
276
|
+
last_column: 0
|
|
277
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
278
|
+
}, "setInput"),
|
|
279
|
+
input: /* @__PURE__ */ __name(function() {
|
|
280
|
+
var e = this._input[0];
|
|
281
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
282
|
+
}, "input"),
|
|
283
|
+
unput: /* @__PURE__ */ __name(function(e) {
|
|
284
|
+
var b = e.length, x = e.split(/(?:\r\n?|\n)/g);
|
|
285
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - b), this.offset -= b;
|
|
286
|
+
var S = this.match.split(/(?:\r\n?|\n)/g);
|
|
287
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
|
|
288
|
+
var C = this.yylloc.range;
|
|
289
|
+
return this.yylloc = {
|
|
290
|
+
first_line: this.yylloc.first_line,
|
|
291
|
+
last_line: this.yylineno + 1,
|
|
292
|
+
first_column: this.yylloc.first_column,
|
|
293
|
+
last_column: x ? (x.length === S.length ? this.yylloc.first_column : 0) + S[S.length - x.length].length - x[0].length : this.yylloc.first_column - b
|
|
294
|
+
}, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - b]), this.yyleng = this.yytext.length, this;
|
|
295
|
+
}, "unput"),
|
|
296
|
+
more: /* @__PURE__ */ __name(function() {
|
|
297
|
+
return this._more = !0, this;
|
|
298
|
+
}, "more"),
|
|
299
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
300
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
301
|
+
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).\n" + this.showPosition(), {
|
|
302
|
+
text: "",
|
|
303
|
+
token: null,
|
|
304
|
+
line: this.yylineno
|
|
305
|
+
});
|
|
306
|
+
return this;
|
|
307
|
+
}, "reject"),
|
|
308
|
+
less: /* @__PURE__ */ __name(function(e) {
|
|
309
|
+
this.unput(this.match.slice(e));
|
|
310
|
+
}, "less"),
|
|
311
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
312
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
313
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
314
|
+
}, "pastInput"),
|
|
315
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
316
|
+
var e = this.match;
|
|
317
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
318
|
+
}, "upcomingInput"),
|
|
319
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
320
|
+
var e = this.pastInput(), b = Array(e.length + 1).join("-");
|
|
321
|
+
return e + this.upcomingInput() + "\n" + b + "^";
|
|
322
|
+
}, "showPosition"),
|
|
323
|
+
test_match: /* @__PURE__ */ __name(function(e, b) {
|
|
324
|
+
var x, S, C;
|
|
325
|
+
if (this.options.backtrack_lexer && (C = {
|
|
326
|
+
yylineno: this.yylineno,
|
|
327
|
+
yylloc: {
|
|
328
|
+
first_line: this.yylloc.first_line,
|
|
329
|
+
last_line: this.last_line,
|
|
330
|
+
first_column: this.yylloc.first_column,
|
|
331
|
+
last_column: this.yylloc.last_column
|
|
332
|
+
},
|
|
333
|
+
yytext: this.yytext,
|
|
334
|
+
match: this.match,
|
|
335
|
+
matches: this.matches,
|
|
336
|
+
matched: this.matched,
|
|
337
|
+
yyleng: this.yyleng,
|
|
338
|
+
offset: this.offset,
|
|
339
|
+
_more: this._more,
|
|
340
|
+
_input: this._input,
|
|
341
|
+
yy: this.yy,
|
|
342
|
+
conditionStack: this.conditionStack.slice(0),
|
|
343
|
+
done: this.done
|
|
344
|
+
}, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), S = e[0].match(/(?:\r\n?|\n).*/g), S && (this.yylineno += S.length), this.yylloc = {
|
|
345
|
+
first_line: this.yylloc.last_line,
|
|
346
|
+
last_line: this.yylineno + 1,
|
|
347
|
+
first_column: this.yylloc.last_column,
|
|
348
|
+
last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
349
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], x = this.performAction.call(this, this.yy, this, b, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x) return x;
|
|
350
|
+
if (this._backtrack) {
|
|
351
|
+
for (var w in C) this[w] = C[w];
|
|
352
|
+
return !1;
|
|
353
|
+
}
|
|
354
|
+
return !1;
|
|
355
|
+
}, "test_match"),
|
|
356
|
+
next: /* @__PURE__ */ __name(function() {
|
|
357
|
+
if (this.done) return this.EOF;
|
|
358
|
+
this._input || (this.done = !0);
|
|
359
|
+
var e, b, x, S;
|
|
360
|
+
this._more || (this.yytext = "", this.match = "");
|
|
361
|
+
for (var C = this._currentRules(), w = 0; w < C.length; w++) if (x = this._input.match(this.rules[C[w]]), x && (!b || x[0].length > b[0].length)) {
|
|
362
|
+
if (b = x, S = w, this.options.backtrack_lexer) {
|
|
363
|
+
if (e = this.test_match(x, C[w]), e !== !1) return e;
|
|
364
|
+
if (this._backtrack) {
|
|
365
|
+
b = !1;
|
|
366
|
+
continue;
|
|
367
|
+
} else return !1;
|
|
368
|
+
} else if (!this.options.flex) break;
|
|
369
|
+
}
|
|
370
|
+
return b ? (e = this.test_match(b, C[S]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
371
|
+
text: "",
|
|
372
|
+
token: null,
|
|
373
|
+
line: this.yylineno
|
|
374
|
+
});
|
|
375
|
+
}, "next"),
|
|
376
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
377
|
+
return this.next() || this.lex();
|
|
378
|
+
}, "lex"),
|
|
379
|
+
begin: /* @__PURE__ */ __name(function(e) {
|
|
380
|
+
this.conditionStack.push(e);
|
|
381
|
+
}, "begin"),
|
|
382
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
383
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
384
|
+
}, "popState"),
|
|
385
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
386
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
387
|
+
}, "_currentRules"),
|
|
388
|
+
topState: /* @__PURE__ */ __name(function(e) {
|
|
389
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
390
|
+
}, "topState"),
|
|
391
|
+
pushState: /* @__PURE__ */ __name(function(e) {
|
|
392
|
+
this.begin(e);
|
|
393
|
+
}, "pushState"),
|
|
394
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
395
|
+
return this.conditionStack.length;
|
|
396
|
+
}, "stateStackSize"),
|
|
397
|
+
options: { "case-insensitive": !0 },
|
|
398
|
+
performAction: /* @__PURE__ */ __name(function(e, b, x, S) {
|
|
399
|
+
switch (x) {
|
|
400
|
+
case 0: break;
|
|
401
|
+
case 1: break;
|
|
402
|
+
case 2: return 13;
|
|
403
|
+
case 3: break;
|
|
404
|
+
case 4: break;
|
|
405
|
+
case 5: return 8;
|
|
406
|
+
case 6: return 9;
|
|
407
|
+
case 7: return 7;
|
|
408
|
+
case 8: return 14;
|
|
409
|
+
case 9: return this.begin("acc_title"), 15;
|
|
410
|
+
case 10: return this.popState(), "acc_title_value";
|
|
411
|
+
case 11: return this.begin("acc_descr"), 17;
|
|
412
|
+
case 12: return this.popState(), "acc_descr_value";
|
|
413
|
+
case 13:
|
|
414
|
+
this.begin("acc_descr_multiline");
|
|
415
|
+
break;
|
|
416
|
+
case 14:
|
|
417
|
+
this.popState();
|
|
418
|
+
break;
|
|
419
|
+
case 15: return "acc_descr_multiline_value";
|
|
420
|
+
case 16: return 20;
|
|
421
|
+
case 17: return 24;
|
|
422
|
+
case 18: return 23;
|
|
423
|
+
case 19: return 6;
|
|
424
|
+
case 20: return "INVALID";
|
|
425
|
+
}
|
|
426
|
+
}, "anonymous"),
|
|
427
|
+
rules: [
|
|
428
|
+
/^(?:%(?!\{)[^\n]*)/i,
|
|
429
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
430
|
+
/^(?:[\n]+)/i,
|
|
431
|
+
/^(?:\s+)/i,
|
|
432
|
+
/^(?:#[^\n]*)/i,
|
|
433
|
+
/^(?:timeline[ \t]+LR\b)/i,
|
|
434
|
+
/^(?:timeline[ \t]+TD\b)/i,
|
|
435
|
+
/^(?:timeline\b)/i,
|
|
436
|
+
/^(?:title\s[^\n]+)/i,
|
|
437
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
438
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
439
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
440
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
441
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
442
|
+
/^(?:[\}])/i,
|
|
443
|
+
/^(?:[^\}]*)/i,
|
|
444
|
+
/^(?:section\s[^:\n]+)/i,
|
|
445
|
+
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
446
|
+
/^(?:[^#:\n]+)/i,
|
|
447
|
+
/^(?:$)/i,
|
|
448
|
+
/^(?:.)/i
|
|
449
|
+
],
|
|
450
|
+
conditions: {
|
|
451
|
+
acc_descr_multiline: {
|
|
452
|
+
rules: [14, 15],
|
|
453
|
+
inclusive: !1
|
|
454
|
+
},
|
|
455
|
+
acc_descr: {
|
|
456
|
+
rules: [12],
|
|
457
|
+
inclusive: !1
|
|
458
|
+
},
|
|
459
|
+
acc_title: {
|
|
460
|
+
rules: [10],
|
|
461
|
+
inclusive: !1
|
|
462
|
+
},
|
|
463
|
+
INITIAL: {
|
|
464
|
+
rules: [
|
|
465
|
+
0,
|
|
466
|
+
1,
|
|
467
|
+
2,
|
|
468
|
+
3,
|
|
469
|
+
4,
|
|
470
|
+
5,
|
|
471
|
+
6,
|
|
472
|
+
7,
|
|
473
|
+
8,
|
|
474
|
+
9,
|
|
475
|
+
11,
|
|
476
|
+
13,
|
|
477
|
+
16,
|
|
478
|
+
17,
|
|
479
|
+
18,
|
|
480
|
+
19,
|
|
481
|
+
20
|
|
482
|
+
],
|
|
483
|
+
inclusive: !0
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
})();
|
|
488
|
+
function A() {
|
|
489
|
+
this.yy = {};
|
|
490
|
+
}
|
|
491
|
+
return __name(A, "Parser"), A.prototype = k, k.Parser = A, new A();
|
|
492
|
+
})();
|
|
493
|
+
parser.parser = parser;
|
|
494
|
+
var timeline_default = parser, timelineDb_exports = {};
|
|
495
|
+
__export(timelineDb_exports, {
|
|
496
|
+
addEvent: () => addEvent,
|
|
497
|
+
addSection: () => addSection,
|
|
498
|
+
addTask: () => addTask,
|
|
499
|
+
addTaskOrg: () => addTaskOrg,
|
|
500
|
+
clear: () => clear2,
|
|
501
|
+
default: () => timelineDb_default,
|
|
502
|
+
getCommonDb: () => getCommonDb,
|
|
503
|
+
getDirection: () => getDirection,
|
|
504
|
+
getSections: () => getSections,
|
|
505
|
+
getTasks: () => getTasks,
|
|
506
|
+
setDirection: () => setDirection
|
|
507
|
+
});
|
|
508
|
+
var currentSection = "", currentTaskId = 0, direction = "LR", sections = [], tasks = [], rawTasks = [], getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), clear2 = /* @__PURE__ */ __name(function() {
|
|
509
|
+
sections.length = 0, tasks.length = 0, currentSection = "", rawTasks.length = 0, direction = "LR", clear();
|
|
510
|
+
}, "clear"), setDirection = /* @__PURE__ */ __name(function(e) {
|
|
511
|
+
direction = e;
|
|
512
|
+
}, "setDirection"), getDirection = /* @__PURE__ */ __name(function() {
|
|
513
|
+
return direction;
|
|
514
|
+
}, "getDirection"), addSection = /* @__PURE__ */ __name(function(e) {
|
|
515
|
+
currentSection = e, sections.push(e);
|
|
516
|
+
}, "addSection"), getSections = /* @__PURE__ */ __name(function() {
|
|
517
|
+
return sections;
|
|
518
|
+
}, "getSections"), getTasks = /* @__PURE__ */ __name(function() {
|
|
519
|
+
let e = compileTasks(), b = 0;
|
|
520
|
+
for (; !e && b < 100;) e = compileTasks(), b++;
|
|
521
|
+
return tasks.push(...rawTasks), tasks;
|
|
522
|
+
}, "getTasks"), addTask = /* @__PURE__ */ __name(function(e, b, x) {
|
|
523
|
+
let S = {
|
|
524
|
+
id: currentTaskId++,
|
|
525
|
+
section: currentSection,
|
|
526
|
+
type: currentSection,
|
|
527
|
+
task: e,
|
|
528
|
+
score: b || 0,
|
|
529
|
+
events: x ? [x] : []
|
|
530
|
+
};
|
|
531
|
+
rawTasks.push(S);
|
|
532
|
+
}, "addTask"), addEvent = /* @__PURE__ */ __name(function(e) {
|
|
533
|
+
rawTasks.find((e) => e.id === currentTaskId - 1).events.push(e);
|
|
534
|
+
}, "addEvent"), addTaskOrg = /* @__PURE__ */ __name(function(e) {
|
|
535
|
+
let b = {
|
|
536
|
+
section: currentSection,
|
|
537
|
+
type: currentSection,
|
|
538
|
+
description: e,
|
|
539
|
+
task: e,
|
|
540
|
+
classes: []
|
|
541
|
+
};
|
|
542
|
+
tasks.push(b);
|
|
543
|
+
}, "addTaskOrg"), compileTasks = /* @__PURE__ */ __name(function() {
|
|
544
|
+
let e = /* @__PURE__ */ __name(function(e) {
|
|
545
|
+
return rawTasks[e].processed;
|
|
546
|
+
}, "compileTask"), x = !0;
|
|
547
|
+
for (let [b, S] of rawTasks.entries()) e(b), x &&= S.processed;
|
|
548
|
+
return x;
|
|
549
|
+
}, "compileTasks"), timelineDb_default = {
|
|
550
|
+
clear: clear2,
|
|
551
|
+
getCommonDb,
|
|
552
|
+
getDirection,
|
|
553
|
+
setDirection,
|
|
554
|
+
addSection,
|
|
555
|
+
getSections,
|
|
556
|
+
getTasks,
|
|
557
|
+
addTask,
|
|
558
|
+
addTaskOrg,
|
|
559
|
+
addEvent
|
|
560
|
+
}, nodeCount = 0, drawRect = /* @__PURE__ */ __name(function(e, b) {
|
|
561
|
+
let x = e.append("rect");
|
|
562
|
+
return x.attr("x", b.x), x.attr("y", b.y), x.attr("fill", b.fill), x.attr("stroke", b.stroke), x.attr("width", b.width), x.attr("height", b.height), x.attr("rx", b.rx), x.attr("ry", b.ry), b.class !== void 0 && x.attr("class", b.class), x;
|
|
563
|
+
}, "drawRect"), drawFace = /* @__PURE__ */ __name(function(e, x) {
|
|
564
|
+
let S = e.append("circle").attr("cx", x.cx).attr("cy", x.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), C = e.append("g");
|
|
565
|
+
C.append("circle").attr("cx", x.cx - 15 / 3).attr("cy", x.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), C.append("circle").attr("cx", x.cx + 15 / 3).attr("cy", x.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
566
|
+
function w(e) {
|
|
567
|
+
let b = arc_default().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
568
|
+
e.append("path").attr("class", "mouth").attr("d", b).attr("transform", "translate(" + x.cx + "," + (x.cy + 2) + ")");
|
|
569
|
+
}
|
|
570
|
+
__name(w, "smile");
|
|
571
|
+
function T(e) {
|
|
572
|
+
let b = arc_default().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
573
|
+
e.append("path").attr("class", "mouth").attr("d", b).attr("transform", "translate(" + x.cx + "," + (x.cy + 7) + ")");
|
|
574
|
+
}
|
|
575
|
+
__name(T, "sad");
|
|
576
|
+
function E(e) {
|
|
577
|
+
e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", x.cx - 5).attr("y1", x.cy + 7).attr("x2", x.cx + 5).attr("y2", x.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
578
|
+
}
|
|
579
|
+
return __name(E, "ambivalent"), x.score > 3 ? w(C) : x.score < 3 ? T(C) : E(C), S;
|
|
580
|
+
}, "drawFace"), drawCircle = /* @__PURE__ */ __name(function(e, b) {
|
|
581
|
+
let x = e.append("circle");
|
|
582
|
+
return x.attr("cx", b.cx), x.attr("cy", b.cy), x.attr("class", "actor-" + b.pos), x.attr("fill", b.fill), x.attr("stroke", b.stroke), x.attr("r", b.r), x.class !== void 0 && x.attr("class", x.class), b.title !== void 0 && x.append("title").text(b.title), x;
|
|
583
|
+
}, "drawCircle"), drawText = /* @__PURE__ */ __name(function(e, b) {
|
|
584
|
+
let x = b.text.replace(/<br\s*\/?>/gi, " "), S = e.append("text");
|
|
585
|
+
S.attr("x", b.x), S.attr("y", b.y), S.attr("class", "legend"), S.style("text-anchor", b.anchor), b.class !== void 0 && S.attr("class", b.class);
|
|
586
|
+
let C = S.append("tspan");
|
|
587
|
+
return C.attr("x", b.x + b.textMargin * 2), C.text(x), S;
|
|
588
|
+
}, "drawText"), drawLabel = /* @__PURE__ */ __name(function(e, x) {
|
|
589
|
+
function S(e, b, x, S, C) {
|
|
590
|
+
return e + "," + b + " " + (e + x) + "," + b + " " + (e + x) + "," + (b + S - C) + " " + (e + x - C * 1.2) + "," + (b + S) + " " + e + "," + (b + S);
|
|
591
|
+
}
|
|
592
|
+
__name(S, "genPoints");
|
|
593
|
+
let C = e.append("polygon");
|
|
594
|
+
C.attr("points", S(x.x, x.y, 50, 20, 7)), C.attr("class", "labelBox"), x.y += x.labelMargin, x.x += .5 * x.labelMargin, drawText(e, x);
|
|
595
|
+
}, "drawLabel"), drawSection = /* @__PURE__ */ __name(function(e, b, x) {
|
|
596
|
+
let S = e.append("g"), C = getNoteRect();
|
|
597
|
+
C.x = b.x, C.y = b.y, C.fill = b.fill, C.width = x.width, C.height = x.height, C.class = "journey-section section-type-" + b.num, C.rx = 3, C.ry = 3, drawRect(S, C), _drawTextCandidateFunc(x)(b.text, S, C.x, C.y, C.width, C.height, { class: "journey-section section-type-" + b.num }, x, b.colour);
|
|
598
|
+
}, "drawSection"), taskCount = -1, drawTask = /* @__PURE__ */ __name(function(e, b, x, S) {
|
|
599
|
+
let C = b.x + x.width / 2, w = e.append("g");
|
|
600
|
+
taskCount++, w.append("line").attr("id", S + "-task" + taskCount).attr("x1", C).attr("y1", b.y).attr("x2", C).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), drawFace(w, {
|
|
601
|
+
cx: C,
|
|
602
|
+
cy: 300 + (5 - b.score) * 30,
|
|
603
|
+
score: b.score
|
|
604
|
+
});
|
|
605
|
+
let T = getNoteRect();
|
|
606
|
+
T.x = b.x, T.y = b.y, T.fill = b.fill, T.width = x.width, T.height = x.height, T.class = "task task-type-" + b.num, T.rx = 3, T.ry = 3, drawRect(w, T), _drawTextCandidateFunc(x)(b.task, w, T.x, T.y, T.width, T.height, { class: "task" }, x, b.colour);
|
|
607
|
+
}, "drawTask"), drawBackgroundRect = /* @__PURE__ */ __name(function(e, b) {
|
|
608
|
+
drawRect(e, {
|
|
609
|
+
x: b.startx,
|
|
610
|
+
y: b.starty,
|
|
611
|
+
width: b.stopx - b.startx,
|
|
612
|
+
height: b.stopy - b.starty,
|
|
613
|
+
fill: b.fill,
|
|
614
|
+
class: "rect"
|
|
615
|
+
}).lower();
|
|
616
|
+
}, "drawBackgroundRect"), getTextObj = /* @__PURE__ */ __name(function() {
|
|
617
|
+
return {
|
|
618
|
+
x: 0,
|
|
619
|
+
y: 0,
|
|
620
|
+
fill: void 0,
|
|
621
|
+
"text-anchor": "start",
|
|
622
|
+
width: 100,
|
|
623
|
+
height: 100,
|
|
624
|
+
textMargin: 0,
|
|
625
|
+
rx: 0,
|
|
626
|
+
ry: 0
|
|
627
|
+
};
|
|
628
|
+
}, "getTextObj"), getNoteRect = /* @__PURE__ */ __name(function() {
|
|
629
|
+
return {
|
|
630
|
+
x: 0,
|
|
631
|
+
y: 0,
|
|
632
|
+
width: 100,
|
|
633
|
+
anchor: "start",
|
|
634
|
+
height: 100,
|
|
635
|
+
rx: 0,
|
|
636
|
+
ry: 0
|
|
637
|
+
};
|
|
638
|
+
}, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
639
|
+
function e(e, b, x, S, w, T, E, D) {
|
|
640
|
+
C(b.append("text").attr("x", x + w / 2).attr("y", S + T / 2 + 5).style("font-color", D).style("text-anchor", "middle").text(e), E);
|
|
641
|
+
}
|
|
642
|
+
__name(e, "byText");
|
|
643
|
+
function x(e, b, x, S, w, T, E, D, O) {
|
|
644
|
+
let { taskFontSize: k, taskFontFamily: A } = D, j = e.split(/<br\s*\/?>/gi);
|
|
645
|
+
for (let e = 0; e < j.length; e++) {
|
|
646
|
+
let D = e * k - k * (j.length - 1) / 2, M = b.append("text").attr("x", x + w / 2).attr("y", S).attr("fill", O).style("text-anchor", "middle").style("font-size", k).style("font-family", A);
|
|
647
|
+
M.append("tspan").attr("x", x + w / 2).attr("dy", D).text(j[e]), M.attr("y", S + T / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), C(M, E);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
__name(x, "byTspan");
|
|
651
|
+
function S(e, b, S, w, T, E, D, O) {
|
|
652
|
+
let k = b.append("switch"), A = k.append("foreignObject").attr("x", S).attr("y", w).attr("width", T).attr("height", E).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
653
|
+
A.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), x(e, k, S, w, T, E, D, O), C(A, D);
|
|
654
|
+
}
|
|
655
|
+
__name(S, "byFo");
|
|
656
|
+
function C(e, b) {
|
|
657
|
+
for (let x in b) x in b && e.attr(x, b[x]);
|
|
658
|
+
}
|
|
659
|
+
return __name(C, "_setTextAttrs"), function(b) {
|
|
660
|
+
return b.textPlacement === "fo" ? S : b.textPlacement === "old" ? e : x;
|
|
661
|
+
};
|
|
662
|
+
})(), initGraphics = /* @__PURE__ */ __name(function(e, b) {
|
|
663
|
+
nodeCount = 0, taskCount = -1, e.append("defs").append("marker").attr("id", b + "-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");
|
|
664
|
+
}, "initGraphics");
|
|
665
|
+
function wrap(e, b) {
|
|
666
|
+
e.each(function() {
|
|
667
|
+
var e = select_default(this), x = e.text().split(/(\s+|<br>)/).reverse(), S, C = [], w = 1.1, T = e.attr("y"), E = parseFloat(e.attr("dy")), D = e.text(null).append("tspan").attr("x", 0).attr("y", T).attr("dy", E + "em");
|
|
668
|
+
for (let E = 0; E < x.length; E++) S = x[x.length - 1 - E], C.push(S), D.text(C.join(" ").trim()), (D.node().getComputedTextLength() > b || S === "<br>") && (C.pop(), D.text(C.join(" ").trim()), C = S === "<br>" ? [""] : [S], D = e.append("tspan").attr("x", 0).attr("y", T).attr("dy", w + "em").text(S));
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
__name(wrap, "wrap");
|
|
672
|
+
var drawNode = /* @__PURE__ */ __name(function(e, b, x, S, C, w = !1) {
|
|
673
|
+
let { theme: T, look: E } = S, D = T?.includes("redux"), O = x % (S?.themeVariables?.THEME_COLOR_LIMIT ?? 12) - 1, k = e.append("g");
|
|
674
|
+
b.section = O, k.attr("class", (b.class ? b.class + " " : "") + "timeline-node " + ("section-" + O));
|
|
675
|
+
let j = k.append("g"), M = k.append("g"), N = M.append("text").text(b.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, b.width).node().getBBox(), P = S.fontSize?.replace ? S.fontSize.replace("px", "") : S.fontSize;
|
|
676
|
+
if (b.height = N.height + P * 1.1 * .5 + b.padding, b.height = Math.max(b.height, b.maxHeight), b.width += 2 * b.padding, M.attr("transform", "translate(" + b.width / 2 + ", " + b.padding / 2 + ")"), D && M.attr("transform", `translate(${b.width / 2}, ${w ? b.padding / 2 + 3 : b.padding})`), defaultBkg(j, b, O, C, S), E === "neo" && (k.attr("data-look", "neo"), D)) {
|
|
677
|
+
let b = T.includes("dark"), x = select_default(e.node()?.ownerSVGElement ?? e.node()), S = x.attr("id") ?? "", C = S ? `${S}-drop-shadow` : "drop-shadow";
|
|
678
|
+
if (x.select(`#${C}`).empty()) {
|
|
679
|
+
let e = x.select("defs");
|
|
680
|
+
(e.empty() ? x.append("defs") : e).append("filter").attr("id", C).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", b ? "0.2" : "0.06").attr("flood-color", b ? "#FFFFFF" : "#000000");
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
return b;
|
|
684
|
+
}, "drawNode"), getVirtualNodeHeight = /* @__PURE__ */ __name(function(e, b, x) {
|
|
685
|
+
let S = e.append("g"), C = S.append("text").text(b.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, b.width).node().getBBox(), w = x.fontSize?.replace ? x.fontSize.replace("px", "") : x.fontSize;
|
|
686
|
+
return S.remove(), C.height + w * 1.1 * .5 + b.padding;
|
|
687
|
+
}, "getVirtualNodeHeight"), defaultBkg = /* @__PURE__ */ __name(function(e, b, x, S, C) {
|
|
688
|
+
let { theme: w } = C, T = w?.includes("redux") ? 0 : 5, E = T > 0 ? `M0 ${b.height - 5} v${-b.height + 10} q0,-${T},${T},-${T} h${b.width - 10} q${T},0,${T},${T} v${b.height - 5} H0 Z` : `M0 ${b.height - 5} v${-(b.height - 5)} h${b.width} v${b.height} H0 Z`;
|
|
689
|
+
e.append("path").attr("id", S + "-node-" + nodeCount++).attr("class", "node-bkg node-" + b.type).attr("d", E), w?.includes("redux") || e.append("line").attr("class", "node-line-" + x).attr("x1", 0).attr("y1", b.height).attr("x2", b.width).attr("y2", b.height);
|
|
690
|
+
}, "defaultBkg"), svgDraw_default = {
|
|
691
|
+
drawRect,
|
|
692
|
+
drawCircle,
|
|
693
|
+
drawSection,
|
|
694
|
+
drawText,
|
|
695
|
+
drawLabel,
|
|
696
|
+
drawTask,
|
|
697
|
+
drawBackgroundRect,
|
|
698
|
+
getTextObj,
|
|
699
|
+
getNoteRect,
|
|
700
|
+
initGraphics,
|
|
701
|
+
drawNode,
|
|
702
|
+
getVirtualNodeHeight
|
|
703
|
+
}, draw = /* @__PURE__ */ __name(function(e, b, S, C) {
|
|
704
|
+
let w = getConfig2(), { look: T, theme: E, themeVariables: D } = w, { useGradient: j, gradientStart: M, gradientStop: N } = D, P = w.timeline?.leftMargin ?? 50;
|
|
705
|
+
log.debug("timeline", C.db);
|
|
706
|
+
let F = w.securityLevel, I;
|
|
707
|
+
F === "sandbox" && (I = select_default("#i" + b));
|
|
708
|
+
let L = select_default(F === "sandbox" ? I.nodes()[0].contentDocument.body : "body").select("#" + b);
|
|
709
|
+
L.append("g");
|
|
710
|
+
let R = C.db.getTasks(), z = C.db.getCommonDb().getDiagramTitle();
|
|
711
|
+
log.debug("task", R), svgDraw_default.initGraphics(L, b);
|
|
712
|
+
let B = C.db.getSections();
|
|
713
|
+
log.debug("sections", B);
|
|
714
|
+
let V = 0, H = 0, U = 0, W = 0, G = 50 + P, K = 50;
|
|
715
|
+
W = 50;
|
|
716
|
+
let q = 0, J = !0;
|
|
717
|
+
B.forEach(function(e) {
|
|
718
|
+
let b = {
|
|
719
|
+
number: q,
|
|
720
|
+
descr: e,
|
|
721
|
+
section: q,
|
|
722
|
+
width: 150,
|
|
723
|
+
padding: 20,
|
|
724
|
+
maxHeight: V
|
|
725
|
+
}, S = svgDraw_default.getVirtualNodeHeight(L, b, w);
|
|
726
|
+
log.debug("sectionHeight before draw", S), V = Math.max(V, S + 20);
|
|
727
|
+
});
|
|
728
|
+
let Y = 0, X = 0;
|
|
729
|
+
log.debug("tasks.length", R.length);
|
|
730
|
+
for (let [e, b] of R.entries()) {
|
|
731
|
+
let S = {
|
|
732
|
+
number: e,
|
|
733
|
+
descr: b,
|
|
734
|
+
section: b.section,
|
|
735
|
+
width: 150,
|
|
736
|
+
padding: 20,
|
|
737
|
+
maxHeight: H
|
|
738
|
+
}, C = svgDraw_default.getVirtualNodeHeight(L, S, w);
|
|
739
|
+
log.debug("taskHeight before draw", C), H = Math.max(H, C + 20), Y = Math.max(Y, b.events.length);
|
|
740
|
+
let T = 0;
|
|
741
|
+
for (let e of b.events) {
|
|
742
|
+
let x = {
|
|
743
|
+
descr: e,
|
|
744
|
+
section: b.section,
|
|
745
|
+
number: b.section,
|
|
746
|
+
width: 150,
|
|
747
|
+
padding: 20,
|
|
748
|
+
maxHeight: 50
|
|
749
|
+
};
|
|
750
|
+
T += svgDraw_default.getVirtualNodeHeight(L, x, w);
|
|
751
|
+
}
|
|
752
|
+
b.events.length > 0 && (T += (b.events.length - 1) * 10), X = Math.max(X, T);
|
|
753
|
+
}
|
|
754
|
+
log.debug("maxSectionHeight before draw", V), log.debug("maxTaskHeight before draw", H), B && B.length > 0 ? B.forEach((e) => {
|
|
755
|
+
let S = R.filter((b) => b.section === e), C = {
|
|
756
|
+
number: q,
|
|
757
|
+
descr: e,
|
|
758
|
+
section: q,
|
|
759
|
+
width: 200 * Math.max(S.length, 1) - 50,
|
|
760
|
+
padding: 20,
|
|
761
|
+
maxHeight: V
|
|
762
|
+
};
|
|
763
|
+
log.debug("sectionNode", C);
|
|
764
|
+
let T = L.append("g"), E = svgDraw_default.drawNode(T, C, q, w, b);
|
|
765
|
+
log.debug("sectionNode output", E), T.attr("transform", `translate(${G}, ${W})`), K += V + 50, S.length > 0 && drawTasks(L, S, q, G, K, H, w, Y, X, V, !1, b), G += 200 * Math.max(S.length, 1), K = W, q++;
|
|
766
|
+
}) : (J = !1, drawTasks(L, R, q, G, K, H, w, Y, X, V, !0, b));
|
|
767
|
+
let Z = L.node().getBBox();
|
|
768
|
+
if (log.debug("bounds", Z), z && L.append("text").text(z).attr("x", T === "neo" ? Z.x * 2 + P : Z.width / 2 - P).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), U = J ? V + H + 150 : H + 100, L.append("g").attr("class", "lineWrapper").append("line").attr("x1", P).attr("y1", U).attr("x2", Z.width + 3 * P).attr("y2", U).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${b}-arrowhead)`), T === "neo" && j && E !== "neutral") {
|
|
769
|
+
let e = L.select("defs"), b = (e.empty() ? L.append("defs") : e).append("linearGradient").attr("id", L.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
770
|
+
b.append("stop").attr("offset", "0%").attr("stop-color", M).attr("stop-opacity", 1), b.append("stop").attr("offset", "100%").attr("stop-color", N).attr("stop-opacity", 1);
|
|
771
|
+
}
|
|
772
|
+
setupGraphViewbox(void 0, L, w.timeline?.padding ?? 50, w.timeline?.useMaxWidth ?? !1);
|
|
773
|
+
}, "draw"), drawTasks = /* @__PURE__ */ __name(function(e, b, S, C, w, T, E, D, O, k, A, j) {
|
|
774
|
+
for (let D of b) {
|
|
775
|
+
let b = {
|
|
776
|
+
descr: D.task,
|
|
777
|
+
section: S,
|
|
778
|
+
number: S,
|
|
779
|
+
width: 150,
|
|
780
|
+
padding: 20,
|
|
781
|
+
maxHeight: T
|
|
782
|
+
};
|
|
783
|
+
log.debug("taskNode", b);
|
|
784
|
+
let k = e.append("g").attr("class", "taskWrapper"), M = svgDraw_default.drawNode(k, b, S, E, j).height;
|
|
785
|
+
if (log.debug("taskHeight after draw", M), k.attr("transform", `translate(${C}, ${w})`), T = Math.max(T, M), D.events) {
|
|
786
|
+
let b = e.append("g").attr("class", "lineWrapper"), x = T;
|
|
787
|
+
w += 100, x += drawEvents(e, D.events, S, C, w, E, j), w -= 100, b.append("line").attr("x1", C + 190 / 2).attr("y1", w + T).attr("x2", C + 190 / 2).attr("y2", w + T + 100 + O + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${j}-arrowhead)`).attr("stroke-dasharray", "5,5");
|
|
788
|
+
}
|
|
789
|
+
C += 200, A && !E.timeline?.disableMulticolor && S++;
|
|
790
|
+
}
|
|
791
|
+
w -= 10;
|
|
792
|
+
}, "drawTasks"), drawEvents = /* @__PURE__ */ __name(function(e, b, S, C, w, T, E) {
|
|
793
|
+
let D = 0, O = w;
|
|
794
|
+
w += 100;
|
|
795
|
+
for (let O of b) {
|
|
796
|
+
let b = {
|
|
797
|
+
descr: O,
|
|
798
|
+
section: S,
|
|
799
|
+
number: S,
|
|
800
|
+
width: 150,
|
|
801
|
+
padding: 20,
|
|
802
|
+
maxHeight: 50
|
|
803
|
+
};
|
|
804
|
+
log.debug("eventNode", b);
|
|
805
|
+
let k = e.append("g").attr("class", "eventWrapper"), A = svgDraw_default.drawNode(k, b, S, T, E, !0).height;
|
|
806
|
+
D += A, k.attr("transform", `translate(${C}, ${w})`), w = w + 10 + A;
|
|
807
|
+
}
|
|
808
|
+
return w = O, D;
|
|
809
|
+
}, "drawEvents"), timelineRenderer_default = {
|
|
810
|
+
setConf: /* @__PURE__ */ __name(() => {}, "setConf"),
|
|
811
|
+
draw
|
|
812
|
+
}, NODE_WIDTH = 200, NODE_PADDING = 5, NODE_TOTAL_WIDTH = NODE_WIDTH + NODE_PADDING * 2, EVENT_WIDTH = NODE_WIDTH + 100, EVENT_TOTAL_WIDTH = EVENT_WIDTH + NODE_PADDING * 2, EVENT_SPACING = 10, EVENT_VERTICAL_GAP = 0, SECTION_TASK_GAP = 20, TASK_AXIS_GAP = 20, TASK_VERTICAL_GAP = 30, EVENT_AXIS_GAP = 50, draw2 = /* @__PURE__ */ __name(function(e, b, S, C) {
|
|
813
|
+
let w = getConfig2(), T = w.timeline?.leftMargin ?? 50;
|
|
814
|
+
log.debug("timeline", C.db);
|
|
815
|
+
let E = selectSvgElement(b);
|
|
816
|
+
E.append("g");
|
|
817
|
+
let D = C.db.getTasks(), A = C.db.getCommonDb().getDiagramTitle();
|
|
818
|
+
log.debug("task", D), svgDraw_default.initGraphics(E);
|
|
819
|
+
let j = C.db.getSections();
|
|
820
|
+
log.debug("sections", j);
|
|
821
|
+
let P = 0, F = 0, I = 50 + T, L = 50, R = L, z = I, B = NODE_TOTAL_WIDTH + TASK_AXIS_GAP, V = EVENT_TOTAL_WIDTH + EVENT_AXIS_GAP, H = z + B, U = 0, W = j && j.length > 0, G = W ? H : I + B, K = Math.max(50, B + V - NODE_PADDING * 2);
|
|
822
|
+
j.forEach(function(e) {
|
|
823
|
+
let b = {
|
|
824
|
+
number: U,
|
|
825
|
+
descr: e,
|
|
826
|
+
section: U,
|
|
827
|
+
width: K,
|
|
828
|
+
padding: NODE_PADDING,
|
|
829
|
+
maxHeight: P
|
|
830
|
+
}, S = svgDraw_default.getVirtualNodeHeight(E, b, w);
|
|
831
|
+
log.debug("sectionHeight before draw", S), P = Math.max(P, S);
|
|
832
|
+
});
|
|
833
|
+
let q = 0;
|
|
834
|
+
log.debug("tasks.length", D.length);
|
|
835
|
+
for (let [e, b] of D.entries()) {
|
|
836
|
+
let S = {
|
|
837
|
+
number: e,
|
|
838
|
+
descr: b,
|
|
839
|
+
section: b.section,
|
|
840
|
+
width: NODE_WIDTH,
|
|
841
|
+
padding: NODE_PADDING,
|
|
842
|
+
maxHeight: F
|
|
843
|
+
}, C = svgDraw_default.getVirtualNodeHeight(E, S, w);
|
|
844
|
+
log.debug("taskHeight before draw", C), F = Math.max(F, C);
|
|
845
|
+
let T = 0;
|
|
846
|
+
for (let e of b.events) {
|
|
847
|
+
let x = {
|
|
848
|
+
descr: e,
|
|
849
|
+
section: b.section,
|
|
850
|
+
number: b.section,
|
|
851
|
+
width: EVENT_WIDTH,
|
|
852
|
+
padding: NODE_PADDING,
|
|
853
|
+
maxHeight: 50
|
|
854
|
+
};
|
|
855
|
+
T += svgDraw_default.getVirtualNodeHeight(E, x, w);
|
|
856
|
+
}
|
|
857
|
+
b.events.length > 0 && (T += (b.events.length - 1) * EVENT_SPACING), q = Math.max(q, T) + EVENT_VERTICAL_GAP;
|
|
858
|
+
}
|
|
859
|
+
log.debug("maxSectionHeight before draw", P), log.debug("maxTaskHeight before draw", F);
|
|
860
|
+
let J = Math.max(F, q) + TASK_VERTICAL_GAP;
|
|
861
|
+
W ? j.forEach((e) => {
|
|
862
|
+
let b = D.filter((b) => b.section === e), S = {
|
|
863
|
+
number: U,
|
|
864
|
+
descr: e,
|
|
865
|
+
section: U,
|
|
866
|
+
width: K,
|
|
867
|
+
padding: NODE_PADDING,
|
|
868
|
+
maxHeight: P
|
|
869
|
+
};
|
|
870
|
+
log.debug("sectionNode", S);
|
|
871
|
+
let C = E.append("g"), T = svgDraw_default.drawNode(C, S, U, w);
|
|
872
|
+
log.debug("sectionNode output", T);
|
|
873
|
+
let O = G - B;
|
|
874
|
+
C.attr("transform", `translate(${O}, ${L})`);
|
|
875
|
+
let k = L + T.height + SECTION_TASK_GAP;
|
|
876
|
+
b.length > 0 && drawTasks2(E, b, U, G, k, F, w, J, !1);
|
|
877
|
+
let A = b.length, j = T.height + SECTION_TASK_GAP + J * Math.max(A, 1) - (A > 0 ? TASK_VERTICAL_GAP * 2 : 0);
|
|
878
|
+
L += j, U++;
|
|
879
|
+
}) : drawTasks2(E, D, U, G, L, F, w, J, !0);
|
|
880
|
+
let Y = E.node()?.getBBox();
|
|
881
|
+
if (!Y) throw Error("bbox not found");
|
|
882
|
+
if (log.debug("bounds", Y), A) {
|
|
883
|
+
if (E.append("text").text(A).attr("x", Y.width / 2 - T).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), Y = E.node()?.getBBox(), !Y) throw Error("bbox not found");
|
|
884
|
+
log.debug("bounds after title", Y);
|
|
885
|
+
}
|
|
886
|
+
let [X] = parseFontSize(w.fontSize), Z = (X ?? 16) * 2, Q = (X ?? 16) * .5 + 20, $ = E.append("g").attr("class", "lineWrapper");
|
|
887
|
+
$.append("line").attr("x1", G).attr("y1", R - Z).attr("x2", G).attr("y2", Y.y + Y.height + Q).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), $.lower(), setupGraphViewbox(void 0, E, w.timeline?.padding ?? 50, w.timeline?.useMaxWidth ?? !1);
|
|
888
|
+
}, "draw"), drawTasks2 = /* @__PURE__ */ __name(function(e, b, S, C, w, T, E, D, O) {
|
|
889
|
+
for (let k of b) {
|
|
890
|
+
let b = {
|
|
891
|
+
descr: k.task,
|
|
892
|
+
section: S,
|
|
893
|
+
number: S,
|
|
894
|
+
width: NODE_WIDTH,
|
|
895
|
+
padding: NODE_PADDING,
|
|
896
|
+
maxHeight: T
|
|
897
|
+
};
|
|
898
|
+
log.debug("taskNode", b);
|
|
899
|
+
let A = e.append("g").attr("class", "taskWrapper"), j = svgDraw_default.drawNode(A, b, S, E), M = j.height;
|
|
900
|
+
log.debug("taskHeight after draw", M);
|
|
901
|
+
let N = C - TASK_AXIS_GAP - j.width;
|
|
902
|
+
if (A.attr("transform", `translate(${N}, ${w})`), T = Math.max(T, M), k.events && k.events.length > 0) {
|
|
903
|
+
let b = w, x = C + EVENT_AXIS_GAP;
|
|
904
|
+
drawEvents2(e, k.events, S, C, x, b, E);
|
|
905
|
+
}
|
|
906
|
+
w += D, O && !E.timeline?.disableMulticolor && S++;
|
|
907
|
+
}
|
|
908
|
+
}, "drawTasks"), drawEvents2 = /* @__PURE__ */ __name(function(e, b, S, C, w, T, E) {
|
|
909
|
+
let D = T;
|
|
910
|
+
for (let T of b) {
|
|
911
|
+
let b = {
|
|
912
|
+
descr: T,
|
|
913
|
+
section: S,
|
|
914
|
+
number: S,
|
|
915
|
+
width: EVENT_WIDTH,
|
|
916
|
+
padding: NODE_PADDING,
|
|
917
|
+
maxHeight: 0
|
|
918
|
+
};
|
|
919
|
+
log.debug("eventNode", b);
|
|
920
|
+
let O = e.append("g").attr("class", "eventWrapper"), k = svgDraw_default.drawNode(O, b, S, E).height;
|
|
921
|
+
O.attr("transform", `translate(${w}, ${D})`);
|
|
922
|
+
let A = e.append("g").attr("class", "lineWrapper"), j = D + k / 2;
|
|
923
|
+
A.append("line").attr("x1", C).attr("y1", j).attr("x2", w).attr("y2", j).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), D = D + k + EVENT_SPACING;
|
|
924
|
+
}
|
|
925
|
+
return D - T;
|
|
926
|
+
}, "drawEvents"), timelineRendererVertical_default = {
|
|
927
|
+
setConf: /* @__PURE__ */ __name(() => {}, "setConf"),
|
|
928
|
+
draw: draw2
|
|
929
|
+
}, genReduxSections = /* @__PURE__ */ __name((e) => {
|
|
930
|
+
let { theme: b } = getConfig(), x = b?.includes("dark"), S = b?.includes("color"), C = e.svgId?.replace(/^#/, "") ?? "", w = C ? `url(#${C}-drop-shadow)` : e.dropShadow ?? "none", T = "";
|
|
931
|
+
for (let b = 0; b < e.THEME_COLOR_LIMIT; b++) {
|
|
932
|
+
let C = `${17 - 3 * b}`, E = S ? e.borderColorArray[b] : e.mainBkg, D = S ? e.borderColorArray[b] : e.nodeBorder;
|
|
933
|
+
T += `
|
|
934
|
+
.section-${b - 1} rect,
|
|
935
|
+
.section-${b - 1} path,
|
|
936
|
+
.section-${b - 1} circle {
|
|
937
|
+
fill: ${x && S ? e.mainBkg : E};
|
|
938
|
+
stroke: ${D};
|
|
939
|
+
stroke-width: ${e.strokeWidth};
|
|
940
|
+
filter: ${w};
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.section-${b - 1} text {
|
|
944
|
+
fill: ${e.nodeBorder};
|
|
945
|
+
font-weight: ${e.fontWeight}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.node-icon-${b - 1} {
|
|
949
|
+
font-size: 40px;
|
|
950
|
+
color: ${e["cScaleLabel" + b]};
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.section-edge-${b - 1} {
|
|
954
|
+
stroke: ${e["cScale" + b]};
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.edge-depth-${b - 1} {
|
|
958
|
+
stroke-width: ${C};
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.section-${b - 1} line {
|
|
962
|
+
stroke: ${e["cScaleInv" + b]};
|
|
963
|
+
stroke-width: 3;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.lineWrapper line {
|
|
967
|
+
stroke: ${e.nodeBorder};
|
|
968
|
+
stroke-width:${e.strokeWidth}
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.disabled,
|
|
972
|
+
.disabled circle,
|
|
973
|
+
.disabled text {
|
|
974
|
+
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.disabled text {
|
|
978
|
+
fill: ${e.clusterBorder ?? "#efefef"};
|
|
979
|
+
}
|
|
980
|
+
`;
|
|
981
|
+
}
|
|
982
|
+
return T;
|
|
983
|
+
}, "genReduxSections"), genSections = /* @__PURE__ */ __name((e) => {
|
|
984
|
+
let b = "";
|
|
985
|
+
for (let b = 0; b < e.THEME_COLOR_LIMIT; b++) e["lineColor" + b] = e["lineColor" + b] || e["cScaleInv" + b], is_dark_default(e["lineColor" + b]) ? e["lineColor" + b] = lighten_default(e["lineColor" + b], 20) : e["lineColor" + b] = darken_default(e["lineColor" + b], 20);
|
|
986
|
+
for (let x = 0; x < e.THEME_COLOR_LIMIT; x++) {
|
|
987
|
+
let S = "" + (17 - 3 * x);
|
|
988
|
+
b += `
|
|
989
|
+
.section-${x - 1} rect, .section-${x - 1} path, .section-${x - 1} circle, .section-${x - 1} path {
|
|
990
|
+
fill: ${e["cScale" + x]};
|
|
991
|
+
}
|
|
992
|
+
.section-${x - 1} text {
|
|
993
|
+
fill: ${e["cScaleLabel" + x]};
|
|
994
|
+
}
|
|
995
|
+
.node-icon-${x - 1} {
|
|
996
|
+
font-size: 40px;
|
|
997
|
+
color: ${e["cScaleLabel" + x]};
|
|
998
|
+
}
|
|
999
|
+
.section-edge-${x - 1}{
|
|
1000
|
+
stroke: ${e["cScale" + x]};
|
|
1001
|
+
}
|
|
1002
|
+
.edge-depth-${x - 1}{
|
|
1003
|
+
stroke-width: ${S};
|
|
1004
|
+
}
|
|
1005
|
+
.section-${x - 1} line {
|
|
1006
|
+
stroke: ${e["cScaleInv" + x]} ;
|
|
1007
|
+
stroke-width: 3;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.lineWrapper line{
|
|
1011
|
+
stroke: ${e["cScaleLabel" + x]} ;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.disabled, .disabled circle, .disabled text {
|
|
1015
|
+
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1016
|
+
}
|
|
1017
|
+
.disabled text {
|
|
1018
|
+
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1019
|
+
}
|
|
1020
|
+
`;
|
|
1021
|
+
}
|
|
1022
|
+
return b;
|
|
1023
|
+
}, "genSections"), diagram = {
|
|
1024
|
+
db: timelineDb_exports,
|
|
1025
|
+
renderer: {
|
|
1026
|
+
setConf: /* @__PURE__ */ __name(() => {}, "setConf"),
|
|
1027
|
+
draw: /* @__PURE__ */ __name((e, b, x, S) => (S?.db?.getDirection?.() ?? "LR") === "TD" ? timelineRendererVertical_default.draw(e, b, x, S) : timelineRenderer_default.draw(e, b, x, S), "draw")
|
|
1028
|
+
},
|
|
1029
|
+
parser: timeline_default,
|
|
1030
|
+
styles: /* @__PURE__ */ __name((e) => {
|
|
1031
|
+
let { theme: b } = getConfig(), x = b?.includes("redux"), S = b === "neutral", C = e.svgId?.replace(/^#/, "") ?? "", w = "";
|
|
1032
|
+
if (e.useGradient && C && e.THEME_COLOR_LIMIT && !S) for (let b = 0; b < e.THEME_COLOR_LIMIT; b++) w += `
|
|
1033
|
+
.section-${b - 1}[data-look="neo"] rect,
|
|
1034
|
+
.section-${b - 1}[data-look="neo"] path,
|
|
1035
|
+
.section-${b - 1}[data-look="neo"] circle {
|
|
1036
|
+
fill: ${e.mainBkg};
|
|
1037
|
+
stroke: url(#${C}-gradient);
|
|
1038
|
+
stroke-width: 2;
|
|
1039
|
+
}
|
|
1040
|
+
.section-${b - 1}[data-look="neo"] line {
|
|
1041
|
+
stroke: url(#${C}-gradient);
|
|
1042
|
+
stroke-width: 2;
|
|
1043
|
+
}`;
|
|
1044
|
+
return `
|
|
1045
|
+
.edge {
|
|
1046
|
+
stroke-width: 3;
|
|
1047
|
+
}
|
|
1048
|
+
${x ? genReduxSections(e) : genSections(e)}
|
|
1049
|
+
${w}
|
|
1050
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
1051
|
+
fill: ${e.git0};
|
|
1052
|
+
}
|
|
1053
|
+
.section-root text {
|
|
1054
|
+
fill: ${e.gitBranchLabel0};
|
|
1055
|
+
}
|
|
1056
|
+
.icon-container {
|
|
1057
|
+
height:100%;
|
|
1058
|
+
display: flex;
|
|
1059
|
+
justify-content: center;
|
|
1060
|
+
align-items: center;
|
|
1061
|
+
}
|
|
1062
|
+
.edge {
|
|
1063
|
+
fill: none;
|
|
1064
|
+
}
|
|
1065
|
+
.eventWrapper {
|
|
1066
|
+
filter: brightness(120%);
|
|
1067
|
+
}
|
|
1068
|
+
`;
|
|
1069
|
+
}, "getStyles")
|
|
1070
|
+
};
|
|
1071
|
+
export { diagram };
|