camunda-bpmn-js 0.24.0 → 0.24.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/assets/diagram-js.css +26 -24
- package/dist/base-modeler.development.js +72 -38
- package/dist/base-modeler.production.min.js +37 -23
- package/dist/camunda-cloud-modeler.development.js +84 -43
- package/dist/camunda-cloud-modeler.production.min.js +50 -36
- package/dist/camunda-platform-modeler.development.js +72 -38
- package/dist/camunda-platform-modeler.production.min.js +37 -23
- package/lib/camunda-cloud/features/replace/ElementTemplatesReplaceProvider.js +12 -5
- package/package.json +3 -3
|
@@ -28364,14 +28364,11 @@
|
|
|
28364
28364
|
onClick
|
|
28365
28365
|
} = props;
|
|
28366
28366
|
|
|
28367
|
-
const createImage = imageUrl => {
|
|
28368
|
-
return m$2`<img src=${ imageUrl } class="djs-popup-entry-icon" />`;
|
|
28369
|
-
};
|
|
28370
|
-
|
|
28371
28367
|
return m$2`
|
|
28372
28368
|
<li
|
|
28373
28369
|
class=${ clsx('entry', { selected }) }
|
|
28374
28370
|
data-id=${ entry.id }
|
|
28371
|
+
title=${ entry.title || entry.label }
|
|
28375
28372
|
onClick=${ onClick }
|
|
28376
28373
|
onMouseEnter=${ onMouseEnter }
|
|
28377
28374
|
onMouseLeave=${ onMouseLeave }
|
|
@@ -28379,10 +28376,16 @@
|
|
|
28379
28376
|
<div class="djs-popup-entry-content">
|
|
28380
28377
|
<span
|
|
28381
28378
|
class=${ clsx('djs-popup-entry-name', entry.className) }
|
|
28382
|
-
title=${ entry.label || entry.name }
|
|
28383
28379
|
>
|
|
28384
|
-
${ entry.imageUrl ?
|
|
28385
|
-
|
|
28380
|
+
${ entry.imageUrl ? m$2`
|
|
28381
|
+
<img class="djs-popup-entry-icon" src=${ entry.imageUrl } />
|
|
28382
|
+
` : null }
|
|
28383
|
+
|
|
28384
|
+
${ entry.label ? m$2`
|
|
28385
|
+
<span class="djs-popup-label">
|
|
28386
|
+
${ entry.label }
|
|
28387
|
+
</span>
|
|
28388
|
+
` : null }
|
|
28386
28389
|
</span>
|
|
28387
28390
|
${ entry.description && m$2`
|
|
28388
28391
|
<span
|
|
@@ -28452,7 +28455,7 @@
|
|
|
28452
28455
|
<div class="djs-popup-results" ref=${ resultsRef }>
|
|
28453
28456
|
${ groups.map(group => m$2`
|
|
28454
28457
|
${ group.name && m$2`
|
|
28455
|
-
<div key=${ group.id } class="entry-header">
|
|
28458
|
+
<div key=${ group.id } class="entry-header" title=${ group.name }>
|
|
28456
28459
|
${ group.name }
|
|
28457
28460
|
</div>
|
|
28458
28461
|
` }
|
|
@@ -28538,7 +28541,9 @@
|
|
|
28538
28541
|
width,
|
|
28539
28542
|
scale,
|
|
28540
28543
|
search,
|
|
28541
|
-
entries: originalEntries
|
|
28544
|
+
entries: originalEntries,
|
|
28545
|
+
onOpened,
|
|
28546
|
+
onClosed
|
|
28542
28547
|
} = props;
|
|
28543
28548
|
|
|
28544
28549
|
const searchable = F$2(() => {
|
|
@@ -28556,6 +28561,14 @@
|
|
|
28556
28561
|
const [ entries, setEntries ] = p$3(originalEntries);
|
|
28557
28562
|
const [ selectedEntry, setSelectedEntry ] = p$3(entries[0]);
|
|
28558
28563
|
|
|
28564
|
+
h$2(() => {
|
|
28565
|
+
onOpened();
|
|
28566
|
+
|
|
28567
|
+
return () => {
|
|
28568
|
+
onClosed();
|
|
28569
|
+
};
|
|
28570
|
+
}, []);
|
|
28571
|
+
|
|
28559
28572
|
const updateEntries = T$3((newEntries) => {
|
|
28560
28573
|
|
|
28561
28574
|
// select first entry if non is selected
|
|
@@ -28578,10 +28591,8 @@
|
|
|
28578
28591
|
}
|
|
28579
28592
|
|
|
28580
28593
|
const search = [
|
|
28581
|
-
entry.name,
|
|
28582
28594
|
entry.description || '',
|
|
28583
|
-
entry.label || ''
|
|
28584
|
-
entry.id || ''
|
|
28595
|
+
entry.label || ''
|
|
28585
28596
|
]
|
|
28586
28597
|
.join('---')
|
|
28587
28598
|
.toLowerCase();
|
|
@@ -28680,18 +28691,23 @@
|
|
|
28680
28691
|
>
|
|
28681
28692
|
${ displayHeader && m$2`
|
|
28682
28693
|
<div class="djs-popup-header">
|
|
28683
|
-
<h3 class="djs-popup-title">${ title }</h3>
|
|
28694
|
+
<h3 class="djs-popup-title" title=${ title }>${ title }</h3>
|
|
28684
28695
|
${ headerEntries.map(entry => m$2`
|
|
28685
28696
|
<span
|
|
28686
28697
|
class=${ getHeaderClasses(entry, entry === selectedEntry) }
|
|
28687
28698
|
onClick=${ event => onSelect(event, entry) }
|
|
28688
|
-
title=${ entry.title }
|
|
28699
|
+
title=${ entry.title || entry.label }
|
|
28689
28700
|
data-id=${ entry.id }
|
|
28690
28701
|
onMouseEnter=${ () => setSelectedEntry(entry) }
|
|
28691
28702
|
onMouseLeave=${ () => setSelectedEntry(null) }
|
|
28692
28703
|
>
|
|
28693
|
-
${ entry.imageUrl ? m$2
|
|
28694
|
-
|
|
28704
|
+
${ entry.imageUrl ? m$2`
|
|
28705
|
+
<img class="djs-popup-entry-icon" src=${ entry.imageUrl } />
|
|
28706
|
+
` : null }
|
|
28707
|
+
|
|
28708
|
+
${ entry.label ? m$2`
|
|
28709
|
+
<span class="djs-popup-label">${ entry.label }</span>
|
|
28710
|
+
` : null }
|
|
28695
28711
|
</span>
|
|
28696
28712
|
`) }
|
|
28697
28713
|
</div>
|
|
@@ -28911,6 +28927,8 @@
|
|
|
28911
28927
|
entries=${ entriesArray }
|
|
28912
28928
|
headerEntries=${ headerEntriesArray }
|
|
28913
28929
|
scale=${ scale }
|
|
28930
|
+
onOpened=${ this._onOpened.bind(this) }
|
|
28931
|
+
onClosed=${ this._onClosed.bind(this) }
|
|
28914
28932
|
...${{ ...options }}
|
|
28915
28933
|
/>
|
|
28916
28934
|
`,
|
|
@@ -29014,6 +29032,14 @@
|
|
|
29014
29032
|
this._eventBus.fire(`popupMenu.${ event }`, payload);
|
|
29015
29033
|
};
|
|
29016
29034
|
|
|
29035
|
+
PopupMenu.prototype._onOpened = function() {
|
|
29036
|
+
this._emit('opened');
|
|
29037
|
+
};
|
|
29038
|
+
|
|
29039
|
+
PopupMenu.prototype._onClosed = function() {
|
|
29040
|
+
this._emit('closed');
|
|
29041
|
+
};
|
|
29042
|
+
|
|
29017
29043
|
PopupMenu.prototype._createContainer = function(config) {
|
|
29018
29044
|
|
|
29019
29045
|
let parent = config && config.parent || 'body';
|
|
@@ -29145,7 +29171,7 @@
|
|
|
29145
29171
|
*
|
|
29146
29172
|
* @example
|
|
29147
29173
|
* const popupMenuProvider = {
|
|
29148
|
-
* getPopupMenuEntries
|
|
29174
|
+
* getPopupMenuEntries(element) {
|
|
29149
29175
|
* return {
|
|
29150
29176
|
* 'entry-1': {
|
|
29151
29177
|
* label: 'My Entry',
|
|
@@ -29156,6 +29182,22 @@
|
|
|
29156
29182
|
* };
|
|
29157
29183
|
*
|
|
29158
29184
|
* popupMenu.registerProvider('myMenuID', popupMenuProvider);
|
|
29185
|
+
*
|
|
29186
|
+
* @example
|
|
29187
|
+
* const replacingPopupMenuProvider = {
|
|
29188
|
+
* getPopupMenuEntries(element) {
|
|
29189
|
+
* return (entries) => {
|
|
29190
|
+
* const {
|
|
29191
|
+
* someEntry,
|
|
29192
|
+
* ...remainingEntries
|
|
29193
|
+
* } = entries;
|
|
29194
|
+
*
|
|
29195
|
+
* return remainingEntries;
|
|
29196
|
+
* };
|
|
29197
|
+
* }
|
|
29198
|
+
* };
|
|
29199
|
+
*
|
|
29200
|
+
* popupMenu.registerProvider('myMenuID', replacingPopupMenuProvider);
|
|
29159
29201
|
*/
|
|
29160
29202
|
PopupMenu.prototype.registerProvider = function(id, priority, provider) {
|
|
29161
29203
|
if (!provider) {
|
|
@@ -36913,7 +36955,9 @@
|
|
|
36913
36955
|
);
|
|
36914
36956
|
|
|
36915
36957
|
var isTriggeredByEventEqual = (
|
|
36916
|
-
|
|
36958
|
+
|
|
36959
|
+
// coherse to <false>
|
|
36960
|
+
!!target.triggeredByEvent === !!businessObject.triggeredByEvent
|
|
36917
36961
|
);
|
|
36918
36962
|
|
|
36919
36963
|
var isExpandedEqual = (
|
|
@@ -37329,6 +37373,15 @@
|
|
|
37329
37373
|
];
|
|
37330
37374
|
|
|
37331
37375
|
var TRANSACTION = [
|
|
37376
|
+
{
|
|
37377
|
+
label: 'Transaction',
|
|
37378
|
+
actionName: 'replace-with-transaction',
|
|
37379
|
+
className: 'bpmn-icon-transaction',
|
|
37380
|
+
target: {
|
|
37381
|
+
type: 'bpmn:Transaction',
|
|
37382
|
+
isExpanded: true
|
|
37383
|
+
}
|
|
37384
|
+
},
|
|
37332
37385
|
{
|
|
37333
37386
|
label: 'Sub Process',
|
|
37334
37387
|
actionName: 'replace-with-subprocess',
|
|
@@ -37350,26 +37403,7 @@
|
|
|
37350
37403
|
}
|
|
37351
37404
|
];
|
|
37352
37405
|
|
|
37353
|
-
var EVENT_SUB_PROCESS =
|
|
37354
|
-
{
|
|
37355
|
-
label: 'Sub Process',
|
|
37356
|
-
actionName: 'replace-with-subprocess',
|
|
37357
|
-
className: 'bpmn-icon-subprocess-expanded',
|
|
37358
|
-
target: {
|
|
37359
|
-
type: 'bpmn:SubProcess',
|
|
37360
|
-
isExpanded: true
|
|
37361
|
-
}
|
|
37362
|
-
},
|
|
37363
|
-
{
|
|
37364
|
-
label: 'Transaction',
|
|
37365
|
-
actionName: 'replace-with-transaction',
|
|
37366
|
-
className: 'bpmn-icon-transaction',
|
|
37367
|
-
target: {
|
|
37368
|
-
type: 'bpmn:Transaction',
|
|
37369
|
-
isExpanded: true
|
|
37370
|
-
}
|
|
37371
|
-
}
|
|
37372
|
-
];
|
|
37406
|
+
var EVENT_SUB_PROCESS = TRANSACTION;
|
|
37373
37407
|
|
|
37374
37408
|
var TASK = [
|
|
37375
37409
|
{
|