camunda-bpmn-js 5.17.0 → 5.18.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/base-modeler.development.js +359 -371
- package/dist/base-modeler.production.min.js +4 -4
- package/dist/camunda-cloud-modeler.development.js +783 -880
- package/dist/camunda-cloud-modeler.production.min.js +6 -6
- package/dist/camunda-platform-modeler.development.js +458 -470
- package/dist/camunda-platform-modeler.production.min.js +4 -4
- package/index.js +1 -0
- package/package.json +3 -4
|
@@ -171,10 +171,10 @@
|
|
|
171
171
|
* @return {T[]}
|
|
172
172
|
*/
|
|
173
173
|
|
|
174
|
-
const nativeToString$
|
|
175
|
-
const nativeHasOwnProperty$
|
|
174
|
+
const nativeToString$k = Object.prototype.toString;
|
|
175
|
+
const nativeHasOwnProperty$i = Object.prototype.hasOwnProperty;
|
|
176
176
|
|
|
177
|
-
function isUndefined$
|
|
177
|
+
function isUndefined$k(obj) {
|
|
178
178
|
return obj === undefined;
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -182,20 +182,20 @@
|
|
|
182
182
|
return obj !== undefined;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
function isNil$
|
|
185
|
+
function isNil$g(obj) {
|
|
186
186
|
return obj == null;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
function isArray$
|
|
190
|
-
return nativeToString$
|
|
189
|
+
function isArray$k(obj) {
|
|
190
|
+
return nativeToString$k.call(obj) === '[object Array]';
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
function isObject$9(obj) {
|
|
194
|
-
return nativeToString$
|
|
194
|
+
return nativeToString$k.call(obj) === '[object Object]';
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
function isNumber$9(obj) {
|
|
198
|
-
return nativeToString$
|
|
198
|
+
return nativeToString$k.call(obj) === '[object Number]';
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
* @return {boolean}
|
|
205
205
|
*/
|
|
206
206
|
function isFunction$c(obj) {
|
|
207
|
-
const tag = nativeToString$
|
|
207
|
+
const tag = nativeToString$k.call(obj);
|
|
208
208
|
|
|
209
209
|
return (
|
|
210
210
|
tag === '[object Function]' ||
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
function isString$a(obj) {
|
|
219
|
-
return nativeToString$
|
|
219
|
+
return nativeToString$k.call(obj) === '[object String]';
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
/**
|
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
*
|
|
228
228
|
* @return {Boolean}
|
|
229
229
|
*/
|
|
230
|
-
function has$
|
|
231
|
-
return !isNil$
|
|
230
|
+
function has$i(target, key) {
|
|
231
|
+
return !isNil$g(target) && nativeHasOwnProperty$i.call(target, key);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
/**
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
|
|
298
298
|
let match;
|
|
299
299
|
|
|
300
|
-
forEach$
|
|
300
|
+
forEach$h(collection, function(val, key) {
|
|
301
301
|
if (matchFn(val, key)) {
|
|
302
302
|
match = val;
|
|
303
303
|
|
|
@@ -323,9 +323,9 @@
|
|
|
323
323
|
|
|
324
324
|
const matchFn = toMatcher$b(matcher);
|
|
325
325
|
|
|
326
|
-
let idx = isArray$
|
|
326
|
+
let idx = isArray$k(collection) ? -1 : undefined;
|
|
327
327
|
|
|
328
|
-
forEach$
|
|
328
|
+
forEach$h(collection, function(val, key) {
|
|
329
329
|
if (matchFn(val, key)) {
|
|
330
330
|
idx = key;
|
|
331
331
|
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
|
|
353
353
|
let result = [];
|
|
354
354
|
|
|
355
|
-
forEach$
|
|
355
|
+
forEach$h(collection, function(val, key) {
|
|
356
356
|
if (matchFn(val, key)) {
|
|
357
357
|
result.push(val);
|
|
358
358
|
}
|
|
@@ -372,20 +372,20 @@
|
|
|
372
372
|
*
|
|
373
373
|
* @return {T} return result that stopped the iteration
|
|
374
374
|
*/
|
|
375
|
-
function forEach$
|
|
375
|
+
function forEach$h(collection, iterator) {
|
|
376
376
|
|
|
377
377
|
let val,
|
|
378
378
|
result;
|
|
379
379
|
|
|
380
|
-
if (isUndefined$
|
|
380
|
+
if (isUndefined$k(collection)) {
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
const convertKey = isArray$
|
|
384
|
+
const convertKey = isArray$k(collection) ? toNum$h : identity$h;
|
|
385
385
|
|
|
386
386
|
for (let key in collection) {
|
|
387
387
|
|
|
388
|
-
if (has$
|
|
388
|
+
if (has$i(collection, key)) {
|
|
389
389
|
val = collection[key];
|
|
390
390
|
|
|
391
391
|
result = iterator(val, convertKey(key));
|
|
@@ -410,9 +410,9 @@
|
|
|
410
410
|
*
|
|
411
411
|
* @return {V} result returned from last iterator
|
|
412
412
|
*/
|
|
413
|
-
function reduce$
|
|
413
|
+
function reduce$5(collection, iterator, result) {
|
|
414
414
|
|
|
415
|
-
forEach$
|
|
415
|
+
forEach$h(collection, function(value, idx) {
|
|
416
416
|
result = iterator(result, value, idx);
|
|
417
417
|
});
|
|
418
418
|
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
*/
|
|
432
432
|
function every$2(collection, matcher) {
|
|
433
433
|
|
|
434
|
-
return !!reduce$
|
|
434
|
+
return !!reduce$5(collection, function(matches, val, key) {
|
|
435
435
|
return matches && matcher(val, key);
|
|
436
436
|
}, true);
|
|
437
437
|
}
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
|
|
466
466
|
let result = [];
|
|
467
467
|
|
|
468
|
-
forEach$
|
|
468
|
+
forEach$h(collection, function(val, key) {
|
|
469
469
|
result.push(fn(val, key));
|
|
470
470
|
});
|
|
471
471
|
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
|
|
515
515
|
let sorted = [];
|
|
516
516
|
|
|
517
|
-
forEach$
|
|
517
|
+
forEach$h(collection, function(value, key) {
|
|
518
518
|
let disc = extractor(value, key);
|
|
519
519
|
|
|
520
520
|
let entry = {
|
|
@@ -599,11 +599,11 @@
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
|
|
602
|
-
function identity$
|
|
602
|
+
function identity$h(arg) {
|
|
603
603
|
return arg;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
function toNum$
|
|
606
|
+
function toNum$h(arg) {
|
|
607
607
|
return Number(arg);
|
|
608
608
|
}
|
|
609
609
|
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
|
|
637
637
|
let obj = Object(target);
|
|
638
638
|
|
|
639
|
-
forEach$
|
|
639
|
+
forEach$h(properties, function(prop) {
|
|
640
640
|
|
|
641
641
|
if (prop in obj) {
|
|
642
642
|
result[prop] = target[prop];
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
|
|
664
664
|
let obj = Object(target);
|
|
665
665
|
|
|
666
|
-
forEach$
|
|
666
|
+
forEach$h(obj, function(prop, key) {
|
|
667
667
|
|
|
668
668
|
if (properties.indexOf(key) === -1) {
|
|
669
669
|
result[key] = prop;
|
|
@@ -698,15 +698,15 @@
|
|
|
698
698
|
* @return {T[]}
|
|
699
699
|
*/
|
|
700
700
|
|
|
701
|
-
const nativeToString$
|
|
702
|
-
const nativeHasOwnProperty$
|
|
701
|
+
const nativeToString$j = Object.prototype.toString;
|
|
702
|
+
const nativeHasOwnProperty$h = Object.prototype.hasOwnProperty;
|
|
703
703
|
|
|
704
|
-
function isUndefined$
|
|
704
|
+
function isUndefined$j(obj) {
|
|
705
705
|
return obj === undefined;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
|
-
function isArray$
|
|
709
|
-
return nativeToString$
|
|
708
|
+
function isArray$j(obj) {
|
|
709
|
+
return nativeToString$j.call(obj) === '[object Array]';
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
/**
|
|
@@ -717,8 +717,8 @@
|
|
|
717
717
|
*
|
|
718
718
|
* @return {Boolean}
|
|
719
719
|
*/
|
|
720
|
-
function has$
|
|
721
|
-
return nativeHasOwnProperty$
|
|
720
|
+
function has$h(target, key) {
|
|
721
|
+
return nativeHasOwnProperty$h.call(target, key);
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
|
|
@@ -732,20 +732,20 @@
|
|
|
732
732
|
*
|
|
733
733
|
* @return {T} return result that stopped the iteration
|
|
734
734
|
*/
|
|
735
|
-
function forEach$
|
|
735
|
+
function forEach$g(collection, iterator) {
|
|
736
736
|
|
|
737
737
|
let val,
|
|
738
738
|
result;
|
|
739
739
|
|
|
740
|
-
if (isUndefined$
|
|
740
|
+
if (isUndefined$j(collection)) {
|
|
741
741
|
return;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
const convertKey = isArray$
|
|
744
|
+
const convertKey = isArray$j(collection) ? toNum$g : identity$g;
|
|
745
745
|
|
|
746
746
|
for (let key in collection) {
|
|
747
747
|
|
|
748
|
-
if (has$
|
|
748
|
+
if (has$h(collection, key)) {
|
|
749
749
|
val = collection[key];
|
|
750
750
|
|
|
751
751
|
result = iterator(val, convertKey(key));
|
|
@@ -758,11 +758,11 @@
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
|
|
761
|
-
function identity$
|
|
761
|
+
function identity$g(arg) {
|
|
762
762
|
return arg;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
function toNum$
|
|
765
|
+
function toNum$g(arg) {
|
|
766
766
|
return Number(arg);
|
|
767
767
|
}
|
|
768
768
|
|
|
@@ -777,12 +777,12 @@
|
|
|
777
777
|
function assign$b(element, ...styleSources) {
|
|
778
778
|
const target = element.style;
|
|
779
779
|
|
|
780
|
-
forEach$
|
|
780
|
+
forEach$g(styleSources, function(style) {
|
|
781
781
|
if (!style) {
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
-
forEach$
|
|
785
|
+
forEach$g(style, function(value, key) {
|
|
786
786
|
target[key] = value;
|
|
787
787
|
});
|
|
788
788
|
});
|
|
@@ -1832,7 +1832,7 @@
|
|
|
1832
1832
|
*
|
|
1833
1833
|
* @return {boolean}
|
|
1834
1834
|
*/
|
|
1835
|
-
function isArray$
|
|
1835
|
+
function isArray$i(obj) {
|
|
1836
1836
|
return Array.isArray(obj);
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
*/
|
|
1860
1860
|
function annotate$1(...args) {
|
|
1861
1861
|
|
|
1862
|
-
if (args.length === 1 && isArray$
|
|
1862
|
+
if (args.length === 1 && isArray$i(args[0])) {
|
|
1863
1863
|
args = args[0];
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
@@ -2004,7 +2004,7 @@
|
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
2006
|
if (typeof fn !== 'function') {
|
|
2007
|
-
if (isArray$
|
|
2007
|
+
if (isArray$i(fn)) {
|
|
2008
2008
|
fn = annotate$1(fn.slice());
|
|
2009
2009
|
} else {
|
|
2010
2010
|
throw error(`Cannot invoke "${ fn }". Expected a function!`);
|
|
@@ -2303,7 +2303,7 @@
|
|
|
2303
2303
|
// helpers ///////////////
|
|
2304
2304
|
|
|
2305
2305
|
function arrayUnwrap(type, value) {
|
|
2306
|
-
if (type !== 'value' && isArray$
|
|
2306
|
+
if (type !== 'value' && isArray$i(value)) {
|
|
2307
2307
|
value = annotate$1(value.slice());
|
|
2308
2308
|
}
|
|
2309
2309
|
|
|
@@ -2417,10 +2417,10 @@
|
|
|
2417
2417
|
return Array.prototype.concat.apply([], arr);
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
|
-
const nativeToString$
|
|
2421
|
-
const nativeHasOwnProperty$
|
|
2420
|
+
const nativeToString$i = Object.prototype.toString;
|
|
2421
|
+
const nativeHasOwnProperty$g = Object.prototype.hasOwnProperty;
|
|
2422
2422
|
|
|
2423
|
-
function isUndefined$
|
|
2423
|
+
function isUndefined$i(obj) {
|
|
2424
2424
|
return obj === undefined;
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
@@ -2428,20 +2428,20 @@
|
|
|
2428
2428
|
return obj !== undefined;
|
|
2429
2429
|
}
|
|
2430
2430
|
|
|
2431
|
-
function isNil$
|
|
2431
|
+
function isNil$f(obj) {
|
|
2432
2432
|
return obj == null;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
|
-
function isArray$
|
|
2436
|
-
return nativeToString$
|
|
2435
|
+
function isArray$h(obj) {
|
|
2436
|
+
return nativeToString$i.call(obj) === '[object Array]';
|
|
2437
2437
|
}
|
|
2438
2438
|
|
|
2439
2439
|
function isObject$8(obj) {
|
|
2440
|
-
return nativeToString$
|
|
2440
|
+
return nativeToString$i.call(obj) === '[object Object]';
|
|
2441
2441
|
}
|
|
2442
2442
|
|
|
2443
2443
|
function isNumber$8(obj) {
|
|
2444
|
-
return nativeToString$
|
|
2444
|
+
return nativeToString$i.call(obj) === '[object Number]';
|
|
2445
2445
|
}
|
|
2446
2446
|
|
|
2447
2447
|
/**
|
|
@@ -2450,7 +2450,7 @@
|
|
|
2450
2450
|
* @return {boolean}
|
|
2451
2451
|
*/
|
|
2452
2452
|
function isFunction$b(obj) {
|
|
2453
|
-
const tag = nativeToString$
|
|
2453
|
+
const tag = nativeToString$i.call(obj);
|
|
2454
2454
|
|
|
2455
2455
|
return (
|
|
2456
2456
|
tag === '[object Function]' ||
|
|
@@ -2462,7 +2462,7 @@
|
|
|
2462
2462
|
}
|
|
2463
2463
|
|
|
2464
2464
|
function isString$9(obj) {
|
|
2465
|
-
return nativeToString$
|
|
2465
|
+
return nativeToString$i.call(obj) === '[object String]';
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
2468
|
|
|
@@ -2473,7 +2473,7 @@
|
|
|
2473
2473
|
*/
|
|
2474
2474
|
function ensureArray$3(obj) {
|
|
2475
2475
|
|
|
2476
|
-
if (isArray$
|
|
2476
|
+
if (isArray$h(obj)) {
|
|
2477
2477
|
return;
|
|
2478
2478
|
}
|
|
2479
2479
|
|
|
@@ -2488,8 +2488,8 @@
|
|
|
2488
2488
|
*
|
|
2489
2489
|
* @return {Boolean}
|
|
2490
2490
|
*/
|
|
2491
|
-
function has$
|
|
2492
|
-
return !isNil$
|
|
2491
|
+
function has$g(target, key) {
|
|
2492
|
+
return !isNil$f(target) && nativeHasOwnProperty$g.call(target, key);
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
2495
|
/**
|
|
@@ -2558,7 +2558,7 @@
|
|
|
2558
2558
|
|
|
2559
2559
|
let match;
|
|
2560
2560
|
|
|
2561
|
-
forEach$
|
|
2561
|
+
forEach$f(collection, function(val, key) {
|
|
2562
2562
|
if (matchFn(val, key)) {
|
|
2563
2563
|
match = val;
|
|
2564
2564
|
|
|
@@ -2586,7 +2586,7 @@
|
|
|
2586
2586
|
|
|
2587
2587
|
let result = [];
|
|
2588
2588
|
|
|
2589
|
-
forEach$
|
|
2589
|
+
forEach$f(collection, function(val, key) {
|
|
2590
2590
|
if (matchFn(val, key)) {
|
|
2591
2591
|
result.push(val);
|
|
2592
2592
|
}
|
|
@@ -2606,20 +2606,20 @@
|
|
|
2606
2606
|
*
|
|
2607
2607
|
* @return {T} return result that stopped the iteration
|
|
2608
2608
|
*/
|
|
2609
|
-
function forEach$
|
|
2609
|
+
function forEach$f(collection, iterator) {
|
|
2610
2610
|
|
|
2611
2611
|
let val,
|
|
2612
2612
|
result;
|
|
2613
2613
|
|
|
2614
|
-
if (isUndefined$
|
|
2614
|
+
if (isUndefined$i(collection)) {
|
|
2615
2615
|
return;
|
|
2616
2616
|
}
|
|
2617
2617
|
|
|
2618
|
-
const convertKey = isArray$
|
|
2618
|
+
const convertKey = isArray$h(collection) ? toNum$f : identity$f;
|
|
2619
2619
|
|
|
2620
2620
|
for (let key in collection) {
|
|
2621
2621
|
|
|
2622
|
-
if (has$
|
|
2622
|
+
if (has$g(collection, key)) {
|
|
2623
2623
|
val = collection[key];
|
|
2624
2624
|
|
|
2625
2625
|
result = iterator(val, convertKey(key));
|
|
@@ -2642,7 +2642,7 @@
|
|
|
2642
2642
|
*/
|
|
2643
2643
|
function without$3(arr, matcher) {
|
|
2644
2644
|
|
|
2645
|
-
if (isUndefined$
|
|
2645
|
+
if (isUndefined$i(arr)) {
|
|
2646
2646
|
return [];
|
|
2647
2647
|
}
|
|
2648
2648
|
|
|
@@ -2669,9 +2669,9 @@
|
|
|
2669
2669
|
*
|
|
2670
2670
|
* @return {V} result returned from last iterator
|
|
2671
2671
|
*/
|
|
2672
|
-
function reduce$
|
|
2672
|
+
function reduce$4(collection, iterator, result) {
|
|
2673
2673
|
|
|
2674
|
-
forEach$
|
|
2674
|
+
forEach$f(collection, function(value, idx) {
|
|
2675
2675
|
result = iterator(result, value, idx);
|
|
2676
2676
|
});
|
|
2677
2677
|
|
|
@@ -2690,7 +2690,7 @@
|
|
|
2690
2690
|
*/
|
|
2691
2691
|
function every$1(collection, matcher) {
|
|
2692
2692
|
|
|
2693
|
-
return !!reduce$
|
|
2693
|
+
return !!reduce$4(collection, function(matches, val, key) {
|
|
2694
2694
|
return matches && matcher(val, key);
|
|
2695
2695
|
}, true);
|
|
2696
2696
|
}
|
|
@@ -2724,7 +2724,7 @@
|
|
|
2724
2724
|
|
|
2725
2725
|
let result = [];
|
|
2726
2726
|
|
|
2727
|
-
forEach$
|
|
2727
|
+
forEach$f(collection, function(val, key) {
|
|
2728
2728
|
result.push(fn(val, key));
|
|
2729
2729
|
});
|
|
2730
2730
|
|
|
@@ -2780,7 +2780,7 @@
|
|
|
2780
2780
|
|
|
2781
2781
|
extractor = toExtractor$3(extractor);
|
|
2782
2782
|
|
|
2783
|
-
forEach$
|
|
2783
|
+
forEach$f(collection, function(val) {
|
|
2784
2784
|
let discriminator = extractor(val) || '_';
|
|
2785
2785
|
|
|
2786
2786
|
let group = grouped[discriminator];
|
|
@@ -2802,7 +2802,7 @@
|
|
|
2802
2802
|
|
|
2803
2803
|
let grouped = {};
|
|
2804
2804
|
|
|
2805
|
-
forEach$
|
|
2805
|
+
forEach$f(collections, (c) => groupBy$2(c, extractor, grouped));
|
|
2806
2806
|
|
|
2807
2807
|
let result = map$8(grouped, function(val, key) {
|
|
2808
2808
|
return val[0];
|
|
@@ -2832,7 +2832,7 @@
|
|
|
2832
2832
|
|
|
2833
2833
|
let sorted = [];
|
|
2834
2834
|
|
|
2835
|
-
forEach$
|
|
2835
|
+
forEach$f(collection, function(value, key) {
|
|
2836
2836
|
let disc = extractor(value, key);
|
|
2837
2837
|
|
|
2838
2838
|
let entry = {
|
|
@@ -2917,11 +2917,11 @@
|
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
2919
|
|
|
2920
|
-
function identity$
|
|
2920
|
+
function identity$f(arg) {
|
|
2921
2921
|
return arg;
|
|
2922
2922
|
}
|
|
2923
2923
|
|
|
2924
|
-
function toNum$
|
|
2924
|
+
function toNum$f(arg) {
|
|
2925
2925
|
return Number(arg);
|
|
2926
2926
|
}
|
|
2927
2927
|
|
|
@@ -3053,7 +3053,7 @@
|
|
|
3053
3053
|
|
|
3054
3054
|
let obj = Object(target);
|
|
3055
3055
|
|
|
3056
|
-
forEach$
|
|
3056
|
+
forEach$f(properties, function(prop) {
|
|
3057
3057
|
|
|
3058
3058
|
if (prop in obj) {
|
|
3059
3059
|
result[prop] = target[prop];
|
|
@@ -3080,7 +3080,7 @@
|
|
|
3080
3080
|
|
|
3081
3081
|
let obj = Object(target);
|
|
3082
3082
|
|
|
3083
|
-
forEach$
|
|
3083
|
+
forEach$f(obj, function(prop, key) {
|
|
3084
3084
|
|
|
3085
3085
|
if (properties.indexOf(key) === -1) {
|
|
3086
3086
|
result[key] = prop;
|
|
@@ -3328,14 +3328,14 @@
|
|
|
3328
3328
|
|
|
3329
3329
|
depth = depth || 0;
|
|
3330
3330
|
|
|
3331
|
-
if (!isArray$
|
|
3331
|
+
if (!isArray$h(elements)) {
|
|
3332
3332
|
elements = [ elements ];
|
|
3333
3333
|
}
|
|
3334
3334
|
|
|
3335
|
-
forEach$
|
|
3335
|
+
forEach$f(elements, function(s, i) {
|
|
3336
3336
|
var filter = fn(s, i, depth);
|
|
3337
3337
|
|
|
3338
|
-
if (isArray$
|
|
3338
|
+
if (isArray$h(filter) && filter.length) {
|
|
3339
3339
|
eachElement$1(filter, fn, depth + 1);
|
|
3340
3340
|
}
|
|
3341
3341
|
});
|
|
@@ -3399,7 +3399,7 @@
|
|
|
3399
3399
|
*/
|
|
3400
3400
|
function getClosure(elements, isTopLevel, closure) {
|
|
3401
3401
|
|
|
3402
|
-
if (isUndefined$
|
|
3402
|
+
if (isUndefined$i(isTopLevel)) {
|
|
3403
3403
|
isTopLevel = true;
|
|
3404
3404
|
}
|
|
3405
3405
|
|
|
@@ -3450,9 +3450,9 @@
|
|
|
3450
3450
|
allShapes[element.id] = element;
|
|
3451
3451
|
|
|
3452
3452
|
// remember all connections
|
|
3453
|
-
forEach$
|
|
3453
|
+
forEach$f(element.incoming, handleConnection);
|
|
3454
3454
|
|
|
3455
|
-
forEach$
|
|
3455
|
+
forEach$f(element.outgoing, handleConnection);
|
|
3456
3456
|
|
|
3457
3457
|
// recurse into children
|
|
3458
3458
|
return element.children;
|
|
@@ -3482,7 +3482,7 @@
|
|
|
3482
3482
|
function getBBox(elements, stopRecursion) {
|
|
3483
3483
|
|
|
3484
3484
|
stopRecursion = !!stopRecursion;
|
|
3485
|
-
if (!isArray$
|
|
3485
|
+
if (!isArray$h(elements)) {
|
|
3486
3486
|
elements = [ elements ];
|
|
3487
3487
|
}
|
|
3488
3488
|
|
|
@@ -3491,7 +3491,7 @@
|
|
|
3491
3491
|
maxX,
|
|
3492
3492
|
maxY;
|
|
3493
3493
|
|
|
3494
|
-
forEach$
|
|
3494
|
+
forEach$f(elements, function(element) {
|
|
3495
3495
|
|
|
3496
3496
|
// If element is a connection the bbox must be computed first
|
|
3497
3497
|
var bbox = element;
|
|
@@ -3545,7 +3545,7 @@
|
|
|
3545
3545
|
|
|
3546
3546
|
var filteredElements = {};
|
|
3547
3547
|
|
|
3548
|
-
forEach$
|
|
3548
|
+
forEach$f(elements, function(element) {
|
|
3549
3549
|
|
|
3550
3550
|
var e = element;
|
|
3551
3551
|
|
|
@@ -3768,12 +3768,12 @@
|
|
|
3768
3768
|
*/
|
|
3769
3769
|
this.style = function(traits, additionalAttrs) {
|
|
3770
3770
|
|
|
3771
|
-
if (!isArray$
|
|
3771
|
+
if (!isArray$h(traits) && !additionalAttrs) {
|
|
3772
3772
|
additionalAttrs = traits;
|
|
3773
3773
|
traits = [];
|
|
3774
3774
|
}
|
|
3775
3775
|
|
|
3776
|
-
var attrs = reduce$
|
|
3776
|
+
var attrs = reduce$4(traits, function(attrs, t) {
|
|
3777
3777
|
return assign$a(attrs, defaultTraits[t] || {});
|
|
3778
3778
|
}, {});
|
|
3779
3779
|
|
|
@@ -3792,7 +3792,7 @@
|
|
|
3792
3792
|
* @return {Object} the style definition
|
|
3793
3793
|
*/
|
|
3794
3794
|
this.computeStyle = function(custom, traits, defaultStyles) {
|
|
3795
|
-
if (!isArray$
|
|
3795
|
+
if (!isArray$h(traits)) {
|
|
3796
3796
|
defaultStyles = traits;
|
|
3797
3797
|
traits = [];
|
|
3798
3798
|
}
|
|
@@ -3835,15 +3835,15 @@
|
|
|
3835
3835
|
* @return {T[]}
|
|
3836
3836
|
*/
|
|
3837
3837
|
|
|
3838
|
-
const nativeToString$
|
|
3839
|
-
const nativeHasOwnProperty$
|
|
3838
|
+
const nativeToString$h = Object.prototype.toString;
|
|
3839
|
+
const nativeHasOwnProperty$f = Object.prototype.hasOwnProperty;
|
|
3840
3840
|
|
|
3841
|
-
function isUndefined$
|
|
3841
|
+
function isUndefined$h(obj) {
|
|
3842
3842
|
return obj === undefined;
|
|
3843
3843
|
}
|
|
3844
3844
|
|
|
3845
|
-
function isArray$
|
|
3846
|
-
return nativeToString$
|
|
3845
|
+
function isArray$g(obj) {
|
|
3846
|
+
return nativeToString$h.call(obj) === '[object Array]';
|
|
3847
3847
|
}
|
|
3848
3848
|
|
|
3849
3849
|
/**
|
|
@@ -3854,8 +3854,8 @@
|
|
|
3854
3854
|
*
|
|
3855
3855
|
* @return {Boolean}
|
|
3856
3856
|
*/
|
|
3857
|
-
function has$
|
|
3858
|
-
return nativeHasOwnProperty$
|
|
3857
|
+
function has$f(target, key) {
|
|
3858
|
+
return nativeHasOwnProperty$f.call(target, key);
|
|
3859
3859
|
}
|
|
3860
3860
|
|
|
3861
3861
|
|
|
@@ -3869,20 +3869,20 @@
|
|
|
3869
3869
|
*
|
|
3870
3870
|
* @return {T} return result that stopped the iteration
|
|
3871
3871
|
*/
|
|
3872
|
-
function forEach$
|
|
3872
|
+
function forEach$e(collection, iterator) {
|
|
3873
3873
|
|
|
3874
3874
|
let val,
|
|
3875
3875
|
result;
|
|
3876
3876
|
|
|
3877
|
-
if (isUndefined$
|
|
3877
|
+
if (isUndefined$h(collection)) {
|
|
3878
3878
|
return;
|
|
3879
3879
|
}
|
|
3880
3880
|
|
|
3881
|
-
const convertKey = isArray$
|
|
3881
|
+
const convertKey = isArray$g(collection) ? toNum$e : identity$e;
|
|
3882
3882
|
|
|
3883
3883
|
for (let key in collection) {
|
|
3884
3884
|
|
|
3885
|
-
if (has$
|
|
3885
|
+
if (has$f(collection, key)) {
|
|
3886
3886
|
val = collection[key];
|
|
3887
3887
|
|
|
3888
3888
|
result = iterator(val, convertKey(key));
|
|
@@ -3895,11 +3895,11 @@
|
|
|
3895
3895
|
}
|
|
3896
3896
|
|
|
3897
3897
|
|
|
3898
|
-
function identity$
|
|
3898
|
+
function identity$e(arg) {
|
|
3899
3899
|
return arg;
|
|
3900
3900
|
}
|
|
3901
3901
|
|
|
3902
|
-
function toNum$
|
|
3902
|
+
function toNum$e(arg) {
|
|
3903
3903
|
return Number(arg);
|
|
3904
3904
|
}
|
|
3905
3905
|
|
|
@@ -3914,12 +3914,12 @@
|
|
|
3914
3914
|
function assign$9(element, ...styleSources) {
|
|
3915
3915
|
const target = element.style;
|
|
3916
3916
|
|
|
3917
|
-
forEach$
|
|
3917
|
+
forEach$e(styleSources, function(style) {
|
|
3918
3918
|
if (!style) {
|
|
3919
3919
|
return;
|
|
3920
3920
|
}
|
|
3921
3921
|
|
|
3922
|
-
forEach$
|
|
3922
|
+
forEach$e(style, function(value, key) {
|
|
3923
3923
|
target[key] = value;
|
|
3924
3924
|
});
|
|
3925
3925
|
});
|
|
@@ -4618,7 +4618,7 @@
|
|
|
4618
4618
|
pathCommand = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig,
|
|
4619
4619
|
pathValues = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig;
|
|
4620
4620
|
|
|
4621
|
-
var isArray$
|
|
4621
|
+
var isArray$f = Array.isArray || function(o) { return o instanceof Array; };
|
|
4622
4622
|
|
|
4623
4623
|
function hasProperty$1(obj, property) {
|
|
4624
4624
|
return Object.prototype.hasOwnProperty.call(obj, property);
|
|
@@ -5090,7 +5090,7 @@
|
|
|
5090
5090
|
* @return {boolean}
|
|
5091
5091
|
*/
|
|
5092
5092
|
function isPathComponents(path) {
|
|
5093
|
-
return isArray$
|
|
5093
|
+
return isArray$f(path) && isArray$f(path[0]);
|
|
5094
5094
|
}
|
|
5095
5095
|
|
|
5096
5096
|
/**
|
|
@@ -5553,7 +5553,7 @@
|
|
|
5553
5553
|
* @return {boolean}
|
|
5554
5554
|
*/
|
|
5555
5555
|
function isConnection$2(value) {
|
|
5556
|
-
return isObject$8(value) && has$
|
|
5556
|
+
return isObject$8(value) && has$g(value, 'waypoints');
|
|
5557
5557
|
}
|
|
5558
5558
|
|
|
5559
5559
|
/**
|
|
@@ -5564,7 +5564,7 @@
|
|
|
5564
5564
|
* @return {boolean}
|
|
5565
5565
|
*/
|
|
5566
5566
|
function isLabel$2(value) {
|
|
5567
|
-
return isObject$8(value) && has$
|
|
5567
|
+
return isObject$8(value) && has$g(value, 'labelTarget');
|
|
5568
5568
|
}
|
|
5569
5569
|
|
|
5570
5570
|
/**
|
|
@@ -6261,7 +6261,7 @@
|
|
|
6261
6261
|
* @return {number}
|
|
6262
6262
|
*/
|
|
6263
6263
|
Canvas.prototype._getChildIndex = function(index) {
|
|
6264
|
-
return reduce$
|
|
6264
|
+
return reduce$4(this._layers, function(childIndex, layer) {
|
|
6265
6265
|
if (layer.visible && index >= layer.index) {
|
|
6266
6266
|
childIndex++;
|
|
6267
6267
|
}
|
|
@@ -6460,7 +6460,7 @@
|
|
|
6460
6460
|
return;
|
|
6461
6461
|
}
|
|
6462
6462
|
|
|
6463
|
-
forEach$
|
|
6463
|
+
forEach$f([ container.gfx, container.secondaryGfx ], function(gfx) {
|
|
6464
6464
|
if (gfx) {
|
|
6465
6465
|
|
|
6466
6466
|
// invoke either addClass or removeClass based on mode
|
|
@@ -8546,7 +8546,7 @@
|
|
|
8546
8546
|
*/
|
|
8547
8547
|
EventBus.prototype.on = function(events, priority, callback, that) {
|
|
8548
8548
|
|
|
8549
|
-
events = isArray$
|
|
8549
|
+
events = isArray$h(events) ? events : [ events ];
|
|
8550
8550
|
|
|
8551
8551
|
if (isFunction$b(priority)) {
|
|
8552
8552
|
that = callback;
|
|
@@ -8644,7 +8644,7 @@
|
|
|
8644
8644
|
*/
|
|
8645
8645
|
EventBus.prototype.off = function(events, callback) {
|
|
8646
8646
|
|
|
8647
|
-
events = isArray$
|
|
8647
|
+
events = isArray$h(events) ? events : [ events ];
|
|
8648
8648
|
|
|
8649
8649
|
var self = this;
|
|
8650
8650
|
|
|
@@ -9202,7 +9202,7 @@
|
|
|
9202
9202
|
elementRegistry = this._elementRegistry,
|
|
9203
9203
|
parents;
|
|
9204
9204
|
|
|
9205
|
-
parents = reduce$
|
|
9205
|
+
parents = reduce$4(elements, function(map, e) {
|
|
9206
9206
|
|
|
9207
9207
|
if (e.parent) {
|
|
9208
9208
|
map[e.parent.id] = e.parent;
|
|
@@ -9213,7 +9213,7 @@
|
|
|
9213
9213
|
|
|
9214
9214
|
// update all parents of changed and reorganized their children
|
|
9215
9215
|
// in the correct order (as indicated in our model)
|
|
9216
|
-
forEach$
|
|
9216
|
+
forEach$f(parents, function(parent) {
|
|
9217
9217
|
|
|
9218
9218
|
var children = parent.children;
|
|
9219
9219
|
|
|
@@ -9223,7 +9223,7 @@
|
|
|
9223
9223
|
|
|
9224
9224
|
var childrenGfx = self._getChildrenContainer(parent);
|
|
9225
9225
|
|
|
9226
|
-
forEach$
|
|
9226
|
+
forEach$f(children.slice().reverse(), function(child) {
|
|
9227
9227
|
var childGfx = elementRegistry.getGraphics(child);
|
|
9228
9228
|
|
|
9229
9229
|
prependTo(childGfx.parentNode, childrenGfx);
|
|
@@ -9603,10 +9603,10 @@
|
|
|
9603
9603
|
* @return {T[]}
|
|
9604
9604
|
*/
|
|
9605
9605
|
|
|
9606
|
-
const nativeToString$
|
|
9606
|
+
const nativeToString$g = Object.prototype.toString;
|
|
9607
9607
|
|
|
9608
9608
|
function isString$8(obj) {
|
|
9609
|
-
return nativeToString$
|
|
9609
|
+
return nativeToString$g.call(obj) === '[object String]';
|
|
9610
9610
|
}
|
|
9611
9611
|
|
|
9612
9612
|
/**
|
|
@@ -9631,10 +9631,10 @@
|
|
|
9631
9631
|
* @return {T[]}
|
|
9632
9632
|
*/
|
|
9633
9633
|
|
|
9634
|
-
const nativeToString$
|
|
9635
|
-
const nativeHasOwnProperty$
|
|
9634
|
+
const nativeToString$f = Object.prototype.toString;
|
|
9635
|
+
const nativeHasOwnProperty$e = Object.prototype.hasOwnProperty;
|
|
9636
9636
|
|
|
9637
|
-
function isUndefined$
|
|
9637
|
+
function isUndefined$g(obj) {
|
|
9638
9638
|
return obj === undefined;
|
|
9639
9639
|
}
|
|
9640
9640
|
|
|
@@ -9642,20 +9642,20 @@
|
|
|
9642
9642
|
return obj !== undefined;
|
|
9643
9643
|
}
|
|
9644
9644
|
|
|
9645
|
-
function isNil$
|
|
9645
|
+
function isNil$e(obj) {
|
|
9646
9646
|
return obj == null;
|
|
9647
9647
|
}
|
|
9648
9648
|
|
|
9649
|
-
function isArray$
|
|
9650
|
-
return nativeToString$
|
|
9649
|
+
function isArray$e(obj) {
|
|
9650
|
+
return nativeToString$f.call(obj) === '[object Array]';
|
|
9651
9651
|
}
|
|
9652
9652
|
|
|
9653
9653
|
function isObject$7(obj) {
|
|
9654
|
-
return nativeToString$
|
|
9654
|
+
return nativeToString$f.call(obj) === '[object Object]';
|
|
9655
9655
|
}
|
|
9656
9656
|
|
|
9657
9657
|
function isString$7(obj) {
|
|
9658
|
-
return nativeToString$
|
|
9658
|
+
return nativeToString$f.call(obj) === '[object String]';
|
|
9659
9659
|
}
|
|
9660
9660
|
|
|
9661
9661
|
/**
|
|
@@ -9666,8 +9666,8 @@
|
|
|
9666
9666
|
*
|
|
9667
9667
|
* @return {Boolean}
|
|
9668
9668
|
*/
|
|
9669
|
-
function has$
|
|
9670
|
-
return !isNil$
|
|
9669
|
+
function has$e(target, key) {
|
|
9670
|
+
return !isNil$e(target) && nativeHasOwnProperty$e.call(target, key);
|
|
9671
9671
|
}
|
|
9672
9672
|
|
|
9673
9673
|
|
|
@@ -9681,20 +9681,20 @@
|
|
|
9681
9681
|
*
|
|
9682
9682
|
* @return {T} return result that stopped the iteration
|
|
9683
9683
|
*/
|
|
9684
|
-
function forEach$
|
|
9684
|
+
function forEach$d(collection, iterator) {
|
|
9685
9685
|
|
|
9686
9686
|
let val,
|
|
9687
9687
|
result;
|
|
9688
9688
|
|
|
9689
|
-
if (isUndefined$
|
|
9689
|
+
if (isUndefined$g(collection)) {
|
|
9690
9690
|
return;
|
|
9691
9691
|
}
|
|
9692
9692
|
|
|
9693
|
-
const convertKey = isArray$
|
|
9693
|
+
const convertKey = isArray$e(collection) ? toNum$d : identity$d;
|
|
9694
9694
|
|
|
9695
9695
|
for (let key in collection) {
|
|
9696
9696
|
|
|
9697
|
-
if (has$
|
|
9697
|
+
if (has$e(collection, key)) {
|
|
9698
9698
|
val = collection[key];
|
|
9699
9699
|
|
|
9700
9700
|
result = iterator(val, convertKey(key));
|
|
@@ -9707,11 +9707,11 @@
|
|
|
9707
9707
|
}
|
|
9708
9708
|
|
|
9709
9709
|
|
|
9710
|
-
function identity$
|
|
9710
|
+
function identity$d(arg) {
|
|
9711
9711
|
return arg;
|
|
9712
9712
|
}
|
|
9713
9713
|
|
|
9714
|
-
function toNum$
|
|
9714
|
+
function toNum$d(arg) {
|
|
9715
9715
|
return Number(arg);
|
|
9716
9716
|
}
|
|
9717
9717
|
|
|
@@ -9756,7 +9756,7 @@
|
|
|
9756
9756
|
|
|
9757
9757
|
let currentTarget = target;
|
|
9758
9758
|
|
|
9759
|
-
forEach$
|
|
9759
|
+
forEach$d(path, function(key, idx) {
|
|
9760
9760
|
|
|
9761
9761
|
if (typeof key !== 'number' && typeof key !== 'string') {
|
|
9762
9762
|
throw new Error('illegal key type: ' + typeof key + '. Key should be of type number or string.');
|
|
@@ -9773,12 +9773,12 @@
|
|
|
9773
9773
|
let nextKey = path[idx + 1];
|
|
9774
9774
|
let nextTarget = currentTarget[key];
|
|
9775
9775
|
|
|
9776
|
-
if (isDefined$5(nextKey) && isNil$
|
|
9776
|
+
if (isDefined$5(nextKey) && isNil$e(nextTarget)) {
|
|
9777
9777
|
nextTarget = currentTarget[key] = isNaN(+nextKey) ? {} : [];
|
|
9778
9778
|
}
|
|
9779
9779
|
|
|
9780
|
-
if (isUndefined$
|
|
9781
|
-
if (isUndefined$
|
|
9780
|
+
if (isUndefined$g(nextKey)) {
|
|
9781
|
+
if (isUndefined$g(value)) {
|
|
9782
9782
|
delete currentTarget[key];
|
|
9783
9783
|
} else {
|
|
9784
9784
|
currentTarget[key] = value;
|
|
@@ -9808,7 +9808,7 @@
|
|
|
9808
9808
|
|
|
9809
9809
|
let obj = Object(target);
|
|
9810
9810
|
|
|
9811
|
-
forEach$
|
|
9811
|
+
forEach$d(properties, function(prop) {
|
|
9812
9812
|
|
|
9813
9813
|
if (prop in obj) {
|
|
9814
9814
|
result[prop] = target[prop];
|
|
@@ -9851,7 +9851,7 @@
|
|
|
9851
9851
|
prototype = Object.create(Base$1.prototype);
|
|
9852
9852
|
|
|
9853
9853
|
// initialize default values
|
|
9854
|
-
forEach$
|
|
9854
|
+
forEach$d(descriptor.properties, function(p) {
|
|
9855
9855
|
if (!p.isMany && p.default !== undefined) {
|
|
9856
9856
|
prototype[p.name] = p.default;
|
|
9857
9857
|
}
|
|
@@ -9870,7 +9870,7 @@
|
|
|
9870
9870
|
props.define(this, '$attrs', { value: {} });
|
|
9871
9871
|
props.define(this, '$parent', { writable: true });
|
|
9872
9872
|
|
|
9873
|
-
forEach$
|
|
9873
|
+
forEach$d(attrs, bind$3(function(val, key) {
|
|
9874
9874
|
this.set(key, val);
|
|
9875
9875
|
}, this));
|
|
9876
9876
|
}
|
|
@@ -10177,7 +10177,7 @@
|
|
|
10177
10177
|
return;
|
|
10178
10178
|
}
|
|
10179
10179
|
|
|
10180
|
-
forEach$
|
|
10180
|
+
forEach$d(t.properties, bind$3(function(p) {
|
|
10181
10181
|
|
|
10182
10182
|
// clone property to allow extensions
|
|
10183
10183
|
p = assign$7({}, p, {
|
|
@@ -10224,7 +10224,7 @@
|
|
|
10224
10224
|
|
|
10225
10225
|
this.properties = properties;
|
|
10226
10226
|
|
|
10227
|
-
forEach$
|
|
10227
|
+
forEach$d(packages, bind$3(this.registerPackage, this));
|
|
10228
10228
|
}
|
|
10229
10229
|
|
|
10230
10230
|
|
|
@@ -10248,7 +10248,7 @@
|
|
|
10248
10248
|
ensureAvailable$1(pkgMap, pkg, 'uri');
|
|
10249
10249
|
|
|
10250
10250
|
// register types
|
|
10251
|
-
forEach$
|
|
10251
|
+
forEach$d(pkg.types, bind$3(function(descriptor) {
|
|
10252
10252
|
this.registerType(descriptor, pkg);
|
|
10253
10253
|
}, this));
|
|
10254
10254
|
|
|
@@ -10274,7 +10274,7 @@
|
|
|
10274
10274
|
propertiesByName = {};
|
|
10275
10275
|
|
|
10276
10276
|
// parse properties
|
|
10277
|
-
forEach$
|
|
10277
|
+
forEach$d(type.properties, bind$3(function(p) {
|
|
10278
10278
|
|
|
10279
10279
|
// namespace property names
|
|
10280
10280
|
var propertyNs = parseName$3(p.name, ns.prefix),
|
|
@@ -10300,7 +10300,7 @@
|
|
|
10300
10300
|
propertiesByName: propertiesByName
|
|
10301
10301
|
});
|
|
10302
10302
|
|
|
10303
|
-
forEach$
|
|
10303
|
+
forEach$d(type.extends, bind$3(function(extendsName) {
|
|
10304
10304
|
var extendsNameNs = parseName$3(extendsName, ns.prefix);
|
|
10305
10305
|
|
|
10306
10306
|
var extended = this.typeMap[extendsNameNs.name];
|
|
@@ -10365,12 +10365,12 @@
|
|
|
10365
10365
|
throw new Error('unknown type <' + nsName.name + '>');
|
|
10366
10366
|
}
|
|
10367
10367
|
|
|
10368
|
-
forEach$
|
|
10368
|
+
forEach$d(type.superClass, trait ? traverseTrait : traverseSuper);
|
|
10369
10369
|
|
|
10370
10370
|
// call iterator with (type, inherited=!trait)
|
|
10371
10371
|
iterator(type, !trait);
|
|
10372
10372
|
|
|
10373
|
-
forEach$
|
|
10373
|
+
forEach$d(type.traits, traverseTrait);
|
|
10374
10374
|
};
|
|
10375
10375
|
|
|
10376
10376
|
|
|
@@ -10445,7 +10445,7 @@
|
|
|
10445
10445
|
|
|
10446
10446
|
var propertyName = property && property.name;
|
|
10447
10447
|
|
|
10448
|
-
if (isUndefined$
|
|
10448
|
+
if (isUndefined$f(value)) {
|
|
10449
10449
|
|
|
10450
10450
|
// unset the property, if the specified value is undefined;
|
|
10451
10451
|
// delete from $attrs (for extensions) or the target itself
|
|
@@ -10576,7 +10576,7 @@
|
|
|
10576
10576
|
return null;
|
|
10577
10577
|
};
|
|
10578
10578
|
|
|
10579
|
-
function isUndefined$
|
|
10579
|
+
function isUndefined$f(val) {
|
|
10580
10580
|
return typeof val === 'undefined';
|
|
10581
10581
|
}
|
|
10582
10582
|
|
|
@@ -10747,7 +10747,7 @@
|
|
|
10747
10747
|
this.properties.define(element, '$parent', { enumerable: false, writable: true });
|
|
10748
10748
|
this.properties.define(element, '$instanceOf', { enumerable: false, writable: true });
|
|
10749
10749
|
|
|
10750
|
-
forEach$
|
|
10750
|
+
forEach$d(properties, function(a, key) {
|
|
10751
10751
|
if (isObject$7(a) && a.value !== undefined) {
|
|
10752
10752
|
element[a.name] = a.value;
|
|
10753
10753
|
} else {
|
|
@@ -10824,19 +10824,19 @@
|
|
|
10824
10824
|
* @return {T[]}
|
|
10825
10825
|
*/
|
|
10826
10826
|
|
|
10827
|
-
const nativeToString$
|
|
10828
|
-
const nativeHasOwnProperty$
|
|
10827
|
+
const nativeToString$e = Object.prototype.toString;
|
|
10828
|
+
const nativeHasOwnProperty$d = Object.prototype.hasOwnProperty;
|
|
10829
10829
|
|
|
10830
|
-
function isUndefined$
|
|
10830
|
+
function isUndefined$e(obj) {
|
|
10831
10831
|
return obj === undefined;
|
|
10832
10832
|
}
|
|
10833
10833
|
|
|
10834
|
-
function isNil$
|
|
10834
|
+
function isNil$d(obj) {
|
|
10835
10835
|
return obj == null;
|
|
10836
10836
|
}
|
|
10837
10837
|
|
|
10838
|
-
function isArray$
|
|
10839
|
-
return nativeToString$
|
|
10838
|
+
function isArray$d(obj) {
|
|
10839
|
+
return nativeToString$e.call(obj) === '[object Array]';
|
|
10840
10840
|
}
|
|
10841
10841
|
|
|
10842
10842
|
/**
|
|
@@ -10845,7 +10845,7 @@
|
|
|
10845
10845
|
* @return {boolean}
|
|
10846
10846
|
*/
|
|
10847
10847
|
function isFunction$a(obj) {
|
|
10848
|
-
const tag = nativeToString$
|
|
10848
|
+
const tag = nativeToString$e.call(obj);
|
|
10849
10849
|
|
|
10850
10850
|
return (
|
|
10851
10851
|
tag === '[object Function]' ||
|
|
@@ -10857,7 +10857,7 @@
|
|
|
10857
10857
|
}
|
|
10858
10858
|
|
|
10859
10859
|
function isString$6(obj) {
|
|
10860
|
-
return nativeToString$
|
|
10860
|
+
return nativeToString$e.call(obj) === '[object String]';
|
|
10861
10861
|
}
|
|
10862
10862
|
|
|
10863
10863
|
/**
|
|
@@ -10868,8 +10868,8 @@
|
|
|
10868
10868
|
*
|
|
10869
10869
|
* @return {Boolean}
|
|
10870
10870
|
*/
|
|
10871
|
-
function has$
|
|
10872
|
-
return !isNil$
|
|
10871
|
+
function has$d(target, key) {
|
|
10872
|
+
return !isNil$d(target) && nativeHasOwnProperty$d.call(target, key);
|
|
10873
10873
|
}
|
|
10874
10874
|
|
|
10875
10875
|
/**
|
|
@@ -10938,7 +10938,7 @@
|
|
|
10938
10938
|
|
|
10939
10939
|
let match;
|
|
10940
10940
|
|
|
10941
|
-
forEach$
|
|
10941
|
+
forEach$c(collection, function(val, key) {
|
|
10942
10942
|
if (matchFn(val, key)) {
|
|
10943
10943
|
match = val;
|
|
10944
10944
|
|
|
@@ -10964,9 +10964,9 @@
|
|
|
10964
10964
|
|
|
10965
10965
|
const matchFn = toMatcher$9(matcher);
|
|
10966
10966
|
|
|
10967
|
-
let idx = isArray$
|
|
10967
|
+
let idx = isArray$d(collection) ? -1 : undefined;
|
|
10968
10968
|
|
|
10969
|
-
forEach$
|
|
10969
|
+
forEach$c(collection, function(val, key) {
|
|
10970
10970
|
if (matchFn(val, key)) {
|
|
10971
10971
|
idx = key;
|
|
10972
10972
|
|
|
@@ -10993,7 +10993,7 @@
|
|
|
10993
10993
|
|
|
10994
10994
|
let result = [];
|
|
10995
10995
|
|
|
10996
|
-
forEach$
|
|
10996
|
+
forEach$c(collection, function(val, key) {
|
|
10997
10997
|
if (matchFn(val, key)) {
|
|
10998
10998
|
result.push(val);
|
|
10999
10999
|
}
|
|
@@ -11013,20 +11013,20 @@
|
|
|
11013
11013
|
*
|
|
11014
11014
|
* @return {T} return result that stopped the iteration
|
|
11015
11015
|
*/
|
|
11016
|
-
function forEach$
|
|
11016
|
+
function forEach$c(collection, iterator) {
|
|
11017
11017
|
|
|
11018
11018
|
let val,
|
|
11019
11019
|
result;
|
|
11020
11020
|
|
|
11021
|
-
if (isUndefined$
|
|
11021
|
+
if (isUndefined$e(collection)) {
|
|
11022
11022
|
return;
|
|
11023
11023
|
}
|
|
11024
11024
|
|
|
11025
|
-
const convertKey = isArray$
|
|
11025
|
+
const convertKey = isArray$d(collection) ? toNum$c : identity$c;
|
|
11026
11026
|
|
|
11027
11027
|
for (let key in collection) {
|
|
11028
11028
|
|
|
11029
|
-
if (has$
|
|
11029
|
+
if (has$d(collection, key)) {
|
|
11030
11030
|
val = collection[key];
|
|
11031
11031
|
|
|
11032
11032
|
result = iterator(val, convertKey(key));
|
|
@@ -11052,11 +11052,11 @@
|
|
|
11052
11052
|
}
|
|
11053
11053
|
|
|
11054
11054
|
|
|
11055
|
-
function identity$
|
|
11055
|
+
function identity$c(arg) {
|
|
11056
11056
|
return arg;
|
|
11057
11057
|
}
|
|
11058
11058
|
|
|
11059
|
-
function toNum$
|
|
11059
|
+
function toNum$c(arg) {
|
|
11060
11060
|
return Number(arg);
|
|
11061
11061
|
}
|
|
11062
11062
|
|
|
@@ -12439,7 +12439,7 @@
|
|
|
12439
12439
|
model = this.model,
|
|
12440
12440
|
propNameNs;
|
|
12441
12441
|
|
|
12442
|
-
forEach$
|
|
12442
|
+
forEach$c(attributes, function(value, name) {
|
|
12443
12443
|
|
|
12444
12444
|
var prop = descriptor.propertiesByName[name],
|
|
12445
12445
|
values;
|
|
@@ -12457,7 +12457,7 @@
|
|
|
12457
12457
|
// IDREFS: parse references as whitespace-separated list
|
|
12458
12458
|
values = value.split(' ');
|
|
12459
12459
|
|
|
12460
|
-
forEach$
|
|
12460
|
+
forEach$c(values, function(v) {
|
|
12461
12461
|
context.addReference({
|
|
12462
12462
|
element: instance,
|
|
12463
12463
|
property: prop.ns.name,
|
|
@@ -13213,7 +13213,7 @@
|
|
|
13213
13213
|
}
|
|
13214
13214
|
|
|
13215
13215
|
// do not serialize defaults
|
|
13216
|
-
if (!has$
|
|
13216
|
+
if (!has$d(element, name)) {
|
|
13217
13217
|
return false;
|
|
13218
13218
|
}
|
|
13219
13219
|
|
|
@@ -13456,7 +13456,7 @@
|
|
|
13456
13456
|
var children = element.$children;
|
|
13457
13457
|
|
|
13458
13458
|
if (children) {
|
|
13459
|
-
forEach$
|
|
13459
|
+
forEach$c(children, child => {
|
|
13460
13460
|
this.body.push(new ElementSerializer$1(this).build(child));
|
|
13461
13461
|
});
|
|
13462
13462
|
}
|
|
@@ -13516,7 +13516,7 @@
|
|
|
13516
13516
|
// parse namespace attributes first
|
|
13517
13517
|
// and log them. push non namespace attributes to a list
|
|
13518
13518
|
// and process them later
|
|
13519
|
-
forEach$
|
|
13519
|
+
forEach$c(genericAttrs, function(value, name) {
|
|
13520
13520
|
|
|
13521
13521
|
var nonNsAttr = self.parseNsAttribute(element, name, value);
|
|
13522
13522
|
|
|
@@ -13532,7 +13532,7 @@
|
|
|
13532
13532
|
|
|
13533
13533
|
var self = this;
|
|
13534
13534
|
|
|
13535
|
-
forEach$
|
|
13535
|
+
forEach$c(attributes, function(attr) {
|
|
13536
13536
|
|
|
13537
13537
|
try {
|
|
13538
13538
|
self.addAttribute(self.nsAttributeName(attr.name), attr.value);
|
|
@@ -13554,7 +13554,7 @@
|
|
|
13554
13554
|
body = this.body,
|
|
13555
13555
|
element = this.element;
|
|
13556
13556
|
|
|
13557
|
-
forEach$
|
|
13557
|
+
forEach$c(properties, function(p) {
|
|
13558
13558
|
var value = element.get(p.name),
|
|
13559
13559
|
isReference = p.isReference,
|
|
13560
13560
|
isMany = p.isMany;
|
|
@@ -13566,11 +13566,11 @@
|
|
|
13566
13566
|
if (p.isBody) {
|
|
13567
13567
|
body.push(new BodySerializer$1().build(p, value[0]));
|
|
13568
13568
|
} else if (isSimple$1(p.type)) {
|
|
13569
|
-
forEach$
|
|
13569
|
+
forEach$c(value, function(v) {
|
|
13570
13570
|
body.push(new ValueSerializer$1(self.addTagName(self.nsPropertyTagName(p))).build(p, v));
|
|
13571
13571
|
});
|
|
13572
13572
|
} else if (isReference) {
|
|
13573
|
-
forEach$
|
|
13573
|
+
forEach$c(value, function(v) {
|
|
13574
13574
|
body.push(new ReferenceSerializer$1(self.addTagName(self.nsPropertyTagName(p))).build(v));
|
|
13575
13575
|
});
|
|
13576
13576
|
} else {
|
|
@@ -13579,7 +13579,7 @@
|
|
|
13579
13579
|
// rather than element name
|
|
13580
13580
|
var serialization = getSerialization$1(p);
|
|
13581
13581
|
|
|
13582
|
-
forEach$
|
|
13582
|
+
forEach$c(value, function(v) {
|
|
13583
13583
|
var serializer;
|
|
13584
13584
|
|
|
13585
13585
|
if (serialization) {
|
|
@@ -13691,7 +13691,7 @@
|
|
|
13691
13691
|
var self = this,
|
|
13692
13692
|
element = this.element;
|
|
13693
13693
|
|
|
13694
|
-
forEach$
|
|
13694
|
+
forEach$c(properties, function(p) {
|
|
13695
13695
|
|
|
13696
13696
|
var value = element.get(p.name);
|
|
13697
13697
|
|
|
@@ -13701,7 +13701,7 @@
|
|
|
13701
13701
|
value = value.id;
|
|
13702
13702
|
} else {
|
|
13703
13703
|
var values = [];
|
|
13704
|
-
forEach$
|
|
13704
|
+
forEach$c(value, function(v) {
|
|
13705
13705
|
values.push(v.id);
|
|
13706
13706
|
});
|
|
13707
13707
|
|
|
@@ -13757,7 +13757,7 @@
|
|
|
13757
13757
|
attrs = getNsAttrs$1(namespaces).concat(attrs);
|
|
13758
13758
|
}
|
|
13759
13759
|
|
|
13760
|
-
forEach$
|
|
13760
|
+
forEach$c(attrs, function(a) {
|
|
13761
13761
|
writer
|
|
13762
13762
|
.append(' ')
|
|
13763
13763
|
.append(nsName$1(a.name)).append('="').append(a.value).append('"');
|
|
@@ -13784,7 +13784,7 @@
|
|
|
13784
13784
|
.indent();
|
|
13785
13785
|
}
|
|
13786
13786
|
|
|
13787
|
-
forEach$
|
|
13787
|
+
forEach$c(this.body, function(b) {
|
|
13788
13788
|
b.serializeTo(writer);
|
|
13789
13789
|
});
|
|
13790
13790
|
|
|
@@ -17725,7 +17725,7 @@
|
|
|
17725
17725
|
function ensureCompatDiRef(businessObject) {
|
|
17726
17726
|
|
|
17727
17727
|
// bpmnElement can have multiple independent DIs
|
|
17728
|
-
if (!has$
|
|
17728
|
+
if (!has$i(businessObject, 'di')) {
|
|
17729
17729
|
Object.defineProperty(businessObject, 'di', {
|
|
17730
17730
|
enumerable: false,
|
|
17731
17731
|
get: function() {
|
|
@@ -17865,7 +17865,7 @@
|
|
|
17865
17865
|
function handlePlane(plane) {
|
|
17866
17866
|
registerDi(plane);
|
|
17867
17867
|
|
|
17868
|
-
forEach$
|
|
17868
|
+
forEach$h(plane.planeElement, handlePlaneElement);
|
|
17869
17869
|
}
|
|
17870
17870
|
|
|
17871
17871
|
function handlePlaneElement(planeElement) {
|
|
@@ -17995,7 +17995,7 @@
|
|
|
17995
17995
|
}
|
|
17996
17996
|
|
|
17997
17997
|
function handleMessageFlows(messageFlows, context) {
|
|
17998
|
-
forEach$
|
|
17998
|
+
forEach$h(messageFlows, contextual(handleMessageFlow, context));
|
|
17999
17999
|
}
|
|
18000
18000
|
|
|
18001
18001
|
function handleDataAssociation(association, context) {
|
|
@@ -18021,7 +18021,7 @@
|
|
|
18021
18021
|
|
|
18022
18022
|
function handleArtifacts(artifacts, context) {
|
|
18023
18023
|
|
|
18024
|
-
forEach$
|
|
18024
|
+
forEach$h(artifacts, function(e) {
|
|
18025
18025
|
if (is$5(e, 'bpmn:Association')) {
|
|
18026
18026
|
deferred.push(function() {
|
|
18027
18027
|
handleArtifact(e, context);
|
|
@@ -18038,8 +18038,8 @@
|
|
|
18038
18038
|
return;
|
|
18039
18039
|
}
|
|
18040
18040
|
|
|
18041
|
-
forEach$
|
|
18042
|
-
forEach$
|
|
18041
|
+
forEach$h(ioSpecification.dataInputs, contextual(handleDataInput, context));
|
|
18042
|
+
forEach$h(ioSpecification.dataOutputs, contextual(handleDataOutput, context));
|
|
18043
18043
|
}
|
|
18044
18044
|
|
|
18045
18045
|
var handleSubProcess = this.handleSubProcess = function handleSubProcess(subProcess, context) {
|
|
@@ -18066,8 +18066,8 @@
|
|
|
18066
18066
|
// * bpmn:CatchEvent
|
|
18067
18067
|
//
|
|
18068
18068
|
deferred.push(function() {
|
|
18069
|
-
forEach$
|
|
18070
|
-
forEach$
|
|
18069
|
+
forEach$h(flowNode.dataInputAssociations, contextual(handleDataAssociation, context));
|
|
18070
|
+
forEach$h(flowNode.dataOutputAssociations, contextual(handleDataAssociation, context));
|
|
18071
18071
|
});
|
|
18072
18072
|
}
|
|
18073
18073
|
|
|
@@ -18094,11 +18094,11 @@
|
|
|
18094
18094
|
}
|
|
18095
18095
|
|
|
18096
18096
|
function handleLaneSet(laneSet, context) {
|
|
18097
|
-
forEach$
|
|
18097
|
+
forEach$h(laneSet.lanes, contextual(handleLane, context));
|
|
18098
18098
|
}
|
|
18099
18099
|
|
|
18100
18100
|
function handleLaneSets(laneSets, context) {
|
|
18101
|
-
forEach$
|
|
18101
|
+
forEach$h(laneSets, contextual(handleLaneSet, context));
|
|
18102
18102
|
}
|
|
18103
18103
|
|
|
18104
18104
|
function handleFlowElementsContainer(container, context) {
|
|
@@ -18110,7 +18110,7 @@
|
|
|
18110
18110
|
}
|
|
18111
18111
|
|
|
18112
18112
|
function handleFlowElements(flowElements, context) {
|
|
18113
|
-
forEach$
|
|
18113
|
+
forEach$h(flowElements, function(flowElement) {
|
|
18114
18114
|
if (is$5(flowElement, 'bpmn:SequenceFlow')) {
|
|
18115
18115
|
deferred.push(function() {
|
|
18116
18116
|
handleSequenceFlow(flowElement, context);
|
|
@@ -18148,7 +18148,7 @@
|
|
|
18148
18148
|
|
|
18149
18149
|
function handleCollaboration(collaboration, context) {
|
|
18150
18150
|
|
|
18151
|
-
forEach$
|
|
18151
|
+
forEach$h(collaboration.participants, contextual(handleParticipant, context));
|
|
18152
18152
|
|
|
18153
18153
|
deferred.push(function() {
|
|
18154
18154
|
handleMessageFlows(collaboration.messageFlows, context);
|
|
@@ -18161,7 +18161,7 @@
|
|
|
18161
18161
|
function wireFlowNodeRefs(lane) {
|
|
18162
18162
|
|
|
18163
18163
|
// wire the virtual flowNodeRefs <-> relationship
|
|
18164
|
-
forEach$
|
|
18164
|
+
forEach$h(lane.flowNodeRef, function(flowNode) {
|
|
18165
18165
|
var lanes = flowNode.get('lanes');
|
|
18166
18166
|
|
|
18167
18167
|
if (lanes) {
|
|
@@ -18295,7 +18295,7 @@
|
|
|
18295
18295
|
|
|
18296
18296
|
// traverse BPMN 2.0 document model,
|
|
18297
18297
|
// starting at definitions
|
|
18298
|
-
forEach$
|
|
18298
|
+
forEach$h(diagramsToImport, function(diagram) {
|
|
18299
18299
|
walker.handleDefinitions(definitions, diagram);
|
|
18300
18300
|
});
|
|
18301
18301
|
|
|
@@ -18390,7 +18390,7 @@
|
|
|
18390
18390
|
var diagramsToImport = [ bpmnDiagram ];
|
|
18391
18391
|
var handledElements = [ bpmnElement ];
|
|
18392
18392
|
|
|
18393
|
-
forEach$
|
|
18393
|
+
forEach$h(definitions.diagrams, function(diagram) {
|
|
18394
18394
|
|
|
18395
18395
|
if (!diagram.plane) {
|
|
18396
18396
|
return;
|
|
@@ -18414,7 +18414,7 @@
|
|
|
18414
18414
|
function selfAndAllFlowElements$1(elements) {
|
|
18415
18415
|
var result = [];
|
|
18416
18416
|
|
|
18417
|
-
forEach$
|
|
18417
|
+
forEach$h(elements, function(element) {
|
|
18418
18418
|
if (!element) {
|
|
18419
18419
|
return;
|
|
18420
18420
|
}
|
|
@@ -20018,7 +20018,7 @@
|
|
|
20018
20018
|
* @returns {number}
|
|
20019
20019
|
*/
|
|
20020
20020
|
function getWidth(bounds, overrides = {}) {
|
|
20021
|
-
return has$
|
|
20021
|
+
return has$i(overrides, 'width') ? overrides.width : bounds.width;
|
|
20022
20022
|
}
|
|
20023
20023
|
|
|
20024
20024
|
/**
|
|
@@ -20030,7 +20030,7 @@
|
|
|
20030
20030
|
* @returns {number}
|
|
20031
20031
|
*/
|
|
20032
20032
|
function getHeight(bounds, overrides = {}) {
|
|
20033
|
-
return has$
|
|
20033
|
+
return has$i(overrides, 'height') ? overrides.height : bounds.height;
|
|
20034
20034
|
}
|
|
20035
20035
|
|
|
20036
20036
|
var markerIds = new Ids$1();
|
|
@@ -21000,7 +21000,7 @@
|
|
|
21000
21000
|
});
|
|
21001
21001
|
}
|
|
21002
21002
|
|
|
21003
|
-
forEach$
|
|
21003
|
+
forEach$h(taskMarkers, function(marker) {
|
|
21004
21004
|
renderTaskMarker(marker, parentGfx, element, attrs);
|
|
21005
21005
|
});
|
|
21006
21006
|
}
|
|
@@ -22746,11 +22746,11 @@
|
|
|
22746
22746
|
padding.top = padding.bottom = 0;
|
|
22747
22747
|
}
|
|
22748
22748
|
|
|
22749
|
-
var totalHeight = reduce$
|
|
22749
|
+
var totalHeight = reduce$4(layouted, function(sum, line, idx) {
|
|
22750
22750
|
return sum + (lineHeight || line.height);
|
|
22751
22751
|
}, 0) + padding.top + padding.bottom;
|
|
22752
22752
|
|
|
22753
|
-
var maxLineWidth = reduce$
|
|
22753
|
+
var maxLineWidth = reduce$4(layouted, function(sum, line, idx) {
|
|
22754
22754
|
return line.width > sum ? line.width : sum;
|
|
22755
22755
|
}, 0);
|
|
22756
22756
|
|
|
@@ -22771,7 +22771,7 @@
|
|
|
22771
22771
|
|
|
22772
22772
|
// layout each line taking into account that parent
|
|
22773
22773
|
// shape might resize to fit text size
|
|
22774
|
-
forEach$
|
|
22774
|
+
forEach$f(layouted, function(line) {
|
|
22775
22775
|
|
|
22776
22776
|
var x;
|
|
22777
22777
|
|
|
@@ -24147,13 +24147,13 @@
|
|
|
24147
24147
|
|
|
24148
24148
|
var overlays = this.get(filter) || [];
|
|
24149
24149
|
|
|
24150
|
-
if (!isArray$
|
|
24150
|
+
if (!isArray$h(overlays)) {
|
|
24151
24151
|
overlays = [ overlays ];
|
|
24152
24152
|
}
|
|
24153
24153
|
|
|
24154
24154
|
var self = this;
|
|
24155
24155
|
|
|
24156
|
-
forEach$
|
|
24156
|
+
forEach$f(overlays, function(overlay) {
|
|
24157
24157
|
|
|
24158
24158
|
var container = self._getOverlayContainer(overlay.element, true);
|
|
24159
24159
|
|
|
@@ -24441,7 +24441,7 @@
|
|
|
24441
24441
|
|
|
24442
24442
|
var self = this;
|
|
24443
24443
|
|
|
24444
|
-
forEach$
|
|
24444
|
+
forEach$f(this._overlays, function(overlay) {
|
|
24445
24445
|
self._updateOverlayVisibilty(overlay, viewbox);
|
|
24446
24446
|
});
|
|
24447
24447
|
};
|
|
@@ -24478,7 +24478,7 @@
|
|
|
24478
24478
|
var element = e.element;
|
|
24479
24479
|
var overlays = self.get({ element: element });
|
|
24480
24480
|
|
|
24481
|
-
forEach$
|
|
24481
|
+
forEach$f(overlays, function(o) {
|
|
24482
24482
|
self.remove(o.id);
|
|
24483
24483
|
});
|
|
24484
24484
|
|
|
@@ -24502,7 +24502,7 @@
|
|
|
24502
24502
|
var container = self._getOverlayContainer(element, true);
|
|
24503
24503
|
|
|
24504
24504
|
if (container) {
|
|
24505
|
-
forEach$
|
|
24505
|
+
forEach$f(container.overlays, function(overlay) {
|
|
24506
24506
|
self._updateOverlay(overlay);
|
|
24507
24507
|
});
|
|
24508
24508
|
|
|
@@ -24749,13 +24749,13 @@
|
|
|
24749
24749
|
throw new Error('handlerFn must be a function');
|
|
24750
24750
|
}
|
|
24751
24751
|
|
|
24752
|
-
if (!isArray$
|
|
24752
|
+
if (!isArray$h(events)) {
|
|
24753
24753
|
events = [ events ];
|
|
24754
24754
|
}
|
|
24755
24755
|
|
|
24756
24756
|
var eventBus = this._eventBus;
|
|
24757
24757
|
|
|
24758
|
-
forEach$
|
|
24758
|
+
forEach$f(events, function(event) {
|
|
24759
24759
|
|
|
24760
24760
|
// concat commandStack(.event)?(.hook)?
|
|
24761
24761
|
var fullEvent = [ 'commandStack', event, hook ].filter(function(e) { return e; }).join('.');
|
|
@@ -26083,13 +26083,13 @@
|
|
|
26083
26083
|
}
|
|
26084
26084
|
|
|
26085
26085
|
function registerEvents(svg) {
|
|
26086
|
-
forEach$
|
|
26086
|
+
forEach$f(bindings, function(val, key) {
|
|
26087
26087
|
registerEvent(svg, key, val);
|
|
26088
26088
|
});
|
|
26089
26089
|
}
|
|
26090
26090
|
|
|
26091
26091
|
function unregisterEvents(svg) {
|
|
26092
|
-
forEach$
|
|
26092
|
+
forEach$f(bindings, function(val, key) {
|
|
26093
26093
|
unregisterEvent(svg, key, val);
|
|
26094
26094
|
});
|
|
26095
26095
|
}
|
|
@@ -26199,7 +26199,7 @@
|
|
|
26199
26199
|
this.removeHits = function(gfx) {
|
|
26200
26200
|
var hits = all$1('.djs-hit', gfx);
|
|
26201
26201
|
|
|
26202
|
-
forEach$
|
|
26202
|
+
forEach$f(hits, remove$5);
|
|
26203
26203
|
};
|
|
26204
26204
|
|
|
26205
26205
|
/**
|
|
@@ -26493,7 +26493,7 @@
|
|
|
26493
26493
|
var selectedElements = this._selectedElements,
|
|
26494
26494
|
oldSelection = selectedElements.slice();
|
|
26495
26495
|
|
|
26496
|
-
if (!isArray$
|
|
26496
|
+
if (!isArray$h(elements)) {
|
|
26497
26497
|
elements = elements ? [ elements ] : [];
|
|
26498
26498
|
}
|
|
26499
26499
|
|
|
@@ -26510,7 +26510,7 @@
|
|
|
26510
26510
|
// selection may be cleared by passing an empty array or null
|
|
26511
26511
|
// to the method
|
|
26512
26512
|
if (add) {
|
|
26513
|
-
forEach$
|
|
26513
|
+
forEach$f(elements, function(element) {
|
|
26514
26514
|
if (selectedElements.indexOf(element) !== -1) {
|
|
26515
26515
|
|
|
26516
26516
|
// already selected
|
|
@@ -26577,13 +26577,13 @@
|
|
|
26577
26577
|
var oldSelection = event.oldSelection,
|
|
26578
26578
|
newSelection = event.newSelection;
|
|
26579
26579
|
|
|
26580
|
-
forEach$
|
|
26580
|
+
forEach$f(oldSelection, function(e) {
|
|
26581
26581
|
if (newSelection.indexOf(e) === -1) {
|
|
26582
26582
|
deselect(e);
|
|
26583
26583
|
}
|
|
26584
26584
|
});
|
|
26585
26585
|
|
|
26586
|
-
forEach$
|
|
26586
|
+
forEach$f(newSelection, function(e) {
|
|
26587
26587
|
if (oldSelection.indexOf(e) === -1) {
|
|
26588
26588
|
select(e);
|
|
26589
26589
|
}
|
|
@@ -26626,7 +26626,7 @@
|
|
|
26626
26626
|
return;
|
|
26627
26627
|
}
|
|
26628
26628
|
|
|
26629
|
-
if (isArray$
|
|
26629
|
+
if (isArray$h(autoSelect)) {
|
|
26630
26630
|
selection.select(autoSelect);
|
|
26631
26631
|
} else {
|
|
26632
26632
|
|
|
@@ -26832,7 +26832,7 @@
|
|
|
26832
26832
|
* @return {boolean}
|
|
26833
26833
|
*/
|
|
26834
26834
|
function isKey$1(keys, event) {
|
|
26835
|
-
keys = isArray$
|
|
26835
|
+
keys = isArray$h(keys) ? keys : [ keys ];
|
|
26836
26836
|
|
|
26837
26837
|
return keys.indexOf(event.key) !== -1 || keys.indexOf(event.code) !== -1;
|
|
26838
26838
|
}
|
|
@@ -28044,7 +28044,7 @@
|
|
|
28044
28044
|
|
|
28045
28045
|
// check if there is a center shared by more than one shape
|
|
28046
28046
|
// if not, just take the middle of the range
|
|
28047
|
-
forEach$
|
|
28047
|
+
forEach$f(sortedElements, function(element) {
|
|
28048
28048
|
var center = element[axis] + Math.round(element[dimension] / 2);
|
|
28049
28049
|
|
|
28050
28050
|
if (centers[center]) {
|
|
@@ -28102,7 +28102,7 @@
|
|
|
28102
28102
|
|
|
28103
28103
|
// filter out elements via rules
|
|
28104
28104
|
allowed = this._rules.allowed('elements.align', { elements: filteredElements });
|
|
28105
|
-
if (isArray$
|
|
28105
|
+
if (isArray$h(allowed)) {
|
|
28106
28106
|
filteredElements = allowed;
|
|
28107
28107
|
}
|
|
28108
28108
|
|
|
@@ -28344,7 +28344,7 @@
|
|
|
28344
28344
|
|
|
28345
28345
|
var target = current.target;
|
|
28346
28346
|
|
|
28347
|
-
var targets = isArray$
|
|
28347
|
+
var targets = isArray$h(target) ? target : [ target ];
|
|
28348
28348
|
|
|
28349
28349
|
var targetsChanged = targets.filter(function(element) {
|
|
28350
28350
|
return elements.includes(element);
|
|
@@ -28381,7 +28381,7 @@
|
|
|
28381
28381
|
|
|
28382
28382
|
var current = self._current;
|
|
28383
28383
|
|
|
28384
|
-
var targets = isArray$
|
|
28384
|
+
var targets = isArray$h(current.target) ? current.target : [ current.target ];
|
|
28385
28385
|
|
|
28386
28386
|
if (!targets.includes(element)) {
|
|
28387
28387
|
return;
|
|
@@ -28439,7 +28439,7 @@
|
|
|
28439
28439
|
ContextPad.prototype.getEntries = function(target) {
|
|
28440
28440
|
var providers = this._getProviders();
|
|
28441
28441
|
|
|
28442
|
-
var provideFn = isArray$
|
|
28442
|
+
var provideFn = isArray$h(target)
|
|
28443
28443
|
? 'getMultiElementContextPadEntries'
|
|
28444
28444
|
: 'getContextPadEntries';
|
|
28445
28445
|
|
|
@@ -28447,7 +28447,7 @@
|
|
|
28447
28447
|
|
|
28448
28448
|
// loop through all providers and their entries.
|
|
28449
28449
|
// group entries by id so that overriding an entry is possible
|
|
28450
|
-
forEach$
|
|
28450
|
+
forEach$f(providers, function(provider) {
|
|
28451
28451
|
|
|
28452
28452
|
if (!isFunction$b(provider[provideFn])) {
|
|
28453
28453
|
return;
|
|
@@ -28458,7 +28458,7 @@
|
|
|
28458
28458
|
if (isFunction$b(entriesOrUpdater)) {
|
|
28459
28459
|
entries = entriesOrUpdater(entries);
|
|
28460
28460
|
} else {
|
|
28461
|
-
forEach$
|
|
28461
|
+
forEach$f(entriesOrUpdater, function(entry, id) {
|
|
28462
28462
|
entries[id] = entry;
|
|
28463
28463
|
});
|
|
28464
28464
|
}
|
|
@@ -28594,7 +28594,7 @@
|
|
|
28594
28594
|
html = this._createHtml(target),
|
|
28595
28595
|
image;
|
|
28596
28596
|
|
|
28597
|
-
forEach$
|
|
28597
|
+
forEach$f(entries, function(entry, id) {
|
|
28598
28598
|
var grouping = entry.group || 'default',
|
|
28599
28599
|
control = domify$1$3(entry.html || '<div class="entry" draggable="true"></div>'),
|
|
28600
28600
|
container;
|
|
@@ -28746,11 +28746,11 @@
|
|
|
28746
28746
|
var currentTarget = current.target;
|
|
28747
28747
|
|
|
28748
28748
|
// strict handling of single vs. multi-selection
|
|
28749
|
-
if (isArray$
|
|
28749
|
+
if (isArray$h(target) !== isArray$h(currentTarget)) {
|
|
28750
28750
|
return false;
|
|
28751
28751
|
}
|
|
28752
28752
|
|
|
28753
|
-
if (isArray$
|
|
28753
|
+
if (isArray$h(target)) {
|
|
28754
28754
|
return (
|
|
28755
28755
|
target.length === currentTarget.length &&
|
|
28756
28756
|
every$1(target, function(element) {
|
|
@@ -28813,7 +28813,7 @@
|
|
|
28813
28813
|
* @return {RectTRBL & { x: number, y: number }}
|
|
28814
28814
|
*/
|
|
28815
28815
|
ContextPad.prototype._getPosition = function(target) {
|
|
28816
|
-
if (!isArray$
|
|
28816
|
+
if (!isArray$h(target) && isConnection$2(target)) {
|
|
28817
28817
|
var viewbox = this._canvas.viewbox();
|
|
28818
28818
|
|
|
28819
28819
|
var lastWaypoint = getLastWaypoint(target);
|
|
@@ -28888,7 +28888,7 @@
|
|
|
28888
28888
|
|
|
28889
28889
|
var target = this._current.target;
|
|
28890
28890
|
|
|
28891
|
-
var targets = isArray$
|
|
28891
|
+
var targets = isArray$h(target) ? target : [ target ];
|
|
28892
28892
|
|
|
28893
28893
|
var isHidden = targets.some(function(target) {
|
|
28894
28894
|
return self._canvas.hasMarker(target, MARKER_HIDDEN$1);
|
|
@@ -28914,7 +28914,7 @@
|
|
|
28914
28914
|
ContextPad.prototype._getTargetBounds = function(target) {
|
|
28915
28915
|
var self = this;
|
|
28916
28916
|
|
|
28917
|
-
var elements = isArray$
|
|
28917
|
+
var elements = isArray$h(target) ? target : [ target ];
|
|
28918
28918
|
|
|
28919
28919
|
var elementsGfx = elements.map(function(element) {
|
|
28920
28920
|
return self._canvas.getGraphics(element);
|
|
@@ -28948,7 +28948,7 @@
|
|
|
28948
28948
|
function addClasses$1(element, classNames) {
|
|
28949
28949
|
var classes = classes$1(element);
|
|
28950
28950
|
|
|
28951
|
-
classNames = isArray$
|
|
28951
|
+
classNames = isArray$h(classNames) ? classNames : classNames.split(/\s+/g);
|
|
28952
28952
|
|
|
28953
28953
|
classNames.forEach(function(cls) {
|
|
28954
28954
|
classes.add(cls);
|
|
@@ -28966,8 +28966,8 @@
|
|
|
28966
28966
|
* @return {boolean}
|
|
28967
28967
|
*/
|
|
28968
28968
|
function targetsEqual(target, otherTarget) {
|
|
28969
|
-
target = isArray$
|
|
28970
|
-
otherTarget = isArray$
|
|
28969
|
+
target = isArray$h(target) ? target : [ target ];
|
|
28970
|
+
otherTarget = isArray$h(otherTarget) ? otherTarget : [ otherTarget ];
|
|
28971
28971
|
|
|
28972
28972
|
return target.length === otherTarget.length
|
|
28973
28973
|
&& every$1(target, function(element) {
|
|
@@ -30060,11 +30060,11 @@
|
|
|
30060
30060
|
PopupMenu.prototype._getEntries = function(target, providers) {
|
|
30061
30061
|
var entries = {};
|
|
30062
30062
|
|
|
30063
|
-
forEach$
|
|
30063
|
+
forEach$f(providers, function(provider) {
|
|
30064
30064
|
|
|
30065
30065
|
// handle legacy method
|
|
30066
30066
|
if (!provider.getPopupMenuEntries) {
|
|
30067
|
-
forEach$
|
|
30067
|
+
forEach$f(provider.getEntries(target), function(entry) {
|
|
30068
30068
|
var id = entry.id;
|
|
30069
30069
|
|
|
30070
30070
|
if (!id) {
|
|
@@ -30082,7 +30082,7 @@
|
|
|
30082
30082
|
if (isFunction$b(entriesOrUpdater)) {
|
|
30083
30083
|
entries = entriesOrUpdater(entries);
|
|
30084
30084
|
} else {
|
|
30085
|
-
forEach$
|
|
30085
|
+
forEach$f(entriesOrUpdater, function(entry, id) {
|
|
30086
30086
|
entries[id] = entry;
|
|
30087
30087
|
});
|
|
30088
30088
|
}
|
|
@@ -30100,7 +30100,7 @@
|
|
|
30100
30100
|
PopupMenu.prototype._getHeaderEntries = function(target, providers) {
|
|
30101
30101
|
var entries = {};
|
|
30102
30102
|
|
|
30103
|
-
forEach$
|
|
30103
|
+
forEach$f(providers, function(provider) {
|
|
30104
30104
|
|
|
30105
30105
|
// handle legacy method
|
|
30106
30106
|
if (!provider.getPopupMenuHeaderEntries) {
|
|
@@ -30108,7 +30108,7 @@
|
|
|
30108
30108
|
return;
|
|
30109
30109
|
}
|
|
30110
30110
|
|
|
30111
|
-
forEach$
|
|
30111
|
+
forEach$f(provider.getHeaderEntries(target), function(entry) {
|
|
30112
30112
|
var id = entry.id;
|
|
30113
30113
|
|
|
30114
30114
|
if (!id) {
|
|
@@ -30126,7 +30126,7 @@
|
|
|
30126
30126
|
if (isFunction$b(entriesOrUpdater)) {
|
|
30127
30127
|
entries = entriesOrUpdater(entries);
|
|
30128
30128
|
} else {
|
|
30129
|
-
forEach$
|
|
30129
|
+
forEach$f(entriesOrUpdater, function(entry, id) {
|
|
30130
30130
|
entries[id] = entry;
|
|
30131
30131
|
});
|
|
30132
30132
|
}
|
|
@@ -30296,7 +30296,7 @@
|
|
|
30296
30296
|
const {
|
|
30297
30297
|
tokens,
|
|
30298
30298
|
matchedWords
|
|
30299
|
-
} = isArray$
|
|
30299
|
+
} = isArray$h(itemValue) ? (
|
|
30300
30300
|
itemValue.reduce(
|
|
30301
30301
|
(result, itemString) => {
|
|
30302
30302
|
const { tokens, matchedWords } = matchString(itemString, words);
|
|
@@ -30419,7 +30419,7 @@
|
|
|
30419
30419
|
* @returns { number }
|
|
30420
30420
|
*/
|
|
30421
30421
|
function scoreToken(token) {
|
|
30422
|
-
if (isArray$
|
|
30422
|
+
if (isArray$h(token)) {
|
|
30423
30423
|
return Math.max(...token.map(scoreToken));
|
|
30424
30424
|
}
|
|
30425
30425
|
|
|
@@ -30450,7 +30450,7 @@
|
|
|
30450
30450
|
* @return {string}
|
|
30451
30451
|
*/
|
|
30452
30452
|
function stringJoin(str = '') {
|
|
30453
|
-
return isArray$
|
|
30453
|
+
return isArray$h(str) ? str.join(', ') : str;
|
|
30454
30454
|
}
|
|
30455
30455
|
|
|
30456
30456
|
/**
|
|
@@ -30800,7 +30800,7 @@
|
|
|
30800
30800
|
|
|
30801
30801
|
var entries = {};
|
|
30802
30802
|
|
|
30803
|
-
forEach$
|
|
30803
|
+
forEach$h(ALIGNMENT_OPTIONS, function(alignment) {
|
|
30804
30804
|
entries[ 'align-elements-' + alignment ] = {
|
|
30805
30805
|
group: 'align',
|
|
30806
30806
|
title: translate('Align elements ' + alignment),
|
|
@@ -31186,7 +31186,7 @@
|
|
|
31186
31186
|
return accumulator;
|
|
31187
31187
|
}, {});
|
|
31188
31188
|
|
|
31189
|
-
var distancesGrouped = reduce$
|
|
31189
|
+
var distancesGrouped = reduce$4(distances, function(accumulator, currentValue) {
|
|
31190
31190
|
var distance = currentValue.distance,
|
|
31191
31191
|
weight = currentValue.weight;
|
|
31192
31192
|
|
|
@@ -31778,10 +31778,10 @@
|
|
|
31778
31778
|
return element.parent.id;
|
|
31779
31779
|
});
|
|
31780
31780
|
|
|
31781
|
-
forEach$
|
|
31781
|
+
forEach$f(expandings, function(elements, parentId) {
|
|
31782
31782
|
|
|
31783
31783
|
// optionally filter elements to be considered when resizing
|
|
31784
|
-
if (isArray$
|
|
31784
|
+
if (isArray$h(autoResize)) {
|
|
31785
31785
|
elements = elements.filter(function(element) {
|
|
31786
31786
|
return find$9(autoResize, matchPattern({ id: element.id }));
|
|
31787
31787
|
});
|
|
@@ -32126,7 +32126,7 @@
|
|
|
32126
32126
|
|
|
32127
32127
|
var canResize = true;
|
|
32128
32128
|
|
|
32129
|
-
forEach$
|
|
32129
|
+
forEach$h(elements, function(element) {
|
|
32130
32130
|
|
|
32131
32131
|
if (is$4(element, 'bpmn:Lane') || isLabel$2(element)) {
|
|
32132
32132
|
canResize = false;
|
|
@@ -33717,13 +33717,13 @@
|
|
|
33717
33717
|
}
|
|
33718
33718
|
|
|
33719
33719
|
function clearBendpoints(gfx) {
|
|
33720
|
-
forEach$
|
|
33720
|
+
forEach$f(all$1('.' + BENDPOINT_CLS, gfx), function(node) {
|
|
33721
33721
|
remove$5(node);
|
|
33722
33722
|
});
|
|
33723
33723
|
}
|
|
33724
33724
|
|
|
33725
33725
|
function clearSegmentDraggers(gfx) {
|
|
33726
|
-
forEach$
|
|
33726
|
+
forEach$f(all$1('.' + SEGMENT_DRAGGER_CLS, gfx), function(node) {
|
|
33727
33727
|
remove$5(node);
|
|
33728
33728
|
});
|
|
33729
33729
|
}
|
|
@@ -34970,7 +34970,7 @@
|
|
|
34970
34970
|
|
|
34971
34971
|
function snapTo(values, value) {
|
|
34972
34972
|
|
|
34973
|
-
if (isArray$
|
|
34973
|
+
if (isArray$h(values)) {
|
|
34974
34974
|
var i = values.length;
|
|
34975
34975
|
|
|
34976
34976
|
while (i--) if (abs$5(values[i] - value) <= TOLERANCE) {
|
|
@@ -35041,7 +35041,7 @@
|
|
|
35041
35041
|
|
|
35042
35042
|
context.snapPoints = snapPoints = { horizontal: [] , vertical: [] };
|
|
35043
35043
|
|
|
35044
|
-
forEach$
|
|
35044
|
+
forEach$f(referenceWaypoints, function(p) {
|
|
35045
35045
|
|
|
35046
35046
|
// we snap on existing bendpoints only,
|
|
35047
35047
|
// not placeholders that are inserted during add
|
|
@@ -35115,7 +35115,7 @@
|
|
|
35115
35115
|
|
|
35116
35116
|
context.snapPoints = snapPoints = { horizontal: [] , vertical: [] };
|
|
35117
35117
|
|
|
35118
|
-
forEach$
|
|
35118
|
+
forEach$f(referenceWaypoints, function(p) {
|
|
35119
35119
|
|
|
35120
35120
|
// we snap on existing bendpoints only,
|
|
35121
35121
|
// not placeholders that are inserted during add
|
|
@@ -35256,7 +35256,7 @@
|
|
|
35256
35256
|
canExecute = context.canExecute = canConnect(start, hover);
|
|
35257
35257
|
|
|
35258
35258
|
// ignore hover
|
|
35259
|
-
if (isNil$
|
|
35259
|
+
if (isNil$f(canExecute)) {
|
|
35260
35260
|
return;
|
|
35261
35261
|
}
|
|
35262
35262
|
|
|
@@ -35270,7 +35270,7 @@
|
|
|
35270
35270
|
canExecute = context.canExecute = canConnectReverse(start, hover);
|
|
35271
35271
|
|
|
35272
35272
|
// ignore hover
|
|
35273
|
-
if (isNil$
|
|
35273
|
+
if (isNil$f(canExecute)) {
|
|
35274
35274
|
return;
|
|
35275
35275
|
}
|
|
35276
35276
|
|
|
@@ -36497,7 +36497,7 @@
|
|
|
36497
36497
|
return is$4(connection, 'bpmn:Association');
|
|
36498
36498
|
});
|
|
36499
36499
|
|
|
36500
|
-
forEach$
|
|
36500
|
+
forEach$h(associations, function(association) {
|
|
36501
36501
|
modeling.moveConnection(association, { x: 0, y: 0 }, newParent);
|
|
36502
36502
|
});
|
|
36503
36503
|
}, true);
|
|
@@ -36651,7 +36651,7 @@
|
|
|
36651
36651
|
|
|
36652
36652
|
if (is$4(oldSource, 'bpmn:Gateway') &&
|
|
36653
36653
|
is$4(newSource, 'bpmn:EventBasedGateway')) {
|
|
36654
|
-
forEach$
|
|
36654
|
+
forEach$h(newSource.outgoing, function(connection) {
|
|
36655
36655
|
var target = connection.target,
|
|
36656
36656
|
attachedboundaryEvents = getBoundaryEvents(target);
|
|
36657
36657
|
|
|
@@ -40902,7 +40902,7 @@
|
|
|
40902
40902
|
var closure = context.closure,
|
|
40903
40903
|
allConnections = closure.allConnections;
|
|
40904
40904
|
|
|
40905
|
-
forEach$
|
|
40905
|
+
forEach$h(allConnections, fixConnection);
|
|
40906
40906
|
}, true);
|
|
40907
40907
|
|
|
40908
40908
|
this.preExecute('connection.reconnect', replaceReconnectedConnection);
|
|
@@ -40981,7 +40981,7 @@
|
|
|
40981
40981
|
target = context.parent,
|
|
40982
40982
|
elements = context.elements;
|
|
40983
40983
|
|
|
40984
|
-
var elementReplacements = reduce$
|
|
40984
|
+
var elementReplacements = reduce$5(elements, function(replacements, element) {
|
|
40985
40985
|
var canReplace = bpmnRules.canReplace([ element ], element.host || element.parent || target);
|
|
40986
40986
|
|
|
40987
40987
|
return canReplace ? replacements.concat(canReplace.replacements) : replacements;
|
|
@@ -40999,7 +40999,7 @@
|
|
|
40999
40999
|
newHost = context.newHost,
|
|
41000
41000
|
elements = [];
|
|
41001
41001
|
|
|
41002
|
-
forEach$
|
|
41002
|
+
forEach$h(context.closure.topLevel, function(topLevelElements) {
|
|
41003
41003
|
if (isEventSubProcess(topLevelElements)) {
|
|
41004
41004
|
elements = elements.concat(topLevelElements.children);
|
|
41005
41005
|
} else {
|
|
@@ -41053,7 +41053,7 @@
|
|
|
41053
41053
|
bpmnReplace = this._bpmnReplace,
|
|
41054
41054
|
selection = this._selection;
|
|
41055
41055
|
|
|
41056
|
-
forEach$
|
|
41056
|
+
forEach$h(newElements, function(replacement) {
|
|
41057
41057
|
var newElement = {
|
|
41058
41058
|
type: replacement.newElementType
|
|
41059
41059
|
};
|
|
@@ -41569,7 +41569,7 @@
|
|
|
41569
41569
|
// helpers //////////
|
|
41570
41570
|
|
|
41571
41571
|
function hasAnyEventDefinition(element, types) {
|
|
41572
|
-
if (!isArray$
|
|
41572
|
+
if (!isArray$k(types)) {
|
|
41573
41573
|
types = [ types ];
|
|
41574
41574
|
}
|
|
41575
41575
|
|
|
@@ -41596,7 +41596,7 @@
|
|
|
41596
41596
|
start = context.start,
|
|
41597
41597
|
minDimensions = {};
|
|
41598
41598
|
|
|
41599
|
-
forEach$
|
|
41599
|
+
forEach$h(shapes, function(shape) {
|
|
41600
41600
|
var id = shape.id;
|
|
41601
41601
|
|
|
41602
41602
|
if (is$4(shape, 'bpmn:Participant')) {
|
|
@@ -42458,11 +42458,11 @@
|
|
|
42458
42458
|
var incomingConnections = child.incoming.slice(),
|
|
42459
42459
|
outgoingConnections = child.outgoing.slice();
|
|
42460
42460
|
|
|
42461
|
-
forEach$
|
|
42461
|
+
forEach$h(incomingConnections, function(c) {
|
|
42462
42462
|
handleConnection(c, true);
|
|
42463
42463
|
});
|
|
42464
42464
|
|
|
42465
|
-
forEach$
|
|
42465
|
+
forEach$h(outgoingConnections, function(c) {
|
|
42466
42466
|
handleConnection(c, false);
|
|
42467
42467
|
});
|
|
42468
42468
|
});
|
|
@@ -43877,7 +43877,7 @@
|
|
|
43877
43877
|
replacements: []
|
|
43878
43878
|
};
|
|
43879
43879
|
|
|
43880
|
-
forEach$
|
|
43880
|
+
forEach$h(elements, function(element) {
|
|
43881
43881
|
|
|
43882
43882
|
if (!isEventSubProcess(target)) {
|
|
43883
43883
|
|
|
@@ -44249,7 +44249,7 @@
|
|
|
44249
44249
|
function orderDi() {
|
|
44250
44250
|
var rootElements = canvas.getRootElements();
|
|
44251
44251
|
|
|
44252
|
-
forEach$
|
|
44252
|
+
forEach$h(rootElements, function(root) {
|
|
44253
44253
|
var rootDi = getDi$1(root),
|
|
44254
44254
|
elements,
|
|
44255
44255
|
diElements;
|
|
@@ -44853,7 +44853,7 @@
|
|
|
44853
44853
|
* @param {any} [context={}]
|
|
44854
44854
|
*/
|
|
44855
44855
|
this.start = function(event, elements, context) {
|
|
44856
|
-
if (!isArray$
|
|
44856
|
+
if (!isArray$h(elements)) {
|
|
44857
44857
|
elements = [ elements ];
|
|
44858
44858
|
}
|
|
44859
44859
|
|
|
@@ -44874,7 +44874,7 @@
|
|
|
44874
44874
|
}, context || {});
|
|
44875
44875
|
|
|
44876
44876
|
// make sure each element has x and y
|
|
44877
|
-
forEach$
|
|
44877
|
+
forEach$f(elements, function(element) {
|
|
44878
44878
|
if (!isNumber$8(element.x)) {
|
|
44879
44879
|
element.x = 0;
|
|
44880
44880
|
}
|
|
@@ -44891,7 +44891,7 @@
|
|
|
44891
44891
|
var bbox = getBBox(visibleElements);
|
|
44892
44892
|
|
|
44893
44893
|
// center elements around cursor
|
|
44894
|
-
forEach$
|
|
44894
|
+
forEach$f(elements, function(element) {
|
|
44895
44895
|
if (isConnection$2(element)) {
|
|
44896
44896
|
element.waypoints = map$8(element.waypoints, function(waypoint) {
|
|
44897
44897
|
return {
|
|
@@ -45297,7 +45297,7 @@
|
|
|
45297
45297
|
descriptor.labelTarget = element.labelTarget.id;
|
|
45298
45298
|
}
|
|
45299
45299
|
|
|
45300
|
-
forEach$
|
|
45300
|
+
forEach$f([ 'x', 'y', 'width', 'height' ], function(property) {
|
|
45301
45301
|
if (isNumber$8(element[ property ])) {
|
|
45302
45302
|
descriptor[ property ] = element[ property ];
|
|
45303
45303
|
}
|
|
@@ -45358,7 +45358,7 @@
|
|
|
45358
45358
|
var allowed,
|
|
45359
45359
|
tree;
|
|
45360
45360
|
|
|
45361
|
-
if (!isArray$
|
|
45361
|
+
if (!isArray$h(elements)) {
|
|
45362
45362
|
elements = elements ? [ elements ] : [];
|
|
45363
45363
|
}
|
|
45364
45364
|
|
|
@@ -45369,7 +45369,7 @@
|
|
|
45369
45369
|
if (allowed === false) {
|
|
45370
45370
|
tree = {};
|
|
45371
45371
|
} else {
|
|
45372
|
-
tree = this.createTree(isArray$
|
|
45372
|
+
tree = this.createTree(isArray$h(allowed) ? allowed : elements);
|
|
45373
45373
|
}
|
|
45374
45374
|
|
|
45375
45375
|
this._eventBus.fire('copyPaste.elementsCopied', {
|
|
@@ -45450,7 +45450,7 @@
|
|
|
45450
45450
|
CopyPaste.prototype._paste = function(elements, target, position, hints) {
|
|
45451
45451
|
|
|
45452
45452
|
// make sure each element has x and y
|
|
45453
|
-
forEach$
|
|
45453
|
+
forEach$f(elements, function(element) {
|
|
45454
45454
|
if (!isNumber$8(element.x)) {
|
|
45455
45455
|
element.x = 0;
|
|
45456
45456
|
}
|
|
@@ -45463,7 +45463,7 @@
|
|
|
45463
45463
|
var bbox = getBBox(elements);
|
|
45464
45464
|
|
|
45465
45465
|
// center elements around cursor
|
|
45466
|
-
forEach$
|
|
45466
|
+
forEach$f(elements, function(element) {
|
|
45467
45467
|
if (isConnection$2(element)) {
|
|
45468
45468
|
element.waypoints = map$8(element.waypoints, function(waypoint) {
|
|
45469
45469
|
return {
|
|
@@ -45498,12 +45498,12 @@
|
|
|
45498
45498
|
|
|
45499
45499
|
var elements = [];
|
|
45500
45500
|
|
|
45501
|
-
forEach$
|
|
45501
|
+
forEach$f(tree, function(branch, depth) {
|
|
45502
45502
|
|
|
45503
45503
|
// sort by priority
|
|
45504
45504
|
branch = sortBy$2(branch, 'priority');
|
|
45505
45505
|
|
|
45506
|
-
forEach$
|
|
45506
|
+
forEach$f(branch, function(descriptor) {
|
|
45507
45507
|
|
|
45508
45508
|
// remove priority
|
|
45509
45509
|
var attrs = assign$a({}, omit(descriptor, [ 'priority' ]));
|
|
@@ -45694,15 +45694,15 @@
|
|
|
45694
45694
|
}
|
|
45695
45695
|
|
|
45696
45696
|
// always copy external labels
|
|
45697
|
-
forEach$
|
|
45697
|
+
forEach$f(element.labels, function(label) {
|
|
45698
45698
|
addElementData(label, depth);
|
|
45699
45699
|
});
|
|
45700
45700
|
|
|
45701
45701
|
function addRelatedElements(elements) {
|
|
45702
|
-
elements && elements.length && forEach$
|
|
45702
|
+
elements && elements.length && forEach$f(elements, function(element) {
|
|
45703
45703
|
|
|
45704
45704
|
// add external labels
|
|
45705
|
-
forEach$
|
|
45705
|
+
forEach$f(element.labels, function(label) {
|
|
45706
45706
|
addElementData(label, depth);
|
|
45707
45707
|
});
|
|
45708
45708
|
|
|
@@ -45710,7 +45710,7 @@
|
|
|
45710
45710
|
});
|
|
45711
45711
|
}
|
|
45712
45712
|
|
|
45713
|
-
forEach$
|
|
45713
|
+
forEach$f([ element.attachers, element.incoming, element.outgoing ], addRelatedElements);
|
|
45714
45714
|
|
|
45715
45715
|
addElementData(element, depth);
|
|
45716
45716
|
|
|
@@ -45756,7 +45756,7 @@
|
|
|
45756
45756
|
});
|
|
45757
45757
|
|
|
45758
45758
|
// (4) create tree
|
|
45759
|
-
forEach$
|
|
45759
|
+
forEach$f(elementsData, function(elementData) {
|
|
45760
45760
|
var depth = elementData.depth;
|
|
45761
45761
|
|
|
45762
45762
|
if (!self.hasRelations(elementData.element, elements)) {
|
|
@@ -45835,12 +45835,12 @@
|
|
|
45835
45835
|
*/
|
|
45836
45836
|
|
|
45837
45837
|
function copyProperties$1(source, target, properties) {
|
|
45838
|
-
if (!isArray$
|
|
45838
|
+
if (!isArray$k(properties)) {
|
|
45839
45839
|
properties = [ properties ];
|
|
45840
45840
|
}
|
|
45841
45841
|
|
|
45842
|
-
forEach$
|
|
45843
|
-
if (!isUndefined$
|
|
45842
|
+
forEach$h(properties, function(property) {
|
|
45843
|
+
if (!isUndefined$k(source[property])) {
|
|
45844
45844
|
target[property] = source[property];
|
|
45845
45845
|
}
|
|
45846
45846
|
});
|
|
@@ -45917,7 +45917,7 @@
|
|
|
45917
45917
|
getBusinessObject$2(descriptor).attachedToRef = getBusinessObject$2(cache[ descriptor.host ]);
|
|
45918
45918
|
}
|
|
45919
45919
|
|
|
45920
|
-
return omit$1(references, reduce$
|
|
45920
|
+
return omit$1(references, reduce$5(references, function(array, reference, key) {
|
|
45921
45921
|
var element = reference.element,
|
|
45922
45922
|
property = reference.property;
|
|
45923
45923
|
|
|
@@ -46119,7 +46119,7 @@
|
|
|
46119
46119
|
* @return {ModdleElement}
|
|
46120
46120
|
*/
|
|
46121
46121
|
ModdleCopy.prototype.copyElement = function(sourceElement, targetElement, propertyNames, clone = false) {
|
|
46122
|
-
if (propertyNames && !isArray$
|
|
46122
|
+
if (propertyNames && !isArray$k(propertyNames)) {
|
|
46123
46123
|
propertyNames = [ propertyNames ];
|
|
46124
46124
|
}
|
|
46125
46125
|
|
|
@@ -46136,15 +46136,15 @@
|
|
|
46136
46136
|
return targetElement;
|
|
46137
46137
|
}
|
|
46138
46138
|
|
|
46139
|
-
if (isArray$
|
|
46139
|
+
if (isArray$k(canCopyProperties)) {
|
|
46140
46140
|
propertyNames = canCopyProperties;
|
|
46141
46141
|
}
|
|
46142
46142
|
|
|
46143
46143
|
// copy properties
|
|
46144
|
-
forEach$
|
|
46144
|
+
forEach$h(propertyNames, (propertyName) => {
|
|
46145
46145
|
let sourceProperty;
|
|
46146
46146
|
|
|
46147
|
-
if (has$
|
|
46147
|
+
if (has$i(sourceElement, propertyName)) {
|
|
46148
46148
|
sourceProperty = sourceElement.get(propertyName);
|
|
46149
46149
|
}
|
|
46150
46150
|
|
|
@@ -46218,8 +46218,8 @@
|
|
|
46218
46218
|
}
|
|
46219
46219
|
|
|
46220
46220
|
// copy arrays
|
|
46221
|
-
if (isArray$
|
|
46222
|
-
return reduce$
|
|
46221
|
+
if (isArray$k(property)) {
|
|
46222
|
+
return reduce$5(property, (childProperties, childProperty) => {
|
|
46223
46223
|
|
|
46224
46224
|
// recursion
|
|
46225
46225
|
const copiedProperty = this.copyProperty(childProperty, parent, propertyName, clone);
|
|
@@ -46271,7 +46271,7 @@
|
|
|
46271
46271
|
// helpers //////////
|
|
46272
46272
|
|
|
46273
46273
|
function getPropertyNames(descriptor, keepDefaultProperties) {
|
|
46274
|
-
return reduce$
|
|
46274
|
+
return reduce$5(descriptor.properties, (properties, property) => {
|
|
46275
46275
|
|
|
46276
46276
|
if (keepDefaultProperties && property.default) {
|
|
46277
46277
|
return properties;
|
|
@@ -46436,12 +46436,12 @@
|
|
|
46436
46436
|
*/
|
|
46437
46437
|
|
|
46438
46438
|
function copyProperties(source, target, properties) {
|
|
46439
|
-
if (!isArray$
|
|
46439
|
+
if (!isArray$k(properties)) {
|
|
46440
46440
|
properties = [ properties ];
|
|
46441
46441
|
}
|
|
46442
46442
|
|
|
46443
|
-
forEach$
|
|
46444
|
-
if (!isUndefined$
|
|
46443
|
+
forEach$h(properties, function(property) {
|
|
46444
|
+
if (!isUndefined$k(source[property])) {
|
|
46445
46445
|
target[property] = source[property];
|
|
46446
46446
|
}
|
|
46447
46447
|
});
|
|
@@ -46462,16 +46462,16 @@
|
|
|
46462
46462
|
function shouldToggleCollapsed(element, targetElement) {
|
|
46463
46463
|
|
|
46464
46464
|
var oldCollapsed = (
|
|
46465
|
-
element && has$
|
|
46465
|
+
element && has$i(element, 'collapsed') ? element.collapsed : !isExpanded$1(element)
|
|
46466
46466
|
);
|
|
46467
46467
|
|
|
46468
46468
|
var targetCollapsed;
|
|
46469
46469
|
|
|
46470
|
-
if (targetElement && (has$
|
|
46470
|
+
if (targetElement && (has$i(targetElement, 'collapsed') || has$i(targetElement, 'isExpanded'))) {
|
|
46471
46471
|
|
|
46472
46472
|
// property is explicitly set so use it
|
|
46473
46473
|
targetCollapsed = (
|
|
46474
|
-
has$
|
|
46474
|
+
has$i(targetElement, 'collapsed') ? targetElement.collapsed : !targetElement.isExpanded
|
|
46475
46475
|
);
|
|
46476
46476
|
} else {
|
|
46477
46477
|
|
|
@@ -46576,7 +46576,7 @@
|
|
|
46576
46576
|
}
|
|
46577
46577
|
|
|
46578
46578
|
// so the applied properties from 'target' don't get lost
|
|
46579
|
-
if (has$
|
|
46579
|
+
if (has$i(newBusinessObject, propertyName)) {
|
|
46580
46580
|
return false;
|
|
46581
46581
|
}
|
|
46582
46582
|
|
|
@@ -46622,7 +46622,7 @@
|
|
|
46622
46622
|
}
|
|
46623
46623
|
|
|
46624
46624
|
// else if property is explicitly set, use it
|
|
46625
|
-
else if (targetElement && has$
|
|
46625
|
+
else if (targetElement && has$i(targetElement, 'isExpanded')) {
|
|
46626
46626
|
newElement.isExpanded = targetElement.isExpanded;
|
|
46627
46627
|
|
|
46628
46628
|
// assign default size of new expanded element
|
|
@@ -46857,7 +46857,7 @@
|
|
|
46857
46857
|
}, this);
|
|
46858
46858
|
|
|
46859
46859
|
// TODO: add test cases
|
|
46860
|
-
forEach$
|
|
46860
|
+
forEach$f(events, function(event) {
|
|
46861
46861
|
eventsToRegister.push(event + '.ended');
|
|
46862
46862
|
eventsToRegister.push(event + '.canceled');
|
|
46863
46863
|
});
|
|
@@ -46963,11 +46963,11 @@
|
|
|
46963
46963
|
function getWaypointsUpdatingConnections(movingShapes, resizingShapes) {
|
|
46964
46964
|
var waypointsUpdatingConnections = [];
|
|
46965
46965
|
|
|
46966
|
-
forEach$
|
|
46966
|
+
forEach$f(movingShapes.concat(resizingShapes), function(shape) {
|
|
46967
46967
|
var incoming = shape.incoming,
|
|
46968
46968
|
outgoing = shape.outgoing;
|
|
46969
46969
|
|
|
46970
|
-
forEach$
|
|
46970
|
+
forEach$f(incoming.concat(outgoing), function(connection) {
|
|
46971
46971
|
var source = connection.source,
|
|
46972
46972
|
target = connection.target;
|
|
46973
46973
|
|
|
@@ -47330,7 +47330,7 @@
|
|
|
47330
47330
|
}
|
|
47331
47331
|
}
|
|
47332
47332
|
|
|
47333
|
-
forEach$
|
|
47333
|
+
forEach$f(elements, function(element) {
|
|
47334
47334
|
if (!element.parent || isLabel$2(element)) {
|
|
47335
47335
|
return;
|
|
47336
47336
|
}
|
|
@@ -47374,11 +47374,11 @@
|
|
|
47374
47374
|
});
|
|
47375
47375
|
|
|
47376
47376
|
// move attacher if its host is moving
|
|
47377
|
-
forEach$
|
|
47377
|
+
forEach$f(movingShapes, function(shape) {
|
|
47378
47378
|
var attachers = shape.attachers;
|
|
47379
47379
|
|
|
47380
47380
|
if (attachers) {
|
|
47381
|
-
forEach$
|
|
47381
|
+
forEach$f(attachers, function(attacher) {
|
|
47382
47382
|
moveShape(attacher);
|
|
47383
47383
|
});
|
|
47384
47384
|
}
|
|
@@ -47387,7 +47387,7 @@
|
|
|
47387
47387
|
var allShapes = movingShapes.concat(resizingShapes);
|
|
47388
47388
|
|
|
47389
47389
|
// move attacher if its mid is after space tool and its host is moving or resizing
|
|
47390
|
-
forEach$
|
|
47390
|
+
forEach$f(attachers, function(attacher) {
|
|
47391
47391
|
var host = attacher.host;
|
|
47392
47392
|
|
|
47393
47393
|
if (includes$3(allShapes, host)) {
|
|
@@ -47398,7 +47398,7 @@
|
|
|
47398
47398
|
allShapes = movingShapes.concat(resizingShapes);
|
|
47399
47399
|
|
|
47400
47400
|
// move external label if its label target's (connection) source and target are moving
|
|
47401
|
-
forEach$
|
|
47401
|
+
forEach$f(connections, function(connection) {
|
|
47402
47402
|
var source = connection.source,
|
|
47403
47403
|
target = connection.target,
|
|
47404
47404
|
label = connection.label;
|
|
@@ -47499,7 +47499,7 @@
|
|
|
47499
47499
|
min,
|
|
47500
47500
|
max;
|
|
47501
47501
|
|
|
47502
|
-
forEach$
|
|
47502
|
+
forEach$f(resizingShapes, function(resizingShape) {
|
|
47503
47503
|
var attachers = resizingShape.attachers,
|
|
47504
47504
|
children = resizingShape.children;
|
|
47505
47505
|
|
|
@@ -47677,7 +47677,7 @@
|
|
|
47677
47677
|
styles, previewSupport) {
|
|
47678
47678
|
|
|
47679
47679
|
function addPreviewGfx(collection, dragGroup) {
|
|
47680
|
-
forEach$
|
|
47680
|
+
forEach$f(collection, function(element) {
|
|
47681
47681
|
previewSupport.addDragger(element, dragGroup);
|
|
47682
47682
|
|
|
47683
47683
|
canvas.addMarker(element, MARKER_DRAGGING$1);
|
|
@@ -47769,8 +47769,8 @@
|
|
|
47769
47769
|
var movingConnections = context.movingConnections = elementRegistry.filter(function(element) {
|
|
47770
47770
|
var sourceIsMoving = false;
|
|
47771
47771
|
|
|
47772
|
-
forEach$
|
|
47773
|
-
forEach$
|
|
47772
|
+
forEach$f(movingShapes, function(shape) {
|
|
47773
|
+
forEach$f(shape.outgoing, function(connection) {
|
|
47774
47774
|
if (element === connection) {
|
|
47775
47775
|
sourceIsMoving = true;
|
|
47776
47776
|
}
|
|
@@ -47779,8 +47779,8 @@
|
|
|
47779
47779
|
|
|
47780
47780
|
var targetIsMoving = false;
|
|
47781
47781
|
|
|
47782
|
-
forEach$
|
|
47783
|
-
forEach$
|
|
47782
|
+
forEach$f(movingShapes, function(shape) {
|
|
47783
|
+
forEach$f(shape.incoming, function(connection) {
|
|
47784
47784
|
if (element === connection) {
|
|
47785
47785
|
targetIsMoving = true;
|
|
47786
47786
|
}
|
|
@@ -47789,8 +47789,8 @@
|
|
|
47789
47789
|
|
|
47790
47790
|
var sourceIsResizing = false;
|
|
47791
47791
|
|
|
47792
|
-
forEach$
|
|
47793
|
-
forEach$
|
|
47792
|
+
forEach$f(resizingShapes, function(shape) {
|
|
47793
|
+
forEach$f(shape.outgoing, function(connection) {
|
|
47794
47794
|
if (element === connection) {
|
|
47795
47795
|
sourceIsResizing = true;
|
|
47796
47796
|
}
|
|
@@ -47799,8 +47799,8 @@
|
|
|
47799
47799
|
|
|
47800
47800
|
var targetIsResizing = false;
|
|
47801
47801
|
|
|
47802
|
-
forEach$
|
|
47803
|
-
forEach$
|
|
47802
|
+
forEach$f(resizingShapes, function(shape) {
|
|
47803
|
+
forEach$f(shape.incoming, function(connection) {
|
|
47804
47804
|
if (element === connection) {
|
|
47805
47805
|
targetIsResizing = true;
|
|
47806
47806
|
}
|
|
@@ -47826,7 +47826,7 @@
|
|
|
47826
47826
|
|
|
47827
47827
|
var frames = [];
|
|
47828
47828
|
|
|
47829
|
-
forEach$
|
|
47829
|
+
forEach$f(resizingShapes, function(shape) {
|
|
47830
47830
|
var frame = previewSupport.addFrame(shape, frameGroup);
|
|
47831
47831
|
|
|
47832
47832
|
var initialBounds = frame.getBBox();
|
|
@@ -47858,7 +47858,7 @@
|
|
|
47858
47858
|
translate$1(context.dragGroup, delta.x, delta.y);
|
|
47859
47859
|
|
|
47860
47860
|
// update resize previews
|
|
47861
|
-
forEach$
|
|
47861
|
+
forEach$f(context.frames, function(frame) {
|
|
47862
47862
|
var element = frame.element,
|
|
47863
47863
|
initialBounds = frame.initialBounds,
|
|
47864
47864
|
width,
|
|
@@ -47905,12 +47905,12 @@
|
|
|
47905
47905
|
frameGroup = context.frameGroup;
|
|
47906
47906
|
|
|
47907
47907
|
// moving shapes
|
|
47908
|
-
forEach$
|
|
47908
|
+
forEach$f(movingShapes, function(shape) {
|
|
47909
47909
|
canvas.removeMarker(shape, MARKER_DRAGGING$1);
|
|
47910
47910
|
});
|
|
47911
47911
|
|
|
47912
47912
|
// moving connections
|
|
47913
|
-
forEach$
|
|
47913
|
+
forEach$f(movingConnections, function(connection) {
|
|
47914
47914
|
canvas.removeMarker(connection, MARKER_DRAGGING$1);
|
|
47915
47915
|
});
|
|
47916
47916
|
|
|
@@ -47919,7 +47919,7 @@
|
|
|
47919
47919
|
remove$5(dragGroup);
|
|
47920
47920
|
}
|
|
47921
47921
|
|
|
47922
|
-
forEach$
|
|
47922
|
+
forEach$f(resizingShapes, function(shape) {
|
|
47923
47923
|
canvas.removeMarker(shape, MARKER_RESIZING$1);
|
|
47924
47924
|
});
|
|
47925
47925
|
|
|
@@ -48560,7 +48560,7 @@
|
|
|
48560
48560
|
return;
|
|
48561
48561
|
}
|
|
48562
48562
|
|
|
48563
|
-
elements = isArray$
|
|
48563
|
+
elements = isArray$h(elements) ? elements : [ elements ];
|
|
48564
48564
|
|
|
48565
48565
|
execution.dirty = execution.dirty.concat(elements);
|
|
48566
48566
|
};
|
|
@@ -48684,9 +48684,9 @@
|
|
|
48684
48684
|
|
|
48685
48685
|
var labels = [];
|
|
48686
48686
|
|
|
48687
|
-
forEach$
|
|
48687
|
+
forEach$f(shapes, function(element) {
|
|
48688
48688
|
|
|
48689
|
-
forEach$
|
|
48689
|
+
forEach$f(element.labels, function(label) {
|
|
48690
48690
|
|
|
48691
48691
|
if (!label.hidden && context.shapes.indexOf(label) === -1) {
|
|
48692
48692
|
labels.push(label);
|
|
@@ -48698,7 +48698,7 @@
|
|
|
48698
48698
|
});
|
|
48699
48699
|
});
|
|
48700
48700
|
|
|
48701
|
-
forEach$
|
|
48701
|
+
forEach$f(labels, function(label) {
|
|
48702
48702
|
movePreview.makeDraggable(context, label, true);
|
|
48703
48703
|
});
|
|
48704
48704
|
|
|
@@ -48714,8 +48714,8 @@
|
|
|
48714
48714
|
|
|
48715
48715
|
// find labels that are not part of
|
|
48716
48716
|
// move closure yet and add them
|
|
48717
|
-
forEach$
|
|
48718
|
-
forEach$
|
|
48717
|
+
forEach$f(enclosedElements, function(element) {
|
|
48718
|
+
forEach$f(element.labels, function(label) {
|
|
48719
48719
|
|
|
48720
48720
|
if (!enclosedElements[label.id]) {
|
|
48721
48721
|
enclosedLabels.push(label);
|
|
@@ -48868,10 +48868,10 @@
|
|
|
48868
48868
|
shapes = context.shapes,
|
|
48869
48869
|
attachers = getAttachers(shapes);
|
|
48870
48870
|
|
|
48871
|
-
forEach$
|
|
48871
|
+
forEach$f(attachers, function(attacher) {
|
|
48872
48872
|
movePreview.makeDraggable(context, attacher, true);
|
|
48873
48873
|
|
|
48874
|
-
forEach$
|
|
48874
|
+
forEach$f(attacher.labels, function(label) {
|
|
48875
48875
|
movePreview.makeDraggable(context, label, true);
|
|
48876
48876
|
});
|
|
48877
48877
|
});
|
|
@@ -48909,7 +48909,7 @@
|
|
|
48909
48909
|
shapes = context.shapes,
|
|
48910
48910
|
attachers = getAttachers(shapes);
|
|
48911
48911
|
|
|
48912
|
-
forEach$
|
|
48912
|
+
forEach$f(attachers, function(attacher) {
|
|
48913
48913
|
closure.add(attacher, closure.topLevel[attacher.host.id]);
|
|
48914
48914
|
});
|
|
48915
48915
|
});
|
|
@@ -48940,7 +48940,7 @@
|
|
|
48940
48940
|
});
|
|
48941
48941
|
}
|
|
48942
48942
|
|
|
48943
|
-
forEach$
|
|
48943
|
+
forEach$f(attachers, function(attacher) {
|
|
48944
48944
|
modeling.updateAttachment(attacher, newHost);
|
|
48945
48945
|
});
|
|
48946
48946
|
});
|
|
@@ -48950,12 +48950,12 @@
|
|
|
48950
48950
|
|
|
48951
48951
|
var shapes = e.context.shapes;
|
|
48952
48952
|
|
|
48953
|
-
forEach$
|
|
48953
|
+
forEach$f(shapes, function(shape) {
|
|
48954
48954
|
|
|
48955
|
-
forEach$
|
|
48955
|
+
forEach$f(shape.attachers, function(attacher) {
|
|
48956
48956
|
|
|
48957
48957
|
// remove invalid outgoing connections
|
|
48958
|
-
forEach$
|
|
48958
|
+
forEach$f(attacher.outgoing.slice(), function(connection) {
|
|
48959
48959
|
var allowed = rules.allowed('connection.reconnect', {
|
|
48960
48960
|
connection: connection,
|
|
48961
48961
|
source: connection.source,
|
|
@@ -48968,7 +48968,7 @@
|
|
|
48968
48968
|
});
|
|
48969
48969
|
|
|
48970
48970
|
// remove invalid incoming connections
|
|
48971
|
-
forEach$
|
|
48971
|
+
forEach$f(attacher.incoming.slice(), function(connection) {
|
|
48972
48972
|
var allowed = rules.allowed('connection.reconnect', {
|
|
48973
48973
|
connection: connection,
|
|
48974
48974
|
source: connection.source,
|
|
@@ -49017,7 +49017,7 @@
|
|
|
49017
49017
|
// move attachers if new host has different size
|
|
49018
49018
|
if (newShape.attachers.length) {
|
|
49019
49019
|
|
|
49020
|
-
forEach$
|
|
49020
|
+
forEach$f(newShape.attachers, function(attacher) {
|
|
49021
49021
|
var delta = getNewAttachShapeDelta(attacher, oldShape, newShape);
|
|
49022
49022
|
modeling.moveShape(attacher, delta, attacher.parent);
|
|
49023
49023
|
});
|
|
@@ -49038,12 +49038,12 @@
|
|
|
49038
49038
|
return;
|
|
49039
49039
|
}
|
|
49040
49040
|
|
|
49041
|
-
forEach$
|
|
49041
|
+
forEach$f(attachers, function(attacher) {
|
|
49042
49042
|
var delta = getNewAttachShapeDelta(attacher, oldBounds, newBounds);
|
|
49043
49043
|
|
|
49044
49044
|
modeling.moveShape(attacher, delta, attacher.parent);
|
|
49045
49045
|
|
|
49046
|
-
forEach$
|
|
49046
|
+
forEach$f(attacher.labels, function(label) {
|
|
49047
49047
|
modeling.moveShape(label, delta, label.parent);
|
|
49048
49048
|
});
|
|
49049
49049
|
});
|
|
@@ -49425,7 +49425,7 @@
|
|
|
49425
49425
|
oldRoot = context.oldRoot,
|
|
49426
49426
|
children = oldRoot.children;
|
|
49427
49427
|
|
|
49428
|
-
forEach$
|
|
49428
|
+
forEach$h(children, function(child) {
|
|
49429
49429
|
if (is$4(child, 'bpmn:BaseElement')) {
|
|
49430
49430
|
self.updateParent(child);
|
|
49431
49431
|
}
|
|
@@ -50279,7 +50279,7 @@
|
|
|
50279
50279
|
}
|
|
50280
50280
|
|
|
50281
50281
|
if (is$4(businessObject, 'bpmn:ExclusiveGateway')) {
|
|
50282
|
-
if (has$
|
|
50282
|
+
if (has$i(di, 'isMarkerVisible')) {
|
|
50283
50283
|
if (di.isMarkerVisible === undefined) {
|
|
50284
50284
|
di.isMarkerVisible = false;
|
|
50285
50285
|
}
|
|
@@ -50440,7 +50440,7 @@
|
|
|
50440
50440
|
*/
|
|
50441
50441
|
function applyAttributes(element, attrs, attributeNames) {
|
|
50442
50442
|
|
|
50443
|
-
forEach$
|
|
50443
|
+
forEach$h(attributeNames, function(property) {
|
|
50444
50444
|
attrs = applyAttribute(element, attrs, property);
|
|
50445
50445
|
});
|
|
50446
50446
|
|
|
@@ -50506,7 +50506,7 @@
|
|
|
50506
50506
|
alignment = context.alignment;
|
|
50507
50507
|
|
|
50508
50508
|
|
|
50509
|
-
forEach$
|
|
50509
|
+
forEach$f(elements, function(element) {
|
|
50510
50510
|
var delta = {
|
|
50511
50511
|
x: 0,
|
|
50512
50512
|
y: 0
|
|
@@ -50722,7 +50722,7 @@
|
|
|
50722
50722
|
var modeling = this._modeling;
|
|
50723
50723
|
|
|
50724
50724
|
// make sure each element has x and y
|
|
50725
|
-
forEach$
|
|
50725
|
+
forEach$f(elements, function(element) {
|
|
50726
50726
|
if (!isNumber$8(element.x)) {
|
|
50727
50727
|
element.x = 0;
|
|
50728
50728
|
}
|
|
@@ -50739,7 +50739,7 @@
|
|
|
50739
50739
|
var bbox = getBBox(visibleElements);
|
|
50740
50740
|
|
|
50741
50741
|
// center elements around position
|
|
50742
|
-
forEach$
|
|
50742
|
+
forEach$f(elements, function(element) {
|
|
50743
50743
|
if (isConnection$2(element)) {
|
|
50744
50744
|
element.waypoints = map$8(element.waypoints, function(waypoint) {
|
|
50745
50745
|
return {
|
|
@@ -50759,7 +50759,7 @@
|
|
|
50759
50759
|
|
|
50760
50760
|
var cache = {};
|
|
50761
50761
|
|
|
50762
|
-
forEach$
|
|
50762
|
+
forEach$f(elements, function(element) {
|
|
50763
50763
|
if (isConnection$2(element)) {
|
|
50764
50764
|
cache[ element.id ] = isNumber$8(parentIndex) ?
|
|
50765
50765
|
modeling.createConnection(
|
|
@@ -51072,7 +51072,7 @@
|
|
|
51072
51072
|
elementRegistry = this._elementRegistry,
|
|
51073
51073
|
elements = context.elements;
|
|
51074
51074
|
|
|
51075
|
-
forEach$
|
|
51075
|
+
forEach$f(elements, function(element) {
|
|
51076
51076
|
|
|
51077
51077
|
// element may have been removed with previous
|
|
51078
51078
|
// remove operations already (e.g. in case of nesting)
|
|
@@ -51244,7 +51244,7 @@
|
|
|
51244
51244
|
spaceInBetween,
|
|
51245
51245
|
groupsSize = 0; // the size of each range
|
|
51246
51246
|
|
|
51247
|
-
forEach$
|
|
51247
|
+
forEach$f(groups, function(group, idx) {
|
|
51248
51248
|
var sortedElements,
|
|
51249
51249
|
refElem,
|
|
51250
51250
|
refCenter;
|
|
@@ -51271,7 +51271,7 @@
|
|
|
51271
51271
|
// wanna update the ranges after the shapes have been centered
|
|
51272
51272
|
group.range = null;
|
|
51273
51273
|
|
|
51274
|
-
forEach$
|
|
51274
|
+
forEach$f(sortedElements, function(element) {
|
|
51275
51275
|
|
|
51276
51276
|
centerElement(refCenter, element);
|
|
51277
51277
|
|
|
@@ -51301,7 +51301,7 @@
|
|
|
51301
51301
|
return;
|
|
51302
51302
|
}
|
|
51303
51303
|
|
|
51304
|
-
forEach$
|
|
51304
|
+
forEach$f(groups, function(group, groupIdx) {
|
|
51305
51305
|
var delta = {},
|
|
51306
51306
|
prevGroup;
|
|
51307
51307
|
|
|
@@ -51313,7 +51313,7 @@
|
|
|
51313
51313
|
|
|
51314
51314
|
group.range.max = 0;
|
|
51315
51315
|
|
|
51316
|
-
forEach$
|
|
51316
|
+
forEach$f(group.elements, function(element, idx) {
|
|
51317
51317
|
delta[OFF_AXIS[axis]] = 0;
|
|
51318
51318
|
delta[axis] = (prevGroup.range.max - element[axis]) + margin;
|
|
51319
51319
|
|
|
@@ -51405,7 +51405,7 @@
|
|
|
51405
51405
|
connection.parent = newParent;
|
|
51406
51406
|
|
|
51407
51407
|
// update waypoint positions
|
|
51408
|
-
forEach$
|
|
51408
|
+
forEach$f(connection.waypoints, function(p) {
|
|
51409
51409
|
p.x += delta.x;
|
|
51410
51410
|
p.y += delta.y;
|
|
51411
51411
|
|
|
@@ -51436,7 +51436,7 @@
|
|
|
51436
51436
|
connection.parent = oldParent;
|
|
51437
51437
|
|
|
51438
51438
|
// revert to old waypoint positions
|
|
51439
|
-
forEach$
|
|
51439
|
+
forEach$f(connection.waypoints, function(p) {
|
|
51440
51440
|
p.x -= delta.x;
|
|
51441
51441
|
p.y -= delta.y;
|
|
51442
51442
|
|
|
@@ -51571,7 +51571,7 @@
|
|
|
51571
51571
|
}
|
|
51572
51572
|
|
|
51573
51573
|
// move all shapes
|
|
51574
|
-
forEach$
|
|
51574
|
+
forEach$f(allShapes, function(shape) {
|
|
51575
51575
|
|
|
51576
51576
|
// move the element according to the given delta
|
|
51577
51577
|
modeling.moveShape(shape, delta, topLevel[shape.id] && !keepParent && newParent, {
|
|
@@ -51581,7 +51581,7 @@
|
|
|
51581
51581
|
});
|
|
51582
51582
|
|
|
51583
51583
|
// move all child connections / layout external connections
|
|
51584
|
-
forEach$
|
|
51584
|
+
forEach$f(allConnections, function(c) {
|
|
51585
51585
|
|
|
51586
51586
|
var sourceMoved = !!allShapes[c.source.id],
|
|
51587
51587
|
targetMoved = !!allShapes[c.target.id];
|
|
@@ -51701,13 +51701,13 @@
|
|
|
51701
51701
|
|
|
51702
51702
|
if (hints.layout !== false) {
|
|
51703
51703
|
|
|
51704
|
-
forEach$
|
|
51704
|
+
forEach$f(shape.incoming, function(c) {
|
|
51705
51705
|
modeling.layoutConnection(c, {
|
|
51706
51706
|
connectionEnd: getMovedTargetAnchor(c, shape, delta)
|
|
51707
51707
|
});
|
|
51708
51708
|
});
|
|
51709
51709
|
|
|
51710
|
-
forEach$
|
|
51710
|
+
forEach$f(shape.outgoing, function(c) {
|
|
51711
51711
|
modeling.layoutConnection(c, {
|
|
51712
51712
|
connectionStart: getMovedSourceAnchor(c, shape, delta)
|
|
51713
51713
|
});
|
|
@@ -51776,7 +51776,7 @@
|
|
|
51776
51776
|
throw new Error('newSource or newTarget required');
|
|
51777
51777
|
}
|
|
51778
51778
|
|
|
51779
|
-
if (isArray$
|
|
51779
|
+
if (isArray$h(dockingOrPoints)) {
|
|
51780
51780
|
context.oldWaypoints = connection.waypoints;
|
|
51781
51781
|
connection.waypoints = dockingOrPoints;
|
|
51782
51782
|
}
|
|
@@ -51817,12 +51817,12 @@
|
|
|
51817
51817
|
|
|
51818
51818
|
if (newSource && (!newTarget || hints.docking === 'source')) {
|
|
51819
51819
|
layoutConnectionHints.connectionStart = layoutConnectionHints.connectionStart
|
|
51820
|
-
|| getDocking(isArray$
|
|
51820
|
+
|| getDocking(isArray$h(dockingOrPoints) ? dockingOrPoints[ 0 ] : dockingOrPoints);
|
|
51821
51821
|
}
|
|
51822
51822
|
|
|
51823
51823
|
if (newTarget && (!newSource || hints.docking === 'target')) {
|
|
51824
51824
|
layoutConnectionHints.connectionEnd = layoutConnectionHints.connectionEnd
|
|
51825
|
-
|| getDocking(isArray$
|
|
51825
|
+
|| getDocking(isArray$h(dockingOrPoints) ? dockingOrPoints[ dockingOrPoints.length - 1 ] : dockingOrPoints);
|
|
51826
51826
|
}
|
|
51827
51827
|
|
|
51828
51828
|
if (hints.newWaypoints) {
|
|
@@ -51950,7 +51950,7 @@
|
|
|
51950
51950
|
var incoming = oldShape.incoming.slice(),
|
|
51951
51951
|
outgoing = oldShape.outgoing.slice();
|
|
51952
51952
|
|
|
51953
|
-
forEach$
|
|
51953
|
+
forEach$f(incoming, function(connection) {
|
|
51954
51954
|
var source = connection.source,
|
|
51955
51955
|
allowed = canReconnect(source, newShape, connection);
|
|
51956
51956
|
|
|
@@ -51963,7 +51963,7 @@
|
|
|
51963
51963
|
}
|
|
51964
51964
|
});
|
|
51965
51965
|
|
|
51966
|
-
forEach$
|
|
51966
|
+
forEach$f(outgoing, function(connection) {
|
|
51967
51967
|
var target = connection.target,
|
|
51968
51968
|
allowed = canReconnect(newShape, target, connection);
|
|
51969
51969
|
|
|
@@ -52083,13 +52083,13 @@
|
|
|
52083
52083
|
return;
|
|
52084
52084
|
}
|
|
52085
52085
|
|
|
52086
|
-
forEach$
|
|
52086
|
+
forEach$f(shape.incoming, function(c) {
|
|
52087
52087
|
modeling.layoutConnection(c, {
|
|
52088
52088
|
connectionEnd: getResizedTargetAnchor(c, shape, oldBounds)
|
|
52089
52089
|
});
|
|
52090
52090
|
});
|
|
52091
52091
|
|
|
52092
|
-
forEach$
|
|
52092
|
+
forEach$f(shape.outgoing, function(c) {
|
|
52093
52093
|
modeling.layoutConnection(c, {
|
|
52094
52094
|
connectionStart: getResizedSourceAnchor(c, shape, oldBounds)
|
|
52095
52095
|
});
|
|
@@ -52140,7 +52140,7 @@
|
|
|
52140
52140
|
this.moveShapes(movingShapes, delta);
|
|
52141
52141
|
|
|
52142
52142
|
// (2a) save old bounds of resized shapes
|
|
52143
|
-
forEach$
|
|
52143
|
+
forEach$f(resizingShapes, function(shape) {
|
|
52144
52144
|
oldBounds[shape.id] = getBounds(shape);
|
|
52145
52145
|
});
|
|
52146
52146
|
|
|
@@ -52165,7 +52165,7 @@
|
|
|
52165
52165
|
SpaceToolHandler.prototype.moveShapes = function(shapes, delta) {
|
|
52166
52166
|
var self = this;
|
|
52167
52167
|
|
|
52168
|
-
forEach$
|
|
52168
|
+
forEach$f(shapes, function(element) {
|
|
52169
52169
|
self._modeling.moveShape(element, delta, null, {
|
|
52170
52170
|
autoResize: false,
|
|
52171
52171
|
layout: false,
|
|
@@ -52177,7 +52177,7 @@
|
|
|
52177
52177
|
SpaceToolHandler.prototype.resizeShapes = function(shapes, delta, direction) {
|
|
52178
52178
|
var self = this;
|
|
52179
52179
|
|
|
52180
|
-
forEach$
|
|
52180
|
+
forEach$f(shapes, function(shape) {
|
|
52181
52181
|
var newBounds = resizeBounds(shape, direction, delta);
|
|
52182
52182
|
|
|
52183
52183
|
self._modeling.resizeShape(shape, newBounds, null, {
|
|
@@ -52205,7 +52205,7 @@
|
|
|
52205
52205
|
var self = this,
|
|
52206
52206
|
affectedShapes = movingShapes.concat(resizingShapes);
|
|
52207
52207
|
|
|
52208
|
-
forEach$
|
|
52208
|
+
forEach$f(connections, function(connection) {
|
|
52209
52209
|
var source = connection.source,
|
|
52210
52210
|
target = connection.target,
|
|
52211
52211
|
waypoints = copyWaypoints(connection),
|
|
@@ -52379,7 +52379,7 @@
|
|
|
52379
52379
|
|
|
52380
52380
|
var result = {};
|
|
52381
52381
|
|
|
52382
|
-
forEach$
|
|
52382
|
+
forEach$f(elements, function(element) {
|
|
52383
52383
|
result[element.id] = element.hidden;
|
|
52384
52384
|
|
|
52385
52385
|
if (element.children) {
|
|
@@ -52393,7 +52393,7 @@
|
|
|
52393
52393
|
|
|
52394
52394
|
function setHiddenRecursive(elements, newHidden) {
|
|
52395
52395
|
var result = [];
|
|
52396
|
-
forEach$
|
|
52396
|
+
forEach$f(elements, function(element) {
|
|
52397
52397
|
element.hidden = newHidden;
|
|
52398
52398
|
|
|
52399
52399
|
result = result.concat(element);
|
|
@@ -52408,7 +52408,7 @@
|
|
|
52408
52408
|
|
|
52409
52409
|
function restoreVisibilityRecursive(elements, lastState) {
|
|
52410
52410
|
var result = [];
|
|
52411
|
-
forEach$
|
|
52411
|
+
forEach$f(elements, function(element) {
|
|
52412
52412
|
element.hidden = lastState[element.id];
|
|
52413
52413
|
|
|
52414
52414
|
result = result.concat(element);
|
|
@@ -52649,7 +52649,7 @@
|
|
|
52649
52649
|
* @param {CommandStack} commandStack
|
|
52650
52650
|
*/
|
|
52651
52651
|
Modeling$1.prototype.registerHandlers = function(commandStack) {
|
|
52652
|
-
forEach$
|
|
52652
|
+
forEach$f(this.getHandlers(), function(handler, id) {
|
|
52653
52653
|
commandStack.registerHandler(id, handler);
|
|
52654
52654
|
});
|
|
52655
52655
|
};
|
|
@@ -52900,7 +52900,7 @@
|
|
|
52900
52900
|
* @return {U[]}
|
|
52901
52901
|
*/
|
|
52902
52902
|
Modeling$1.prototype.createElements = function(elements, position, parent, parentIndex, hints) {
|
|
52903
|
-
if (!isArray$
|
|
52903
|
+
if (!isArray$h(elements)) {
|
|
52904
52904
|
elements = [ elements ];
|
|
52905
52905
|
}
|
|
52906
52906
|
|
|
@@ -53306,14 +53306,14 @@
|
|
|
53306
53306
|
// helpers /////////////////
|
|
53307
53307
|
|
|
53308
53308
|
function getModdleProperties(moddleElement, propertyNames) {
|
|
53309
|
-
return reduce$
|
|
53309
|
+
return reduce$5(propertyNames, function(result, key) {
|
|
53310
53310
|
result[key] = moddleElement.get(key);
|
|
53311
53311
|
return result;
|
|
53312
53312
|
}, {});
|
|
53313
53313
|
}
|
|
53314
53314
|
|
|
53315
53315
|
function setModdleProperties(moddleElement, properties) {
|
|
53316
|
-
forEach$
|
|
53316
|
+
forEach$h(properties, function(value, key) {
|
|
53317
53317
|
moddleElement.set(key, value);
|
|
53318
53318
|
});
|
|
53319
53319
|
}
|
|
@@ -53504,7 +53504,7 @@
|
|
|
53504
53504
|
businessObject = element.businessObject,
|
|
53505
53505
|
di = getDi$1(element);
|
|
53506
53506
|
|
|
53507
|
-
return reduce$
|
|
53507
|
+
return reduce$5(propertyNames, function(result, key) {
|
|
53508
53508
|
|
|
53509
53509
|
// handle DI separately
|
|
53510
53510
|
if (key !== DI) {
|
|
@@ -53520,7 +53520,7 @@
|
|
|
53520
53520
|
|
|
53521
53521
|
|
|
53522
53522
|
function getDiProperties(di, propertyNames) {
|
|
53523
|
-
return reduce$
|
|
53523
|
+
return reduce$5(propertyNames, function(result, key) {
|
|
53524
53524
|
result[key] = di && di.get(key);
|
|
53525
53525
|
|
|
53526
53526
|
return result;
|
|
@@ -53532,7 +53532,7 @@
|
|
|
53532
53532
|
var businessObject = element.businessObject,
|
|
53533
53533
|
di = getDi$1(element);
|
|
53534
53534
|
|
|
53535
|
-
forEach$
|
|
53535
|
+
forEach$h(properties, function(value, key) {
|
|
53536
53536
|
|
|
53537
53537
|
if (key !== DI) {
|
|
53538
53538
|
businessObject.set(key, value);
|
|
@@ -53548,7 +53548,7 @@
|
|
|
53548
53548
|
|
|
53549
53549
|
|
|
53550
53550
|
function setDiProperties(di, properties) {
|
|
53551
|
-
forEach$
|
|
53551
|
+
forEach$h(properties, function(value, key) {
|
|
53552
53552
|
di.set(key, value);
|
|
53553
53553
|
});
|
|
53554
53554
|
}
|
|
@@ -54376,7 +54376,7 @@
|
|
|
54376
54376
|
'border-color': this._normalizeColor(colors.stroke) });
|
|
54377
54377
|
}
|
|
54378
54378
|
|
|
54379
|
-
forEach$
|
|
54379
|
+
forEach$h(elements, function(element) {
|
|
54380
54380
|
var assignedDi = isConnection$2(element) ? pick$5(di, [ 'border-color' ]) : di,
|
|
54381
54381
|
elementDi = getDi$1(element);
|
|
54382
54382
|
|
|
@@ -55251,7 +55251,7 @@
|
|
|
55251
55251
|
*/
|
|
55252
55252
|
function repairConnection(source, target, start, end, waypoints, hints) {
|
|
55253
55253
|
|
|
55254
|
-
if (isArray$
|
|
55254
|
+
if (isArray$h(start)) {
|
|
55255
55255
|
waypoints = start;
|
|
55256
55256
|
hints = end;
|
|
55257
55257
|
|
|
@@ -56338,7 +56338,7 @@
|
|
|
56338
56338
|
created: [
|
|
56339
56339
|
shape,
|
|
56340
56340
|
connection
|
|
56341
|
-
].filter((element) => !isNil$
|
|
56341
|
+
].filter((element) => !isNil$g(element))
|
|
56342
56342
|
});
|
|
56343
56343
|
};
|
|
56344
56344
|
|
|
@@ -56375,19 +56375,19 @@
|
|
|
56375
56375
|
* @return {T[]}
|
|
56376
56376
|
*/
|
|
56377
56377
|
|
|
56378
|
-
const nativeToString$
|
|
56379
|
-
const nativeHasOwnProperty$
|
|
56378
|
+
const nativeToString$d = Object.prototype.toString;
|
|
56379
|
+
const nativeHasOwnProperty$c = Object.prototype.hasOwnProperty;
|
|
56380
56380
|
|
|
56381
|
-
function isUndefined$
|
|
56381
|
+
function isUndefined$d(obj) {
|
|
56382
56382
|
return obj === undefined;
|
|
56383
56383
|
}
|
|
56384
56384
|
|
|
56385
|
-
function isNil$
|
|
56385
|
+
function isNil$c(obj) {
|
|
56386
56386
|
return obj == null;
|
|
56387
56387
|
}
|
|
56388
56388
|
|
|
56389
|
-
function isArray$
|
|
56390
|
-
return nativeToString$
|
|
56389
|
+
function isArray$c(obj) {
|
|
56390
|
+
return nativeToString$d.call(obj) === '[object Array]';
|
|
56391
56391
|
}
|
|
56392
56392
|
|
|
56393
56393
|
/**
|
|
@@ -56396,7 +56396,7 @@
|
|
|
56396
56396
|
* @return {boolean}
|
|
56397
56397
|
*/
|
|
56398
56398
|
function isFunction$9(obj) {
|
|
56399
|
-
const tag = nativeToString$
|
|
56399
|
+
const tag = nativeToString$d.call(obj);
|
|
56400
56400
|
|
|
56401
56401
|
return (
|
|
56402
56402
|
tag === '[object Function]' ||
|
|
@@ -56415,8 +56415,8 @@
|
|
|
56415
56415
|
*
|
|
56416
56416
|
* @return {Boolean}
|
|
56417
56417
|
*/
|
|
56418
|
-
function has$
|
|
56419
|
-
return !isNil$
|
|
56418
|
+
function has$c(target, key) {
|
|
56419
|
+
return !isNil$c(target) && nativeHasOwnProperty$c.call(target, key);
|
|
56420
56420
|
}
|
|
56421
56421
|
|
|
56422
56422
|
/**
|
|
@@ -56485,7 +56485,7 @@
|
|
|
56485
56485
|
|
|
56486
56486
|
let match;
|
|
56487
56487
|
|
|
56488
|
-
forEach$
|
|
56488
|
+
forEach$b(collection, function(val, key) {
|
|
56489
56489
|
if (matchFn(val, key)) {
|
|
56490
56490
|
match = val;
|
|
56491
56491
|
|
|
@@ -56508,20 +56508,20 @@
|
|
|
56508
56508
|
*
|
|
56509
56509
|
* @return {T} return result that stopped the iteration
|
|
56510
56510
|
*/
|
|
56511
|
-
function forEach$
|
|
56511
|
+
function forEach$b(collection, iterator) {
|
|
56512
56512
|
|
|
56513
56513
|
let val,
|
|
56514
56514
|
result;
|
|
56515
56515
|
|
|
56516
|
-
if (isUndefined$
|
|
56516
|
+
if (isUndefined$d(collection)) {
|
|
56517
56517
|
return;
|
|
56518
56518
|
}
|
|
56519
56519
|
|
|
56520
|
-
const convertKey = isArray$
|
|
56520
|
+
const convertKey = isArray$c(collection) ? toNum$b : identity$b;
|
|
56521
56521
|
|
|
56522
56522
|
for (let key in collection) {
|
|
56523
56523
|
|
|
56524
|
-
if (has$
|
|
56524
|
+
if (has$c(collection, key)) {
|
|
56525
56525
|
val = collection[key];
|
|
56526
56526
|
|
|
56527
56527
|
result = iterator(val, convertKey(key));
|
|
@@ -56547,11 +56547,11 @@
|
|
|
56547
56547
|
}
|
|
56548
56548
|
|
|
56549
56549
|
|
|
56550
|
-
function identity$
|
|
56550
|
+
function identity$b(arg) {
|
|
56551
56551
|
return arg;
|
|
56552
56552
|
}
|
|
56553
56553
|
|
|
56554
|
-
function toNum$
|
|
56554
|
+
function toNum$b(arg) {
|
|
56555
56555
|
return Number(arg);
|
|
56556
56556
|
}
|
|
56557
56557
|
|
|
@@ -56596,7 +56596,7 @@
|
|
|
56596
56596
|
|
|
56597
56597
|
let obj = Object(target);
|
|
56598
56598
|
|
|
56599
|
-
forEach$
|
|
56599
|
+
forEach$b(properties, function(prop) {
|
|
56600
56600
|
|
|
56601
56601
|
if (prop in obj) {
|
|
56602
56602
|
result[prop] = target[prop];
|
|
@@ -58785,7 +58785,7 @@
|
|
|
58785
58785
|
|
|
58786
58786
|
var filteredReplaceOptions = [];
|
|
58787
58787
|
|
|
58788
|
-
if (isArray$
|
|
58788
|
+
if (isArray$k(target) || !rules.allowed('shape.replace', { element: target })) {
|
|
58789
58789
|
return {};
|
|
58790
58790
|
}
|
|
58791
58791
|
|
|
@@ -59038,7 +59038,7 @@
|
|
|
59038
59038
|
|
|
59039
59039
|
var self = this;
|
|
59040
59040
|
|
|
59041
|
-
forEach$
|
|
59041
|
+
forEach$h(replaceOptions, function(replaceOption) {
|
|
59042
59042
|
entries[ replaceOption.actionName ] = self._createEntry(replaceOption, target);
|
|
59043
59043
|
});
|
|
59044
59044
|
|
|
@@ -59064,7 +59064,7 @@
|
|
|
59064
59064
|
|
|
59065
59065
|
var self = this;
|
|
59066
59066
|
|
|
59067
|
-
forEach$
|
|
59067
|
+
forEach$h(replaceOptions, function(replaceOption) {
|
|
59068
59068
|
|
|
59069
59069
|
switch (replaceOption.actionName) {
|
|
59070
59070
|
case 'replace-with-default-flow':
|
|
@@ -59494,7 +59494,7 @@
|
|
|
59494
59494
|
elements: elements
|
|
59495
59495
|
});
|
|
59496
59496
|
|
|
59497
|
-
if (isArray$
|
|
59497
|
+
if (isArray$k(baseAllowed)) {
|
|
59498
59498
|
return every$2(elements, el => baseAllowed.includes(el));
|
|
59499
59499
|
}
|
|
59500
59500
|
|
|
@@ -59903,7 +59903,7 @@
|
|
|
59903
59903
|
var isDefinition = false;
|
|
59904
59904
|
|
|
59905
59905
|
var definitions = businessObject.eventDefinitions || [];
|
|
59906
|
-
forEach$
|
|
59906
|
+
forEach$h(definitions, function(def) {
|
|
59907
59907
|
if (def.$type === eventDefinitionType) {
|
|
59908
59908
|
isDefinition = true;
|
|
59909
59909
|
}
|
|
@@ -59969,7 +59969,7 @@
|
|
|
59969
59969
|
this.registerFilter(function(elements) {
|
|
59970
59970
|
var allowed = rules.allowed('elements.distribute', { elements: elements });
|
|
59971
59971
|
|
|
59972
|
-
if (isArray$
|
|
59972
|
+
if (isArray$h(allowed)) {
|
|
59973
59973
|
return allowed;
|
|
59974
59974
|
}
|
|
59975
59975
|
|
|
@@ -60043,7 +60043,7 @@
|
|
|
60043
60043
|
return elements;
|
|
60044
60044
|
}
|
|
60045
60045
|
|
|
60046
|
-
forEach$
|
|
60046
|
+
forEach$f(filters, function(filterFn) {
|
|
60047
60047
|
distributableElements = filterFn(distributableElements, axis, dimension);
|
|
60048
60048
|
});
|
|
60049
60049
|
|
|
@@ -60083,7 +60083,7 @@
|
|
|
60083
60083
|
// sort by 'left->right' or 'top->bottom'
|
|
60084
60084
|
var sortedElements = sortBy$2(elements, axis);
|
|
60085
60085
|
|
|
60086
|
-
forEach$
|
|
60086
|
+
forEach$f(sortedElements, function(element, idx) {
|
|
60087
60087
|
var elementRange = self._findRange(element, axis, dimension),
|
|
60088
60088
|
range;
|
|
60089
60089
|
|
|
@@ -60462,7 +60462,7 @@
|
|
|
60462
60462
|
if (allowed === false) {
|
|
60463
60463
|
return;
|
|
60464
60464
|
}
|
|
60465
|
-
else if (isArray$
|
|
60465
|
+
else if (isArray$h(allowed)) {
|
|
60466
60466
|
removableElements = allowed;
|
|
60467
60467
|
}
|
|
60468
60468
|
else {
|
|
@@ -60537,7 +60537,7 @@
|
|
|
60537
60537
|
return this._registerAction(actions, listener);
|
|
60538
60538
|
}
|
|
60539
60539
|
|
|
60540
|
-
forEach$
|
|
60540
|
+
forEach$f(actions, function(listener, action) {
|
|
60541
60541
|
self._registerAction(action, listener);
|
|
60542
60542
|
});
|
|
60543
60543
|
};
|
|
@@ -62603,7 +62603,7 @@
|
|
|
62603
62603
|
|
|
62604
62604
|
// add new selection markers ONLY if single selection
|
|
62605
62605
|
if (newSelection.length === 1) {
|
|
62606
|
-
forEach$
|
|
62606
|
+
forEach$f(newSelection, bind$5(self.addResizer, self));
|
|
62607
62607
|
}
|
|
62608
62608
|
});
|
|
62609
62609
|
|
|
@@ -62701,7 +62701,7 @@
|
|
|
62701
62701
|
return;
|
|
62702
62702
|
}
|
|
62703
62703
|
|
|
62704
|
-
forEach$
|
|
62704
|
+
forEach$f(directions, function(direction) {
|
|
62705
62705
|
self.createResizer(element, direction);
|
|
62706
62706
|
});
|
|
62707
62707
|
};
|
|
@@ -63503,7 +63503,7 @@
|
|
|
63503
63503
|
var providers = this._getProviders();
|
|
63504
63504
|
|
|
63505
63505
|
if (providers.length) {
|
|
63506
|
-
forEach$
|
|
63506
|
+
forEach$f(providers, function(provider) {
|
|
63507
63507
|
updated = updated || provider.updateOutline(element, outline);
|
|
63508
63508
|
});
|
|
63509
63509
|
}
|
|
@@ -63579,7 +63579,7 @@
|
|
|
63579
63579
|
var outline;
|
|
63580
63580
|
var providers = this._getProviders();
|
|
63581
63581
|
|
|
63582
|
-
forEach$
|
|
63582
|
+
forEach$f(providers, function(provider) {
|
|
63583
63583
|
|
|
63584
63584
|
if (!isFunction$b(provider.getOutline)) {
|
|
63585
63585
|
return;
|
|
@@ -64230,7 +64230,7 @@
|
|
|
64230
64230
|
|
|
64231
64231
|
Tooltips.prototype._updateTooltipVisibilty = function(viewbox) {
|
|
64232
64232
|
|
|
64233
|
-
forEach$
|
|
64233
|
+
forEach$f(this._tooltips, function(tooltip) {
|
|
64234
64234
|
var show = tooltip.show,
|
|
64235
64235
|
htmlContainer = tooltip.htmlContainer,
|
|
64236
64236
|
visible = true;
|
|
@@ -64723,7 +64723,7 @@
|
|
|
64723
64723
|
}
|
|
64724
64724
|
|
|
64725
64725
|
// add dragging marker
|
|
64726
|
-
forEach$
|
|
64726
|
+
forEach$f(allDraggedElements, function(e) {
|
|
64727
64727
|
canvas.addMarker(e, MARKER_DRAGGING);
|
|
64728
64728
|
});
|
|
64729
64729
|
|
|
@@ -64773,7 +64773,7 @@
|
|
|
64773
64773
|
|
|
64774
64774
|
|
|
64775
64775
|
// remove dragging marker
|
|
64776
|
-
forEach$
|
|
64776
|
+
forEach$f(allDraggedElements, function(e) {
|
|
64777
64777
|
canvas.removeMarker(e, MARKER_DRAGGING);
|
|
64778
64778
|
});
|
|
64779
64779
|
|
|
@@ -65070,7 +65070,7 @@
|
|
|
65070
65070
|
|
|
65071
65071
|
clear$1(entriesContainer);
|
|
65072
65072
|
|
|
65073
|
-
forEach$
|
|
65073
|
+
forEach$f(entries, function(entry, id) {
|
|
65074
65074
|
|
|
65075
65075
|
var grouping = entry.group || 'default';
|
|
65076
65076
|
|
|
@@ -65253,7 +65253,7 @@
|
|
|
65253
65253
|
|
|
65254
65254
|
toolsContainer = this._toolsContainer;
|
|
65255
65255
|
|
|
65256
|
-
forEach$
|
|
65256
|
+
forEach$f(toolsContainer.children, function(tool) {
|
|
65257
65257
|
var actionName = tool.getAttribute('data-action');
|
|
65258
65258
|
|
|
65259
65259
|
if (!actionName) {
|
|
@@ -65317,7 +65317,7 @@
|
|
|
65317
65317
|
|
|
65318
65318
|
var classes = classes$1(element);
|
|
65319
65319
|
|
|
65320
|
-
var actualClassNames = isArray$
|
|
65320
|
+
var actualClassNames = isArray$h(classNames) ? classNames : classNames.split(/\s+/g);
|
|
65321
65321
|
actualClassNames.forEach(function(cls) {
|
|
65322
65322
|
classes.add(cls);
|
|
65323
65323
|
});
|
|
@@ -65331,7 +65331,7 @@
|
|
|
65331
65331
|
return entriesOrUpdater(entries);
|
|
65332
65332
|
}
|
|
65333
65333
|
|
|
65334
|
-
forEach$
|
|
65334
|
+
forEach$f(entriesOrUpdater, function(entry, id) {
|
|
65335
65335
|
entries[id] = entry;
|
|
65336
65336
|
});
|
|
65337
65337
|
|
|
@@ -66273,7 +66273,7 @@
|
|
|
66273
66273
|
|
|
66274
66274
|
var replacements = context.canExecute.replacements;
|
|
66275
66275
|
|
|
66276
|
-
forEach$
|
|
66276
|
+
forEach$h(replacements, function(replacement) {
|
|
66277
66277
|
|
|
66278
66278
|
var id = replacement.oldElementId;
|
|
66279
66279
|
|
|
@@ -66320,7 +66320,7 @@
|
|
|
66320
66320
|
|
|
66321
66321
|
var visualReplacements = context.visualReplacements;
|
|
66322
66322
|
|
|
66323
|
-
forEach$
|
|
66323
|
+
forEach$h(visualReplacements, function(dragger, id) {
|
|
66324
66324
|
|
|
66325
66325
|
var originalGfx = query$6('[data-element-id="' + escapeCSS(id) + '"]', context.dragGroup);
|
|
66326
66326
|
|
|
@@ -66807,8 +66807,8 @@
|
|
|
66807
66807
|
|
|
66808
66808
|
var self = this;
|
|
66809
66809
|
|
|
66810
|
-
forEach$
|
|
66811
|
-
forEach$
|
|
66810
|
+
forEach$f(defaultSnaps || {}, function(snapPoints, snapLocation) {
|
|
66811
|
+
forEach$f(snapPoints, function(point) {
|
|
66812
66812
|
self.add(snapLocation, point);
|
|
66813
66813
|
});
|
|
66814
66814
|
});
|
|
@@ -66947,7 +66947,7 @@
|
|
|
66947
66947
|
CreateMoveSnapping.prototype.addSnapTargetPoints = function(snapPoints, shape, target) {
|
|
66948
66948
|
var snapTargets = this.getSnapTargets(shape, target);
|
|
66949
66949
|
|
|
66950
|
-
forEach$
|
|
66950
|
+
forEach$f(snapTargets, function(snapTarget) {
|
|
66951
66951
|
|
|
66952
66952
|
// handle labels
|
|
66953
66953
|
if (isLabel$2(snapTarget)) {
|
|
@@ -66970,7 +66970,7 @@
|
|
|
66970
66970
|
// ignore first and last waypoint
|
|
66971
66971
|
var waypoints = snapTarget.waypoints.slice(1, -1);
|
|
66972
66972
|
|
|
66973
|
-
forEach$
|
|
66973
|
+
forEach$f(waypoints, function(waypoint) {
|
|
66974
66974
|
snapPoints.add('mid', waypoint);
|
|
66975
66975
|
});
|
|
66976
66976
|
|
|
@@ -67072,7 +67072,7 @@
|
|
|
67072
67072
|
var isMove = !!this._elementRegistry.get(shape.id);
|
|
67073
67073
|
|
|
67074
67074
|
// snap to docking points
|
|
67075
|
-
forEach$
|
|
67075
|
+
forEach$h(shape.outgoing, function(connection) {
|
|
67076
67076
|
var docking = connection.waypoints[0];
|
|
67077
67077
|
|
|
67078
67078
|
docking = docking.original || docking;
|
|
@@ -67080,7 +67080,7 @@
|
|
|
67080
67080
|
snapContext.setSnapOrigin(connection.id + '-docking', getDockingSnapOrigin(docking, isMove, event));
|
|
67081
67081
|
});
|
|
67082
67082
|
|
|
67083
|
-
forEach$
|
|
67083
|
+
forEach$h(shape.incoming, function(connection) {
|
|
67084
67084
|
var docking = connection.waypoints[connection.waypoints.length - 1];
|
|
67085
67085
|
|
|
67086
67086
|
docking = docking.original || docking;
|
|
@@ -67109,7 +67109,7 @@
|
|
|
67109
67109
|
|
|
67110
67110
|
var snapTargets = this.getSnapTargets(shape, target);
|
|
67111
67111
|
|
|
67112
|
-
forEach$
|
|
67112
|
+
forEach$h(snapTargets, function(snapTarget) {
|
|
67113
67113
|
|
|
67114
67114
|
// handle TRBL alignment
|
|
67115
67115
|
//
|
|
@@ -67124,7 +67124,7 @@
|
|
|
67124
67124
|
var elementRegistry = this._elementRegistry;
|
|
67125
67125
|
|
|
67126
67126
|
// snap to docking points if not create mode
|
|
67127
|
-
forEach$
|
|
67127
|
+
forEach$h(shape.incoming, function(connection) {
|
|
67128
67128
|
if (elementRegistry.get(shape.id)) {
|
|
67129
67129
|
|
|
67130
67130
|
if (!includes(snapTargets, connection.source)) {
|
|
@@ -67136,7 +67136,7 @@
|
|
|
67136
67136
|
}
|
|
67137
67137
|
});
|
|
67138
67138
|
|
|
67139
|
-
forEach$
|
|
67139
|
+
forEach$h(shape.outgoing, function(connection) {
|
|
67140
67140
|
if (elementRegistry.get(shape.id)) {
|
|
67141
67141
|
|
|
67142
67142
|
if (!includes(snapTargets, connection.target)) {
|
|
@@ -67357,7 +67357,7 @@
|
|
|
67357
67357
|
ResizeSnapping.prototype.addSnapTargetPoints = function(snapPoints, shape, target, direction) {
|
|
67358
67358
|
var snapTargets = this.getSnapTargets(shape, target);
|
|
67359
67359
|
|
|
67360
|
-
forEach$
|
|
67360
|
+
forEach$f(snapTargets, function(snapTarget) {
|
|
67361
67361
|
snapPoints.add('corner', bottomRight(snapTarget));
|
|
67362
67362
|
snapPoints.add('corner', topLeft(snapTarget));
|
|
67363
67363
|
});
|
|
@@ -67466,7 +67466,7 @@
|
|
|
67466
67466
|
y: isSnapped(event, 'y')
|
|
67467
67467
|
};
|
|
67468
67468
|
|
|
67469
|
-
forEach$
|
|
67469
|
+
forEach$f(snapLocations, function(location) {
|
|
67470
67470
|
var snapOrigin = snapContext.getSnapOrigin(location);
|
|
67471
67471
|
|
|
67472
67472
|
var snapCurrent = {
|
|
@@ -67475,7 +67475,7 @@
|
|
|
67475
67475
|
};
|
|
67476
67476
|
|
|
67477
67477
|
// snap both axis if not snapped already
|
|
67478
|
-
forEach$
|
|
67478
|
+
forEach$f([ 'x', 'y' ], function(axis) {
|
|
67479
67479
|
var locationSnapping;
|
|
67480
67480
|
|
|
67481
67481
|
if (!snapping[axis]) {
|
|
@@ -67501,7 +67501,7 @@
|
|
|
67501
67501
|
this.showSnapLine('horizontal', snapping.y && snapping.y.value);
|
|
67502
67502
|
|
|
67503
67503
|
// snap event
|
|
67504
|
-
forEach$
|
|
67504
|
+
forEach$f([ 'x', 'y' ], function(axis) {
|
|
67505
67505
|
var axisSnapping = snapping[axis];
|
|
67506
67506
|
|
|
67507
67507
|
if (isObject$8(axisSnapping)) {
|
|
@@ -67570,7 +67570,7 @@
|
|
|
67570
67570
|
};
|
|
67571
67571
|
|
|
67572
67572
|
Snapping.prototype.hide = function() {
|
|
67573
|
-
forEach$
|
|
67573
|
+
forEach$f(this._snapLines, function(snapLine) {
|
|
67574
67574
|
snapLine.update();
|
|
67575
67575
|
});
|
|
67576
67576
|
};
|
|
@@ -68903,27 +68903,27 @@
|
|
|
68903
68903
|
* @return {T[]}
|
|
68904
68904
|
*/
|
|
68905
68905
|
|
|
68906
|
-
const nativeToString$
|
|
68907
|
-
const nativeHasOwnProperty$
|
|
68906
|
+
const nativeToString$c = Object.prototype.toString;
|
|
68907
|
+
const nativeHasOwnProperty$b = Object.prototype.hasOwnProperty;
|
|
68908
68908
|
|
|
68909
|
-
function isUndefined$
|
|
68909
|
+
function isUndefined$c(obj) {
|
|
68910
68910
|
return obj === undefined;
|
|
68911
68911
|
}
|
|
68912
68912
|
|
|
68913
|
-
function isNil$
|
|
68913
|
+
function isNil$b(obj) {
|
|
68914
68914
|
return obj == null;
|
|
68915
68915
|
}
|
|
68916
68916
|
|
|
68917
|
-
function isArray$
|
|
68918
|
-
return nativeToString$
|
|
68917
|
+
function isArray$b(obj) {
|
|
68918
|
+
return nativeToString$c.call(obj) === '[object Array]';
|
|
68919
68919
|
}
|
|
68920
68920
|
|
|
68921
68921
|
function isObject$6(obj) {
|
|
68922
|
-
return nativeToString$
|
|
68922
|
+
return nativeToString$c.call(obj) === '[object Object]';
|
|
68923
68923
|
}
|
|
68924
68924
|
|
|
68925
68925
|
function isNumber$7(obj) {
|
|
68926
|
-
return nativeToString$
|
|
68926
|
+
return nativeToString$c.call(obj) === '[object Number]';
|
|
68927
68927
|
}
|
|
68928
68928
|
|
|
68929
68929
|
/**
|
|
@@ -68934,8 +68934,8 @@
|
|
|
68934
68934
|
*
|
|
68935
68935
|
* @return {Boolean}
|
|
68936
68936
|
*/
|
|
68937
|
-
function has$
|
|
68938
|
-
return !isNil$
|
|
68937
|
+
function has$b(target, key) {
|
|
68938
|
+
return !isNil$b(target) && nativeHasOwnProperty$b.call(target, key);
|
|
68939
68939
|
}
|
|
68940
68940
|
|
|
68941
68941
|
|
|
@@ -68949,20 +68949,20 @@
|
|
|
68949
68949
|
*
|
|
68950
68950
|
* @return {T} return result that stopped the iteration
|
|
68951
68951
|
*/
|
|
68952
|
-
function forEach$
|
|
68952
|
+
function forEach$a(collection, iterator) {
|
|
68953
68953
|
|
|
68954
68954
|
let val,
|
|
68955
68955
|
result;
|
|
68956
68956
|
|
|
68957
|
-
if (isUndefined$
|
|
68957
|
+
if (isUndefined$c(collection)) {
|
|
68958
68958
|
return;
|
|
68959
68959
|
}
|
|
68960
68960
|
|
|
68961
|
-
const convertKey = isArray$
|
|
68961
|
+
const convertKey = isArray$b(collection) ? toNum$a : identity$a;
|
|
68962
68962
|
|
|
68963
68963
|
for (let key in collection) {
|
|
68964
68964
|
|
|
68965
|
-
if (has$
|
|
68965
|
+
if (has$b(collection, key)) {
|
|
68966
68966
|
val = collection[key];
|
|
68967
68967
|
|
|
68968
68968
|
result = iterator(val, convertKey(key));
|
|
@@ -68987,9 +68987,9 @@
|
|
|
68987
68987
|
*
|
|
68988
68988
|
* @return {V} result returned from last iterator
|
|
68989
68989
|
*/
|
|
68990
|
-
function reduce$
|
|
68990
|
+
function reduce$3(collection, iterator, result) {
|
|
68991
68991
|
|
|
68992
|
-
forEach$
|
|
68992
|
+
forEach$a(collection, function(value, idx) {
|
|
68993
68993
|
result = iterator(result, value, idx);
|
|
68994
68994
|
});
|
|
68995
68995
|
|
|
@@ -69008,17 +69008,17 @@
|
|
|
69008
69008
|
*/
|
|
69009
69009
|
function every(collection, matcher) {
|
|
69010
69010
|
|
|
69011
|
-
return !!reduce$
|
|
69011
|
+
return !!reduce$3(collection, function(matches, val, key) {
|
|
69012
69012
|
return matches && matcher(val, key);
|
|
69013
69013
|
}, true);
|
|
69014
69014
|
}
|
|
69015
69015
|
|
|
69016
69016
|
|
|
69017
|
-
function identity$
|
|
69017
|
+
function identity$a(arg) {
|
|
69018
69018
|
return arg;
|
|
69019
69019
|
}
|
|
69020
69020
|
|
|
69021
|
-
function toNum$
|
|
69021
|
+
function toNum$a(arg) {
|
|
69022
69022
|
return Number(arg);
|
|
69023
69023
|
}
|
|
69024
69024
|
|
|
@@ -70725,23 +70725,59 @@
|
|
|
70725
70725
|
* @return {T[]}
|
|
70726
70726
|
*/
|
|
70727
70727
|
|
|
70728
|
-
const nativeToString$
|
|
70729
|
-
const nativeHasOwnProperty$
|
|
70728
|
+
const nativeToString$b = Object.prototype.toString;
|
|
70729
|
+
const nativeHasOwnProperty$a = Object.prototype.hasOwnProperty;
|
|
70730
70730
|
|
|
70731
|
-
function isUndefined$
|
|
70731
|
+
function isUndefined$b(obj) {
|
|
70732
70732
|
return obj === undefined;
|
|
70733
70733
|
}
|
|
70734
70734
|
|
|
70735
|
-
function
|
|
70735
|
+
function isDefined$4(obj) {
|
|
70736
|
+
return obj !== undefined;
|
|
70737
|
+
}
|
|
70738
|
+
|
|
70739
|
+
function isNil$a(obj) {
|
|
70736
70740
|
return obj == null;
|
|
70737
70741
|
}
|
|
70738
70742
|
|
|
70739
|
-
function isArray$
|
|
70740
|
-
return nativeToString$
|
|
70743
|
+
function isArray$a(obj) {
|
|
70744
|
+
return nativeToString$b.call(obj) === '[object Array]';
|
|
70741
70745
|
}
|
|
70742
70746
|
|
|
70743
70747
|
function isNumber$6(obj) {
|
|
70744
|
-
return nativeToString$
|
|
70748
|
+
return nativeToString$b.call(obj) === '[object Number]';
|
|
70749
|
+
}
|
|
70750
|
+
|
|
70751
|
+
/**
|
|
70752
|
+
* @param {any} obj
|
|
70753
|
+
*
|
|
70754
|
+
* @return {boolean}
|
|
70755
|
+
*/
|
|
70756
|
+
function isFunction$8(obj) {
|
|
70757
|
+
const tag = nativeToString$b.call(obj);
|
|
70758
|
+
|
|
70759
|
+
return (
|
|
70760
|
+
tag === '[object Function]' ||
|
|
70761
|
+
tag === '[object AsyncFunction]' ||
|
|
70762
|
+
tag === '[object GeneratorFunction]' ||
|
|
70763
|
+
tag === '[object AsyncGeneratorFunction]' ||
|
|
70764
|
+
tag === '[object Proxy]'
|
|
70765
|
+
);
|
|
70766
|
+
}
|
|
70767
|
+
|
|
70768
|
+
|
|
70769
|
+
/**
|
|
70770
|
+
* Ensure collection is an array.
|
|
70771
|
+
*
|
|
70772
|
+
* @param {Object} obj
|
|
70773
|
+
*/
|
|
70774
|
+
function ensureArray$2(obj) {
|
|
70775
|
+
|
|
70776
|
+
if (isArray$a(obj)) {
|
|
70777
|
+
return;
|
|
70778
|
+
}
|
|
70779
|
+
|
|
70780
|
+
throw new Error('must supply array');
|
|
70745
70781
|
}
|
|
70746
70782
|
|
|
70747
70783
|
/**
|
|
@@ -70752,8 +70788,113 @@
|
|
|
70752
70788
|
*
|
|
70753
70789
|
* @return {Boolean}
|
|
70754
70790
|
*/
|
|
70755
|
-
function has$
|
|
70756
|
-
return !isNil$
|
|
70791
|
+
function has$a(target, key) {
|
|
70792
|
+
return !isNil$a(target) && nativeHasOwnProperty$a.call(target, key);
|
|
70793
|
+
}
|
|
70794
|
+
|
|
70795
|
+
/**
|
|
70796
|
+
* @template T
|
|
70797
|
+
* @typedef { (
|
|
70798
|
+
* ((e: T) => boolean) |
|
|
70799
|
+
* ((e: T, idx: number) => boolean) |
|
|
70800
|
+
* ((e: T, key: string) => boolean) |
|
|
70801
|
+
* string |
|
|
70802
|
+
* number
|
|
70803
|
+
* ) } Matcher
|
|
70804
|
+
*/
|
|
70805
|
+
|
|
70806
|
+
/**
|
|
70807
|
+
* @template T
|
|
70808
|
+
* @template U
|
|
70809
|
+
*
|
|
70810
|
+
* @typedef { (
|
|
70811
|
+
* ((e: T) => U) | string | number
|
|
70812
|
+
* ) } Extractor
|
|
70813
|
+
*/
|
|
70814
|
+
|
|
70815
|
+
|
|
70816
|
+
/**
|
|
70817
|
+
* @template T
|
|
70818
|
+
* @typedef { (val: T, key: any) => boolean } MatchFn
|
|
70819
|
+
*/
|
|
70820
|
+
|
|
70821
|
+
/**
|
|
70822
|
+
* @template T
|
|
70823
|
+
* @typedef { T[] } ArrayCollection
|
|
70824
|
+
*/
|
|
70825
|
+
|
|
70826
|
+
/**
|
|
70827
|
+
* @template T
|
|
70828
|
+
* @typedef { { [key: string]: T } } StringKeyValueCollection
|
|
70829
|
+
*/
|
|
70830
|
+
|
|
70831
|
+
/**
|
|
70832
|
+
* @template T
|
|
70833
|
+
* @typedef { { [key: number]: T } } NumberKeyValueCollection
|
|
70834
|
+
*/
|
|
70835
|
+
|
|
70836
|
+
/**
|
|
70837
|
+
* @template T
|
|
70838
|
+
* @typedef { StringKeyValueCollection<T> | NumberKeyValueCollection<T> } KeyValueCollection
|
|
70839
|
+
*/
|
|
70840
|
+
|
|
70841
|
+
/**
|
|
70842
|
+
* @template T
|
|
70843
|
+
* @typedef { KeyValueCollection<T> | ArrayCollection<T> } Collection
|
|
70844
|
+
*/
|
|
70845
|
+
|
|
70846
|
+
/**
|
|
70847
|
+
* Find element in collection.
|
|
70848
|
+
*
|
|
70849
|
+
* @template T
|
|
70850
|
+
* @param {Collection<T>} collection
|
|
70851
|
+
* @param {Matcher<T>} matcher
|
|
70852
|
+
*
|
|
70853
|
+
* @return {Object}
|
|
70854
|
+
*/
|
|
70855
|
+
function find$6(collection, matcher) {
|
|
70856
|
+
|
|
70857
|
+
const matchFn = toMatcher$7(matcher);
|
|
70858
|
+
|
|
70859
|
+
let match;
|
|
70860
|
+
|
|
70861
|
+
forEach$9(collection, function(val, key) {
|
|
70862
|
+
if (matchFn(val, key)) {
|
|
70863
|
+
match = val;
|
|
70864
|
+
|
|
70865
|
+
return false;
|
|
70866
|
+
}
|
|
70867
|
+
});
|
|
70868
|
+
|
|
70869
|
+
return match;
|
|
70870
|
+
|
|
70871
|
+
}
|
|
70872
|
+
|
|
70873
|
+
|
|
70874
|
+
/**
|
|
70875
|
+
* Find element index in collection.
|
|
70876
|
+
*
|
|
70877
|
+
* @template T
|
|
70878
|
+
* @param {Collection<T>} collection
|
|
70879
|
+
* @param {Matcher<T>} matcher
|
|
70880
|
+
*
|
|
70881
|
+
* @return {number | string | undefined}
|
|
70882
|
+
*/
|
|
70883
|
+
function findIndex$4(collection, matcher) {
|
|
70884
|
+
|
|
70885
|
+
const matchFn = toMatcher$7(matcher);
|
|
70886
|
+
|
|
70887
|
+
let idx = isArray$a(collection) ? -1 : undefined;
|
|
70888
|
+
|
|
70889
|
+
forEach$9(collection, function(val, key) {
|
|
70890
|
+
if (matchFn(val, key)) {
|
|
70891
|
+
idx = key;
|
|
70892
|
+
|
|
70893
|
+
return false;
|
|
70894
|
+
}
|
|
70895
|
+
});
|
|
70896
|
+
|
|
70897
|
+
return idx;
|
|
70757
70898
|
}
|
|
70758
70899
|
|
|
70759
70900
|
|
|
@@ -70767,20 +70908,20 @@
|
|
|
70767
70908
|
*
|
|
70768
70909
|
* @return {T} return result that stopped the iteration
|
|
70769
70910
|
*/
|
|
70770
|
-
function forEach$
|
|
70911
|
+
function forEach$9(collection, iterator) {
|
|
70771
70912
|
|
|
70772
70913
|
let val,
|
|
70773
70914
|
result;
|
|
70774
70915
|
|
|
70775
|
-
if (isUndefined$
|
|
70916
|
+
if (isUndefined$b(collection)) {
|
|
70776
70917
|
return;
|
|
70777
70918
|
}
|
|
70778
70919
|
|
|
70779
|
-
const convertKey = isArray$
|
|
70920
|
+
const convertKey = isArray$a(collection) ? toNum$9 : identity$9;
|
|
70780
70921
|
|
|
70781
70922
|
for (let key in collection) {
|
|
70782
70923
|
|
|
70783
|
-
if (has$
|
|
70924
|
+
if (has$a(collection, key)) {
|
|
70784
70925
|
val = collection[key];
|
|
70785
70926
|
|
|
70786
70927
|
result = iterator(val, convertKey(key));
|
|
@@ -70792,6 +70933,31 @@
|
|
|
70792
70933
|
}
|
|
70793
70934
|
}
|
|
70794
70935
|
|
|
70936
|
+
/**
|
|
70937
|
+
* Return collection without element.
|
|
70938
|
+
*
|
|
70939
|
+
* @template T
|
|
70940
|
+
* @param {ArrayCollection<T>} arr
|
|
70941
|
+
* @param {Matcher<T>} matcher
|
|
70942
|
+
*
|
|
70943
|
+
* @return {T[]}
|
|
70944
|
+
*/
|
|
70945
|
+
function without$2(arr, matcher) {
|
|
70946
|
+
|
|
70947
|
+
if (isUndefined$b(arr)) {
|
|
70948
|
+
return [];
|
|
70949
|
+
}
|
|
70950
|
+
|
|
70951
|
+
ensureArray$2(arr);
|
|
70952
|
+
|
|
70953
|
+
const matchFn = toMatcher$7(matcher);
|
|
70954
|
+
|
|
70955
|
+
return arr.filter(function(el, idx) {
|
|
70956
|
+
return !matchFn(el, idx);
|
|
70957
|
+
});
|
|
70958
|
+
|
|
70959
|
+
}
|
|
70960
|
+
|
|
70795
70961
|
|
|
70796
70962
|
/**
|
|
70797
70963
|
* Reduce collection, returning a single result.
|
|
@@ -70805,9 +70971,9 @@
|
|
|
70805
70971
|
*
|
|
70806
70972
|
* @return {V} result returned from last iterator
|
|
70807
70973
|
*/
|
|
70808
|
-
function reduce$
|
|
70974
|
+
function reduce$2(collection, iterator, result) {
|
|
70809
70975
|
|
|
70810
|
-
forEach$
|
|
70976
|
+
forEach$9(collection, function(value, idx) {
|
|
70811
70977
|
result = iterator(result, value, idx);
|
|
70812
70978
|
});
|
|
70813
70979
|
|
|
@@ -70815,11 +70981,105 @@
|
|
|
70815
70981
|
}
|
|
70816
70982
|
|
|
70817
70983
|
|
|
70818
|
-
|
|
70984
|
+
/**
|
|
70985
|
+
* Transform a collection into another collection
|
|
70986
|
+
* by piping each member through the given fn.
|
|
70987
|
+
*
|
|
70988
|
+
* @param {Object|Array} collection
|
|
70989
|
+
* @param {Function} fn
|
|
70990
|
+
*
|
|
70991
|
+
* @return {Array} transformed collection
|
|
70992
|
+
*/
|
|
70993
|
+
function map$4(collection, fn) {
|
|
70994
|
+
|
|
70995
|
+
let result = [];
|
|
70996
|
+
|
|
70997
|
+
forEach$9(collection, function(val, key) {
|
|
70998
|
+
result.push(fn(val, key));
|
|
70999
|
+
});
|
|
71000
|
+
|
|
71001
|
+
return result;
|
|
71002
|
+
}
|
|
71003
|
+
|
|
71004
|
+
|
|
71005
|
+
|
|
71006
|
+
/**
|
|
71007
|
+
* Sort collection by criteria.
|
|
71008
|
+
*
|
|
71009
|
+
* @template T
|
|
71010
|
+
*
|
|
71011
|
+
* @param {Collection<T>} collection
|
|
71012
|
+
* @param {Extractor<T, number | string>} extractor
|
|
71013
|
+
*
|
|
71014
|
+
* @return {Array}
|
|
71015
|
+
*/
|
|
71016
|
+
function sortBy$1(collection, extractor) {
|
|
71017
|
+
|
|
71018
|
+
extractor = toExtractor$2(extractor);
|
|
71019
|
+
|
|
71020
|
+
let sorted = [];
|
|
71021
|
+
|
|
71022
|
+
forEach$9(collection, function(value, key) {
|
|
71023
|
+
let disc = extractor(value, key);
|
|
71024
|
+
|
|
71025
|
+
let entry = {
|
|
71026
|
+
d: disc,
|
|
71027
|
+
v: value
|
|
71028
|
+
};
|
|
71029
|
+
|
|
71030
|
+
for (var idx = 0; idx < sorted.length; idx++) {
|
|
71031
|
+
let { d } = sorted[idx];
|
|
71032
|
+
|
|
71033
|
+
if (disc < d) {
|
|
71034
|
+
sorted.splice(idx, 0, entry);
|
|
71035
|
+
return;
|
|
71036
|
+
}
|
|
71037
|
+
}
|
|
71038
|
+
|
|
71039
|
+
// not inserted, append (!)
|
|
71040
|
+
sorted.push(entry);
|
|
71041
|
+
});
|
|
71042
|
+
|
|
71043
|
+
return map$4(sorted, (e) => e.v);
|
|
71044
|
+
}
|
|
71045
|
+
|
|
71046
|
+
|
|
71047
|
+
/**
|
|
71048
|
+
* @param {string | ((e: any) => any) } extractor
|
|
71049
|
+
*
|
|
71050
|
+
* @return { (e: any) => any }
|
|
71051
|
+
*/
|
|
71052
|
+
function toExtractor$2(extractor) {
|
|
71053
|
+
|
|
71054
|
+
/**
|
|
71055
|
+
* @satisfies { (e: any) => any }
|
|
71056
|
+
*/
|
|
71057
|
+
return isFunction$8(extractor) ? extractor : (e) => {
|
|
71058
|
+
|
|
71059
|
+
// @ts-ignore: just works
|
|
71060
|
+
return e[extractor];
|
|
71061
|
+
};
|
|
71062
|
+
}
|
|
71063
|
+
|
|
71064
|
+
|
|
71065
|
+
/**
|
|
71066
|
+
* @template T
|
|
71067
|
+
* @param {Matcher<T>} matcher
|
|
71068
|
+
*
|
|
71069
|
+
* @return {MatchFn<T>}
|
|
71070
|
+
*/
|
|
71071
|
+
function toMatcher$7(matcher) {
|
|
71072
|
+
return isFunction$8(matcher) ? matcher : (e) => {
|
|
71073
|
+
return e === matcher;
|
|
71074
|
+
};
|
|
71075
|
+
}
|
|
71076
|
+
|
|
71077
|
+
|
|
71078
|
+
function identity$9(arg) {
|
|
70819
71079
|
return arg;
|
|
70820
71080
|
}
|
|
70821
71081
|
|
|
70822
|
-
function toNum$
|
|
71082
|
+
function toNum$9(arg) {
|
|
70823
71083
|
return Number(arg);
|
|
70824
71084
|
}
|
|
70825
71085
|
|
|
@@ -71109,14 +71369,14 @@
|
|
|
71109
71369
|
* @return {T[]}
|
|
71110
71370
|
*/
|
|
71111
71371
|
|
|
71112
|
-
const nativeToString$
|
|
71372
|
+
const nativeToString$a = Object.prototype.toString;
|
|
71113
71373
|
|
|
71114
71374
|
function isObject$5(obj) {
|
|
71115
|
-
return nativeToString$
|
|
71375
|
+
return nativeToString$a.call(obj) === '[object Object]';
|
|
71116
71376
|
}
|
|
71117
71377
|
|
|
71118
71378
|
function isString$5(obj) {
|
|
71119
|
-
return nativeToString$
|
|
71379
|
+
return nativeToString$a.call(obj) === '[object String]';
|
|
71120
71380
|
}
|
|
71121
71381
|
|
|
71122
71382
|
/**
|
|
@@ -71267,370 +71527,6 @@
|
|
|
71267
71527
|
|
|
71268
71528
|
var t$1,r,u$1,i$2,o$2=0,f$1=[],c=[],e$2=l$3.__b,a$1=l$3.__r,v=l$3.diffed,l$2=l$3.__c,m=l$3.unmount;function d(t,u){l$3.__h&&l$3.__h(r,t,o$2||u),o$2=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o$2=1,s$1(B$2,n)}function s$1(n,u,i){var o=d(t$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$2(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return true;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=false;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=true);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=true;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p$1(u,i){var o=d(t$1++,3);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t$1++,4);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _$1(n){return o$2=5,F$2(function(){return {current:n}},[])}function A$1(n,t,r){o$2=6,y(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$2(n,r){var u=d(t$1++,7);return z$2(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$2(n,t){return o$2=8,F$2(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t$1++,9);return i.c=n,u?(null==i.__&&(i.__=true,u.sub(r)),u.props.value):n.__}function x$2(t,r){l$3.useDebugValue&&l$3.useDebugValue(r?r(t):t);}function V$2(){var n=d(t$1++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f$1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$2),t.__H.__h=[];}catch(r){t.__H.__h=[],l$3.__e(r,t.__v);}}l$3.__b=function(n){r=null,e$2&&e$2(n);},l$3.__r=function(n){a$1&&a$1(n),t$1=0;var i=(r=n.__c).__H;i&&(u$1===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$2),i.__h=[],t$1=0)),u$1=r;},l$3.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$1.push(o)&&i$2===l$3.requestAnimationFrame||((i$2=l$3.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u$1=r=null;},l$3.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$2(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$3.__e(u,t.__v);}}),l$2&&l$2(t,r);},l$3.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$3.__e(r,u.__v));};var g$2="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$2&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$2&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$2(n){var t=r;n.__c=n.__(),r=t;}function z$2(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$2(n,t){return "function"==typeof t?t(n):t}
|
|
71269
71529
|
|
|
71270
|
-
/**
|
|
71271
|
-
* Flatten array, one level deep.
|
|
71272
|
-
*
|
|
71273
|
-
* @template T
|
|
71274
|
-
*
|
|
71275
|
-
* @param {T[][] | T[] | null} [arr]
|
|
71276
|
-
*
|
|
71277
|
-
* @return {T[]}
|
|
71278
|
-
*/
|
|
71279
|
-
|
|
71280
|
-
const nativeToString$a = Object.prototype.toString;
|
|
71281
|
-
const nativeHasOwnProperty$a = Object.prototype.hasOwnProperty;
|
|
71282
|
-
|
|
71283
|
-
function isUndefined$b(obj) {
|
|
71284
|
-
return obj === undefined;
|
|
71285
|
-
}
|
|
71286
|
-
|
|
71287
|
-
function isDefined$4(obj) {
|
|
71288
|
-
return obj !== undefined;
|
|
71289
|
-
}
|
|
71290
|
-
|
|
71291
|
-
function isNil$a(obj) {
|
|
71292
|
-
return obj == null;
|
|
71293
|
-
}
|
|
71294
|
-
|
|
71295
|
-
function isArray$a(obj) {
|
|
71296
|
-
return nativeToString$a.call(obj) === '[object Array]';
|
|
71297
|
-
}
|
|
71298
|
-
|
|
71299
|
-
/**
|
|
71300
|
-
* @param {any} obj
|
|
71301
|
-
*
|
|
71302
|
-
* @return {boolean}
|
|
71303
|
-
*/
|
|
71304
|
-
function isFunction$8(obj) {
|
|
71305
|
-
const tag = nativeToString$a.call(obj);
|
|
71306
|
-
|
|
71307
|
-
return (
|
|
71308
|
-
tag === '[object Function]' ||
|
|
71309
|
-
tag === '[object AsyncFunction]' ||
|
|
71310
|
-
tag === '[object GeneratorFunction]' ||
|
|
71311
|
-
tag === '[object AsyncGeneratorFunction]' ||
|
|
71312
|
-
tag === '[object Proxy]'
|
|
71313
|
-
);
|
|
71314
|
-
}
|
|
71315
|
-
|
|
71316
|
-
|
|
71317
|
-
/**
|
|
71318
|
-
* Ensure collection is an array.
|
|
71319
|
-
*
|
|
71320
|
-
* @param {Object} obj
|
|
71321
|
-
*/
|
|
71322
|
-
function ensureArray$2(obj) {
|
|
71323
|
-
|
|
71324
|
-
if (isArray$a(obj)) {
|
|
71325
|
-
return;
|
|
71326
|
-
}
|
|
71327
|
-
|
|
71328
|
-
throw new Error('must supply array');
|
|
71329
|
-
}
|
|
71330
|
-
|
|
71331
|
-
/**
|
|
71332
|
-
* Return true, if target owns a property with the given key.
|
|
71333
|
-
*
|
|
71334
|
-
* @param {Object} target
|
|
71335
|
-
* @param {String} key
|
|
71336
|
-
*
|
|
71337
|
-
* @return {Boolean}
|
|
71338
|
-
*/
|
|
71339
|
-
function has$a(target, key) {
|
|
71340
|
-
return !isNil$a(target) && nativeHasOwnProperty$a.call(target, key);
|
|
71341
|
-
}
|
|
71342
|
-
|
|
71343
|
-
/**
|
|
71344
|
-
* @template T
|
|
71345
|
-
* @typedef { (
|
|
71346
|
-
* ((e: T) => boolean) |
|
|
71347
|
-
* ((e: T, idx: number) => boolean) |
|
|
71348
|
-
* ((e: T, key: string) => boolean) |
|
|
71349
|
-
* string |
|
|
71350
|
-
* number
|
|
71351
|
-
* ) } Matcher
|
|
71352
|
-
*/
|
|
71353
|
-
|
|
71354
|
-
/**
|
|
71355
|
-
* @template T
|
|
71356
|
-
* @template U
|
|
71357
|
-
*
|
|
71358
|
-
* @typedef { (
|
|
71359
|
-
* ((e: T) => U) | string | number
|
|
71360
|
-
* ) } Extractor
|
|
71361
|
-
*/
|
|
71362
|
-
|
|
71363
|
-
|
|
71364
|
-
/**
|
|
71365
|
-
* @template T
|
|
71366
|
-
* @typedef { (val: T, key: any) => boolean } MatchFn
|
|
71367
|
-
*/
|
|
71368
|
-
|
|
71369
|
-
/**
|
|
71370
|
-
* @template T
|
|
71371
|
-
* @typedef { T[] } ArrayCollection
|
|
71372
|
-
*/
|
|
71373
|
-
|
|
71374
|
-
/**
|
|
71375
|
-
* @template T
|
|
71376
|
-
* @typedef { { [key: string]: T } } StringKeyValueCollection
|
|
71377
|
-
*/
|
|
71378
|
-
|
|
71379
|
-
/**
|
|
71380
|
-
* @template T
|
|
71381
|
-
* @typedef { { [key: number]: T } } NumberKeyValueCollection
|
|
71382
|
-
*/
|
|
71383
|
-
|
|
71384
|
-
/**
|
|
71385
|
-
* @template T
|
|
71386
|
-
* @typedef { StringKeyValueCollection<T> | NumberKeyValueCollection<T> } KeyValueCollection
|
|
71387
|
-
*/
|
|
71388
|
-
|
|
71389
|
-
/**
|
|
71390
|
-
* @template T
|
|
71391
|
-
* @typedef { KeyValueCollection<T> | ArrayCollection<T> } Collection
|
|
71392
|
-
*/
|
|
71393
|
-
|
|
71394
|
-
/**
|
|
71395
|
-
* Find element in collection.
|
|
71396
|
-
*
|
|
71397
|
-
* @template T
|
|
71398
|
-
* @param {Collection<T>} collection
|
|
71399
|
-
* @param {Matcher<T>} matcher
|
|
71400
|
-
*
|
|
71401
|
-
* @return {Object}
|
|
71402
|
-
*/
|
|
71403
|
-
function find$6(collection, matcher) {
|
|
71404
|
-
|
|
71405
|
-
const matchFn = toMatcher$7(matcher);
|
|
71406
|
-
|
|
71407
|
-
let match;
|
|
71408
|
-
|
|
71409
|
-
forEach$9(collection, function(val, key) {
|
|
71410
|
-
if (matchFn(val, key)) {
|
|
71411
|
-
match = val;
|
|
71412
|
-
|
|
71413
|
-
return false;
|
|
71414
|
-
}
|
|
71415
|
-
});
|
|
71416
|
-
|
|
71417
|
-
return match;
|
|
71418
|
-
|
|
71419
|
-
}
|
|
71420
|
-
|
|
71421
|
-
|
|
71422
|
-
/**
|
|
71423
|
-
* Find element index in collection.
|
|
71424
|
-
*
|
|
71425
|
-
* @template T
|
|
71426
|
-
* @param {Collection<T>} collection
|
|
71427
|
-
* @param {Matcher<T>} matcher
|
|
71428
|
-
*
|
|
71429
|
-
* @return {number | string | undefined}
|
|
71430
|
-
*/
|
|
71431
|
-
function findIndex$4(collection, matcher) {
|
|
71432
|
-
|
|
71433
|
-
const matchFn = toMatcher$7(matcher);
|
|
71434
|
-
|
|
71435
|
-
let idx = isArray$a(collection) ? -1 : undefined;
|
|
71436
|
-
|
|
71437
|
-
forEach$9(collection, function(val, key) {
|
|
71438
|
-
if (matchFn(val, key)) {
|
|
71439
|
-
idx = key;
|
|
71440
|
-
|
|
71441
|
-
return false;
|
|
71442
|
-
}
|
|
71443
|
-
});
|
|
71444
|
-
|
|
71445
|
-
return idx;
|
|
71446
|
-
}
|
|
71447
|
-
|
|
71448
|
-
|
|
71449
|
-
/**
|
|
71450
|
-
* Iterate over collection; returning something
|
|
71451
|
-
* (non-undefined) will stop iteration.
|
|
71452
|
-
*
|
|
71453
|
-
* @template T
|
|
71454
|
-
* @param {Collection<T>} collection
|
|
71455
|
-
* @param { ((item: T, idx: number) => (boolean|void)) | ((item: T, key: string) => (boolean|void)) } iterator
|
|
71456
|
-
*
|
|
71457
|
-
* @return {T} return result that stopped the iteration
|
|
71458
|
-
*/
|
|
71459
|
-
function forEach$9(collection, iterator) {
|
|
71460
|
-
|
|
71461
|
-
let val,
|
|
71462
|
-
result;
|
|
71463
|
-
|
|
71464
|
-
if (isUndefined$b(collection)) {
|
|
71465
|
-
return;
|
|
71466
|
-
}
|
|
71467
|
-
|
|
71468
|
-
const convertKey = isArray$a(collection) ? toNum$9 : identity$9;
|
|
71469
|
-
|
|
71470
|
-
for (let key in collection) {
|
|
71471
|
-
|
|
71472
|
-
if (has$a(collection, key)) {
|
|
71473
|
-
val = collection[key];
|
|
71474
|
-
|
|
71475
|
-
result = iterator(val, convertKey(key));
|
|
71476
|
-
|
|
71477
|
-
if (result === false) {
|
|
71478
|
-
return val;
|
|
71479
|
-
}
|
|
71480
|
-
}
|
|
71481
|
-
}
|
|
71482
|
-
}
|
|
71483
|
-
|
|
71484
|
-
/**
|
|
71485
|
-
* Return collection without element.
|
|
71486
|
-
*
|
|
71487
|
-
* @template T
|
|
71488
|
-
* @param {ArrayCollection<T>} arr
|
|
71489
|
-
* @param {Matcher<T>} matcher
|
|
71490
|
-
*
|
|
71491
|
-
* @return {T[]}
|
|
71492
|
-
*/
|
|
71493
|
-
function without$2(arr, matcher) {
|
|
71494
|
-
|
|
71495
|
-
if (isUndefined$b(arr)) {
|
|
71496
|
-
return [];
|
|
71497
|
-
}
|
|
71498
|
-
|
|
71499
|
-
ensureArray$2(arr);
|
|
71500
|
-
|
|
71501
|
-
const matchFn = toMatcher$7(matcher);
|
|
71502
|
-
|
|
71503
|
-
return arr.filter(function(el, idx) {
|
|
71504
|
-
return !matchFn(el, idx);
|
|
71505
|
-
});
|
|
71506
|
-
|
|
71507
|
-
}
|
|
71508
|
-
|
|
71509
|
-
|
|
71510
|
-
/**
|
|
71511
|
-
* Reduce collection, returning a single result.
|
|
71512
|
-
*
|
|
71513
|
-
* @template T
|
|
71514
|
-
* @template V
|
|
71515
|
-
*
|
|
71516
|
-
* @param {Collection<T>} collection
|
|
71517
|
-
* @param {(result: V, entry: T, index: any) => V} iterator
|
|
71518
|
-
* @param {V} result
|
|
71519
|
-
*
|
|
71520
|
-
* @return {V} result returned from last iterator
|
|
71521
|
-
*/
|
|
71522
|
-
function reduce$2(collection, iterator, result) {
|
|
71523
|
-
|
|
71524
|
-
forEach$9(collection, function(value, idx) {
|
|
71525
|
-
result = iterator(result, value, idx);
|
|
71526
|
-
});
|
|
71527
|
-
|
|
71528
|
-
return result;
|
|
71529
|
-
}
|
|
71530
|
-
|
|
71531
|
-
|
|
71532
|
-
/**
|
|
71533
|
-
* Transform a collection into another collection
|
|
71534
|
-
* by piping each member through the given fn.
|
|
71535
|
-
*
|
|
71536
|
-
* @param {Object|Array} collection
|
|
71537
|
-
* @param {Function} fn
|
|
71538
|
-
*
|
|
71539
|
-
* @return {Array} transformed collection
|
|
71540
|
-
*/
|
|
71541
|
-
function map$4(collection, fn) {
|
|
71542
|
-
|
|
71543
|
-
let result = [];
|
|
71544
|
-
|
|
71545
|
-
forEach$9(collection, function(val, key) {
|
|
71546
|
-
result.push(fn(val, key));
|
|
71547
|
-
});
|
|
71548
|
-
|
|
71549
|
-
return result;
|
|
71550
|
-
}
|
|
71551
|
-
|
|
71552
|
-
|
|
71553
|
-
|
|
71554
|
-
/**
|
|
71555
|
-
* Sort collection by criteria.
|
|
71556
|
-
*
|
|
71557
|
-
* @template T
|
|
71558
|
-
*
|
|
71559
|
-
* @param {Collection<T>} collection
|
|
71560
|
-
* @param {Extractor<T, number | string>} extractor
|
|
71561
|
-
*
|
|
71562
|
-
* @return {Array}
|
|
71563
|
-
*/
|
|
71564
|
-
function sortBy$1(collection, extractor) {
|
|
71565
|
-
|
|
71566
|
-
extractor = toExtractor$2(extractor);
|
|
71567
|
-
|
|
71568
|
-
let sorted = [];
|
|
71569
|
-
|
|
71570
|
-
forEach$9(collection, function(value, key) {
|
|
71571
|
-
let disc = extractor(value, key);
|
|
71572
|
-
|
|
71573
|
-
let entry = {
|
|
71574
|
-
d: disc,
|
|
71575
|
-
v: value
|
|
71576
|
-
};
|
|
71577
|
-
|
|
71578
|
-
for (var idx = 0; idx < sorted.length; idx++) {
|
|
71579
|
-
let { d } = sorted[idx];
|
|
71580
|
-
|
|
71581
|
-
if (disc < d) {
|
|
71582
|
-
sorted.splice(idx, 0, entry);
|
|
71583
|
-
return;
|
|
71584
|
-
}
|
|
71585
|
-
}
|
|
71586
|
-
|
|
71587
|
-
// not inserted, append (!)
|
|
71588
|
-
sorted.push(entry);
|
|
71589
|
-
});
|
|
71590
|
-
|
|
71591
|
-
return map$4(sorted, (e) => e.v);
|
|
71592
|
-
}
|
|
71593
|
-
|
|
71594
|
-
|
|
71595
|
-
/**
|
|
71596
|
-
* @param {string | ((e: any) => any) } extractor
|
|
71597
|
-
*
|
|
71598
|
-
* @return { (e: any) => any }
|
|
71599
|
-
*/
|
|
71600
|
-
function toExtractor$2(extractor) {
|
|
71601
|
-
|
|
71602
|
-
/**
|
|
71603
|
-
* @satisfies { (e: any) => any }
|
|
71604
|
-
*/
|
|
71605
|
-
return isFunction$8(extractor) ? extractor : (e) => {
|
|
71606
|
-
|
|
71607
|
-
// @ts-ignore: just works
|
|
71608
|
-
return e[extractor];
|
|
71609
|
-
};
|
|
71610
|
-
}
|
|
71611
|
-
|
|
71612
|
-
|
|
71613
|
-
/**
|
|
71614
|
-
* @template T
|
|
71615
|
-
* @param {Matcher<T>} matcher
|
|
71616
|
-
*
|
|
71617
|
-
* @return {MatchFn<T>}
|
|
71618
|
-
*/
|
|
71619
|
-
function toMatcher$7(matcher) {
|
|
71620
|
-
return isFunction$8(matcher) ? matcher : (e) => {
|
|
71621
|
-
return e === matcher;
|
|
71622
|
-
};
|
|
71623
|
-
}
|
|
71624
|
-
|
|
71625
|
-
|
|
71626
|
-
function identity$9(arg) {
|
|
71627
|
-
return arg;
|
|
71628
|
-
}
|
|
71629
|
-
|
|
71630
|
-
function toNum$9(arg) {
|
|
71631
|
-
return Number(arg);
|
|
71632
|
-
}
|
|
71633
|
-
|
|
71634
71530
|
/**
|
|
71635
71531
|
* Flatten array, one level deep.
|
|
71636
71532
|
*
|
|
@@ -127950,10 +127846,11 @@
|
|
|
127950
127846
|
const setValue = value => {
|
|
127951
127847
|
setFormId(injector, element, isUndefined$b(value) ? '' : value);
|
|
127952
127848
|
};
|
|
127953
|
-
return
|
|
127849
|
+
return BpmnFeelEntry({
|
|
127954
127850
|
element,
|
|
127955
127851
|
id: 'formId',
|
|
127956
127852
|
label: translate('Form ID'),
|
|
127853
|
+
feel: 'optional',
|
|
127957
127854
|
getValue,
|
|
127958
127855
|
setValue,
|
|
127959
127856
|
debounce
|
|
@@ -132155,42 +132052,48 @@
|
|
|
132155
132052
|
const translate = useService$1('translate');
|
|
132156
132053
|
if (is$4(element, 'bpmn:ReceiveTask')) {
|
|
132157
132054
|
return u("div", {
|
|
132158
|
-
children: [translate('
|
|
132159
|
-
|
|
132160
|
-
}), translate(') and the '), u("code", {
|
|
132161
|
-
children: "correlationKey"
|
|
132162
|
-
}), translate(' expression (e.g. '), u("code", {
|
|
132163
|
-
children: "= orderId"
|
|
132164
|
-
}), translate(')'), translate(' to subscribe to. '), translate('Learn more how to '), u("a", {
|
|
132165
|
-
href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks",
|
|
132055
|
+
children: [translate('Configure the message that the task waits for. '), u("a", {
|
|
132056
|
+
href: "https://docs.camunda.io/docs/components/modeler/bpmn/receive-tasks/#messages",
|
|
132166
132057
|
target: "_blank",
|
|
132167
132058
|
rel: "noopener noreferrer",
|
|
132168
|
-
title: translate('
|
|
132169
|
-
children: translate('
|
|
132170
|
-
})
|
|
132171
|
-
|
|
132059
|
+
title: translate('Receive task message documentation'),
|
|
132060
|
+
children: translate('Learn more.')
|
|
132061
|
+
})]
|
|
132062
|
+
});
|
|
132063
|
+
}
|
|
132064
|
+
if (is$4(element, 'bpmn:StartEvent')) {
|
|
132065
|
+
return u("div", {
|
|
132066
|
+
children: [translate('Configure the message that will start this process instance. '), u("a", {
|
|
132067
|
+
href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-start-events",
|
|
132172
132068
|
target: "_blank",
|
|
132173
132069
|
rel: "noopener noreferrer",
|
|
132174
|
-
title: translate('
|
|
132175
|
-
children: translate('
|
|
132070
|
+
title: translate('Message start event documentation'),
|
|
132071
|
+
children: translate('Learn more.')
|
|
132072
|
+
})]
|
|
132073
|
+
});
|
|
132074
|
+
}
|
|
132075
|
+
if (is$4(element, 'bpmn:IntermediateCatchEvent')) {
|
|
132076
|
+
return u("div", {
|
|
132077
|
+
children: [translate('Configure the message that this event waits for. '), u("a", {
|
|
132078
|
+
href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#intermediate-message-catch-events",
|
|
132079
|
+
target: "_blank",
|
|
132080
|
+
rel: "noopener noreferrer",
|
|
132081
|
+
title: translate('Message catch event documentation'),
|
|
132082
|
+
children: translate('Learn more.')
|
|
132083
|
+
})]
|
|
132084
|
+
});
|
|
132085
|
+
}
|
|
132086
|
+
if (is$4(element, 'bpmn:BoundaryEvent')) {
|
|
132087
|
+
return u("div", {
|
|
132088
|
+
children: [translate('Configure the message that will trigger this boundary event. '), u("a", {
|
|
132089
|
+
href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-boundary-events",
|
|
132090
|
+
target: "_blank",
|
|
132091
|
+
rel: "noopener noreferrer",
|
|
132092
|
+
title: translate('Message boundary event documentation'),
|
|
132093
|
+
children: translate('Learn more.')
|
|
132176
132094
|
})]
|
|
132177
132095
|
});
|
|
132178
132096
|
}
|
|
132179
|
-
return u("div", {
|
|
132180
|
-
children: [translate('Define the name of the message (e.g. '), u("code", {
|
|
132181
|
-
children: "Money collected"
|
|
132182
|
-
}), translate(') and the '), u("code", {
|
|
132183
|
-
children: "correlationKey"
|
|
132184
|
-
}), translate(' expression (e.g. '), u("code", {
|
|
132185
|
-
children: "= orderId"
|
|
132186
|
-
}), translate(')'), translate(' to subscribe to. '), u("a", {
|
|
132187
|
-
href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#messages",
|
|
132188
|
-
target: "_blank",
|
|
132189
|
-
rel: "noopener noreferrer",
|
|
132190
|
-
title: translate('Message event documentation'),
|
|
132191
|
-
children: translate('Learn more.')
|
|
132192
|
-
})]
|
|
132193
|
-
});
|
|
132194
132097
|
},
|
|
132195
132098
|
'group-calledElement': element => {
|
|
132196
132099
|
const translate = useService$1('translate');
|
|
@@ -177360,7 +177263,7 @@
|
|
|
177360
177263
|
}
|
|
177361
177264
|
];
|
|
177362
177265
|
|
|
177363
|
-
const ANNOTATIONS_KEYED = reduce$
|
|
177266
|
+
const ANNOTATIONS_KEYED = reduce$2(ANNOTATIONS, (annotationsKeyed, annotation) => {
|
|
177364
177267
|
|
|
177365
177268
|
const { entries, search } = annotation;
|
|
177366
177269
|
|
|
@@ -178031,7 +177934,7 @@
|
|
|
178031
177934
|
getPopupMenuEntries(element) {
|
|
178032
177935
|
const rules = this._rules;
|
|
178033
177936
|
|
|
178034
|
-
if (isArray$
|
|
177937
|
+
if (isArray$a(element) || !rules.allowed('shape.replace', { element })) {
|
|
178035
177938
|
return {};
|
|
178036
177939
|
}
|
|
178037
177940
|
|
|
@@ -178983,7 +178886,7 @@
|
|
|
178983
178886
|
function CommandInitializer(eventBus, commandStack) {
|
|
178984
178887
|
|
|
178985
178888
|
eventBus.on('diagram.init', function() {
|
|
178986
|
-
forEach$
|
|
178889
|
+
forEach$9(HANDLERS, function(handler, id) {
|
|
178987
178890
|
commandStack.registerHandler(id, handler);
|
|
178988
178891
|
});
|
|
178989
178892
|
});
|