camunda-bpmn-js 5.3.0 → 5.4.1
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/base-modeler.development.js +235 -122
- package/dist/base-modeler.production.min.js +6 -6
- package/dist/camunda-cloud-modeler.development.js +292 -142
- package/dist/camunda-cloud-modeler.production.min.js +11 -11
- package/dist/camunda-platform-modeler.development.js +235 -122
- package/dist/camunda-platform-modeler.production.min.js +6 -6
- package/package.json +4 -4
|
@@ -68232,7 +68232,7 @@
|
|
|
68232
68232
|
return resolveNode(this, pos, side, true);
|
|
68233
68233
|
}
|
|
68234
68234
|
matchContext(context) {
|
|
68235
|
-
return matchNodeContext(this, context);
|
|
68235
|
+
return matchNodeContext(this.parent, context);
|
|
68236
68236
|
}
|
|
68237
68237
|
enterUnfinishedNodesBefore(pos) {
|
|
68238
68238
|
let scan = this.childBefore(pos), node = this;
|
|
@@ -68357,7 +68357,7 @@
|
|
|
68357
68357
|
}
|
|
68358
68358
|
}
|
|
68359
68359
|
function matchNodeContext(node, context, i = context.length - 1) {
|
|
68360
|
-
for (let p = node
|
|
68360
|
+
for (let p = node; i >= 0; p = p.parent) {
|
|
68361
68361
|
if (!p)
|
|
68362
68362
|
return false;
|
|
68363
68363
|
if (!p.type.isAnonymous) {
|
|
@@ -68693,7 +68693,7 @@
|
|
|
68693
68693
|
*/
|
|
68694
68694
|
next(enter = true) { return this.move(1, enter); }
|
|
68695
68695
|
/**
|
|
68696
|
-
Move to the next node in a last-to-first pre-order
|
|
68696
|
+
Move to the next node in a last-to-first pre-order traversal. A
|
|
68697
68697
|
node is followed by its last child or, if it has none, its
|
|
68698
68698
|
previous sibling or the previous sibling of the first parent
|
|
68699
68699
|
node that has one.
|
|
@@ -68769,10 +68769,10 @@
|
|
|
68769
68769
|
if (mustLeave && leave)
|
|
68770
68770
|
leave(this);
|
|
68771
68771
|
mustLeave = this.type.isAnonymous;
|
|
68772
|
-
if (this.nextSibling())
|
|
68773
|
-
break;
|
|
68774
68772
|
if (!depth)
|
|
68775
68773
|
return;
|
|
68774
|
+
if (this.nextSibling())
|
|
68775
|
+
break;
|
|
68776
68776
|
this.parent();
|
|
68777
68777
|
depth--;
|
|
68778
68778
|
mustLeave = true;
|
|
@@ -68786,11 +68786,11 @@
|
|
|
68786
68786
|
*/
|
|
68787
68787
|
matchContext(context) {
|
|
68788
68788
|
if (!this.buffer)
|
|
68789
|
-
return matchNodeContext(this.node, context);
|
|
68789
|
+
return matchNodeContext(this.node.parent, context);
|
|
68790
68790
|
let { buffer } = this.buffer, { types } = buffer.set;
|
|
68791
68791
|
for (let i = context.length - 1, d = this.stack.length - 1; i >= 0; d--) {
|
|
68792
68792
|
if (d < 0)
|
|
68793
|
-
return matchNodeContext(this.
|
|
68793
|
+
return matchNodeContext(this._tree, context, i);
|
|
68794
68794
|
let type = types[buffer.buffer[this.stack[d]]];
|
|
68795
68795
|
if (!type.isAnonymous) {
|
|
68796
68796
|
if (context[i] && context[i] != type.name)
|
|
@@ -68812,7 +68812,7 @@
|
|
|
68812
68812
|
let contextHash = 0, lookAhead = 0;
|
|
68813
68813
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
68814
68814
|
let { id, start, end, size } = cursor;
|
|
68815
|
-
let lookAheadAtStart = lookAhead;
|
|
68815
|
+
let lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
68816
68816
|
while (size < 0) {
|
|
68817
68817
|
cursor.next();
|
|
68818
68818
|
if (size == -1 /* SpecialRecord.Reuse */) {
|
|
@@ -68853,7 +68853,7 @@
|
|
|
68853
68853
|
while (cursor.pos > endPos) {
|
|
68854
68854
|
if (localInRepeat >= 0 && cursor.id == localInRepeat && cursor.size >= 0) {
|
|
68855
68855
|
if (cursor.end <= lastEnd - maxBufferLength) {
|
|
68856
|
-
makeRepeatLeaf(localChildren, localPositions, start, lastGroup, cursor.end, lastEnd, localInRepeat, lookAheadAtStart);
|
|
68856
|
+
makeRepeatLeaf(localChildren, localPositions, start, lastGroup, cursor.end, lastEnd, localInRepeat, lookAheadAtStart, contextAtStart);
|
|
68857
68857
|
lastGroup = localChildren.length;
|
|
68858
68858
|
lastEnd = cursor.end;
|
|
68859
68859
|
}
|
|
@@ -68867,15 +68867,15 @@
|
|
|
68867
68867
|
}
|
|
68868
68868
|
}
|
|
68869
68869
|
if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length)
|
|
68870
|
-
makeRepeatLeaf(localChildren, localPositions, start, lastGroup, start, lastEnd, localInRepeat, lookAheadAtStart);
|
|
68870
|
+
makeRepeatLeaf(localChildren, localPositions, start, lastGroup, start, lastEnd, localInRepeat, lookAheadAtStart, contextAtStart);
|
|
68871
68871
|
localChildren.reverse();
|
|
68872
68872
|
localPositions.reverse();
|
|
68873
68873
|
if (localInRepeat > -1 && lastGroup > 0) {
|
|
68874
|
-
let make = makeBalanced(type);
|
|
68874
|
+
let make = makeBalanced(type, contextAtStart);
|
|
68875
68875
|
node = balanceRange(type, localChildren, localPositions, 0, localChildren.length, 0, end - start, make, make);
|
|
68876
68876
|
}
|
|
68877
68877
|
else {
|
|
68878
|
-
node = makeTree(type, localChildren, localPositions, end - start, lookAheadAtStart - end);
|
|
68878
|
+
node = makeTree(type, localChildren, localPositions, end - start, lookAheadAtStart - end, contextAtStart);
|
|
68879
68879
|
}
|
|
68880
68880
|
}
|
|
68881
68881
|
children.push(node);
|
|
@@ -68913,7 +68913,7 @@
|
|
|
68913
68913
|
positions.push(start - parentStart);
|
|
68914
68914
|
}
|
|
68915
68915
|
}
|
|
68916
|
-
function makeBalanced(type) {
|
|
68916
|
+
function makeBalanced(type, contextHash) {
|
|
68917
68917
|
return (children, positions, length) => {
|
|
68918
68918
|
let lookAhead = 0, lastI = children.length - 1, last, lookAheadProp;
|
|
68919
68919
|
if (lastI >= 0 && (last = children[lastI]) instanceof Tree) {
|
|
@@ -68922,19 +68922,19 @@
|
|
|
68922
68922
|
if (lookAheadProp = last.prop(NodeProp.lookAhead))
|
|
68923
68923
|
lookAhead = positions[lastI] + last.length + lookAheadProp;
|
|
68924
68924
|
}
|
|
68925
|
-
return makeTree(type, children, positions, length, lookAhead);
|
|
68925
|
+
return makeTree(type, children, positions, length, lookAhead, contextHash);
|
|
68926
68926
|
};
|
|
68927
68927
|
}
|
|
68928
|
-
function makeRepeatLeaf(children, positions, base, i, from, to, type, lookAhead) {
|
|
68928
|
+
function makeRepeatLeaf(children, positions, base, i, from, to, type, lookAhead, contextHash) {
|
|
68929
68929
|
let localChildren = [], localPositions = [];
|
|
68930
68930
|
while (children.length > i) {
|
|
68931
68931
|
localChildren.push(children.pop());
|
|
68932
68932
|
localPositions.push(positions.pop() + base - from);
|
|
68933
68933
|
}
|
|
68934
|
-
children.push(makeTree(nodeSet.types[type], localChildren, localPositions, to - from, lookAhead - to));
|
|
68934
|
+
children.push(makeTree(nodeSet.types[type], localChildren, localPositions, to - from, lookAhead - to, contextHash));
|
|
68935
68935
|
positions.push(from - base);
|
|
68936
68936
|
}
|
|
68937
|
-
function makeTree(type, children, positions, length, lookAhead
|
|
68937
|
+
function makeTree(type, children, positions, length, lookAhead, contextHash, props) {
|
|
68938
68938
|
if (contextHash) {
|
|
68939
68939
|
let pair = [NodeProp.contextHash, contextHash];
|
|
68940
68940
|
props = props ? [pair].concat(props) : [pair];
|
|
@@ -69389,8 +69389,13 @@
|
|
|
69389
69389
|
else if (overlay && (range = overlay.predicate(cursor))) {
|
|
69390
69390
|
if (range === true)
|
|
69391
69391
|
range = new Range$2(cursor.from, cursor.to);
|
|
69392
|
-
if (range.from < range.to)
|
|
69393
|
-
overlay.ranges.
|
|
69392
|
+
if (range.from < range.to) {
|
|
69393
|
+
let last = overlay.ranges.length - 1;
|
|
69394
|
+
if (last >= 0 && overlay.ranges[last].to == range.from)
|
|
69395
|
+
overlay.ranges[last] = { from: overlay.ranges[last].from, to: range.to };
|
|
69396
|
+
else
|
|
69397
|
+
overlay.ranges.push(range);
|
|
69398
|
+
}
|
|
69394
69399
|
}
|
|
69395
69400
|
if (enter && cursor.firstChild()) {
|
|
69396
69401
|
if (overlay)
|
|
@@ -69774,7 +69779,8 @@
|
|
|
69774
69779
|
var _a;
|
|
69775
69780
|
let depth = action >> 19 /* Action.ReduceDepthShift */, type = action & 65535 /* Action.ValueMask */;
|
|
69776
69781
|
let { parser } = this.p;
|
|
69777
|
-
|
|
69782
|
+
let lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */;
|
|
69783
|
+
if (lookaheadRecord)
|
|
69778
69784
|
this.setLookAhead(this.pos);
|
|
69779
69785
|
let dPrec = parser.dynamicPrecedence(type);
|
|
69780
69786
|
if (dPrec)
|
|
@@ -69784,7 +69790,7 @@
|
|
|
69784
69790
|
// Zero-depth reductions are a special case—they add stuff to
|
|
69785
69791
|
// the stack without popping anything off.
|
|
69786
69792
|
if (type < parser.minRepeatTerm)
|
|
69787
|
-
this.storeNode(type, this.reducePos, this.reducePos, 4, true);
|
|
69793
|
+
this.storeNode(type, this.reducePos, this.reducePos, lookaheadRecord ? 8 : 4, true);
|
|
69788
69794
|
this.reduceContext(type, this.reducePos);
|
|
69789
69795
|
return;
|
|
69790
69796
|
}
|
|
@@ -69830,7 +69836,7 @@
|
|
|
69830
69836
|
/**
|
|
69831
69837
|
@internal
|
|
69832
69838
|
*/
|
|
69833
|
-
storeNode(term, start, end, size = 4,
|
|
69839
|
+
storeNode(term, start, end, size = 4, mustSink = false) {
|
|
69834
69840
|
if (term == 0 /* Term.Err */ &&
|
|
69835
69841
|
(!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
69836
69842
|
// Try to omit/merge adjacent error nodes
|
|
@@ -69848,22 +69854,31 @@
|
|
|
69848
69854
|
}
|
|
69849
69855
|
}
|
|
69850
69856
|
}
|
|
69851
|
-
if (!
|
|
69857
|
+
if (!mustSink || this.pos == end) { // Simple case, just append
|
|
69852
69858
|
this.buffer.push(term, start, end, size);
|
|
69853
69859
|
}
|
|
69854
69860
|
else { // There may be skipped nodes that have to be moved forward
|
|
69855
69861
|
let index = this.buffer.length;
|
|
69856
|
-
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */)
|
|
69857
|
-
|
|
69858
|
-
|
|
69859
|
-
|
|
69860
|
-
|
|
69861
|
-
|
|
69862
|
-
|
|
69863
|
-
index -= 4;
|
|
69864
|
-
if (size > 4)
|
|
69865
|
-
size -= 4;
|
|
69862
|
+
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */) {
|
|
69863
|
+
let mustMove = false;
|
|
69864
|
+
for (let scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4) {
|
|
69865
|
+
if (this.buffer[scan - 1] >= 0) {
|
|
69866
|
+
mustMove = true;
|
|
69867
|
+
break;
|
|
69868
|
+
}
|
|
69866
69869
|
}
|
|
69870
|
+
if (mustMove)
|
|
69871
|
+
while (index > 0 && this.buffer[index - 2] > end) {
|
|
69872
|
+
// Move this record forward
|
|
69873
|
+
this.buffer[index] = this.buffer[index - 4];
|
|
69874
|
+
this.buffer[index + 1] = this.buffer[index - 3];
|
|
69875
|
+
this.buffer[index + 2] = this.buffer[index - 2];
|
|
69876
|
+
this.buffer[index + 3] = this.buffer[index - 1];
|
|
69877
|
+
index -= 4;
|
|
69878
|
+
if (size > 4)
|
|
69879
|
+
size -= 4;
|
|
69880
|
+
}
|
|
69881
|
+
}
|
|
69867
69882
|
this.buffer[index] = term;
|
|
69868
69883
|
this.buffer[index + 1] = start;
|
|
69869
69884
|
this.buffer[index + 2] = end;
|
|
@@ -71516,6 +71531,10 @@
|
|
|
71516
71531
|
*/
|
|
71517
71532
|
constructor(
|
|
71518
71533
|
/**
|
|
71534
|
+
The optional name of the base tag @internal
|
|
71535
|
+
*/
|
|
71536
|
+
name,
|
|
71537
|
+
/**
|
|
71519
71538
|
The set of this tag and all its parent tags, starting with
|
|
71520
71539
|
this one itself and sorted in order of decreasing specificity.
|
|
71521
71540
|
*/
|
|
@@ -71529,6 +71548,7 @@
|
|
|
71529
71548
|
The modifiers applied to this.base @internal
|
|
71530
71549
|
*/
|
|
71531
71550
|
modified) {
|
|
71551
|
+
this.name = name;
|
|
71532
71552
|
this.set = set;
|
|
71533
71553
|
this.base = base;
|
|
71534
71554
|
this.modified = modified;
|
|
@@ -71537,17 +71557,20 @@
|
|
|
71537
71557
|
*/
|
|
71538
71558
|
this.id = nextTagID++;
|
|
71539
71559
|
}
|
|
71540
|
-
|
|
71541
|
-
|
|
71542
|
-
|
|
71543
|
-
|
|
71544
|
-
|
|
71545
|
-
|
|
71546
|
-
|
|
71547
|
-
static define(parent) {
|
|
71560
|
+
toString() {
|
|
71561
|
+
let { name } = this;
|
|
71562
|
+
for (let mod of this.modified)
|
|
71563
|
+
if (mod.name)
|
|
71564
|
+
name = `${mod.name}(${name})`;
|
|
71565
|
+
return name;
|
|
71566
|
+
}
|
|
71567
|
+
static define(nameOrParent, parent) {
|
|
71568
|
+
let name = typeof nameOrParent == "string" ? nameOrParent : "?";
|
|
71569
|
+
if (nameOrParent instanceof Tag)
|
|
71570
|
+
parent = nameOrParent;
|
|
71548
71571
|
if (parent === null || parent === void 0 ? void 0 : parent.base)
|
|
71549
71572
|
throw new Error("Can not derive from a modified tag");
|
|
71550
|
-
let tag = new Tag([], null, []);
|
|
71573
|
+
let tag = new Tag(name, [], null, []);
|
|
71551
71574
|
tag.set.push(tag);
|
|
71552
71575
|
if (parent)
|
|
71553
71576
|
for (let t of parent.set)
|
|
@@ -71566,8 +71589,8 @@
|
|
|
71566
71589
|
example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
|
|
71567
71590
|
`m1(m3(t1)`, and so on.
|
|
71568
71591
|
*/
|
|
71569
|
-
static defineModifier() {
|
|
71570
|
-
let mod = new Modifier;
|
|
71592
|
+
static defineModifier(name) {
|
|
71593
|
+
let mod = new Modifier(name);
|
|
71571
71594
|
return (tag) => {
|
|
71572
71595
|
if (tag.modified.indexOf(mod) > -1)
|
|
71573
71596
|
return tag;
|
|
@@ -71577,7 +71600,8 @@
|
|
|
71577
71600
|
}
|
|
71578
71601
|
let nextModifierID = 0;
|
|
71579
71602
|
class Modifier {
|
|
71580
|
-
constructor() {
|
|
71603
|
+
constructor(name) {
|
|
71604
|
+
this.name = name;
|
|
71581
71605
|
this.instances = [];
|
|
71582
71606
|
this.id = nextModifierID++;
|
|
71583
71607
|
}
|
|
@@ -71587,7 +71611,7 @@
|
|
|
71587
71611
|
let exists = mods[0].instances.find(t => t.base == base && sameArray$1(mods, t.modified));
|
|
71588
71612
|
if (exists)
|
|
71589
71613
|
return exists;
|
|
71590
|
-
let set = [], tag = new Tag(set, base, mods);
|
|
71614
|
+
let set = [], tag = new Tag(base.name, set, base, mods);
|
|
71591
71615
|
for (let m of mods)
|
|
71592
71616
|
m.instances.push(tag);
|
|
71593
71617
|
let configs = powerSet(mods);
|
|
@@ -72159,7 +72183,7 @@
|
|
|
72159
72183
|
*/
|
|
72160
72184
|
heading6: t(heading),
|
|
72161
72185
|
/**
|
|
72162
|
-
A prose separator (such as a horizontal rule).
|
|
72186
|
+
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
72163
72187
|
*/
|
|
72164
72188
|
contentSeparator: t(content),
|
|
72165
72189
|
/**
|
|
@@ -72232,31 +72256,31 @@
|
|
|
72232
72256
|
given element is being defined. Expected to be used with the
|
|
72233
72257
|
various [name](#highlight.tags.name) tags.
|
|
72234
72258
|
*/
|
|
72235
|
-
definition: Tag.defineModifier(),
|
|
72259
|
+
definition: Tag.defineModifier("definition"),
|
|
72236
72260
|
/**
|
|
72237
72261
|
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
72238
72262
|
something is constant. Mostly expected to be used with
|
|
72239
72263
|
[variable names](#highlight.tags.variableName).
|
|
72240
72264
|
*/
|
|
72241
|
-
constant: Tag.defineModifier(),
|
|
72265
|
+
constant: Tag.defineModifier("constant"),
|
|
72242
72266
|
/**
|
|
72243
72267
|
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
72244
72268
|
a [variable](#highlight.tags.variableName) or [property
|
|
72245
72269
|
name](#highlight.tags.propertyName) is being called or defined
|
|
72246
72270
|
as a function.
|
|
72247
72271
|
*/
|
|
72248
|
-
function: Tag.defineModifier(),
|
|
72272
|
+
function: Tag.defineModifier("function"),
|
|
72249
72273
|
/**
|
|
72250
72274
|
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
72251
72275
|
[names](#highlight.tags.name) to indicate that they belong to
|
|
72252
72276
|
the language's standard environment.
|
|
72253
72277
|
*/
|
|
72254
|
-
standard: Tag.defineModifier(),
|
|
72278
|
+
standard: Tag.defineModifier("standard"),
|
|
72255
72279
|
/**
|
|
72256
72280
|
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
72257
72281
|
[names](#highlight.tags.name) is local to some scope.
|
|
72258
72282
|
*/
|
|
72259
|
-
local: Tag.defineModifier(),
|
|
72283
|
+
local: Tag.defineModifier("local"),
|
|
72260
72284
|
/**
|
|
72261
72285
|
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
72262
72286
|
can be used to tag language-specific alternative variants of
|
|
@@ -72265,8 +72289,13 @@
|
|
|
72265
72289
|
[variable name](#highlight.tags.variableName) tags, since those
|
|
72266
72290
|
come up a lot.
|
|
72267
72291
|
*/
|
|
72268
|
-
special: Tag.defineModifier()
|
|
72292
|
+
special: Tag.defineModifier("special")
|
|
72269
72293
|
};
|
|
72294
|
+
for (let name in tags) {
|
|
72295
|
+
let val = tags[name];
|
|
72296
|
+
if (val instanceof Tag)
|
|
72297
|
+
val.name = name;
|
|
72298
|
+
}
|
|
72270
72299
|
/**
|
|
72271
72300
|
This is a highlighter that adds stable, predictable classes to
|
|
72272
72301
|
tokens, for styling with external CSS.
|
|
@@ -80042,50 +80071,50 @@
|
|
|
80042
80071
|
}
|
|
80043
80072
|
|
|
80044
80073
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
80045
|
-
const propertyIdentifier =
|
|
80046
|
-
identifier =
|
|
80047
|
-
nameIdentifier =
|
|
80048
|
-
insertSemi =
|
|
80049
|
-
expression0 =
|
|
80074
|
+
const propertyIdentifier = 121,
|
|
80075
|
+
identifier = 122,
|
|
80076
|
+
nameIdentifier = 123,
|
|
80077
|
+
insertSemi = 124,
|
|
80078
|
+
expression0 = 128,
|
|
80050
80079
|
ForExpression = 4,
|
|
80051
|
-
forExpressionStart =
|
|
80080
|
+
forExpressionStart = 131,
|
|
80052
80081
|
ForInExpression = 7,
|
|
80053
80082
|
Name = 8,
|
|
80054
80083
|
Identifier = 9,
|
|
80055
80084
|
AdditionalIdentifier = 10,
|
|
80056
|
-
forExpressionBodyStart =
|
|
80085
|
+
forExpressionBodyStart = 139,
|
|
80057
80086
|
IfExpression = 19,
|
|
80058
|
-
ifExpressionStart =
|
|
80087
|
+
ifExpressionStart = 140,
|
|
80059
80088
|
QuantifiedExpression = 23,
|
|
80060
|
-
quantifiedExpressionStart =
|
|
80089
|
+
quantifiedExpressionStart = 141,
|
|
80061
80090
|
QuantifiedInExpression = 27,
|
|
80062
80091
|
PositiveUnaryTest = 37,
|
|
80063
80092
|
ArithmeticExpression = 41,
|
|
80064
|
-
arithmeticPlusStart =
|
|
80065
|
-
arithmeticTimesStart =
|
|
80066
|
-
arithmeticExpStart =
|
|
80067
|
-
arithmeticUnaryStart =
|
|
80093
|
+
arithmeticPlusStart = 145,
|
|
80094
|
+
arithmeticTimesStart = 146,
|
|
80095
|
+
arithmeticExpStart = 147,
|
|
80096
|
+
arithmeticUnaryStart = 148,
|
|
80068
80097
|
VariableName = 47,
|
|
80069
|
-
PathExpression =
|
|
80070
|
-
pathExpressionStart =
|
|
80071
|
-
FilterExpression =
|
|
80072
|
-
filterExpressionStart =
|
|
80073
|
-
FunctionInvocation =
|
|
80074
|
-
functionInvocationStart =
|
|
80075
|
-
ParameterName =
|
|
80076
|
-
nil =
|
|
80077
|
-
NumericLiteral =
|
|
80078
|
-
StringLiteral =
|
|
80079
|
-
BooleanLiteral =
|
|
80080
|
-
listStart =
|
|
80081
|
-
List =
|
|
80082
|
-
FunctionDefinition =
|
|
80083
|
-
functionDefinitionStart =
|
|
80084
|
-
Context$1 =
|
|
80085
|
-
contextStart =
|
|
80086
|
-
ContextEntry =
|
|
80087
|
-
PropertyName =
|
|
80088
|
-
PropertyIdentifier =
|
|
80098
|
+
PathExpression = 68,
|
|
80099
|
+
pathExpressionStart = 154,
|
|
80100
|
+
FilterExpression = 70,
|
|
80101
|
+
filterExpressionStart = 155,
|
|
80102
|
+
FunctionInvocation = 72,
|
|
80103
|
+
functionInvocationStart = 156,
|
|
80104
|
+
ParameterName = 76,
|
|
80105
|
+
nil = 161,
|
|
80106
|
+
NumericLiteral = 79,
|
|
80107
|
+
StringLiteral = 80,
|
|
80108
|
+
BooleanLiteral = 81,
|
|
80109
|
+
listStart = 167,
|
|
80110
|
+
List = 89,
|
|
80111
|
+
FunctionDefinition = 90,
|
|
80112
|
+
functionDefinitionStart = 169,
|
|
80113
|
+
Context$1 = 97,
|
|
80114
|
+
contextStart = 171,
|
|
80115
|
+
ContextEntry = 98,
|
|
80116
|
+
PropertyName = 100,
|
|
80117
|
+
PropertyIdentifier = 101;
|
|
80089
80118
|
|
|
80090
80119
|
/* global console,process */
|
|
80091
80120
|
|
|
@@ -80197,7 +80226,6 @@
|
|
|
80197
80226
|
return spaceChars.includes(ch);
|
|
80198
80227
|
}
|
|
80199
80228
|
|
|
80200
|
-
// eslint-disable-next-line
|
|
80201
80229
|
function indent(str, spaces) {
|
|
80202
80230
|
return spaces.concat(
|
|
80203
80231
|
str.split(/\n/g).join('\n' + spaces)
|
|
@@ -80476,6 +80504,10 @@
|
|
|
80476
80504
|
[ ArithmeticExpression ]: 'ArithmeticExpression'
|
|
80477
80505
|
};
|
|
80478
80506
|
|
|
80507
|
+
/**
|
|
80508
|
+
* A simple producer that retrievs a value from
|
|
80509
|
+
* a given context. Used to lazily take things.
|
|
80510
|
+
*/
|
|
80479
80511
|
class ValueProducer {
|
|
80480
80512
|
|
|
80481
80513
|
/**
|
|
@@ -80518,7 +80550,7 @@
|
|
|
80518
80550
|
/**
|
|
80519
80551
|
* Creates a new context from a JavaScript object.
|
|
80520
80552
|
*
|
|
80521
|
-
* @param {any} value
|
|
80553
|
+
* @param {any} [value]
|
|
80522
80554
|
*/
|
|
80523
80555
|
constructor(value = {}) {
|
|
80524
80556
|
|
|
@@ -80576,6 +80608,22 @@
|
|
|
80576
80608
|
});
|
|
80577
80609
|
}
|
|
80578
80610
|
|
|
80611
|
+
/**
|
|
80612
|
+
* Non-destructively merge another context into this one,
|
|
80613
|
+
* and return the result.
|
|
80614
|
+
*
|
|
80615
|
+
* @param {ContextValue} other
|
|
80616
|
+
*
|
|
80617
|
+
* @return {VariableContext}
|
|
80618
|
+
*/
|
|
80619
|
+
merge(other) {
|
|
80620
|
+
const constructor = /** @type { typeof VariableContext } */ (this.constructor);
|
|
80621
|
+
|
|
80622
|
+
return new constructor(
|
|
80623
|
+
constructor.__merge(this.value, other)
|
|
80624
|
+
);
|
|
80625
|
+
}
|
|
80626
|
+
|
|
80579
80627
|
/**
|
|
80580
80628
|
* Wether the given value is atomic. Non-atomic values need to be wrapped in a
|
|
80581
80629
|
* context Class.
|
|
@@ -80591,47 +80639,98 @@
|
|
|
80591
80639
|
}
|
|
80592
80640
|
|
|
80593
80641
|
/**
|
|
80594
|
-
* Takes any number of Contexts and merges them into a single
|
|
80642
|
+
* Takes any number of Contexts and merges them into a single context.
|
|
80595
80643
|
*
|
|
80596
|
-
* @param
|
|
80597
|
-
* @returns {VariableContext}
|
|
80644
|
+
* @param { ...VariableContext } contexts
|
|
80645
|
+
* @returns { VariableContext }
|
|
80598
80646
|
*/
|
|
80599
80647
|
static of(...contexts) {
|
|
80600
|
-
|
|
80601
|
-
|
|
80602
|
-
|
|
80603
|
-
|
|
80648
|
+
return contexts.reduce((context, otherContext) => {
|
|
80649
|
+
return context.merge(otherContext);
|
|
80650
|
+
}, new this({}));
|
|
80651
|
+
}
|
|
80652
|
+
|
|
80653
|
+
/**
|
|
80654
|
+
* Returns the raw representation of the given context.
|
|
80655
|
+
*
|
|
80656
|
+
* @param {VariableContext | any} context
|
|
80657
|
+
*
|
|
80658
|
+
* @return {any}
|
|
80659
|
+
*/
|
|
80660
|
+
static __unwrap(context) {
|
|
80661
|
+
if (!context) {
|
|
80662
|
+
return {};
|
|
80663
|
+
}
|
|
80664
|
+
|
|
80665
|
+
if (context instanceof this) {
|
|
80666
|
+
return context.value;
|
|
80667
|
+
}
|
|
80668
|
+
|
|
80669
|
+
if (typeof context !== 'object') {
|
|
80670
|
+
return {};
|
|
80671
|
+
}
|
|
80672
|
+
|
|
80673
|
+
return { ...context };
|
|
80674
|
+
}
|
|
80675
|
+
|
|
80676
|
+
/**
|
|
80677
|
+
* Non-destructively merges two contexts (or their values)
|
|
80678
|
+
* with each other, returning the result.
|
|
80679
|
+
*
|
|
80680
|
+
* @param {ContextValue} context
|
|
80681
|
+
* @param {ContextValue} other
|
|
80682
|
+
*
|
|
80683
|
+
* @return {any}
|
|
80684
|
+
*/
|
|
80685
|
+
static __merge(context, other) {
|
|
80686
|
+
|
|
80687
|
+
return reduce(this.__unwrap(other), (merged, value, key) => {
|
|
80688
|
+
if (value instanceof ValueProducer) {
|
|
80604
80689
|
|
|
80605
|
-
|
|
80606
|
-
return
|
|
80690
|
+
// keep value producers in tact
|
|
80691
|
+
return {
|
|
80692
|
+
...merged,
|
|
80693
|
+
[key]: value
|
|
80694
|
+
};
|
|
80607
80695
|
}
|
|
80608
80696
|
|
|
80609
|
-
|
|
80610
|
-
|
|
80697
|
+
value = this.__unwrap(value);
|
|
80698
|
+
|
|
80699
|
+
if (has$2(merged, key)) {
|
|
80700
|
+
value = this.__merge(this.__unwrap(merged[key]), value);
|
|
80701
|
+
}
|
|
80611
80702
|
|
|
80612
|
-
const merged = contexts.reduce((merged, context) => {
|
|
80613
80703
|
return {
|
|
80614
80704
|
...merged,
|
|
80615
|
-
|
|
80705
|
+
[key]: value
|
|
80616
80706
|
};
|
|
80617
|
-
},
|
|
80618
|
-
|
|
80619
|
-
return new this(merged);
|
|
80707
|
+
}, this.__unwrap(context));
|
|
80620
80708
|
}
|
|
80621
80709
|
|
|
80622
80710
|
}
|
|
80623
80711
|
|
|
80624
80712
|
class Variables {
|
|
80625
80713
|
|
|
80714
|
+
/**
|
|
80715
|
+
* @param { {
|
|
80716
|
+
* name?: string,
|
|
80717
|
+
* tokens?: string[],
|
|
80718
|
+
* children?: Variables[],
|
|
80719
|
+
* parent: Variables | null
|
|
80720
|
+
* context: VariableContext,
|
|
80721
|
+
* value?: any,
|
|
80722
|
+
* raw?: any
|
|
80723
|
+
* } } options
|
|
80724
|
+
*/
|
|
80626
80725
|
constructor({
|
|
80627
80726
|
name = 'Expressions',
|
|
80628
80727
|
tokens = [],
|
|
80629
80728
|
children = [],
|
|
80630
80729
|
parent = null,
|
|
80631
|
-
context
|
|
80632
|
-
value
|
|
80633
|
-
raw
|
|
80634
|
-
}
|
|
80730
|
+
context,
|
|
80731
|
+
value,
|
|
80732
|
+
raw
|
|
80733
|
+
}) {
|
|
80635
80734
|
this.name = name;
|
|
80636
80735
|
this.tokens = tokens;
|
|
80637
80736
|
this.children = children;
|
|
@@ -80856,6 +80955,19 @@
|
|
|
80856
80955
|
});
|
|
80857
80956
|
}
|
|
80858
80957
|
|
|
80958
|
+
/**
|
|
80959
|
+
* @param { {
|
|
80960
|
+
* name?: string,
|
|
80961
|
+
* tokens?: string[],
|
|
80962
|
+
* children?: Variables[],
|
|
80963
|
+
* parent?: Variables | null
|
|
80964
|
+
* context: VariableContext,
|
|
80965
|
+
* value?: any,
|
|
80966
|
+
* raw?: any
|
|
80967
|
+
* } } options
|
|
80968
|
+
*
|
|
80969
|
+
* @return {Variables}
|
|
80970
|
+
*/
|
|
80859
80971
|
static of(options) {
|
|
80860
80972
|
|
|
80861
80973
|
const {
|
|
@@ -81249,29 +81361,30 @@
|
|
|
81249
81361
|
});
|
|
81250
81362
|
|
|
81251
81363
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
81252
|
-
const spec_identifier = {__proto__:null,for:10, in:32, return:36, if:40, then:42, else:44, some:48, every:50, satisfies:56, or:60, and:64, between:72, instance:86, of:89, days:
|
|
81364
|
+
const spec_identifier = {__proto__:null,for:10, in:32, return:36, if:40, then:42, else:44, some:48, every:50, satisfies:56, or:60, and:64, between:72, instance:86, of:89, days:101, time:103, duration:105, years:107, months:109, date:111, list:117, context:123, function:130, null:156, true:330, false:330, "?":170, external:186, not:211};
|
|
81253
81365
|
const parser$2 = LRParser.deserialize({
|
|
81254
81366
|
version: 14,
|
|
81255
|
-
states: "
|
|
81256
|
-
stateData: "
|
|
81257
|
-
goto: "
|
|
81258
|
-
nodeNames: "⚠ LineComment BlockComment Expression ForExpression for InExpressions InExpression Name Identifier Identifier ArithOp ArithOp ArithOp ArithOp ArithOp in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression InstanceOfExpression instance of Type QualifiedName VariableName SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier Expressions UnaryTests Wildcard not",
|
|
81259
|
-
maxTerm:
|
|
81367
|
+
states: "C|O`QYOOO`QYOOO$mQYOOOOQU'#Ce'#CeO$wQYO'#C`O&QQYO'#FQOOQQ'#Ff'#FfO&[QYO'#FfO`QYO'#DVOOQU'#En'#EnO'{Q^O'#D]OOQU'#D^'#D^OOQU'#D]'#D]OOQO'#Fn'#FnO)xQWO'#DvOO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#_#c#g#r$O$P$Y$^$_$b$q$}%X%d%y%zR#Oo",
|
|
81370
|
+
nodeNames: "⚠ LineComment BlockComment Expression ForExpression for InExpressions InExpression Name Identifier Identifier ArithOp ArithOp ArithOp ArithOp ArithOp in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression InstanceOfExpression instance of Type QualifiedName VariableName BacktickIdentifier SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier Expressions UnaryTests Wildcard not",
|
|
81371
|
+
maxTerm: 173,
|
|
81260
81372
|
context: variableTracker,
|
|
81261
81373
|
nodeProps: [
|
|
81262
|
-
["closedBy", 38,")",
|
|
81263
|
-
["openedBy", 40,"(",
|
|
81264
|
-
["group", -5,
|
|
81374
|
+
["closedBy", 38,")",71,"]",96,"}"],
|
|
81375
|
+
["openedBy", 40,"(",69,"[",95,"{"],
|
|
81376
|
+
["group", -5,78,79,80,81,82,"Literal"]
|
|
81265
81377
|
],
|
|
81266
81378
|
propSources: [feelHighlighting],
|
|
81267
81379
|
skippedNodes: [0,1,2],
|
|
81268
81380
|
repeatNodeCount: 14,
|
|
81269
|
-
tokenData: "
|
|
81381
|
+
tokenData: "-c~RvXY#iYZ$^Z[#i]^$^pq#iqr$crs$nwx&fxy&kyz&pz{&u{|'S|}'X}!O'^!O!P'k!P!Q(T!Q![*O![!]*a!]!^*f!^!_*k!_!`$i!`!a*z!b!c+U!}#O+Z#P#Q+`#Q#R&}#S#T+e#o#p-X#q#r-^$f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naryTests":[2,103]},
|
|
81384
|
+
dialects: {camunda: 2532},
|
|
81385
|
+
dynamicPrecedences: {"31":-1,"68":1,"72":-1,"74":-1},
|
|
81386
|
+
specialized: [{term: 122, get: (value) => spec_identifier[value] || -1}],
|
|
81387
|
+
tokenPrec: 2534
|
|
81275
81388
|
});
|
|
81276
81389
|
|
|
81277
81390
|
function isContext(e) {
|
|
@@ -121113,10 +121226,10 @@
|
|
|
121113
121226
|
return getExtensionElementsList$2(businessObject, 'zeebe:TaskDefinition')[0];
|
|
121114
121227
|
}
|
|
121115
121228
|
|
|
121116
|
-
const EVENT_TYPE = ['
|
|
121229
|
+
const EVENT_TYPE = ['completing', 'assigning'];
|
|
121117
121230
|
const EVENT_TO_LABEL$1 = {
|
|
121118
|
-
|
|
121119
|
-
|
|
121231
|
+
completing: 'Completing',
|
|
121232
|
+
assigning: 'Assigning'
|
|
121120
121233
|
};
|
|
121121
121234
|
function TaskListenerEntries(props) {
|
|
121122
121235
|
const {
|
|
@@ -121199,11 +121312,14 @@
|
|
|
121199
121312
|
const items = listeners.map((listener, index) => {
|
|
121200
121313
|
const id = element.id + '-taskListener-' + index;
|
|
121201
121314
|
const type = listener.get('type') || '<no type>';
|
|
121315
|
+
const eventType = listener.get('eventType');
|
|
121316
|
+
const label = translate('{eventType}: {type}', {
|
|
121317
|
+
eventType: EVENT_TO_LABEL$1[eventType] || eventType,
|
|
121318
|
+
type
|
|
121319
|
+
});
|
|
121202
121320
|
return {
|
|
121203
121321
|
id,
|
|
121204
|
-
label
|
|
121205
|
-
type
|
|
121206
|
-
}),
|
|
121322
|
+
label,
|
|
121207
121323
|
entries: TaskListenerEntries({
|
|
121208
121324
|
idPrefix: id,
|
|
121209
121325
|
listener
|
|
@@ -123372,8 +123488,6 @@
|
|
|
123372
123488
|
return getExtensionElementsList$1(element, 'zeebe:ExecutionListeners')[0];
|
|
123373
123489
|
}
|
|
123374
123490
|
|
|
123375
|
-
const ALLOWED_EVENT_TYPES = [ 'complete', 'assignment' ];
|
|
123376
|
-
|
|
123377
123491
|
class CleanUpTaskListenersBehavior extends CommandInterceptor$1 {
|
|
123378
123492
|
constructor(eventBus, modeling) {
|
|
123379
123493
|
super(eventBus);
|
|
@@ -123442,7 +123556,6 @@
|
|
|
123442
123556
|
return listeners.filter(listener => {
|
|
123443
123557
|
if (
|
|
123444
123558
|
!is$5(element, 'bpmn:UserTask') ||
|
|
123445
|
-
!ALLOWED_EVENT_TYPES.includes(listener.eventType) ||
|
|
123446
123559
|
!hasZeebeTaskExtensionElement(element)
|
|
123447
123560
|
) {
|
|
123448
123561
|
return false;
|
|
@@ -137785,12 +137898,12 @@
|
|
|
137785
137898
|
}
|
|
137786
137899
|
}
|
|
137787
137900
|
|
|
137788
|
-
function
|
|
137901
|
+
function parseVariables(variables) {
|
|
137789
137902
|
|
|
137790
137903
|
const variablesToResolve = [];
|
|
137791
137904
|
|
|
137792
|
-
// Step 1 - Parse all
|
|
137793
|
-
// to other variables
|
|
137905
|
+
// Step 1 - Parse all variables and populate all that don't have references
|
|
137906
|
+
// to other variables
|
|
137794
137907
|
variables.forEach(variable => {
|
|
137795
137908
|
variable.origin.forEach(origin => {
|
|
137796
137909
|
const expressionDetails = getExpressionDetails(variable, origin);
|
|
@@ -137935,6 +138048,28 @@
|
|
|
137935
138048
|
* @returns {{ expression: String, unresolved: Array<String> }}}
|
|
137936
138049
|
*/
|
|
137937
138050
|
function getExpressionDetails(variable, origin) {
|
|
138051
|
+
const expression = getIoExpression(variable, origin) || getScriptExpression(variable, origin);
|
|
138052
|
+
|
|
138053
|
+
if (!expression) {
|
|
138054
|
+
return;
|
|
138055
|
+
}
|
|
138056
|
+
|
|
138057
|
+
const result = getResultContext(expression);
|
|
138058
|
+
|
|
138059
|
+
const unresolved = findUnresolvedVariables(result) ;
|
|
138060
|
+
|
|
138061
|
+
return { expression, unresolved };
|
|
138062
|
+
}
|
|
138063
|
+
|
|
138064
|
+
/**
|
|
138065
|
+
* Given a Variable and a specific origin, return the mapping expression for all
|
|
138066
|
+
* input outputs mapping. Returns undefined if no mapping exists for the given origin.
|
|
138067
|
+
*
|
|
138068
|
+
* @param {ProcessVariable} variable
|
|
138069
|
+
* @param {djs.model.Base} origin
|
|
138070
|
+
* @returns { expression: String}
|
|
138071
|
+
*/
|
|
138072
|
+
function getIoExpression(variable, origin) {
|
|
137938
138073
|
const ioMapping = getExtensionElementsList(origin, 'zeebe:IoMapping')[0];
|
|
137939
138074
|
|
|
137940
138075
|
if (!ioMapping) {
|
|
@@ -137958,13 +138093,28 @@
|
|
|
137958
138093
|
return;
|
|
137959
138094
|
}
|
|
137960
138095
|
|
|
137961
|
-
|
|
138096
|
+
return mapping.source.substring(1);
|
|
137962
138097
|
|
|
137963
|
-
|
|
138098
|
+
}
|
|
137964
138099
|
|
|
137965
|
-
|
|
138100
|
+
/**
|
|
138101
|
+
* Given a Variable and a specific origin, return the mapping expression for script
|
|
138102
|
+
* task result variable. Returns undefined if no mapping exists for the given origin.
|
|
138103
|
+
*
|
|
138104
|
+
* @param {ProcessVariable} variable
|
|
138105
|
+
* @param {djs.model.Base} origin
|
|
138106
|
+
* @returns {string}
|
|
138107
|
+
*/
|
|
138108
|
+
function getScriptExpression(variable, origin) {
|
|
138109
|
+
const script = getExtensionElementsList(origin, 'zeebe:Script')[0];
|
|
137966
138110
|
|
|
137967
|
-
|
|
138111
|
+
if (!script || !script.expression) {
|
|
138112
|
+
return;
|
|
138113
|
+
}
|
|
138114
|
+
|
|
138115
|
+
if (script.resultVariable === variable.name) {
|
|
138116
|
+
return script.expression.substring(1);
|
|
138117
|
+
}
|
|
137968
138118
|
}
|
|
137969
138119
|
|
|
137970
138120
|
/**
|
|
@@ -138126,7 +138276,7 @@
|
|
|
138126
138276
|
super(eventBus, bpmnjs);
|
|
138127
138277
|
this._baseExtractor = getProcessVariables;
|
|
138128
138278
|
|
|
138129
|
-
eventBus.on('variableResolver.parseVariables', HIGH_PRIORITY$1, this.
|
|
138279
|
+
eventBus.on('variableResolver.parseVariables', HIGH_PRIORITY$1, this._resolveVariables);
|
|
138130
138280
|
}
|
|
138131
138281
|
|
|
138132
138282
|
async getVariablesForElement(element, moddleElement) {
|
|
@@ -138202,21 +138352,21 @@
|
|
|
138202
138352
|
}
|
|
138203
138353
|
|
|
138204
138354
|
/**
|
|
138205
|
-
* Parsed the variables
|
|
138355
|
+
* Parsed the variables and resolves the variable schema to kept the
|
|
138206
138356
|
* variable schema throughout the process.
|
|
138207
138357
|
*
|
|
138208
138358
|
* @param {Event} e
|
|
138209
138359
|
* @param {Object} context
|
|
138210
138360
|
* @param {Array<ProcessVariable>} context.variables
|
|
138211
138361
|
*/
|
|
138212
|
-
|
|
138362
|
+
_resolveVariables(e, context) {
|
|
138213
138363
|
const rawVariables = context.variables;
|
|
138214
138364
|
|
|
138215
138365
|
const mappedVariables = {};
|
|
138216
138366
|
|
|
138217
138367
|
for (const key in rawVariables) {
|
|
138218
138368
|
const variables = rawVariables[key];
|
|
138219
|
-
const newVariables =
|
|
138369
|
+
const newVariables = parseVariables(variables);
|
|
138220
138370
|
|
|
138221
138371
|
mappedVariables[key] = [ ...variables, ...newVariables ];
|
|
138222
138372
|
}
|