camunda-bpmn-js 0.15.1 → 0.16.0

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 (57) hide show
  1. package/CHANGELOG.md +323 -280
  2. package/LICENSE +20 -20
  3. package/README.md +84 -84
  4. package/dist/assets/base-modeler.css +4 -4
  5. package/dist/assets/base-navigated-viewer.css +1 -1
  6. package/dist/assets/base-viewer.css +1 -1
  7. package/dist/assets/camunda-cloud-modeler.css +1 -1
  8. package/dist/assets/camunda-platform-modeler.css +1 -1
  9. package/dist/assets/properties-panel.css +93 -6
  10. package/dist/base-modeler.development.js +3961 -609
  11. package/dist/base-modeler.production.min.js +4 -4
  12. package/dist/base-navigated-viewer.development.js +7 -4
  13. package/dist/base-navigated-viewer.production.min.js +1 -1
  14. package/dist/base-viewer.development.js +7 -4
  15. package/dist/base-viewer.production.min.js +1 -1
  16. package/dist/camunda-cloud-modeler.development.js +5426 -1438
  17. package/dist/camunda-cloud-modeler.production.min.js +4 -4
  18. package/dist/camunda-cloud-navigated-viewer.development.js +42 -39
  19. package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
  20. package/dist/camunda-cloud-viewer.development.js +42 -39
  21. package/dist/camunda-cloud-viewer.production.min.js +1 -1
  22. package/dist/camunda-platform-modeler.development.js +4134 -884
  23. package/dist/camunda-platform-modeler.production.min.js +4 -4
  24. package/dist/camunda-platform-navigated-viewer.development.js +26 -23
  25. package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
  26. package/dist/camunda-platform-viewer.development.js +26 -23
  27. package/dist/camunda-platform-viewer.production.min.js +1 -1
  28. package/lib/base/Modeler.js +46 -46
  29. package/lib/base/NavigatedViewer.js +2 -2
  30. package/lib/base/Viewer.js +2 -2
  31. package/lib/camunda-cloud/Modeler.js +68 -68
  32. package/lib/camunda-cloud/NavigatedViewer.js +34 -34
  33. package/lib/camunda-cloud/Viewer.js +34 -34
  34. package/lib/camunda-cloud/features/context-pad/ContextPadOptions.js +15 -15
  35. package/lib/camunda-cloud/features/context-pad/index.js +6 -6
  36. package/lib/camunda-cloud/features/drilldown/index.js +3 -3
  37. package/lib/camunda-cloud/features/palette/PaletteOptions.js +14 -14
  38. package/lib/camunda-cloud/features/palette/PaletteProvider.js +31 -31
  39. package/lib/camunda-cloud/features/palette/index.js +6 -6
  40. package/lib/camunda-cloud/features/popup-menu/ReplaceMenuProvider.js +71 -71
  41. package/lib/camunda-cloud/features/popup-menu/ReplaceOptions.js +46 -46
  42. package/lib/camunda-cloud/features/popup-menu/index.js +6 -6
  43. package/lib/camunda-cloud/features/rules/BpmnRules.js +137 -137
  44. package/lib/camunda-cloud/features/rules/index.js +5 -5
  45. package/lib/camunda-cloud/util/commonModules.js +13 -13
  46. package/lib/camunda-platform/Modeler.js +46 -46
  47. package/lib/camunda-platform/NavigatedViewer.js +25 -25
  48. package/lib/camunda-platform/Viewer.js +24 -24
  49. package/lib/camunda-platform/util/commonModules.js +6 -6
  50. package/lib/util/ExtensionElementsUtil.js +59 -59
  51. package/package.json +109 -110
  52. package/styles/base-modeler.css +4 -4
  53. package/styles/base-navigated-viewer.css +1 -1
  54. package/styles/base-viewer.css +1 -1
  55. package/styles/camunda-cloud-modeler.css +1 -1
  56. package/styles/camunda-platform-modeler.css +1 -1
  57. package/util/index.js +39 -39
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,85 +1,85 @@
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
-
6
- Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
7
-
8
- ## Usage
9
-
10
- 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.
11
-
12
- Use a pre-packaged distribution
13
-
14
- ```html
15
- <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
16
-
17
- <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
18
- ```
19
-
20
- or install it via npm
21
-
22
- ```js
23
- import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
24
-
25
- import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
26
- ```
27
-
28
- into your web-application.
29
-
30
- ```js
31
- var bpmnModeler = new BpmnModeler({
32
- container: '#canvas',
33
- propertiesPanel: {
34
- parent: '#properties'
35
- }
36
- });
37
-
38
- try {
39
-
40
- await bpmnModeler.importXML(someDiagram);
41
-
42
- console.log('success!');
43
- viewer.get('canvas').zoom('fit-viewport');
44
- } catch (err) {
45
-
46
- console.error('something went wrong:', err);
47
- }
48
- ```
49
-
50
-
51
- Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
52
- ## Build and Run
53
-
54
-
55
- Prepare the project by installing all dependencies:
56
-
57
- ```sh
58
- npm install
59
- ```
60
-
61
- Then, depending on your use-case, you may run any of the following commands:
62
-
63
- ```sh
64
- # build the library and run all tests
65
- npm run all
66
-
67
- # spin up a single local camunda platform modeler instance
68
- npm run start:platform
69
-
70
- # run the full development setup
71
- npm run dev
72
- ```
73
-
74
- ## Related
75
-
76
- camunda-bpmn-js builds on top of a few powerful tools:
77
-
78
- * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
79
- * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
80
-
81
- ## License
82
-
83
- MIT
84
-
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
+
6
+ Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
7
+
8
+ ## Usage
9
+
10
+ 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.
11
+
12
+ Use a pre-packaged distribution
13
+
14
+ ```html
15
+ <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
16
+
17
+ <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
18
+ ```
19
+
20
+ or install it via npm
21
+
22
+ ```js
23
+ import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
24
+
25
+ import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
26
+ ```
27
+
28
+ into your web-application.
29
+
30
+ ```js
31
+ var bpmnModeler = new BpmnModeler({
32
+ container: '#canvas',
33
+ propertiesPanel: {
34
+ parent: '#properties'
35
+ }
36
+ });
37
+
38
+ try {
39
+
40
+ await bpmnModeler.importXML(someDiagram);
41
+
42
+ console.log('success!');
43
+ viewer.get('canvas').zoom('fit-viewport');
44
+ } catch (err) {
45
+
46
+ console.error('something went wrong:', err);
47
+ }
48
+ ```
49
+
50
+
51
+ Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
52
+ ## Build and Run
53
+
54
+
55
+ Prepare the project by installing all dependencies:
56
+
57
+ ```sh
58
+ npm install
59
+ ```
60
+
61
+ Then, depending on your use-case, you may run any of the following commands:
62
+
63
+ ```sh
64
+ # build the library and run all tests
65
+ npm run all
66
+
67
+ # spin up a single local camunda platform modeler instance
68
+ npm run start:platform
69
+
70
+ # run the full development setup
71
+ npm run dev
72
+ ```
73
+
74
+ ## Related
75
+
76
+ camunda-bpmn-js builds on top of a few powerful tools:
77
+
78
+ * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
79
+ * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
80
+
81
+ ## License
82
+
83
+ MIT
84
+
85
85
  Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
@@ -1,5 +1,5 @@
1
- @import './diagram-js.css';
2
- @import './bpmn-js.css';
3
- @import './bpmn-font/css/bpmn-embedded.css';
4
- @import './diagram-js-minimap.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
5
  @import './properties-panel.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,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -1,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -12,6 +12,7 @@
12
12
  --color-grey-225-10-95: hsl(225, 10%, 95%);
13
13
  --color-grey-225-10-97: hsl(225, 10%, 97%);
14
14
 
15
+ --color-blue-205-100-35: hsl(205, 100%, 35%);
15
16
  --color-blue-205-100-45: hsl(205, 100%, 45%);
16
17
  --color-blue-205-100-50: hsl(205, 100%, 50%);
17
18
  --color-blue-205-100-95: hsl(205, 100%, 95%);
@@ -98,6 +99,11 @@
98
99
  --dropdown-item-hover-background-color: var(--color-grey-225-10-95);
99
100
  --dropdown-separator-background-color: var(--color-grey-225-10-75);
100
101
 
102
+ --feel-active-color: var(--color-blue-205-100-35);
103
+ --feel-inactive-color: var(--color-grey-225-10-35);
104
+
105
+ --feel-indicator-background-color: var(--color-grey-225-10-90);
106
+
101
107
  --text-size-base: 14px;
102
108
  --text-size-small: 13px;
103
109
  --text-size-smallest: 12px;
@@ -114,8 +120,11 @@
114
120
  overflow: hidden;
115
121
  }
116
122
 
117
- .bio-properties-panel * {
123
+ .bio-properties-panel {
118
124
  color: var(--text-base-color);
125
+ }
126
+
127
+ .bio-properties-panel * {
119
128
  font-size: var(--text-size-base);
120
129
  line-height: var(--text-line-height);
121
130
  font-weight: 400;
@@ -237,8 +246,14 @@
237
246
  justify-content: space-between;
238
247
  margin-bottom: -1px; /* avoid double borders */
239
248
  position: relative; /* browsers not supporting sticky */
240
- position: -webkit-sticky; /* for safari */
241
- position: sticky;
249
+
250
+ /**
251
+ * @pinussilvestrus Note: we exclude the sticky header feature until we
252
+ * find a proper fix for https://github.com/bpmn-io/bpmn-js-properties-panel/issues/726
253
+ */
254
+
255
+ /* position: -webkit-sticky; /* for safari */
256
+ /* position: sticky; */
242
257
  top: 0;
243
258
  z-index: 1;
244
259
  }
@@ -446,12 +461,19 @@ textarea.bio-properties-panel-input,
446
461
  width: 100%;
447
462
  }
448
463
 
449
- .bio-properties-panel-input:focus {
464
+ .bio-properties-panel-input:focus,
465
+ .bio-properties-panel-input:focus-within {
450
466
  outline: none;
451
467
  background-color: var(--input-focus-background-color);
452
468
  border: 1px solid var(--input-focus-border-color);
453
469
  }
454
470
 
471
+ .bio-properties-panel-textfield:focus-within,
472
+ .bio-properties-panel-feel-entry:focus-within {
473
+ --input-background-color: var(--input-focus-background-color);
474
+ --input-border-color: var(--input-focus-border-color);
475
+ }
476
+
455
477
  .bio-properties-panel-input:disabled {
456
478
  border-color: var(--input-disabled-border-color);
457
479
  background-color: var(--input-disabled-background-color);
@@ -920,11 +942,76 @@ textarea.bio-properties-panel-input {
920
942
  .bio-properties-panel-feel-icon {
921
943
  display: inline-block;
922
944
  height: 16px;
945
+ border-radius: 8px;
923
946
  vertical-align: text-bottom;
924
- padding: 0 3px;
947
+ padding: 0;
948
+ margin: 0 3px;
949
+ align-items: center;
950
+ align-self: center;
951
+ border: none;
952
+ background: none;
953
+ }
954
+
955
+ .bio-properties-panel-feel-icon.optional {
956
+ cursor: pointer;
957
+ }
958
+
959
+ .bio-properties-panel-feel-icon svg * {
960
+ color: var(--feel-inactive-color);
961
+ }
962
+
963
+ .bio-properties-panel-feel-icon.active svg * {
964
+ color: var(--feel-active-color);
925
965
  }
926
966
 
927
967
  .bio-properties-panel-feel-icon svg {
928
968
  width: 16px;
929
969
  height: 16px;
930
- }
970
+ }
971
+
972
+ .bio-properties-panel-feel-editor-container {
973
+ position: relative;
974
+ }
975
+
976
+ .bio-properties-panel-feel-editor-container.active {
977
+ font-family: var(--font-family-monospace);
978
+ }
979
+
980
+ .bio-properties-panel-feel-container {
981
+ position: relative;
982
+ }
983
+
984
+ .bio-properties-panel-feel-container .bio-properties-panel-feel-editor-container>div {
985
+ position: static;
986
+ padding-left: 2.4em !important;
987
+ min-height: 28px;
988
+ }
989
+
990
+ .cm-scroller {
991
+ overflow: hidden !important;
992
+ }
993
+
994
+ .bio-properties-panel-feel-indicator {
995
+ position: absolute;
996
+ border: 1px solid var(--input-border-color);
997
+ background-color: var(--feel-indicator-background-color);
998
+ border-right: 0px;
999
+ border-radius: 2px 0 0 2px;
1000
+ z-index: 1;
1001
+ height: 100%;
1002
+ width: 2em;
1003
+ text-align: center;
1004
+ padding: 2px 6px;
1005
+ }
1006
+
1007
+ .bio-properties-panel-feel-editor-container .bio-properties-panel-input {
1008
+ resize: vertical;
1009
+ overflow: hidden;
1010
+ overflow-y: auto;
1011
+ }
1012
+
1013
+ .bio-properties-panel-feel-editor-container,
1014
+ .bio-properties-panel-feel-editor-container .bio-properties-panel-input,
1015
+ .cm-editor {
1016
+ min-height: 100%;
1017
+ }