@diagrammo/dgmo 0.50.1 → 0.51.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 (235) hide show
  1. package/dist/advanced.d.ts +6640 -0
  2. package/dist/advanced.js +207 -161
  3. package/dist/{analyzer-UYKBXAKR.js → analyzer-BJ54GIFB.js} +3 -3
  4. package/dist/auto.css +31 -8
  5. package/dist/auto.d.ts +60 -0
  6. package/dist/auto.js +169 -133
  7. package/dist/auto.mjs +2245 -1030
  8. package/dist/block.css +28 -8
  9. package/dist/block.d.ts +130 -0
  10. package/dist/block.js +103 -68
  11. package/dist/{charts-d3-LR6D3D7A.js → charts-d3-7E4B4IMW.js} +9 -9
  12. package/dist/{chunk-6IAA2QQ2.js → chunk-2EQMXBBQ.js} +2 -2
  13. package/dist/{chunk-XJLKLU4D.js → chunk-2ILHQOL3.js} +3 -3
  14. package/dist/{chunk-SXRTRMEE.js → chunk-2UJSV2VT.js} +3 -3
  15. package/dist/{chunk-LE4MYMLI.js → chunk-32XPAAET.js} +5 -5
  16. package/dist/{chunk-NU3XLTGP.js → chunk-332ZR4QU.js} +4 -4
  17. package/dist/{chunk-F7BFXWNQ.js → chunk-3JLKYGBQ.js} +2 -2
  18. package/dist/{chunk-QROYX7TT.js → chunk-3LV2NCB6.js} +3 -3
  19. package/dist/{chunk-ZAD4HV2G.js → chunk-3ODS2VGL.js} +99 -99
  20. package/dist/{chunk-3XGZF2QJ.js → chunk-3YSQZ75W.js} +6 -6
  21. package/dist/{chunk-FJUNPCYI.js → chunk-467TVMQL.js} +2 -2
  22. package/dist/{chunk-HHXOONLX.js → chunk-4B5YISOR.js} +38 -1
  23. package/dist/{chunk-6HJBFVLO.js → chunk-4QZ43D7I.js} +3 -3
  24. package/dist/{chunk-4S52SK6G.js → chunk-4VWJ4LW2.js} +15 -8
  25. package/dist/chunk-4XFBQT5O.js +35 -0
  26. package/dist/{chunk-2C56LEML.js → chunk-5F5ELR3V.js} +3 -3
  27. package/dist/{chunk-EAMEADTV.js → chunk-5PDTIBLV.js} +83 -21
  28. package/dist/{chunk-C2CVAM3U.js → chunk-5PZT4DQG.js} +160 -87
  29. package/dist/{chunk-IAEC4KLA.js → chunk-5QKQSSPO.js} +2 -2
  30. package/dist/{chunk-5OWVC2A6.js → chunk-5SVOCD5W.js} +6 -6
  31. package/dist/{chunk-VBYSIOOY.js → chunk-5WPNFSXP.js} +3 -3
  32. package/dist/{chunk-4MJ7M6YL.js → chunk-5X6YQA2J.js} +7 -7
  33. package/dist/{chunk-JJUOHGX2.js → chunk-65WJYYKJ.js} +4 -4
  34. package/dist/{chunk-3UIKSPFB.js → chunk-6BQFET7X.js} +3 -3
  35. package/dist/{chunk-U2HGPLZS.js → chunk-6H7O2OPM.js} +14 -1
  36. package/dist/{chunk-DZXYF2F5.js → chunk-6K2M4VSR.js} +3 -3
  37. package/dist/{chunk-PGEGPSCZ.js → chunk-6MNGECP2.js} +2 -2
  38. package/dist/{chunk-3XPUDB7B.js → chunk-6NFYEQDX.js} +266 -38
  39. package/dist/{chunk-4XK3FLFB.js → chunk-6NYWYNBI.js} +3 -3
  40. package/dist/{chunk-TWQUYVP3.js → chunk-7DF4J4RL.js} +4 -4
  41. package/dist/{chunk-H73FP42Q.js → chunk-7DYOELRK.js} +3 -3
  42. package/dist/{chunk-L3UHP6TD.js → chunk-7L4UJOY6.js} +1 -2
  43. package/dist/{chunk-QJP6PG7F.js → chunk-AB7INMR5.js} +9 -9
  44. package/dist/{chunk-3LKM6FMW.js → chunk-AE7II3E3.js} +2 -2
  45. package/dist/{chunk-BTUTZMPT.js → chunk-AFIEPDLX.js} +97 -42
  46. package/dist/chunk-APKUAJ2L.js +220 -0
  47. package/dist/{chunk-X6EZPSW6.js → chunk-AXW3M6OQ.js} +7 -7
  48. package/dist/{chunk-66RUL3XF.js → chunk-B63YB7X3.js} +5 -5
  49. package/dist/{chunk-DSWVNQVS.js → chunk-BGP54HVR.js} +4 -59
  50. package/dist/{chunk-3NODSS6A.js → chunk-BYJBIALT.js} +7 -7
  51. package/dist/{chunk-3YPY3OXD.js → chunk-CC4YRBWV.js} +2 -2
  52. package/dist/{chunk-HLJVEAOF.js → chunk-DY7XLRHK.js} +8 -33
  53. package/dist/{chunk-OMNGQPEZ.js → chunk-E7Y3SYKW.js} +3 -3
  54. package/dist/{chunk-HTMN2Z6U.js → chunk-EDA6C7MV.js} +50 -7
  55. package/dist/{chunk-7L3R6I3U.js → chunk-ENRS56GC.js} +3 -3
  56. package/dist/{chunk-2KGXHFYK.js → chunk-EXOQP75F.js} +7 -7
  57. package/dist/{chunk-BBGDM4NQ.js → chunk-F3FYUFUH.js} +26 -8
  58. package/dist/{chunk-GL5UZ6NY.js → chunk-FC5I2KXV.js} +3 -3
  59. package/dist/{chunk-VVW3F3MD.js → chunk-FTBZV6NE.js} +9 -9
  60. package/dist/{chunk-7QKLIMRZ.js → chunk-G3PF3S7P.js} +41 -46
  61. package/dist/{chunk-J6K7RP6P.js → chunk-GD6L76WD.js} +3 -3
  62. package/dist/{chunk-I2WKW7C7.js → chunk-GGHRAITI.js} +3 -3
  63. package/dist/{chunk-YIA4LEX4.js → chunk-GNSFLJAA.js} +96 -4
  64. package/dist/{chunk-IUMPEA64.js → chunk-GROLTAWZ.js} +4 -4
  65. package/dist/{chunk-Q4V4XQWV.js → chunk-GTWKD3QT.js} +2 -2
  66. package/dist/{chunk-F2L5GCQ4.js → chunk-GU46PPT3.js} +3 -3
  67. package/dist/{chunk-6IUAK7RZ.js → chunk-H6PI3KJT.js} +2 -2
  68. package/dist/{chunk-SCQ5VPUF.js → chunk-HFMYN6N2.js} +2 -2
  69. package/dist/{chunk-GKC3HILQ.js → chunk-I2QZFCS2.js} +27 -4
  70. package/dist/{chunk-MCZ5LBZD.js → chunk-IE477RQZ.js} +7 -7
  71. package/dist/{chunk-3Y2DRD7S.js → chunk-IEDMFNU7.js} +3 -3
  72. package/dist/{chunk-M5RXSRO2.js → chunk-IEWG6J7C.js} +4 -4
  73. package/dist/{chunk-P7CE7LXL.js → chunk-IUJODQKX.js} +6 -6
  74. package/dist/{chunk-NWED7CYO.js → chunk-IUO34HKW.js} +6 -6
  75. package/dist/{chunk-NX4EQS3U.js → chunk-J76PIKAT.js} +2 -2
  76. package/dist/{chunk-O7WP4ZD4.js → chunk-JED6ZDEE.js} +2 -2
  77. package/dist/{chunk-6BFZKBGD.js → chunk-JJXGQIRV.js} +2 -2
  78. package/dist/{chunk-O7NUCTFU.js → chunk-JM4LEPY3.js} +2 -2
  79. package/dist/{chunk-VDOOQZUD.js → chunk-JSSX2SX4.js} +4 -4
  80. package/dist/{chunk-SQLNBA64.js → chunk-KFNWFNAA.js} +3 -3
  81. package/dist/{chunk-VVZRV54S.js → chunk-KJGG2JKQ.js} +143 -82
  82. package/dist/{chunk-OTAL43EH.js → chunk-LV4BETUU.js} +8 -2
  83. package/dist/{chunk-VUJGMJE6.js → chunk-MVN25IF6.js} +4 -4
  84. package/dist/{chunk-CLD2OKV7.js → chunk-MX2EY5Y7.js} +2 -2
  85. package/dist/{chunk-Y4RNXEAO.js → chunk-ND76YJCN.js} +139 -25
  86. package/dist/{chunk-KFZYNWWO.js → chunk-NEQ6GJXB.js} +4 -4
  87. package/dist/{chunk-PFHVU7UA.js → chunk-NI3XQBPB.js} +2 -2
  88. package/dist/{chunk-WW32K72E.js → chunk-OJTXTQA2.js} +9 -9
  89. package/dist/{chunk-YNRDWYZP.js → chunk-OQKP2X3D.js} +170 -51
  90. package/dist/{chunk-AHGF2YYA.js → chunk-OTOHI4JO.js} +2 -2
  91. package/dist/{chunk-HEVYAHLW.js → chunk-OU7HLO7I.js} +4 -4
  92. package/dist/{chunk-GBE54KY6.js → chunk-OZPBJM5Q.js} +3 -3
  93. package/dist/{chunk-EOFPYPAU.js → chunk-P3NRSSUU.js} +51 -11
  94. package/dist/{chunk-TSA237IM.js → chunk-PZDBOK2Q.js} +2 -2
  95. package/dist/{chunk-3P2DKJCG.js → chunk-Q62FEYK3.js} +2 -2
  96. package/dist/{chunk-DFTFPYUD.js → chunk-QHI5XVUJ.js} +7 -7
  97. package/dist/{chunk-HQCHYB5F.js → chunk-QOOUC2J5.js} +2 -2
  98. package/dist/{chunk-XDXNDSKO.js → chunk-QZPEGJOM.js} +5 -2
  99. package/dist/{chunk-TN35C5KM.js → chunk-RAHVMKBG.js} +2 -2
  100. package/dist/chunk-RBDIYLA5.js +267 -0
  101. package/dist/{chunk-OTQKUHRS.js → chunk-RBHWPDBB.js} +3 -3
  102. package/dist/{chunk-BH3UYK36.js → chunk-RLFVAKEO.js} +3 -3
  103. package/dist/{chunk-3LH5CLP4.js → chunk-RXKTSFDL.js} +150 -5
  104. package/dist/{chunk-RZ6YKEUJ.js → chunk-TK2VQQX2.js} +6 -6
  105. package/dist/{chunk-I7F2A35O.js → chunk-TMACGPW5.js} +25 -47
  106. package/dist/{chunk-5GJYGP5Z.js → chunk-TRM2J7ZN.js} +8 -8
  107. package/dist/{chunk-BCYVE3N5.js → chunk-TYS6CSS5.js} +2 -2
  108. package/dist/{chunk-7PQYTZMA.js → chunk-U5SI5NIM.js} +95 -232
  109. package/dist/{chunk-KHEYDLMT.js → chunk-VB4UJ3H2.js} +2 -2
  110. package/dist/{chunk-HGN652MU.js → chunk-VL2O2F3W.js} +2 -2
  111. package/dist/{chunk-ONA5KPV3.js → chunk-VNSXLA6G.js} +4 -4
  112. package/dist/{chunk-CMCR5WBW.js → chunk-WBRZJOEC.js} +3 -3
  113. package/dist/{chunk-5LWQH6QV.js → chunk-WCT3NYCV.js} +1 -1
  114. package/dist/{chunk-T4VOVZT5.js → chunk-WJ7RW65H.js} +4 -4
  115. package/dist/{chunk-SCHXJTZL.js → chunk-WQLMU7VG.js} +2 -2
  116. package/dist/{chunk-C4GQDB5L.js → chunk-WRNFDFPU.js} +2 -2
  117. package/dist/{chunk-66NVRO4K.js → chunk-X7EC3L2H.js} +7 -7
  118. package/dist/{chunk-QXKWYZNR.js → chunk-XEQXCIBC.js} +3 -3
  119. package/dist/{chunk-C63UWAKM.js → chunk-Y2ZE3MSG.js} +2 -2
  120. package/dist/{chunk-FA6K3FWM.js → chunk-Y6GBQTBK.js} +6 -6
  121. package/dist/{chunk-7UEMZREK.js → chunk-YAA6IID3.js} +2 -2
  122. package/dist/{chunk-PZFVK3IH.js → chunk-YGJZWZTY.js} +2 -2
  123. package/dist/{chunk-7TV5Y53Y.js → chunk-ZJ3LS7DW.js} +3 -3
  124. package/dist/{chunk-PH5X4GIP.js → chunk-ZO27FGJS.js} +2 -2
  125. package/dist/cli.cjs +163 -147
  126. package/dist/clock.js +91 -5
  127. package/dist/countdown.js +208 -82
  128. package/dist/dgmo-router-Y2VEX46B.js +86 -0
  129. package/dist/dimensions-F7B5C4BJ.js +22 -0
  130. package/dist/editor.js +14 -1
  131. package/dist/element.d.ts +68 -0
  132. package/dist/element.js +170 -134
  133. package/dist/element.mjs +2209 -1015
  134. package/dist/{flowchart-parser-OE4WHLTF.js → flowchart-parser-MY53QWTZ.js} +4 -4
  135. package/dist/{flowchart-renderer-GPCSMTOR.js → flowchart-renderer-AQSMEMYF.js} +8 -8
  136. package/dist/highlight.js +14 -1
  137. package/dist/index.d.ts +185 -0
  138. package/dist/index.js +57 -53
  139. package/dist/{layout-7SKMFYHL.js → layout-46N4JJYK.js} +5 -5
  140. package/dist/layout-4DIUOX2T.js +14 -0
  141. package/dist/{layout-7H4H46CS.js → layout-7QXCNOVS.js} +3 -3
  142. package/dist/{layout-NXG63LWH.js → layout-AM2JWW3X.js} +4 -4
  143. package/dist/{layout-7MZ5NF2N.js → layout-CBCLPMSG.js} +5 -5
  144. package/dist/{layout-DC4TVXER.js → layout-EE6GE46Y.js} +5 -5
  145. package/dist/{layout-FGQWRYYW.js → layout-F4WO357A.js} +3 -3
  146. package/dist/layout-G23F7LDH.js +9 -0
  147. package/dist/{layout-QNUQLEHU.js → layout-HYZPWAK5.js} +3 -3
  148. package/dist/{layout-FWODLIMP.js → layout-JDJAEQ3P.js} +6 -6
  149. package/dist/layout-MUPRALE5.js +14 -0
  150. package/dist/{layout-34CLNICW.js → layout-OAC4PEAC.js} +5 -5
  151. package/dist/{layout-5BG6DFCU.js → layout-YVTNOTN4.js} +6 -6
  152. package/dist/{layout-PUQCB6AN.js → layout-ZDOSXL5G.js} +7 -7
  153. package/dist/{layout-search-QS44PI5R.js → layout-search-55FU6HD3.js} +6 -157
  154. package/dist/map-data/gazetteer.json +1 -1
  155. package/dist/{parser-36HVKU5U.js → parser-2Q2T4C3B.js} +6 -5
  156. package/dist/{parser-B5FVS7O6.js → parser-3A42DZ72.js} +3 -3
  157. package/dist/{parser-CSFUN3CT.js → parser-4RFTKAQX.js} +5 -4
  158. package/dist/{parser-IJBMRXMC.js → parser-57ILIFZ2.js} +5 -5
  159. package/dist/{parser-DFFEDKHH.js → parser-5A2UWU6B.js} +3 -3
  160. package/dist/{parser-H3XEPFPV.js → parser-5PDYJGWA.js} +4 -4
  161. package/dist/{parser-O4HIUN6G.js → parser-6BJEXUFX.js} +4 -4
  162. package/dist/{parser-MTOMTWTD.js → parser-6ZKABF5S.js} +6 -5
  163. package/dist/{parser-WAV5JRPT.js → parser-AIMHGJRR.js} +4 -4
  164. package/dist/{parser-TXND652E.js → parser-AZJ25OKK.js} +4 -4
  165. package/dist/{parser-4AI5ZN5F.js → parser-B77S5SZM.js} +3 -3
  166. package/dist/{parser-IBWNAPY4.js → parser-BEPSWJAD.js} +3 -3
  167. package/dist/{parser-D5VILGN2.js → parser-BKI42XBQ.js} +4 -4
  168. package/dist/{parser-LWKKBNSA.js → parser-C3D7MVXY.js} +3 -3
  169. package/dist/{parser-HYRTF3DO.js → parser-CDG7CHV5.js} +3 -3
  170. package/dist/{parser-CVMEDULU.js → parser-CZOJ7XQ6.js} +4 -4
  171. package/dist/{parser-AXKBDGNO.js → parser-E2RL6JYF.js} +5 -5
  172. package/dist/{parser-PSA4UBSP.js → parser-EH5VE7ZN.js} +4 -4
  173. package/dist/{parser-K3XXLMUW.js → parser-FQ6GZFMR.js} +4 -4
  174. package/dist/{parser-RV4M6AS2.js → parser-GKLZKEIK.js} +4 -4
  175. package/dist/{parser-MPCE5JBG.js → parser-H6ABKHZZ.js} +4 -4
  176. package/dist/{parser-RZPVAQVX.js → parser-I6GGFKOQ.js} +4 -3
  177. package/dist/{parser-W4PQUGX3.js → parser-JA7JQ7NF.js} +4 -4
  178. package/dist/{parser-5OXGPNBF.js → parser-KKTJ6M3Y.js} +5 -5
  179. package/dist/parser-OK22AC6Y.js +14 -0
  180. package/dist/{parser-4NO6VZ6S.js → parser-OK2ILHRT.js} +4 -4
  181. package/dist/{parser-YS7TOS2K.js → parser-OUTPNJWC.js} +3 -3
  182. package/dist/{parser-KCR2WS3V.js → parser-PORDUX5E.js} +4 -4
  183. package/dist/{parser-VKOJM7KS.js → parser-SRVFR7PM.js} +4 -4
  184. package/dist/{parser-TGQZJ5OT.js → parser-UKFFZCFJ.js} +4 -4
  185. package/dist/{parser-JJR52VAT.js → parser-UMWPLORP.js} +5 -5
  186. package/dist/{parser-AGVYTQXV.js → parser-Z4TZV2CB.js} +4 -4
  187. package/dist/{renderer-A5VE5BCI.js → renderer-2AUFT3E2.js} +8 -8
  188. package/dist/{renderer-FPE3J5VZ.js → renderer-2HTNBIF2.js} +11 -11
  189. package/dist/{renderer-R2WNIC2C.js → renderer-3K3IB7D5.js} +8 -8
  190. package/dist/{renderer-2AZ5HJFK.js → renderer-3YNIWF5I.js} +4 -4
  191. package/dist/{renderer-PJM35LJN.js → renderer-3YPZHMOU.js} +3 -3
  192. package/dist/{renderer-JCCHNECZ.js → renderer-4WR6WMVF.js} +9 -9
  193. package/dist/{renderer-HDCCZURL.js → renderer-66MERVQ2.js} +9 -9
  194. package/dist/{renderer-2QPMJ2DA.js → renderer-6RKQPNJI.js} +9 -9
  195. package/dist/{renderer-FYSVXL7M.js → renderer-ARMJBP6C.js} +11 -11
  196. package/dist/{renderer-6OKF44KS.js → renderer-CO2DW7S7.js} +13 -13
  197. package/dist/{renderer-BSR2O2H6.js → renderer-EDJ2O4S5.js} +13 -12
  198. package/dist/{renderer-CYB4LK3G.js → renderer-F7U3MFCV.js} +9 -9
  199. package/dist/{renderer-72LGR2YF.js → renderer-GD2COXVL.js} +4 -2
  200. package/dist/{renderer-B5TBNZJE.js → renderer-GQIESYEM.js} +8 -8
  201. package/dist/{renderer-ODUUOPVT.js → renderer-HCKJDFXD.js} +13 -13
  202. package/dist/{renderer-QAOBLRXV.js → renderer-HYGHO4SJ.js} +10 -10
  203. package/dist/{renderer-5DSEWF74.js → renderer-JC3RDUT7.js} +8 -8
  204. package/dist/{renderer-7RH2SI3B.js → renderer-KQB7UGDS.js} +3 -3
  205. package/dist/{renderer-45PSOL3E.js → renderer-NKJ24TEA.js} +5 -5
  206. package/dist/{renderer-AUW2BE6G.js → renderer-OYO67VZK.js} +9 -9
  207. package/dist/{renderer-DAXMXIKD.js → renderer-QIWVHWZO.js} +3 -3
  208. package/dist/{renderer-PSMMZCKH.js → renderer-QRWACQRI.js} +8 -8
  209. package/dist/{renderer-4ITCHBT7.js → renderer-QXGN5H3A.js} +5 -5
  210. package/dist/renderer-QXPP4TA2.js +27 -0
  211. package/dist/{renderer-KS7YZJE2.js → renderer-RGIYOTKJ.js} +10 -10
  212. package/dist/{renderer-FF24KZCI.js → renderer-RHT4MHFU.js} +8 -8
  213. package/dist/{renderer-PPIHO5FI.js → renderer-RYR3TJ46.js} +12 -11
  214. package/dist/{renderer-NGXZTRK6.js → renderer-SRKDNDFB.js} +8 -8
  215. package/dist/{renderer-SBS3YWU5.js → renderer-TGTUABCI.js} +8 -8
  216. package/dist/{renderer-7SD6MSBS.js → renderer-TXJFKPOG.js} +11 -11
  217. package/dist/{renderer-HVCU2C3Z.js → renderer-UV6MI64M.js} +3 -3
  218. package/dist/renderer-radial-FWABAZHB.js +21 -0
  219. package/dist/{resolver-FHBCO3PL.js → resolver-EMTGNR3D.js} +4 -3
  220. package/dist/{state-parser-3REXRK3R.js → state-parser-6T6CNMPX.js} +4 -4
  221. package/dist/{state-renderer-XYLNRWXR.js → state-renderer-AWZ3ECAX.js} +8 -8
  222. package/dist/themes-32xj5ZTW.d.ts +943 -0
  223. package/docs/language-reference.md +98 -10
  224. package/gallery/fixtures/clock.dgmo +3 -3
  225. package/gallery/fixtures/countdown-far.dgmo +2 -0
  226. package/gallery/fixtures/countdown-tz.dgmo +5 -0
  227. package/package.json +1 -1
  228. package/dist/dgmo-router-YTU3ENAX.js +0 -84
  229. package/dist/dimensions-OTBKC5M6.js +0 -22
  230. package/dist/layout-6RDJHS6E.js +0 -9
  231. package/dist/layout-J36454XU.js +0 -14
  232. package/dist/layout-LD6XTLD6.js +0 -14
  233. package/dist/parser-4WQQQXCG.js +0 -13
  234. package/dist/renderer-UYMQQCJK.js +0 -24
  235. package/dist/renderer-radial-F7X5F2VU.js +0 -21
@@ -1,12 +1,16 @@
1
1
  import {
2
2
  GANTT_BOOLEAN_SET,
3
3
  GANTT_OPTION_SET
4
- } from "./chunk-U2HGPLZS.js";
4
+ } from "./chunk-6H7O2OPM.js";
5
5
  import {
6
6
  parseDuration,
7
7
  parseOffset,
8
8
  parseOffsetPrefix
9
9
  } from "./chunk-USZW2HHU.js";
10
+ import {
11
+ parseDateToken,
12
+ toInternal
13
+ } from "./chunk-RBDIYLA5.js";
10
14
  import {
11
15
  getSeriesColors
12
16
  } from "./chunk-P6T66CCZ.js";
@@ -15,7 +19,7 @@ import {
15
19
  stripDefaultModifier,
16
20
  tagAttrKey,
17
21
  validateTagGroupNames
18
- } from "./chunk-FJUNPCYI.js";
22
+ } from "./chunk-467TVMQL.js";
19
23
  import {
20
24
  normalizeName
21
25
  } from "./chunk-NOTA6TEI.js";
@@ -28,7 +32,7 @@ import {
28
32
  splitNameAndMeta,
29
33
  warnUnknownMetaKeys,
30
34
  withTagAliases
31
- } from "./chunk-OTAL43EH.js";
35
+ } from "./chunk-LV4BETUU.js";
32
36
  import {
33
37
  formatDgmoError,
34
38
  makeDgmoError
@@ -38,13 +42,7 @@ import {
38
42
  var GROUP_RE = /^\[(.+?)\]\s*(.*)$/;
39
43
  var DEPENDENCY_RE = /^(?:-(.+?))?->\s*(.+)$/;
40
44
  var COMMENT_RE = /^\/\//;
41
- var ERA_RE = /^era\s+(\d{4}(?:-\d{2}(?:-\d{2}(?: \d{2}:\d{2})?)?)?)\s*(?:->|\u2013>)\s*(\d{4}(?:-\d{2}(?:-\d{2}(?: \d{2}:\d{2})?)?)?)\s+(.+)$/i;
42
- var MARKER_RE = /^marker\s+(\d{4}(?:-\d{2}(?:-\d{2}(?: \d{2}:\d{2})?)?)?)\s+(.+)$/i;
43
- var HOLIDAY_DATE_RE = /^(\d{4}-\d{2}-\d{2})\s+(.+)$/;
44
- var HOLIDAY_RANGE_RE = /^(\d{4}-\d{2}-\d{2})\s*(?:->|\u2013>)\s*(\d{4}-\d{2}-\d{2})\s+(.+)$/;
45
45
  var WORKWEEK_RE = /^workweek\s+(.+)$/i;
46
- var ERA_ENTRY_RE = /^(\d{4}(?:-\d{2}(?:-\d{2}(?: \d{2}:\d{2})?)?)?)\s*(?:->|\u2013>)\s*(\d{4}(?:-\d{2}(?:-\d{2}(?: \d{2}:\d{2})?)?)?)\s+(.+)$/;
47
- var MARKER_ENTRY_RE = /^(\d{4}(?:-\d{2}(?:-\d{2}(?: \d{2}:\d{2})?)?)?)\s+(.+)$/;
48
46
  var OFFSET_PREFIX_RE = /^\+(\d+(?:\.\d+)?(?:min|bd|d|w|m|q|y|h|s))\s+(.*)/;
49
47
  var DURATION_TOKEN_RE = /^(\d+(?:\.\d+)?)(min|bd|d|w|m|q|y|h|s)(\?)?$/;
50
48
  var LAG_ARROW_RE = /^-(\d+(?:\.\d+)?(?:min|bd|d|w|m|q|y|h|s))->\s*(.*)/;
@@ -68,9 +66,65 @@ var WEEKDAY_MAP = {
68
66
  saturday: "sat",
69
67
  sunday: "sun"
70
68
  };
69
+ function prescanGanttYear(lines, order) {
70
+ for (const raw of lines) {
71
+ let cand = raw.trim();
72
+ if (!cand) continue;
73
+ cand = cand.replace(
74
+ /^(?:start|marker|holiday|era|sprint-start|today-marker)\s+/i,
75
+ ""
76
+ );
77
+ cand = cand.replace(/^(?:->|–>)\s*/, "");
78
+ const res = parseDateToken(cand, { dateOrder: order });
79
+ if (res?.token.year != null) return res.token.sign * res.token.year;
80
+ }
81
+ return null;
82
+ }
71
83
  function parseGantt(content, palette) {
72
84
  const lines = content.split("\n");
73
85
  const diagnostics = [];
86
+ let dateOrder = "mdy";
87
+ let directiveYear = null;
88
+ let noCurrentYear = false;
89
+ for (const raw of lines) {
90
+ const t = raw.trim();
91
+ const dm = t.match(/^date-order\s+(mdy|dmy)$/i);
92
+ if (dm) dateOrder = dm[1].toLowerCase();
93
+ const ym = t.match(/^year\s+(\d{1,4})$/i);
94
+ if (ym) directiveYear = parseInt(ym[1], 10);
95
+ if (t.toLowerCase() === "no-current-year") noCurrentYear = true;
96
+ }
97
+ const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
98
+ const baseYear = directiveYear ?? prescanGanttYear(lines, dateOrder);
99
+ const resolveToken = (tok) => {
100
+ if (tok.year != null) return toInternal(tok, tok.year);
101
+ if (baseYear == null && noCurrentYear) return null;
102
+ return toInternal(tok, baseYear ?? currentYear);
103
+ };
104
+ const wholeDate = (rawStr, minGrain = 1) => {
105
+ const s = rawStr.trim();
106
+ const res = parseDateToken(s, { dateOrder });
107
+ if (res?.consumed !== s.length || res.token.invalidTime) return null;
108
+ if (res.token.grain < minGrain) return null;
109
+ const iso = resolveToken(res.token);
110
+ return iso == null ? null : { iso, grain: res.token.grain, hasTime: res.token.hasTime };
111
+ };
112
+ const leadingDate = (s) => {
113
+ const res = parseDateToken(s, { dateOrder });
114
+ if (!res || res.consumed === 0 || res.token.invalidTime) return null;
115
+ const iso = resolveToken(res.token);
116
+ if (iso == null) return null;
117
+ return { iso, grain: res.token.grain, rest: s.slice(res.consumed) };
118
+ };
119
+ const leadingRange = (s) => {
120
+ const a = leadingDate(s);
121
+ if (!a) return null;
122
+ const arrow = a.rest.match(/^\s*(?:->|–>)\s*/);
123
+ if (!arrow) return null;
124
+ const b = leadingDate(a.rest.slice(arrow[0].length));
125
+ if (!b) return null;
126
+ return { start: a.iso, end: b.iso, rest: b.rest };
127
+ };
74
128
  const holidays = {
75
129
  dates: [],
76
130
  ranges: [],
@@ -207,21 +261,21 @@ function parseGantt(content, palette) {
207
261
  if (indent <= holidaysBlockIndent) {
208
262
  inHolidaysBlock = false;
209
263
  } else {
210
- const rangeMatch = line.match(HOLIDAY_RANGE_RE);
211
- if (rangeMatch) {
264
+ const rangeMatch = leadingRange(line);
265
+ if (rangeMatch && rangeMatch.rest.trim()) {
212
266
  holidays.ranges.push({
213
- startDate: rangeMatch[1],
214
- endDate: rangeMatch[2],
215
- label: rangeMatch[3].trim(),
267
+ startDate: rangeMatch.start,
268
+ endDate: rangeMatch.end,
269
+ label: rangeMatch.rest.trim(),
216
270
  lineNumber
217
271
  });
218
272
  continue;
219
273
  }
220
- const dateMatch = line.match(HOLIDAY_DATE_RE);
221
- if (dateMatch) {
274
+ const dateMatch = leadingDate(line);
275
+ if (dateMatch?.grain === 3 && dateMatch.rest.trim()) {
222
276
  holidays.dates.push({
223
- date: dateMatch[1],
224
- label: dateMatch[2].trim(),
277
+ date: dateMatch.iso,
278
+ label: dateMatch.rest.trim(),
225
279
  lineNumber
226
280
  });
227
281
  continue;
@@ -252,9 +306,9 @@ function parseGantt(content, palette) {
252
306
  inEraBlock = false;
253
307
  } else {
254
308
  if (COMMENT_RE.test(line)) continue;
255
- const eraEntryMatch = line.match(ERA_ENTRY_RE);
256
- if (eraEntryMatch) {
257
- const eraLabelRaw = eraEntryMatch[3].trim();
309
+ const eraEntryMatch = leadingRange(line);
310
+ if (eraEntryMatch && eraEntryMatch.rest.trim()) {
311
+ const eraLabelRaw = eraEntryMatch.rest.trim();
258
312
  const eraExtracted = extractColor(
259
313
  eraLabelRaw,
260
314
  palette,
@@ -262,8 +316,8 @@ function parseGantt(content, palette) {
262
316
  lineNumber
263
317
  );
264
318
  result.eras.push({
265
- startDate: eraEntryMatch[1],
266
- endDate: eraEntryMatch[2],
319
+ startDate: eraEntryMatch.start,
320
+ endDate: eraEntryMatch.end,
267
321
  label: eraExtracted.label,
268
322
  color: eraExtracted.color || null,
269
323
  lineNumber
@@ -282,9 +336,9 @@ function parseGantt(content, palette) {
282
336
  inMarkerBlock = false;
283
337
  } else {
284
338
  if (COMMENT_RE.test(line)) continue;
285
- const markerEntryMatch = line.match(MARKER_ENTRY_RE);
286
- if (markerEntryMatch) {
287
- const markerLabelRaw = markerEntryMatch[2].trim();
339
+ const markerEntryMatch = leadingDate(line);
340
+ if (markerEntryMatch && markerEntryMatch.rest.trim()) {
341
+ const markerLabelRaw = markerEntryMatch.rest.trim();
288
342
  const markerExtracted = extractColor(
289
343
  markerLabelRaw,
290
344
  palette,
@@ -292,7 +346,7 @@ function parseGantt(content, palette) {
292
346
  lineNumber
293
347
  );
294
348
  result.markers.push({
295
- date: markerEntryMatch[1],
349
+ date: markerEntryMatch.iso,
296
350
  label: markerExtracted.label,
297
351
  color: markerExtracted.color || null,
298
352
  lineNumber
@@ -543,23 +597,28 @@ function parseGantt(content, palette) {
543
597
  }
544
598
  }
545
599
  if (COMMENT_RE.test(line)) continue;
600
+ if (/^date-order\s+(mdy|dmy)$/i.test(line) || /^year\s+\d{1,4}$/i.test(line) || line.toLowerCase() === "no-current-year") {
601
+ result.options.optionLineNumbers[line.split(/\s+/)[0].toLowerCase()] = lineNumber;
602
+ continue;
603
+ }
546
604
  if (line.toLowerCase() === "holiday" || line.toLowerCase() === "holidays") {
547
605
  inHolidaysBlock = true;
548
606
  holidaysBlockIndent = indent;
549
607
  result.options.holidaysLineNumber = lineNumber;
550
608
  continue;
551
609
  }
552
- const holidayInlineMatch = line.match(
553
- /^holiday\s+(\d{4}-\d{2}-\d{2})\s+(.+)$/i
554
- );
555
- if (holidayInlineMatch) {
556
- holidays.dates.push({
557
- date: holidayInlineMatch[1],
558
- label: holidayInlineMatch[2].trim(),
559
- lineNumber
560
- });
561
- result.options.holidaysLineNumber ??= lineNumber;
562
- continue;
610
+ const holidayInlinePrefix = line.match(/^holiday\s+(.+)$/i);
611
+ if (holidayInlinePrefix) {
612
+ const ld = leadingDate(holidayInlinePrefix[1]);
613
+ if (ld?.grain === 3 && ld.rest.trim()) {
614
+ holidays.dates.push({
615
+ date: ld.iso,
616
+ label: ld.rest.trim(),
617
+ lineNumber
618
+ });
619
+ result.options.holidaysLineNumber ??= lineNumber;
620
+ continue;
621
+ }
563
622
  }
564
623
  const tagMatch = matchTagBlockHeading(line);
565
624
  if (tagMatch) {
@@ -598,45 +657,51 @@ function parseGantt(content, palette) {
598
657
  eraBlockIndent = indent;
599
658
  continue;
600
659
  }
601
- const eraMatch = line.match(ERA_RE);
602
- if (eraMatch) {
603
- const eraLabelRaw = eraMatch[3].trim();
604
- const eraExtracted = extractColor(
605
- eraLabelRaw,
606
- palette,
607
- diagnostics,
608
- lineNumber
609
- );
610
- result.eras.push({
611
- startDate: eraMatch[1],
612
- endDate: eraMatch[2],
613
- label: eraExtracted.label,
614
- color: eraExtracted.color || null,
615
- lineNumber
616
- });
617
- continue;
660
+ const eraInlinePrefix = line.match(/^era\s+(.+)$/i);
661
+ if (eraInlinePrefix) {
662
+ const eraMatch = leadingRange(eraInlinePrefix[1]);
663
+ if (eraMatch && eraMatch.rest.trim()) {
664
+ const eraLabelRaw = eraMatch.rest.trim();
665
+ const eraExtracted = extractColor(
666
+ eraLabelRaw,
667
+ palette,
668
+ diagnostics,
669
+ lineNumber
670
+ );
671
+ result.eras.push({
672
+ startDate: eraMatch.start,
673
+ endDate: eraMatch.end,
674
+ label: eraExtracted.label,
675
+ color: eraExtracted.color || null,
676
+ lineNumber
677
+ });
678
+ continue;
679
+ }
618
680
  }
619
681
  if (line.toLowerCase() === "marker") {
620
682
  inMarkerBlock = true;
621
683
  markerBlockIndent = indent;
622
684
  continue;
623
685
  }
624
- const markerMatch = line.match(MARKER_RE);
625
- if (markerMatch) {
626
- const markerLabelRaw = markerMatch[2].trim();
627
- const markerExtracted = extractColor(
628
- markerLabelRaw,
629
- palette,
630
- diagnostics,
631
- lineNumber
632
- );
633
- result.markers.push({
634
- date: markerMatch[1],
635
- label: markerExtracted.label,
636
- color: markerExtracted.color || null,
637
- lineNumber
638
- });
639
- continue;
686
+ const markerInlinePrefix = line.match(/^marker\s+(.+)$/i);
687
+ if (markerInlinePrefix) {
688
+ const markerMatch = leadingDate(markerInlinePrefix[1]);
689
+ if (markerMatch && markerMatch.rest.trim()) {
690
+ const markerLabelRaw = markerMatch.rest.trim();
691
+ const markerExtracted = extractColor(
692
+ markerLabelRaw,
693
+ palette,
694
+ diagnostics,
695
+ lineNumber
696
+ );
697
+ result.markers.push({
698
+ date: markerMatch.iso,
699
+ label: markerExtracted.label,
700
+ color: markerExtracted.color || null,
701
+ lineNumber
702
+ });
703
+ continue;
704
+ }
640
705
  }
641
706
  {
642
707
  const registry = withTagAliases(
@@ -677,14 +742,15 @@ function parseGantt(content, palette) {
677
742
  }
678
743
  let explicitStart;
679
744
  if (rawStart !== void 0) {
680
- if (!/^\d{4}-\d{2}-\d{2}(?: \d{2}:\d{2})?$/.test(rawStart)) {
745
+ const sd = wholeDate(rawStart, 3);
746
+ if (!sd) {
681
747
  softError(
682
748
  lineNumber,
683
- `Invalid start date: "${rawStart}". Expected YYYY-MM-DD or YYYY-MM-DD HH:MM.`
749
+ `Invalid start date: "${rawStart}". Expected a date like YYYY-MM-DD, 7/4, or Jul 4 (optionally with HH:MM).`
684
750
  );
685
751
  continue;
686
752
  }
687
- explicitStart = rawStart;
753
+ explicitStart = sd.iso;
688
754
  }
689
755
  const taskName = split.name.trim();
690
756
  if (!taskName) {
@@ -762,22 +828,24 @@ function parseGantt(content, palette) {
762
828
  result.options.optionLineNumbers[key] = lineNumber;
763
829
  switch (key) {
764
830
  case "start":
765
- result.options.start = value;
831
+ result.options.start = wholeDate(value)?.iso ?? value;
766
832
  break;
767
833
  case "title":
768
834
  result.options.title = value;
769
835
  result.options.titleLineNumber = lineNumber;
770
836
  break;
771
- case "today-marker":
772
- if (/^\d{4}-\d{2}-\d{2}(?: \d{2}:\d{2})?$/.test(value)) {
773
- result.options.todayMarker = value;
837
+ case "today-marker": {
838
+ const td = wholeDate(value, 3);
839
+ if (td) {
840
+ result.options.todayMarker = td.iso;
774
841
  } else {
775
842
  warn(
776
843
  lineNumber,
777
- `Invalid today-marker value: "${value}". Expected YYYY-MM-DD.`
844
+ `Invalid today-marker value: "${value}". Expected a date like YYYY-MM-DD, 7/4, or Jul 4.`
778
845
  );
779
846
  }
780
847
  break;
848
+ }
781
849
  case "critical-path":
782
850
  result.options.criticalPath = true;
783
851
  break;
@@ -845,15 +913,16 @@ function parseGantt(content, palette) {
845
913
  break;
846
914
  }
847
915
  case "sprint-start": {
848
- if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) {
916
+ const ss = wholeDate(value, 3);
917
+ if (!ss || ss.hasTime) {
849
918
  warn(
850
919
  lineNumber,
851
- `sprint-start requires a full date (YYYY-MM-DD), got "${value}".`
920
+ `sprint-start requires a full date (e.g. YYYY-MM-DD, 7/4, or Jul 4), got "${value}".`
852
921
  );
853
- } else if (Number.isNaN((/* @__PURE__ */ new Date(value + "T00:00:00")).getTime())) {
922
+ } else if (Number.isNaN((/* @__PURE__ */ new Date(ss.iso + "T00:00:00")).getTime())) {
854
923
  warn(lineNumber, `sprint-start is not a valid date: "${value}".`);
855
924
  } else {
856
- result.options.sprintStart = value;
925
+ result.options.sprintStart = ss.iso;
857
926
  }
858
927
  break;
859
928
  }
@@ -1061,10 +1130,14 @@ function parseGantt(content, palette) {
1061
1130
  }
1062
1131
  if (metadata["start"]) {
1063
1132
  const raw = metadata["start"];
1064
- if (!/^\d{4}-\d{2}-\d{2}(?: \d{2}:\d{2})?$/.test(raw)) {
1065
- softError(ln, `Invalid start date: "${raw}". Expected YYYY-MM-DD.`);
1133
+ const sd = wholeDate(raw, 3);
1134
+ if (!sd) {
1135
+ softError(
1136
+ ln,
1137
+ `Invalid start date: "${raw}". Expected a date like YYYY-MM-DD, 7/4, or Jul 4.`
1138
+ );
1066
1139
  } else {
1067
- explicitStart = raw;
1140
+ explicitStart = sd.iso;
1068
1141
  }
1069
1142
  delete metadata["start"];
1070
1143
  }
@@ -1253,4 +1326,4 @@ export {
1253
1326
  GANTT_KNOWN_OPTIONS,
1254
1327
  GANTT_KNOWN_BOOLEANS
1255
1328
  };
1256
- //# sourceMappingURL=chunk-C2CVAM3U.js.map
1329
+ //# sourceMappingURL=chunk-5PZT4DQG.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-3CIOJ5YJ.js";
11
11
  import {
12
12
  measureText
13
- } from "./chunk-5LWQH6QV.js";
13
+ } from "./chunk-WCT3NYCV.js";
14
14
  import {
15
15
  buildCoupleQuotient,
16
16
  rankClasses
@@ -489,4 +489,4 @@ export {
489
489
  focusFamily,
490
490
  layoutFamily
491
491
  };
492
- //# sourceMappingURL=chunk-IAEC4KLA.js.map
492
+ //# sourceMappingURL=chunk-5QKQSSPO.js.map
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-3CIOJ5YJ.js";
15
15
  import {
16
16
  renderIntegratedLegend
17
- } from "./chunk-HEVYAHLW.js";
17
+ } from "./chunk-OU7HLO7I.js";
18
18
  import {
19
19
  getMaxLegendReservedHeight
20
- } from "./chunk-7UEMZREK.js";
20
+ } from "./chunk-YAA6IID3.js";
21
21
  import {
22
22
  TITLE_FONT_SIZE,
23
23
  TITLE_FONT_WEIGHT,
@@ -28,10 +28,10 @@ import {
28
28
  } from "./chunk-6KFWC4CO.js";
29
29
  import {
30
30
  LEGEND_GROUP_GAP
31
- } from "./chunk-HQCHYB5F.js";
31
+ } from "./chunk-QOOUC2J5.js";
32
32
  import {
33
33
  measureText
34
- } from "./chunk-5LWQH6QV.js";
34
+ } from "./chunk-WCT3NYCV.js";
35
35
  import {
36
36
  contrastText,
37
37
  mix,
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  resolveTagColor,
43
43
  tagAttrKey
44
- } from "./chunk-FJUNPCYI.js";
44
+ } from "./chunk-467TVMQL.js";
45
45
  import {
46
46
  resolveColor
47
47
  } from "./chunk-TLVIHFRO.js";
@@ -270,4 +270,4 @@ export {
270
270
  renderFamilyForExport,
271
271
  renderFamily
272
272
  };
273
- //# sourceMappingURL=chunk-5OWVC2A6.js.map
273
+ //# sourceMappingURL=chunk-5SVOCD5W.js.map
@@ -7,7 +7,7 @@ import {
7
7
  matchTagBlockHeading,
8
8
  stripDefaultModifier,
9
9
  tagAttrKey
10
- } from "./chunk-FJUNPCYI.js";
10
+ } from "./chunk-467TVMQL.js";
11
11
  import {
12
12
  displayName,
13
13
  normalizeName
@@ -26,7 +26,7 @@ import {
26
26
  tokenizeQuoteAware,
27
27
  tryParseSharedOption,
28
28
  withTagAliases
29
- } from "./chunk-OTAL43EH.js";
29
+ } from "./chunk-LV4BETUU.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-VBYSIOOY.js.map
574
+ //# sourceMappingURL=chunk-5WPNFSXP.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeNodeText,
3
3
  layoutMindmap
4
- } from "./chunk-7TV5Y53Y.js";
4
+ } from "./chunk-ZJ3LS7DW.js";
5
5
  import {
6
6
  renderInlineText
7
7
  } from "./chunk-3HDBAXF5.js";
@@ -19,10 +19,10 @@ import {
19
19
  } from "./chunk-YYVTBZZC.js";
20
20
  import {
21
21
  renderIntegratedLegend
22
- } from "./chunk-HEVYAHLW.js";
22
+ } from "./chunk-OU7HLO7I.js";
23
23
  import {
24
24
  getMaxLegendReservedHeight
25
- } from "./chunk-7UEMZREK.js";
25
+ } from "./chunk-YAA6IID3.js";
26
26
  import {
27
27
  TITLE_FONT_SIZE,
28
28
  TITLE_FONT_WEIGHT
@@ -32,10 +32,10 @@ import {
32
32
  } from "./chunk-6KFWC4CO.js";
33
33
  import {
34
34
  LEGEND_GROUP_GAP
35
- } from "./chunk-HQCHYB5F.js";
35
+ } from "./chunk-QOOUC2J5.js";
36
36
  import {
37
37
  parseMindmap
38
- } from "./chunk-SXRTRMEE.js";
38
+ } from "./chunk-2UJSV2VT.js";
39
39
  import {
40
40
  preprocessDescriptionLine
41
41
  } from "./chunk-IYULMRBE.js";
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-P6T66CCZ.js";
46
46
  import {
47
47
  tagAttrKey
48
- } from "./chunk-FJUNPCYI.js";
48
+ } from "./chunk-467TVMQL.js";
49
49
 
50
50
  // src/mindmap/renderer.ts
51
51
  import * as d3Selection from "d3-selection";
@@ -388,4 +388,4 @@ export {
388
388
  renderMindmap,
389
389
  renderMindmapForExport
390
390
  };
391
- //# sourceMappingURL=chunk-4MJ7M6YL.js.map
391
+ //# sourceMappingURL=chunk-5X6YQA2J.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YYVTBZZC.js";
10
10
  import {
11
11
  renderIntegratedLegend
12
- } from "./chunk-HEVYAHLW.js";
12
+ } from "./chunk-OU7HLO7I.js";
13
13
  import {
14
14
  TITLE_FONT_SIZE,
15
15
  TITLE_FONT_WEIGHT,
@@ -20,11 +20,11 @@ import {
20
20
  } from "./chunk-6KFWC4CO.js";
21
21
  import {
22
22
  LEGEND_HEIGHT
23
- } from "./chunk-HQCHYB5F.js";
23
+ } from "./chunk-QOOUC2J5.js";
24
24
  import {
25
25
  measureText,
26
26
  wrapTextToWidth
27
- } from "./chunk-5LWQH6QV.js";
27
+ } from "./chunk-WCT3NYCV.js";
28
28
  import {
29
29
  contrastText,
30
30
  shapeFill
@@ -964,4 +964,4 @@ export {
964
964
  renderCycle,
965
965
  renderCycleForExport
966
966
  };
967
- //# sourceMappingURL=chunk-JJUOHGX2.js.map
967
+ //# sourceMappingURL=chunk-65WJYYKJ.js.map
@@ -9,12 +9,12 @@ import {
9
9
  matchTagBlockHeading,
10
10
  stripDefaultModifier,
11
11
  tagAttrKey
12
- } from "./chunk-FJUNPCYI.js";
12
+ } from "./chunk-467TVMQL.js";
13
13
  import {
14
14
  extractColor,
15
15
  measureIndent,
16
16
  parseFirstLine
17
- } from "./chunk-OTAL43EH.js";
17
+ } from "./chunk-LV4BETUU.js";
18
18
  import {
19
19
  emit
20
20
  } from "./chunk-CXK4DZH3.js";
@@ -256,4 +256,4 @@ export {
256
256
  parseBody,
257
257
  extractSymbols
258
258
  };
259
- //# sourceMappingURL=chunk-3UIKSPFB.js.map
259
+ //# sourceMappingURL=chunk-6BQFET7X.js.map
@@ -1,5 +1,12 @@
1
1
  // src/directives-registry.ts
2
2
  var DIRECTIVES_REGISTRY = [
3
+ // ── Universal date handling (§ BL-121) ───────────────────
4
+ // Accepted in every date-bearing chart (gantt, pert, countdown, timeline,
5
+ // event-line). Handled inline by each parser's prescan — no parser-Set
6
+ // membership here — so they only contribute highlighting (DIRECTIVE_KEYWORDS).
7
+ { token: "year", category: "directive" },
8
+ { token: "date-order", category: "directive" },
9
+ { token: "no-current-year", category: "directive" },
3
10
  // ── Infra ────────────────────────────────────────────────
4
11
  // Top-level SLO options that are ALSO accepted as node colon-properties
5
12
  // (dual membership). Highlight bare (kept in DIRECTIVE_KEYWORDS) — their
@@ -86,6 +93,12 @@ var DIRECTIVES_REGISTRY = [
86
93
  { token: "no-colorize", category: "directive", map: true },
87
94
  { token: "no-cities", category: "directive", map: true },
88
95
  { token: "no-cluster-pois", category: "directive", map: true },
96
+ // ── Clock channel (BL-122): live local-time cards on POIs flagged `clock` ──
97
+ // Activation is the per-POI `clock` flag (peeled in the map parser, not a
98
+ // directive). `hours 9-17` / `days mon-fri` are the global availability
99
+ // window (reused verbatim from the clock chart type).
100
+ { token: "hours", category: "directive", map: true },
101
+ { token: "days", category: "directive", map: true },
89
102
  // ── Shared across types ──────────────────────────────────
90
103
  // `active-tag`: infra top-level option + gantt option + map directive.
91
104
  {
@@ -346,4 +359,4 @@ export {
346
359
  REGISTRY_MODIFIER_TOKENS,
347
360
  REGISTRY_COLON_KEY_TOKENS
348
361
  };
349
- //# sourceMappingURL=chunk-U2HGPLZS.js.map
362
+ //# sourceMappingURL=chunk-6H7O2OPM.js.map
@@ -10,7 +10,7 @@ import {
10
10
  tagAttrKey,
11
11
  validateTagGroupNames,
12
12
  validateTagValues
13
- } from "./chunk-FJUNPCYI.js";
13
+ } from "./chunk-467TVMQL.js";
14
14
  import {
15
15
  parseInArrowLabel
16
16
  } from "./chunk-FFUN5D66.js";
@@ -26,7 +26,7 @@ import {
26
26
  stripQuotes,
27
27
  warnUnknownMetaKeys,
28
28
  withTagAliases
29
- } from "./chunk-OTAL43EH.js";
29
+ } from "./chunk-LV4BETUU.js";
30
30
  import {
31
31
  NAME_DIAGNOSTIC_CODES,
32
32
  formatDgmoError,
@@ -614,4 +614,4 @@ export {
614
614
  isSketchShapeKind,
615
615
  parseSketch
616
616
  };
617
- //# sourceMappingURL=chunk-DZXYF2F5.js.map
617
+ //# sourceMappingURL=chunk-6K2M4VSR.js.map
@@ -10,7 +10,7 @@ import {
10
10
  splitNameAndMeta,
11
11
  tryParseSharedOption,
12
12
  warnUnknownMetaKeys
13
- } from "./chunk-OTAL43EH.js";
13
+ } from "./chunk-LV4BETUU.js";
14
14
  import {
15
15
  resolveColorWithDiagnostic
16
16
  } from "./chunk-TLVIHFRO.js";
@@ -952,4 +952,4 @@ export {
952
952
  parseRaci,
953
953
  allTasks
954
954
  };
955
- //# sourceMappingURL=chunk-PGEGPSCZ.js.map
955
+ //# sourceMappingURL=chunk-6MNGECP2.js.map