camunda-bpmn-js 4.6.2 → 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 +48 -48
- package/dist/camunda-cloud-modeler.development.js +137 -111
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- 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 +120 -94
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- 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;
|
|
@@ -119900,54 +119900,54 @@
|
|
|
119900
119900
|
}
|
|
119901
119901
|
};
|
|
119902
119902
|
|
|
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
|
|
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
|
|
119951
119951
|
);
|
|
119952
119952
|
|
|
119953
119953
|
const WILDCARD = '*';
|
|
@@ -123031,6 +123031,16 @@
|
|
|
123031
123031
|
|
|
123032
123032
|
const PRIMITIVE_MODDLE_TYPES$1 = ['Boolean', 'Integer', 'String'];
|
|
123033
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) {
|
|
123034
123044
|
let businessObject = getBusinessObject$2(element);
|
|
123035
123045
|
const defaultValue = '';
|
|
123036
123046
|
const {
|
|
@@ -123145,6 +123155,22 @@
|
|
|
123145
123155
|
// should never throw as templates are validated beforehand
|
|
123146
123156
|
throw unknownBindingError$1(element, property);
|
|
123147
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
|
+
}
|
|
123148
123174
|
const NO_OP = null;
|
|
123149
123175
|
function setPropertyValue(bpmnFactory, commandStack, element, property, value) {
|
|
123150
123176
|
let businessObject = getBusinessObject$2(element);
|
|
@@ -132887,13 +132913,13 @@
|
|
|
132887
132913
|
emumerations: emumerations
|
|
132888
132914
|
};
|
|
132889
132915
|
|
|
132890
|
-
/**
|
|
132891
|
-
* @type { {
|
|
132892
|
-
* camunda: any
|
|
132893
|
-
* } }
|
|
132894
|
-
*/
|
|
132895
|
-
const commonModdleExtensions = {
|
|
132896
|
-
camunda: camundaModdle
|
|
132916
|
+
/**
|
|
132917
|
+
* @type { {
|
|
132918
|
+
* camunda: any
|
|
132919
|
+
* } }
|
|
132920
|
+
*/
|
|
132921
|
+
const commonModdleExtensions = {
|
|
132922
|
+
camunda: camundaModdle
|
|
132897
132923
|
};
|
|
132898
132924
|
|
|
132899
132925
|
const colorImageSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor">
|
|
@@ -136505,45 +136531,45 @@
|
|
|
136505
136531
|
removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
|
|
136506
136532
|
};
|
|
136507
136533
|
|
|
136508
|
-
/**
|
|
136509
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
136510
|
-
*/
|
|
136511
|
-
|
|
136512
|
-
/**
|
|
136513
|
-
* @param {BaseViewerOptions} options
|
|
136514
|
-
*/
|
|
136515
|
-
function Modeler(options = {}) {
|
|
136516
|
-
|
|
136517
|
-
options = {
|
|
136518
|
-
...options,
|
|
136519
|
-
moddleExtensions: {
|
|
136520
|
-
...commonModdleExtensions,
|
|
136521
|
-
...options.moddleExtensions
|
|
136522
|
-
},
|
|
136523
|
-
propertiesPanel: {
|
|
136524
|
-
tooltip: TooltipProvider,
|
|
136525
|
-
...options.propertiesPanel
|
|
136526
|
-
}
|
|
136527
|
-
};
|
|
136528
|
-
|
|
136529
|
-
Modeler$1.call(this, options);
|
|
136530
|
-
}
|
|
136531
|
-
|
|
136532
|
-
e$7(Modeler, Modeler$1);
|
|
136533
|
-
|
|
136534
|
-
Modeler.prototype._camundaPlatformModules = [
|
|
136535
|
-
behaviorsModule,
|
|
136536
|
-
index$4,
|
|
136537
|
-
index,
|
|
136538
|
-
colorPickerModule,
|
|
136539
|
-
index$1,
|
|
136540
|
-
CamundaVariableResolverModule,
|
|
136541
|
-
RemoveTemplatesModule
|
|
136542
|
-
];
|
|
136543
|
-
|
|
136544
|
-
Modeler.prototype._modules = [].concat(
|
|
136545
|
-
Modeler$1.prototype._modules,
|
|
136546
|
-
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
|
|
136547
136573
|
);
|
|
136548
136574
|
|
|
136549
136575
|
return Modeler;
|