camunda-bpmn-js 4.6.1 → 4.6.3
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/LICENSE +20 -20
- package/README.md +88 -88
- package/dist/assets/base-modeler.css +5 -5
- package/dist/assets/base-navigated-viewer.css +1 -1
- package/dist/assets/base-viewer.css +1 -1
- package/dist/assets/camunda-cloud-modeler.css +2 -2
- package/dist/assets/camunda-platform-modeler.css +1 -1
- package/dist/base-modeler.development.js +50 -55
- package/dist/base-modeler.production.min.js +33 -33
- package/dist/camunda-cloud-modeler.development.js +139 -118
- package/dist/camunda-cloud-modeler.production.min.js +35 -35
- package/dist/camunda-cloud-navigated-viewer.development.js +40 -40
- package/dist/camunda-cloud-viewer.development.js +40 -40
- package/dist/camunda-platform-modeler.development.js +122 -101
- package/dist/camunda-platform-modeler.production.min.js +33 -33
- package/dist/camunda-platform-navigated-viewer.development.js +27 -27
- package/dist/camunda-platform-viewer.development.js +27 -27
- package/lib/base/Modeler.d.ts +20 -20
- package/lib/base/Modeler.js +65 -65
- package/lib/base/NavigatedViewer.d.ts +2 -2
- package/lib/base/NavigatedViewer.js +2 -2
- package/lib/base/Viewer.d.ts +2 -2
- package/lib/base/Viewer.js +2 -2
- package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
- package/lib/camunda-cloud/Modeler.d.ts +3 -3
- package/lib/camunda-cloud/Modeler.js +84 -84
- package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
- package/lib/camunda-cloud/NavigatedViewer.js +36 -36
- package/lib/camunda-cloud/Viewer.d.ts +9 -9
- package/lib/camunda-cloud/Viewer.js +36 -36
- package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
- package/lib/camunda-cloud/util/commonModules.js +15 -15
- package/lib/camunda-platform/Modeler.d.ts +3 -3
- package/lib/camunda-platform/Modeler.js +68 -68
- package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
- package/lib/camunda-platform/NavigatedViewer.js +27 -27
- package/lib/camunda-platform/Viewer.d.ts +9 -9
- package/lib/camunda-platform/Viewer.js +27 -27
- package/lib/camunda-platform/util/commonModules.d.ts +9 -9
- package/lib/camunda-platform/util/commonModules.js +11 -11
- package/lib/util/ExtensionElementsUtil.d.ts +24 -24
- package/lib/util/ExtensionElementsUtil.js +68 -68
- package/package.json +140 -140
- package/styles/base-modeler.css +5 -5
- package/styles/base-navigated-viewer.css +1 -1
- package/styles/base-viewer.css +1 -1
- package/styles/camunda-cloud-modeler.css +2 -2
- package/styles/camunda-platform-modeler.css +1 -1
|
@@ -25919,48 +25919,48 @@
|
|
|
25919
25919
|
types: types
|
|
25920
25920
|
};
|
|
25921
25921
|
|
|
25922
|
-
const commonModules = [
|
|
25923
|
-
iconRendererModule
|
|
25924
|
-
];
|
|
25925
|
-
|
|
25926
|
-
/**
|
|
25927
|
-
* @type { {
|
|
25928
|
-
* zeebe: any
|
|
25929
|
-
* } }
|
|
25930
|
-
*/
|
|
25931
|
-
const commonModdleExtensions = {
|
|
25932
|
-
zeebe: zeebeModdle
|
|
25922
|
+
const commonModules = [
|
|
25923
|
+
iconRendererModule
|
|
25924
|
+
];
|
|
25925
|
+
|
|
25926
|
+
/**
|
|
25927
|
+
* @type { {
|
|
25928
|
+
* zeebe: any
|
|
25929
|
+
* } }
|
|
25930
|
+
*/
|
|
25931
|
+
const commonModdleExtensions = {
|
|
25932
|
+
zeebe: zeebeModdle
|
|
25933
25933
|
};
|
|
25934
25934
|
|
|
25935
|
-
/**
|
|
25936
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
25937
|
-
*/
|
|
25938
|
-
|
|
25939
|
-
/**
|
|
25940
|
-
* @param {BaseViewerOptions} options
|
|
25941
|
-
*/
|
|
25942
|
-
function NavigatedViewer(options = {}) {
|
|
25943
|
-
|
|
25944
|
-
options = {
|
|
25945
|
-
...options,
|
|
25946
|
-
moddleExtensions: {
|
|
25947
|
-
...commonModdleExtensions,
|
|
25948
|
-
...options.moddleExtensions
|
|
25949
|
-
}
|
|
25950
|
-
};
|
|
25951
|
-
|
|
25952
|
-
NavigatedViewer$1.call(this, options);
|
|
25953
|
-
}
|
|
25954
|
-
|
|
25955
|
-
e(NavigatedViewer, NavigatedViewer$1);
|
|
25956
|
-
|
|
25957
|
-
NavigatedViewer.prototype._camundaCloudModules = [
|
|
25958
|
-
...commonModules
|
|
25959
|
-
];
|
|
25960
|
-
|
|
25961
|
-
NavigatedViewer.prototype._modules = [].concat(
|
|
25962
|
-
NavigatedViewer$1.prototype._modules,
|
|
25963
|
-
NavigatedViewer.prototype._camundaCloudModules
|
|
25935
|
+
/**
|
|
25936
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
25937
|
+
*/
|
|
25938
|
+
|
|
25939
|
+
/**
|
|
25940
|
+
* @param {BaseViewerOptions} options
|
|
25941
|
+
*/
|
|
25942
|
+
function NavigatedViewer(options = {}) {
|
|
25943
|
+
|
|
25944
|
+
options = {
|
|
25945
|
+
...options,
|
|
25946
|
+
moddleExtensions: {
|
|
25947
|
+
...commonModdleExtensions,
|
|
25948
|
+
...options.moddleExtensions
|
|
25949
|
+
}
|
|
25950
|
+
};
|
|
25951
|
+
|
|
25952
|
+
NavigatedViewer$1.call(this, options);
|
|
25953
|
+
}
|
|
25954
|
+
|
|
25955
|
+
e(NavigatedViewer, NavigatedViewer$1);
|
|
25956
|
+
|
|
25957
|
+
NavigatedViewer.prototype._camundaCloudModules = [
|
|
25958
|
+
...commonModules
|
|
25959
|
+
];
|
|
25960
|
+
|
|
25961
|
+
NavigatedViewer.prototype._modules = [].concat(
|
|
25962
|
+
NavigatedViewer$1.prototype._modules,
|
|
25963
|
+
NavigatedViewer.prototype._camundaCloudModules
|
|
25964
25964
|
);
|
|
25965
25965
|
|
|
25966
25966
|
return NavigatedViewer;
|
|
@@ -24779,48 +24779,48 @@
|
|
|
24779
24779
|
types: types
|
|
24780
24780
|
};
|
|
24781
24781
|
|
|
24782
|
-
const commonModules = [
|
|
24783
|
-
iconRendererModule
|
|
24784
|
-
];
|
|
24785
|
-
|
|
24786
|
-
/**
|
|
24787
|
-
* @type { {
|
|
24788
|
-
* zeebe: any
|
|
24789
|
-
* } }
|
|
24790
|
-
*/
|
|
24791
|
-
const commonModdleExtensions = {
|
|
24792
|
-
zeebe: zeebeModdle
|
|
24782
|
+
const commonModules = [
|
|
24783
|
+
iconRendererModule
|
|
24784
|
+
];
|
|
24785
|
+
|
|
24786
|
+
/**
|
|
24787
|
+
* @type { {
|
|
24788
|
+
* zeebe: any
|
|
24789
|
+
* } }
|
|
24790
|
+
*/
|
|
24791
|
+
const commonModdleExtensions = {
|
|
24792
|
+
zeebe: zeebeModdle
|
|
24793
24793
|
};
|
|
24794
24794
|
|
|
24795
|
-
/**
|
|
24796
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
24797
|
-
*/
|
|
24798
|
-
|
|
24799
|
-
/**
|
|
24800
|
-
* @param {BaseViewerOptions} options
|
|
24801
|
-
*/
|
|
24802
|
-
function Viewer(options = {}) {
|
|
24803
|
-
|
|
24804
|
-
options = {
|
|
24805
|
-
...options,
|
|
24806
|
-
moddleExtensions: {
|
|
24807
|
-
...commonModdleExtensions,
|
|
24808
|
-
...options.moddleExtensions
|
|
24809
|
-
}
|
|
24810
|
-
};
|
|
24811
|
-
|
|
24812
|
-
Viewer$1.call(this, options);
|
|
24813
|
-
}
|
|
24814
|
-
|
|
24815
|
-
e(Viewer, Viewer$1);
|
|
24816
|
-
|
|
24817
|
-
Viewer.prototype._camundaCloudModules = [
|
|
24818
|
-
...commonModules
|
|
24819
|
-
];
|
|
24820
|
-
|
|
24821
|
-
Viewer.prototype._modules = [].concat(
|
|
24822
|
-
Viewer$1.prototype._modules,
|
|
24823
|
-
Viewer.prototype._camundaCloudModules
|
|
24795
|
+
/**
|
|
24796
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
24797
|
+
*/
|
|
24798
|
+
|
|
24799
|
+
/**
|
|
24800
|
+
* @param {BaseViewerOptions} options
|
|
24801
|
+
*/
|
|
24802
|
+
function Viewer(options = {}) {
|
|
24803
|
+
|
|
24804
|
+
options = {
|
|
24805
|
+
...options,
|
|
24806
|
+
moddleExtensions: {
|
|
24807
|
+
...commonModdleExtensions,
|
|
24808
|
+
...options.moddleExtensions
|
|
24809
|
+
}
|
|
24810
|
+
};
|
|
24811
|
+
|
|
24812
|
+
Viewer$1.call(this, options);
|
|
24813
|
+
}
|
|
24814
|
+
|
|
24815
|
+
e(Viewer, Viewer$1);
|
|
24816
|
+
|
|
24817
|
+
Viewer.prototype._camundaCloudModules = [
|
|
24818
|
+
...commonModules
|
|
24819
|
+
];
|
|
24820
|
+
|
|
24821
|
+
Viewer.prototype._modules = [].concat(
|
|
24822
|
+
Viewer$1.prototype._modules,
|
|
24823
|
+
Viewer.prototype._camundaCloudModules
|
|
24824
24824
|
);
|
|
24825
24825
|
|
|
24826
24826
|
return Viewer;
|
|
@@ -27510,10 +27510,7 @@
|
|
|
27510
27510
|
alignElements: [ 'type', AlignElements$1 ]
|
|
27511
27511
|
};
|
|
27512
27512
|
|
|
27513
|
-
var
|
|
27514
|
-
'djs-element-hidden',
|
|
27515
|
-
'djs-label-hidden'
|
|
27516
|
-
];
|
|
27513
|
+
var MARKER_HIDDEN$1 = 'djs-element-hidden';
|
|
27517
27514
|
|
|
27518
27515
|
/**
|
|
27519
27516
|
* @typedef {import('../../model/Types').Element} Element
|
|
@@ -28126,9 +28123,7 @@
|
|
|
28126
28123
|
var targets = isArray$6(target) ? target : [ target ];
|
|
28127
28124
|
|
|
28128
28125
|
var isHidden = targets.some(function(target) {
|
|
28129
|
-
return
|
|
28130
|
-
return self._canvas.hasMarker(target, marker);
|
|
28131
|
-
});
|
|
28126
|
+
return self._canvas.hasMarker(target, MARKER_HIDDEN$1);
|
|
28132
28127
|
});
|
|
28133
28128
|
|
|
28134
28129
|
if (isHidden) {
|
|
@@ -119905,54 +119900,54 @@
|
|
|
119905
119900
|
}
|
|
119906
119901
|
};
|
|
119907
119902
|
|
|
119908
|
-
/**
|
|
119909
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
119910
|
-
*
|
|
119911
|
-
* @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
|
|
119912
|
-
*/
|
|
119913
|
-
|
|
119914
|
-
/**
|
|
119915
|
-
*
|
|
119916
|
-
* @param {BaseViewerOptions} options
|
|
119917
|
-
*/
|
|
119918
|
-
function Modeler$1(options = {}) {
|
|
119919
|
-
Modeler$2.call(this, options);
|
|
119920
|
-
}
|
|
119921
|
-
|
|
119922
|
-
e$7(Modeler$1, Modeler$2);
|
|
119923
|
-
|
|
119924
|
-
/**
|
|
119925
|
-
* @param { {
|
|
119926
|
-
* disableAdjustOrigin?: boolean;
|
|
119927
|
-
* disableGrid?: boolean;
|
|
119928
|
-
* } } [options]
|
|
119929
|
-
*
|
|
119930
|
-
* @returns {ModuleDeclaration[]}
|
|
119931
|
-
*/
|
|
119932
|
-
Modeler$1.prototype.getModules = function(options = {}) {
|
|
119933
|
-
const modules = Modeler$2.prototype.getModules.call(this, options);
|
|
119934
|
-
|
|
119935
|
-
return [
|
|
119936
|
-
...modules,
|
|
119937
|
-
options.disableAdjustOrigin
|
|
119938
|
-
? diagramOriginModule
|
|
119939
|
-
: alignToOriginModule,
|
|
119940
|
-
options.disableGrid
|
|
119941
|
-
? {}
|
|
119942
|
-
: index$6
|
|
119943
|
-
];
|
|
119944
|
-
};
|
|
119945
|
-
|
|
119946
|
-
Modeler$1.prototype._extensionModules = [
|
|
119947
|
-
index$7,
|
|
119948
|
-
ExecutableFixModule,
|
|
119949
|
-
index$3,
|
|
119950
|
-
index$2
|
|
119951
|
-
];
|
|
119952
|
-
|
|
119953
|
-
Modeler$1.prototype._modules = [].concat(
|
|
119954
|
-
Modeler$2.prototype._modules,
|
|
119955
|
-
Modeler$1.prototype._extensionModules
|
|
119903
|
+
/**
|
|
119904
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
119905
|
+
*
|
|
119906
|
+
* @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
|
|
119907
|
+
*/
|
|
119908
|
+
|
|
119909
|
+
/**
|
|
119910
|
+
*
|
|
119911
|
+
* @param {BaseViewerOptions} options
|
|
119912
|
+
*/
|
|
119913
|
+
function Modeler$1(options = {}) {
|
|
119914
|
+
Modeler$2.call(this, options);
|
|
119915
|
+
}
|
|
119916
|
+
|
|
119917
|
+
e$7(Modeler$1, Modeler$2);
|
|
119918
|
+
|
|
119919
|
+
/**
|
|
119920
|
+
* @param { {
|
|
119921
|
+
* disableAdjustOrigin?: boolean;
|
|
119922
|
+
* disableGrid?: boolean;
|
|
119923
|
+
* } } [options]
|
|
119924
|
+
*
|
|
119925
|
+
* @returns {ModuleDeclaration[]}
|
|
119926
|
+
*/
|
|
119927
|
+
Modeler$1.prototype.getModules = function(options = {}) {
|
|
119928
|
+
const modules = Modeler$2.prototype.getModules.call(this, options);
|
|
119929
|
+
|
|
119930
|
+
return [
|
|
119931
|
+
...modules,
|
|
119932
|
+
options.disableAdjustOrigin
|
|
119933
|
+
? diagramOriginModule
|
|
119934
|
+
: alignToOriginModule,
|
|
119935
|
+
options.disableGrid
|
|
119936
|
+
? {}
|
|
119937
|
+
: index$6
|
|
119938
|
+
];
|
|
119939
|
+
};
|
|
119940
|
+
|
|
119941
|
+
Modeler$1.prototype._extensionModules = [
|
|
119942
|
+
index$7,
|
|
119943
|
+
ExecutableFixModule,
|
|
119944
|
+
index$3,
|
|
119945
|
+
index$2
|
|
119946
|
+
];
|
|
119947
|
+
|
|
119948
|
+
Modeler$1.prototype._modules = [].concat(
|
|
119949
|
+
Modeler$2.prototype._modules,
|
|
119950
|
+
Modeler$1.prototype._extensionModules
|
|
119956
119951
|
);
|
|
119957
119952
|
|
|
119958
119953
|
const WILDCARD = '*';
|
|
@@ -123036,6 +123031,16 @@
|
|
|
123036
123031
|
|
|
123037
123032
|
const PRIMITIVE_MODDLE_TYPES$1 = ['Boolean', 'Integer', 'String'];
|
|
123038
123033
|
function getPropertyValue(element, property, scope) {
|
|
123034
|
+
const rawValue = getRawPropertyValue(element, property);
|
|
123035
|
+
const {
|
|
123036
|
+
type
|
|
123037
|
+
} = property;
|
|
123038
|
+
if (type === 'Boolean') {
|
|
123039
|
+
return getBooleanPropertyValue(rawValue);
|
|
123040
|
+
}
|
|
123041
|
+
return rawValue;
|
|
123042
|
+
}
|
|
123043
|
+
function getRawPropertyValue(element, property, scope) {
|
|
123039
123044
|
let businessObject = getBusinessObject$2(element);
|
|
123040
123045
|
const defaultValue = '';
|
|
123041
123046
|
const {
|
|
@@ -123150,6 +123155,22 @@
|
|
|
123150
123155
|
// should never throw as templates are validated beforehand
|
|
123151
123156
|
throw unknownBindingError$1(element, property);
|
|
123152
123157
|
}
|
|
123158
|
+
|
|
123159
|
+
/**
|
|
123160
|
+
* Cast a string value to a boolean if possible. Otherwise return the value.
|
|
123161
|
+
* Cannot always cast due to FEEL expressions.
|
|
123162
|
+
*
|
|
123163
|
+
* @param {string|boolean} value
|
|
123164
|
+
*/
|
|
123165
|
+
function getBooleanPropertyValue(value) {
|
|
123166
|
+
switch (value) {
|
|
123167
|
+
case 'true':
|
|
123168
|
+
return true;
|
|
123169
|
+
case 'false':
|
|
123170
|
+
return false;
|
|
123171
|
+
}
|
|
123172
|
+
return value;
|
|
123173
|
+
}
|
|
123153
123174
|
const NO_OP = null;
|
|
123154
123175
|
function setPropertyValue(bpmnFactory, commandStack, element, property, value) {
|
|
123155
123176
|
let businessObject = getBusinessObject$2(element);
|
|
@@ -132892,13 +132913,13 @@
|
|
|
132892
132913
|
emumerations: emumerations
|
|
132893
132914
|
};
|
|
132894
132915
|
|
|
132895
|
-
/**
|
|
132896
|
-
* @type { {
|
|
132897
|
-
* camunda: any
|
|
132898
|
-
* } }
|
|
132899
|
-
*/
|
|
132900
|
-
const commonModdleExtensions = {
|
|
132901
|
-
camunda: camundaModdle
|
|
132916
|
+
/**
|
|
132917
|
+
* @type { {
|
|
132918
|
+
* camunda: any
|
|
132919
|
+
* } }
|
|
132920
|
+
*/
|
|
132921
|
+
const commonModdleExtensions = {
|
|
132922
|
+
camunda: camundaModdle
|
|
132902
132923
|
};
|
|
132903
132924
|
|
|
132904
132925
|
const colorImageSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor">
|
|
@@ -136510,45 +136531,45 @@
|
|
|
136510
136531
|
removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
|
|
136511
136532
|
};
|
|
136512
136533
|
|
|
136513
|
-
/**
|
|
136514
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
136515
|
-
*/
|
|
136516
|
-
|
|
136517
|
-
/**
|
|
136518
|
-
* @param {BaseViewerOptions} options
|
|
136519
|
-
*/
|
|
136520
|
-
function Modeler(options = {}) {
|
|
136521
|
-
|
|
136522
|
-
options = {
|
|
136523
|
-
...options,
|
|
136524
|
-
moddleExtensions: {
|
|
136525
|
-
...commonModdleExtensions,
|
|
136526
|
-
...options.moddleExtensions
|
|
136527
|
-
},
|
|
136528
|
-
propertiesPanel: {
|
|
136529
|
-
tooltip: TooltipProvider,
|
|
136530
|
-
...options.propertiesPanel
|
|
136531
|
-
}
|
|
136532
|
-
};
|
|
136533
|
-
|
|
136534
|
-
Modeler$1.call(this, options);
|
|
136535
|
-
}
|
|
136536
|
-
|
|
136537
|
-
e$7(Modeler, Modeler$1);
|
|
136538
|
-
|
|
136539
|
-
Modeler.prototype._camundaPlatformModules = [
|
|
136540
|
-
behaviorsModule,
|
|
136541
|
-
index$4,
|
|
136542
|
-
index,
|
|
136543
|
-
colorPickerModule,
|
|
136544
|
-
index$1,
|
|
136545
|
-
CamundaVariableResolverModule,
|
|
136546
|
-
RemoveTemplatesModule
|
|
136547
|
-
];
|
|
136548
|
-
|
|
136549
|
-
Modeler.prototype._modules = [].concat(
|
|
136550
|
-
Modeler$1.prototype._modules,
|
|
136551
|
-
Modeler.prototype._camundaPlatformModules
|
|
136534
|
+
/**
|
|
136535
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
136536
|
+
*/
|
|
136537
|
+
|
|
136538
|
+
/**
|
|
136539
|
+
* @param {BaseViewerOptions} options
|
|
136540
|
+
*/
|
|
136541
|
+
function Modeler(options = {}) {
|
|
136542
|
+
|
|
136543
|
+
options = {
|
|
136544
|
+
...options,
|
|
136545
|
+
moddleExtensions: {
|
|
136546
|
+
...commonModdleExtensions,
|
|
136547
|
+
...options.moddleExtensions
|
|
136548
|
+
},
|
|
136549
|
+
propertiesPanel: {
|
|
136550
|
+
tooltip: TooltipProvider,
|
|
136551
|
+
...options.propertiesPanel
|
|
136552
|
+
}
|
|
136553
|
+
};
|
|
136554
|
+
|
|
136555
|
+
Modeler$1.call(this, options);
|
|
136556
|
+
}
|
|
136557
|
+
|
|
136558
|
+
e$7(Modeler, Modeler$1);
|
|
136559
|
+
|
|
136560
|
+
Modeler.prototype._camundaPlatformModules = [
|
|
136561
|
+
behaviorsModule,
|
|
136562
|
+
index$4,
|
|
136563
|
+
index,
|
|
136564
|
+
colorPickerModule,
|
|
136565
|
+
index$1,
|
|
136566
|
+
CamundaVariableResolverModule,
|
|
136567
|
+
RemoveTemplatesModule
|
|
136568
|
+
];
|
|
136569
|
+
|
|
136570
|
+
Modeler.prototype._modules = [].concat(
|
|
136571
|
+
Modeler$1.prototype._modules,
|
|
136572
|
+
Modeler.prototype._camundaPlatformModules
|
|
136552
136573
|
);
|
|
136553
136574
|
|
|
136554
136575
|
return Modeler;
|