@bpmn-io/form-js-playground 1.7.2 → 1.7.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 CHANGED
@@ -1,23 +1,23 @@
1
- Copyright (c) 2021-present Camunda Services GmbH
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in the
5
- Software without restriction, including without limitation the rights to use, copy,
6
- modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7
- and to permit persons to whom the Software is furnished to do so, subject to the
8
- following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- The source code responsible for displaying the bpmn.io project watermark that
14
- links back to https://bpmn.io as part of rendered diagrams MUST NOT be
15
- removed or changed. When this software is being used in a website or application,
16
- the watermark must stay fully visible and not visually overlapped by other elements.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
19
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
20
- PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
1
+ Copyright (c) 2021-present Camunda Services GmbH
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in the
5
+ Software without restriction, including without limitation the rights to use, copy,
6
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7
+ and to permit persons to whom the Software is furnished to do so, subject to the
8
+ following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ The source code responsible for displaying the bpmn.io project watermark that
14
+ links back to https://bpmn.io as part of rendered diagrams MUST NOT be
15
+ removed or changed. When this software is being used in a website or application,
16
+ the watermark must stay fully visible and not visually overlapped by other elements.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
19
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
20
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
23
23
  OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,260 +1,260 @@
1
- /**
2
- * file-drop.css
3
- */
4
- .drop-overlay {
5
- position: fixed;
6
- top: 0;
7
- left: 0;
8
- bottom: 0;
9
- right: 0;
10
-
11
- padding: 50px;
12
-
13
- background: rgba(255, 255, 255, .9);
14
-
15
- z-index: 1000;
16
- }
17
-
18
- .drop-overlay .box {
19
- text-align: center;
20
- border: dashed 4px #CCC;
21
- height: 100%;
22
- width: 100%;
23
- display: table;
24
- }
25
-
26
- .drop-overlay .label {
27
- font-size: 26px;
28
- color: #888;
29
- margin: auto;
30
-
31
- display: table-cell;
32
- vertical-align: middle;
33
- }
34
- .fjs-pgl-root {
35
- --color-button-hover: var(--color-grey-225-10-95);
36
-
37
- --color-section-border: var(--color-grey-225-10-55);
38
- --color-section-header-background: var(--color-grey-225-10-95);
39
- --color-section-header-border-bottom: var(--color-grey-225-10-75);
40
-
41
- --color-palette-container-background: var(--color-grey-225-10-97);
42
- --color-palette-container-border: var(--color-grey-225-10-80);
43
-
44
- --color-properties-container-background: var(--color-white);
45
-
46
- --color-text: var(--color-grey-225-10-15);
47
-
48
- --font-family: 'IBM Plex Sans', sans-serif;
49
- --font-family-monospace: 'IBM Plex Mono', monospace;
50
-
51
- --modal-zindex: 100;
52
- }
53
-
54
- .fjs-pgl-root {
55
- width: 100%;
56
- height: 100%;
57
-
58
- position: relative;
59
- display: flex;
60
-
61
- font-family: var(--font-family);
62
- }
63
-
64
- .fjs-pgl-main {
65
- width: calc(100% - 450px);
66
- height: 100%;
67
-
68
- display: grid;
69
- grid-template-columns: 50% 50%;
70
- grid-template-rows: 70% 30%;
71
- }
72
-
73
- /**
74
- * Palette
75
- */
76
- .fjs-pgl-palette-container {
77
- height: 100%;
78
- background-color: var(--color-palette-container-background);
79
- border-right: solid 1px var(--color-palette-container-border);
80
- overflow-y: auto;
81
- flex-shrink: 0;
82
- }
83
-
84
- .fjs-pgl-palette-container .fjs-palette-container {
85
- height: 100%;
86
- border-right: none;
87
- }
88
-
89
- /**
90
- * Properties Panel
91
- */
92
- .fjs-pgl-properties-container {
93
- position: relative;
94
- display: flex;
95
- height: 100%;
96
- width: 250px;
97
- overflow-y: auto;
98
- background-color: var(--color-properties-container-background);
99
- }
100
-
101
- .fjs-pgl-properties-container .fjs-properties-container {
102
- --properties-panel-width: 250px;
103
- }
104
-
105
- .fjs-pgl-properties-container .bio-properties-panel {
106
- --font-family: var(--font-family);
107
- }
108
-
109
- /**
110
- * Section
111
- */
112
- .fjs-pgl-section {
113
- display: flex;
114
- flex-direction: column;
115
- justify-content: stretch;
116
- }
117
-
118
- .fjs-pgl-section:nth-child(1),
119
- .fjs-pgl-section:nth-child(2) {
120
- border-bottom: double 3px var(--color-section-border);
121
- }
122
-
123
- .fjs-pgl-section:nth-child(1),
124
- .fjs-pgl-section:nth-child(3) {
125
- border-right: double 3px var(--color-section-border);
126
- }
127
-
128
- .fjs-pgl-section .header {
129
- background: var(--color-section-header-background);
130
- font-size: 1rem;
131
- margin: 0;
132
- line-height: 2em;
133
- padding: .2em .5em;
134
- border-bottom: solid 1px var(--color-section-header-border-bottom);
135
- }
136
-
137
- .fjs-pgl-section .header-items {
138
- float: right;
139
- }
140
-
141
- .fjs-pgl-section .body {
142
- flex: 1;
143
- overflow: hidden;
144
- }
145
-
146
- .fjs-pgl-modal {
147
- z-index: var(--modal-zindex);
148
- }
149
-
150
- .fjs-pgl-modal .fjs-pgl-modal-backdrop {
151
- background: rgba(0 0 0 / .5);
152
- position: absolute;
153
- top: 0;
154
- left: 0;
155
- bottom: 0;
156
- right: 0;
157
- z-index: var(--modal-zindex);
158
- }
159
-
160
- .fjs-pgl-modal-content {
161
- position: absolute;
162
- top: 50%;
163
- left: 50%;
164
- max-width: 100%;
165
- width: 500px;
166
- overflow-y: auto;
167
- max-height: 80%;
168
- transform: translate(-40%, -50%);
169
- z-index: var(--modal-zindex);
170
-
171
- font-size: 14px;
172
-
173
- padding: 20px;
174
-
175
- background: var(--color-white);
176
- }
177
-
178
- .fjs-pgl-modal-content textarea {
179
- width: 100%;
180
- height: 300px;
181
- overflow: auto;
182
- }
183
-
184
- .fjs-pgl-modal-footer {
185
- margin-top: 20px;
186
-
187
- text-align: right;
188
- }
189
-
190
- .fjs-pgl-form-container {
191
- height: 100%;
192
- width: 100%;
193
- overflow: hidden;
194
- }
195
-
196
- .fjs-pgl-form-container .fjs-container .cds--grid .cds--row {
197
- margin-left: -1rem;
198
- margin-right: -1rem;
199
- }
200
-
201
- .fjs-pgl-form-container .fjs-form-editor {
202
- width: 100%;
203
- }
204
-
205
- .fjs-pgl-text-container {
206
- height: 100%;
207
- width: 100%;
208
- box-sizing: border-box;
209
- border: none;
210
- border-radius: 0;
211
- position: relative;
212
- }
213
-
214
- .fjs-pgl-text-container > .cm-editor {
215
- font-size: .9em;
216
- height: 100%;
217
- position: absolute !important;
218
- top: 0;
219
- left: 0;
220
- right: 0;
221
- bottom: 0;
222
- }
223
-
224
- .fjs-pgl-text-container > .cm-editor > .cm-scroller {
225
- font-family: var(--font-family-monospace);
226
- overflow: auto !important;
227
- }
228
-
229
- .fjs-pgl-form-container > .fjs-container {
230
- overflow: auto;
231
- }
232
-
233
- .fjs-pgl-button {
234
- color: var(--color-text);
235
- background-color: var(--color-white);
236
-
237
- border-width: 1px;
238
- border-style: solid;
239
- border-radius: 3px;
240
-
241
- font-family: var(--font-family);
242
- }
243
-
244
- .fjs-pgl-button-default {
245
- padding: 7px 10px;
246
- }
247
-
248
- .fjs-pgl-button:hover {
249
- background-color: var(--color-button-hover);
250
- }
251
-
252
- .fjs-pgl-button + .fjs-pgl-button {
253
- margin-left: 1em;
254
- }
255
-
256
- .fjs-pgl-parent {
257
- width: 100%;
258
- height: 100%;
259
- }
1
+ /**
2
+ * file-drop.css
3
+ */
4
+ .drop-overlay {
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
8
+ bottom: 0;
9
+ right: 0;
10
+
11
+ padding: 50px;
12
+
13
+ background: rgba(255, 255, 255, .9);
14
+
15
+ z-index: 1000;
16
+ }
17
+
18
+ .drop-overlay .box {
19
+ text-align: center;
20
+ border: dashed 4px #CCC;
21
+ height: 100%;
22
+ width: 100%;
23
+ display: table;
24
+ }
25
+
26
+ .drop-overlay .label {
27
+ font-size: 26px;
28
+ color: #888;
29
+ margin: auto;
30
+
31
+ display: table-cell;
32
+ vertical-align: middle;
33
+ }
34
+ .fjs-pgl-root {
35
+ --color-button-hover: var(--color-grey-225-10-95);
36
+
37
+ --color-section-border: var(--color-grey-225-10-55);
38
+ --color-section-header-background: var(--color-grey-225-10-95);
39
+ --color-section-header-border-bottom: var(--color-grey-225-10-75);
40
+
41
+ --color-palette-container-background: var(--color-grey-225-10-97);
42
+ --color-palette-container-border: var(--color-grey-225-10-80);
43
+
44
+ --color-properties-container-background: var(--color-white);
45
+
46
+ --color-text: var(--color-grey-225-10-15);
47
+
48
+ --font-family: 'IBM Plex Sans', sans-serif;
49
+ --font-family-monospace: 'IBM Plex Mono', monospace;
50
+
51
+ --modal-zindex: 100;
52
+ }
53
+
54
+ .fjs-pgl-root {
55
+ width: 100%;
56
+ height: 100%;
57
+
58
+ position: relative;
59
+ display: flex;
60
+
61
+ font-family: var(--font-family);
62
+ }
63
+
64
+ .fjs-pgl-main {
65
+ width: calc(100% - 450px);
66
+ height: 100%;
67
+
68
+ display: grid;
69
+ grid-template-columns: 50% 50%;
70
+ grid-template-rows: 70% 30%;
71
+ }
72
+
73
+ /**
74
+ * Palette
75
+ */
76
+ .fjs-pgl-palette-container {
77
+ height: 100%;
78
+ background-color: var(--color-palette-container-background);
79
+ border-right: solid 1px var(--color-palette-container-border);
80
+ overflow-y: auto;
81
+ flex-shrink: 0;
82
+ }
83
+
84
+ .fjs-pgl-palette-container .fjs-palette-container {
85
+ height: 100%;
86
+ border-right: none;
87
+ }
88
+
89
+ /**
90
+ * Properties Panel
91
+ */
92
+ .fjs-pgl-properties-container {
93
+ position: relative;
94
+ display: flex;
95
+ height: 100%;
96
+ width: 250px;
97
+ overflow-y: auto;
98
+ background-color: var(--color-properties-container-background);
99
+ }
100
+
101
+ .fjs-pgl-properties-container .fjs-properties-container {
102
+ --properties-panel-width: 250px;
103
+ }
104
+
105
+ .fjs-pgl-properties-container .bio-properties-panel {
106
+ --font-family: var(--font-family);
107
+ }
108
+
109
+ /**
110
+ * Section
111
+ */
112
+ .fjs-pgl-section {
113
+ display: flex;
114
+ flex-direction: column;
115
+ justify-content: stretch;
116
+ }
117
+
118
+ .fjs-pgl-section:nth-child(1),
119
+ .fjs-pgl-section:nth-child(2) {
120
+ border-bottom: double 3px var(--color-section-border);
121
+ }
122
+
123
+ .fjs-pgl-section:nth-child(1),
124
+ .fjs-pgl-section:nth-child(3) {
125
+ border-right: double 3px var(--color-section-border);
126
+ }
127
+
128
+ .fjs-pgl-section .header {
129
+ background: var(--color-section-header-background);
130
+ font-size: 1rem;
131
+ margin: 0;
132
+ line-height: 2em;
133
+ padding: .2em .5em;
134
+ border-bottom: solid 1px var(--color-section-header-border-bottom);
135
+ }
136
+
137
+ .fjs-pgl-section .header-items {
138
+ float: right;
139
+ }
140
+
141
+ .fjs-pgl-section .body {
142
+ flex: 1;
143
+ overflow: hidden;
144
+ }
145
+
146
+ .fjs-pgl-modal {
147
+ z-index: var(--modal-zindex);
148
+ }
149
+
150
+ .fjs-pgl-modal .fjs-pgl-modal-backdrop {
151
+ background: rgba(0 0 0 / .5);
152
+ position: absolute;
153
+ top: 0;
154
+ left: 0;
155
+ bottom: 0;
156
+ right: 0;
157
+ z-index: var(--modal-zindex);
158
+ }
159
+
160
+ .fjs-pgl-modal-content {
161
+ position: absolute;
162
+ top: 50%;
163
+ left: 50%;
164
+ max-width: 100%;
165
+ width: 500px;
166
+ overflow-y: auto;
167
+ max-height: 80%;
168
+ transform: translate(-40%, -50%);
169
+ z-index: var(--modal-zindex);
170
+
171
+ font-size: 14px;
172
+
173
+ padding: 20px;
174
+
175
+ background: var(--color-white);
176
+ }
177
+
178
+ .fjs-pgl-modal-content textarea {
179
+ width: 100%;
180
+ height: 300px;
181
+ overflow: auto;
182
+ }
183
+
184
+ .fjs-pgl-modal-footer {
185
+ margin-top: 20px;
186
+
187
+ text-align: right;
188
+ }
189
+
190
+ .fjs-pgl-form-container {
191
+ height: 100%;
192
+ width: 100%;
193
+ overflow: hidden;
194
+ }
195
+
196
+ .fjs-pgl-form-container .fjs-container .cds--grid .cds--row {
197
+ margin-left: -1rem;
198
+ margin-right: -1rem;
199
+ }
200
+
201
+ .fjs-pgl-form-container .fjs-form-editor {
202
+ width: 100%;
203
+ }
204
+
205
+ .fjs-pgl-text-container {
206
+ height: 100%;
207
+ width: 100%;
208
+ box-sizing: border-box;
209
+ border: none;
210
+ border-radius: 0;
211
+ position: relative;
212
+ }
213
+
214
+ .fjs-pgl-text-container > .cm-editor {
215
+ font-size: .9em;
216
+ height: 100%;
217
+ position: absolute !important;
218
+ top: 0;
219
+ left: 0;
220
+ right: 0;
221
+ bottom: 0;
222
+ }
223
+
224
+ .fjs-pgl-text-container > .cm-editor > .cm-scroller {
225
+ font-family: var(--font-family-monospace);
226
+ overflow: auto !important;
227
+ }
228
+
229
+ .fjs-pgl-form-container > .fjs-container {
230
+ overflow: auto;
231
+ }
232
+
233
+ .fjs-pgl-button {
234
+ color: var(--color-text);
235
+ background-color: var(--color-white);
236
+
237
+ border-width: 1px;
238
+ border-style: solid;
239
+ border-radius: 3px;
240
+
241
+ font-family: var(--font-family);
242
+ }
243
+
244
+ .fjs-pgl-button-default {
245
+ padding: 7px 10px;
246
+ }
247
+
248
+ .fjs-pgl-button:hover {
249
+ background-color: var(--color-button-hover);
250
+ }
251
+
252
+ .fjs-pgl-button + .fjs-pgl-button {
253
+ margin-left: 1em;
254
+ }
255
+
256
+ .fjs-pgl-parent {
257
+ width: 100%;
258
+ height: 100%;
259
+ }
260
260
 
@@ -59522,9 +59522,9 @@
59522
59522
  };
59523
59523
  const parentExpressionContextInfo = F$1(LocalExpressionContext);
59524
59524
  return e(d$1, {
59525
- children: displayValues.map((value, index) => e(RepetitionScaffold, {
59526
- index: index,
59527
- value: value,
59525
+ children: displayValues.map((itemValue, itemIndex) => e(RepetitionScaffold, {
59526
+ itemIndex: itemIndex,
59527
+ itemValue: itemValue,
59528
59528
  parentExpressionContextInfo: parentExpressionContextInfo,
59529
59529
  repeaterField: repeaterField,
59530
59530
  RowsRenderer: RowsRenderer,
@@ -59532,7 +59532,7 @@
59532
59532
  onDeleteItem: onDeleteItem,
59533
59533
  showRemove: showRemove,
59534
59534
  ...restProps
59535
- }, index))
59535
+ }, itemIndex))
59536
59536
  });
59537
59537
  }
59538
59538
  RepeatFooter(props) {
@@ -59629,8 +59629,8 @@
59629
59629
  * Individual repetition of a repeated field and context scaffolding.
59630
59630
  *
59631
59631
  * @param {Object} props
59632
- * @param {number} props.index
59633
- * @param {Object} props.value
59632
+ * @param {number} props.itemIndex
59633
+ * @param {Object} props.itemValue
59634
59634
  * @param {Object} props.parentExpressionContextInfo
59635
59635
  * @param {Object} props.repeaterField
59636
59636
  * @param {Function} props.RowsRenderer
@@ -59641,8 +59641,8 @@
59641
59641
 
59642
59642
  const RepetitionScaffold = props => {
59643
59643
  const {
59644
- index,
59645
- value,
59644
+ itemIndex,
59645
+ itemValue,
59646
59646
  parentExpressionContextInfo,
59647
59647
  repeaterField,
59648
59648
  RowsRenderer,
@@ -59655,15 +59655,15 @@
59655
59655
  ...restProps,
59656
59656
  indexes: {
59657
59657
  ...(indexes || {}),
59658
- [repeaterField.id]: index
59658
+ [repeaterField.id]: itemIndex
59659
59659
  }
59660
- }), [index, indexes, repeaterField.id, restProps]);
59660
+ }), [itemIndex, indexes, repeaterField.id, restProps]);
59661
59661
  const localExpressionContextInfo = d(() => ({
59662
59662
  data: parentExpressionContextInfo.data,
59663
- this: value,
59663
+ this: itemValue,
59664
59664
  parent: buildExpressionContext(parentExpressionContextInfo),
59665
- i: [...parentExpressionContextInfo.i, index + 1]
59666
- }), [index, parentExpressionContextInfo, value]);
59665
+ i: [...parentExpressionContextInfo.i, itemIndex + 1]
59666
+ }), [itemIndex, parentExpressionContextInfo, itemValue]);
59667
59667
  return !showRemove ? e(LocalExpressionContext.Provider, {
59668
59668
  value: localExpressionContextInfo,
59669
59669
  children: e(RowsRenderer, {
@@ -59682,8 +59682,8 @@
59682
59682
  }), e("button", {
59683
59683
  type: "button",
59684
59684
  class: "fjs-repeat-row-remove",
59685
- "aria-label": `Remove list item ${index + 1}`,
59686
- onClick: () => onDeleteItem(index),
59685
+ "aria-label": `Remove list item ${itemIndex + 1}`,
59686
+ onClick: () => onDeleteItem(itemIndex),
59687
59687
  children: e("div", {
59688
59688
  class: "fjs-repeat-row-remove-icon-container",
59689
59689
  children: e(DeleteSvg, {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-playground",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "A form-js playground",
5
5
  "files": [
6
6
  "dist"
@@ -44,8 +44,8 @@
44
44
  "url": "https://github.com/bpmn-io"
45
45
  },
46
46
  "dependencies": {
47
- "@bpmn-io/form-js-editor": "^1.7.2",
48
- "@bpmn-io/form-js-viewer": "^1.7.2",
47
+ "@bpmn-io/form-js-editor": "^1.7.3",
48
+ "@bpmn-io/form-js-viewer": "^1.7.3",
49
49
  "@codemirror/autocomplete": "^6.12.0",
50
50
  "@codemirror/commands": "^6.1.2",
51
51
  "@codemirror/lang-json": "^6.0.1",
@@ -70,5 +70,5 @@
70
70
  "rollup-plugin-css-only": "^4.0.0",
71
71
  "style-loader": "^3.3.0"
72
72
  },
73
- "gitHead": "bcedc83096d7db0d89d64b1d6c0faf776d133dab"
73
+ "gitHead": "495efb051b4ff6a8f8abebedd035a95651345f9f"
74
74
  }