@diagrammo/dgmo 0.70.0 → 0.72.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.
Files changed (188) hide show
  1. package/README.md +2 -0
  2. package/dist/advanced.d.ts +37 -30
  3. package/dist/advanced.js +91 -91
  4. package/dist/block.js +47 -47
  5. package/dist/{calculator-GU4NVYE2.js → calculator-4CNL2GKU.js} +3 -3
  6. package/dist/{chart-meta-DNsYpNbh.d.ts → chart-meta-6JaOudSs.d.ts} +8 -1
  7. package/dist/chart-meta.d.ts +2 -2
  8. package/dist/chart-meta.js +42 -42
  9. package/dist/{charts-d3-HWKV46CS.js → charts-d3-6IHGTXBR.js} +5 -5
  10. package/dist/{chunk-YYVTBZZC.js → chunk-24YPR5EH.js} +1 -1
  11. package/dist/{chunk-USOLDMYO.js → chunk-2OTYNNHS.js} +6 -6
  12. package/dist/{chunk-SHS3O7ZZ.js → chunk-2VBJCTSG.js} +4 -4
  13. package/dist/{chunk-6WI76LHG.js → chunk-376ATV2Q.js} +19 -5
  14. package/dist/{chunk-PMDE3I53.js → chunk-3HN32MEK.js} +2 -2
  15. package/dist/{chunk-EHRME74D.js → chunk-3SNE4CLI.js} +3 -3
  16. package/dist/{chunk-V5VCGTS4.js → chunk-4VUFJ7UA.js} +3 -3
  17. package/dist/{chunk-7YCHRBD3.js → chunk-5DYDPP7K.js} +2 -2
  18. package/dist/{chunk-LK35AH5V.js → chunk-66VHK7PP.js} +5 -5
  19. package/dist/{chunk-R2VVBC52.js → chunk-6DGMS2WJ.js} +4 -4
  20. package/dist/{chunk-Z6G367CM.js → chunk-6OAKQTXQ.js} +3 -3
  21. package/dist/{chunk-IODPKTRZ.js → chunk-6PA32CUB.js} +2 -2
  22. package/dist/{chunk-VSZRPDIZ.js → chunk-6S53NO3M.js} +5 -2
  23. package/dist/{chunk-PP75ABA4.js → chunk-7BHM774H.js} +6 -6
  24. package/dist/{chunk-QRLNO6C7.js → chunk-7RAWNJI5.js} +192 -122
  25. package/dist/{chunk-YXW2ZYS3.js → chunk-7SEQPFBX.js} +38 -7
  26. package/dist/{chunk-VALNMR2Y.js → chunk-7TSBM4BV.js} +3 -3
  27. package/dist/{chunk-EDFUVEO6.js → chunk-7U3NDE7T.js} +7 -7
  28. package/dist/{chunk-3QLXP6QZ.js → chunk-AEYRSPVV.js} +2 -2
  29. package/dist/{chunk-BNJC5KVG.js → chunk-BYSRXYRW.js} +4 -4
  30. package/dist/{chunk-EC5USK74.js → chunk-DEVZWCD5.js} +17 -5
  31. package/dist/{chunk-FH3S7FDS.js → chunk-DHKVHP3Y.js} +5 -5
  32. package/dist/{chunk-PBXMUXBW.js → chunk-DPGI742S.js} +20 -2
  33. package/dist/{chunk-UFKFABSP.js → chunk-DZ34UUXC.js} +7 -7
  34. package/dist/{chunk-ASUFSCVV.js → chunk-E36Q5ABQ.js} +4 -4
  35. package/dist/{chunk-TJ5PDNGU.js → chunk-EETUTZ5C.js} +2 -2
  36. package/dist/{chunk-KVM4POFR.js → chunk-ELIGVSLE.js} +10 -3
  37. package/dist/{chunk-KSK6B35D.js → chunk-FFD6A3B2.js} +22 -5
  38. package/dist/{chunk-K3MUWASA.js → chunk-FLXDMH7B.js} +3 -3
  39. package/dist/{chunk-J3XFVPEU.js → chunk-FTPNAYL2.js} +18 -6
  40. package/dist/{chunk-UJ4FJLBF.js → chunk-FX2USYOU.js} +13 -1
  41. package/dist/{chunk-IOVJT4PE.js → chunk-GCTKJDLY.js} +5 -5
  42. package/dist/{chunk-WBPWR2CX.js → chunk-GK4AU57A.js} +4 -4
  43. package/dist/{chunk-5ECGBM5S.js → chunk-HKL66CKW.js} +25 -21
  44. package/dist/{chunk-Z4KRDDZC.js → chunk-HWNF22ZZ.js} +20 -15
  45. package/dist/{chunk-2QLYLYLN.js → chunk-HZQCKXPB.js} +70 -385
  46. package/dist/{chunk-ZCWEJ3VB.js → chunk-IXVK7XCN.js} +3 -3
  47. package/dist/{chunk-BQVCENFX.js → chunk-JIWDWOYA.js} +3 -3
  48. package/dist/{chunk-HAGHVHR7.js → chunk-K6MQJ5IV.js} +2 -2
  49. package/dist/{chunk-MOMPLSQI.js → chunk-KJWIU5AM.js} +2 -2
  50. package/dist/{chunk-65KNPZCC.js → chunk-KOVRFBGR.js} +25 -4
  51. package/dist/{chunk-B6MHT3A7.js → chunk-L3XB446I.js} +2 -2
  52. package/dist/{chunk-NZ2Z4ZEN.js → chunk-LSHROB27.js} +3 -3
  53. package/dist/{chunk-Q7UM3R3Y.js → chunk-LTGOPJUV.js} +2 -2
  54. package/dist/{chunk-MMYRNZRQ.js → chunk-MC2H32SM.js} +3 -3
  55. package/dist/{chunk-CE2Z3OXR.js → chunk-MFSTE3YG.js} +18 -4
  56. package/dist/{chunk-4FEPSBUH.js → chunk-MKNWMFZU.js} +15 -5
  57. package/dist/{chunk-FQ7OYKOS.js → chunk-MUVASOBD.js} +7 -7
  58. package/dist/{chunk-6NWCQCJV.js → chunk-MWWRIOEN.js} +2 -2
  59. package/dist/{chunk-HK3JTWG3.js → chunk-MX3BYU7V.js} +2 -2
  60. package/dist/{chunk-4CTCOHDS.js → chunk-N34OTOGH.js} +12 -3
  61. package/dist/{chunk-H4VRTBMS.js → chunk-N5247W2W.js} +59 -16
  62. package/dist/{chunk-76XAJN7L.js → chunk-NEC7R2CB.js} +2 -2
  63. package/dist/{chunk-56TCBKXP.js → chunk-NJKUTY4M.js} +3 -3
  64. package/dist/{chunk-D62K46CW.js → chunk-NNMNHE3J.js} +2 -2
  65. package/dist/{chunk-XDEVAAY4.js → chunk-NTBHGUXY.js} +13 -3
  66. package/dist/{chunk-YYFIZ3AO.js → chunk-NUF7YTHA.js} +2 -2
  67. package/dist/{chunk-TSY25V7W.js → chunk-O4OVVK6J.js} +4 -4
  68. package/dist/{chunk-R2UUKZ6R.js → chunk-P6RPHRX7.js} +4 -4
  69. package/dist/{chunk-AA6LBVBN.js → chunk-PBV2C3BW.js} +27 -6
  70. package/dist/{chunk-Y37EDBPR.js → chunk-PKTRDOBI.js} +3 -3
  71. package/dist/{chunk-CVMD5UWI.js → chunk-QAJFIXJE.js} +19 -5
  72. package/dist/{chunk-7LIDBQDO.js → chunk-QITH5XOX.js} +6 -6
  73. package/dist/{chunk-YA464EGR.js → chunk-QPG55HGH.js} +3 -3
  74. package/dist/{chunk-MUXI4Y6U.js → chunk-REBTZP3W.js} +2 -2
  75. package/dist/{chunk-H7LQGRM3.js → chunk-RJI6MHHK.js} +3 -3
  76. package/dist/{chunk-G5UTJZFR.js → chunk-T7W5LM4N.js} +11 -3
  77. package/dist/{chunk-GAK5UOKL.js → chunk-TF7CFAZ5.js} +3 -3
  78. package/dist/{chunk-XAPHRRQ4.js → chunk-U4NFAWQW.js} +5 -5
  79. package/dist/{chunk-HQBY3N3S.js → chunk-UCGEBFUC.js} +3 -3
  80. package/dist/{chunk-6KJMPC6H.js → chunk-UF3EALKC.js} +9 -9
  81. package/dist/{chunk-JCAINYVG.js → chunk-UKOOGXRF.js} +288 -26
  82. package/dist/{chunk-ZLPNK7U2.js → chunk-UNM2PX5D.js} +3 -3
  83. package/dist/{chunk-JR6H5MEF.js → chunk-UNTFANSM.js} +3 -3
  84. package/dist/{chunk-UG3MRJL6.js → chunk-UTVKOGFF.js} +2 -2
  85. package/dist/{chunk-MGAWLZQE.js → chunk-UY77QQWU.js} +2 -2
  86. package/dist/{chunk-7LMDJ3U7.js → chunk-VE7PPEU3.js} +105 -18
  87. package/dist/{chunk-MZBEPHFY.js → chunk-VGLSKDDI.js} +2 -2
  88. package/dist/{chunk-WN6V4ILM.js → chunk-VLXYWPPE.js} +5 -5
  89. package/dist/{chunk-5FBSYKPQ.js → chunk-VMXV2CL5.js} +4 -4
  90. package/dist/{chunk-FFI25S5O.js → chunk-W27BULCB.js} +4 -4
  91. package/dist/{chunk-NTXNVS47.js → chunk-W7SZKJR6.js} +3 -3
  92. package/dist/{chunk-MACY4WJ4.js → chunk-WEC3JPTN.js} +4 -4
  93. package/dist/{chunk-LQB3NKEA.js → chunk-WPXHTYET.js} +16 -11
  94. package/dist/{chunk-QQI4JTJB.js → chunk-WRWUZ2C4.js} +3 -3
  95. package/dist/{chunk-QQFO63AA.js → chunk-XIZCHGP7.js} +3 -3
  96. package/dist/{chunk-PYL2K5CE.js → chunk-YG35ZCNW.js} +20 -5
  97. package/dist/{chunk-6NEFSIL3.js → chunk-YH5KJIO5.js} +4 -4
  98. package/dist/{chunk-N5XT3OWL.js → chunk-YTFA4VTW.js} +2 -2
  99. package/dist/{chunk-SW36YNNE.js → chunk-YYBQ55V2.js} +35 -74
  100. package/dist/{chunk-M2QQQWM3.js → chunk-ZJJWON5O.js} +15 -5
  101. package/dist/collapse-JRGPUE67.js +13 -0
  102. package/dist/completion-registry.js +14 -9
  103. package/dist/{dgmo-router-EAW7XiBE.d.ts → dgmo-router-Lya7cs3R.d.ts} +28 -0
  104. package/dist/dgmo-router-O55I5UXN.js +89 -0
  105. package/dist/{dimensions-RIZPH26J.js → dimensions-EFEBIRS6.js} +5 -5
  106. package/dist/editor.js +6 -3
  107. package/dist/{flowchart-parser-A64T3OEL.js → flowchart-parser-LZF2GW2P.js} +4 -4
  108. package/dist/{flowchart-renderer-F6PDPKK7.js → flowchart-renderer-JMGOCLTQ.js} +6 -6
  109. package/dist/highlight.js +6 -3
  110. package/dist/index.d.ts +1 -1
  111. package/dist/index.js +60 -47
  112. package/dist/{layout-2D6VKW6G.js → layout-2DVT24YY.js} +3 -3
  113. package/dist/{layout-COGPMCW5.js → layout-4D5JRUHX.js} +4 -4
  114. package/dist/{layout-FFCYSTW7.js → layout-AWPST2S3.js} +3 -3
  115. package/dist/{layout-CYNBG5EP.js → layout-BGXLVSXL.js} +4 -4
  116. package/dist/{layout-36Z4NU4W.js → layout-VMDNULKS.js} +5 -5
  117. package/dist/{layout-2DUQIJOI.js → layout-VVTXA3W2.js} +4 -4
  118. package/dist/{parser-LGDW543A.js → parser-2CXA7K5C.js} +4 -4
  119. package/dist/{parser-6OWUGHKY.js → parser-4E2TVMOK.js} +4 -4
  120. package/dist/{parser-2PN2WRYX.js → parser-52AZJ3BA.js} +4 -4
  121. package/dist/{parser-A3B5KVPK.js → parser-52BOCAVQ.js} +4 -4
  122. package/dist/{parser-FNOWLKC4.js → parser-5IPCYVXY.js} +4 -4
  123. package/dist/{parser-U3T76HY2.js → parser-6BF5TJQH.js} +4 -4
  124. package/dist/{parser-SEFSLUXW.js → parser-6VZISXFY.js} +3 -3
  125. package/dist/{parser-VDD3N5SC.js → parser-6Y5BMNNJ.js} +5 -5
  126. package/dist/{parser-LJZIQJRA.js → parser-7HUZBXKW.js} +3 -3
  127. package/dist/{parser-PXI5UCVR.js → parser-AEJ73QJS.js} +3 -3
  128. package/dist/{parser-M7HBD7V2.js → parser-AWNEAGMJ.js} +4 -4
  129. package/dist/{parser-53ALMRAE.js → parser-C2QRTZPJ.js} +4 -4
  130. package/dist/{parser-DLIBNGNQ.js → parser-CBSYFN6U.js} +3 -3
  131. package/dist/{parser-IL4T3HCM.js → parser-CDMP3UVH.js} +4 -4
  132. package/dist/{parser-CDA5DGXA.js → parser-CNKHKQKZ.js} +4 -4
  133. package/dist/{parser-VQKLDBS7.js → parser-EX3AGFT5.js} +4 -4
  134. package/dist/{parser-SOOR27MC.js → parser-GK3JWVHY.js} +5 -5
  135. package/dist/{parser-4VIMOING.js → parser-GZKR6BFA.js} +4 -4
  136. package/dist/{parser-YCRATNR6.js → parser-K26KDCZN.js} +3 -3
  137. package/dist/{parser-SZXKUTVE.js → parser-LTJ5AKY4.js} +4 -4
  138. package/dist/{parser-Q2K7TDEA.js → parser-NIGB4EYX.js} +3 -3
  139. package/dist/{parser-DAMYSBVY.js → parser-O7GTECFP.js} +3 -3
  140. package/dist/{parser-3QXKYLDG.js → parser-OHWDJGCP.js} +3 -3
  141. package/dist/{parser-RZIIZ3EW.js → parser-QCVEWLCO.js} +3 -3
  142. package/dist/{parser-E33LTBYE.js → parser-SUAOF72Y.js} +4 -4
  143. package/dist/{parser-CLDLYMDI.js → parser-TJ3SP2MJ.js} +4 -4
  144. package/dist/{parser-GEELVJ4X.js → parser-W2HXBHNC.js} +3 -3
  145. package/dist/{parser-2QQJFTMD.js → parser-WF4R7225.js} +4 -4
  146. package/dist/{parser-5ETIIQIM.js → parser-XM6JC3UK.js} +4 -4
  147. package/dist/{parser-D5EZ6Y5I.js → parser-XRZQ7SC7.js} +4 -4
  148. package/dist/{parser-ZXI4IQ5Y.js → parser-YRJAGBV7.js} +4 -4
  149. package/dist/{parser-4CEHZFZG.js → parser-Z3LN7P6G.js} +5 -5
  150. package/dist/{parser-52SRJNP4.js → parser-ZIEEBJMU.js} +4 -4
  151. package/dist/{renderer-PR3AGJ37.js → renderer-2MEPYGAP.js} +7 -7
  152. package/dist/{renderer-P2MICJH5.js → renderer-2T2RAFWX.js} +8 -8
  153. package/dist/{renderer-SDCMF5AF.js → renderer-4DFEFP4X.js} +6 -6
  154. package/dist/{renderer-WPGW6FTW.js → renderer-ACGZ5KJG.js} +8 -8
  155. package/dist/{renderer-F75AZ6HF.js → renderer-B4Q6LUW2.js} +6 -6
  156. package/dist/{renderer-WA5K5VWA.js → renderer-CB44E262.js} +8 -8
  157. package/dist/{renderer-3VPTEQBU.js → renderer-CL4X5S3T.js} +6 -6
  158. package/dist/{renderer-PUYQ5CDE.js → renderer-E3UQ24DE.js} +5 -5
  159. package/dist/{renderer-3EN7ZSXI.js → renderer-E42I44WZ.js} +7 -7
  160. package/dist/{renderer-VK6KVXFB.js → renderer-H5QR3LC3.js} +4 -4
  161. package/dist/{renderer-RY7RQQ37.js → renderer-IH5C7NQT.js} +4 -4
  162. package/dist/{renderer-AF6DVUZH.js → renderer-IZFO3G22.js} +8 -8
  163. package/dist/{renderer-EVHFS3PP.js → renderer-JHWGW4Q7.js} +5 -5
  164. package/dist/{renderer-U7INHN4J.js → renderer-K73COK5L.js} +5 -5
  165. package/dist/{renderer-MGYWZFFR.js → renderer-KQIJV5WD.js} +5 -5
  166. package/dist/{renderer-52YQ3EYR.js → renderer-MZ4N2SVV.js} +5 -5
  167. package/dist/{renderer-KLRBL45Z.js → renderer-QMSFXMAL.js} +5 -5
  168. package/dist/{renderer-YZMFPZGC.js → renderer-UPTO25OX.js} +8 -8
  169. package/dist/{renderer-REULT7UI.js → renderer-VEN6AIWW.js} +8 -8
  170. package/dist/{renderer-QOI2SEEA.js → renderer-VOXE7V6L.js} +7 -7
  171. package/dist/{renderer-BT6TOWBE.js → renderer-VP4DPLDY.js} +4 -4
  172. package/dist/{renderer-KVRTLE2D.js → renderer-W7JC2CTQ.js} +4 -4
  173. package/dist/{renderer-XOPHJWNZ.js → renderer-WBG576LB.js} +5 -5
  174. package/dist/{renderer-4LLJHGIQ.js → renderer-WLA3NQCC.js} +7 -7
  175. package/dist/{renderer-UC2ZZISO.js → renderer-XR4SVKNE.js} +6 -6
  176. package/dist/{renderer-Q24E7LBF.js → renderer-Y3D36RIT.js} +6 -6
  177. package/dist/{renderer-SFYFVKVN.js → renderer-Y4VC3VH4.js} +9 -7
  178. package/dist/renderer-YROML2KW.js +76 -0
  179. package/dist/{renderer-RJLAM6G5.js → renderer-YXYEP46H.js} +6 -6
  180. package/dist/{renderer-VTP3QCCP.js → renderer-ZRHTC24Q.js} +7 -7
  181. package/dist/{renderer-radial-AVHNPO2N.js → renderer-radial-KZ3W4WXI.js} +6 -6
  182. package/dist/{state-parser-GSU2ZDVR.js → state-parser-HJNCGIFT.js} +5 -5
  183. package/dist/{state-renderer-Q6XQDK3W.js → state-renderer-FJ2GT4MU.js} +8 -8
  184. package/docs/language-reference.md +22 -1
  185. package/package.json +2 -1
  186. package/dist/collapse-CLPJD2RL.js +0 -11
  187. package/dist/dgmo-router-YFNEFJST.js +0 -89
  188. package/dist/renderer-BQORZPWF.js +0 -76
@@ -13,6 +13,7 @@ import {
13
13
  } from "./chunk-NOTA6TEI.js";
14
14
  import {
15
15
  AUTO_TAG_COLOR_SENTINEL,
16
+ activeTagNoMatchMessage,
16
17
  finalizeAutoTagColors,
17
18
  injectDefaultTagMetadata,
18
19
  matchTagBlockHeading,
@@ -20,7 +21,7 @@ import {
20
21
  tagAttrKey,
21
22
  validateTagGroupNames,
22
23
  validateTagValues
23
- } from "./chunk-PBXMUXBW.js";
24
+ } from "./chunk-DPGI742S.js";
24
25
  import {
25
26
  PERT_REGISTRY,
26
27
  extractColor,
@@ -30,7 +31,7 @@ import {
30
31
  splitNameAndMeta,
31
32
  warnUnknownMetaKeys,
32
33
  withTagAliases
33
- } from "./chunk-M2QQQWM3.js";
34
+ } from "./chunk-ZJJWON5O.js";
34
35
  import {
35
36
  emit,
36
37
  makeDgmoError,
@@ -438,6 +439,7 @@ function parsePert(content, parseOpts = {}) {
438
439
  const references = [];
439
440
  const groups = [];
440
441
  const tagGroups = [];
442
+ let activeTagOptionLine = 0;
441
443
  let currentTagGroup = null;
442
444
  let contentStarted = false;
443
445
  const metaAliasMap = /* @__PURE__ */ new Map();
@@ -690,6 +692,7 @@ function parsePert(content, parseOpts = {}) {
690
692
  }
691
693
  continue;
692
694
  }
695
+ if (head === "active-tag") activeTagOptionLine = lineNumber;
693
696
  applyDirective(head, value, lineNumber, options, error, warn, {
694
697
  order: dateOrder,
695
698
  baseYear,
@@ -949,6 +952,13 @@ function parsePert(content, parseOpts = {}) {
949
952
  if (g.tags && Object.keys(g.tags).length === 0) delete g.tags;
950
953
  }
951
954
  }
955
+ const activeTagWarning = activeTagNoMatchMessage(
956
+ options.activeTag,
957
+ tagGroups
958
+ );
959
+ if (activeTagWarning) {
960
+ warn(activeTagOptionLine || 1, activeTagWarning, "W_ACTIVE_TAG_NO_MATCH");
961
+ }
952
962
  const firstFatal = diagnostics.find((d) => d.severity === "error");
953
963
  return {
954
964
  title,
@@ -1258,4 +1268,4 @@ export {
1258
1268
  extractPertSymbols,
1259
1269
  looksLikePert
1260
1270
  };
1261
- //# sourceMappingURL=chunk-XDEVAAY4.js.map
1271
+ //# sourceMappingURL=chunk-NTBHGUXY.js.map
@@ -5,7 +5,7 @@ import {
5
5
  splitNameAndMeta,
6
6
  tryParseSharedOption,
7
7
  warnUnknownMetaKeys
8
- } from "./chunk-M2QQQWM3.js";
8
+ } from "./chunk-ZJJWON5O.js";
9
9
  import {
10
10
  makeDgmoError,
11
11
  makeFail
@@ -274,4 +274,4 @@ function parseCycle(content) {
274
274
  export {
275
275
  parseCycle
276
276
  };
277
- //# sourceMappingURL=chunk-YYFIZ3AO.js.map
277
+ //# sourceMappingURL=chunk-NUF7YTHA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-YRYKTYMQ.js";
5
5
  import {
6
6
  ScaleContext
7
- } from "./chunk-YYVTBZZC.js";
7
+ } from "./chunk-24YPR5EH.js";
8
8
  import {
9
9
  INLINE_HEADER_PAD,
10
10
  layoutInlineHeader
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-A4GOY3PE.js";
17
17
  import {
18
18
  renderIntegratedLegend
19
- } from "./chunk-VSZRPDIZ.js";
19
+ } from "./chunk-6S53NO3M.js";
20
20
  import {
21
21
  controlsGroupCapsuleWidth,
22
22
  getLegendExtent,
@@ -52,7 +52,7 @@ import {
52
52
  resolveActiveTagGroup,
53
53
  resolveTagColor,
54
54
  tagAttrKey
55
- } from "./chunk-PBXMUXBW.js";
55
+ } from "./chunk-DPGI742S.js";
56
56
  import {
57
57
  contrastText,
58
58
  getSeriesColors,
@@ -2152,4 +2152,4 @@ export {
2152
2152
  renderGantt,
2153
2153
  buildTagLaneRowList
2154
2154
  };
2155
- //# sourceMappingURL=chunk-TSY25V7W.js.map
2155
+ //# sourceMappingURL=chunk-O4OVVK6J.js.map
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-FJ57274M.js";
23
23
  import {
24
24
  ScaleContext
25
- } from "./chunk-YYVTBZZC.js";
25
+ } from "./chunk-24YPR5EH.js";
26
26
  import {
27
27
  serializeSvg
28
28
  } from "./chunk-RU2HHHYA.js";
@@ -39,10 +39,10 @@ import {
39
39
  } from "./chunk-MTGGOCND.js";
40
40
  import {
41
41
  parseFlowchart
42
- } from "./chunk-H7LQGRM3.js";
42
+ } from "./chunk-RJI6MHHK.js";
43
43
  import {
44
44
  fillModeFromOptions
45
- } from "./chunk-M2QQQWM3.js";
45
+ } from "./chunk-ZJJWON5O.js";
46
46
  import {
47
47
  contrastText,
48
48
  shapeFill
@@ -586,4 +586,4 @@ export {
586
586
  renderFlowchart,
587
587
  renderFlowchartForExport
588
588
  };
589
- //# sourceMappingURL=chunk-R2UUKZ6R.js.map
589
+ //# sourceMappingURL=chunk-P6RPHRX7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tryCollectNote
3
- } from "./chunk-HK3JTWG3.js";
3
+ } from "./chunk-MX3BYU7V.js";
4
4
  import {
5
5
  resolveNotes
6
6
  } from "./chunk-7NK42OIB.js";
@@ -12,6 +12,7 @@ import {
12
12
  } from "./chunk-NOTA6TEI.js";
13
13
  import {
14
14
  AUTO_TAG_COLOR_SENTINEL,
15
+ activeTagNoMatchMessage,
15
16
  finalizeAutoTagColors,
16
17
  injectDefaultTagMetadata,
17
18
  matchTagBlockHeading,
@@ -19,7 +20,7 @@ import {
19
20
  tagAttrKey,
20
21
  validateTagGroupNames,
21
22
  validateTagValues
22
- } from "./chunk-PBXMUXBW.js";
23
+ } from "./chunk-DPGI742S.js";
23
24
  import {
24
25
  BOXES_AND_LINES_REGISTRY,
25
26
  OPTION_NOCOLON_RE,
@@ -31,7 +32,7 @@ import {
31
32
  tryParseSharedOption,
32
33
  warnUnknownMetaKeys,
33
34
  withTagAliases
34
- } from "./chunk-M2QQQWM3.js";
35
+ } from "./chunk-ZJJWON5O.js";
35
36
  import {
36
37
  makeDgmoError,
37
38
  suggest
@@ -116,6 +117,7 @@ function parseBoxesAndLines(content, palette) {
116
117
  }
117
118
  const groupStack = [];
118
119
  let contentStarted = false;
120
+ let activeTagOptionLine = 0;
119
121
  let currentTagGroup = null;
120
122
  const metaAliasMap = /* @__PURE__ */ new Map();
121
123
  const nameAliasMap = /* @__PURE__ */ new Map();
@@ -125,8 +127,10 @@ function parseBoxesAndLines(content, palette) {
125
127
  if (!m) return { label: trimmed };
126
128
  return { label: m[1].trim(), alias: m[2] };
127
129
  }
128
- const pushWarning = (lineNumber, message) => {
129
- result.diagnostics.push(makeDgmoError(lineNumber, message, "warning"));
130
+ const pushWarning = (lineNumber, message, code) => {
131
+ result.diagnostics.push(
132
+ makeDgmoError(lineNumber, message, "warning", code)
133
+ );
130
134
  };
131
135
  function currentGroupState() {
132
136
  return groupStack.length > 0 ? groupStack[groupStack.length - 1] : null;
@@ -221,6 +225,7 @@ function parseBoxesAndLines(content, palette) {
221
225
  const value = optMatch[2].trim();
222
226
  if (key2 === "active-tag") {
223
227
  options[key2] = value;
228
+ activeTagOptionLine = lineNum;
224
229
  continue;
225
230
  }
226
231
  }
@@ -581,6 +586,22 @@ function parseBoxesAndLines(content, palette) {
581
586
  if (!result.error) result.error = diag.message;
582
587
  });
583
588
  }
589
+ const activeTagWarning = activeTagNoMatchMessage(
590
+ options["active-tag"],
591
+ result.tagGroups,
592
+ // The value metric is a legitimate `active-tag` target here (§13.9), named
593
+ // by `box-metric` and defaulting to `Value` — but only when some box
594
+ // actually carries a value, which is what the renderer gates on.
595
+ result.nodes.some((n) => n.value !== void 0) ? [result.boxMetric?.trim() || "Value"] : [],
596
+ "the value metric"
597
+ );
598
+ if (activeTagWarning) {
599
+ pushWarning(
600
+ activeTagOptionLine || 1,
601
+ activeTagWarning,
602
+ "W_ACTIVE_TAG_NO_MATCH"
603
+ );
604
+ }
584
605
  return result;
585
606
  }
586
607
  function parseNodeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap) {
@@ -834,4 +855,4 @@ export {
834
855
  looksLikeBoxesAndLines,
835
856
  parseBoxesAndLines
836
857
  };
837
- //# sourceMappingURL=chunk-AA6LBVBN.js.map
858
+ //# sourceMappingURL=chunk-PBV2C3BW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ScaleContext
3
- } from "./chunk-YYVTBZZC.js";
3
+ } from "./chunk-24YPR5EH.js";
4
4
  import {
5
5
  TITLE_FONT_SIZE,
6
6
  TITLE_FONT_WEIGHT
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-MTGGOCND.js";
14
14
  import {
15
15
  fillModeFromOptions
16
- } from "./chunk-M2QQQWM3.js";
16
+ } from "./chunk-ZJJWON5O.js";
17
17
  import {
18
18
  contrastText,
19
19
  mix,
@@ -554,4 +554,4 @@ function renderModal(parent, node, ctx) {
554
554
  export {
555
555
  renderWireframe
556
556
  };
557
- //# sourceMappingURL=chunk-Y37EDBPR.js.map
557
+ //# sourceMappingURL=chunk-PKTRDOBI.js.map
@@ -3,6 +3,7 @@ import {
3
3
  } from "./chunk-IYULMRBE.js";
4
4
  import {
5
5
  AUTO_TAG_COLOR_SENTINEL,
6
+ activeTagNoMatchMessage,
6
7
  cascadeTagMetadata,
7
8
  finalizeAutoTagColors,
8
9
  matchTagBlockHeading,
@@ -10,7 +11,7 @@ import {
10
11
  tagAttrKey,
11
12
  validateTagGroupNames,
12
13
  validateTagValues
13
- } from "./chunk-PBXMUXBW.js";
14
+ } from "./chunk-DPGI742S.js";
14
15
  import {
15
16
  MINDMAP_REGISTRY,
16
17
  OPTION_NOCOLON_RE,
@@ -22,7 +23,7 @@ import {
22
23
  tryParseSharedOption,
23
24
  warnUnknownMetaKeys,
24
25
  withTagAliases
25
- } from "./chunk-M2QQQWM3.js";
26
+ } from "./chunk-ZJJWON5O.js";
26
27
  import {
27
28
  formatDgmoError,
28
29
  makeDgmoError,
@@ -49,14 +50,15 @@ function parseMindmap(content, palette) {
49
50
  result.diagnostics.push(diag);
50
51
  if (!result.error) result.error = formatDgmoError(diag);
51
52
  };
52
- const pushWarning = (line, message) => {
53
- result.diagnostics.push(makeDgmoError(line, message, "warning"));
53
+ const pushWarning = (line, message, code) => {
54
+ result.diagnostics.push(makeDgmoError(line, message, "warning", code));
54
55
  };
55
56
  if (!content?.trim()) {
56
57
  return fail(0, "No content provided");
57
58
  }
58
59
  const lines = content.split("\n");
59
60
  let contentStarted = false;
61
+ let activeTagOptionLine = 0;
60
62
  let nodeCounter = 0;
61
63
  let currentTagGroup = null;
62
64
  const aliasMap = /* @__PURE__ */ new Map();
@@ -136,6 +138,7 @@ function parseMindmap(content, palette) {
136
138
  const key = optMatch[1].trim().toLowerCase();
137
139
  if (KNOWN_OPTIONS.has(key)) {
138
140
  options[key] = optMatch[2].trim();
141
+ if (key === "active-tag") activeTagOptionLine = lineNumber;
139
142
  continue;
140
143
  }
141
144
  }
@@ -239,6 +242,17 @@ function parseMindmap(content, palette) {
239
242
  result.error = formatDgmoError(diag);
240
243
  } else if (titleRoot?.children.length === 0 && result.roots.length === 1 && !result.error) {
241
244
  }
245
+ const activeTagWarning = activeTagNoMatchMessage(
246
+ options["active-tag"],
247
+ result.tagGroups
248
+ );
249
+ if (activeTagWarning) {
250
+ pushWarning(
251
+ activeTagOptionLine || 1,
252
+ activeTagWarning,
253
+ "W_ACTIVE_TAG_NO_MATCH"
254
+ );
255
+ }
242
256
  return result;
243
257
  }
244
258
  function parseNodeLine(trimmed, lineNumber, _palette, counter, aliasMap, diagnostics) {
@@ -323,4 +337,4 @@ function findMetadataParent(indent, indentStack) {
323
337
  export {
324
338
  parseMindmap
325
339
  };
326
- //# sourceMappingURL=chunk-CVMD5UWI.js.map
340
+ //# sourceMappingURL=chunk-QAJFIXJE.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-FJ57274M.js";
15
15
  import {
16
16
  ScaleContext
17
- } from "./chunk-YYVTBZZC.js";
17
+ } from "./chunk-24YPR5EH.js";
18
18
  import {
19
19
  layoutInlineHeader
20
20
  } from "./chunk-6CLC26GU.js";
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-A4GOY3PE.js";
29
29
  import {
30
30
  renderIntegratedLegend
31
- } from "./chunk-VSZRPDIZ.js";
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-65KNPZCC.js";
46
+ } from "./chunk-KOVRFBGR.js";
47
47
  import {
48
48
  resolveTagColor,
49
49
  tagAttrKey
50
- } from "./chunk-PBXMUXBW.js";
50
+ } from "./chunk-DPGI742S.js";
51
51
  import {
52
52
  fillModeFromOptions,
53
53
  legendInlineRequested,
54
54
  legendSuppressed
55
- } from "./chunk-M2QQQWM3.js";
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-7LIDBQDO.js.map
606
+ //# sourceMappingURL=chunk-QITH5XOX.js.map
@@ -11,7 +11,7 @@ import {
11
11
  matchTagBlockHeading,
12
12
  stripDefaultModifier,
13
13
  tagAttrKey
14
- } from "./chunk-PBXMUXBW.js";
14
+ } from "./chunk-DPGI742S.js";
15
15
  import {
16
16
  FAMILY_PERSON_REGISTRY,
17
17
  FAMILY_UNION_REGISTRY,
@@ -26,7 +26,7 @@ import {
26
26
  tokenizeQuoteAware,
27
27
  tryParseSharedOption,
28
28
  withTagAliases
29
- } from "./chunk-M2QQQWM3.js";
29
+ } from "./chunk-ZJJWON5O.js";
30
30
  import {
31
31
  nord,
32
32
  resolveColor
@@ -571,4 +571,4 @@ export {
571
571
  FAMILY_DIAGNOSTICS,
572
572
  parseFamily
573
573
  };
574
- //# sourceMappingURL=chunk-YA464EGR.js.map
574
+ //# sourceMappingURL=chunk-QPG55HGH.js.map
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-QX53GOI7.js";
23
23
  import {
24
24
  tagAttrKey
25
- } from "./chunk-PBXMUXBW.js";
25
+ } from "./chunk-DPGI742S.js";
26
26
  import {
27
27
  contrastRatio,
28
28
  mix,
@@ -3365,4 +3365,4 @@ export {
3365
3365
  albersSkewFallback,
3366
3366
  layoutMap
3367
3367
  };
3368
- //# sourceMappingURL=chunk-MUXI4Y6U.js.map
3368
+ //# sourceMappingURL=chunk-REBTZP3W.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7TF3QOOD.js";
4
4
  import {
5
5
  tryCollectNote
6
- } from "./chunk-HK3JTWG3.js";
6
+ } from "./chunk-MX3BYU7V.js";
7
7
  import {
8
8
  resolveNotes
9
9
  } from "./chunk-7NK42OIB.js";
@@ -21,7 +21,7 @@ import {
21
21
  measureIndent,
22
22
  parseFirstLine,
23
23
  tryParseSharedOption
24
- } from "./chunk-M2QQQWM3.js";
24
+ } from "./chunk-ZJJWON5O.js";
25
25
  import {
26
26
  NAME_DIAGNOSTIC_CODES,
27
27
  emit,
@@ -470,4 +470,4 @@ export {
470
470
  looksLikeFlowchart,
471
471
  extractSymbols
472
472
  };
473
- //# sourceMappingURL=chunk-H7LQGRM3.js.map
473
+ //# sourceMappingURL=chunk-RJI6MHHK.js.map
@@ -16,7 +16,7 @@ import {
16
16
  splitNameAndMeta,
17
17
  tryParseSharedOption,
18
18
  warnUnknownMetaKeys
19
- } from "./chunk-M2QQQWM3.js";
19
+ } from "./chunk-ZJJWON5O.js";
20
20
  import {
21
21
  resolveColorWithDiagnostic
22
22
  } from "./chunk-EXNKNJ65.js";
@@ -30,11 +30,14 @@ import {
30
30
  } from "./chunk-OLMWTJVU.js";
31
31
 
32
32
  // src/raci/parser.ts
33
- var KNOWN_OPTIONS = /* @__PURE__ */ new Set(["roles", "palette", "theme", "active-tag"]);
33
+ var KNOWN_OPTIONS = /* @__PURE__ */ new Set(["roles", "palette", "theme"]);
34
34
  var KNOWN_BOOLEANS = /* @__PURE__ */ new Set(["no-title"]);
35
35
  var REMOVED_BOOLEANS = {
36
36
  "no-rule-enforcement": '"no-rule-enforcement" has been removed \u2014 RACI validation is always active.'
37
37
  };
38
+ var INERT_OPTIONS = {
39
+ "active-tag": '"active-tag" does nothing on a raci chart \u2014 it has no tag groups. Colour comes from the roles; give a role its own with the block form of "roles".'
40
+ };
38
41
  var PHASE_RE = /^\[(.+?)\]\s*(.*)$/;
39
42
  var PHASE_PALETTE_COLOR_RE = /^(red|orange|yellow|green|blue|purple|teal|cyan|gray|black|white)\b/;
40
43
  var ROLE_ASSIGNMENT_RE = /^([^:]+):\s*(.*)$/;
@@ -251,6 +254,11 @@ function parseRaci(content, palette) {
251
254
  const optMatch = trimmed.match(OPTION_NOCOLON_RE);
252
255
  if (optMatch) {
253
256
  const key = optMatch[1].trim().toLowerCase();
257
+ const inertMsg = INERT_OPTIONS[key];
258
+ if (inertMsg) {
259
+ warn(lineNumber, inertMsg);
260
+ continue;
261
+ }
254
262
  if (KNOWN_OPTIONS.has(key)) {
255
263
  const value = optMatch[2].trim();
256
264
  if (key === "roles") {
@@ -484,4 +492,4 @@ export {
484
492
  parseRaci,
485
493
  allTasks
486
494
  };
487
- //# sourceMappingURL=chunk-G5UTJZFR.js.map
495
+ //# sourceMappingURL=chunk-T7W5LM4N.js.map
@@ -4,13 +4,13 @@ import {
4
4
  matchTagBlockHeading,
5
5
  stripDefaultModifier,
6
6
  tagAttrKey
7
- } from "./chunk-PBXMUXBW.js";
7
+ } from "./chunk-DPGI742S.js";
8
8
  import {
9
9
  FILL_FAMILY_TOKENS,
10
10
  extractColor,
11
11
  measureIndent,
12
12
  parseFirstLine
13
- } from "./chunk-M2QQQWM3.js";
13
+ } from "./chunk-ZJJWON5O.js";
14
14
  import {
15
15
  emit
16
16
  } from "./chunk-OLMWTJVU.js";
@@ -692,4 +692,4 @@ export {
692
692
  SWIMLANE_DIAGNOSTICS,
693
693
  parseSwimlane
694
694
  };
695
- //# sourceMappingURL=chunk-GAK5UOKL.js.map
695
+ //# sourceMappingURL=chunk-TF7CFAZ5.js.map
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-FJ57274M.js";
20
20
  import {
21
21
  ScaleContext
22
- } from "./chunk-YYVTBZZC.js";
22
+ } from "./chunk-24YPR5EH.js";
23
23
  import {
24
24
  layoutInlineHeader
25
25
  } from "./chunk-6CLC26GU.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-A4GOY3PE.js";
31
31
  import {
32
32
  renderIntegratedLegend
33
- } from "./chunk-VSZRPDIZ.js";
33
+ } from "./chunk-6S53NO3M.js";
34
34
  import {
35
35
  getLegendExtent,
36
36
  getMaxLegendReservedHeight
@@ -45,12 +45,12 @@ import {
45
45
  } from "./chunk-MTGGOCND.js";
46
46
  import {
47
47
  resolveTagColor
48
- } from "./chunk-PBXMUXBW.js";
48
+ } from "./chunk-DPGI742S.js";
49
49
  import {
50
50
  fillModeFromOptions,
51
51
  legendInlineRequested,
52
52
  legendSuppressed
53
- } from "./chunk-M2QQQWM3.js";
53
+ } from "./chunk-ZJJWON5O.js";
54
54
  import {
55
55
  contrastText,
56
56
  mix,
@@ -838,4 +838,4 @@ export {
838
838
  renderBoxesAndLines,
839
839
  renderBoxesAndLinesForExport
840
840
  };
841
- //# sourceMappingURL=chunk-XAPHRRQ4.js.map
841
+ //# sourceMappingURL=chunk-U4NFAWQW.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-WGC42WJU.js";
7
7
  import {
8
8
  ScaleContext
9
- } from "./chunk-YYVTBZZC.js";
9
+ } from "./chunk-24YPR5EH.js";
10
10
  import {
11
11
  TITLE_FONT_SIZE,
12
12
  TITLE_FONT_WEIGHT,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-MTGGOCND.js";
22
22
  import {
23
23
  fillModeFromOptions
24
- } from "./chunk-M2QQQWM3.js";
24
+ } from "./chunk-ZJJWON5O.js";
25
25
  import {
26
26
  contrastText,
27
27
  getSeriesColors,
@@ -296,4 +296,4 @@ export {
296
296
  renderRing,
297
297
  renderRingForExport
298
298
  };
299
- //# sourceMappingURL=chunk-HQBY3N3S.js.map
299
+ //# sourceMappingURL=chunk-UCGEBFUC.js.map
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-FJ57274M.js";
17
17
  import {
18
18
  ScaleContext
19
- } from "./chunk-YYVTBZZC.js";
19
+ } from "./chunk-24YPR5EH.js";
20
20
  import {
21
21
  layoutInlineHeader
22
22
  } from "./chunk-6CLC26GU.js";
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-A4GOY3PE.js";
29
29
  import {
30
30
  renderIntegratedLegend
31
- } from "./chunk-VSZRPDIZ.js";
31
+ } from "./chunk-6S53NO3M.js";
32
32
  import {
33
33
  getLegendExtent,
34
34
  getMaxLegendReservedHeight
@@ -54,17 +54,17 @@ import {
54
54
  } from "./chunk-MTGGOCND.js";
55
55
  import {
56
56
  parseInfra
57
- } from "./chunk-CE2Z3OXR.js";
57
+ } from "./chunk-MFSTE3YG.js";
58
58
  import {
59
59
  preprocessDescriptionLine
60
60
  } from "./chunk-IYULMRBE.js";
61
61
  import {
62
62
  tagAttrKey
63
- } from "./chunk-PBXMUXBW.js";
63
+ } from "./chunk-DPGI742S.js";
64
64
  import {
65
65
  legendInlineRequested,
66
66
  legendSuppressed
67
- } from "./chunk-M2QQQWM3.js";
67
+ } from "./chunk-ZJJWON5O.js";
68
68
  import {
69
69
  contrastText,
70
70
  mix,
@@ -962,7 +962,7 @@ function resolveActiveTagStroke(node, activeGroup, tagGroups, palette) {
962
962
  (t) => t.name.toLowerCase() === activeGroup.toLowerCase()
963
963
  );
964
964
  if (!tg) return null;
965
- const tagKey = tagAttrKey(tg.alias ?? tg.name);
965
+ const tagKey = tagAttrKey(tg.name);
966
966
  const tagVal = node.tags[tagKey];
967
967
  if (!tagVal) return null;
968
968
  const tv = tg.values.find(
@@ -1003,7 +1003,7 @@ function renderNodes(svg, nodes, palette, isDark, animate, expandedNodeIds, acti
1003
1003
  g.attr("data-node-toggle", node.id);
1004
1004
  }
1005
1005
  for (const [tagKey, tagVal] of Object.entries(node.tags)) {
1006
- g.attr(`data-tag-${tagKey.toLowerCase()}`, tagVal.toLowerCase());
1006
+ g.attr(`data-tag-${tagAttrKey(tagKey)}`, tagVal.toLowerCase());
1007
1007
  }
1008
1008
  if (!node.isEdge) {
1009
1009
  const roles = inferRoles(node.properties);
@@ -1295,7 +1295,7 @@ function computeInfraLegendGroups(nodes, tagGroups, palette, edges) {
1295
1295
  groups.push({
1296
1296
  name: tg.name,
1297
1297
  type: "tag",
1298
- tagKey: tagAttrKey(tg.alias ?? tg.name),
1298
+ tagKey: tagAttrKey(tg.name),
1299
1299
  entries,
1300
1300
  width: LEGEND_CAPSULE_PAD * 2 + pillWidth + 4 + entriesWidth,
1301
1301
  minifiedWidth: pillWidth
@@ -1613,4 +1613,4 @@ export {
1613
1613
  renderInfra,
1614
1614
  parseAndLayoutInfra
1615
1615
  };
1616
- //# sourceMappingURL=chunk-6KJMPC6H.js.map
1616
+ //# sourceMappingURL=chunk-UF3EALKC.js.map