bpmn-js 11.2.0 → 11.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bpmn-modeler.development.js +119 -90
- package/dist/bpmn-modeler.production.min.js +14 -14
- package/dist/bpmn-navigated-viewer.development.js +24 -8
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +24 -8
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/BaseModeler.js +6 -2
- package/lib/BaseViewer.js +16 -4
- package/lib/Modeler.js +6 -2
- package/lib/Viewer.js +6 -2
- package/lib/features/create-append-anything/AppendContextPadProvider.js +1 -1
- package/lib/features/create-append-anything/AppendMenuProvider.js +3 -1
- package/lib/features/create-append-anything/CreateMenuProvider.js +3 -1
- package/lib/features/create-append-anything/CreatePaletteProvider.js +5 -10
- package/lib/features/create-append-anything/util/OptionsUtil.js +26 -21
- package/lib/features/replace/ReplaceOptions.js +16 -16
- package/lib/icons/dist/append.svg +1 -0
- package/lib/icons/dist/connect-context-pad.svg +1 -0
- package/lib/icons/dist/connect-palette.svg +1 -0
- package/lib/{features/palette → icons}/dist/create.svg +0 -0
- package/package.json +3 -3
- package/lib/features/align-elements/dist/align-bottom-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-horizontal-center-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-left-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-right-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-top-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-vertical-center-tool.svg +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v11.
|
|
2
|
+
* bpmn-js - bpmn-modeler v11.3.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date: 2023-02-
|
|
11
|
+
* Date: 2023-02-08
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -16293,6 +16293,11 @@
|
|
|
16293
16293
|
* @see http://bpmn.io/license for more information.
|
|
16294
16294
|
*/
|
|
16295
16295
|
|
|
16296
|
+
|
|
16297
|
+
/**
|
|
16298
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
16299
|
+
*/
|
|
16300
|
+
|
|
16296
16301
|
/**
|
|
16297
16302
|
* A base viewer for BPMN 2.0 diagrams.
|
|
16298
16303
|
*
|
|
@@ -16304,8 +16309,8 @@
|
|
|
16304
16309
|
* @param {string|number} [options.width] the width of the viewer
|
|
16305
16310
|
* @param {string|number} [options.height] the height of the viewer
|
|
16306
16311
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
16307
|
-
* @param {
|
|
16308
|
-
* @param {
|
|
16312
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
16313
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
16309
16314
|
*/
|
|
16310
16315
|
function BaseViewer(options) {
|
|
16311
16316
|
|
|
@@ -16734,7 +16739,14 @@
|
|
|
16734
16739
|
this._definitions = definitions;
|
|
16735
16740
|
};
|
|
16736
16741
|
|
|
16737
|
-
|
|
16742
|
+
/**
|
|
16743
|
+
* Return modules to instantiate with.
|
|
16744
|
+
*
|
|
16745
|
+
* @param {any} options the instance got created with
|
|
16746
|
+
*
|
|
16747
|
+
* @return {Module[]}
|
|
16748
|
+
*/
|
|
16749
|
+
BaseViewer.prototype.getModules = function(options) {
|
|
16738
16750
|
return this._modules;
|
|
16739
16751
|
};
|
|
16740
16752
|
|
|
@@ -16840,7 +16852,7 @@
|
|
|
16840
16852
|
|
|
16841
16853
|
BaseViewer.prototype._init = function(container, moddle, options) {
|
|
16842
16854
|
|
|
16843
|
-
const baseModules = options.modules || this.getModules(),
|
|
16855
|
+
const baseModules = options.modules || this.getModules(options),
|
|
16844
16856
|
additionalModules = options.additionalModules || [],
|
|
16845
16857
|
staticModules = [
|
|
16846
16858
|
{
|
|
@@ -16995,6 +17007,10 @@
|
|
|
16995
17007
|
|
|
16996
17008
|
/* </project-logo> */
|
|
16997
17009
|
|
|
17010
|
+
/**
|
|
17011
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
17012
|
+
*/
|
|
17013
|
+
|
|
16998
17014
|
/**
|
|
16999
17015
|
* A base modeler for BPMN 2.0 diagrams.
|
|
17000
17016
|
*
|
|
@@ -17005,8 +17021,8 @@
|
|
|
17005
17021
|
* @param {string|number} [options.width] the width of the viewer
|
|
17006
17022
|
* @param {string|number} [options.height] the height of the viewer
|
|
17007
17023
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
17008
|
-
* @param {
|
|
17009
|
-
* @param {
|
|
17024
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
17025
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
17010
17026
|
*/
|
|
17011
17027
|
function BaseModeler(options) {
|
|
17012
17028
|
BaseViewer.call(this, options);
|
|
@@ -23425,6 +23441,10 @@
|
|
|
23425
23441
|
subprocessCompatibility: [ 'type', SubprocessCompatibility ]
|
|
23426
23442
|
};
|
|
23427
23443
|
|
|
23444
|
+
/**
|
|
23445
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
23446
|
+
*/
|
|
23447
|
+
|
|
23428
23448
|
/**
|
|
23429
23449
|
* A viewer for BPMN 2.0 diagrams.
|
|
23430
23450
|
*
|
|
@@ -23469,8 +23489,8 @@
|
|
|
23469
23489
|
* @param {string|number} [options.width] the width of the viewer
|
|
23470
23490
|
* @param {string|number} [options.height] the height of the viewer
|
|
23471
23491
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
23472
|
-
* @param {
|
|
23473
|
-
* @param {
|
|
23492
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
23493
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
23474
23494
|
*/
|
|
23475
23495
|
function Viewer(options) {
|
|
23476
23496
|
BaseViewer.call(this, options);
|
|
@@ -28426,36 +28446,15 @@
|
|
|
28426
28446
|
|
|
28427
28447
|
const [ value, setValue ] = p('');
|
|
28428
28448
|
|
|
28429
|
-
const
|
|
28430
|
-
const [ selectedEntry, setSelectedEntry ] = p(entries[0]);
|
|
28431
|
-
|
|
28432
|
-
h(() => {
|
|
28433
|
-
onOpened();
|
|
28434
|
-
|
|
28435
|
-
return () => {
|
|
28436
|
-
onClosed();
|
|
28437
|
-
};
|
|
28438
|
-
}, []);
|
|
28449
|
+
const filterEntries = T((originalEntries, value) => {
|
|
28439
28450
|
|
|
28440
|
-
const updateEntries = T((newEntries) => {
|
|
28441
|
-
|
|
28442
|
-
// select first entry if non is selected
|
|
28443
|
-
if (!selectedEntry || !newEntries.includes(selectedEntry)) {
|
|
28444
|
-
setSelectedEntry(newEntries[0]);
|
|
28445
|
-
}
|
|
28446
|
-
|
|
28447
|
-
setEntries(newEntries);
|
|
28448
|
-
}, [ selectedEntry, setEntries, setSelectedEntry ]);
|
|
28449
|
-
|
|
28450
|
-
// filter entries on value change
|
|
28451
|
-
h(() => {
|
|
28452
28451
|
if (!searchable) {
|
|
28453
|
-
return;
|
|
28452
|
+
return originalEntries;
|
|
28454
28453
|
}
|
|
28455
28454
|
|
|
28456
28455
|
const filter = entry => {
|
|
28457
28456
|
if (!value) {
|
|
28458
|
-
return
|
|
28457
|
+
return (entry.rank || 0) >= 0;
|
|
28459
28458
|
}
|
|
28460
28459
|
|
|
28461
28460
|
const search = [
|
|
@@ -28472,10 +28471,26 @@
|
|
|
28472
28471
|
.every(term => search.includes(term));
|
|
28473
28472
|
};
|
|
28474
28473
|
|
|
28475
|
-
|
|
28474
|
+
return originalEntries.filter(filter);
|
|
28475
|
+
}, [ searchable ]);
|
|
28476
|
+
|
|
28477
|
+
const [ entries, setEntries ] = p(filterEntries(originalEntries, value));
|
|
28478
|
+
const [ selectedEntry, setSelectedEntry ] = p(entries[0]);
|
|
28479
|
+
|
|
28480
|
+
const updateEntries = T((newEntries) => {
|
|
28476
28481
|
|
|
28477
|
-
|
|
28478
|
-
|
|
28482
|
+
// select first entry if non is selected
|
|
28483
|
+
if (!selectedEntry || !newEntries.includes(selectedEntry)) {
|
|
28484
|
+
setSelectedEntry(newEntries[0]);
|
|
28485
|
+
}
|
|
28486
|
+
|
|
28487
|
+
setEntries(newEntries);
|
|
28488
|
+
}, [ selectedEntry, setEntries, setSelectedEntry ]);
|
|
28489
|
+
|
|
28490
|
+
// filter entries on value change
|
|
28491
|
+
h(() => {
|
|
28492
|
+
updateEntries(filterEntries(originalEntries, value));
|
|
28493
|
+
}, [ value, originalEntries ]);
|
|
28479
28494
|
|
|
28480
28495
|
// register global <Escape> handler
|
|
28481
28496
|
h(() => {
|
|
@@ -28521,10 +28536,6 @@
|
|
|
28521
28536
|
return onSelect(event, selectedEntry);
|
|
28522
28537
|
}
|
|
28523
28538
|
|
|
28524
|
-
if (event.key === 'Escape') {
|
|
28525
|
-
return onClose();
|
|
28526
|
-
}
|
|
28527
|
-
|
|
28528
28539
|
// ARROW_UP or SHIFT + TAB navigation
|
|
28529
28540
|
if (event.key === 'ArrowUp' || (event.key === 'Tab' && event.shiftKey)) {
|
|
28530
28541
|
keyboardSelect(-1);
|
|
@@ -28546,6 +28557,14 @@
|
|
|
28546
28557
|
}
|
|
28547
28558
|
}, [ setValue ]);
|
|
28548
28559
|
|
|
28560
|
+
h(() => {
|
|
28561
|
+
onOpened();
|
|
28562
|
+
|
|
28563
|
+
return () => {
|
|
28564
|
+
onClosed();
|
|
28565
|
+
};
|
|
28566
|
+
}, []);
|
|
28567
|
+
|
|
28549
28568
|
const displayHeader = F(() => title || headerEntries.length > 0, [ title, headerEntries ]);
|
|
28550
28569
|
|
|
28551
28570
|
return m$1`
|
|
@@ -37282,6 +37301,22 @@
|
|
|
37282
37301
|
type: 'bpmn:Task'
|
|
37283
37302
|
}
|
|
37284
37303
|
},
|
|
37304
|
+
{
|
|
37305
|
+
label: 'User Task',
|
|
37306
|
+
actionName: 'replace-with-user-task',
|
|
37307
|
+
className: 'bpmn-icon-user',
|
|
37308
|
+
target: {
|
|
37309
|
+
type: 'bpmn:UserTask'
|
|
37310
|
+
}
|
|
37311
|
+
},
|
|
37312
|
+
{
|
|
37313
|
+
label: 'Service Task',
|
|
37314
|
+
actionName: 'replace-with-service-task',
|
|
37315
|
+
className: 'bpmn-icon-service',
|
|
37316
|
+
target: {
|
|
37317
|
+
type: 'bpmn:ServiceTask'
|
|
37318
|
+
}
|
|
37319
|
+
},
|
|
37285
37320
|
{
|
|
37286
37321
|
label: 'Send Task',
|
|
37287
37322
|
actionName: 'replace-with-send-task',
|
|
@@ -37298,14 +37333,6 @@
|
|
|
37298
37333
|
type: 'bpmn:ReceiveTask'
|
|
37299
37334
|
}
|
|
37300
37335
|
},
|
|
37301
|
-
{
|
|
37302
|
-
label: 'User Task',
|
|
37303
|
-
actionName: 'replace-with-user-task',
|
|
37304
|
-
className: 'bpmn-icon-user',
|
|
37305
|
-
target: {
|
|
37306
|
-
type: 'bpmn:UserTask'
|
|
37307
|
-
}
|
|
37308
|
-
},
|
|
37309
37336
|
{
|
|
37310
37337
|
label: 'Manual Task',
|
|
37311
37338
|
actionName: 'replace-with-manual-task',
|
|
@@ -37322,14 +37349,6 @@
|
|
|
37322
37349
|
type: 'bpmn:BusinessRuleTask'
|
|
37323
37350
|
}
|
|
37324
37351
|
},
|
|
37325
|
-
{
|
|
37326
|
-
label: 'Service Task',
|
|
37327
|
-
actionName: 'replace-with-service-task',
|
|
37328
|
-
className: 'bpmn-icon-service',
|
|
37329
|
-
target: {
|
|
37330
|
-
type: 'bpmn:ServiceTask'
|
|
37331
|
-
}
|
|
37332
|
-
},
|
|
37333
37352
|
{
|
|
37334
37353
|
label: 'Script Task',
|
|
37335
37354
|
actionName: 'replace-with-script-task',
|
|
@@ -40030,7 +40049,8 @@
|
|
|
40030
40049
|
className: 'bpmn-icon-gateway-or',
|
|
40031
40050
|
target: {
|
|
40032
40051
|
type: 'bpmn:InclusiveGateway'
|
|
40033
|
-
}
|
|
40052
|
+
},
|
|
40053
|
+
rank: -1
|
|
40034
40054
|
},
|
|
40035
40055
|
{
|
|
40036
40056
|
label: 'Complex Gateway',
|
|
@@ -40038,7 +40058,8 @@
|
|
|
40038
40058
|
className: 'bpmn-icon-gateway-complex',
|
|
40039
40059
|
target: {
|
|
40040
40060
|
type: 'bpmn:ComplexGateway'
|
|
40041
|
-
}
|
|
40061
|
+
},
|
|
40062
|
+
rank: -1
|
|
40042
40063
|
},
|
|
40043
40064
|
{
|
|
40044
40065
|
label: 'Event based Gateway',
|
|
@@ -40104,13 +40125,30 @@
|
|
|
40104
40125
|
type: 'bpmn:Task'
|
|
40105
40126
|
}
|
|
40106
40127
|
},
|
|
40128
|
+
{
|
|
40129
|
+
label: 'User Task',
|
|
40130
|
+
actionName: 'user-task',
|
|
40131
|
+
className: 'bpmn-icon-user',
|
|
40132
|
+
target: {
|
|
40133
|
+
type: 'bpmn:UserTask'
|
|
40134
|
+
}
|
|
40135
|
+
},
|
|
40136
|
+
{
|
|
40137
|
+
label: 'Service Task',
|
|
40138
|
+
actionName: 'service-task',
|
|
40139
|
+
className: 'bpmn-icon-service',
|
|
40140
|
+
target: {
|
|
40141
|
+
type: 'bpmn:ServiceTask'
|
|
40142
|
+
}
|
|
40143
|
+
},
|
|
40107
40144
|
{
|
|
40108
40145
|
label: 'Send Task',
|
|
40109
40146
|
actionName: 'send-task',
|
|
40110
40147
|
className: 'bpmn-icon-send',
|
|
40111
40148
|
target: {
|
|
40112
40149
|
type: 'bpmn:SendTask'
|
|
40113
|
-
}
|
|
40150
|
+
},
|
|
40151
|
+
rank: -1
|
|
40114
40152
|
},
|
|
40115
40153
|
{
|
|
40116
40154
|
label: 'Receive Task',
|
|
@@ -40118,15 +40156,8 @@
|
|
|
40118
40156
|
className: 'bpmn-icon-receive',
|
|
40119
40157
|
target: {
|
|
40120
40158
|
type: 'bpmn:ReceiveTask'
|
|
40121
|
-
}
|
|
40122
|
-
|
|
40123
|
-
{
|
|
40124
|
-
label: 'User Task',
|
|
40125
|
-
actionName: 'user-task',
|
|
40126
|
-
className: 'bpmn-icon-user',
|
|
40127
|
-
target: {
|
|
40128
|
-
type: 'bpmn:UserTask'
|
|
40129
|
-
}
|
|
40159
|
+
},
|
|
40160
|
+
rank: -1
|
|
40130
40161
|
},
|
|
40131
40162
|
{
|
|
40132
40163
|
label: 'Manual Task',
|
|
@@ -40134,7 +40165,8 @@
|
|
|
40134
40165
|
className: 'bpmn-icon-manual',
|
|
40135
40166
|
target: {
|
|
40136
40167
|
type: 'bpmn:ManualTask'
|
|
40137
|
-
}
|
|
40168
|
+
},
|
|
40169
|
+
rank: -1
|
|
40138
40170
|
},
|
|
40139
40171
|
{
|
|
40140
40172
|
label: 'Business Rule Task',
|
|
@@ -40144,14 +40176,6 @@
|
|
|
40144
40176
|
type: 'bpmn:BusinessRuleTask'
|
|
40145
40177
|
}
|
|
40146
40178
|
},
|
|
40147
|
-
{
|
|
40148
|
-
label: 'Service Task',
|
|
40149
|
-
actionName: 'service-task',
|
|
40150
|
-
className: 'bpmn-icon-service',
|
|
40151
|
-
target: {
|
|
40152
|
-
type: 'bpmn:ServiceTask'
|
|
40153
|
-
}
|
|
40154
|
-
},
|
|
40155
40179
|
{
|
|
40156
40180
|
label: 'Script Task',
|
|
40157
40181
|
actionName: 'script-task',
|
|
@@ -40278,7 +40302,8 @@
|
|
|
40278
40302
|
target,
|
|
40279
40303
|
description,
|
|
40280
40304
|
group,
|
|
40281
|
-
search
|
|
40305
|
+
search,
|
|
40306
|
+
rank
|
|
40282
40307
|
} = option;
|
|
40283
40308
|
|
|
40284
40309
|
const targetAction = this._createEntryAction(target);
|
|
@@ -40292,6 +40317,7 @@
|
|
|
40292
40317
|
name: this._translate(group.name)
|
|
40293
40318
|
},
|
|
40294
40319
|
search,
|
|
40320
|
+
rank,
|
|
40295
40321
|
action: {
|
|
40296
40322
|
click: targetAction,
|
|
40297
40323
|
dragstart: targetAction
|
|
@@ -40366,8 +40392,7 @@
|
|
|
40366
40392
|
|
|
40367
40393
|
|
|
40368
40394
|
CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
|
|
40369
|
-
const
|
|
40370
|
-
translate = this._translate,
|
|
40395
|
+
const translate = this._translate,
|
|
40371
40396
|
popupMenu = this._popupMenu,
|
|
40372
40397
|
canvas = this._canvas,
|
|
40373
40398
|
mouse = this._mouse;
|
|
@@ -40390,7 +40415,7 @@
|
|
|
40390
40415
|
};
|
|
40391
40416
|
};
|
|
40392
40417
|
|
|
40393
|
-
|
|
40418
|
+
return {
|
|
40394
40419
|
'create': {
|
|
40395
40420
|
group: 'create',
|
|
40396
40421
|
imageUrl: createIcon,
|
|
@@ -40408,10 +40433,8 @@
|
|
|
40408
40433
|
});
|
|
40409
40434
|
}
|
|
40410
40435
|
}
|
|
40411
|
-
}
|
|
40412
|
-
}
|
|
40413
|
-
|
|
40414
|
-
return actions;
|
|
40436
|
+
}
|
|
40437
|
+
};
|
|
40415
40438
|
};
|
|
40416
40439
|
|
|
40417
40440
|
/**
|
|
@@ -40622,7 +40645,8 @@
|
|
|
40622
40645
|
target,
|
|
40623
40646
|
description,
|
|
40624
40647
|
group,
|
|
40625
|
-
search
|
|
40648
|
+
search,
|
|
40649
|
+
rank
|
|
40626
40650
|
} = option;
|
|
40627
40651
|
|
|
40628
40652
|
entries[`append-${actionName}`] = {
|
|
@@ -40631,6 +40655,7 @@
|
|
|
40631
40655
|
description,
|
|
40632
40656
|
group,
|
|
40633
40657
|
search,
|
|
40658
|
+
rank,
|
|
40634
40659
|
action: this._createEntryAction(element, target)
|
|
40635
40660
|
};
|
|
40636
40661
|
});
|
|
@@ -40758,7 +40783,7 @@
|
|
|
40758
40783
|
|
|
40759
40784
|
if (!popupMenu.isEmpty(element, 'bpmn-append')) {
|
|
40760
40785
|
|
|
40761
|
-
//
|
|
40786
|
+
// append menu entry
|
|
40762
40787
|
return {
|
|
40763
40788
|
'append': {
|
|
40764
40789
|
group: 'model',
|
|
@@ -62576,6 +62601,10 @@
|
|
|
62576
62601
|
'</bpmn:definitions>';
|
|
62577
62602
|
|
|
62578
62603
|
|
|
62604
|
+
/**
|
|
62605
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
62606
|
+
*/
|
|
62607
|
+
|
|
62579
62608
|
/**
|
|
62580
62609
|
* A modeler for BPMN 2.0 diagrams.
|
|
62581
62610
|
*
|
|
@@ -62645,8 +62674,8 @@
|
|
|
62645
62674
|
* @param {string|number} [options.width] the width of the viewer
|
|
62646
62675
|
* @param {string|number} [options.height] the height of the viewer
|
|
62647
62676
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
62648
|
-
* @param {
|
|
62649
|
-
* @param {
|
|
62677
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
62678
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
62650
62679
|
*/
|
|
62651
62680
|
function Modeler(options) {
|
|
62652
62681
|
BaseModeler.call(this, options);
|