bpmn-js 18.13.0 → 18.13.2
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 +4 -0
- package/dist/bpmn-modeler.development.js +316 -140
- package/dist/bpmn-modeler.production.min.js +45 -45
- package/dist/bpmn-navigated-viewer.development.js +76 -91
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +76 -91
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/lib/features/copy-paste/BpmnCopyPaste.js +17 -0
- package/lib/features/modeling/BpmnLayouter.js +21 -4
- package/lib/features/modeling/behavior/SubProcessPlaneBehavior.js +140 -30
- package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.js +8 -1
- package/lib/util/AnnotationUtil.d.ts +26 -0
- package/lib/util/AnnotationUtil.js +55 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer v18.13.
|
|
2
|
+
* bpmn-js - bpmn-viewer v18.13.2
|
|
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: 2026-03-
|
|
11
|
+
* Date: 2026-03-23
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2042,101 +2042,86 @@
|
|
|
2042
2042
|
return has(overrides, 'height') ? overrides.height : bounds.height;
|
|
2043
2043
|
}
|
|
2044
2044
|
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2045
|
+
/* eslint-disable no-multi-assign */
|
|
2046
|
+
|
|
2047
|
+
const wrapMap = {
|
|
2048
|
+
legend: [1, '<fieldset>', '</fieldset>'],
|
|
2049
|
+
tr: [2, '<table><tbody>', '</tbody></table>'],
|
|
2050
|
+
col: [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
|
|
2051
|
+
_default: [0, '', ''],
|
|
2052
|
+
};
|
|
2048
2053
|
|
|
2049
|
-
|
|
2050
|
-
|
|
2054
|
+
wrapMap.td
|
|
2055
|
+
= wrapMap.th = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
|
|
2051
2056
|
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
};
|
|
2057
|
+
wrapMap.option
|
|
2058
|
+
= wrapMap.optgroup = [1, '<select multiple="multiple">', '</select>'];
|
|
2059
|
+
|
|
2060
|
+
wrapMap.thead
|
|
2061
|
+
= wrapMap.tbody
|
|
2062
|
+
= wrapMap.colgroup
|
|
2063
|
+
= wrapMap.caption
|
|
2064
|
+
= wrapMap.tfoot = [1, '<table>', '</table>'];
|
|
2061
2065
|
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
= wrapMap.ellipse
|
|
2076
|
-
= wrapMap.polygon
|
|
2077
|
-
= wrapMap.circle
|
|
2078
|
-
= wrapMap.text
|
|
2079
|
-
= wrapMap.line
|
|
2080
|
-
= wrapMap.path
|
|
2081
|
-
= wrapMap.rect
|
|
2082
|
-
= wrapMap.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">', '</svg>'];
|
|
2083
|
-
|
|
2084
|
-
function domify(htmlString, document = globalThis.document) {
|
|
2085
|
-
if (typeof htmlString !== 'string') {
|
|
2086
|
-
throw new TypeError('String expected');
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
// Handle comment nodes
|
|
2090
|
-
const commentMatch = /^<!--(.*?)-->$/s.exec(htmlString);
|
|
2091
|
-
if (commentMatch) {
|
|
2092
|
-
return document.createComment(commentMatch[1]);
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
const tagName = /<([\w:]+)/.exec(htmlString)?.[1];
|
|
2096
|
-
|
|
2097
|
-
if (!tagName) {
|
|
2098
|
-
return document.createTextNode(htmlString);
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
htmlString = htmlString.trim();
|
|
2102
|
-
|
|
2103
|
-
// Body support
|
|
2104
|
-
if (tagName === 'body') {
|
|
2105
|
-
const element = document.createElement('html');
|
|
2106
|
-
element.innerHTML = htmlString;
|
|
2107
|
-
const {lastChild} = element;
|
|
2108
|
-
lastChild.remove();
|
|
2109
|
-
return lastChild;
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
// Wrap map
|
|
2113
|
-
let [depth, prefix, suffix] = Object.hasOwn(wrapMap, tagName) ? wrapMap[tagName] : wrapMap._default;
|
|
2114
|
-
let element = document.createElement('div');
|
|
2115
|
-
element.innerHTML = prefix + htmlString + suffix;
|
|
2116
|
-
while (depth--) {
|
|
2117
|
-
element = element.lastChild;
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
// One element
|
|
2121
|
-
if (element.firstChild === element.lastChild) {
|
|
2122
|
-
const {firstChild} = element;
|
|
2123
|
-
firstChild.remove();
|
|
2124
|
-
return firstChild;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
// Several elements
|
|
2128
|
-
const fragment = document.createDocumentFragment();
|
|
2129
|
-
fragment.append(...element.childNodes);
|
|
2130
|
-
|
|
2131
|
-
return fragment;
|
|
2066
|
+
wrapMap.polyline
|
|
2067
|
+
= wrapMap.ellipse
|
|
2068
|
+
= wrapMap.polygon
|
|
2069
|
+
= wrapMap.circle
|
|
2070
|
+
= wrapMap.text
|
|
2071
|
+
= wrapMap.line
|
|
2072
|
+
= wrapMap.path
|
|
2073
|
+
= wrapMap.rect
|
|
2074
|
+
= wrapMap.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">', '</svg>'];
|
|
2075
|
+
|
|
2076
|
+
function domify(htmlString, document = globalThis.document) {
|
|
2077
|
+
if (typeof htmlString !== 'string') {
|
|
2078
|
+
throw new TypeError('String expected');
|
|
2132
2079
|
}
|
|
2133
2080
|
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2081
|
+
// Handle comment nodes
|
|
2082
|
+
const commentMatch = /^<!--(.*?)-->$/s.exec(htmlString);
|
|
2083
|
+
if (commentMatch) {
|
|
2084
|
+
return document.createComment(commentMatch[1]);
|
|
2085
|
+
}
|
|
2137
2086
|
|
|
2138
|
-
|
|
2139
|
-
|
|
2087
|
+
const tagName = /<([\w:]+)/.exec(htmlString)?.[1];
|
|
2088
|
+
|
|
2089
|
+
if (!tagName) {
|
|
2090
|
+
return document.createTextNode(htmlString);
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
htmlString = htmlString.trim();
|
|
2094
|
+
|
|
2095
|
+
// Body support
|
|
2096
|
+
if (tagName === 'body') {
|
|
2097
|
+
const element = document.createElement('html');
|
|
2098
|
+
element.innerHTML = htmlString;
|
|
2099
|
+
const {lastChild} = element;
|
|
2100
|
+
lastChild.remove();
|
|
2101
|
+
return lastChild;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
// Wrap map
|
|
2105
|
+
let [depth, prefix, suffix] = Object.hasOwn(wrapMap, tagName) ? wrapMap[tagName] : wrapMap._default;
|
|
2106
|
+
let element = document.createElement('div');
|
|
2107
|
+
element.innerHTML = prefix + htmlString + suffix;
|
|
2108
|
+
while (depth--) {
|
|
2109
|
+
element = element.lastChild;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
// One element
|
|
2113
|
+
if (element.firstChild === element.lastChild) {
|
|
2114
|
+
const {firstChild} = element;
|
|
2115
|
+
firstChild.remove();
|
|
2116
|
+
return firstChild;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
// Several elements
|
|
2120
|
+
const fragment = document.createDocumentFragment();
|
|
2121
|
+
fragment.append(...element.childNodes);
|
|
2122
|
+
|
|
2123
|
+
return fragment;
|
|
2124
|
+
}
|
|
2140
2125
|
|
|
2141
2126
|
function _mergeNamespaces$1(n, m) {
|
|
2142
2127
|
m.forEach(function (e) {
|