@diagrammo/dgmo 0.50.2 → 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.
- package/dist/advanced.d.ts +85 -23
- package/dist/advanced.js +207 -161
- package/dist/{analyzer-UYKBXAKR.js → analyzer-BJ54GIFB.js} +3 -3
- package/dist/auto.css +31 -8
- package/dist/auto.d.ts +6 -0
- package/dist/auto.js +169 -133
- package/dist/auto.mjs +2148 -1024
- package/dist/block.css +28 -8
- package/dist/block.js +97 -68
- package/dist/{charts-d3-MUW3LTML.js → charts-d3-7E4B4IMW.js} +9 -9
- package/dist/{chunk-6IAA2QQ2.js → chunk-2EQMXBBQ.js} +2 -2
- package/dist/{chunk-XJLKLU4D.js → chunk-2ILHQOL3.js} +3 -3
- package/dist/{chunk-SXRTRMEE.js → chunk-2UJSV2VT.js} +3 -3
- package/dist/{chunk-LE4MYMLI.js → chunk-32XPAAET.js} +5 -5
- package/dist/{chunk-NU3XLTGP.js → chunk-332ZR4QU.js} +4 -4
- package/dist/{chunk-F7BFXWNQ.js → chunk-3JLKYGBQ.js} +2 -2
- package/dist/{chunk-QROYX7TT.js → chunk-3LV2NCB6.js} +3 -3
- package/dist/{chunk-SVTI362O.js → chunk-3ODS2VGL.js} +97 -97
- package/dist/{chunk-3XGZF2QJ.js → chunk-3YSQZ75W.js} +6 -6
- package/dist/{chunk-FJUNPCYI.js → chunk-467TVMQL.js} +2 -2
- package/dist/{chunk-HHXOONLX.js → chunk-4B5YISOR.js} +38 -1
- package/dist/{chunk-6HJBFVLO.js → chunk-4QZ43D7I.js} +3 -3
- package/dist/{chunk-QJJZSROI.js → chunk-4VWJ4LW2.js} +7 -7
- package/dist/chunk-4XFBQT5O.js +35 -0
- package/dist/{chunk-2C56LEML.js → chunk-5F5ELR3V.js} +3 -3
- package/dist/{chunk-EAMEADTV.js → chunk-5PDTIBLV.js} +83 -21
- package/dist/{chunk-C2CVAM3U.js → chunk-5PZT4DQG.js} +160 -87
- package/dist/{chunk-IAEC4KLA.js → chunk-5QKQSSPO.js} +2 -2
- package/dist/{chunk-5OWVC2A6.js → chunk-5SVOCD5W.js} +6 -6
- package/dist/{chunk-VBYSIOOY.js → chunk-5WPNFSXP.js} +3 -3
- package/dist/{chunk-4MJ7M6YL.js → chunk-5X6YQA2J.js} +7 -7
- package/dist/{chunk-JJUOHGX2.js → chunk-65WJYYKJ.js} +4 -4
- package/dist/{chunk-3UIKSPFB.js → chunk-6BQFET7X.js} +3 -3
- package/dist/{chunk-U2HGPLZS.js → chunk-6H7O2OPM.js} +14 -1
- package/dist/{chunk-DZXYF2F5.js → chunk-6K2M4VSR.js} +3 -3
- package/dist/{chunk-PGEGPSCZ.js → chunk-6MNGECP2.js} +2 -2
- package/dist/{chunk-3XPUDB7B.js → chunk-6NFYEQDX.js} +266 -38
- package/dist/{chunk-4XK3FLFB.js → chunk-6NYWYNBI.js} +3 -3
- package/dist/{chunk-TWQUYVP3.js → chunk-7DF4J4RL.js} +4 -4
- package/dist/{chunk-H73FP42Q.js → chunk-7DYOELRK.js} +3 -3
- package/dist/{chunk-L3UHP6TD.js → chunk-7L4UJOY6.js} +1 -2
- package/dist/{chunk-QJP6PG7F.js → chunk-AB7INMR5.js} +9 -9
- package/dist/{chunk-3LKM6FMW.js → chunk-AE7II3E3.js} +2 -2
- package/dist/{chunk-BTUTZMPT.js → chunk-AFIEPDLX.js} +97 -42
- package/dist/chunk-APKUAJ2L.js +220 -0
- package/dist/{chunk-X6EZPSW6.js → chunk-AXW3M6OQ.js} +7 -7
- package/dist/{chunk-66RUL3XF.js → chunk-B63YB7X3.js} +5 -5
- package/dist/{chunk-DSWVNQVS.js → chunk-BGP54HVR.js} +4 -59
- package/dist/{chunk-3NODSS6A.js → chunk-BYJBIALT.js} +7 -7
- package/dist/{chunk-3YPY3OXD.js → chunk-CC4YRBWV.js} +2 -2
- package/dist/{chunk-HLJVEAOF.js → chunk-DY7XLRHK.js} +8 -33
- package/dist/{chunk-OMNGQPEZ.js → chunk-E7Y3SYKW.js} +3 -3
- package/dist/{chunk-HTMN2Z6U.js → chunk-EDA6C7MV.js} +50 -7
- package/dist/{chunk-7L3R6I3U.js → chunk-ENRS56GC.js} +3 -3
- package/dist/{chunk-2KGXHFYK.js → chunk-EXOQP75F.js} +7 -7
- package/dist/{chunk-BBGDM4NQ.js → chunk-F3FYUFUH.js} +26 -8
- package/dist/{chunk-GL5UZ6NY.js → chunk-FC5I2KXV.js} +3 -3
- package/dist/{chunk-VVW3F3MD.js → chunk-FTBZV6NE.js} +9 -9
- package/dist/{chunk-7QKLIMRZ.js → chunk-G3PF3S7P.js} +41 -46
- package/dist/{chunk-J6K7RP6P.js → chunk-GD6L76WD.js} +3 -3
- package/dist/{chunk-I2WKW7C7.js → chunk-GGHRAITI.js} +3 -3
- package/dist/{chunk-DN66GPY5.js → chunk-GNSFLJAA.js} +24 -3
- package/dist/{chunk-IUMPEA64.js → chunk-GROLTAWZ.js} +4 -4
- package/dist/{chunk-Q4V4XQWV.js → chunk-GTWKD3QT.js} +2 -2
- package/dist/{chunk-F2L5GCQ4.js → chunk-GU46PPT3.js} +3 -3
- package/dist/{chunk-6IUAK7RZ.js → chunk-H6PI3KJT.js} +2 -2
- package/dist/{chunk-SCQ5VPUF.js → chunk-HFMYN6N2.js} +2 -2
- package/dist/{chunk-GKC3HILQ.js → chunk-I2QZFCS2.js} +27 -4
- package/dist/{chunk-MCZ5LBZD.js → chunk-IE477RQZ.js} +7 -7
- package/dist/{chunk-3Y2DRD7S.js → chunk-IEDMFNU7.js} +3 -3
- package/dist/{chunk-M5RXSRO2.js → chunk-IEWG6J7C.js} +4 -4
- package/dist/{chunk-P7CE7LXL.js → chunk-IUJODQKX.js} +6 -6
- package/dist/{chunk-NWED7CYO.js → chunk-IUO34HKW.js} +6 -6
- package/dist/{chunk-NX4EQS3U.js → chunk-J76PIKAT.js} +2 -2
- package/dist/{chunk-O7WP4ZD4.js → chunk-JED6ZDEE.js} +2 -2
- package/dist/{chunk-6BFZKBGD.js → chunk-JJXGQIRV.js} +2 -2
- package/dist/{chunk-O7NUCTFU.js → chunk-JM4LEPY3.js} +2 -2
- package/dist/{chunk-VDOOQZUD.js → chunk-JSSX2SX4.js} +4 -4
- package/dist/{chunk-SQLNBA64.js → chunk-KFNWFNAA.js} +3 -3
- package/dist/{chunk-KQ57MHRO.js → chunk-KJGG2JKQ.js} +143 -82
- package/dist/{chunk-OTAL43EH.js → chunk-LV4BETUU.js} +8 -2
- package/dist/{chunk-VUJGMJE6.js → chunk-MVN25IF6.js} +4 -4
- package/dist/{chunk-CLD2OKV7.js → chunk-MX2EY5Y7.js} +2 -2
- package/dist/{chunk-T5SHNNGP.js → chunk-ND76YJCN.js} +59 -25
- package/dist/{chunk-KFZYNWWO.js → chunk-NEQ6GJXB.js} +4 -4
- package/dist/{chunk-PFHVU7UA.js → chunk-NI3XQBPB.js} +2 -2
- package/dist/{chunk-WW32K72E.js → chunk-OJTXTQA2.js} +9 -9
- package/dist/{chunk-YNRDWYZP.js → chunk-OQKP2X3D.js} +170 -51
- package/dist/{chunk-AHGF2YYA.js → chunk-OTOHI4JO.js} +2 -2
- package/dist/{chunk-HEVYAHLW.js → chunk-OU7HLO7I.js} +4 -4
- package/dist/{chunk-GBE54KY6.js → chunk-OZPBJM5Q.js} +3 -3
- package/dist/{chunk-EOFPYPAU.js → chunk-P3NRSSUU.js} +51 -11
- package/dist/{chunk-TSA237IM.js → chunk-PZDBOK2Q.js} +2 -2
- package/dist/{chunk-3P2DKJCG.js → chunk-Q62FEYK3.js} +2 -2
- package/dist/{chunk-DFTFPYUD.js → chunk-QHI5XVUJ.js} +7 -7
- package/dist/{chunk-HQCHYB5F.js → chunk-QOOUC2J5.js} +2 -2
- package/dist/{chunk-XEGTMVYY.js → chunk-QZPEGJOM.js} +2 -2
- package/dist/{chunk-TN35C5KM.js → chunk-RAHVMKBG.js} +2 -2
- package/dist/chunk-RBDIYLA5.js +267 -0
- package/dist/{chunk-OTQKUHRS.js → chunk-RBHWPDBB.js} +3 -3
- package/dist/{chunk-BH3UYK36.js → chunk-RLFVAKEO.js} +3 -3
- package/dist/{chunk-3LH5CLP4.js → chunk-RXKTSFDL.js} +150 -5
- package/dist/{chunk-RZ6YKEUJ.js → chunk-TK2VQQX2.js} +6 -6
- package/dist/{chunk-I7F2A35O.js → chunk-TMACGPW5.js} +25 -47
- package/dist/{chunk-5GJYGP5Z.js → chunk-TRM2J7ZN.js} +8 -8
- package/dist/{chunk-BCYVE3N5.js → chunk-TYS6CSS5.js} +2 -2
- package/dist/{chunk-5WFIYXQ6.js → chunk-U5SI5NIM.js} +91 -228
- package/dist/{chunk-KHEYDLMT.js → chunk-VB4UJ3H2.js} +2 -2
- package/dist/{chunk-HGN652MU.js → chunk-VL2O2F3W.js} +2 -2
- package/dist/{chunk-ONA5KPV3.js → chunk-VNSXLA6G.js} +4 -4
- package/dist/{chunk-CMCR5WBW.js → chunk-WBRZJOEC.js} +3 -3
- package/dist/{chunk-5LWQH6QV.js → chunk-WCT3NYCV.js} +1 -1
- package/dist/{chunk-T4VOVZT5.js → chunk-WJ7RW65H.js} +4 -4
- package/dist/{chunk-SCHXJTZL.js → chunk-WQLMU7VG.js} +2 -2
- package/dist/{chunk-C4GQDB5L.js → chunk-WRNFDFPU.js} +2 -2
- package/dist/{chunk-66NVRO4K.js → chunk-X7EC3L2H.js} +7 -7
- package/dist/{chunk-QXKWYZNR.js → chunk-XEQXCIBC.js} +3 -3
- package/dist/{chunk-C63UWAKM.js → chunk-Y2ZE3MSG.js} +2 -2
- package/dist/{chunk-FA6K3FWM.js → chunk-Y6GBQTBK.js} +6 -6
- package/dist/{chunk-7UEMZREK.js → chunk-YAA6IID3.js} +2 -2
- package/dist/{chunk-PZFVK3IH.js → chunk-YGJZWZTY.js} +2 -2
- package/dist/{chunk-7TV5Y53Y.js → chunk-ZJ3LS7DW.js} +3 -3
- package/dist/{chunk-PH5X4GIP.js → chunk-ZO27FGJS.js} +2 -2
- package/dist/cli.cjs +163 -147
- package/dist/clock.js +91 -5
- package/dist/countdown.js +208 -82
- package/dist/dgmo-router-Y2VEX46B.js +86 -0
- package/dist/dimensions-F7B5C4BJ.js +22 -0
- package/dist/editor.js +14 -1
- package/dist/element.d.ts +6 -0
- package/dist/element.js +170 -134
- package/dist/element.mjs +2112 -1009
- package/dist/{flowchart-parser-OE4WHLTF.js → flowchart-parser-MY53QWTZ.js} +4 -4
- package/dist/{flowchart-renderer-GPCSMTOR.js → flowchart-renderer-AQSMEMYF.js} +8 -8
- package/dist/highlight.js +14 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +55 -53
- package/dist/{layout-7SKMFYHL.js → layout-46N4JJYK.js} +5 -5
- package/dist/layout-4DIUOX2T.js +14 -0
- package/dist/{layout-7H4H46CS.js → layout-7QXCNOVS.js} +3 -3
- package/dist/{layout-NXG63LWH.js → layout-AM2JWW3X.js} +4 -4
- package/dist/{layout-7MZ5NF2N.js → layout-CBCLPMSG.js} +5 -5
- package/dist/{layout-DC4TVXER.js → layout-EE6GE46Y.js} +5 -5
- package/dist/{layout-FGQWRYYW.js → layout-F4WO357A.js} +3 -3
- package/dist/layout-G23F7LDH.js +9 -0
- package/dist/{layout-QNUQLEHU.js → layout-HYZPWAK5.js} +3 -3
- package/dist/{layout-FWODLIMP.js → layout-JDJAEQ3P.js} +6 -6
- package/dist/layout-MUPRALE5.js +14 -0
- package/dist/{layout-34CLNICW.js → layout-OAC4PEAC.js} +5 -5
- package/dist/{layout-5BG6DFCU.js → layout-YVTNOTN4.js} +6 -6
- package/dist/{layout-PUQCB6AN.js → layout-ZDOSXL5G.js} +7 -7
- package/dist/{layout-search-QS44PI5R.js → layout-search-55FU6HD3.js} +6 -157
- package/dist/map-data/gazetteer.json +1 -1
- package/dist/{parser-36HVKU5U.js → parser-2Q2T4C3B.js} +6 -5
- package/dist/{parser-B5FVS7O6.js → parser-3A42DZ72.js} +3 -3
- package/dist/{parser-CSFUN3CT.js → parser-4RFTKAQX.js} +5 -4
- package/dist/{parser-IJBMRXMC.js → parser-57ILIFZ2.js} +5 -5
- package/dist/{parser-DFFEDKHH.js → parser-5A2UWU6B.js} +3 -3
- package/dist/{parser-H3XEPFPV.js → parser-5PDYJGWA.js} +4 -4
- package/dist/{parser-O4HIUN6G.js → parser-6BJEXUFX.js} +4 -4
- package/dist/{parser-MTOMTWTD.js → parser-6ZKABF5S.js} +6 -5
- package/dist/{parser-WAV5JRPT.js → parser-AIMHGJRR.js} +4 -4
- package/dist/{parser-TXND652E.js → parser-AZJ25OKK.js} +4 -4
- package/dist/{parser-4AI5ZN5F.js → parser-B77S5SZM.js} +3 -3
- package/dist/{parser-IBWNAPY4.js → parser-BEPSWJAD.js} +3 -3
- package/dist/{parser-D5VILGN2.js → parser-BKI42XBQ.js} +4 -4
- package/dist/{parser-LWKKBNSA.js → parser-C3D7MVXY.js} +3 -3
- package/dist/{parser-HYRTF3DO.js → parser-CDG7CHV5.js} +3 -3
- package/dist/{parser-CVMEDULU.js → parser-CZOJ7XQ6.js} +4 -4
- package/dist/{parser-AXKBDGNO.js → parser-E2RL6JYF.js} +5 -5
- package/dist/{parser-PSA4UBSP.js → parser-EH5VE7ZN.js} +4 -4
- package/dist/{parser-K3XXLMUW.js → parser-FQ6GZFMR.js} +4 -4
- package/dist/{parser-RV4M6AS2.js → parser-GKLZKEIK.js} +4 -4
- package/dist/{parser-MPCE5JBG.js → parser-H6ABKHZZ.js} +4 -4
- package/dist/{parser-RZPVAQVX.js → parser-I6GGFKOQ.js} +4 -3
- package/dist/{parser-W4PQUGX3.js → parser-JA7JQ7NF.js} +4 -4
- package/dist/{parser-5OXGPNBF.js → parser-KKTJ6M3Y.js} +5 -5
- package/dist/parser-OK22AC6Y.js +14 -0
- package/dist/{parser-4NO6VZ6S.js → parser-OK2ILHRT.js} +4 -4
- package/dist/{parser-YS7TOS2K.js → parser-OUTPNJWC.js} +3 -3
- package/dist/{parser-KCR2WS3V.js → parser-PORDUX5E.js} +4 -4
- package/dist/{parser-VKOJM7KS.js → parser-SRVFR7PM.js} +4 -4
- package/dist/{parser-TGQZJ5OT.js → parser-UKFFZCFJ.js} +4 -4
- package/dist/{parser-JJR52VAT.js → parser-UMWPLORP.js} +5 -5
- package/dist/{parser-AGVYTQXV.js → parser-Z4TZV2CB.js} +4 -4
- package/dist/{renderer-A5VE5BCI.js → renderer-2AUFT3E2.js} +8 -8
- package/dist/{renderer-FPE3J5VZ.js → renderer-2HTNBIF2.js} +11 -11
- package/dist/{renderer-R2WNIC2C.js → renderer-3K3IB7D5.js} +8 -8
- package/dist/{renderer-2AZ5HJFK.js → renderer-3YNIWF5I.js} +4 -4
- package/dist/{renderer-P5ROYQGU.js → renderer-3YPZHMOU.js} +3 -3
- package/dist/{renderer-JCCHNECZ.js → renderer-4WR6WMVF.js} +9 -9
- package/dist/{renderer-HDCCZURL.js → renderer-66MERVQ2.js} +9 -9
- package/dist/{renderer-2QPMJ2DA.js → renderer-6RKQPNJI.js} +9 -9
- package/dist/{renderer-FYSVXL7M.js → renderer-ARMJBP6C.js} +11 -11
- package/dist/{renderer-6OKF44KS.js → renderer-CO2DW7S7.js} +13 -13
- package/dist/{renderer-BSR2O2H6.js → renderer-EDJ2O4S5.js} +13 -12
- package/dist/{renderer-CYB4LK3G.js → renderer-F7U3MFCV.js} +9 -9
- package/dist/{renderer-5KVCNMOJ.js → renderer-GD2COXVL.js} +4 -2
- package/dist/{renderer-B5TBNZJE.js → renderer-GQIESYEM.js} +8 -8
- package/dist/{renderer-ODUUOPVT.js → renderer-HCKJDFXD.js} +13 -13
- package/dist/{renderer-QAOBLRXV.js → renderer-HYGHO4SJ.js} +10 -10
- package/dist/{renderer-5DSEWF74.js → renderer-JC3RDUT7.js} +8 -8
- package/dist/{renderer-7RH2SI3B.js → renderer-KQB7UGDS.js} +3 -3
- package/dist/{renderer-45PSOL3E.js → renderer-NKJ24TEA.js} +5 -5
- package/dist/{renderer-AUW2BE6G.js → renderer-OYO67VZK.js} +9 -9
- package/dist/{renderer-DAXMXIKD.js → renderer-QIWVHWZO.js} +3 -3
- package/dist/{renderer-PSMMZCKH.js → renderer-QRWACQRI.js} +8 -8
- package/dist/{renderer-4ITCHBT7.js → renderer-QXGN5H3A.js} +5 -5
- package/dist/renderer-QXPP4TA2.js +27 -0
- package/dist/{renderer-KS7YZJE2.js → renderer-RGIYOTKJ.js} +10 -10
- package/dist/{renderer-FF24KZCI.js → renderer-RHT4MHFU.js} +8 -8
- package/dist/{renderer-PPIHO5FI.js → renderer-RYR3TJ46.js} +12 -11
- package/dist/{renderer-NGXZTRK6.js → renderer-SRKDNDFB.js} +8 -8
- package/dist/{renderer-SBS3YWU5.js → renderer-TGTUABCI.js} +8 -8
- package/dist/{renderer-7SD6MSBS.js → renderer-TXJFKPOG.js} +11 -11
- package/dist/{renderer-HVCU2C3Z.js → renderer-UV6MI64M.js} +3 -3
- package/dist/renderer-radial-FWABAZHB.js +21 -0
- package/dist/{resolver-FHBCO3PL.js → resolver-EMTGNR3D.js} +4 -3
- package/dist/{state-parser-3REXRK3R.js → state-parser-6T6CNMPX.js} +4 -4
- package/dist/{state-renderer-XYLNRWXR.js → state-renderer-AWZ3ECAX.js} +8 -8
- package/dist/{themes-PdPR1-hC.d.ts → themes-32xj5ZTW.d.ts} +27 -0
- package/docs/language-reference.md +93 -10
- package/gallery/fixtures/clock.dgmo +3 -3
- package/gallery/fixtures/countdown-tz.dgmo +5 -0
- package/package.json +1 -1
- package/dist/dgmo-router-CE2G67FV.js +0 -84
- package/dist/dimensions-OTBKC5M6.js +0 -22
- package/dist/layout-6RDJHS6E.js +0 -9
- package/dist/layout-J36454XU.js +0 -14
- package/dist/layout-LD6XTLD6.js +0 -14
- package/dist/parser-4WQQQXCG.js +0 -13
- package/dist/renderer-UYMQQCJK.js +0 -24
- package/dist/renderer-radial-F7X5F2VU.js +0 -21
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
computeQuadrantPointLabels,
|
|
3
3
|
rectCircleOverlap,
|
|
4
4
|
rectsOverlap
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VL2O2F3W.js";
|
|
6
6
|
import {
|
|
7
7
|
EXPORT_HEIGHT,
|
|
8
8
|
EXPORT_WIDTH,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-U6EQI3U6.js";
|
|
15
15
|
import {
|
|
16
16
|
computeLegendLayout
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAA6IID3.js";
|
|
18
18
|
import {
|
|
19
19
|
FONT_FAMILY
|
|
20
20
|
} from "./chunk-6KFWC4CO.js";
|
|
@@ -23,16 +23,16 @@ import {
|
|
|
23
23
|
LEGEND_ENTRY_FONT_SIZE,
|
|
24
24
|
LEGEND_HEIGHT,
|
|
25
25
|
LEGEND_PILL_FONT_SIZE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QOOUC2J5.js";
|
|
27
27
|
import {
|
|
28
28
|
measureText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WCT3NYCV.js";
|
|
30
30
|
import {
|
|
31
31
|
getExtendedChartLegendGroups,
|
|
32
32
|
getSimpleChartLegendGroups,
|
|
33
33
|
parseChart,
|
|
34
34
|
parseExtendedChart
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QZPEGJOM.js";
|
|
36
36
|
import {
|
|
37
37
|
contrastText,
|
|
38
38
|
getSegmentColors,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-P6T66CCZ.js";
|
|
45
45
|
import {
|
|
46
46
|
tagAttrKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-467TVMQL.js";
|
|
48
48
|
|
|
49
49
|
// src/utils/legend-svg.ts
|
|
50
50
|
function esc(s) {
|
|
@@ -1701,4 +1701,4 @@ export {
|
|
|
1701
1701
|
supportsD3DataChart,
|
|
1702
1702
|
renderDataChartD3
|
|
1703
1703
|
};
|
|
1704
|
-
//# sourceMappingURL=chunk-
|
|
1704
|
+
//# sourceMappingURL=chunk-4VWJ4LW2.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
mix
|
|
3
|
+
} from "./chunk-P6T66CCZ.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveColor
|
|
6
|
+
} from "./chunk-TLVIHFRO.js";
|
|
7
|
+
|
|
8
|
+
// src/clock/swatches.ts
|
|
9
|
+
function buildSwatches(palette, muted) {
|
|
10
|
+
const bg = palette.bg;
|
|
11
|
+
const day = resolveColor("orange", palette) ?? "#d98a1f";
|
|
12
|
+
const night = resolveColor("blue", palette) ?? "#4864b0";
|
|
13
|
+
const ok = resolveColor("green", palette) ?? "#3f9e59";
|
|
14
|
+
const soon = resolveColor("orange", palette) ?? "#c9761a";
|
|
15
|
+
return {
|
|
16
|
+
day,
|
|
17
|
+
night,
|
|
18
|
+
dayTint: mix(day, bg, 14),
|
|
19
|
+
nightTint: mix(night, bg, 14),
|
|
20
|
+
ok,
|
|
21
|
+
soon,
|
|
22
|
+
off: muted,
|
|
23
|
+
okSoft: mix(ok, bg, 14),
|
|
24
|
+
soonSoft: mix(soon, bg, 14),
|
|
25
|
+
offSoft: mix(muted, bg, 16),
|
|
26
|
+
// Sundown indicator: a yellow sun by day, a blue moon by night.
|
|
27
|
+
sunIcon: resolveColor("yellow", palette) ?? "#f4b400",
|
|
28
|
+
moonIcon: night
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
buildSwatches
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=chunk-4XFBQT5O.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryCollectNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WQLMU7VG.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes
|
|
6
6
|
} from "./chunk-FMDSF3OV.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
measureIndent,
|
|
18
18
|
parseFirstLine,
|
|
19
19
|
tryParseSharedOption
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LV4BETUU.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveColorWithDiagnostic
|
|
23
23
|
} from "./chunk-TLVIHFRO.js";
|
|
@@ -412,4 +412,4 @@ export {
|
|
|
412
412
|
parseState,
|
|
413
413
|
looksLikeState
|
|
414
414
|
};
|
|
415
|
-
//# sourceMappingURL=chunk-
|
|
415
|
+
//# sourceMappingURL=chunk-5F5ELR3V.js.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
formatLocalISODate
|
|
3
|
-
|
|
4
|
-
} from "./chunk-L3UHP6TD.js";
|
|
2
|
+
formatLocalISODate
|
|
3
|
+
} from "./chunk-7L4UJOY6.js";
|
|
5
4
|
import {
|
|
6
5
|
parseDuration
|
|
7
6
|
} from "./chunk-USZW2HHU.js";
|
|
7
|
+
import {
|
|
8
|
+
parseDateToken,
|
|
9
|
+
toInternal
|
|
10
|
+
} from "./chunk-RBDIYLA5.js";
|
|
8
11
|
import {
|
|
9
12
|
AUTO_TAG_COLOR_SENTINEL,
|
|
10
13
|
finalizeAutoTagColors,
|
|
@@ -14,7 +17,7 @@ import {
|
|
|
14
17
|
tagAttrKey,
|
|
15
18
|
validateTagGroupNames,
|
|
16
19
|
validateTagValues
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-467TVMQL.js";
|
|
18
21
|
import {
|
|
19
22
|
normalizeName
|
|
20
23
|
} from "./chunk-NOTA6TEI.js";
|
|
@@ -25,7 +28,7 @@ import {
|
|
|
25
28
|
splitNameAndMeta,
|
|
26
29
|
warnUnknownMetaKeys,
|
|
27
30
|
withTagAliases
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LV4BETUU.js";
|
|
29
32
|
import {
|
|
30
33
|
emit,
|
|
31
34
|
makeDgmoError,
|
|
@@ -81,7 +84,7 @@ var PERT_DX = {
|
|
|
81
84
|
const date = p.trimmed ?? p.value;
|
|
82
85
|
return date ? `Invalid date '${String(date)}' for ${String(key)}. Expected YYYY-MM-DD.` : `Invalid date for ${String(key)}. Expected YYYY-MM-DD.`;
|
|
83
86
|
},
|
|
84
|
-
hint: "Use a calendar-valid
|
|
87
|
+
hint: "Use a calendar-valid date \u2014 ISO (`2026-06-01`), slash (`6/1/2026`), or month-name (`Jun 1, 2026`).",
|
|
85
88
|
example: "pert\nstart-date 2026-13-99\nA 1 2 3\n"
|
|
86
89
|
},
|
|
87
90
|
NEAR_DIRECTIVE: {
|
|
@@ -139,7 +142,11 @@ var DIRECTIVE_KEYS = /* @__PURE__ */ new Set([
|
|
|
139
142
|
"sprint-length",
|
|
140
143
|
"sprint-number",
|
|
141
144
|
"sprint-start",
|
|
142
|
-
"active-tag"
|
|
145
|
+
"active-tag",
|
|
146
|
+
// Universal date directives (§ BL-121); effect captured in the prescan.
|
|
147
|
+
"year",
|
|
148
|
+
"date-order",
|
|
149
|
+
"no-current-year"
|
|
143
150
|
]);
|
|
144
151
|
var RESERVED_PIPE_KEYS = /* @__PURE__ */ new Set([
|
|
145
152
|
"confidence",
|
|
@@ -152,14 +159,16 @@ var NEAR_DIRECTIVE_HINTS = [
|
|
|
152
159
|
matches: /^(low|medium|high)$/i
|
|
153
160
|
},
|
|
154
161
|
{
|
|
162
|
+
// ISO, numeric slash (§ BL-121), or `now`. Month-name forms are omitted
|
|
163
|
+
// to avoid flagging activities like `start the engines`.
|
|
155
164
|
stem: "start",
|
|
156
165
|
canonical: "start-date",
|
|
157
|
-
matches: /^(\d{4}-\d{2}-\d{2}
|
|
166
|
+
matches: /^(\d{4}-\d{2}-\d{2}|\d{1,2}\/\d{1,2}(?:\/\d{2,4})?|now)$/i
|
|
158
167
|
},
|
|
159
168
|
{
|
|
160
169
|
stem: "end",
|
|
161
170
|
canonical: "end-date",
|
|
162
|
-
matches:
|
|
171
|
+
matches: /^(\d{4}-\d{2}-\d{2}|\d{1,2}\/\d{1,2}(?:\/\d{2,4})?)$/
|
|
163
172
|
},
|
|
164
173
|
{
|
|
165
174
|
stem: "time",
|
|
@@ -374,6 +383,15 @@ function parsePipeMetadata(raw, aliasMap = /* @__PURE__ */ new Map()) {
|
|
|
374
383
|
}
|
|
375
384
|
return out;
|
|
376
385
|
}
|
|
386
|
+
function prescanPertYear(lines, order) {
|
|
387
|
+
for (const raw of lines) {
|
|
388
|
+
const m = raw.trim().match(/^(?:start-date|end-date|sprint-start)\s+(.+)$/i);
|
|
389
|
+
if (!m) continue;
|
|
390
|
+
const res = parseDateToken(m[1].trim(), { dateOrder: order });
|
|
391
|
+
if (res?.token.year != null) return res.token.sign * res.token.year;
|
|
392
|
+
}
|
|
393
|
+
return null;
|
|
394
|
+
}
|
|
377
395
|
function parsePert(content, parseOpts = {}) {
|
|
378
396
|
const lines = content.split("\n");
|
|
379
397
|
const diagnostics = [];
|
|
@@ -384,6 +402,19 @@ function parsePert(content, parseOpts = {}) {
|
|
|
384
402
|
diagnostics.push(makeDgmoError(line, msg, "warning", code));
|
|
385
403
|
};
|
|
386
404
|
const today = formatLocalISODate(parseOpts.now ?? /* @__PURE__ */ new Date());
|
|
405
|
+
let dateOrder = "mdy";
|
|
406
|
+
let directiveYear = null;
|
|
407
|
+
let noCurrentYear = false;
|
|
408
|
+
for (const raw of lines) {
|
|
409
|
+
const t = raw.trim();
|
|
410
|
+
const dm = t.match(/^date-order\s+(mdy|dmy)$/i);
|
|
411
|
+
if (dm) dateOrder = dm[1].toLowerCase();
|
|
412
|
+
const ym = t.match(/^year\s+(\d{1,4})$/i);
|
|
413
|
+
if (ym) directiveYear = parseInt(ym[1], 10);
|
|
414
|
+
if (t.toLowerCase() === "no-current-year") noCurrentYear = true;
|
|
415
|
+
}
|
|
416
|
+
const currentYear = parseInt(today.slice(0, 4), 10);
|
|
417
|
+
const baseYear = directiveYear ?? prescanPertYear(lines, dateOrder);
|
|
387
418
|
const options = { ...DEFAULT_OPTIONS, today };
|
|
388
419
|
let title = null;
|
|
389
420
|
let firstAnchorLine = null;
|
|
@@ -629,7 +660,8 @@ function parsePert(content, parseOpts = {}) {
|
|
|
629
660
|
options,
|
|
630
661
|
diagnostics,
|
|
631
662
|
firstAnchorLine,
|
|
632
|
-
firstAnchorKey
|
|
663
|
+
firstAnchorKey,
|
|
664
|
+
{ order: dateOrder, baseYear, currentYear, noCurrentYear }
|
|
633
665
|
);
|
|
634
666
|
if (!hadAnchor && options.anchor !== null) {
|
|
635
667
|
firstAnchorLine = lineNumber;
|
|
@@ -640,7 +672,12 @@ function parsePert(content, parseOpts = {}) {
|
|
|
640
672
|
}
|
|
641
673
|
continue;
|
|
642
674
|
}
|
|
643
|
-
applyDirective(head, value, lineNumber, options, error, warn
|
|
675
|
+
applyDirective(head, value, lineNumber, options, error, warn, {
|
|
676
|
+
order: dateOrder,
|
|
677
|
+
baseYear,
|
|
678
|
+
currentYear,
|
|
679
|
+
noCurrentYear
|
|
680
|
+
});
|
|
644
681
|
continue;
|
|
645
682
|
}
|
|
646
683
|
}
|
|
@@ -907,8 +944,14 @@ function parsePert(content, parseOpts = {}) {
|
|
|
907
944
|
error: firstFatal ? firstFatal.message : null
|
|
908
945
|
};
|
|
909
946
|
}
|
|
910
|
-
function applyDirective(key, value, lineNumber, options, error, warn) {
|
|
947
|
+
function applyDirective(key, value, lineNumber, options, error, warn, dateCfg) {
|
|
911
948
|
switch (key) {
|
|
949
|
+
// Universal date directives (§ BL-121) — captured in the parsePert prescan;
|
|
950
|
+
// consumed here so they don't warn as unknown.
|
|
951
|
+
case "year":
|
|
952
|
+
case "date-order":
|
|
953
|
+
case "no-current-year":
|
|
954
|
+
return;
|
|
912
955
|
case "time-unit": {
|
|
913
956
|
const valid = [
|
|
914
957
|
"min",
|
|
@@ -984,15 +1027,18 @@ function applyDirective(key, value, lineNumber, options, error, warn) {
|
|
|
984
1027
|
return;
|
|
985
1028
|
}
|
|
986
1029
|
case "sprint-start": {
|
|
987
|
-
|
|
1030
|
+
const res = parseDateToken(value.trim(), { dateOrder: dateCfg.order });
|
|
1031
|
+
const yr = res?.token.year ?? dateCfg.baseYear ?? dateCfg.currentYear;
|
|
1032
|
+
const iso = res?.consumed === value.trim().length && !res.token.invalidTime && res.token.grain >= 3 && !res.token.hasTime ? toInternal(res.token, yr) : null;
|
|
1033
|
+
if (!iso) {
|
|
988
1034
|
warn(
|
|
989
1035
|
lineNumber,
|
|
990
|
-
`sprint-start requires a full date (YYYY-MM-DD), got "${value}".`
|
|
1036
|
+
`sprint-start requires a full date (e.g. YYYY-MM-DD, 7/4, or Jul 4), got "${value}".`
|
|
991
1037
|
);
|
|
992
|
-
} else if (Number.isNaN((/* @__PURE__ */ new Date(
|
|
1038
|
+
} else if (Number.isNaN((/* @__PURE__ */ new Date(iso + "T00:00:00")).getTime())) {
|
|
993
1039
|
warn(lineNumber, `sprint-start is not a valid date: "${value}".`);
|
|
994
1040
|
} else {
|
|
995
|
-
options.sprintStart =
|
|
1041
|
+
options.sprintStart = iso;
|
|
996
1042
|
}
|
|
997
1043
|
return;
|
|
998
1044
|
}
|
|
@@ -1069,7 +1115,7 @@ function applyDirective(key, value, lineNumber, options, error, warn) {
|
|
|
1069
1115
|
}
|
|
1070
1116
|
}
|
|
1071
1117
|
}
|
|
1072
|
-
function applyAnchorDirective(key, value, lineNumber, options, diagnostics, firstAnchorLine, firstAnchorKey) {
|
|
1118
|
+
function applyAnchorDirective(key, value, lineNumber, options, diagnostics, firstAnchorLine, firstAnchorKey, dateCfg) {
|
|
1073
1119
|
if (options.anchor !== null) {
|
|
1074
1120
|
diagnostics.push(
|
|
1075
1121
|
emit(PERT_DX.BOTH_ANCHORS, lineNumber, {
|
|
@@ -1095,12 +1141,28 @@ function applyAnchorDirective(key, value, lineNumber, options, diagnostics, firs
|
|
|
1095
1141
|
options.anchor = { kind: "forward", date: options.today };
|
|
1096
1142
|
return;
|
|
1097
1143
|
}
|
|
1098
|
-
const
|
|
1099
|
-
if (
|
|
1144
|
+
const res = parseDateToken(trimmed, { dateOrder: dateCfg.order });
|
|
1145
|
+
if (res?.consumed !== trimmed.length || res.token.invalidTime || res.token.grain < 3) {
|
|
1146
|
+
diagnostics.push(emit(PERT_DX.INVALID_DATE, lineNumber, { trimmed, key }));
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
let year = res.token.year;
|
|
1150
|
+
if (year == null) {
|
|
1151
|
+
if (dateCfg.baseYear == null && dateCfg.noCurrentYear) {
|
|
1152
|
+
diagnostics.push(
|
|
1153
|
+
emit(PERT_DX.INVALID_DATE, lineNumber, { trimmed, key })
|
|
1154
|
+
);
|
|
1155
|
+
return;
|
|
1156
|
+
}
|
|
1157
|
+
year = dateCfg.baseYear ?? dateCfg.currentYear;
|
|
1158
|
+
}
|
|
1159
|
+
const probe = new Date(year, res.token.month - 1, res.token.day);
|
|
1160
|
+
if (probe.getFullYear() !== year || probe.getMonth() !== res.token.month - 1 || probe.getDate() !== res.token.day) {
|
|
1100
1161
|
diagnostics.push(emit(PERT_DX.INVALID_DATE, lineNumber, { trimmed, key }));
|
|
1101
1162
|
return;
|
|
1102
1163
|
}
|
|
1103
|
-
|
|
1164
|
+
const iso = toInternal(res.token, year);
|
|
1165
|
+
options.anchor = key === "start-date" ? { kind: "forward", date: iso } : { kind: "backward", date: iso };
|
|
1104
1166
|
}
|
|
1105
1167
|
function classifyGroup(group, edges) {
|
|
1106
1168
|
const members = new Set(group.activityIds);
|
|
@@ -1152,4 +1214,4 @@ export {
|
|
|
1152
1214
|
extractPertSymbols,
|
|
1153
1215
|
looksLikePert
|
|
1154
1216
|
};
|
|
1155
|
-
//# sourceMappingURL=chunk-
|
|
1217
|
+
//# sourceMappingURL=chunk-5PDTIBLV.js.map
|