@diagrammo/dgmo 0.69.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/advanced.d.ts +11 -4
- package/dist/advanced.js +90 -90
- package/dist/block.js +46 -46
- package/dist/{calculator-GU4NVYE2.js → calculator-4CNL2GKU.js} +3 -3
- package/dist/{chart-meta-DNsYpNbh.d.ts → chart-meta-6JaOudSs.d.ts} +8 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +42 -42
- package/dist/{charts-d3-C6UIUGNF.js → charts-d3-6IHGTXBR.js} +5 -5
- package/dist/{chunk-J2IMCVKB.js → chunk-2JY7KE7C.js} +6 -6
- package/dist/{chunk-NPOUCNXP.js → chunk-376ATV2Q.js} +19 -5
- package/dist/{chunk-SI766DED.js → chunk-3HN32MEK.js} +2 -2
- package/dist/{chunk-EAGUQK5P.js → chunk-3SNE4CLI.js} +3 -3
- package/dist/{chunk-KO6FGEEG.js → chunk-4VUFJ7UA.js} +3 -3
- package/dist/{chunk-7YCHRBD3.js → chunk-5DYDPP7K.js} +2 -2
- package/dist/{chunk-R2UUKZ6R.js → chunk-5GTYY2XV.js} +3 -3
- package/dist/{chunk-42FSJTZB.js → chunk-6EDBUKC7.js} +2 -2
- package/dist/{chunk-IODPKTRZ.js → chunk-6PA32CUB.js} +2 -2
- package/dist/{chunk-QP773H5T.js → chunk-6S53NO3M.js} +5 -2
- package/dist/{chunk-GOR4VFYB.js → chunk-722TKHMS.js} +4 -4
- package/dist/{chunk-C3OPOLID.js → chunk-7BHM774H.js} +6 -6
- package/dist/{chunk-D6MVQTMK.js → chunk-7REARI5N.js} +2 -2
- package/dist/{chunk-JWJEYIQF.js → chunk-7SEQPFBX.js} +38 -7
- package/dist/{chunk-PUBBTLAA.js → chunk-7TSBM4BV.js} +3 -3
- package/dist/{chunk-3QLXP6QZ.js → chunk-AEYRSPVV.js} +2 -2
- package/dist/{chunk-C2YYMYNR.js → chunk-BYSRXYRW.js} +4 -4
- package/dist/{chunk-WVJ2S4LU.js → chunk-C3MVZ7EW.js} +3 -3
- package/dist/{chunk-WBFRYH52.js → chunk-CH4WODSG.js} +3 -3
- package/dist/{chunk-XQBZFQE2.js → chunk-CR5WIA6I.js} +2 -2
- package/dist/{chunk-U2OLG4PB.js → chunk-DEVZWCD5.js} +17 -5
- package/dist/{chunk-WKOQQDQO.js → chunk-DPGI742S.js} +31 -2
- package/dist/{chunk-GZY5WEOQ.js → chunk-E36Q5ABQ.js} +4 -4
- package/dist/{chunk-HC3I53WV.js → chunk-EETUTZ5C.js} +2 -2
- package/dist/{chunk-V6TRRCXS.js → chunk-ELIGVSLE.js} +10 -3
- package/dist/{chunk-7N7QLRR5.js → chunk-ENJWB5LU.js} +6 -6
- package/dist/{chunk-5B4ZSR6O.js → chunk-FAJS2N4O.js} +5 -5
- package/dist/{chunk-TDKWKVN3.js → chunk-FFD6A3B2.js} +22 -5
- package/dist/{chunk-LRGSJI5X.js → chunk-FLXDMH7B.js} +3 -3
- package/dist/{chunk-UJ4FJLBF.js → chunk-FX2USYOU.js} +13 -1
- package/dist/{chunk-5TESTTMF.js → chunk-HTGYAMOK.js} +3 -3
- package/dist/{chunk-6766D4YT.js → chunk-HWNF22ZZ.js} +20 -15
- package/dist/{chunk-Y37EDBPR.js → chunk-IFJIYUI6.js} +2 -2
- package/dist/{chunk-QQI4JTJB.js → chunk-IQ4W4Q2R.js} +2 -2
- package/dist/{chunk-2QCQHMQO.js → chunk-ISKO4MQ5.js} +4 -4
- package/dist/{chunk-4RYDF2IG.js → chunk-IWNHEK5K.js} +6 -6
- package/dist/{chunk-7LYXDGGT.js → chunk-JIWDWOYA.js} +3 -3
- package/dist/{chunk-HAGHVHR7.js → chunk-K6MQJ5IV.js} +2 -2
- package/dist/{chunk-MOMPLSQI.js → chunk-KJWIU5AM.js} +2 -2
- package/dist/{chunk-QILJY2UY.js → chunk-KOVRFBGR.js} +25 -4
- package/dist/{chunk-SHS3O7ZZ.js → chunk-LJS4Z326.js} +3 -3
- package/dist/{chunk-TXPB6TBM.js → chunk-LSHROB27.js} +3 -3
- package/dist/{chunk-Q7UM3R3Y.js → chunk-LTGOPJUV.js} +2 -2
- package/dist/{chunk-BQH75ZPE.js → chunk-LUI425JB.js} +3 -3
- package/dist/{chunk-N6P3F3FB.js → chunk-LXGUK56B.js} +5 -5
- package/dist/{chunk-KZZYRA5T.js → chunk-MC2H32SM.js} +3 -3
- package/dist/{chunk-GB5RPD4S.js → chunk-MFSTE3YG.js} +18 -4
- package/dist/{chunk-SICO5DVQ.js → chunk-MKNWMFZU.js} +15 -5
- package/dist/{chunk-6NWCQCJV.js → chunk-MWWRIOEN.js} +2 -2
- package/dist/{chunk-HK3JTWG3.js → chunk-MX3BYU7V.js} +2 -2
- package/dist/{chunk-76XAJN7L.js → chunk-NEC7R2CB.js} +2 -2
- package/dist/{chunk-DBWTM5IJ.js → chunk-NJKUTY4M.js} +3 -3
- package/dist/{chunk-D62K46CW.js → chunk-NNMNHE3J.js} +2 -2
- package/dist/{chunk-DTC6RVQX.js → chunk-NTBHGUXY.js} +13 -3
- package/dist/{chunk-YYFIZ3AO.js → chunk-NUF7YTHA.js} +2 -2
- package/dist/{chunk-ODSGYHFP.js → chunk-PBV2C3BW.js} +27 -6
- package/dist/{chunk-RXYYJRM5.js → chunk-PLSTP7P4.js} +40 -40
- package/dist/{chunk-CJGSCQNP.js → chunk-QAJFIXJE.js} +19 -5
- package/dist/{chunk-L44SMVRY.js → chunk-QPG55HGH.js} +3 -3
- package/dist/{chunk-VOYADVBN.js → chunk-REBTZP3W.js} +2 -2
- package/dist/{chunk-H7LQGRM3.js → chunk-RJI6MHHK.js} +3 -3
- package/dist/{chunk-CU56CB3V.js → chunk-RNSGPTOZ.js} +3 -3
- package/dist/{chunk-YN4VMZCL.js → chunk-T3LNWU7B.js} +6 -6
- package/dist/{chunk-G5UTJZFR.js → chunk-T7W5LM4N.js} +11 -3
- package/dist/{chunk-2VMPJRPH.js → chunk-TF7CFAZ5.js} +3 -3
- package/dist/{chunk-GJ42T24G.js → chunk-TGGKBY22.js} +58 -15
- package/dist/{chunk-F7SKUWWS.js → chunk-UIBPFSIT.js} +6 -6
- package/dist/{chunk-5J42K7HM.js → chunk-UNM2PX5D.js} +3 -3
- package/dist/{chunk-JR6H5MEF.js → chunk-UNTFANSM.js} +3 -3
- package/dist/{chunk-IPMHIKVA.js → chunk-UTVKOGFF.js} +2 -2
- package/dist/{chunk-XRDRIUUB.js → chunk-UVAOL2EO.js} +5 -5
- package/dist/{chunk-MGAWLZQE.js → chunk-UY77QQWU.js} +2 -2
- package/dist/{chunk-DR43UCVQ.js → chunk-VE7PPEU3.js} +105 -18
- package/dist/{chunk-MZBEPHFY.js → chunk-VGLSKDDI.js} +2 -2
- package/dist/{chunk-LPMYDZSO.js → chunk-VMXV2CL5.js} +21 -5
- package/dist/{chunk-5ZADM7W2.js → chunk-W27BULCB.js} +4 -4
- package/dist/{chunk-U4UKJPTE.js → chunk-W7SZKJR6.js} +3 -3
- package/dist/{chunk-XCWYBBKH.js → chunk-WEC3JPTN.js} +4 -4
- package/dist/{chunk-YUTT3PV7.js → chunk-WPXHTYET.js} +16 -11
- package/dist/{chunk-HQBY3N3S.js → chunk-X2NX2SK6.js} +2 -2
- package/dist/{chunk-ZEHF5OVE.js → chunk-XIZCHGP7.js} +3 -3
- package/dist/{chunk-VCNJRCG2.js → chunk-XJZSN42P.js} +188 -120
- package/dist/{chunk-GK2ZDR6X.js → chunk-XQW4KFJ4.js} +8 -8
- package/dist/{chunk-Z44WBXIC.js → chunk-YCOGUPHL.js} +4 -4
- package/dist/{chunk-RP53JR6M.js → chunk-YG35ZCNW.js} +20 -5
- package/dist/{chunk-Y65TFTLX.js → chunk-YH5KJIO5.js} +4 -4
- package/dist/{chunk-N5XT3OWL.js → chunk-YTFA4VTW.js} +2 -2
- package/dist/{chunk-F5DNAUXY.js → chunk-YYBQ55V2.js} +35 -74
- package/dist/{chunk-M2QQQWM3.js → chunk-ZJJWON5O.js} +15 -5
- package/dist/{chunk-MJDV4DKP.js → chunk-ZNHPCITV.js} +4 -4
- package/dist/collapse-JRGPUE67.js +13 -0
- package/dist/completion-registry.js +15 -10
- package/dist/dgmo-router-J6OWNMEJ.js +89 -0
- package/dist/{dgmo-router-EAW7XiBE.d.ts → dgmo-router-Lya7cs3R.d.ts} +28 -0
- package/dist/{dimensions-NB72XI2A.js → dimensions-EFEBIRS6.js} +5 -5
- package/dist/editor.js +6 -3
- package/dist/{flowchart-parser-A64T3OEL.js → flowchart-parser-LZF2GW2P.js} +4 -4
- package/dist/{flowchart-renderer-F6PDPKK7.js → flowchart-renderer-HB277GNE.js} +5 -5
- package/dist/highlight.d.ts +45 -1
- package/dist/highlight.js +30 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +55 -46
- package/dist/{layout-2D6VKW6G.js → layout-2DVT24YY.js} +3 -3
- package/dist/{layout-FFCYSTW7.js → layout-AWPST2S3.js} +3 -3
- package/dist/{layout-RNPKIRS6.js → layout-BGXLVSXL.js} +4 -4
- package/dist/{layout-4ICO4K3X.js → layout-BNR6ZDB6.js} +4 -4
- package/dist/{layout-A5AYRVOR.js → layout-N6ZOOAYT.js} +4 -4
- package/dist/{layout-OQUUQ7YW.js → layout-PBB2RQJ4.js} +4 -4
- package/dist/{parser-NIDJMNWX.js → parser-2CXA7K5C.js} +4 -4
- package/dist/{parser-43YM7XW3.js → parser-4E2TVMOK.js} +4 -4
- package/dist/{parser-V7HFGTVF.js → parser-52AZJ3BA.js} +4 -4
- package/dist/{parser-LYCYRROE.js → parser-52BOCAVQ.js} +4 -4
- package/dist/{parser-BL3KLB75.js → parser-5IPCYVXY.js} +4 -4
- package/dist/{parser-S7IV6DOA.js → parser-6BF5TJQH.js} +4 -4
- package/dist/{parser-SEFSLUXW.js → parser-6VZISXFY.js} +3 -3
- package/dist/{parser-H2CUQVPH.js → parser-6Y5BMNNJ.js} +5 -5
- package/dist/{parser-LJZIQJRA.js → parser-7HUZBXKW.js} +3 -3
- package/dist/{parser-PXI5UCVR.js → parser-AEJ73QJS.js} +3 -3
- package/dist/{parser-RTT3NOQC.js → parser-AWNEAGMJ.js} +4 -4
- package/dist/{parser-WGCE3G7P.js → parser-C2QRTZPJ.js} +4 -4
- package/dist/{parser-DLIBNGNQ.js → parser-CBSYFN6U.js} +3 -3
- package/dist/{parser-FYBJYHSN.js → parser-CDMP3UVH.js} +4 -4
- package/dist/{parser-XMWFEFEH.js → parser-CNKHKQKZ.js} +4 -4
- package/dist/{parser-ZNGAQ6NR.js → parser-EX3AGFT5.js} +4 -4
- package/dist/{parser-QZJIGMZR.js → parser-GK3JWVHY.js} +5 -5
- package/dist/{parser-H2P45TGS.js → parser-GZKR6BFA.js} +4 -4
- package/dist/{parser-YCRATNR6.js → parser-K26KDCZN.js} +3 -3
- package/dist/{parser-GLFHIKQC.js → parser-LTJ5AKY4.js} +4 -4
- package/dist/{parser-Q2K7TDEA.js → parser-NIGB4EYX.js} +3 -3
- package/dist/{parser-DAMYSBVY.js → parser-O7GTECFP.js} +3 -3
- package/dist/{parser-3QXKYLDG.js → parser-OHWDJGCP.js} +3 -3
- package/dist/{parser-RZIIZ3EW.js → parser-QCVEWLCO.js} +3 -3
- package/dist/{parser-DRZMT3IZ.js → parser-SUAOF72Y.js} +4 -4
- package/dist/{parser-TPQUTZPP.js → parser-TJ3SP2MJ.js} +4 -4
- package/dist/{parser-GEELVJ4X.js → parser-W2HXBHNC.js} +3 -3
- package/dist/{parser-HIHYCA3P.js → parser-WF4R7225.js} +4 -4
- package/dist/{parser-XLPLW3PI.js → parser-XM6JC3UK.js} +4 -4
- package/dist/{parser-FUBDH74F.js → parser-XRZQ7SC7.js} +4 -4
- package/dist/{parser-ZXI4IQ5Y.js → parser-YRJAGBV7.js} +4 -4
- package/dist/{parser-VBYTR624.js → parser-Z3LN7P6G.js} +5 -5
- package/dist/{parser-GGZTPX6F.js → parser-ZIEEBJMU.js} +4 -4
- package/dist/{renderer-JP6BTAST.js → renderer-2MEPYGAP.js} +7 -7
- package/dist/{renderer-UNHVCJ5Z.js → renderer-35HBBPIQ.js} +5 -5
- package/dist/{renderer-FTGHCZOE.js → renderer-3DSU72CP.js} +7 -7
- package/dist/{renderer-CH5U3R2K.js → renderer-4CUV63GT.js} +7 -7
- package/dist/{renderer-GN3HCUY6.js → renderer-4ORE7HJ3.js} +5 -5
- package/dist/{renderer-TQCVWCW4.js → renderer-5FQFMCBZ.js} +7 -7
- package/dist/{renderer-CP56XH3X.js → renderer-5YV6KP4U.js} +7 -7
- package/dist/{renderer-CEFMVEWU.js → renderer-7BGC4KPZ.js} +5 -5
- package/dist/{renderer-72UWS5MQ.js → renderer-7VPABTMS.js} +7 -7
- package/dist/{renderer-SZTUE5TE.js → renderer-ANWAX5QO.js} +6 -6
- package/dist/{renderer-U7INHN4J.js → renderer-BQWAUDEF.js} +4 -4
- package/dist/renderer-DGZDRRJW.js +76 -0
- package/dist/{renderer-7AG5MS32.js → renderer-E3UQ24DE.js} +5 -5
- package/dist/{renderer-HVEITTJC.js → renderer-FCIOD2QK.js} +5 -5
- package/dist/{renderer-MFZE5HBB.js → renderer-H5QR3LC3.js} +4 -4
- package/dist/{renderer-KVRTLE2D.js → renderer-JFZVWH2G.js} +3 -3
- package/dist/{renderer-2F3JUDTX.js → renderer-JHWGW4Q7.js} +5 -5
- package/dist/{renderer-RY7RQQ37.js → renderer-JWSO5O2L.js} +3 -3
- package/dist/{renderer-NRHU4AZ6.js → renderer-KFWZPVYT.js} +7 -7
- package/dist/{renderer-KBZ223H6.js → renderer-KQIJV5WD.js} +5 -5
- package/dist/{renderer-TQJWTC62.js → renderer-LVAUI6T6.js} +6 -6
- package/dist/{renderer-PD3Q7VKJ.js → renderer-MZ4N2SVV.js} +5 -5
- package/dist/{renderer-4LUPOZH2.js → renderer-QMSFXMAL.js} +5 -5
- package/dist/{renderer-OXOAUAVI.js → renderer-QOWN3XDI.js} +8 -6
- package/dist/{renderer-5L6INN2B.js → renderer-S5MGQHRQ.js} +6 -6
- package/dist/{renderer-FJ6VAUNW.js → renderer-V3PN5ZQS.js} +5 -5
- package/dist/{renderer-33U3KRCL.js → renderer-VOXE7V6L.js} +7 -7
- package/dist/{renderer-LPA6UC62.js → renderer-WBG576LB.js} +5 -5
- package/dist/{renderer-ZOP3SXFR.js → renderer-YXYEP46H.js} +6 -6
- package/dist/{renderer-BT6TOWBE.js → renderer-ZEPPPA3W.js} +3 -3
- package/dist/{renderer-radial-AZLCCE4C.js → renderer-radial-KZ3W4WXI.js} +6 -6
- package/dist/{state-parser-W6OCOJ2S.js → state-parser-HJNCGIFT.js} +5 -5
- package/dist/{state-renderer-26JXGKT6.js → state-renderer-776LP3NE.js} +7 -7
- package/docs/ai-integration.md +1 -1
- package/docs/language-reference.md +49 -31
- package/gallery/fixtures/event-line-now-color.dgmo +23 -0
- package/package.json +2 -1
- package/dist/collapse-CLPJD2RL.js +0 -11
- package/dist/dgmo-router-ND3PUDVF.js +0 -89
- package/dist/renderer-6YEVDIZJ.js +0 -76
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
layoutC4Containers,
|
|
5
5
|
layoutC4Context,
|
|
6
6
|
layoutC4Deployment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W7SZKJR6.js";
|
|
8
8
|
import {
|
|
9
9
|
renderInlineText
|
|
10
10
|
} from "./chunk-WGC42WJU.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-A4GOY3PE.js";
|
|
25
25
|
import {
|
|
26
26
|
renderIntegratedLegend
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6S53NO3M.js";
|
|
28
28
|
import {
|
|
29
29
|
FONT_FAMILY
|
|
30
30
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -37,16 +37,16 @@ import {
|
|
|
37
37
|
} from "./chunk-MTGGOCND.js";
|
|
38
38
|
import {
|
|
39
39
|
parseC4
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YG35ZCNW.js";
|
|
41
41
|
import {
|
|
42
42
|
preprocessDescriptionLine
|
|
43
43
|
} from "./chunk-IYULMRBE.js";
|
|
44
44
|
import {
|
|
45
45
|
tagAttrKey
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DPGI742S.js";
|
|
47
47
|
import {
|
|
48
48
|
fillModeFromOptions
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZJJWON5O.js";
|
|
50
50
|
import {
|
|
51
51
|
contrastText,
|
|
52
52
|
mix,
|
|
@@ -1039,4 +1039,4 @@ export {
|
|
|
1039
1039
|
renderC4Deployment,
|
|
1040
1040
|
renderC4DeploymentForExport
|
|
1041
1041
|
};
|
|
1042
|
-
//# sourceMappingURL=chunk-
|
|
1042
|
+
//# sourceMappingURL=chunk-7BHM774H.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MONO_FAMILY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HTGYAMOK.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
6
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -62,4 +62,4 @@ function escapeXml(s) {
|
|
|
62
62
|
export {
|
|
63
63
|
renderLiveLinkCard
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-7REARI5N.js.map
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-NOTA6TEI.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTO_TAG_COLOR_SENTINEL,
|
|
6
|
+
activeTagNoMatchMessage,
|
|
6
7
|
finalizeAutoTagColors,
|
|
7
8
|
isTagBlockHeading,
|
|
8
9
|
matchTagBlockHeading,
|
|
@@ -10,7 +11,7 @@ import {
|
|
|
10
11
|
tagAttrKey,
|
|
11
12
|
validateTagGroupNames,
|
|
12
13
|
validateTagValues
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DPGI742S.js";
|
|
14
15
|
import {
|
|
15
16
|
OPTION_NOCOLON_RE,
|
|
16
17
|
ORG_REGISTRY,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
splitNameAndMeta,
|
|
22
23
|
warnUnknownMetaKeys,
|
|
23
24
|
withTagAliases
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZJJWON5O.js";
|
|
25
26
|
import {
|
|
26
27
|
formatDgmoError,
|
|
27
28
|
makeDgmoError,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
} from "./chunk-OLMWTJVU.js";
|
|
31
32
|
|
|
32
33
|
// src/org/parser.ts
|
|
33
|
-
var CONTAINER_RE = /^\[([^\]]+)\]
|
|
34
|
+
var CONTAINER_RE = /^\[([^\]]+)\](?:\s+collapsed:\s*(\S+))?$/;
|
|
34
35
|
var METADATA_RE = /^([^:]+):\s*(.+)$/;
|
|
35
36
|
var KNOWN_OPTIONS = /* @__PURE__ */ new Set([
|
|
36
37
|
"sub-node-label",
|
|
@@ -75,8 +76,8 @@ function parseOrg(content, palette) {
|
|
|
75
76
|
result.diagnostics.push(diag);
|
|
76
77
|
if (!result.error) result.error = formatDgmoError(diag);
|
|
77
78
|
};
|
|
78
|
-
const pushWarning = (line, message) => {
|
|
79
|
-
result.diagnostics.push(makeDgmoError(line, message, "warning"));
|
|
79
|
+
const pushWarning = (line, message, code) => {
|
|
80
|
+
result.diagnostics.push(makeDgmoError(line, message, "warning", code));
|
|
80
81
|
};
|
|
81
82
|
if (!content?.trim()) {
|
|
82
83
|
return fail(0, "No content provided");
|
|
@@ -86,6 +87,7 @@ function parseOrg(content, palette) {
|
|
|
86
87
|
let nodeCounter = 0;
|
|
87
88
|
let containerCounter = 0;
|
|
88
89
|
let focusOptionLine = 0;
|
|
90
|
+
let activeTagOptionLine = 0;
|
|
89
91
|
let currentTagGroup = null;
|
|
90
92
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
91
93
|
const nameAliasMap = /* @__PURE__ */ new Map();
|
|
@@ -167,6 +169,7 @@ function parseOrg(content, palette) {
|
|
|
167
169
|
if (KNOWN_OPTIONS.has(key)) {
|
|
168
170
|
options[key] = optMatch[2].trim();
|
|
169
171
|
if (key === "focus") focusOptionLine = lineNumber;
|
|
172
|
+
if (key === "active-tag") activeTagOptionLine = lineNumber;
|
|
170
173
|
continue;
|
|
171
174
|
}
|
|
172
175
|
}
|
|
@@ -229,7 +232,10 @@ function parseOrg(content, palette) {
|
|
|
229
232
|
const node = {
|
|
230
233
|
id: containerId,
|
|
231
234
|
label,
|
|
232
|
-
|
|
235
|
+
// The same-line collapse marker (capture 2, §6.4.1). Goes into metadata
|
|
236
|
+
// rather than the typed field so the one post-parse lift handles every
|
|
237
|
+
// route — same-line here, indented under the header, or under a person.
|
|
238
|
+
metadata: containerMatch[2] !== void 0 ? { collapsed: containerMatch[2] } : {},
|
|
233
239
|
children: [],
|
|
234
240
|
parentId: null,
|
|
235
241
|
isContainer: true,
|
|
@@ -300,6 +306,7 @@ function parseOrg(content, palette) {
|
|
|
300
306
|
result.diagnostics.push(diag);
|
|
301
307
|
result.error = formatDgmoError(diag);
|
|
302
308
|
}
|
|
309
|
+
liftCollapsedMarkers(result.roots);
|
|
303
310
|
const focusName = options["focus"];
|
|
304
311
|
if (focusName && result.roots.length > 0) {
|
|
305
312
|
if (!findOrgNodeIdByName(result.roots, focusName)) {
|
|
@@ -309,6 +316,17 @@ function parseOrg(content, palette) {
|
|
|
309
316
|
);
|
|
310
317
|
}
|
|
311
318
|
}
|
|
319
|
+
const activeTagWarning = activeTagNoMatchMessage(
|
|
320
|
+
options["active-tag"],
|
|
321
|
+
result.tagGroups
|
|
322
|
+
);
|
|
323
|
+
if (activeTagWarning) {
|
|
324
|
+
pushWarning(
|
|
325
|
+
activeTagOptionLine || 1,
|
|
326
|
+
activeTagWarning,
|
|
327
|
+
"W_ACTIVE_TAG_NO_MATCH"
|
|
328
|
+
);
|
|
329
|
+
}
|
|
312
330
|
result.direction = options["direction-lr"] ? "LR" : "TB";
|
|
313
331
|
return result;
|
|
314
332
|
}
|
|
@@ -354,6 +372,19 @@ function parseNodeLabel(trimmed, _indent, lineNumber, _palette, counter, metaAli
|
|
|
354
372
|
lineNumber
|
|
355
373
|
};
|
|
356
374
|
}
|
|
375
|
+
function liftCollapsedMarkers(nodes) {
|
|
376
|
+
for (const node of nodes) {
|
|
377
|
+
const n = node;
|
|
378
|
+
const raw = n.metadata["collapsed"];
|
|
379
|
+
if (raw !== void 0) {
|
|
380
|
+
const meta = { ...n.metadata };
|
|
381
|
+
delete meta["collapsed"];
|
|
382
|
+
n.metadata = meta;
|
|
383
|
+
if (raw.toLowerCase() === "true") n.collapsed = true;
|
|
384
|
+
}
|
|
385
|
+
liftCollapsedMarkers(n.children);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
357
388
|
function attachNode(node, indent, indentStack, result) {
|
|
358
389
|
while (indentStack.length > 0) {
|
|
359
390
|
const top = indentStack[indentStack.length - 1];
|
|
@@ -387,4 +418,4 @@ export {
|
|
|
387
418
|
parseOrg,
|
|
388
419
|
findOrgNodeIdByName
|
|
389
420
|
};
|
|
390
|
-
//# sourceMappingURL=chunk-
|
|
421
|
+
//# sourceMappingURL=chunk-7SEQPFBX.js.map
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
resolveTagColor,
|
|
14
14
|
tagAttrKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DPGI742S.js";
|
|
16
16
|
import {
|
|
17
17
|
fillModeFromOptions
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZJJWON5O.js";
|
|
19
19
|
import {
|
|
20
20
|
contrastText,
|
|
21
21
|
mix,
|
|
@@ -401,4 +401,4 @@ function drawCenteredLabel(g, label, cx, cy, fill, fontSize, tight = false, halo
|
|
|
401
401
|
export {
|
|
402
402
|
renderSwimlaneForExport
|
|
403
403
|
};
|
|
404
|
-
//# sourceMappingURL=chunk-
|
|
404
|
+
//# sourceMappingURL=chunk-7TSBM4BV.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
extractColor,
|
|
3
3
|
measureIndent,
|
|
4
4
|
parseFirstLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZJJWON5O.js";
|
|
6
6
|
import {
|
|
7
7
|
emit,
|
|
8
8
|
formatDgmoError,
|
|
@@ -507,4 +507,4 @@ export {
|
|
|
507
507
|
VERSION_CONTROL_DIAGNOSTICS,
|
|
508
508
|
parseVersionControl
|
|
509
509
|
};
|
|
510
|
-
//# sourceMappingURL=chunk-
|
|
510
|
+
//# sourceMappingURL=chunk-AEYRSPVV.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
mapLegendConfig,
|
|
7
7
|
mapLegendGroups,
|
|
8
8
|
parsePathRings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-REBTZP3W.js";
|
|
10
10
|
import {
|
|
11
11
|
TITLE_FONT_SIZE,
|
|
12
12
|
TITLE_FONT_WEIGHT,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-A4GOY3PE.js";
|
|
15
15
|
import {
|
|
16
16
|
renderIntegratedLegend
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6S53NO3M.js";
|
|
18
18
|
import {
|
|
19
19
|
FONT_FAMILY
|
|
20
20
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-MTGGOCND.js";
|
|
24
24
|
import {
|
|
25
25
|
parseClock
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NEC7R2CB.js";
|
|
27
27
|
import {
|
|
28
28
|
fixedParts,
|
|
29
29
|
formatTime,
|
|
@@ -781,4 +781,4 @@ export {
|
|
|
781
781
|
renderMap,
|
|
782
782
|
renderMapForExport
|
|
783
783
|
};
|
|
784
|
-
//# sourceMappingURL=chunk-
|
|
784
|
+
//# sourceMappingURL=chunk-BYSRXYRW.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-A4GOY3PE.js";
|
|
15
15
|
import {
|
|
16
16
|
renderIntegratedLegend
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6S53NO3M.js";
|
|
18
18
|
import {
|
|
19
19
|
FONT_FAMILY
|
|
20
20
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-MTGGOCND.js";
|
|
28
28
|
import {
|
|
29
29
|
fillModeFromOptions
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZJJWON5O.js";
|
|
31
31
|
import {
|
|
32
32
|
contrastText,
|
|
33
33
|
shapeFill
|
|
@@ -985,4 +985,4 @@ export {
|
|
|
985
985
|
renderCycle,
|
|
986
986
|
renderCycleForExport
|
|
987
987
|
};
|
|
988
|
-
//# sourceMappingURL=chunk-
|
|
988
|
+
//# sourceMappingURL=chunk-C3MVZ7EW.js.map
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
injectDefaultTagMetadata,
|
|
20
20
|
resolveTagColor,
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DPGI742S.js";
|
|
23
23
|
import {
|
|
24
24
|
legendSuppressed
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZJJWON5O.js";
|
|
26
26
|
|
|
27
27
|
// src/org/layout.ts
|
|
28
28
|
import { hierarchy, tree } from "d3-hierarchy";
|
|
@@ -870,4 +870,4 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
870
870
|
export {
|
|
871
871
|
layoutOrg
|
|
872
872
|
};
|
|
873
|
-
//# sourceMappingURL=chunk-
|
|
873
|
+
//# sourceMappingURL=chunk-CH4WODSG.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
injectDefaultTagMetadata,
|
|
20
20
|
resolveTagColor,
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DPGI742S.js";
|
|
23
23
|
|
|
24
24
|
// src/sitemap/layout.ts
|
|
25
25
|
import dagre from "@dagrejs/dagre";
|
|
@@ -618,4 +618,4 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
618
618
|
export {
|
|
619
619
|
layoutSitemap
|
|
620
620
|
};
|
|
621
|
-
//# sourceMappingURL=chunk-
|
|
621
|
+
//# sourceMappingURL=chunk-CR5WIA6I.js.map
|
|
@@ -11,12 +11,13 @@ import {
|
|
|
11
11
|
normalizeName
|
|
12
12
|
} from "./chunk-NOTA6TEI.js";
|
|
13
13
|
import {
|
|
14
|
+
activeTagNoMatchMessage,
|
|
14
15
|
finalizeAutoTagColors,
|
|
15
16
|
matchTagBlockHeading,
|
|
16
17
|
stripDefaultModifier,
|
|
17
18
|
tagAttrKey,
|
|
18
19
|
validateTagGroupNames
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DPGI742S.js";
|
|
20
21
|
import {
|
|
21
22
|
GANTT_BOOLEAN_SET,
|
|
22
23
|
GANTT_OPTION_SET,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
splitNameAndMeta,
|
|
31
32
|
warnUnknownMetaKeys,
|
|
32
33
|
withTagAliases
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZJJWON5O.js";
|
|
34
35
|
import {
|
|
35
36
|
getSeriesColors
|
|
36
37
|
} from "./chunk-KWRW6BLG.js";
|
|
@@ -168,8 +169,8 @@ function parseGantt(content, palette) {
|
|
|
168
169
|
result.error = formatDgmoError(diag);
|
|
169
170
|
return result;
|
|
170
171
|
};
|
|
171
|
-
const warn = (line, message) => {
|
|
172
|
-
diagnostics.push(makeDgmoError(line, message, "warning"));
|
|
172
|
+
const warn = (line, message, code) => {
|
|
173
|
+
diagnostics.push(makeDgmoError(line, message, "warning", code));
|
|
173
174
|
};
|
|
174
175
|
const softError = (line, message) => {
|
|
175
176
|
diagnostics.push(makeDgmoError(line, message, "error"));
|
|
@@ -1080,6 +1081,17 @@ function parseGantt(content, palette) {
|
|
|
1080
1081
|
diagnostics.push(diag);
|
|
1081
1082
|
if (!result.error) result.error = formatDgmoError(diag);
|
|
1082
1083
|
});
|
|
1084
|
+
const activeTagWarning = activeTagNoMatchMessage(
|
|
1085
|
+
result.options.activeTag,
|
|
1086
|
+
result.tagGroups
|
|
1087
|
+
);
|
|
1088
|
+
if (activeTagWarning) {
|
|
1089
|
+
warn(
|
|
1090
|
+
result.options.optionLineNumbers["active-tag"] || 1,
|
|
1091
|
+
activeTagWarning,
|
|
1092
|
+
"W_ACTIVE_TAG_NO_MATCH"
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1083
1095
|
const hasSprintOption = result.options.sprintLength !== null || result.options.sprintNumber !== null || result.options.sprintStart !== null;
|
|
1084
1096
|
const hasSprintUnit = hasSprintDurationUnit(result.nodes);
|
|
1085
1097
|
if (hasSprintOption) {
|
|
@@ -1360,4 +1372,4 @@ export {
|
|
|
1360
1372
|
GANTT_KNOWN_OPTIONS,
|
|
1361
1373
|
GANTT_KNOWN_BOOLEANS
|
|
1362
1374
|
};
|
|
1363
|
-
//# sourceMappingURL=chunk-
|
|
1375
|
+
//# sourceMappingURL=chunk-DEVZWCD5.js.map
|
|
@@ -2,12 +2,15 @@ import {
|
|
|
2
2
|
peelQuotedName,
|
|
3
3
|
stripQuotes,
|
|
4
4
|
tokenizeQuoteAware
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZJJWON5O.js";
|
|
6
6
|
import {
|
|
7
7
|
CATEGORICAL_COLOR_ORDER,
|
|
8
8
|
RECOGNIZED_COLOR_NAMES,
|
|
9
9
|
resolveColor
|
|
10
10
|
} from "./chunk-EXNKNJ65.js";
|
|
11
|
+
import {
|
|
12
|
+
suggest
|
|
13
|
+
} from "./chunk-OLMWTJVU.js";
|
|
11
14
|
|
|
12
15
|
// src/utils/tag-groups.ts
|
|
13
16
|
function tagAttrKey(name) {
|
|
@@ -190,6 +193,17 @@ function validateTagGroupNames(tagGroups, pushWarning, pushError) {
|
|
|
190
193
|
`Tag group alias "${group.alias}" contains invalid characters \u2014 use a single identifier (letters, digits, underscore, hyphen)`
|
|
191
194
|
);
|
|
192
195
|
}
|
|
196
|
+
if (group.alias == null) {
|
|
197
|
+
const words = group.name.trim().split(/\s+/);
|
|
198
|
+
const last = words[words.length - 1];
|
|
199
|
+
if (words.length > 1 && /^[a-z][a-z0-9_]{0,11}$/.test(last)) {
|
|
200
|
+
const head = words.slice(0, -1).join(" ");
|
|
201
|
+
pushWarning(
|
|
202
|
+
group.lineNumber,
|
|
203
|
+
`Tag group "${group.name}" has a space and no alias \u2014 if '${last}' is meant as an alias, write 'tag ${head} as ${last}'; if the space is intentional, quote the name: tag "${group.name}"`
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
193
207
|
}
|
|
194
208
|
}
|
|
195
209
|
function cascadeTagMetadata(roots, tagGroups) {
|
|
@@ -242,6 +256,20 @@ function resolveActiveTagGroup(tagGroups, explicitActiveTag, programmaticOverrid
|
|
|
242
256
|
if (tagGroups.length > 0) return tagGroups[0].name;
|
|
243
257
|
return null;
|
|
244
258
|
}
|
|
259
|
+
function activeTagNoMatchMessage(activeTag, tagGroups, extraNames = [], extraLabel) {
|
|
260
|
+
const at = activeTag?.trim();
|
|
261
|
+
if (!at) return null;
|
|
262
|
+
const lower = at.toLowerCase();
|
|
263
|
+
if (lower === "none") return null;
|
|
264
|
+
const valid = [...tagGroups.map((g) => g.name), ...extraNames];
|
|
265
|
+
if (valid.some((n) => n.toLowerCase() === lower || tagAttrKey(n) === lower)) {
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
const subject = extraLabel ? `a declared tag group or ${extraLabel}` : "a declared tag group";
|
|
269
|
+
const available = valid.length ? ` Available: ${valid.join(", ")}, none.` : " No tag groups are declared.";
|
|
270
|
+
const didYouMean = suggest(at, valid);
|
|
271
|
+
return `active-tag "${at}" does not match ${subject}.` + available + (didYouMean ? ` ${didYouMean}` : "");
|
|
272
|
+
}
|
|
245
273
|
function matchTagBlockHeading(trimmed) {
|
|
246
274
|
return parseTagDeclaration(trimmed);
|
|
247
275
|
}
|
|
@@ -259,6 +287,7 @@ export {
|
|
|
259
287
|
cascadeTagMetadata,
|
|
260
288
|
injectDefaultTagMetadata,
|
|
261
289
|
resolveActiveTagGroup,
|
|
290
|
+
activeTagNoMatchMessage,
|
|
262
291
|
matchTagBlockHeading
|
|
263
292
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
293
|
+
//# sourceMappingURL=chunk-DPGI742S.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
formatPct,
|
|
7
7
|
resolveCellColor,
|
|
8
8
|
resolveColorMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3HN32MEK.js";
|
|
10
10
|
import {
|
|
11
11
|
renderIntegratedLegend
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6S53NO3M.js";
|
|
13
13
|
import {
|
|
14
14
|
getMaxLegendReservedHeight
|
|
15
15
|
} from "./chunk-MTPKBSTR.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-MTGGOCND.js";
|
|
25
25
|
import {
|
|
26
26
|
tagAttrKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DPGI742S.js";
|
|
28
28
|
import {
|
|
29
29
|
contrastRatio,
|
|
30
30
|
contrastText,
|
|
@@ -423,4 +423,4 @@ export {
|
|
|
423
423
|
renderTreemapRadialForExport,
|
|
424
424
|
renderTreemapRadial
|
|
425
425
|
};
|
|
426
|
-
//# sourceMappingURL=chunk-
|
|
426
|
+
//# sourceMappingURL=chunk-E36Q5ABQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildMapProjection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-REBTZP3W.js";
|
|
4
4
|
import {
|
|
5
5
|
TITLE_FONT_SIZE,
|
|
6
6
|
TITLE_Y
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
mapContentAspect,
|
|
52
52
|
mapExportDimensions
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-EETUTZ5C.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compactNumber
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3HN32MEK.js";
|
|
4
4
|
import {
|
|
5
5
|
parseInlineMarkdown
|
|
6
6
|
} from "./chunk-WGC42WJU.js";
|
|
@@ -179,9 +179,16 @@ function renderBar(svg, parsed, metrics, paint) {
|
|
|
179
179
|
const barCy = y + trackH / 2;
|
|
180
180
|
const g = svg.append("g").attr("class", "goal-bar");
|
|
181
181
|
g.append("rect").attr("x", x).attr("y", y).attr("width", trackW).attr("height", trackH).attr("rx", r).attr("fill", paint.track);
|
|
182
|
+
const clipId = "dgmo-goal-track-clip";
|
|
183
|
+
g.append("clipPath").attr("id", clipId).append("rect").attr("x", x).attr("y", y).attr("width", trackW).attr("height", trackH).attr("rx", r);
|
|
182
184
|
const fillW = trackW * metrics.fillFrac;
|
|
183
185
|
if (fillW > 0.5) {
|
|
184
|
-
|
|
186
|
+
const clipped = g.append("g").attr("clip-path", `url(#${clipId})`);
|
|
187
|
+
clipped.append("rect").attr("x", x).attr("y", y).attr("width", fillW).attr("height", trackH).attr("fill", paint.fill);
|
|
188
|
+
const levelW = parsed.options.fillMode === "outline" ? 1.5 : 2;
|
|
189
|
+
if (fillW < trackW - 0.5) {
|
|
190
|
+
clipped.append("rect").attr("x", x + fillW - levelW).attr("y", y).attr("width", levelW).attr("height", trackH).attr("fill", paint.base);
|
|
191
|
+
}
|
|
185
192
|
}
|
|
186
193
|
if (!parsed.options.noValue) {
|
|
187
194
|
const valX = Math.max(x + fillW - 16, x + 52);
|
|
@@ -361,4 +368,4 @@ export {
|
|
|
361
368
|
renderGoal,
|
|
362
369
|
renderGoalForExport
|
|
363
370
|
};
|
|
364
|
-
//# sourceMappingURL=chunk-
|
|
371
|
+
//# sourceMappingURL=chunk-ELIGVSLE.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-VV6HZQ5K.js";
|
|
5
5
|
import {
|
|
6
6
|
layoutOrg
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CH4WODSG.js";
|
|
8
8
|
import {
|
|
9
9
|
renderCollapseBar,
|
|
10
10
|
renderNodeCard
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-A4GOY3PE.js";
|
|
36
36
|
import {
|
|
37
37
|
renderIntegratedLegend
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6S53NO3M.js";
|
|
39
39
|
import {
|
|
40
40
|
getMaxLegendReservedHeight
|
|
41
41
|
} from "./chunk-MTPKBSTR.js";
|
|
@@ -55,14 +55,14 @@ import {
|
|
|
55
55
|
} from "./chunk-MTGGOCND.js";
|
|
56
56
|
import {
|
|
57
57
|
parseOrg
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-7SEQPFBX.js";
|
|
59
59
|
import {
|
|
60
60
|
resolveTagColor,
|
|
61
61
|
tagAttrKey
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-DPGI742S.js";
|
|
63
63
|
import {
|
|
64
64
|
fillModeFromOptions
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-ZJJWON5O.js";
|
|
66
66
|
import {
|
|
67
67
|
contrastText,
|
|
68
68
|
mix,
|
|
@@ -489,4 +489,4 @@ export {
|
|
|
489
489
|
renderOrg,
|
|
490
490
|
renderOrgForExport
|
|
491
491
|
};
|
|
492
|
-
//# sourceMappingURL=chunk-
|
|
492
|
+
//# sourceMappingURL=chunk-ENJWB5LU.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-A4GOY3PE.js";
|
|
29
29
|
import {
|
|
30
30
|
renderIntegratedLegend
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6S53NO3M.js";
|
|
32
32
|
import {
|
|
33
33
|
getLegendExtent
|
|
34
34
|
} from "./chunk-MTPKBSTR.js";
|
|
@@ -43,16 +43,16 @@ import {
|
|
|
43
43
|
} from "./chunk-MTGGOCND.js";
|
|
44
44
|
import {
|
|
45
45
|
parseERDiagram
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KOVRFBGR.js";
|
|
47
47
|
import {
|
|
48
48
|
resolveTagColor,
|
|
49
49
|
tagAttrKey
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-DPGI742S.js";
|
|
51
51
|
import {
|
|
52
52
|
fillModeFromOptions,
|
|
53
53
|
legendInlineRequested,
|
|
54
54
|
legendSuppressed
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ZJJWON5O.js";
|
|
56
56
|
import {
|
|
57
57
|
contrastText,
|
|
58
58
|
getSeriesColors,
|
|
@@ -603,4 +603,4 @@ export {
|
|
|
603
603
|
renderERDiagram,
|
|
604
604
|
renderERDiagramForExport
|
|
605
605
|
};
|
|
606
|
-
//# sourceMappingURL=chunk-
|
|
606
|
+
//# sourceMappingURL=chunk-FAJS2N4O.js.map
|
|
@@ -11,12 +11,13 @@ import {
|
|
|
11
11
|
} from "./chunk-NOTA6TEI.js";
|
|
12
12
|
import {
|
|
13
13
|
AUTO_TAG_COLOR_SENTINEL,
|
|
14
|
+
activeTagNoMatchMessage,
|
|
14
15
|
finalizeAutoTagColors,
|
|
15
16
|
matchTagBlockHeading,
|
|
16
17
|
stripDefaultModifier,
|
|
17
18
|
validateTagGroupNames,
|
|
18
19
|
validateTagValues
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DPGI742S.js";
|
|
20
21
|
import {
|
|
21
22
|
FILL_FAMILY_TOKENS,
|
|
22
23
|
OPTION_NOCOLON_RE,
|
|
@@ -29,7 +30,7 @@ import {
|
|
|
29
30
|
splitNameAndMeta,
|
|
30
31
|
warnUnknownMetaKeys,
|
|
31
32
|
withTagAliases
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZJJWON5O.js";
|
|
33
34
|
import {
|
|
34
35
|
NAME_DIAGNOSTIC_CODES,
|
|
35
36
|
formatDgmoError,
|
|
@@ -220,8 +221,8 @@ function parseSequenceDgmo(content, palette) {
|
|
|
220
221
|
result.diagnostics.push(diag);
|
|
221
222
|
if (!result.error) result.error = formatDgmoError(diag);
|
|
222
223
|
};
|
|
223
|
-
const pushWarning = (line, message) => {
|
|
224
|
-
result.diagnostics.push(makeDgmoError(line, message, "warning"));
|
|
224
|
+
const pushWarning = (line, message, code) => {
|
|
225
|
+
result.diagnostics.push(makeDgmoError(line, message, "warning", code));
|
|
225
226
|
};
|
|
226
227
|
if (!content?.trim()) {
|
|
227
228
|
return fail(0, "Empty content");
|
|
@@ -229,6 +230,7 @@ function parseSequenceDgmo(content, palette) {
|
|
|
229
230
|
const lines = content.split("\n");
|
|
230
231
|
let hasExplicitChart = false;
|
|
231
232
|
let contentStarted = false;
|
|
233
|
+
let activeTagOptionLine = 0;
|
|
232
234
|
let bodyStarted = false;
|
|
233
235
|
let firstLineIndex = -1;
|
|
234
236
|
for (let fi = 0; fi < lines.length; fi++) {
|
|
@@ -568,6 +570,7 @@ function parseSequenceDgmo(content, palette) {
|
|
|
568
570
|
continue;
|
|
569
571
|
}
|
|
570
572
|
result.options[optKey] = optVal;
|
|
573
|
+
if (optKey === "active-tag") activeTagOptionLine = lineNumber;
|
|
571
574
|
continue;
|
|
572
575
|
}
|
|
573
576
|
}
|
|
@@ -1029,6 +1032,20 @@ function parseSequenceDgmo(content, palette) {
|
|
|
1029
1032
|
validateTagValues(entities, result.tagGroups, pushWarning, suggest);
|
|
1030
1033
|
validateTagGroupNames(result.tagGroups, pushWarning, pushError);
|
|
1031
1034
|
}
|
|
1035
|
+
const activeTagWarning = activeTagNoMatchMessage(
|
|
1036
|
+
result.options["active-tag"],
|
|
1037
|
+
// What was DECLARED. The renderer narrows this to groups with entries
|
|
1038
|
+
// (`sequence/renderer.ts`), and checking against that filtered list would
|
|
1039
|
+
// report a group the author can plainly see in their source.
|
|
1040
|
+
result.tagGroups
|
|
1041
|
+
);
|
|
1042
|
+
if (activeTagWarning) {
|
|
1043
|
+
pushWarning(
|
|
1044
|
+
activeTagOptionLine || 1,
|
|
1045
|
+
activeTagWarning,
|
|
1046
|
+
"W_ACTIVE_TAG_NO_MATCH"
|
|
1047
|
+
);
|
|
1048
|
+
}
|
|
1032
1049
|
return result;
|
|
1033
1050
|
}
|
|
1034
1051
|
function looksLikeSequence(content) {
|
|
@@ -1048,4 +1065,4 @@ export {
|
|
|
1048
1065
|
parseSequenceDgmo,
|
|
1049
1066
|
looksLikeSequence
|
|
1050
1067
|
};
|
|
1051
|
-
//# sourceMappingURL=chunk-
|
|
1068
|
+
//# sourceMappingURL=chunk-FFD6A3B2.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
tagAttrKey,
|
|
14
14
|
validateTagGroupNames,
|
|
15
15
|
validateTagValues
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DPGI742S.js";
|
|
17
17
|
import {
|
|
18
18
|
ALL_CHART_TYPES,
|
|
19
19
|
OPTION_NOCOLON_RE,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
tryParseSharedOption,
|
|
27
27
|
warnUnknownMetaKeys,
|
|
28
28
|
withTagAliases
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZJJWON5O.js";
|
|
30
30
|
import {
|
|
31
31
|
formatDgmoError,
|
|
32
32
|
makeDgmoError,
|
|
@@ -521,4 +521,4 @@ export {
|
|
|
521
521
|
looksLikeSitemap,
|
|
522
522
|
parseSitemap
|
|
523
523
|
};
|
|
524
|
-
//# sourceMappingURL=chunk-
|
|
524
|
+
//# sourceMappingURL=chunk-FLXDMH7B.js.map
|