@omg-dev/app 0.5.0 → 0.6.1
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-lib/{ChangelogPage-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
- package/dist-lib/{TermView-gazV6UMU.js → TermView-B4V-DyD-.js} +521 -530
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-83mwx0z2.js → chat-engine-CUiDTHFP.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-8Nf-IuE2.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
- package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-Dr_81Gfm.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-CGhHZ3lT.js → session-token-usage-DY4vFlfs.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-p3oulUiM.js → shipped-page-B-ruG8li.js} +233 -236
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-Dbn0PKUH.js → streamdown-response-BQy3geXs.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { s as
|
|
3
|
-
import { _ as
|
|
4
|
-
var
|
|
5
|
-
var e = /* @__PURE__ */
|
|
6
|
-
for (
|
|
7
|
-
return
|
|
8
|
-
}, "o"),
|
|
9
|
-
trace: /* @__PURE__ */
|
|
1
|
+
import { g as ze } from "./chunk-XXDRQBXY-DRKeYnrF.js";
|
|
2
|
+
import { s as Ge } from "./chunk-VR4S4FIN-BDq3jZ0m.js";
|
|
3
|
+
import { _ as h, z as Ye, b as Xe, a as Je, s as Ze, g as et, o as tt, p as st, c as Te, l as Ne, q as it, u as rt, v as nt, x as at, y as lt } from "./index-B0neMIbR.js";
|
|
4
|
+
var qe = (function() {
|
|
5
|
+
var e = /* @__PURE__ */ h(function($, r, a, c) {
|
|
6
|
+
for (a = a || {}, c = $.length; c--; a[$[c]] = r) ;
|
|
7
|
+
return a;
|
|
8
|
+
}, "o"), u = [1, 3], o = [1, 4], n = [1, 5], i = [1, 6], f = [5, 6, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], _ = [1, 22], E = [2, 7], g = [1, 26], S = [1, 27], k = [1, 28], q = [1, 29], C = [1, 33], A = [1, 34], V = [1, 35], v = [1, 36], L = [1, 37], x = [1, 38], O = [1, 24], w = [1, 31], D = [1, 32], M = [1, 30], p = [1, 39], R = [1, 40], d = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], P = [1, 61], X = [89, 90], Ce = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 29, 41, 42, 43, 44, 45, 46, 54, 61, 63, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], de = [27, 29], Ae = [1, 70], Ve = [1, 71], ve = [1, 72], Le = [1, 73], xe = [1, 74], Oe = [1, 75], we = [1, 76], Z = [1, 83], U = [1, 80], ee = [1, 84], te = [1, 85], se = [1, 86], ie = [1, 87], re = [1, 88], ne = [1, 89], ae = [1, 90], le = [1, 91], ce = [1, 92], Ee = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], Y = [63, 64], De = [1, 101], Me = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 76, 77, 89, 90], T = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], B = [1, 110], Q = [1, 106], H = [1, 107], K = [1, 108], W = [1, 109], j = [1, 111], oe = [1, 116], he = [1, 117], ue = [1, 114], fe = [1, 115], _e = {
|
|
9
|
+
trace: /* @__PURE__ */ h(function() {
|
|
10
10
|
}, "trace"),
|
|
11
11
|
yy: {},
|
|
12
12
|
symbols_: { error: 2, start: 3, directive: 4, NEWLINE: 5, RD: 6, diagram: 7, EOF: 8, acc_title: 9, acc_title_value: 10, acc_descr: 11, acc_descr_value: 12, acc_descr_multiline_value: 13, requirementDef: 14, elementDef: 15, relationshipDef: 16, direction: 17, styleStatement: 18, classDefStatement: 19, classStatement: 20, direction_tb: 21, direction_bt: 22, direction_rl: 23, direction_lr: 24, requirementType: 25, requirementName: 26, STRUCT_START: 27, requirementBody: 28, STYLE_SEPARATOR: 29, idList: 30, ID: 31, COLONSEP: 32, id: 33, TEXT: 34, text: 35, RISK: 36, riskLevel: 37, VERIFYMTHD: 38, verifyType: 39, STRUCT_STOP: 40, REQUIREMENT: 41, FUNCTIONAL_REQUIREMENT: 42, INTERFACE_REQUIREMENT: 43, PERFORMANCE_REQUIREMENT: 44, PHYSICAL_REQUIREMENT: 45, DESIGN_CONSTRAINT: 46, LOW_RISK: 47, MED_RISK: 48, HIGH_RISK: 49, VERIFY_ANALYSIS: 50, VERIFY_DEMONSTRATION: 51, VERIFY_INSPECTION: 52, VERIFY_TEST: 53, ELEMENT: 54, elementName: 55, elementBody: 56, TYPE: 57, type: 58, DOCREF: 59, ref: 60, END_ARROW_L: 61, relationship: 62, LINE: 63, END_ARROW_R: 64, CONTAINS: 65, COPIES: 66, DERIVES: 67, SATISFIES: 68, VERIFIES: 69, REFINES: 70, TRACES: 71, CLASSDEF: 72, stylesOpt: 73, CLASS: 74, ALPHA: 75, COMMA: 76, STYLE: 77, style: 78, styleComponent: 79, NUM: 80, COLON: 81, UNIT: 82, SPACE: 83, BRKT: 84, PCT: 85, MINUS: 86, LABEL: 87, SEMICOLON: 88, unqString: 89, qString: 90, $accept: 0, $end: 1 },
|
|
13
13
|
terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 21: "direction_tb", 22: "direction_bt", 23: "direction_rl", 24: "direction_lr", 27: "STRUCT_START", 29: "STYLE_SEPARATOR", 31: "ID", 32: "COLONSEP", 34: "TEXT", 36: "RISK", 38: "VERIFYMTHD", 40: "STRUCT_STOP", 41: "REQUIREMENT", 42: "FUNCTIONAL_REQUIREMENT", 43: "INTERFACE_REQUIREMENT", 44: "PERFORMANCE_REQUIREMENT", 45: "PHYSICAL_REQUIREMENT", 46: "DESIGN_CONSTRAINT", 47: "LOW_RISK", 48: "MED_RISK", 49: "HIGH_RISK", 50: "VERIFY_ANALYSIS", 51: "VERIFY_DEMONSTRATION", 52: "VERIFY_INSPECTION", 53: "VERIFY_TEST", 54: "ELEMENT", 57: "TYPE", 59: "DOCREF", 61: "END_ARROW_L", 63: "LINE", 64: "END_ARROW_R", 65: "CONTAINS", 66: "COPIES", 67: "DERIVES", 68: "SATISFIES", 69: "VERIFIES", 70: "REFINES", 71: "TRACES", 72: "CLASSDEF", 74: "CLASS", 75: "ALPHA", 76: "COMMA", 77: "STYLE", 80: "NUM", 81: "COLON", 82: "UNIT", 83: "SPACE", 84: "BRKT", 85: "PCT", 86: "MINUS", 87: "LABEL", 88: "SEMICOLON", 89: "unqString", 90: "qString" },
|
|
14
14
|
productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [17, 1], [17, 1], [17, 1], [17, 1], [14, 5], [14, 7], [28, 5], [28, 5], [28, 5], [28, 5], [28, 2], [28, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [37, 1], [37, 1], [37, 1], [39, 1], [39, 1], [39, 1], [39, 1], [15, 5], [15, 7], [56, 5], [56, 5], [56, 2], [56, 1], [16, 5], [16, 5], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [19, 3], [20, 3], [20, 3], [30, 1], [30, 3], [30, 1], [30, 3], [18, 3], [73, 1], [73, 3], [78, 1], [78, 2], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [26, 1], [26, 1], [33, 1], [33, 1], [35, 1], [35, 1], [55, 1], [55, 1], [58, 1], [58, 1], [60, 1], [60, 1]],
|
|
15
|
-
performAction: /* @__PURE__ */
|
|
16
|
-
var
|
|
17
|
-
switch (
|
|
15
|
+
performAction: /* @__PURE__ */ h(function(r, a, c, s, m, t, me) {
|
|
16
|
+
var l = t.length - 1;
|
|
17
|
+
switch (m) {
|
|
18
18
|
case 4:
|
|
19
|
-
this.$ = t[
|
|
19
|
+
this.$ = t[l].trim(), s.setAccTitle(this.$);
|
|
20
20
|
break;
|
|
21
21
|
case 5:
|
|
22
22
|
case 6:
|
|
23
|
-
this.$ = t[
|
|
23
|
+
this.$ = t[l].trim(), s.setAccDescription(this.$);
|
|
24
24
|
break;
|
|
25
25
|
case 7:
|
|
26
26
|
this.$ = [];
|
|
@@ -38,22 +38,22 @@ var Ce = (function() {
|
|
|
38
38
|
s.setDirection("LR");
|
|
39
39
|
break;
|
|
40
40
|
case 21:
|
|
41
|
-
s.addRequirement(t[
|
|
41
|
+
s.addRequirement(t[l - 3], t[l - 4]);
|
|
42
42
|
break;
|
|
43
43
|
case 22:
|
|
44
|
-
s.addRequirement(t[
|
|
44
|
+
s.addRequirement(t[l - 5], t[l - 6]), s.setClass([t[l - 5]], t[l - 3]);
|
|
45
45
|
break;
|
|
46
46
|
case 23:
|
|
47
|
-
s.setNewReqId(t[
|
|
47
|
+
s.setNewReqId(t[l - 2]);
|
|
48
48
|
break;
|
|
49
49
|
case 24:
|
|
50
|
-
s.setNewReqText(t[
|
|
50
|
+
s.setNewReqText(t[l - 2]);
|
|
51
51
|
break;
|
|
52
52
|
case 25:
|
|
53
|
-
s.setNewReqRisk(t[
|
|
53
|
+
s.setNewReqRisk(t[l - 2]);
|
|
54
54
|
break;
|
|
55
55
|
case 26:
|
|
56
|
-
s.setNewReqVerifyMethod(t[
|
|
56
|
+
s.setNewReqVerifyMethod(t[l - 2]);
|
|
57
57
|
break;
|
|
58
58
|
case 29:
|
|
59
59
|
this.$ = s.RequirementType.REQUIREMENT;
|
|
@@ -95,22 +95,22 @@ var Ce = (function() {
|
|
|
95
95
|
this.$ = s.VerifyType.VERIFY_TEST;
|
|
96
96
|
break;
|
|
97
97
|
case 42:
|
|
98
|
-
s.addElement(t[
|
|
98
|
+
s.addElement(t[l - 3]);
|
|
99
99
|
break;
|
|
100
100
|
case 43:
|
|
101
|
-
s.addElement(t[
|
|
101
|
+
s.addElement(t[l - 5]), s.setClass([t[l - 5]], t[l - 3]);
|
|
102
102
|
break;
|
|
103
103
|
case 44:
|
|
104
|
-
s.setNewElementType(t[
|
|
104
|
+
s.setNewElementType(t[l - 2]);
|
|
105
105
|
break;
|
|
106
106
|
case 45:
|
|
107
|
-
s.setNewElementDocRef(t[
|
|
107
|
+
s.setNewElementDocRef(t[l - 2]);
|
|
108
108
|
break;
|
|
109
109
|
case 48:
|
|
110
|
-
s.addRelationship(t[
|
|
110
|
+
s.addRelationship(t[l - 2], t[l], t[l - 4]);
|
|
111
111
|
break;
|
|
112
112
|
case 49:
|
|
113
|
-
s.addRelationship(t[
|
|
113
|
+
s.addRelationship(t[l - 2], t[l - 4], t[l]);
|
|
114
114
|
break;
|
|
115
115
|
case 50:
|
|
116
116
|
this.$ = s.Relationships.CONTAINS;
|
|
@@ -134,106 +134,106 @@ var Ce = (function() {
|
|
|
134
134
|
this.$ = s.Relationships.TRACES;
|
|
135
135
|
break;
|
|
136
136
|
case 57:
|
|
137
|
-
this.$ = t[
|
|
137
|
+
this.$ = t[l - 2], s.defineClass(t[l - 1], t[l]);
|
|
138
138
|
break;
|
|
139
139
|
case 58:
|
|
140
|
-
s.setClass(t[
|
|
140
|
+
s.setClass(t[l - 1], t[l]);
|
|
141
141
|
break;
|
|
142
142
|
case 59:
|
|
143
|
-
s.setClass([t[
|
|
143
|
+
s.setClass([t[l - 2]], t[l]);
|
|
144
144
|
break;
|
|
145
145
|
case 60:
|
|
146
146
|
case 62:
|
|
147
|
-
this.$ = [t[
|
|
147
|
+
this.$ = [t[l]];
|
|
148
148
|
break;
|
|
149
149
|
case 61:
|
|
150
150
|
case 63:
|
|
151
|
-
this.$ = t[
|
|
151
|
+
this.$ = t[l - 2].concat([t[l]]);
|
|
152
152
|
break;
|
|
153
153
|
case 64:
|
|
154
|
-
this.$ = t[
|
|
154
|
+
this.$ = t[l - 2], s.setCssStyle(t[l - 1], t[l]);
|
|
155
155
|
break;
|
|
156
156
|
case 65:
|
|
157
|
-
this.$ = [t[
|
|
157
|
+
this.$ = [t[l]];
|
|
158
158
|
break;
|
|
159
159
|
case 66:
|
|
160
|
-
t[
|
|
160
|
+
t[l - 2].push(t[l]), this.$ = t[l - 2];
|
|
161
161
|
break;
|
|
162
162
|
case 68:
|
|
163
|
-
this.$ = t[
|
|
163
|
+
this.$ = t[l - 1] + t[l];
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
166
|
}, "anonymous"),
|
|
167
|
-
table: [{ 3: 1, 4: 2, 6:
|
|
167
|
+
table: [{ 3: 1, 4: 2, 6: u, 9: o, 11: n, 13: i }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: u, 9: o, 11: n, 13: i }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(f, [2, 6]), { 3: 12, 4: 2, 6: u, 9: o, 11: n, 13: i }, { 1: [2, 2] }, { 4: 17, 5: _, 7: 13, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, e(f, [2, 4]), e(f, [2, 5]), { 1: [2, 1] }, { 8: [1, 41] }, { 4: 17, 5: _, 7: 42, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 43, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 44, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 45, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 46, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 47, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 48, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 49, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 4: 17, 5: _, 7: 50, 8: E, 9: o, 11: n, 13: i, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: g, 22: S, 23: k, 24: q, 25: 23, 33: 25, 41: C, 42: A, 43: V, 44: v, 45: L, 46: x, 54: O, 72: w, 74: D, 77: M, 89: p, 90: R }, { 26: 51, 89: [1, 52], 90: [1, 53] }, { 55: 54, 89: [1, 55], 90: [1, 56] }, { 29: [1, 59], 61: [1, 57], 63: [1, 58] }, e(d, [2, 17]), e(d, [2, 18]), e(d, [2, 19]), e(d, [2, 20]), { 30: 60, 33: 62, 75: P, 89: p, 90: R }, { 30: 63, 33: 62, 75: P, 89: p, 90: R }, { 30: 64, 33: 62, 75: P, 89: p, 90: R }, e(X, [2, 29]), e(X, [2, 30]), e(X, [2, 31]), e(X, [2, 32]), e(X, [2, 33]), e(X, [2, 34]), e(Ce, [2, 81]), e(Ce, [2, 82]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 8: [2, 13] }, { 8: [2, 14] }, { 8: [2, 15] }, { 8: [2, 16] }, { 27: [1, 65], 29: [1, 66] }, e(de, [2, 79]), e(de, [2, 80]), { 27: [1, 67], 29: [1, 68] }, e(de, [2, 85]), e(de, [2, 86]), { 62: 69, 65: Ae, 66: Ve, 67: ve, 68: Le, 69: xe, 70: Oe, 71: we }, { 62: 77, 65: Ae, 66: Ve, 67: ve, 68: Le, 69: xe, 70: Oe, 71: we }, { 30: 78, 33: 62, 75: P, 89: p, 90: R }, { 73: 79, 75: Z, 76: U, 78: 81, 79: 82, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }, e(Ee, [2, 60]), e(Ee, [2, 62]), { 73: 93, 75: Z, 76: U, 78: 81, 79: 82, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }, { 30: 94, 33: 62, 75: P, 76: U, 89: p, 90: R }, { 5: [1, 95] }, { 30: 96, 33: 62, 75: P, 89: p, 90: R }, { 5: [1, 97] }, { 30: 98, 33: 62, 75: P, 89: p, 90: R }, { 63: [1, 99] }, e(Y, [2, 50]), e(Y, [2, 51]), e(Y, [2, 52]), e(Y, [2, 53]), e(Y, [2, 54]), e(Y, [2, 55]), e(Y, [2, 56]), { 64: [1, 100] }, e(d, [2, 59], { 76: U }), e(d, [2, 64], { 76: De }), { 33: 103, 75: [1, 102], 89: p, 90: R }, e(Me, [2, 65], { 79: 104, 75: Z, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }), e(T, [2, 67]), e(T, [2, 69]), e(T, [2, 70]), e(T, [2, 71]), e(T, [2, 72]), e(T, [2, 73]), e(T, [2, 74]), e(T, [2, 75]), e(T, [2, 76]), e(T, [2, 77]), e(T, [2, 78]), e(d, [2, 57], { 76: De }), e(d, [2, 58], { 76: U }), { 5: B, 28: 105, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 27: [1, 112], 76: U }, { 5: oe, 40: he, 56: 113, 57: ue, 59: fe }, { 27: [1, 118], 76: U }, { 33: 119, 89: p, 90: R }, { 33: 120, 89: p, 90: R }, { 75: Z, 78: 121, 79: 82, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }, e(Ee, [2, 61]), e(Ee, [2, 63]), e(T, [2, 68]), e(d, [2, 21]), { 32: [1, 122] }, { 32: [1, 123] }, { 32: [1, 124] }, { 32: [1, 125] }, { 5: B, 28: 126, 31: Q, 34: H, 36: K, 38: W, 40: j }, e(d, [2, 28]), { 5: [1, 127] }, e(d, [2, 42]), { 32: [1, 128] }, { 32: [1, 129] }, { 5: oe, 40: he, 56: 130, 57: ue, 59: fe }, e(d, [2, 47]), { 5: [1, 131] }, e(d, [2, 48]), e(d, [2, 49]), e(Me, [2, 66], { 79: 104, 75: Z, 80: ee, 81: te, 82: se, 83: ie, 84: re, 85: ne, 86: ae, 87: le, 88: ce }), { 33: 132, 89: p, 90: R }, { 35: 133, 89: [1, 134], 90: [1, 135] }, { 37: 136, 47: [1, 137], 48: [1, 138], 49: [1, 139] }, { 39: 140, 50: [1, 141], 51: [1, 142], 52: [1, 143], 53: [1, 144] }, e(d, [2, 27]), { 5: B, 28: 145, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 58: 146, 89: [1, 147], 90: [1, 148] }, { 60: 149, 89: [1, 150], 90: [1, 151] }, e(d, [2, 46]), { 5: oe, 40: he, 56: 152, 57: ue, 59: fe }, { 5: [1, 153] }, { 5: [1, 154] }, { 5: [2, 83] }, { 5: [2, 84] }, { 5: [1, 155] }, { 5: [2, 35] }, { 5: [2, 36] }, { 5: [2, 37] }, { 5: [1, 156] }, { 5: [2, 38] }, { 5: [2, 39] }, { 5: [2, 40] }, { 5: [2, 41] }, e(d, [2, 22]), { 5: [1, 157] }, { 5: [2, 87] }, { 5: [2, 88] }, { 5: [1, 158] }, { 5: [2, 89] }, { 5: [2, 90] }, e(d, [2, 43]), { 5: B, 28: 159, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: B, 28: 160, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: B, 28: 161, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: B, 28: 162, 31: Q, 34: H, 36: K, 38: W, 40: j }, { 5: oe, 40: he, 56: 163, 57: ue, 59: fe }, { 5: oe, 40: he, 56: 164, 57: ue, 59: fe }, e(d, [2, 23]), e(d, [2, 24]), e(d, [2, 25]), e(d, [2, 26]), e(d, [2, 44]), e(d, [2, 45])],
|
|
168
168
|
defaultActions: { 8: [2, 2], 12: [2, 1], 41: [2, 3], 42: [2, 8], 43: [2, 9], 44: [2, 10], 45: [2, 11], 46: [2, 12], 47: [2, 13], 48: [2, 14], 49: [2, 15], 50: [2, 16], 134: [2, 83], 135: [2, 84], 137: [2, 35], 138: [2, 36], 139: [2, 37], 141: [2, 38], 142: [2, 39], 143: [2, 40], 144: [2, 41], 147: [2, 87], 148: [2, 88], 150: [2, 89], 151: [2, 90] },
|
|
169
|
-
parseError: /* @__PURE__ */
|
|
170
|
-
if (
|
|
171
|
-
this.trace(
|
|
169
|
+
parseError: /* @__PURE__ */ h(function(r, a) {
|
|
170
|
+
if (a.recoverable)
|
|
171
|
+
this.trace(r);
|
|
172
172
|
else {
|
|
173
|
-
var
|
|
174
|
-
throw
|
|
173
|
+
var c = new Error(r);
|
|
174
|
+
throw c.hash = a, c;
|
|
175
175
|
}
|
|
176
176
|
}, "parseError"),
|
|
177
|
-
parse: /* @__PURE__ */
|
|
178
|
-
var
|
|
179
|
-
for (var
|
|
180
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
181
|
-
|
|
182
|
-
var
|
|
183
|
-
t.push(
|
|
184
|
-
var
|
|
177
|
+
parse: /* @__PURE__ */ h(function(r) {
|
|
178
|
+
var a = this, c = [0], s = [], m = [null], t = [], me = this.table, l = "", Re = 0, Fe = 0, He = 2, $e = 1, Ke = t.slice.call(arguments, 1), y = Object.create(this.lexer), z = { yy: {} };
|
|
179
|
+
for (var Se in this.yy)
|
|
180
|
+
Object.prototype.hasOwnProperty.call(this.yy, Se) && (z.yy[Se] = this.yy[Se]);
|
|
181
|
+
y.setInput(r, z.yy), z.yy.lexer = y, z.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
182
|
+
var be = y.yylloc;
|
|
183
|
+
t.push(be);
|
|
184
|
+
var We = y.options && y.options.ranges;
|
|
185
185
|
typeof z.yy.parseError == "function" ? this.parseError = z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
186
|
-
function
|
|
187
|
-
|
|
186
|
+
function je(I) {
|
|
187
|
+
c.length = c.length - 2 * I, m.length = m.length - I, t.length = t.length - I;
|
|
188
188
|
}
|
|
189
|
-
|
|
190
|
-
function
|
|
191
|
-
var
|
|
192
|
-
return
|
|
189
|
+
h(je, "popStack");
|
|
190
|
+
function Pe() {
|
|
191
|
+
var I;
|
|
192
|
+
return I = s.pop() || y.lex() || $e, typeof I != "number" && (I instanceof Array && (s = I, I = s.pop()), I = a.symbols_[I] || I), I;
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
for (var
|
|
196
|
-
if (G =
|
|
194
|
+
h(Pe, "lex");
|
|
195
|
+
for (var b, G, N, Ie, J = {}, ge, F, Ue, ye; ; ) {
|
|
196
|
+
if (G = c[c.length - 1], this.defaultActions[G] ? N = this.defaultActions[G] : ((b === null || typeof b > "u") && (b = Pe()), N = me[G] && me[G][b]), typeof N > "u" || !N.length || !N[0]) {
|
|
197
197
|
var ke = "";
|
|
198
|
-
|
|
199
|
-
for (
|
|
200
|
-
this.terminals_[
|
|
201
|
-
|
|
202
|
-
` +
|
|
203
|
-
Expecting ` +
|
|
204
|
-
text:
|
|
205
|
-
token: this.terminals_[
|
|
206
|
-
line:
|
|
207
|
-
loc:
|
|
208
|
-
expected:
|
|
198
|
+
ye = [];
|
|
199
|
+
for (ge in me[G])
|
|
200
|
+
this.terminals_[ge] && ge > He && ye.push("'" + this.terminals_[ge] + "'");
|
|
201
|
+
y.showPosition ? ke = "Parse error on line " + (Re + 1) + `:
|
|
202
|
+
` + y.showPosition() + `
|
|
203
|
+
Expecting ` + ye.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke = "Parse error on line " + (Re + 1) + ": Unexpected " + (b == $e ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(ke, {
|
|
204
|
+
text: y.match,
|
|
205
|
+
token: this.terminals_[b] || b,
|
|
206
|
+
line: y.yylineno,
|
|
207
|
+
loc: be,
|
|
208
|
+
expected: ye
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
if (
|
|
212
|
-
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " +
|
|
213
|
-
switch (
|
|
211
|
+
if (N[0] instanceof Array && N.length > 1)
|
|
212
|
+
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + b);
|
|
213
|
+
switch (N[0]) {
|
|
214
214
|
case 1:
|
|
215
|
-
|
|
215
|
+
c.push(b), m.push(y.yytext), t.push(y.yylloc), c.push(N[1]), b = null, Fe = y.yyleng, l = y.yytext, Re = y.yylineno, be = y.yylloc;
|
|
216
216
|
break;
|
|
217
217
|
case 2:
|
|
218
|
-
if (F = this.productions_[
|
|
218
|
+
if (F = this.productions_[N[1]][1], J.$ = m[m.length - F], J._$ = {
|
|
219
219
|
first_line: t[t.length - (F || 1)].first_line,
|
|
220
220
|
last_line: t[t.length - 1].last_line,
|
|
221
221
|
first_column: t[t.length - (F || 1)].first_column,
|
|
222
222
|
last_column: t[t.length - 1].last_column
|
|
223
|
-
},
|
|
223
|
+
}, We && (J._$.range = [
|
|
224
224
|
t[t.length - (F || 1)].range[0],
|
|
225
225
|
t[t.length - 1].range[1]
|
|
226
|
-
]),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
]), Ie = this.performAction.apply(J, [
|
|
227
|
+
l,
|
|
228
|
+
Fe,
|
|
229
|
+
Re,
|
|
230
230
|
z.yy,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
N[1],
|
|
232
|
+
m,
|
|
233
233
|
t
|
|
234
|
-
].concat(
|
|
235
|
-
return
|
|
236
|
-
F && (
|
|
234
|
+
].concat(Ke)), typeof Ie < "u")
|
|
235
|
+
return Ie;
|
|
236
|
+
F && (c = c.slice(0, -1 * F * 2), m = m.slice(0, -1 * F), t = t.slice(0, -1 * F)), c.push(this.productions_[N[1]][0]), m.push(J.$), t.push(J._$), Ue = me[c[c.length - 2]][c[c.length - 1]], c.push(Ue);
|
|
237
237
|
break;
|
|
238
238
|
case 3:
|
|
239
239
|
return !0;
|
|
@@ -241,18 +241,18 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
241
241
|
}
|
|
242
242
|
return !0;
|
|
243
243
|
}, "parse")
|
|
244
|
-
},
|
|
244
|
+
}, Qe = /* @__PURE__ */ (function() {
|
|
245
245
|
var $ = {
|
|
246
246
|
EOF: 1,
|
|
247
|
-
parseError: /* @__PURE__ */
|
|
247
|
+
parseError: /* @__PURE__ */ h(function(a, c) {
|
|
248
248
|
if (this.yy.parser)
|
|
249
|
-
this.yy.parser.parseError(
|
|
249
|
+
this.yy.parser.parseError(a, c);
|
|
250
250
|
else
|
|
251
|
-
throw new Error(
|
|
251
|
+
throw new Error(a);
|
|
252
252
|
}, "parseError"),
|
|
253
253
|
// resets the lexer, sets new input
|
|
254
|
-
setInput: /* @__PURE__ */
|
|
255
|
-
return this.yy =
|
|
254
|
+
setInput: /* @__PURE__ */ h(function(r, a) {
|
|
255
|
+
return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
256
256
|
first_line: 1,
|
|
257
257
|
first_column: 0,
|
|
258
258
|
last_line: 1,
|
|
@@ -260,32 +260,32 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
260
260
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
261
261
|
}, "setInput"),
|
|
262
262
|
// consumes and returns one char from the input
|
|
263
|
-
input: /* @__PURE__ */
|
|
264
|
-
var
|
|
265
|
-
this.yytext +=
|
|
266
|
-
var
|
|
267
|
-
return
|
|
263
|
+
input: /* @__PURE__ */ h(function() {
|
|
264
|
+
var r = this._input[0];
|
|
265
|
+
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
266
|
+
var a = r.match(/(?:\r\n?|\n).*/g);
|
|
267
|
+
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
268
268
|
}, "input"),
|
|
269
269
|
// unshifts one char (or a string) into the input
|
|
270
|
-
unput: /* @__PURE__ */
|
|
271
|
-
var
|
|
272
|
-
this._input =
|
|
270
|
+
unput: /* @__PURE__ */ h(function(r) {
|
|
271
|
+
var a = r.length, c = r.split(/(?:\r\n?|\n)/g);
|
|
272
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
273
273
|
var s = this.match.split(/(?:\r\n?|\n)/g);
|
|
274
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
275
|
-
var
|
|
274
|
+
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);
|
|
275
|
+
var m = this.yylloc.range;
|
|
276
276
|
return this.yylloc = {
|
|
277
277
|
first_line: this.yylloc.first_line,
|
|
278
278
|
last_line: this.yylineno + 1,
|
|
279
279
|
first_column: this.yylloc.first_column,
|
|
280
|
-
last_column:
|
|
281
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
280
|
+
last_column: c ? (c.length === s.length ? this.yylloc.first_column : 0) + s[s.length - c.length].length - c[0].length : this.yylloc.first_column - a
|
|
281
|
+
}, this.options.ranges && (this.yylloc.range = [m[0], m[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
282
282
|
}, "unput"),
|
|
283
283
|
// When called from action, caches matched text and appends it on next action
|
|
284
|
-
more: /* @__PURE__ */
|
|
284
|
+
more: /* @__PURE__ */ h(function() {
|
|
285
285
|
return this._more = !0, this;
|
|
286
286
|
}, "more"),
|
|
287
287
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
288
|
-
reject: /* @__PURE__ */
|
|
288
|
+
reject: /* @__PURE__ */ h(function() {
|
|
289
289
|
if (this.options.backtrack_lexer)
|
|
290
290
|
this._backtrack = !0;
|
|
291
291
|
else
|
|
@@ -298,29 +298,29 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
298
298
|
return this;
|
|
299
299
|
}, "reject"),
|
|
300
300
|
// retain first n characters of the match
|
|
301
|
-
less: /* @__PURE__ */
|
|
302
|
-
this.unput(this.match.slice(
|
|
301
|
+
less: /* @__PURE__ */ h(function(r) {
|
|
302
|
+
this.unput(this.match.slice(r));
|
|
303
303
|
}, "less"),
|
|
304
304
|
// displays already matched input, i.e. for error messages
|
|
305
|
-
pastInput: /* @__PURE__ */
|
|
306
|
-
var
|
|
307
|
-
return (
|
|
305
|
+
pastInput: /* @__PURE__ */ h(function() {
|
|
306
|
+
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
307
|
+
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
308
308
|
}, "pastInput"),
|
|
309
309
|
// displays upcoming input, i.e. for error messages
|
|
310
|
-
upcomingInput: /* @__PURE__ */
|
|
311
|
-
var
|
|
312
|
-
return
|
|
310
|
+
upcomingInput: /* @__PURE__ */ h(function() {
|
|
311
|
+
var r = this.match;
|
|
312
|
+
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
313
313
|
}, "upcomingInput"),
|
|
314
314
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
315
|
-
showPosition: /* @__PURE__ */
|
|
316
|
-
var
|
|
317
|
-
return
|
|
318
|
-
` +
|
|
315
|
+
showPosition: /* @__PURE__ */ h(function() {
|
|
316
|
+
var r = this.pastInput(), a = new Array(r.length + 1).join("-");
|
|
317
|
+
return r + this.upcomingInput() + `
|
|
318
|
+
` + a + "^";
|
|
319
319
|
}, "showPosition"),
|
|
320
320
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
321
|
-
test_match: /* @__PURE__ */
|
|
322
|
-
var
|
|
323
|
-
if (this.options.backtrack_lexer && (
|
|
321
|
+
test_match: /* @__PURE__ */ h(function(r, a) {
|
|
322
|
+
var c, s, m;
|
|
323
|
+
if (this.options.backtrack_lexer && (m = {
|
|
324
324
|
yylineno: this.yylineno,
|
|
325
325
|
yylloc: {
|
|
326
326
|
first_line: this.yylloc.first_line,
|
|
@@ -339,41 +339,41 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
339
339
|
yy: this.yy,
|
|
340
340
|
conditionStack: this.conditionStack.slice(0),
|
|
341
341
|
done: this.done
|
|
342
|
-
}, this.options.ranges && (
|
|
342
|
+
}, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), s = r[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
|
|
343
343
|
first_line: this.yylloc.last_line,
|
|
344
344
|
last_line: this.yylineno + 1,
|
|
345
345
|
first_column: this.yylloc.last_column,
|
|
346
|
-
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
347
|
-
}, this.yytext +=
|
|
348
|
-
return
|
|
346
|
+
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
347
|
+
}, 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)
|
|
348
|
+
return c;
|
|
349
349
|
if (this._backtrack) {
|
|
350
|
-
for (var t in
|
|
351
|
-
this[t] =
|
|
350
|
+
for (var t in m)
|
|
351
|
+
this[t] = m[t];
|
|
352
352
|
return !1;
|
|
353
353
|
}
|
|
354
354
|
return !1;
|
|
355
355
|
}, "test_match"),
|
|
356
356
|
// return next match in input
|
|
357
|
-
next: /* @__PURE__ */
|
|
357
|
+
next: /* @__PURE__ */ h(function() {
|
|
358
358
|
if (this.done)
|
|
359
359
|
return this.EOF;
|
|
360
360
|
this._input || (this.done = !0);
|
|
361
|
-
var
|
|
361
|
+
var r, a, c, s;
|
|
362
362
|
this._more || (this.yytext = "", this.match = "");
|
|
363
|
-
for (var
|
|
364
|
-
if (
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
return
|
|
363
|
+
for (var m = this._currentRules(), t = 0; t < m.length; t++)
|
|
364
|
+
if (c = this._input.match(this.rules[m[t]]), c && (!a || c[0].length > a[0].length)) {
|
|
365
|
+
if (a = c, s = t, this.options.backtrack_lexer) {
|
|
366
|
+
if (r = this.test_match(c, m[t]), r !== !1)
|
|
367
|
+
return r;
|
|
368
368
|
if (this._backtrack) {
|
|
369
|
-
|
|
369
|
+
a = !1;
|
|
370
370
|
continue;
|
|
371
371
|
} else
|
|
372
372
|
return !1;
|
|
373
373
|
} else if (!this.options.flex)
|
|
374
374
|
break;
|
|
375
375
|
}
|
|
376
|
-
return
|
|
376
|
+
return a ? (r = this.test_match(a, m[s]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
377
377
|
` + this.showPosition(), {
|
|
378
378
|
text: "",
|
|
379
379
|
token: null,
|
|
@@ -381,37 +381,37 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
381
381
|
});
|
|
382
382
|
}, "next"),
|
|
383
383
|
// return next match that has a token
|
|
384
|
-
lex: /* @__PURE__ */
|
|
385
|
-
var
|
|
386
|
-
return
|
|
384
|
+
lex: /* @__PURE__ */ h(function() {
|
|
385
|
+
var a = this.next();
|
|
386
|
+
return a || this.lex();
|
|
387
387
|
}, "lex"),
|
|
388
388
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
389
|
-
begin: /* @__PURE__ */
|
|
390
|
-
this.conditionStack.push(
|
|
389
|
+
begin: /* @__PURE__ */ h(function(a) {
|
|
390
|
+
this.conditionStack.push(a);
|
|
391
391
|
}, "begin"),
|
|
392
392
|
// pop the previously active lexer condition state off the condition stack
|
|
393
|
-
popState: /* @__PURE__ */
|
|
394
|
-
var
|
|
395
|
-
return
|
|
393
|
+
popState: /* @__PURE__ */ h(function() {
|
|
394
|
+
var a = this.conditionStack.length - 1;
|
|
395
|
+
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
396
396
|
}, "popState"),
|
|
397
397
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
398
|
-
_currentRules: /* @__PURE__ */
|
|
398
|
+
_currentRules: /* @__PURE__ */ h(function() {
|
|
399
399
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
400
400
|
}, "_currentRules"),
|
|
401
401
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
402
|
-
topState: /* @__PURE__ */
|
|
403
|
-
return
|
|
402
|
+
topState: /* @__PURE__ */ h(function(a) {
|
|
403
|
+
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
404
404
|
}, "topState"),
|
|
405
405
|
// alias for begin(condition)
|
|
406
|
-
pushState: /* @__PURE__ */
|
|
407
|
-
this.begin(
|
|
406
|
+
pushState: /* @__PURE__ */ h(function(a) {
|
|
407
|
+
this.begin(a);
|
|
408
408
|
}, "pushState"),
|
|
409
409
|
// return the number of states currently on the stack
|
|
410
|
-
stateStackSize: /* @__PURE__ */
|
|
410
|
+
stateStackSize: /* @__PURE__ */ h(function() {
|
|
411
411
|
return this.conditionStack.length;
|
|
412
412
|
}, "stateStackSize"),
|
|
413
413
|
options: { "case-insensitive": !0 },
|
|
414
|
-
performAction: /* @__PURE__ */
|
|
414
|
+
performAction: /* @__PURE__ */ h(function(a, c, s, m) {
|
|
415
415
|
switch (s) {
|
|
416
416
|
case 0:
|
|
417
417
|
return "title";
|
|
@@ -554,7 +554,7 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
554
554
|
case 66:
|
|
555
555
|
return "qString";
|
|
556
556
|
case 67:
|
|
557
|
-
return
|
|
557
|
+
return c.yytext = c.yytext.trim(), 89;
|
|
558
558
|
case 68:
|
|
559
559
|
return 75;
|
|
560
560
|
case 69:
|
|
@@ -568,14 +568,14 @@ Expecting ` + _e.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ke =
|
|
|
568
568
|
};
|
|
569
569
|
return $;
|
|
570
570
|
})();
|
|
571
|
-
|
|
572
|
-
function
|
|
571
|
+
_e.lexer = Qe;
|
|
572
|
+
function pe() {
|
|
573
573
|
this.yy = {};
|
|
574
574
|
}
|
|
575
|
-
return
|
|
575
|
+
return h(pe, "Parser"), pe.prototype = _e, _e.Parser = pe, new pe();
|
|
576
576
|
})();
|
|
577
|
-
|
|
578
|
-
var
|
|
577
|
+
qe.parser = qe;
|
|
578
|
+
var ct = qe, ot = class {
|
|
579
579
|
constructor() {
|
|
580
580
|
this.relations = [], this.latestRequirement = this.getInitialRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.latestElement = this.getInitialElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.RequirementType = {
|
|
581
581
|
REQUIREMENT: "Requirement",
|
|
@@ -601,13 +601,16 @@ var ot = Ce, Z, ht = (Z = class {
|
|
|
601
601
|
VERIFIES: "verifies",
|
|
602
602
|
REFINES: "refines",
|
|
603
603
|
TRACES: "traces"
|
|
604
|
-
}, this.setAccTitle =
|
|
604
|
+
}, this.setAccTitle = Xe, this.getAccTitle = Je, this.setAccDescription = Ze, this.getAccDescription = et, this.setDiagramTitle = tt, this.getDiagramTitle = st, this.getConfig = /* @__PURE__ */ h(() => Te().requirement, "getConfig"), this.clear(), this.setDirection = this.setDirection.bind(this), this.addRequirement = this.addRequirement.bind(this), this.setNewReqId = this.setNewReqId.bind(this), this.setNewReqRisk = this.setNewReqRisk.bind(this), this.setNewReqText = this.setNewReqText.bind(this), this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this), this.addElement = this.addElement.bind(this), this.setNewElementType = this.setNewElementType.bind(this), this.setNewElementDocRef = this.setNewElementDocRef.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setCssStyle = this.setCssStyle.bind(this), this.setClass = this.setClass.bind(this), this.defineClass = this.defineClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
|
|
605
|
+
}
|
|
606
|
+
static {
|
|
607
|
+
h(this, "RequirementDB");
|
|
605
608
|
}
|
|
606
609
|
getDirection() {
|
|
607
610
|
return this.direction;
|
|
608
611
|
}
|
|
609
|
-
setDirection(
|
|
610
|
-
this.direction =
|
|
612
|
+
setDirection(e) {
|
|
613
|
+
this.direction = e;
|
|
611
614
|
}
|
|
612
615
|
resetLatestRequirement() {
|
|
613
616
|
this.latestRequirement = this.getInitialRequirement();
|
|
@@ -636,9 +639,9 @@ var ot = Ce, Z, ht = (Z = class {
|
|
|
636
639
|
classes: ["default"]
|
|
637
640
|
};
|
|
638
641
|
}
|
|
639
|
-
addRequirement(
|
|
640
|
-
return this.requirements.has(
|
|
641
|
-
name:
|
|
642
|
+
addRequirement(e, u) {
|
|
643
|
+
return this.requirements.has(e) || this.requirements.set(e, {
|
|
644
|
+
name: e,
|
|
642
645
|
type: u,
|
|
643
646
|
requirementId: this.latestRequirement.requirementId,
|
|
644
647
|
text: this.latestRequirement.text,
|
|
@@ -646,88 +649,87 @@ var ot = Ce, Z, ht = (Z = class {
|
|
|
646
649
|
verifyMethod: this.latestRequirement.verifyMethod,
|
|
647
650
|
cssStyles: [],
|
|
648
651
|
classes: ["default"]
|
|
649
|
-
}), this.resetLatestRequirement(), this.requirements.get(
|
|
652
|
+
}), this.resetLatestRequirement(), this.requirements.get(e);
|
|
650
653
|
}
|
|
651
654
|
getRequirements() {
|
|
652
655
|
return this.requirements;
|
|
653
656
|
}
|
|
654
|
-
setNewReqId(
|
|
655
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.requirementId =
|
|
657
|
+
setNewReqId(e) {
|
|
658
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.requirementId = e);
|
|
656
659
|
}
|
|
657
|
-
setNewReqText(
|
|
658
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.text =
|
|
660
|
+
setNewReqText(e) {
|
|
661
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.text = e);
|
|
659
662
|
}
|
|
660
|
-
setNewReqRisk(
|
|
661
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.risk =
|
|
663
|
+
setNewReqRisk(e) {
|
|
664
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.risk = e);
|
|
662
665
|
}
|
|
663
|
-
setNewReqVerifyMethod(
|
|
664
|
-
this.latestRequirement !== void 0 && (this.latestRequirement.verifyMethod =
|
|
666
|
+
setNewReqVerifyMethod(e) {
|
|
667
|
+
this.latestRequirement !== void 0 && (this.latestRequirement.verifyMethod = e);
|
|
665
668
|
}
|
|
666
|
-
addElement(
|
|
667
|
-
return this.elements.has(
|
|
668
|
-
name:
|
|
669
|
+
addElement(e) {
|
|
670
|
+
return this.elements.has(e) || (this.elements.set(e, {
|
|
671
|
+
name: e,
|
|
669
672
|
type: this.latestElement.type,
|
|
670
673
|
docRef: this.latestElement.docRef,
|
|
671
674
|
cssStyles: [],
|
|
672
675
|
classes: ["default"]
|
|
673
|
-
}),
|
|
676
|
+
}), Ne.info("Added new element: ", e)), this.resetLatestElement(), this.elements.get(e);
|
|
674
677
|
}
|
|
675
678
|
getElements() {
|
|
676
679
|
return this.elements;
|
|
677
680
|
}
|
|
678
|
-
setNewElementType(
|
|
679
|
-
this.latestElement !== void 0 && (this.latestElement.type =
|
|
681
|
+
setNewElementType(e) {
|
|
682
|
+
this.latestElement !== void 0 && (this.latestElement.type = e);
|
|
680
683
|
}
|
|
681
|
-
setNewElementDocRef(
|
|
682
|
-
this.latestElement !== void 0 && (this.latestElement.docRef =
|
|
684
|
+
setNewElementDocRef(e) {
|
|
685
|
+
this.latestElement !== void 0 && (this.latestElement.docRef = e);
|
|
683
686
|
}
|
|
684
|
-
addRelationship(
|
|
687
|
+
addRelationship(e, u, o) {
|
|
685
688
|
this.relations.push({
|
|
686
|
-
type:
|
|
689
|
+
type: e,
|
|
687
690
|
src: u,
|
|
688
|
-
dst:
|
|
691
|
+
dst: o
|
|
689
692
|
});
|
|
690
693
|
}
|
|
691
694
|
getRelationships() {
|
|
692
695
|
return this.relations;
|
|
693
696
|
}
|
|
694
697
|
clear() {
|
|
695
|
-
this.relations = [], this.resetLatestRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.resetLatestElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(),
|
|
698
|
+
this.relations = [], this.resetLatestRequirement(), this.requirements = /* @__PURE__ */ new Map(), this.resetLatestElement(), this.elements = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), it();
|
|
696
699
|
}
|
|
697
|
-
setCssStyle(
|
|
698
|
-
for (const
|
|
699
|
-
const
|
|
700
|
-
if (!u || !
|
|
700
|
+
setCssStyle(e, u) {
|
|
701
|
+
for (const o of e) {
|
|
702
|
+
const n = this.requirements.get(o) ?? this.elements.get(o);
|
|
703
|
+
if (!u || !n)
|
|
701
704
|
return;
|
|
702
|
-
for (const
|
|
703
|
-
|
|
705
|
+
for (const i of u)
|
|
706
|
+
i.includes(",") ? n.cssStyles.push(...i.split(",")) : n.cssStyles.push(i);
|
|
704
707
|
}
|
|
705
708
|
}
|
|
706
|
-
setClass(
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
p && c.cssStyles.push(...p);
|
|
709
|
+
setClass(e, u) {
|
|
710
|
+
for (const o of e) {
|
|
711
|
+
const n = this.requirements.get(o) ?? this.elements.get(o);
|
|
712
|
+
if (n)
|
|
713
|
+
for (const i of u) {
|
|
714
|
+
n.classes.push(i);
|
|
715
|
+
const f = this.classes.get(i)?.styles;
|
|
716
|
+
f && n.cssStyles.push(...f);
|
|
715
717
|
}
|
|
716
718
|
}
|
|
717
719
|
}
|
|
718
|
-
defineClass(
|
|
719
|
-
for (const
|
|
720
|
-
let
|
|
721
|
-
|
|
722
|
-
if (/color/.exec(
|
|
723
|
-
const
|
|
724
|
-
|
|
720
|
+
defineClass(e, u) {
|
|
721
|
+
for (const o of e) {
|
|
722
|
+
let n = this.classes.get(o);
|
|
723
|
+
n === void 0 && (n = { id: o, styles: [], textStyles: [] }, this.classes.set(o, n)), u && u.forEach(function(i) {
|
|
724
|
+
if (/color/.exec(i)) {
|
|
725
|
+
const f = i.replace("fill", "bgFill");
|
|
726
|
+
n.textStyles.push(f);
|
|
725
727
|
}
|
|
726
|
-
|
|
727
|
-
}), this.requirements.forEach((
|
|
728
|
-
|
|
729
|
-
}), this.elements.forEach((
|
|
730
|
-
|
|
728
|
+
n.styles.push(i);
|
|
729
|
+
}), this.requirements.forEach((i) => {
|
|
730
|
+
i.classes.includes(o) && i.cssStyles.push(...u.flatMap((f) => f.split(",")));
|
|
731
|
+
}), this.elements.forEach((i) => {
|
|
732
|
+
i.classes.includes(o) && i.cssStyles.push(...u.flatMap((f) => f.split(",")));
|
|
731
733
|
});
|
|
732
734
|
}
|
|
733
735
|
}
|
|
@@ -735,61 +737,60 @@ var ot = Ce, Z, ht = (Z = class {
|
|
|
735
737
|
return this.classes;
|
|
736
738
|
}
|
|
737
739
|
getData() {
|
|
738
|
-
|
|
739
|
-
const
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
m.id = f.name, m.cssStyles = f.cssStyles, m.cssClasses = f.classes.join(" "), m.shape = "requirementBox", m.look = r.look, m.colorIndex = u.length, u.push(m);
|
|
740
|
+
const e = Te(), u = [], o = [];
|
|
741
|
+
for (const n of this.requirements.values()) {
|
|
742
|
+
const i = n;
|
|
743
|
+
i.id = n.name, i.cssStyles = n.cssStyles, i.cssClasses = n.classes.join(" "), i.shape = "requirementBox", i.look = e.look, i.colorIndex = u.length, u.push(i);
|
|
743
744
|
}
|
|
744
|
-
for (const
|
|
745
|
-
const
|
|
746
|
-
|
|
745
|
+
for (const n of this.elements.values()) {
|
|
746
|
+
const i = n;
|
|
747
|
+
i.shape = "requirementBox", i.look = e.look, i.id = n.name, i.cssStyles = n.cssStyles, i.cssClasses = n.classes.join(" "), i.colorIndex = u.length, u.push(i);
|
|
747
748
|
}
|
|
748
|
-
for (const
|
|
749
|
-
let
|
|
750
|
-
const
|
|
751
|
-
id: `${
|
|
752
|
-
start:
|
|
753
|
-
end:
|
|
754
|
-
label: `<<${
|
|
749
|
+
for (const n of this.relations) {
|
|
750
|
+
let i = 0;
|
|
751
|
+
const f = n.type === this.Relationships.CONTAINS, _ = {
|
|
752
|
+
id: `${n.src}-${n.dst}-${i}`,
|
|
753
|
+
start: this.requirements.get(n.src)?.name ?? this.elements.get(n.src)?.name,
|
|
754
|
+
end: this.requirements.get(n.dst)?.name ?? this.elements.get(n.dst)?.name,
|
|
755
|
+
label: `<<${n.type}>>`,
|
|
755
756
|
classes: "relationshipLine",
|
|
756
|
-
style: ["fill:none",
|
|
757
|
+
style: ["fill:none", f ? "" : "stroke-dasharray: 10,7"],
|
|
757
758
|
labelpos: "c",
|
|
758
759
|
thickness: "normal",
|
|
759
760
|
type: "normal",
|
|
760
|
-
pattern:
|
|
761
|
-
arrowTypeStart:
|
|
762
|
-
arrowTypeEnd:
|
|
763
|
-
look:
|
|
761
|
+
pattern: f ? "normal" : "dashed",
|
|
762
|
+
arrowTypeStart: f ? "requirement_contains" : "",
|
|
763
|
+
arrowTypeEnd: f ? "" : "requirement_arrow",
|
|
764
|
+
look: e.look,
|
|
764
765
|
labelType: "markdown"
|
|
765
766
|
};
|
|
766
|
-
|
|
767
|
+
o.push(_), i++;
|
|
767
768
|
}
|
|
768
|
-
return { nodes: u, edges:
|
|
769
|
+
return { nodes: u, edges: o, other: {}, config: e, direction: this.getDirection() };
|
|
769
770
|
}
|
|
770
|
-
},
|
|
771
|
-
const
|
|
772
|
-
if (!
|
|
771
|
+
}, ht = /* @__PURE__ */ h((e) => {
|
|
772
|
+
const u = Ye(), { themeVariables: o, look: n } = u, { bkgColorArray: i, borderColorArray: f } = o;
|
|
773
|
+
if (!f?.length)
|
|
773
774
|
return "";
|
|
774
|
-
let
|
|
775
|
-
for (let
|
|
776
|
-
|
|
775
|
+
let _ = "";
|
|
776
|
+
for (let E = 0; E < e.THEME_COLOR_LIMIT; E++)
|
|
777
|
+
_ += `
|
|
777
778
|
|
|
778
|
-
[data-look="${
|
|
779
|
-
stroke: ${
|
|
780
|
-
fill: ${
|
|
779
|
+
[data-look="${n}"][data-color-id="color-${E}"].node path {
|
|
780
|
+
stroke: ${f[E]};
|
|
781
|
+
fill: ${i?.length ? i[E] : ""};
|
|
781
782
|
}
|
|
782
783
|
|
|
783
|
-
[data-look="${
|
|
784
|
-
stroke: ${
|
|
785
|
-
fill: ${
|
|
784
|
+
[data-look="${n}"][data-color-id="color-${E}"].node rect {
|
|
785
|
+
stroke: ${f[E]};
|
|
786
|
+
fill: ${i?.length ? i[E] : ""};
|
|
786
787
|
}
|
|
787
788
|
`;
|
|
788
|
-
return
|
|
789
|
-
}, "genColor"),
|
|
790
|
-
const
|
|
789
|
+
return _;
|
|
790
|
+
}, "genColor"), ut = /* @__PURE__ */ h((e) => {
|
|
791
|
+
const u = Ye(), { look: o, themeVariables: n } = u, { requirementEdgeLabelBackground: i } = n;
|
|
791
792
|
return `
|
|
792
|
-
${
|
|
793
|
+
${ht(e)}
|
|
793
794
|
marker {
|
|
794
795
|
fill: ${e.relationColor};
|
|
795
796
|
stroke: ${e.relationColor};
|
|
@@ -825,7 +826,7 @@ var ot = Ce, Z, ht = (Z = class {
|
|
|
825
826
|
}
|
|
826
827
|
.relationshipLine {
|
|
827
828
|
stroke: ${e.relationColor};
|
|
828
|
-
stroke-width: ${
|
|
829
|
+
stroke-width: ${o === "neo" ? e.strokeWidth : "1px"};
|
|
829
830
|
}
|
|
830
831
|
.relationshipLabel {
|
|
831
832
|
fill: ${e.relationLabelColor};
|
|
@@ -852,33 +853,33 @@ var ot = Ce, Z, ht = (Z = class {
|
|
|
852
853
|
color: ${e.nodeTextColor || e.textColor};
|
|
853
854
|
}
|
|
854
855
|
.labelBkg {
|
|
855
|
-
background-color: ${
|
|
856
|
+
background-color: ${i ?? e.edgeLabelBackground};
|
|
856
857
|
}
|
|
857
858
|
|
|
858
859
|
`;
|
|
859
|
-
}, "getStyles"),
|
|
860
|
-
|
|
861
|
-
draw: () =>
|
|
860
|
+
}, "getStyles"), ft = ut, Be = {};
|
|
861
|
+
rt(Be, {
|
|
862
|
+
draw: () => mt
|
|
862
863
|
});
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
const { securityLevel:
|
|
866
|
-
|
|
867
|
-
const
|
|
868
|
-
|
|
869
|
-
|
|
864
|
+
var mt = /* @__PURE__ */ h(async function(e, u, o, n) {
|
|
865
|
+
Ne.info("REF0:"), Ne.info("Drawing requirement diagram (unified)", u);
|
|
866
|
+
const { securityLevel: i, state: f, layout: _, look: E } = Te(), g = n.db.getData(), S = ze(u, i);
|
|
867
|
+
g.type = n.type, g.layoutAlgorithm = nt(_), g.nodeSpacing = f?.nodeSpacing ?? 50, g.rankSpacing = f?.rankSpacing ?? 50, g.markers = E === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"], g.diagramId = u, await at(g, S);
|
|
868
|
+
const k = 8;
|
|
869
|
+
lt.insertTitle(
|
|
870
|
+
S,
|
|
870
871
|
"requirementDiagramTitleText",
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
),
|
|
874
|
-
}, "draw"),
|
|
875
|
-
parser:
|
|
872
|
+
f?.titleTopMargin ?? 25,
|
|
873
|
+
n.db.getDiagramTitle()
|
|
874
|
+
), Ge(S, k, "requirementDiagram", f?.useMaxWidth ?? !0);
|
|
875
|
+
}, "draw"), Rt = {
|
|
876
|
+
parser: ct,
|
|
876
877
|
get db() {
|
|
877
|
-
return new
|
|
878
|
+
return new ot();
|
|
878
879
|
},
|
|
879
|
-
renderer:
|
|
880
|
-
styles:
|
|
880
|
+
renderer: Be,
|
|
881
|
+
styles: ft
|
|
881
882
|
};
|
|
882
883
|
export {
|
|
883
|
-
|
|
884
|
+
Rt as diagram
|
|
884
885
|
};
|