@zenuml/core 4.8.0 → 4.9.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/cli/assets/{CloudIcons-qEDx5IlS.mjs → CloudIcons-De45wK6e.mjs} +32 -31
- package/dist/cli/zenuml.mjs +166 -43
- package/dist/{cloud-icons-eHuugVSv.js → cloud-icons-w-sGmXgI.js} +495 -416
- package/dist/lsp/main.js +2 -2
- package/dist/lsp/zenuml-server.worker.js +1096 -1096
- package/dist/parser/index.cjs +1 -1
- package/dist/parser/index.mjs +73 -47
- package/dist/zenuml.esm.mjs +11534 -11388
- package/dist/zenuml.js +1007 -927
- package/package.json +1 -1
- package/types/index.d.ts +60 -3
package/dist/parser/index.mjs
CHANGED
|
@@ -12968,7 +12968,7 @@ const D0 = [
|
|
|
12968
12968
|
4,
|
|
12969
12969
|
1,
|
|
12970
12970
|
81,
|
|
12971
|
-
|
|
12971
|
+
659,
|
|
12972
12972
|
2,
|
|
12973
12973
|
0,
|
|
12974
12974
|
7,
|
|
@@ -14371,9 +14371,11 @@ const D0 = [
|
|
|
14371
14371
|
58,
|
|
14372
14372
|
1,
|
|
14373
14373
|
58,
|
|
14374
|
+
1,
|
|
14375
|
+
58,
|
|
14374
14376
|
3,
|
|
14375
14377
|
58,
|
|
14376
|
-
|
|
14378
|
+
648,
|
|
14377
14379
|
8,
|
|
14378
14380
|
58,
|
|
14379
14381
|
1,
|
|
@@ -14388,14 +14390,14 @@ const D0 = [
|
|
|
14388
14390
|
60,
|
|
14389
14391
|
4,
|
|
14390
14392
|
60,
|
|
14391
|
-
|
|
14393
|
+
655,
|
|
14392
14394
|
8,
|
|
14393
14395
|
60,
|
|
14394
14396
|
11,
|
|
14395
14397
|
60,
|
|
14396
14398
|
12,
|
|
14397
14399
|
60,
|
|
14398
|
-
|
|
14400
|
+
656,
|
|
14399
14401
|
1,
|
|
14400
14402
|
60,
|
|
14401
14403
|
0,
|
|
@@ -14526,10 +14528,10 @@ const D0 = [
|
|
|
14526
14528
|
2,
|
|
14527
14529
|
0,
|
|
14528
14530
|
62,
|
|
14529
|
-
|
|
14531
|
+
64,
|
|
14530
14532
|
66,
|
|
14531
14533
|
67,
|
|
14532
|
-
|
|
14534
|
+
743,
|
|
14533
14535
|
0,
|
|
14534
14536
|
141,
|
|
14535
14537
|
1,
|
|
@@ -14879,19 +14881,19 @@ const D0 = [
|
|
|
14879
14881
|
0,
|
|
14880
14882
|
0,
|
|
14881
14883
|
116,
|
|
14882
|
-
|
|
14884
|
+
647,
|
|
14883
14885
|
1,
|
|
14884
14886
|
0,
|
|
14885
14887
|
0,
|
|
14886
14888
|
0,
|
|
14887
14889
|
118,
|
|
14888
|
-
|
|
14890
|
+
649,
|
|
14889
14891
|
1,
|
|
14890
14892
|
0,
|
|
14891
14893
|
0,
|
|
14892
14894
|
0,
|
|
14893
14895
|
120,
|
|
14894
|
-
|
|
14896
|
+
654,
|
|
14895
14897
|
1,
|
|
14896
14898
|
0,
|
|
14897
14899
|
0,
|
|
@@ -18863,114 +18865,126 @@ const D0 = [
|
|
|
18863
18865
|
0,
|
|
18864
18866
|
0,
|
|
18865
18867
|
642,
|
|
18866
|
-
|
|
18868
|
+
648,
|
|
18867
18869
|
3,
|
|
18868
18870
|
112,
|
|
18869
18871
|
56,
|
|
18870
18872
|
0,
|
|
18871
18873
|
643,
|
|
18872
|
-
|
|
18874
|
+
648,
|
|
18873
18875
|
3,
|
|
18874
18876
|
110,
|
|
18875
18877
|
55,
|
|
18876
18878
|
0,
|
|
18877
18879
|
644,
|
|
18878
|
-
|
|
18880
|
+
648,
|
|
18879
18881
|
3,
|
|
18880
18882
|
118,
|
|
18881
18883
|
59,
|
|
18882
18884
|
0,
|
|
18883
18885
|
645,
|
|
18884
|
-
|
|
18886
|
+
648,
|
|
18885
18887
|
3,
|
|
18886
18888
|
120,
|
|
18887
18889
|
60,
|
|
18888
18890
|
0,
|
|
18889
18891
|
646,
|
|
18892
|
+
648,
|
|
18893
|
+
3,
|
|
18894
|
+
24,
|
|
18895
|
+
12,
|
|
18896
|
+
0,
|
|
18897
|
+
647,
|
|
18890
18898
|
642,
|
|
18891
18899
|
1,
|
|
18892
18900
|
0,
|
|
18893
18901
|
0,
|
|
18894
18902
|
0,
|
|
18895
|
-
|
|
18903
|
+
647,
|
|
18896
18904
|
643,
|
|
18897
18905
|
1,
|
|
18898
18906
|
0,
|
|
18899
18907
|
0,
|
|
18900
18908
|
0,
|
|
18901
|
-
|
|
18909
|
+
647,
|
|
18902
18910
|
644,
|
|
18903
18911
|
1,
|
|
18904
18912
|
0,
|
|
18905
18913
|
0,
|
|
18906
18914
|
0,
|
|
18907
|
-
|
|
18915
|
+
647,
|
|
18908
18916
|
645,
|
|
18909
18917
|
1,
|
|
18910
18918
|
0,
|
|
18911
18919
|
0,
|
|
18912
18920
|
0,
|
|
18913
18921
|
647,
|
|
18914
|
-
|
|
18922
|
+
646,
|
|
18915
18923
|
1,
|
|
18916
18924
|
0,
|
|
18917
18925
|
0,
|
|
18918
18926
|
0,
|
|
18919
18927
|
648,
|
|
18928
|
+
117,
|
|
18929
|
+
1,
|
|
18930
|
+
0,
|
|
18931
|
+
0,
|
|
18932
|
+
0,
|
|
18920
18933
|
649,
|
|
18934
|
+
650,
|
|
18921
18935
|
7,
|
|
18922
18936
|
4,
|
|
18923
18937
|
0,
|
|
18924
18938
|
0,
|
|
18925
|
-
649,
|
|
18926
18939
|
650,
|
|
18940
|
+
651,
|
|
18927
18941
|
5,
|
|
18928
18942
|
55,
|
|
18929
18943
|
0,
|
|
18930
18944
|
0,
|
|
18931
|
-
650,
|
|
18932
18945
|
651,
|
|
18946
|
+
652,
|
|
18933
18947
|
7,
|
|
18934
18948
|
4,
|
|
18935
18949
|
0,
|
|
18936
18950
|
0,
|
|
18937
|
-
|
|
18951
|
+
652,
|
|
18938
18952
|
119,
|
|
18939
18953
|
1,
|
|
18940
18954
|
0,
|
|
18941
18955
|
0,
|
|
18942
18956
|
0,
|
|
18943
|
-
|
|
18944
|
-
|
|
18957
|
+
653,
|
|
18958
|
+
655,
|
|
18945
18959
|
7,
|
|
18946
18960
|
12,
|
|
18947
18961
|
0,
|
|
18948
18962
|
0,
|
|
18963
|
+
654,
|
|
18949
18964
|
653,
|
|
18950
|
-
652,
|
|
18951
18965
|
1,
|
|
18952
18966
|
0,
|
|
18953
18967
|
0,
|
|
18954
18968
|
0,
|
|
18955
|
-
654,
|
|
18956
18969
|
655,
|
|
18970
|
+
656,
|
|
18957
18971
|
1,
|
|
18958
18972
|
0,
|
|
18959
18973
|
0,
|
|
18960
18974
|
0,
|
|
18961
|
-
|
|
18962
|
-
|
|
18975
|
+
656,
|
|
18976
|
+
654,
|
|
18963
18977
|
1,
|
|
18964
18978
|
0,
|
|
18965
18979
|
0,
|
|
18966
18980
|
0,
|
|
18967
|
-
655,
|
|
18968
18981
|
656,
|
|
18982
|
+
657,
|
|
18969
18983
|
1,
|
|
18970
18984
|
0,
|
|
18971
18985
|
0,
|
|
18972
18986
|
0,
|
|
18973
|
-
|
|
18987
|
+
657,
|
|
18974
18988
|
121,
|
|
18975
18989
|
1,
|
|
18976
18990
|
0,
|
|
@@ -19078,8 +19092,8 @@ const D0 = [
|
|
|
19078
19092
|
633,
|
|
19079
19093
|
637,
|
|
19080
19094
|
640,
|
|
19081
|
-
|
|
19082
|
-
|
|
19095
|
+
647,
|
|
19096
|
+
656
|
|
19083
19097
|
], q = new h.atn.ATNDeserializer().deserialize(D0), P0 = q.decisionToState.map((r, t) => new h.dfa.DFA(r, t)), k0 = new h.PredictionContextCache();
|
|
19084
19098
|
class i extends h.Parser {
|
|
19085
19099
|
static grammarFileName = "java-escape";
|
|
@@ -19515,7 +19529,7 @@ class i extends h.Parser {
|
|
|
19515
19529
|
return t;
|
|
19516
19530
|
}
|
|
19517
19531
|
participant() {
|
|
19518
|
-
let t = new
|
|
19532
|
+
let t = new N(this, this._ctx, this.state);
|
|
19519
19533
|
this.enterRule(t, 12, i.RULE_participant);
|
|
19520
19534
|
var e = 0;
|
|
19521
19535
|
try {
|
|
@@ -19643,7 +19657,7 @@ class i extends h.Parser {
|
|
|
19643
19657
|
return t;
|
|
19644
19658
|
}
|
|
19645
19659
|
emoji() {
|
|
19646
|
-
let t = new
|
|
19660
|
+
let t = new L(this, this._ctx, this.state);
|
|
19647
19661
|
this.enterRule(t, 24, i.RULE_emoji);
|
|
19648
19662
|
try {
|
|
19649
19663
|
switch (this.state = 249, this._errHandler.sync(this), this._input.LA(1)) {
|
|
@@ -20704,7 +20718,7 @@ class i extends h.Parser {
|
|
|
20704
20718
|
let t = new Pt(this, this._ctx, this.state);
|
|
20705
20719
|
this.enterRule(t, 116, i.RULE_condition);
|
|
20706
20720
|
try {
|
|
20707
|
-
this.state =
|
|
20721
|
+
this.state = 647, this._errHandler.sync(this);
|
|
20708
20722
|
var e = this._interp.adaptivePredict(this._input, 101, this._ctx);
|
|
20709
20723
|
switch (e) {
|
|
20710
20724
|
case 1:
|
|
@@ -20719,6 +20733,9 @@ class i extends h.Parser {
|
|
|
20719
20733
|
case 4:
|
|
20720
20734
|
this.enterOuterAlt(t, 4), this.state = 645, this.textExpr();
|
|
20721
20735
|
break;
|
|
20736
|
+
case 5:
|
|
20737
|
+
this.enterOuterAlt(t, 5), this.state = 646, this.emoji();
|
|
20738
|
+
break;
|
|
20722
20739
|
}
|
|
20723
20740
|
} catch (s) {
|
|
20724
20741
|
if (s instanceof h.error.RecognitionException)
|
|
@@ -20735,7 +20752,7 @@ class i extends h.Parser {
|
|
|
20735
20752
|
this.enterRule(t, 118, i.RULE_inExpr);
|
|
20736
20753
|
var e = 0;
|
|
20737
20754
|
try {
|
|
20738
|
-
this.enterOuterAlt(t, 1), this.state =
|
|
20755
|
+
this.enterOuterAlt(t, 1), this.state = 649, e = this._input.LA(1), e === 62 || e === 67 ? (this._errHandler.reportMatch(this), this.consume()) : this._errHandler.recoverInline(this), this.state = 650, this.match(i.IN), this.state = 651, e = this._input.LA(1), e === 62 || e === 67 ? (this._errHandler.reportMatch(this), this.consume()) : this._errHandler.recoverInline(this);
|
|
20739
20756
|
} catch (s) {
|
|
20740
20757
|
if (s instanceof h.error.RecognitionException)
|
|
20741
20758
|
t.exception = s, this._errHandler.reportError(this, s), this._errHandler.recover(this, s);
|
|
@@ -20751,17 +20768,17 @@ class i extends h.Parser {
|
|
|
20751
20768
|
this.enterRule(t, 120, i.RULE_textExpr);
|
|
20752
20769
|
var e = 0;
|
|
20753
20770
|
try {
|
|
20754
|
-
this.enterOuterAlt(t, 1), this.state =
|
|
20771
|
+
this.enterOuterAlt(t, 1), this.state = 654, this._errHandler.sync(this);
|
|
20755
20772
|
var s = 1;
|
|
20756
20773
|
do {
|
|
20757
20774
|
switch (s) {
|
|
20758
20775
|
case 1:
|
|
20759
|
-
this.state =
|
|
20776
|
+
this.state = 653, e = this._input.LA(1), (e - 62 & -32) == 0 && (1 << e - 62 & 55) !== 0 ? (this._errHandler.reportMatch(this), this.consume()) : this._errHandler.recoverInline(this);
|
|
20760
20777
|
break;
|
|
20761
20778
|
default:
|
|
20762
20779
|
throw new h.error.NoViableAltException(this);
|
|
20763
20780
|
}
|
|
20764
|
-
this.state =
|
|
20781
|
+
this.state = 656, this._errHandler.sync(this), s = this._interp.adaptivePredict(this._input, 102, this._ctx);
|
|
20765
20782
|
} while (s != 2 && s != h.atn.ATN.INVALID_ALT_NUMBER);
|
|
20766
20783
|
} catch (n) {
|
|
20767
20784
|
if (n instanceof h.error.RecognitionException)
|
|
@@ -20967,7 +20984,7 @@ class st extends h.ParserRuleContext {
|
|
|
20967
20984
|
return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(B) : this.getTypedRuleContext(B, t);
|
|
20968
20985
|
};
|
|
20969
20986
|
participant = function(t) {
|
|
20970
|
-
return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(
|
|
20987
|
+
return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(N) : this.getTypedRuleContext(N, t);
|
|
20971
20988
|
};
|
|
20972
20989
|
starterExp() {
|
|
20973
20990
|
return this.getTypedRuleContext(rt, 0);
|
|
@@ -20993,7 +21010,7 @@ class B extends h.ParserRuleContext {
|
|
|
20993
21010
|
return this.getToken(i.OBRACE, 0);
|
|
20994
21011
|
}
|
|
20995
21012
|
participant = function(t) {
|
|
20996
|
-
return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(
|
|
21013
|
+
return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(N) : this.getTypedRuleContext(N, t);
|
|
20997
21014
|
};
|
|
20998
21015
|
CBRACE() {
|
|
20999
21016
|
return this.getToken(i.CBRACE, 0);
|
|
@@ -21045,7 +21062,7 @@ class nt extends h.ParserRuleContext {
|
|
|
21045
21062
|
t instanceof o && t.exitStarter(this);
|
|
21046
21063
|
}
|
|
21047
21064
|
}
|
|
21048
|
-
class
|
|
21065
|
+
class N extends h.ParserRuleContext {
|
|
21049
21066
|
constructor(t, e, s) {
|
|
21050
21067
|
e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_participant;
|
|
21051
21068
|
}
|
|
@@ -21059,7 +21076,7 @@ class L extends h.ParserRuleContext {
|
|
|
21059
21076
|
return this.getTypedRuleContext(ht, 0);
|
|
21060
21077
|
}
|
|
21061
21078
|
emoji() {
|
|
21062
|
-
return this.getTypedRuleContext(
|
|
21079
|
+
return this.getTypedRuleContext(L, 0);
|
|
21063
21080
|
}
|
|
21064
21081
|
width() {
|
|
21065
21082
|
return this.getTypedRuleContext(ct, 0);
|
|
@@ -21171,7 +21188,7 @@ class ct extends h.ParserRuleContext {
|
|
|
21171
21188
|
t instanceof o && t.exitWidth(this);
|
|
21172
21189
|
}
|
|
21173
21190
|
}
|
|
21174
|
-
class
|
|
21191
|
+
class L extends h.ParserRuleContext {
|
|
21175
21192
|
constructor(t, e, s) {
|
|
21176
21193
|
e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_emoji;
|
|
21177
21194
|
}
|
|
@@ -21596,7 +21613,7 @@ class H extends h.ParserRuleContext {
|
|
|
21596
21613
|
return this.getTypedRuleContext(d, 0);
|
|
21597
21614
|
}
|
|
21598
21615
|
emoji() {
|
|
21599
|
-
return this.getTypedRuleContext(
|
|
21616
|
+
return this.getTypedRuleContext(L, 0);
|
|
21600
21617
|
}
|
|
21601
21618
|
enterRule(t) {
|
|
21602
21619
|
t instanceof o && t.enterFrom(this);
|
|
@@ -21613,7 +21630,7 @@ class g extends h.ParserRuleContext {
|
|
|
21613
21630
|
return this.getTypedRuleContext(d, 0);
|
|
21614
21631
|
}
|
|
21615
21632
|
emoji() {
|
|
21616
|
-
return this.getTypedRuleContext(
|
|
21633
|
+
return this.getTypedRuleContext(L, 0);
|
|
21617
21634
|
}
|
|
21618
21635
|
enterRule(t) {
|
|
21619
21636
|
t instanceof o && t.enterTo(this);
|
|
@@ -21790,7 +21807,7 @@ class Nt extends h.ParserRuleContext {
|
|
|
21790
21807
|
return this.getTypedRuleContext(d, 0);
|
|
21791
21808
|
}
|
|
21792
21809
|
emoji() {
|
|
21793
|
-
return this.getTypedRuleContext(
|
|
21810
|
+
return this.getTypedRuleContext(L, 0);
|
|
21794
21811
|
}
|
|
21795
21812
|
enterRule(t) {
|
|
21796
21813
|
t instanceof o && t.enterMethodName(this);
|
|
@@ -22527,6 +22544,9 @@ class Pt extends h.ParserRuleContext {
|
|
|
22527
22544
|
textExpr() {
|
|
22528
22545
|
return this.getTypedRuleContext(bt, 0);
|
|
22529
22546
|
}
|
|
22547
|
+
emoji() {
|
|
22548
|
+
return this.getTypedRuleContext(L, 0);
|
|
22549
|
+
}
|
|
22530
22550
|
enterRule(t) {
|
|
22531
22551
|
t instanceof o && t.enterCondition(this);
|
|
22532
22552
|
}
|
|
@@ -22567,6 +22587,12 @@ class bt extends h.ParserRuleContext {
|
|
|
22567
22587
|
NUMBER_UNIT = function(t) {
|
|
22568
22588
|
return t === void 0 && (t = null), t === null ? this.getTokens(i.NUMBER_UNIT) : this.getToken(i.NUMBER_UNIT, t);
|
|
22569
22589
|
};
|
|
22590
|
+
INT = function(t) {
|
|
22591
|
+
return t === void 0 && (t = null), t === null ? this.getTokens(i.INT) : this.getToken(i.INT, t);
|
|
22592
|
+
};
|
|
22593
|
+
FLOAT = function(t) {
|
|
22594
|
+
return t === void 0 && (t = null), t === null ? this.getTokens(i.FLOAT) : this.getToken(i.FLOAT, t);
|
|
22595
|
+
};
|
|
22570
22596
|
enterRule(t) {
|
|
22571
22597
|
t instanceof o && t.enterTextExpr(this);
|
|
22572
22598
|
}
|
|
@@ -22580,13 +22606,13 @@ i.HeadContext = st;
|
|
|
22580
22606
|
i.GroupContext = B;
|
|
22581
22607
|
i.StarterExpContext = rt;
|
|
22582
22608
|
i.StarterContext = nt;
|
|
22583
|
-
i.ParticipantContext =
|
|
22609
|
+
i.ParticipantContext = N;
|
|
22584
22610
|
i.StereotypeContext = ht;
|
|
22585
22611
|
i.LabelContext = ot;
|
|
22586
22612
|
i.ParticipantTypeContext = at;
|
|
22587
22613
|
i.NameContext = d;
|
|
22588
22614
|
i.WidthContext = ct;
|
|
22589
|
-
i.EmojiContext =
|
|
22615
|
+
i.EmojiContext = L;
|
|
22590
22616
|
i.BlockContext = G;
|
|
22591
22617
|
i.RetContext = lt;
|
|
22592
22618
|
i.ReturnAsyncMessageContext = ut;
|