bpmn-js 11.0.3 → 11.0.4
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/bpmn-modeler.development.js +39 -15
- package/dist/bpmn-modeler.production.min.js +28 -16
- package/dist/bpmn-navigated-viewer.development.js +2 -2
- package/dist/bpmn-navigated-viewer.production.min.js +1 -1
- package/dist/bpmn-viewer.development.js +2 -2
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/package.json +2 -2
|
@@ -54,8 +54,9 @@
|
|
|
54
54
|
--palette-background-color: var(--color-grey-225-10-97);
|
|
55
55
|
--palette-border-color: var(--color-grey-225-10-75);
|
|
56
56
|
|
|
57
|
+
--popup-font-size: 14px;
|
|
57
58
|
--popup-header-entry-selected-color: var(--color-blue-205-100-50);
|
|
58
|
-
--popup-header-
|
|
59
|
+
--popup-header-font-weight: bolder;
|
|
59
60
|
--popup-background-color: var(--color-white);
|
|
60
61
|
--popup-border-color: var(--color-grey-225-10-75);
|
|
61
62
|
--popup-shadow-color: var(--color-grey-225-10-80);
|
|
@@ -536,12 +537,13 @@ marker.djs-dragger tspan {
|
|
|
536
537
|
box-shadow: 0px 2px 10px var(--popup-shadow-color);
|
|
537
538
|
min-width: 120px;
|
|
538
539
|
outline: none;
|
|
540
|
+
font-size: var(--popup-font-size);
|
|
539
541
|
}
|
|
540
542
|
|
|
541
543
|
.djs-popup-search input {
|
|
542
544
|
width: 100%;
|
|
543
545
|
box-sizing: border-box;
|
|
544
|
-
font-size:
|
|
546
|
+
font-size: var(--popup-font-size);
|
|
545
547
|
padding: 3px 6px;
|
|
546
548
|
border-radius: 2px;
|
|
547
549
|
border: solid 1px var(--popup-search-border-color);
|
|
@@ -562,7 +564,6 @@ marker.djs-dragger tspan {
|
|
|
562
564
|
}
|
|
563
565
|
|
|
564
566
|
.djs-popup-header .entry {
|
|
565
|
-
font-size: 19.5px;
|
|
566
567
|
border-radius: 2px;
|
|
567
568
|
}
|
|
568
569
|
|
|
@@ -579,11 +580,10 @@ marker.djs-dragger tspan {
|
|
|
579
580
|
}
|
|
580
581
|
|
|
581
582
|
.djs-popup-title {
|
|
582
|
-
font-size:
|
|
583
|
-
font-weight:
|
|
583
|
+
font-size: var(--popup-font-size);
|
|
584
|
+
font-weight: var(--popup-header-font-weight);
|
|
584
585
|
flex: 1;
|
|
585
586
|
margin: 0;
|
|
586
|
-
width: max-content;
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
.djs-popup-search {
|
|
@@ -620,19 +620,26 @@ marker.djs-dragger tspan {
|
|
|
620
620
|
padding: 5px 7px;
|
|
621
621
|
cursor: default;
|
|
622
622
|
border-radius: 4px;
|
|
623
|
-
font-size: 14px;
|
|
624
623
|
}
|
|
625
624
|
|
|
626
625
|
.djs-popup-body .entry-header {
|
|
627
|
-
font-weight:
|
|
626
|
+
font-weight: var(--popup-header-font-weight);
|
|
628
627
|
color: var(--popup-entry-title-color);
|
|
629
628
|
padding-left: 0;
|
|
630
629
|
}
|
|
631
630
|
|
|
631
|
+
.djs-popup [class*="icon"] .djs-popup-label,
|
|
632
|
+
.djs-popup-label:not(:first-child) {
|
|
633
|
+
margin-left: .5em;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.djs-popup [class*="icon"]:before,
|
|
632
637
|
.djs-popup-entry-icon {
|
|
633
|
-
width:
|
|
634
|
-
|
|
635
|
-
|
|
638
|
+
width: 1em;
|
|
639
|
+
height: 1em;
|
|
640
|
+
display: inline-block;
|
|
641
|
+
font-size: 1.4em;
|
|
642
|
+
vertical-align: middle;
|
|
636
643
|
}
|
|
637
644
|
|
|
638
645
|
.djs-popup-body .entry-header:not(:first-child) {
|
|
@@ -666,10 +673,15 @@ marker.djs-dragger tspan {
|
|
|
666
673
|
color: var(--popup-description-color);
|
|
667
674
|
}
|
|
668
675
|
|
|
669
|
-
.djs-popup-
|
|
676
|
+
.djs-popup-label,
|
|
670
677
|
.djs-popup-entry-description {
|
|
671
678
|
line-height: 1.4em;
|
|
672
|
-
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.djs-popup-title,
|
|
682
|
+
.djs-popup-label,
|
|
683
|
+
.djs-popup-entry-description,
|
|
684
|
+
.djs-popup .entry-header {
|
|
673
685
|
overflow: hidden;
|
|
674
686
|
text-overflow: ellipsis;
|
|
675
687
|
white-space: nowrap;
|
|
@@ -686,15 +698,6 @@ marker.djs-dragger tspan {
|
|
|
686
698
|
overflow: hidden;
|
|
687
699
|
}
|
|
688
700
|
|
|
689
|
-
.djs-popup-entry-name[class^="bpmn-icon-"]:before,
|
|
690
|
-
.djs-popup-entry-name[class*=" bpmn-icon-"]:before,
|
|
691
|
-
.djs-popup-entry-icon {
|
|
692
|
-
display: inline-block;
|
|
693
|
-
font-size: 1.4em;
|
|
694
|
-
vertical-align: middle;
|
|
695
|
-
margin-right: 0.5rem;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
701
|
.djs-popup-body {
|
|
699
702
|
flex-direction: column;
|
|
700
703
|
width: auto;
|
|
@@ -711,13 +714,12 @@ marker.djs-dragger tspan {
|
|
|
711
714
|
|
|
712
715
|
.djs-popup *::-webkit-scrollbar-track {
|
|
713
716
|
box-shadow: none;
|
|
714
|
-
background:
|
|
717
|
+
background: transparent;
|
|
715
718
|
margin: 0;
|
|
716
719
|
padding: 5px;
|
|
717
720
|
}
|
|
718
721
|
|
|
719
722
|
.djs-popup-no-results {
|
|
720
|
-
font-size: 14px;
|
|
721
723
|
padding: 0 12px 12px 12px;
|
|
722
724
|
color: var(--popup-no-results-color);
|
|
723
725
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v11.0.
|
|
2
|
+
* bpmn-js - bpmn-modeler v11.0.4
|
|
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: 2022-12-
|
|
11
|
+
* Date: 2022-12-07
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -28124,14 +28124,11 @@
|
|
|
28124
28124
|
onClick
|
|
28125
28125
|
} = props;
|
|
28126
28126
|
|
|
28127
|
-
const createImage = imageUrl => {
|
|
28128
|
-
return m`<img src=${ imageUrl } class="djs-popup-entry-icon" />`;
|
|
28129
|
-
};
|
|
28130
|
-
|
|
28131
28127
|
return m`
|
|
28132
28128
|
<li
|
|
28133
28129
|
class=${ clsx('entry', { selected }) }
|
|
28134
28130
|
data-id=${ entry.id }
|
|
28131
|
+
title=${ entry.title || entry.label }
|
|
28135
28132
|
onClick=${ onClick }
|
|
28136
28133
|
onMouseEnter=${ onMouseEnter }
|
|
28137
28134
|
onMouseLeave=${ onMouseLeave }
|
|
@@ -28139,10 +28136,16 @@
|
|
|
28139
28136
|
<div class="djs-popup-entry-content">
|
|
28140
28137
|
<span
|
|
28141
28138
|
class=${ clsx('djs-popup-entry-name', entry.className) }
|
|
28142
|
-
title=${ entry.label || entry.name }
|
|
28143
28139
|
>
|
|
28144
|
-
${ entry.imageUrl ?
|
|
28145
|
-
|
|
28140
|
+
${ entry.imageUrl ? m`
|
|
28141
|
+
<img class="djs-popup-entry-icon" src=${ entry.imageUrl } />
|
|
28142
|
+
` : null }
|
|
28143
|
+
|
|
28144
|
+
${ entry.label ? m`
|
|
28145
|
+
<span class="djs-popup-label">
|
|
28146
|
+
${ entry.label }
|
|
28147
|
+
</span>
|
|
28148
|
+
` : null }
|
|
28146
28149
|
</span>
|
|
28147
28150
|
${ entry.description && m`
|
|
28148
28151
|
<span
|
|
@@ -28212,7 +28215,7 @@
|
|
|
28212
28215
|
<div class="djs-popup-results" ref=${ resultsRef }>
|
|
28213
28216
|
${ groups.map(group => m`
|
|
28214
28217
|
${ group.name && m`
|
|
28215
|
-
<div key=${ group.id } class="entry-header">
|
|
28218
|
+
<div key=${ group.id } class="entry-header" title=${ group.name }>
|
|
28216
28219
|
${ group.name }
|
|
28217
28220
|
</div>
|
|
28218
28221
|
` }
|
|
@@ -28440,18 +28443,23 @@
|
|
|
28440
28443
|
>
|
|
28441
28444
|
${ displayHeader && m`
|
|
28442
28445
|
<div class="djs-popup-header">
|
|
28443
|
-
<h3 class="djs-popup-title">${ title }</h3>
|
|
28446
|
+
<h3 class="djs-popup-title" title=${ title }>${ title }</h3>
|
|
28444
28447
|
${ headerEntries.map(entry => m`
|
|
28445
28448
|
<span
|
|
28446
28449
|
class=${ getHeaderClasses(entry, entry === selectedEntry) }
|
|
28447
28450
|
onClick=${ event => onSelect(event, entry) }
|
|
28448
|
-
title=${ entry.title }
|
|
28451
|
+
title=${ entry.title || entry.label }
|
|
28449
28452
|
data-id=${ entry.id }
|
|
28450
28453
|
onMouseEnter=${ () => setSelectedEntry(entry) }
|
|
28451
28454
|
onMouseLeave=${ () => setSelectedEntry(null) }
|
|
28452
28455
|
>
|
|
28453
|
-
${ entry.imageUrl ? m
|
|
28454
|
-
|
|
28456
|
+
${ entry.imageUrl ? m`
|
|
28457
|
+
<img class="djs-popup-entry-icon" src=${ entry.imageUrl } />
|
|
28458
|
+
` : null }
|
|
28459
|
+
|
|
28460
|
+
${ entry.label ? m`
|
|
28461
|
+
<span class="djs-popup-label">${ entry.label }</span>
|
|
28462
|
+
` : null }
|
|
28455
28463
|
</span>
|
|
28456
28464
|
`) }
|
|
28457
28465
|
</div>
|
|
@@ -28905,7 +28913,7 @@
|
|
|
28905
28913
|
*
|
|
28906
28914
|
* @example
|
|
28907
28915
|
* const popupMenuProvider = {
|
|
28908
|
-
* getPopupMenuEntries
|
|
28916
|
+
* getPopupMenuEntries(element) {
|
|
28909
28917
|
* return {
|
|
28910
28918
|
* 'entry-1': {
|
|
28911
28919
|
* label: 'My Entry',
|
|
@@ -28916,6 +28924,22 @@
|
|
|
28916
28924
|
* };
|
|
28917
28925
|
*
|
|
28918
28926
|
* popupMenu.registerProvider('myMenuID', popupMenuProvider);
|
|
28927
|
+
*
|
|
28928
|
+
* @example
|
|
28929
|
+
* const replacingPopupMenuProvider = {
|
|
28930
|
+
* getPopupMenuEntries(element) {
|
|
28931
|
+
* return (entries) => {
|
|
28932
|
+
* const {
|
|
28933
|
+
* someEntry,
|
|
28934
|
+
* ...remainingEntries
|
|
28935
|
+
* } = entries;
|
|
28936
|
+
*
|
|
28937
|
+
* return remainingEntries;
|
|
28938
|
+
* };
|
|
28939
|
+
* }
|
|
28940
|
+
* };
|
|
28941
|
+
*
|
|
28942
|
+
* popupMenu.registerProvider('myMenuID', replacingPopupMenuProvider);
|
|
28919
28943
|
*/
|
|
28920
28944
|
PopupMenu.prototype.registerProvider = function(id, priority, provider) {
|
|
28921
28945
|
if (!provider) {
|