@diagrammo/dgmo 0.70.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.
Files changed (187) hide show
  1. package/README.md +2 -0
  2. package/dist/advanced.d.ts +3 -4
  3. package/dist/advanced.js +90 -90
  4. package/dist/block.js +46 -46
  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-LK35AH5V.js → chunk-2JY7KE7C.js} +5 -5
  11. package/dist/{chunk-6WI76LHG.js → chunk-376ATV2Q.js} +19 -5
  12. package/dist/{chunk-PMDE3I53.js → chunk-3HN32MEK.js} +2 -2
  13. package/dist/{chunk-EHRME74D.js → chunk-3SNE4CLI.js} +3 -3
  14. package/dist/{chunk-V5VCGTS4.js → chunk-4VUFJ7UA.js} +3 -3
  15. package/dist/{chunk-7YCHRBD3.js → chunk-5DYDPP7K.js} +2 -2
  16. package/dist/{chunk-R2UUKZ6R.js → chunk-5GTYY2XV.js} +3 -3
  17. package/dist/{chunk-ZCWEJ3VB.js → chunk-6EDBUKC7.js} +2 -2
  18. package/dist/{chunk-IODPKTRZ.js → chunk-6PA32CUB.js} +2 -2
  19. package/dist/{chunk-VSZRPDIZ.js → chunk-6S53NO3M.js} +5 -2
  20. package/dist/{chunk-IOVJT4PE.js → chunk-722TKHMS.js} +4 -4
  21. package/dist/{chunk-PP75ABA4.js → chunk-7BHM774H.js} +6 -6
  22. package/dist/{chunk-B6MHT3A7.js → chunk-7REARI5N.js} +2 -2
  23. package/dist/{chunk-YXW2ZYS3.js → chunk-7SEQPFBX.js} +38 -7
  24. package/dist/{chunk-VALNMR2Y.js → chunk-7TSBM4BV.js} +3 -3
  25. package/dist/{chunk-3QLXP6QZ.js → chunk-AEYRSPVV.js} +2 -2
  26. package/dist/{chunk-BNJC5KVG.js → chunk-BYSRXYRW.js} +4 -4
  27. package/dist/{chunk-R2VVBC52.js → chunk-C3MVZ7EW.js} +3 -3
  28. package/dist/{chunk-J3XFVPEU.js → chunk-CH4WODSG.js} +3 -3
  29. package/dist/{chunk-4CTCOHDS.js → chunk-CR5WIA6I.js} +2 -2
  30. package/dist/{chunk-EC5USK74.js → chunk-DEVZWCD5.js} +17 -5
  31. package/dist/{chunk-PBXMUXBW.js → chunk-DPGI742S.js} +20 -2
  32. package/dist/{chunk-ASUFSCVV.js → chunk-E36Q5ABQ.js} +4 -4
  33. package/dist/{chunk-TJ5PDNGU.js → chunk-EETUTZ5C.js} +2 -2
  34. package/dist/{chunk-KVM4POFR.js → chunk-ELIGVSLE.js} +10 -3
  35. package/dist/{chunk-5ECGBM5S.js → chunk-ENJWB5LU.js} +6 -6
  36. package/dist/{chunk-7LIDBQDO.js → chunk-FAJS2N4O.js} +5 -5
  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-UJ4FJLBF.js → chunk-FX2USYOU.js} +13 -1
  40. package/dist/{chunk-Z6G367CM.js → chunk-HTGYAMOK.js} +3 -3
  41. package/dist/{chunk-Z4KRDDZC.js → chunk-HWNF22ZZ.js} +20 -15
  42. package/dist/{chunk-Y37EDBPR.js → chunk-IFJIYUI6.js} +2 -2
  43. package/dist/{chunk-QQI4JTJB.js → chunk-IQ4W4Q2R.js} +2 -2
  44. package/dist/{chunk-FH3S7FDS.js → chunk-ISKO4MQ5.js} +4 -4
  45. package/dist/{chunk-EDFUVEO6.js → chunk-IWNHEK5K.js} +6 -6
  46. package/dist/{chunk-BQVCENFX.js → chunk-JIWDWOYA.js} +3 -3
  47. package/dist/{chunk-HAGHVHR7.js → chunk-K6MQJ5IV.js} +2 -2
  48. package/dist/{chunk-MOMPLSQI.js → chunk-KJWIU5AM.js} +2 -2
  49. package/dist/{chunk-65KNPZCC.js → chunk-KOVRFBGR.js} +25 -4
  50. package/dist/{chunk-SHS3O7ZZ.js → chunk-LJS4Z326.js} +3 -3
  51. package/dist/{chunk-NZ2Z4ZEN.js → chunk-LSHROB27.js} +3 -3
  52. package/dist/{chunk-Q7UM3R3Y.js → chunk-LTGOPJUV.js} +2 -2
  53. package/dist/{chunk-WBPWR2CX.js → chunk-LUI425JB.js} +3 -3
  54. package/dist/{chunk-USOLDMYO.js → chunk-LXGUK56B.js} +5 -5
  55. package/dist/{chunk-MMYRNZRQ.js → chunk-MC2H32SM.js} +3 -3
  56. package/dist/{chunk-CE2Z3OXR.js → chunk-MFSTE3YG.js} +18 -4
  57. package/dist/{chunk-4FEPSBUH.js → chunk-MKNWMFZU.js} +15 -5
  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-76XAJN7L.js → chunk-NEC7R2CB.js} +2 -2
  61. package/dist/{chunk-56TCBKXP.js → chunk-NJKUTY4M.js} +3 -3
  62. package/dist/{chunk-D62K46CW.js → chunk-NNMNHE3J.js} +2 -2
  63. package/dist/{chunk-XDEVAAY4.js → chunk-NTBHGUXY.js} +13 -3
  64. package/dist/{chunk-YYFIZ3AO.js → chunk-NUF7YTHA.js} +2 -2
  65. package/dist/{chunk-AA6LBVBN.js → chunk-PBV2C3BW.js} +27 -6
  66. package/dist/{chunk-2QLYLYLN.js → chunk-PLSTP7P4.js} +40 -40
  67. package/dist/{chunk-CVMD5UWI.js → chunk-QAJFIXJE.js} +19 -5
  68. package/dist/{chunk-YA464EGR.js → chunk-QPG55HGH.js} +3 -3
  69. package/dist/{chunk-MUXI4Y6U.js → chunk-REBTZP3W.js} +2 -2
  70. package/dist/{chunk-H7LQGRM3.js → chunk-RJI6MHHK.js} +3 -3
  71. package/dist/{chunk-TSY25V7W.js → chunk-RNSGPTOZ.js} +3 -3
  72. package/dist/{chunk-UFKFABSP.js → chunk-T3LNWU7B.js} +6 -6
  73. package/dist/{chunk-G5UTJZFR.js → chunk-T7W5LM4N.js} +11 -3
  74. package/dist/{chunk-GAK5UOKL.js → chunk-TF7CFAZ5.js} +3 -3
  75. package/dist/{chunk-H4VRTBMS.js → chunk-TGGKBY22.js} +58 -15
  76. package/dist/{chunk-FQ7OYKOS.js → chunk-UIBPFSIT.js} +6 -6
  77. package/dist/{chunk-ZLPNK7U2.js → chunk-UNM2PX5D.js} +3 -3
  78. package/dist/{chunk-JR6H5MEF.js → chunk-UNTFANSM.js} +3 -3
  79. package/dist/{chunk-UG3MRJL6.js → chunk-UTVKOGFF.js} +2 -2
  80. package/dist/{chunk-JCAINYVG.js → chunk-UVAOL2EO.js} +5 -5
  81. package/dist/{chunk-MGAWLZQE.js → chunk-UY77QQWU.js} +2 -2
  82. package/dist/{chunk-7LMDJ3U7.js → chunk-VE7PPEU3.js} +105 -18
  83. package/dist/{chunk-MZBEPHFY.js → chunk-VGLSKDDI.js} +2 -2
  84. package/dist/{chunk-5FBSYKPQ.js → chunk-VMXV2CL5.js} +4 -4
  85. package/dist/{chunk-FFI25S5O.js → chunk-W27BULCB.js} +4 -4
  86. package/dist/{chunk-NTXNVS47.js → chunk-W7SZKJR6.js} +3 -3
  87. package/dist/{chunk-MACY4WJ4.js → chunk-WEC3JPTN.js} +4 -4
  88. package/dist/{chunk-LQB3NKEA.js → chunk-WPXHTYET.js} +16 -11
  89. package/dist/{chunk-HQBY3N3S.js → chunk-X2NX2SK6.js} +2 -2
  90. package/dist/{chunk-QQFO63AA.js → chunk-XIZCHGP7.js} +3 -3
  91. package/dist/{chunk-QRLNO6C7.js → chunk-XJZSN42P.js} +188 -120
  92. package/dist/{chunk-6KJMPC6H.js → chunk-XQW4KFJ4.js} +8 -8
  93. package/dist/{chunk-XAPHRRQ4.js → chunk-YCOGUPHL.js} +4 -4
  94. package/dist/{chunk-PYL2K5CE.js → chunk-YG35ZCNW.js} +20 -5
  95. package/dist/{chunk-6NEFSIL3.js → chunk-YH5KJIO5.js} +4 -4
  96. package/dist/{chunk-N5XT3OWL.js → chunk-YTFA4VTW.js} +2 -2
  97. package/dist/{chunk-SW36YNNE.js → chunk-YYBQ55V2.js} +35 -74
  98. package/dist/{chunk-M2QQQWM3.js → chunk-ZJJWON5O.js} +15 -5
  99. package/dist/{chunk-WN6V4ILM.js → chunk-ZNHPCITV.js} +4 -4
  100. package/dist/collapse-JRGPUE67.js +13 -0
  101. package/dist/completion-registry.js +14 -9
  102. package/dist/dgmo-router-J6OWNMEJ.js +89 -0
  103. package/dist/{dgmo-router-EAW7XiBE.d.ts → dgmo-router-Lya7cs3R.d.ts} +28 -0
  104. package/dist/{dimensions-RIZPH26J.js → dimensions-EFEBIRS6.js} +5 -5
  105. package/dist/editor.js +6 -3
  106. package/dist/{flowchart-parser-A64T3OEL.js → flowchart-parser-LZF2GW2P.js} +4 -4
  107. package/dist/{flowchart-renderer-F6PDPKK7.js → flowchart-renderer-HB277GNE.js} +5 -5
  108. package/dist/highlight.js +6 -3
  109. package/dist/index.d.ts +1 -1
  110. package/dist/index.js +55 -46
  111. package/dist/{layout-2D6VKW6G.js → layout-2DVT24YY.js} +3 -3
  112. package/dist/{layout-FFCYSTW7.js → layout-AWPST2S3.js} +3 -3
  113. package/dist/{layout-CYNBG5EP.js → layout-BGXLVSXL.js} +4 -4
  114. package/dist/{layout-COGPMCW5.js → layout-BNR6ZDB6.js} +4 -4
  115. package/dist/{layout-36Z4NU4W.js → layout-N6ZOOAYT.js} +4 -4
  116. package/dist/{layout-2DUQIJOI.js → layout-PBB2RQJ4.js} +4 -4
  117. package/dist/{parser-LGDW543A.js → parser-2CXA7K5C.js} +4 -4
  118. package/dist/{parser-6OWUGHKY.js → parser-4E2TVMOK.js} +4 -4
  119. package/dist/{parser-2PN2WRYX.js → parser-52AZJ3BA.js} +4 -4
  120. package/dist/{parser-A3B5KVPK.js → parser-52BOCAVQ.js} +4 -4
  121. package/dist/{parser-FNOWLKC4.js → parser-5IPCYVXY.js} +4 -4
  122. package/dist/{parser-U3T76HY2.js → parser-6BF5TJQH.js} +4 -4
  123. package/dist/{parser-SEFSLUXW.js → parser-6VZISXFY.js} +3 -3
  124. package/dist/{parser-VDD3N5SC.js → parser-6Y5BMNNJ.js} +5 -5
  125. package/dist/{parser-LJZIQJRA.js → parser-7HUZBXKW.js} +3 -3
  126. package/dist/{parser-PXI5UCVR.js → parser-AEJ73QJS.js} +3 -3
  127. package/dist/{parser-M7HBD7V2.js → parser-AWNEAGMJ.js} +4 -4
  128. package/dist/{parser-53ALMRAE.js → parser-C2QRTZPJ.js} +4 -4
  129. package/dist/{parser-DLIBNGNQ.js → parser-CBSYFN6U.js} +3 -3
  130. package/dist/{parser-IL4T3HCM.js → parser-CDMP3UVH.js} +4 -4
  131. package/dist/{parser-CDA5DGXA.js → parser-CNKHKQKZ.js} +4 -4
  132. package/dist/{parser-VQKLDBS7.js → parser-EX3AGFT5.js} +4 -4
  133. package/dist/{parser-SOOR27MC.js → parser-GK3JWVHY.js} +5 -5
  134. package/dist/{parser-4VIMOING.js → parser-GZKR6BFA.js} +4 -4
  135. package/dist/{parser-YCRATNR6.js → parser-K26KDCZN.js} +3 -3
  136. package/dist/{parser-SZXKUTVE.js → parser-LTJ5AKY4.js} +4 -4
  137. package/dist/{parser-Q2K7TDEA.js → parser-NIGB4EYX.js} +3 -3
  138. package/dist/{parser-DAMYSBVY.js → parser-O7GTECFP.js} +3 -3
  139. package/dist/{parser-3QXKYLDG.js → parser-OHWDJGCP.js} +3 -3
  140. package/dist/{parser-RZIIZ3EW.js → parser-QCVEWLCO.js} +3 -3
  141. package/dist/{parser-E33LTBYE.js → parser-SUAOF72Y.js} +4 -4
  142. package/dist/{parser-CLDLYMDI.js → parser-TJ3SP2MJ.js} +4 -4
  143. package/dist/{parser-GEELVJ4X.js → parser-W2HXBHNC.js} +3 -3
  144. package/dist/{parser-2QQJFTMD.js → parser-WF4R7225.js} +4 -4
  145. package/dist/{parser-5ETIIQIM.js → parser-XM6JC3UK.js} +4 -4
  146. package/dist/{parser-D5EZ6Y5I.js → parser-XRZQ7SC7.js} +4 -4
  147. package/dist/{parser-ZXI4IQ5Y.js → parser-YRJAGBV7.js} +4 -4
  148. package/dist/{parser-4CEHZFZG.js → parser-Z3LN7P6G.js} +5 -5
  149. package/dist/{parser-52SRJNP4.js → parser-ZIEEBJMU.js} +4 -4
  150. package/dist/{renderer-PR3AGJ37.js → renderer-2MEPYGAP.js} +7 -7
  151. package/dist/{renderer-SDCMF5AF.js → renderer-35HBBPIQ.js} +5 -5
  152. package/dist/{renderer-WA5K5VWA.js → renderer-3DSU72CP.js} +7 -7
  153. package/dist/{renderer-WPGW6FTW.js → renderer-4CUV63GT.js} +7 -7
  154. package/dist/{renderer-3VPTEQBU.js → renderer-4ORE7HJ3.js} +5 -5
  155. package/dist/{renderer-AF6DVUZH.js → renderer-5FQFMCBZ.js} +7 -7
  156. package/dist/{renderer-YZMFPZGC.js → renderer-5YV6KP4U.js} +7 -7
  157. package/dist/{renderer-Q24E7LBF.js → renderer-7BGC4KPZ.js} +5 -5
  158. package/dist/{renderer-P2MICJH5.js → renderer-7VPABTMS.js} +7 -7
  159. package/dist/{renderer-VTP3QCCP.js → renderer-ANWAX5QO.js} +6 -6
  160. package/dist/{renderer-U7INHN4J.js → renderer-BQWAUDEF.js} +4 -4
  161. package/dist/renderer-DGZDRRJW.js +76 -0
  162. package/dist/{renderer-PUYQ5CDE.js → renderer-E3UQ24DE.js} +5 -5
  163. package/dist/{renderer-UC2ZZISO.js → renderer-FCIOD2QK.js} +5 -5
  164. package/dist/{renderer-VK6KVXFB.js → renderer-H5QR3LC3.js} +4 -4
  165. package/dist/{renderer-KVRTLE2D.js → renderer-JFZVWH2G.js} +3 -3
  166. package/dist/{renderer-EVHFS3PP.js → renderer-JHWGW4Q7.js} +5 -5
  167. package/dist/{renderer-RY7RQQ37.js → renderer-JWSO5O2L.js} +3 -3
  168. package/dist/{renderer-REULT7UI.js → renderer-KFWZPVYT.js} +7 -7
  169. package/dist/{renderer-MGYWZFFR.js → renderer-KQIJV5WD.js} +5 -5
  170. package/dist/{renderer-4LLJHGIQ.js → renderer-LVAUI6T6.js} +6 -6
  171. package/dist/{renderer-52YQ3EYR.js → renderer-MZ4N2SVV.js} +5 -5
  172. package/dist/{renderer-KLRBL45Z.js → renderer-QMSFXMAL.js} +5 -5
  173. package/dist/{renderer-SFYFVKVN.js → renderer-QOWN3XDI.js} +8 -6
  174. package/dist/{renderer-3EN7ZSXI.js → renderer-S5MGQHRQ.js} +6 -6
  175. package/dist/{renderer-F75AZ6HF.js → renderer-V3PN5ZQS.js} +5 -5
  176. package/dist/{renderer-QOI2SEEA.js → renderer-VOXE7V6L.js} +7 -7
  177. package/dist/{renderer-XOPHJWNZ.js → renderer-WBG576LB.js} +5 -5
  178. package/dist/{renderer-RJLAM6G5.js → renderer-YXYEP46H.js} +6 -6
  179. package/dist/{renderer-BT6TOWBE.js → renderer-ZEPPPA3W.js} +3 -3
  180. package/dist/{renderer-radial-AVHNPO2N.js → renderer-radial-KZ3W4WXI.js} +6 -6
  181. package/dist/{state-parser-GSU2ZDVR.js → state-parser-HJNCGIFT.js} +5 -5
  182. package/dist/{state-renderer-Q6XQDK3W.js → state-renderer-776LP3NE.js} +7 -7
  183. package/docs/language-reference.md +22 -1
  184. package/package.json +2 -1
  185. package/dist/collapse-CLPJD2RL.js +0 -11
  186. package/dist/dgmo-router-YFNEFJST.js +0 -89
  187. package/dist/renderer-BQORZPWF.js +0 -76
@@ -24,6 +24,17 @@ var ORG_SHAPE = {
24
24
  },
25
25
  countsAsHidden: (node) => !node.isContainer
26
26
  };
27
+ function unionCollapsedOrgNodes(parsed, interactive) {
28
+ const ids = new Set(interactive ?? []);
29
+ const walk = (nodes) => {
30
+ for (const node of nodes) {
31
+ if (node.collapsed) ids.add(node.id);
32
+ walk(node.children);
33
+ }
34
+ };
35
+ walk(parsed.roots);
36
+ return ids;
37
+ }
27
38
  function collapseOrgTree(original, collapsedIds) {
28
39
  if (collapsedIds.size === 0) {
29
40
  return { parsed: original, hiddenCounts: /* @__PURE__ */ new Map() };
@@ -80,7 +91,8 @@ function focusOrgTree(original, focusNodeId) {
80
91
  }
81
92
 
82
93
  export {
94
+ unionCollapsedOrgNodes,
83
95
  collapseOrgTree,
84
96
  focusOrgTree
85
97
  };
86
- //# sourceMappingURL=chunk-UJ4FJLBF.js.map
98
+ //# sourceMappingURL=chunk-FX2USYOU.js.map
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-U7VO6JAA.js";
11
11
  import {
12
12
  parseDgmoChartType
13
- } from "./chunk-2QLYLYLN.js";
13
+ } from "./chunk-PLSTP7P4.js";
14
14
  import {
15
15
  chartTypes
16
- } from "./chunk-M2QQQWM3.js";
16
+ } from "./chunk-ZJJWON5O.js";
17
17
 
18
18
  // src/error-card.ts
19
19
  var DOCS_BASE = "https://diagrammo.app/docs";
@@ -204,4 +204,4 @@ export {
204
204
  MONO_FAMILY,
205
205
  renderErrorCard
206
206
  };
207
- //# sourceMappingURL=chunk-Z6G367CM.js.map
207
+ //# sourceMappingURL=chunk-HTGYAMOK.js.map
@@ -3,12 +3,13 @@ import {
3
3
  } from "./chunk-RRX4Z4TH.js";
4
4
  import {
5
5
  AUTO_TAG_COLOR_SENTINEL,
6
+ activeTagNoMatchMessage,
6
7
  finalizeAutoTagColors,
7
8
  matchTagBlockHeading,
8
9
  stripDefaultModifier,
9
10
  tagAttrKey,
10
11
  validateTagGroupNames
11
- } from "./chunk-PBXMUXBW.js";
12
+ } from "./chunk-DPGI742S.js";
12
13
  import {
13
14
  MAP_DIRECTIVE_KEY_SET,
14
15
  MAP_REGISTRY,
@@ -17,7 +18,7 @@ import {
17
18
  peelRampColors,
18
19
  splitNameAndMeta,
19
20
  withTagAliases
20
- } from "./chunk-M2QQQWM3.js";
21
+ } from "./chunk-ZJJWON5O.js";
21
22
  import {
22
23
  NEGATIVE_VALUE_DX,
23
24
  emit,
@@ -80,8 +81,8 @@ function parseMap(content, palette) {
80
81
  pushError(line, message);
81
82
  return result;
82
83
  };
83
- const pushWarning = (line, message) => {
84
- diagnostics.push(makeDgmoError(line, message, "warning"));
84
+ const pushWarning = (line, message, code) => {
85
+ diagnostics.push(makeDgmoError(line, message, "warning", code));
85
86
  };
86
87
  const lines = content.split("\n");
87
88
  let firstIdx = 0;
@@ -109,6 +110,7 @@ function parseMap(content, palette) {
109
110
  const routes = result.routes;
110
111
  const edges = result.edges;
111
112
  const aliasMap = /* @__PURE__ */ new Map();
113
+ let activeTagOptionLine = 0;
112
114
  const open = { tag: null, route: null, poi: null };
113
115
  const registry = () => withTagAliases(MAP_REGISTRY, new Set(aliasMap.keys()));
114
116
  const tagGroupNames = () => new Set(tagGroups.map((g) => tagAttrKey(g.name)));
@@ -202,16 +204,18 @@ function parseMap(content, palette) {
202
204
  pushWarning,
203
205
  (line, m) => pushError(line, m)
204
206
  );
205
- const at = result.directives.activeTag;
206
- if (at && at.toLowerCase() !== "none") {
207
- const names = tagGroupNames();
208
- if (!names.has(at.toLowerCase())) {
209
- const hint = tagGroups.length ? ` Declared groups: ${tagGroups.map((g) => g.name).join(", ")}.` : " No tag groups are declared.";
210
- pushWarning(
211
- 0,
212
- `active-tag "${at}" does not match a declared tag group.${hint}`
213
- );
214
- }
207
+ const activeTagWarning = activeTagNoMatchMessage(
208
+ result.directives.activeTag,
209
+ tagGroups,
210
+ regions.some((r) => r.value !== void 0) ? [result.directives.regionMetric?.trim() || "Value"] : [],
211
+ "the value ramp"
212
+ );
213
+ if (activeTagWarning) {
214
+ pushWarning(
215
+ activeTagOptionLine || 1,
216
+ activeTagWarning,
217
+ "W_ACTIVE_TAG_NO_MATCH"
218
+ );
215
219
  }
216
220
  return result;
217
221
  function rejectForeignChannels(meta, own, line) {
@@ -272,6 +276,7 @@ function parseMap(content, palette) {
272
276
  case "active-tag":
273
277
  dup(d.activeTag);
274
278
  d.activeTag = value;
279
+ activeTagOptionLine = line;
275
280
  break;
276
281
  case "caption":
277
282
  dup(d.caption);
@@ -652,4 +657,4 @@ export {
652
657
  looksLikeMap,
653
658
  parseMap
654
659
  };
655
- //# sourceMappingURL=chunk-Z4KRDDZC.js.map
660
+ //# sourceMappingURL=chunk-HWNF22ZZ.js.map
@@ -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-IFJIYUI6.js.map
@@ -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,
@@ -428,4 +428,4 @@ export {
428
428
  renderPyramid,
429
429
  renderPyramidForExport
430
430
  };
431
- //# sourceMappingURL=chunk-QQI4JTJB.js.map
431
+ //# sourceMappingURL=chunk-IQ4W4Q2R.js.map
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-A4GOY3PE.js";
37
37
  import {
38
38
  renderIntegratedLegend
39
- } from "./chunk-VSZRPDIZ.js";
39
+ } from "./chunk-6S53NO3M.js";
40
40
  import {
41
41
  getLegendExtent
42
42
  } from "./chunk-MTPKBSTR.js";
@@ -53,7 +53,7 @@ import {
53
53
  } from "./chunk-MTGGOCND.js";
54
54
  import {
55
55
  parsePert
56
- } from "./chunk-XDEVAAY4.js";
56
+ } from "./chunk-NTBHGUXY.js";
57
57
  import {
58
58
  addCalendarDays,
59
59
  formatDuration,
@@ -64,7 +64,7 @@ import {
64
64
  import {
65
65
  resolveActiveTagGroup,
66
66
  resolveTagColor
67
- } from "./chunk-PBXMUXBW.js";
67
+ } from "./chunk-DPGI742S.js";
68
68
  import {
69
69
  contrastText,
70
70
  mix,
@@ -1871,4 +1871,4 @@ export {
1871
1871
  measurePertAnalysisBlock,
1872
1872
  renderPertAnalysisBlock
1873
1873
  };
1874
- //# sourceMappingURL=chunk-FH3S7FDS.js.map
1874
+ //# sourceMappingURL=chunk-ISKO4MQ5.js.map
@@ -3,7 +3,7 @@ import {
3
3
  layoutJourneyMap,
4
4
  scoreToColor,
5
5
  scoreToCurveY
6
- } from "./chunk-6NWCQCJV.js";
6
+ } from "./chunk-MWWRIOEN.js";
7
7
  import {
8
8
  wrapNoteBody
9
9
  } from "./chunk-MU3CJPJF.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-RU2HHHYA.js";
25
25
  import {
26
26
  renderIntegratedLegend
27
- } from "./chunk-VSZRPDIZ.js";
27
+ } from "./chunk-6S53NO3M.js";
28
28
  import {
29
29
  FONT_FAMILY
30
30
  } from "./chunk-UTCPNJND.js";
@@ -35,14 +35,14 @@ import {
35
35
  } from "./chunk-MTGGOCND.js";
36
36
  import {
37
37
  parseJourneyMap
38
- } from "./chunk-6WI76LHG.js";
38
+ } from "./chunk-376ATV2Q.js";
39
39
  import {
40
40
  resolveActiveTagGroup,
41
41
  tagAttrKey
42
- } from "./chunk-PBXMUXBW.js";
42
+ } from "./chunk-DPGI742S.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
  mix,
@@ -877,4 +877,4 @@ export {
877
877
  renderJourneyMap,
878
878
  renderJourneyMapForExport
879
879
  };
880
- //# sourceMappingURL=chunk-EDFUVEO6.js.map
880
+ //# sourceMappingURL=chunk-IWNHEK5K.js.map
@@ -9,13 +9,13 @@ import {
9
9
  tagAttrKey,
10
10
  validateTagGroupNames,
11
11
  validateTagValues
12
- } from "./chunk-PBXMUXBW.js";
12
+ } from "./chunk-DPGI742S.js";
13
13
  import {
14
14
  extractColor,
15
15
  fillModeFromToken,
16
16
  measureIndent,
17
17
  parseFirstLine
18
- } from "./chunk-M2QQQWM3.js";
18
+ } from "./chunk-ZJJWON5O.js";
19
19
  import {
20
20
  formatDgmoError,
21
21
  makeDgmoError,
@@ -342,4 +342,4 @@ function parseBlockTail(tail, aliasMap) {
342
342
  export {
343
343
  parseBlock
344
344
  };
345
- //# sourceMappingURL=chunk-BQVCENFX.js.map
345
+ //# sourceMappingURL=chunk-JIWDWOYA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFirstLine
3
- } from "./chunk-M2QQQWM3.js";
3
+ } from "./chunk-ZJJWON5O.js";
4
4
  import {
5
5
  parseCloudReferenceFence,
6
6
  parseCloudReferenceUrl
@@ -219,4 +219,4 @@ export {
219
219
  isLiveLinkLine,
220
220
  parseLiveLink
221
221
  };
222
- //# sourceMappingURL=chunk-HAGHVHR7.js.map
222
+ //# sourceMappingURL=chunk-K6MQJ5IV.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
@@ -127,4 +127,4 @@ function parsePyramid(content) {
127
127
  export {
128
128
  parsePyramid
129
129
  };
130
- //# sourceMappingURL=chunk-MOMPLSQI.js.map
130
+ //# sourceMappingURL=chunk-KJWIU5AM.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";
@@ -13,13 +13,14 @@ import {
13
13
  } from "./chunk-NOTA6TEI.js";
14
14
  import {
15
15
  AUTO_TAG_COLOR_SENTINEL,
16
+ activeTagNoMatchMessage,
16
17
  finalizeAutoTagColors,
17
18
  matchTagBlockHeading,
18
19
  stripDefaultModifier,
19
20
  tagAttrKey,
20
21
  validateTagGroupNames,
21
22
  validateTagValues
22
- } from "./chunk-PBXMUXBW.js";
23
+ } from "./chunk-DPGI742S.js";
23
24
  import {
24
25
  ER_REGISTRY,
25
26
  OPTION_NOCOLON_RE,
@@ -32,7 +33,7 @@ import {
32
33
  tryParseSharedOption,
33
34
  warnUnknownMetaKeys,
34
35
  withTagAliases
35
- } from "./chunk-M2QQQWM3.js";
36
+ } from "./chunk-ZJJWON5O.js";
36
37
  import {
37
38
  resolveColorWithDiagnostic
38
39
  } from "./chunk-EXNKNJ65.js";
@@ -154,6 +155,8 @@ function parseERDiagram(content, palette) {
154
155
  let currentTable = null;
155
156
  const notes = [];
156
157
  let contentStarted = false;
158
+ let activeTagOptionLine = 0;
159
+ let activeTagRaw;
157
160
  let currentTagGroup = null;
158
161
  const metaAliasMap = /* @__PURE__ */ new Map();
159
162
  const nameAliasMap = /* @__PURE__ */ new Map();
@@ -280,6 +283,10 @@ function parseERDiagram(content, palette) {
280
283
  const value = optMatch[2].trim();
281
284
  if (KNOWN_OPTIONS.has(key)) {
282
285
  options[key] = value.toLowerCase();
286
+ if (key === "active-tag") {
287
+ activeTagRaw = value;
288
+ activeTagOptionLine = lineNumber;
289
+ }
283
290
  continue;
284
291
  }
285
292
  }
@@ -469,6 +476,20 @@ function parseERDiagram(content, palette) {
469
476
  }
470
477
  }
471
478
  }
479
+ const activeTagWarning = activeTagNoMatchMessage(
480
+ activeTagRaw,
481
+ result.tagGroups
482
+ );
483
+ if (activeTagWarning) {
484
+ result.diagnostics.push(
485
+ makeDgmoError(
486
+ activeTagOptionLine || 1,
487
+ activeTagWarning,
488
+ "warning",
489
+ "W_ACTIVE_TAG_NO_MATCH"
490
+ )
491
+ );
492
+ }
472
493
  return result;
473
494
  }
474
495
  var CONSTRAINT_KEYWORD_RE = /\b(pk|fk)\b/i;
@@ -533,4 +554,4 @@ export {
533
554
  looksLikeERDiagram,
534
555
  extractSymbols
535
556
  };
536
- //# sourceMappingURL=chunk-65KNPZCC.js.map
557
+ //# sourceMappingURL=chunk-KOVRFBGR.js.map
@@ -19,14 +19,14 @@ import {
19
19
  } from "./chunk-MTGGOCND.js";
20
20
  import {
21
21
  allTasks
22
- } from "./chunk-G5UTJZFR.js";
22
+ } from "./chunk-T7W5LM4N.js";
23
23
  import {
24
24
  VARIANTS
25
25
  } from "./chunk-I55PVEIX.js";
26
26
  import {
27
27
  fillModeFromOptions,
28
28
  legendSuppressed
29
- } from "./chunk-M2QQQWM3.js";
29
+ } from "./chunk-ZJJWON5O.js";
30
30
  import {
31
31
  contrastText,
32
32
  mix,
@@ -859,4 +859,4 @@ export {
859
859
  renderRaci,
860
860
  renderRaciForExport
861
861
  };
862
- //# sourceMappingURL=chunk-SHS3O7ZZ.js.map
862
+ //# sourceMappingURL=chunk-LJS4Z326.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderIntegratedLegend
3
- } from "./chunk-VSZRPDIZ.js";
3
+ } from "./chunk-6S53NO3M.js";
4
4
  import {
5
5
  FONT_FAMILY
6
6
  } from "./chunk-UTCPNJND.js";
@@ -13,7 +13,7 @@ import {
13
13
  resolveActiveTagGroup,
14
14
  resolveTagColor,
15
15
  tagAttrKey
16
- } from "./chunk-PBXMUXBW.js";
16
+ } from "./chunk-DPGI742S.js";
17
17
  import {
18
18
  getSeriesColors,
19
19
  mix,
@@ -346,4 +346,4 @@ export {
346
346
  renderBody,
347
347
  renderBodyForExport
348
348
  };
349
- //# sourceMappingURL=chunk-NZ2Z4ZEN.js.map
349
+ //# sourceMappingURL=chunk-LSHROB27.js.map
@@ -5,7 +5,7 @@ import {
5
5
  normalizeNumericToken,
6
6
  parseFirstLine,
7
7
  tryParseSharedOption
8
- } from "./chunk-M2QQQWM3.js";
8
+ } from "./chunk-ZJJWON5O.js";
9
9
  import {
10
10
  makeDgmoError,
11
11
  makeFail
@@ -158,4 +158,4 @@ function parseGoal(content, palette) {
158
158
  export {
159
159
  parseGoal
160
160
  };
161
- //# sourceMappingURL=chunk-Q7UM3R3Y.js.map
161
+ //# sourceMappingURL=chunk-LTGOPJUV.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-YYVTBZZC.js";
8
8
  import {
9
9
  renderIntegratedLegend
10
- } from "./chunk-VSZRPDIZ.js";
10
+ } from "./chunk-6S53NO3M.js";
11
11
  import {
12
12
  getMaxLegendReservedHeight
13
13
  } from "./chunk-MTPKBSTR.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  fillModeFromOptions,
24
24
  legendSuppressed
25
- } from "./chunk-M2QQQWM3.js";
25
+ } from "./chunk-ZJJWON5O.js";
26
26
  import {
27
27
  contrastText,
28
28
  mix,
@@ -1603,4 +1603,4 @@ export {
1603
1603
  renderTechRadar,
1604
1604
  renderTechRadarForExport
1605
1605
  };
1606
- //# sourceMappingURL=chunk-WBPWR2CX.js.map
1606
+ //# sourceMappingURL=chunk-LUI425JB.js.map
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-A4GOY3PE.js";
36
36
  import {
37
37
  renderIntegratedLegend
38
- } from "./chunk-VSZRPDIZ.js";
38
+ } from "./chunk-6S53NO3M.js";
39
39
  import {
40
40
  getLegendExtent,
41
41
  getMaxLegendReservedHeight
@@ -48,17 +48,17 @@ import {
48
48
  } from "./chunk-MTGGOCND.js";
49
49
  import {
50
50
  parseState
51
- } from "./chunk-6NEFSIL3.js";
51
+ } from "./chunk-YH5KJIO5.js";
52
52
  import {
53
53
  resolveActiveTagGroup,
54
54
  resolveTagColor,
55
55
  tagAttrKey
56
- } from "./chunk-PBXMUXBW.js";
56
+ } from "./chunk-DPGI742S.js";
57
57
  import {
58
58
  fillModeFromOptions,
59
59
  legendInlineRequested,
60
60
  legendSuppressed
61
- } from "./chunk-M2QQQWM3.js";
61
+ } from "./chunk-ZJJWON5O.js";
62
62
  import {
63
63
  contrastText,
64
64
  mix,
@@ -481,4 +481,4 @@ export {
481
481
  renderState,
482
482
  renderStateForExport
483
483
  };
484
- //# sourceMappingURL=chunk-USOLDMYO.js.map
484
+ //# sourceMappingURL=chunk-LXGUK56B.js.map
@@ -8,14 +8,14 @@ import {
8
8
  resolveActiveTagGroup,
9
9
  stripDefaultModifier,
10
10
  tagAttrKey
11
- } from "./chunk-PBXMUXBW.js";
11
+ } from "./chunk-DPGI742S.js";
12
12
  import {
13
13
  extractColor,
14
14
  fillModeFromToken,
15
15
  measureIndent,
16
16
  parseFirstLine,
17
17
  splitNameAndMeta
18
- } from "./chunk-M2QQQWM3.js";
18
+ } from "./chunk-ZJJWON5O.js";
19
19
  import {
20
20
  makeDgmoError,
21
21
  makeFail
@@ -392,4 +392,4 @@ function parseBracket(content, palette) {
392
392
  export {
393
393
  parseBracket
394
394
  };
395
- //# sourceMappingURL=chunk-MMYRNZRQ.js.map
395
+ //# sourceMappingURL=chunk-MC2H32SM.js.map
@@ -17,7 +17,7 @@ import {
17
17
  stripDefaultModifier,
18
18
  tagAttrKey,
19
19
  validateTagGroupNames
20
- } from "./chunk-PBXMUXBW.js";
20
+ } from "./chunk-DPGI742S.js";
21
21
  import {
22
22
  INFRA_BEHAVIOR_KEY_SET,
23
23
  INFRA_EDGE_ONLY_KEY_SET,
@@ -30,7 +30,7 @@ import {
30
30
  tryParseSharedOption,
31
31
  warnUnknownMetaKeys,
32
32
  withTagAliases
33
- } from "./chunk-M2QQQWM3.js";
33
+ } from "./chunk-ZJJWON5O.js";
34
34
  import {
35
35
  isRecognizedColorName
36
36
  } from "./chunk-EXNKNJ65.js";
@@ -822,9 +822,23 @@ function parseInfra(content) {
822
822
  }
823
823
  }
824
824
  }
825
+ for (const tg of result.tagGroups) {
826
+ const groupKey = tagAttrKey(tg.name);
827
+ const applied = /* @__PURE__ */ new Set([groupKey]);
828
+ if (tg.alias) applied.add(tagAttrKey(tg.alias));
829
+ for (const node of result.nodes) {
830
+ const tags = nodeMutableTags.get(node.id);
831
+ if (!tags) continue;
832
+ for (const key of Object.keys(tags)) {
833
+ if (key === groupKey || !applied.has(tagAttrKey(key))) continue;
834
+ tags[groupKey] = tags[key];
835
+ delete tags[key];
836
+ }
837
+ }
838
+ }
825
839
  for (const tg of result.tagGroups) {
826
840
  if (!tg.defaultValue) continue;
827
- const key = tagAttrKey(tg.alias ?? tg.name);
841
+ const key = tagAttrKey(tg.name);
828
842
  for (const node of result.nodes) {
829
843
  if (node.isEdge) continue;
830
844
  if (!(key in node.tags)) {
@@ -982,4 +996,4 @@ export {
982
996
  parseInfra,
983
997
  extractSymbols
984
998
  };
985
- //# sourceMappingURL=chunk-CE2Z3OXR.js.map
999
+ //# sourceMappingURL=chunk-MFSTE3YG.js.map
@@ -3,12 +3,13 @@ import {
3
3
  } from "./chunk-NOTA6TEI.js";
4
4
  import {
5
5
  AUTO_TAG_COLOR_SENTINEL,
6
+ activeTagNoMatchMessage,
6
7
  finalizeAutoTagColors,
7
8
  matchTagBlockHeading,
8
9
  stripDefaultModifier,
9
10
  tagAttrKey,
10
11
  validateTagGroupNames
11
- } from "./chunk-PBXMUXBW.js";
12
+ } from "./chunk-DPGI742S.js";
12
13
  import {
13
14
  KANBAN_REGISTRY,
14
15
  OPTION_NOCOLON_RE,
@@ -20,7 +21,7 @@ import {
20
21
  splitNameAndMeta,
21
22
  warnUnknownMetaKeys,
22
23
  withTagAliases
23
- } from "./chunk-M2QQQWM3.js";
24
+ } from "./chunk-ZJJWON5O.js";
24
25
  import {
25
26
  resolveColorWithDiagnostic
26
27
  } from "./chunk-EXNKNJ65.js";
@@ -57,14 +58,15 @@ function parseKanban(content, palette) {
57
58
  error: null
58
59
  };
59
60
  const fail = makeFail(result);
60
- const warn = (line, message) => {
61
- result.diagnostics.push(makeDgmoError(line, message, "warning"));
61
+ const warn = (line, message, code) => {
62
+ result.diagnostics.push(makeDgmoError(line, message, "warning", code));
62
63
  };
63
64
  if (!content?.trim()) {
64
65
  return fail(0, "No content provided");
65
66
  }
66
67
  const lines = content.split("\n");
67
68
  let contentStarted = false;
69
+ let activeTagOptionLine = 0;
68
70
  let currentTagGroup = null;
69
71
  let currentColumn = null;
70
72
  let currentCard = null;
@@ -141,6 +143,7 @@ function parseKanban(content, palette) {
141
143
  const key = optMatch[1].trim().toLowerCase();
142
144
  if (KNOWN_OPTIONS.has(key)) {
143
145
  options[key] = optMatch[2].trim();
146
+ if (key === "active-tag") activeTagOptionLine = lineNumber;
144
147
  continue;
145
148
  }
146
149
  }
@@ -349,6 +352,13 @@ function parseKanban(content, palette) {
349
352
  result.diagnostics.push(diag);
350
353
  if (!result.error) result.error = formatDgmoError(diag);
351
354
  });
355
+ const activeTagWarning = activeTagNoMatchMessage(
356
+ options["active-tag"],
357
+ result.tagGroups
358
+ );
359
+ if (activeTagWarning) {
360
+ warn(activeTagOptionLine || 1, activeTagWarning, "W_ACTIVE_TAG_NO_MATCH");
361
+ }
352
362
  return result;
353
363
  }
354
364
  function parseCardLine(trimmed, lineNumber, counter, metaAliasMap, _palette, diagnostics) {
@@ -386,4 +396,4 @@ function parseCardLine(trimmed, lineNumber, counter, metaAliasMap, _palette, dia
386
396
  export {
387
397
  parseKanban
388
398
  };
389
- //# sourceMappingURL=chunk-4FEPSBUH.js.map
399
+ //# sourceMappingURL=chunk-MKNWMFZU.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-MTGGOCND.js";
5
5
  import {
6
6
  fillModeFromOptions
7
- } from "./chunk-M2QQQWM3.js";
7
+ } from "./chunk-ZJJWON5O.js";
8
8
  import {
9
9
  mix,
10
10
  shapeFill
@@ -290,4 +290,4 @@ export {
290
290
  scoreToCurveY,
291
291
  layoutJourneyMap
292
292
  };
293
- //# sourceMappingURL=chunk-6NWCQCJV.js.map
293
+ //# sourceMappingURL=chunk-MWWRIOEN.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  extractColor,
3
3
  measureIndent
4
- } from "./chunk-M2QQQWM3.js";
4
+ } from "./chunk-ZJJWON5O.js";
5
5
  import {
6
6
  makeDgmoError
7
7
  } from "./chunk-OLMWTJVU.js";
@@ -73,4 +73,4 @@ function tryCollectNote(lines, index, indent, palette, diagnostics) {
73
73
  export {
74
74
  tryCollectNote
75
75
  };
76
- //# sourceMappingURL=chunk-HK3JTWG3.js.map
76
+ //# sourceMappingURL=chunk-MX3BYU7V.js.map
@@ -7,7 +7,7 @@ import {
7
7
  extractColor,
8
8
  fillModeFromToken,
9
9
  parseFirstLine
10
- } from "./chunk-M2QQQWM3.js";
10
+ } from "./chunk-ZJJWON5O.js";
11
11
  import {
12
12
  makeDgmoError,
13
13
  makeFail
@@ -675,4 +675,4 @@ export {
675
675
  searchZones,
676
676
  parseClock
677
677
  };
678
- //# sourceMappingURL=chunk-76XAJN7L.js.map
678
+ //# sourceMappingURL=chunk-NEC7R2CB.js.map