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.
Files changed (47) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +88 -88
  3. package/dist/assets/base-modeler.css +5 -5
  4. package/dist/assets/base-navigated-viewer.css +1 -1
  5. package/dist/assets/base-viewer.css +1 -1
  6. package/dist/assets/camunda-cloud-modeler.css +2 -2
  7. package/dist/assets/camunda-platform-modeler.css +1 -1
  8. package/dist/base-modeler.development.js +48 -48
  9. package/dist/camunda-cloud-modeler.development.js +137 -111
  10. package/dist/camunda-cloud-modeler.production.min.js +1 -1
  11. package/dist/camunda-cloud-navigated-viewer.development.js +40 -40
  12. package/dist/camunda-cloud-viewer.development.js +40 -40
  13. package/dist/camunda-platform-modeler.development.js +120 -94
  14. package/dist/camunda-platform-modeler.production.min.js +1 -1
  15. package/dist/camunda-platform-navigated-viewer.development.js +27 -27
  16. package/dist/camunda-platform-viewer.development.js +27 -27
  17. package/lib/base/Modeler.d.ts +20 -20
  18. package/lib/base/Modeler.js +65 -65
  19. package/lib/base/NavigatedViewer.d.ts +2 -2
  20. package/lib/base/NavigatedViewer.js +2 -2
  21. package/lib/base/Viewer.d.ts +2 -2
  22. package/lib/base/Viewer.js +2 -2
  23. package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
  24. package/lib/camunda-cloud/Modeler.d.ts +3 -3
  25. package/lib/camunda-cloud/Modeler.js +84 -84
  26. package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
  27. package/lib/camunda-cloud/NavigatedViewer.js +36 -36
  28. package/lib/camunda-cloud/Viewer.d.ts +9 -9
  29. package/lib/camunda-cloud/Viewer.js +36 -36
  30. package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
  31. package/lib/camunda-cloud/util/commonModules.js +15 -15
  32. package/lib/camunda-platform/Modeler.d.ts +3 -3
  33. package/lib/camunda-platform/Modeler.js +68 -68
  34. package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
  35. package/lib/camunda-platform/NavigatedViewer.js +27 -27
  36. package/lib/camunda-platform/Viewer.d.ts +9 -9
  37. package/lib/camunda-platform/Viewer.js +27 -27
  38. package/lib/camunda-platform/util/commonModules.d.ts +9 -9
  39. package/lib/camunda-platform/util/commonModules.js +11 -11
  40. package/lib/util/ExtensionElementsUtil.d.ts +24 -24
  41. package/lib/util/ExtensionElementsUtil.js +68 -68
  42. package/package.json +140 -140
  43. package/styles/base-modeler.css +5 -5
  44. package/styles/base-navigated-viewer.css +1 -1
  45. package/styles/base-viewer.css +1 -1
  46. package/styles/camunda-cloud-modeler.css +2 -2
  47. package/styles/camunda-platform-modeler.css +1 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021-present Camunda Services GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021-present Camunda Services GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,88 +1,88 @@
1
- # camunda-bpmn-js
2
-
3
- [![CI](https://github.com/camunda/camunda-bpmn-js/workflows/CI/badge.svg)](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
4
-
5
- Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
6
-
7
- ## Usage
8
-
9
- This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
10
-
11
- Use a pre-packaged distribution
12
-
13
- ```html
14
- <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
15
-
16
- <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
17
- ```
18
-
19
- or install it via npm
20
-
21
- ```js
22
- import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
23
-
24
- import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
25
- ```
26
-
27
- into your web-application.
28
-
29
- ```js
30
- var bpmnModeler = new BpmnModeler({
31
- container: '#canvas',
32
- propertiesPanel: {
33
- parent: '#properties'
34
- }
35
- });
36
-
37
- try {
38
-
39
- await bpmnModeler.importXML(someDiagram);
40
-
41
- console.log('success!');
42
- bpmnModeler.get('canvas').zoom('fit-viewport');
43
- } catch (err) {
44
-
45
- console.error('something went wrong:', err);
46
- }
47
- ```
48
-
49
- Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
50
-
51
- ## Build and Run
52
-
53
- Prepare the project by installing all dependencies:
54
-
55
- ```sh
56
- npm install
57
- ```
58
-
59
- Then, depending on your use-case, you may run any of the following commands:
60
-
61
- ```sh
62
- # build the library and run all tests
63
- npm run all
64
-
65
- # spin up a single local camunda platform modeler instance
66
- npm run start:platform
67
-
68
- # run the full development setup
69
- npm run dev
70
- ```
71
-
72
- ## Related
73
-
74
- camunda-bpmn-js builds on top of a few powerful tools:
75
-
76
- * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
77
- * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
78
- * [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
79
- * [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
80
- * [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
81
- * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
82
- * [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
83
-
84
- ## License
85
-
86
- MIT
87
-
88
- Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
1
+ # camunda-bpmn-js
2
+
3
+ [![CI](https://github.com/camunda/camunda-bpmn-js/workflows/CI/badge.svg)](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
4
+
5
+ Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
6
+
7
+ ## Usage
8
+
9
+ This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
10
+
11
+ Use a pre-packaged distribution
12
+
13
+ ```html
14
+ <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
15
+
16
+ <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
17
+ ```
18
+
19
+ or install it via npm
20
+
21
+ ```js
22
+ import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
23
+
24
+ import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
25
+ ```
26
+
27
+ into your web-application.
28
+
29
+ ```js
30
+ var bpmnModeler = new BpmnModeler({
31
+ container: '#canvas',
32
+ propertiesPanel: {
33
+ parent: '#properties'
34
+ }
35
+ });
36
+
37
+ try {
38
+
39
+ await bpmnModeler.importXML(someDiagram);
40
+
41
+ console.log('success!');
42
+ bpmnModeler.get('canvas').zoom('fit-viewport');
43
+ } catch (err) {
44
+
45
+ console.error('something went wrong:', err);
46
+ }
47
+ ```
48
+
49
+ Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
50
+
51
+ ## Build and Run
52
+
53
+ Prepare the project by installing all dependencies:
54
+
55
+ ```sh
56
+ npm install
57
+ ```
58
+
59
+ Then, depending on your use-case, you may run any of the following commands:
60
+
61
+ ```sh
62
+ # build the library and run all tests
63
+ npm run all
64
+
65
+ # spin up a single local camunda platform modeler instance
66
+ npm run start:platform
67
+
68
+ # run the full development setup
69
+ npm run dev
70
+ ```
71
+
72
+ ## Related
73
+
74
+ camunda-bpmn-js builds on top of a few powerful tools:
75
+
76
+ * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
77
+ * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
78
+ * [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
79
+ * [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
80
+ * [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
81
+ * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
82
+ * [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
83
+
84
+ ## License
85
+
86
+ MIT
87
+
88
+ Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
@@ -1,6 +1,6 @@
1
- @import './diagram-js.css';
2
- @import './bpmn-js.css';
3
- @import './bpmn-font/css/bpmn-embedded.css';
4
- @import './diagram-js-minimap.css';
5
- @import './properties-panel.css';
1
+ @import './diagram-js.css';
2
+ @import './bpmn-js.css';
3
+ @import './bpmn-font/css/bpmn-embedded.css';
4
+ @import './diagram-js-minimap.css';
5
+ @import './properties-panel.css';
6
6
  @import './color-picker.css';
@@ -1,2 +1,2 @@
1
- @import './diagram-js.css';
1
+ @import './diagram-js.css';
2
2
  @import './bpmn-js.css';
@@ -1,2 +1,2 @@
1
- @import './diagram-js.css';
1
+ @import './diagram-js.css';
2
2
  @import './bpmn-js.css';
@@ -1,3 +1,3 @@
1
- @import './base-modeler.css';
2
- @import './element-templates.css';
1
+ @import './base-modeler.css';
2
+ @import './element-templates.css';
3
3
  @import './element-template-chooser.css';
@@ -1,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -110083,54 +110083,54 @@
110083
110083
  bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
110084
110084
  };
110085
110085
 
110086
- /**
110087
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
110088
- *
110089
- * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
110090
- */
110091
-
110092
- /**
110093
- *
110094
- * @param {BaseViewerOptions} options
110095
- */
110096
- function Modeler(options = {}) {
110097
- Modeler$1.call(this, options);
110098
- }
110099
-
110100
- e$5(Modeler, Modeler$1);
110101
-
110102
- /**
110103
- * @param { {
110104
- * disableAdjustOrigin?: boolean;
110105
- * disableGrid?: boolean;
110106
- * } } [options]
110107
- *
110108
- * @returns {ModuleDeclaration[]}
110109
- */
110110
- Modeler.prototype.getModules = function(options = {}) {
110111
- const modules = Modeler$1.prototype.getModules.call(this, options);
110112
-
110113
- return [
110114
- ...modules,
110115
- options.disableAdjustOrigin
110116
- ? diagramOriginModule
110117
- : alignToOriginModule,
110118
- options.disableGrid
110119
- ? {}
110120
- : index$4
110121
- ];
110122
- };
110123
-
110124
- Modeler.prototype._extensionModules = [
110125
- index$5,
110126
- ExecutableFixModule,
110127
- index$3,
110128
- index$2
110129
- ];
110130
-
110131
- Modeler.prototype._modules = [].concat(
110132
- Modeler$1.prototype._modules,
110133
- Modeler.prototype._extensionModules
110086
+ /**
110087
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
110088
+ *
110089
+ * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
110090
+ */
110091
+
110092
+ /**
110093
+ *
110094
+ * @param {BaseViewerOptions} options
110095
+ */
110096
+ function Modeler(options = {}) {
110097
+ Modeler$1.call(this, options);
110098
+ }
110099
+
110100
+ e$5(Modeler, Modeler$1);
110101
+
110102
+ /**
110103
+ * @param { {
110104
+ * disableAdjustOrigin?: boolean;
110105
+ * disableGrid?: boolean;
110106
+ * } } [options]
110107
+ *
110108
+ * @returns {ModuleDeclaration[]}
110109
+ */
110110
+ Modeler.prototype.getModules = function(options = {}) {
110111
+ const modules = Modeler$1.prototype.getModules.call(this, options);
110112
+
110113
+ return [
110114
+ ...modules,
110115
+ options.disableAdjustOrigin
110116
+ ? diagramOriginModule
110117
+ : alignToOriginModule,
110118
+ options.disableGrid
110119
+ ? {}
110120
+ : index$4
110121
+ ];
110122
+ };
110123
+
110124
+ Modeler.prototype._extensionModules = [
110125
+ index$5,
110126
+ ExecutableFixModule,
110127
+ index$3,
110128
+ index$2
110129
+ ];
110130
+
110131
+ Modeler.prototype._modules = [].concat(
110132
+ Modeler$1.prototype._modules,
110133
+ Modeler.prototype._extensionModules
110134
110134
  );
110135
110135
 
110136
110136
  return Modeler;
@@ -125904,54 +125904,54 @@
125904
125904
  }
125905
125905
  };
125906
125906
 
125907
- /**
125908
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
125909
- *
125910
- * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
125911
- */
125912
-
125913
- /**
125914
- *
125915
- * @param {BaseViewerOptions} options
125916
- */
125917
- function Modeler$1(options = {}) {
125918
- Modeler$2.call(this, options);
125919
- }
125920
-
125921
- e$7(Modeler$1, Modeler$2);
125922
-
125923
- /**
125924
- * @param { {
125925
- * disableAdjustOrigin?: boolean;
125926
- * disableGrid?: boolean;
125927
- * } } [options]
125928
- *
125929
- * @returns {ModuleDeclaration[]}
125930
- */
125931
- Modeler$1.prototype.getModules = function(options = {}) {
125932
- const modules = Modeler$2.prototype.getModules.call(this, options);
125933
-
125934
- return [
125935
- ...modules,
125936
- options.disableAdjustOrigin
125937
- ? diagramOriginModule
125938
- : alignToOriginModule,
125939
- options.disableGrid
125940
- ? {}
125941
- : index$5
125942
- ];
125943
- };
125944
-
125945
- Modeler$1.prototype._extensionModules = [
125946
- index$6,
125947
- ExecutableFixModule,
125948
- index$3$1,
125949
- index$2$1
125950
- ];
125951
-
125952
- Modeler$1.prototype._modules = [].concat(
125953
- Modeler$2.prototype._modules,
125954
- Modeler$1.prototype._extensionModules
125907
+ /**
125908
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
125909
+ *
125910
+ * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
125911
+ */
125912
+
125913
+ /**
125914
+ *
125915
+ * @param {BaseViewerOptions} options
125916
+ */
125917
+ function Modeler$1(options = {}) {
125918
+ Modeler$2.call(this, options);
125919
+ }
125920
+
125921
+ e$7(Modeler$1, Modeler$2);
125922
+
125923
+ /**
125924
+ * @param { {
125925
+ * disableAdjustOrigin?: boolean;
125926
+ * disableGrid?: boolean;
125927
+ * } } [options]
125928
+ *
125929
+ * @returns {ModuleDeclaration[]}
125930
+ */
125931
+ Modeler$1.prototype.getModules = function(options = {}) {
125932
+ const modules = Modeler$2.prototype.getModules.call(this, options);
125933
+
125934
+ return [
125935
+ ...modules,
125936
+ options.disableAdjustOrigin
125937
+ ? diagramOriginModule
125938
+ : alignToOriginModule,
125939
+ options.disableGrid
125940
+ ? {}
125941
+ : index$5
125942
+ ];
125943
+ };
125944
+
125945
+ Modeler$1.prototype._extensionModules = [
125946
+ index$6,
125947
+ ExecutableFixModule,
125948
+ index$3$1,
125949
+ index$2$1
125950
+ ];
125951
+
125952
+ Modeler$1.prototype._modules = [].concat(
125953
+ Modeler$2.prototype._modules,
125954
+ Modeler$1.prototype._extensionModules
125955
125955
  );
125956
125956
 
125957
125957
  /**
@@ -130438,6 +130438,16 @@
130438
130438
 
130439
130439
  const PRIMITIVE_MODDLE_TYPES$1 = ['Boolean', 'Integer', 'String'];
130440
130440
  function getPropertyValue(element, property, scope) {
130441
+ const rawValue = getRawPropertyValue(element, property);
130442
+ const {
130443
+ type
130444
+ } = property;
130445
+ if (type === 'Boolean') {
130446
+ return getBooleanPropertyValue(rawValue);
130447
+ }
130448
+ return rawValue;
130449
+ }
130450
+ function getRawPropertyValue(element, property, scope) {
130441
130451
  let businessObject = getBusinessObject$2(element);
130442
130452
  const defaultValue = '';
130443
130453
  const {
@@ -130552,6 +130562,22 @@
130552
130562
  // should never throw as templates are validated beforehand
130553
130563
  throw unknownBindingError$1(element, property);
130554
130564
  }
130565
+
130566
+ /**
130567
+ * Cast a string value to a boolean if possible. Otherwise return the value.
130568
+ * Cannot always cast due to FEEL expressions.
130569
+ *
130570
+ * @param {string|boolean} value
130571
+ */
130572
+ function getBooleanPropertyValue(value) {
130573
+ switch (value) {
130574
+ case 'true':
130575
+ return true;
130576
+ case 'false':
130577
+ return false;
130578
+ }
130579
+ return value;
130580
+ }
130555
130581
  const NO_OP = null;
130556
130582
  function setPropertyValue(bpmnFactory, commandStack, element, property, value) {
130557
130583
  let businessObject = getBusinessObject$2(element);
@@ -158373,17 +158399,17 @@
158373
158399
  types: types
158374
158400
  };
158375
158401
 
158376
- const commonModules = [
158377
- iconRendererModule
158378
- ];
158379
-
158380
- /**
158381
- * @type { {
158382
- * zeebe: any
158383
- * } }
158384
- */
158385
- const commonModdleExtensions = {
158386
- zeebe: zeebeModdle
158402
+ const commonModules = [
158403
+ iconRendererModule
158404
+ ];
158405
+
158406
+ /**
158407
+ * @type { {
158408
+ * zeebe: any
158409
+ * } }
158410
+ */
158411
+ const commonModdleExtensions = {
158412
+ zeebe: zeebeModdle
158387
158413
  };
158388
158414
 
158389
158415
  /**
@@ -162231,58 +162257,58 @@
162231
162257
  ]
162232
162258
  };
162233
162259
 
162234
- /**
162235
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
162236
- */
162237
-
162238
- /**
162239
- * @param {BaseViewerOptions} options
162240
- */
162241
- function Modeler(options = {}) {
162242
-
162243
- options = {
162244
- ...options,
162245
- moddleExtensions: {
162246
- ...commonModdleExtensions,
162247
- ...options.moddleExtensions
162248
- },
162249
- propertiesPanel: {
162250
- tooltip: TooltipProvider$1,
162251
- ...options.propertiesPanel
162252
- }
162253
- };
162254
-
162255
- this._addElementTemplateChooserModule(options);
162256
-
162257
- Modeler$1.call(this, options);
162258
- }
162259
-
162260
- e$7(Modeler, Modeler$1);
162261
-
162262
- Modeler.prototype._addElementTemplateChooserModule = function(options) {
162263
- const { elementTemplateChooser } = options;
162264
-
162265
- if (elementTemplateChooser !== false) {
162266
- this._modules = [ ...this._modules, index$2 ];
162267
- }
162268
- };
162269
-
162270
- Modeler.prototype._camundaCloudModules = [
162271
- ...commonModules,
162272
- behaviorsModule,
162273
- index$1$2,
162274
- index$1$1,
162275
- index$1,
162276
- index,
162277
- colorPickerModule,
162278
- ZeebeVariableResolverModule,
162279
- exampleDataPropertiesProviderModule,
162280
- index$3
162281
- ];
162282
-
162283
- Modeler.prototype._modules = [].concat(
162284
- Modeler$1.prototype._modules,
162285
- Modeler.prototype._camundaCloudModules
162260
+ /**
162261
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
162262
+ */
162263
+
162264
+ /**
162265
+ * @param {BaseViewerOptions} options
162266
+ */
162267
+ function Modeler(options = {}) {
162268
+
162269
+ options = {
162270
+ ...options,
162271
+ moddleExtensions: {
162272
+ ...commonModdleExtensions,
162273
+ ...options.moddleExtensions
162274
+ },
162275
+ propertiesPanel: {
162276
+ tooltip: TooltipProvider$1,
162277
+ ...options.propertiesPanel
162278
+ }
162279
+ };
162280
+
162281
+ this._addElementTemplateChooserModule(options);
162282
+
162283
+ Modeler$1.call(this, options);
162284
+ }
162285
+
162286
+ e$7(Modeler, Modeler$1);
162287
+
162288
+ Modeler.prototype._addElementTemplateChooserModule = function(options) {
162289
+ const { elementTemplateChooser } = options;
162290
+
162291
+ if (elementTemplateChooser !== false) {
162292
+ this._modules = [ ...this._modules, index$2 ];
162293
+ }
162294
+ };
162295
+
162296
+ Modeler.prototype._camundaCloudModules = [
162297
+ ...commonModules,
162298
+ behaviorsModule,
162299
+ index$1$2,
162300
+ index$1$1,
162301
+ index$1,
162302
+ index,
162303
+ colorPickerModule,
162304
+ ZeebeVariableResolverModule,
162305
+ exampleDataPropertiesProviderModule,
162306
+ index$3
162307
+ ];
162308
+
162309
+ Modeler.prototype._modules = [].concat(
162310
+ Modeler$1.prototype._modules,
162311
+ Modeler.prototype._camundaCloudModules
162286
162312
  );
162287
162313
 
162288
162314
  return Modeler;