@bpmn-io/form-js-editor 0.11.1 → 0.12.1
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/dist/assets/form-js-editor.css +180 -54
- package/dist/assets/properties-panel.css +1016 -1016
- package/dist/index.cjs +714 -397
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +696 -366
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +2 -2
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/features/palette/components/Palette.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/SelectEntries.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/factories/index.d.ts +1 -0
- package/dist/types/features/properties-panel/entries/factories/simpleBoolEntryFactory.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/index.d.ts +1 -0
- package/dist/types/render/EditorFormFields.d.ts +3 -0
- package/dist/types/render/components/Util.d.ts +3 -0
- package/dist/types/render/components/editor-form-fields/EditorText.d.ts +8 -0
- package/dist/types/render/components/editor-form-fields/index.d.ts +2 -0
- package/dist/types/render/components/icons/index.d.ts +1 -0
- package/dist/types/render/index.d.ts +2 -2
- package/dist/types/render/util/Cursor.d.ts +3 -0
- package/dist/types/{src/types.d.ts → types.d.ts} +0 -0
- package/package.json +7 -7
|
@@ -15,13 +15,27 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.fjs-palette-container {
|
|
18
|
-
--color-palette-
|
|
18
|
+
--color-palette-text: var(--color-grey-225-10-15);
|
|
19
|
+
--color-palette-container-background: var(--color-grey-225-10-95);
|
|
19
20
|
--color-palette-container-border: var(--color-grey-225-10-80);
|
|
20
|
-
--color-palette-header
|
|
21
|
+
--color-palette-header: var(--color-text);
|
|
21
22
|
--color-palette-header-background: var(--color-grey-225-10-95);
|
|
22
|
-
--color-palette-header-border: var(--color-grey-225-10-
|
|
23
|
+
--color-palette-header-border: var(--color-grey-225-10-85);
|
|
24
|
+
--color-palette-search: var(--color-palette-text);
|
|
25
|
+
--color-palette-search-icon: var(--color-grey-225-10-35);
|
|
26
|
+
--color-palette-search-icon-hover: var(--color-grey-225-10-15);
|
|
27
|
+
--color-palette-search-background: var(--color-white);
|
|
28
|
+
--color-palette-search-border: var(--color-grey-225-10-75);
|
|
29
|
+
--color-palette-search-focus-background: var(--color-blue-205-100-95);
|
|
30
|
+
--color-palette-search-focus-border: var(--color-blue-205-100-50);
|
|
31
|
+
--color-palette-search-clear-focus-border: var(--color-grey-225-10-50);
|
|
32
|
+
--color-palette-group-title: var(--color-palette-text);
|
|
33
|
+
--color-palette-field: var(--color-palette-text);
|
|
34
|
+
--color-palette-field-background: var(--color-white);
|
|
23
35
|
--color-palette-field-border: var(--color-grey-225-10-80);
|
|
24
|
-
--color-palette-field-hover-background: var(--color-grey-225-10-
|
|
36
|
+
--color-palette-field-hover-background: var(--color-grey-225-10-90);
|
|
37
|
+
--cursor-palette-field: grab;
|
|
38
|
+
--palette-width: 250px;
|
|
25
39
|
}
|
|
26
40
|
|
|
27
41
|
.fjs-properties-container {
|
|
@@ -76,11 +90,8 @@
|
|
|
76
90
|
.fjs-editor-container .fjs-element {
|
|
77
91
|
display: flex;
|
|
78
92
|
flex-direction: column;
|
|
79
|
-
margin: 0 5px;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.fjs-editor-container .fjs-element {
|
|
83
|
-
margin-top: 4px;
|
|
93
|
+
margin: 0 4px 5px 4px;
|
|
94
|
+
padding: 2px 0px;
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
.fjs-editor-container .fjs-element:first-of-type {
|
|
@@ -126,6 +137,33 @@
|
|
|
126
137
|
pointer-events: none;
|
|
127
138
|
}
|
|
128
139
|
|
|
140
|
+
.fjs-editor-container .fjs-drag-container {
|
|
141
|
+
user-select: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Cursor styles
|
|
146
|
+
*/
|
|
147
|
+
.fjs-cursor-grab {
|
|
148
|
+
cursor: -webkit-grab;
|
|
149
|
+
cursor: -moz-grab;
|
|
150
|
+
cursor: grab;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.fjs-cursor-grabbing {
|
|
154
|
+
cursor: -webkit-grabbing;
|
|
155
|
+
cursor: -moz-grabbing;
|
|
156
|
+
cursor: grabbing;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.fjs-cursor-crosshair {
|
|
160
|
+
cursor: crosshair;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.fjs-cursor-move {
|
|
164
|
+
cursor: move;
|
|
165
|
+
}
|
|
166
|
+
|
|
129
167
|
/**
|
|
130
168
|
* Context Pad
|
|
131
169
|
*/
|
|
@@ -161,13 +199,13 @@
|
|
|
161
199
|
}
|
|
162
200
|
|
|
163
201
|
.fjs-palette-container {
|
|
164
|
-
width:
|
|
202
|
+
width: var(--palette-width);
|
|
165
203
|
background-color: var(--color-palette-container-background);
|
|
166
204
|
border-right: solid 1px var(--color-palette-container-border);
|
|
167
205
|
font-family: var(--font-family);
|
|
168
206
|
}
|
|
169
207
|
|
|
170
|
-
.fjs-
|
|
208
|
+
.fjs-palette-container .fjs-palette {
|
|
171
209
|
height: 100%;
|
|
172
210
|
display: flex;
|
|
173
211
|
flex-direction: column;
|
|
@@ -175,39 +213,136 @@
|
|
|
175
213
|
}
|
|
176
214
|
|
|
177
215
|
.fjs-palette-container .fjs-palette-header {
|
|
178
|
-
font-size:
|
|
216
|
+
font-size: 14px;
|
|
179
217
|
font-weight: bold;
|
|
180
|
-
color: var(--color-palette-header
|
|
181
|
-
padding: 10px;
|
|
218
|
+
color: var(--color-palette-header);
|
|
219
|
+
padding: 10px 15px;
|
|
182
220
|
border-bottom: solid 1px var(--color-palette-header-border);
|
|
183
|
-
background
|
|
221
|
+
background: var(--color-palette-header-background);
|
|
222
|
+
user-select: none;
|
|
184
223
|
}
|
|
185
224
|
|
|
186
|
-
.fjs-palette-container .fjs-palette-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
225
|
+
.fjs-palette-container .fjs-palette-search-container {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: row;
|
|
228
|
+
padding: 4px;
|
|
229
|
+
margin: 15px;
|
|
230
|
+
margin-top: 12px;
|
|
231
|
+
color: var(--color-palette-search);
|
|
232
|
+
border: 1px solid var(--color-palette-search-border);
|
|
233
|
+
background-color: var(--color-palette-search-background);
|
|
234
|
+
border-radius: 2px;
|
|
235
|
+
font-size: 14px;
|
|
190
236
|
}
|
|
191
237
|
|
|
192
|
-
.fjs-palette-container .fjs-palette-
|
|
193
|
-
|
|
238
|
+
.fjs-palette-container .fjs-palette-search-container:focus-within {
|
|
239
|
+
outline: none;
|
|
240
|
+
background-color: var(--color-palette-search-focus-background);
|
|
241
|
+
border: 1px solid var(--color-palette-search-focus-border);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.fjs-palette-container .fjs-palette-search-icon {
|
|
245
|
+
margin-right: 6px;
|
|
194
246
|
display: flex;
|
|
195
|
-
white-space: pre;
|
|
196
|
-
justify-content: flex-start;
|
|
197
247
|
align-items: center;
|
|
198
|
-
|
|
199
|
-
|
|
248
|
+
justify-content: center;
|
|
249
|
+
color: var(--color-palette-search-icon);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.fjs-palette-container .fjs-palette-search {
|
|
253
|
+
background-color: inherit;
|
|
254
|
+
font-family: inherit;
|
|
255
|
+
margin: 0;
|
|
256
|
+
border: none;
|
|
257
|
+
padding: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.fjs-palette-container .fjs-palette-search:focus {
|
|
261
|
+
outline: none;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.fjs-palette-container .fjs-palette-search-clear {
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
align-items: center;
|
|
268
|
+
border: none;
|
|
269
|
+
margin-left: auto;
|
|
270
|
+
padding: 0;
|
|
271
|
+
background: transparent;
|
|
272
|
+
color: var(--color-palette-search-icon);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.fjs-palette-container .fjs-palette-search-clear svg {
|
|
276
|
+
margin: 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.fjs-palette-container .fjs-palette-search-clear:hover {
|
|
280
|
+
color: var(--color-palette-search-icon-hover);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.fjs-palette-container .fjs-palette-entries {
|
|
284
|
+
height: 100%;
|
|
285
|
+
overflow-x: hidden;
|
|
286
|
+
overflow-y: auto;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.fjs-palette-container .fjs-palette-group {
|
|
290
|
+
padding: 5px 15px;
|
|
291
|
+
padding-right: 0px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.fjs-palette-container .fjs-palette-group-title {
|
|
200
295
|
font-size: 14px;
|
|
201
|
-
|
|
296
|
+
font-weight: 500;
|
|
297
|
+
color: var(--color-palette-group-title);
|
|
298
|
+
user-select: none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.fjs-palette-container .fjs-palette-fields {
|
|
302
|
+
height: 100%;
|
|
303
|
+
display: flex;
|
|
304
|
+
flex-wrap: wrap;
|
|
305
|
+
gap: 3%;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.fjs-palette-field {
|
|
309
|
+
height: 68px;
|
|
310
|
+
margin: 5px 0;
|
|
311
|
+
display: flex;
|
|
312
|
+
flex-direction: column;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
font-size: 11px;
|
|
315
|
+
user-select: none;
|
|
316
|
+
color: var( --color-palette-field);
|
|
317
|
+
background: var(--color-palette-field-background);
|
|
202
318
|
}
|
|
203
319
|
|
|
204
|
-
.fjs-palette-container .fjs-palette-field
|
|
205
|
-
|
|
320
|
+
.fjs-palette-container .fjs-palette-field {
|
|
321
|
+
width: 68px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.fjs-palette-field .fjs-palette-field-icon {
|
|
325
|
+
margin: 0 auto;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.fjs-palette-field .fjs-palette-field-text {
|
|
329
|
+
text-align: center;
|
|
206
330
|
}
|
|
207
331
|
|
|
208
332
|
.fjs-palette-container .fjs-palette-field:hover {
|
|
209
333
|
background-color: var(--color-palette-field-hover-background);
|
|
210
|
-
cursor:
|
|
334
|
+
cursor: var(--cursor-palette-field);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.fjs-palette-container .fjs-palette-no-entries {
|
|
338
|
+
padding: 5px 15px;
|
|
339
|
+
font-size: 14px;
|
|
340
|
+
color: var(--color-palette-text);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.fjs-palette-field.gu-mirror {
|
|
344
|
+
transform: rotate(-15deg);
|
|
345
|
+
font-family: var(--font-family);
|
|
211
346
|
}
|
|
212
347
|
|
|
213
348
|
/**
|
|
@@ -236,6 +371,22 @@
|
|
|
236
371
|
transform: scale(1.3);
|
|
237
372
|
}
|
|
238
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Editor Form Fields
|
|
376
|
+
*/
|
|
377
|
+
.fjs-editor-container .fjs-form-field-placeholder {
|
|
378
|
+
color: var(--color-text-light);
|
|
379
|
+
font-style: italic;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.fjs-editor-container .fjs-form-field-placeholder svg {
|
|
383
|
+
width: 36px;
|
|
384
|
+
height: 36px;
|
|
385
|
+
vertical-align: middle;
|
|
386
|
+
margin-top: -2px;
|
|
387
|
+
margin-right: 2px;
|
|
388
|
+
}
|
|
389
|
+
|
|
239
390
|
/**
|
|
240
391
|
* Custom Dragula Styles
|
|
241
392
|
*/
|
|
@@ -268,28 +419,3 @@
|
|
|
268
419
|
pointer-events: none !important;
|
|
269
420
|
height: 54px !important;
|
|
270
421
|
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Compact editor overrides
|
|
274
|
-
*/
|
|
275
|
-
|
|
276
|
-
.fjs-editor-compact .fjs-hide-compact {
|
|
277
|
-
display: none;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.fjs-editor-compact .fjs-palette-container {
|
|
281
|
-
width: auto;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.fjs-editor-compact .fjs-palette-field {
|
|
285
|
-
justify-content: center;
|
|
286
|
-
flex-direction: column;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.fjs-editor-compact .fjs-palette-field-icon {
|
|
290
|
-
margin: 0;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.fjs-editor-compact .fjs-palette-header {
|
|
294
|
-
text-align: center;
|
|
295
|
-
}
|