@bpmn-io/form-js-editor 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
@@ -0,0 +1,22 @@
1
+ .gu-mirror {
2
+ position: fixed !important;
3
+ margin: 0 !important;
4
+ z-index: 9999 !important;
5
+ opacity: 0.8;
6
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
7
+ filter: alpha(opacity=80);
8
+ }
9
+ .gu-hide {
10
+ display: none !important;
11
+ }
12
+ .gu-unselectable {
13
+ -webkit-user-select: none !important;
14
+ -moz-user-select: none !important;
15
+ -ms-user-select: none !important;
16
+ user-select: none !important;
17
+ }
18
+ .gu-transit {
19
+ opacity: 0.2;
20
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
21
+ filter: alpha(opacity=20);
22
+ }
@@ -0,0 +1,1110 @@
1
+ /**
2
+ * Theming
3
+ */
4
+ .bio-properties-panel {
5
+ --color-grey-225-10-15: hsl(225, 10%, 15%);
6
+ --color-grey-225-10-35: hsl(225, 10%, 35%);
7
+ --color-grey-225-10-55: hsl(225, 10%, 55%);
8
+ --color-grey-225-10-75: hsl(225, 10%, 75%);
9
+ --color-grey-225-10-80: hsl(225, 10%, 80%);
10
+ --color-grey-225-10-85: hsl(225, 10%, 85%);
11
+ --color-grey-225-10-90: hsl(225, 10%, 90%);
12
+ --color-grey-225-10-95: hsl(225, 10%, 95%);
13
+ --color-grey-225-10-97: hsl(225, 10%, 97%);
14
+
15
+ --color-blue-205-100-35: hsl(205, 100%, 35%);
16
+ --color-blue-205-100-45: hsl(205, 100%, 45%);
17
+ --color-blue-205-100-50: hsl(205, 100%, 50%);
18
+ --color-blue-205-100-95: hsl(205, 100%, 95%);
19
+
20
+ --color-green-150-86-44: hsl(150, 86%, 44%);
21
+
22
+ --color-red-360-100-40: hsl(360, 100%, 40%);
23
+ --color-red-360-100-45: hsl(360, 100%, 45%);
24
+ --color-red-360-100-92: hsl(360, 100%, 92%);
25
+ --color-red-360-100-97: hsl(360, 100%, 97%);
26
+
27
+ --color-white: white;
28
+ --color-black: black;
29
+ --color-transparent: transparent;
30
+
31
+ --text-base-color: var(--color-grey-225-10-15);
32
+ --text-error-color: var(--color-red-360-100-45);
33
+ --link-color: var(--color-blue-205-100-50);
34
+
35
+ --description-color: var(--color-grey-225-10-35);
36
+ --description-code-background-color: var(--color-grey-225-10-97);
37
+ --description-code-border-color: var(--color-grey-225-10-85);
38
+ --description-list-item-color: var(--color-grey-225-10-35);
39
+
40
+ --placeholder-color: var(--color-grey-225-10-35);
41
+ --placeholder-background-color: var(--color-grey-225-10-95);
42
+
43
+ --header-background-color: var(--color-grey-225-10-95);
44
+ --header-icon-fill-color: var(--color-grey-225-10-15);
45
+ --header-bottom-border-color: var(--color-grey-225-10-75);
46
+
47
+ --group-background-color: var(--color-white);
48
+ --group-bottom-border-color: var(--color-grey-225-10-75);
49
+
50
+ --sticky-group-background-color: var(--color-grey-225-10-95);
51
+ --sticky-group-bottom-border-color: var(--color-grey-225-10-75);
52
+
53
+ --add-entry-fill-color: var(--color-grey-225-10-35);
54
+ --add-entry-hover-fill-color: var(--color-white);
55
+ --add-entry-hover-background-color: var(--color-blue-205-100-50);
56
+ --add-entry-label-color: var(--color-white);
57
+
58
+ --remove-entry-fill-color: var(--color-red-360-100-45);
59
+ --remove-entry-hover-background-color: var(--color-red-360-100-92);
60
+
61
+ --arrow-fill-color: var(--color-grey-225-10-35);
62
+ --arrow-hover-background-color: var(--color-grey-225-10-95);
63
+
64
+ --dot-color: var(--color-grey-225-10-35);
65
+
66
+ --list-badge-color: var(--color-white);
67
+ --list-badge-background-color: var(--color-grey-225-10-35);
68
+
69
+ --input-background-color: var(--color-grey-225-10-97);
70
+ --input-border-color: var(--color-grey-225-10-75);
71
+
72
+ --input-focus-background-color: var(--color-blue-205-100-95);
73
+ --input-focus-border-color: var(--color-blue-205-100-50);
74
+
75
+ --input-error-background-color: var(--color-red-360-100-97);
76
+ --input-error-border-color: var(--color-red-360-100-45);
77
+ --input-error-focus-border-color: var(--color-red-360-100-45);
78
+
79
+ --input-disabled-color: var(--color-grey-225-10-55);
80
+ --input-disabled-background-color: var(--color-grey-225-10-97);
81
+ --input-disabled-border-color: var(--color-grey-225-10-90);
82
+
83
+ --toggle-switch-on-background-color: var(--color-blue-205-100-50);
84
+ --toggle-switch-off-background-color: var(--color-grey-225-10-75);
85
+ --toggle-switch-switcher-background-color: var(--color-white);
86
+
87
+ --side-line-background-color: var(--color-grey-225-10-35);
88
+ --side-line-extension-background-color: var(--color-grey-225-10-35);
89
+
90
+ --list-entry-dot-background-color: var(--color-grey-225-10-35);
91
+ --list-entry-header-button-fill-color: var(--color-grey-225-10-35);
92
+ --list-entry-add-entry-empty-background-color: var(--color-blue-205-100-50);
93
+ --list-entry-add-entry-empty-hover-background-color: var(--color-blue-205-100-45);
94
+ --list-entry-add-entry-label-color: var(--color-white);
95
+ --list-entry-add-entry-background-color: var(--color-blue-205-100-50);
96
+ --list-entry-add-entry-fill-color: var(--color-white);
97
+
98
+ --dropdown-item-background-color: var(--color-white);
99
+ --dropdown-item-hover-background-color: var(--color-grey-225-10-95);
100
+ --dropdown-separator-background-color: var(--color-grey-225-10-75);
101
+
102
+ --feel-background-color: var(--color-grey-225-10-95);
103
+ --feel-active-color: var(--color-blue-205-100-45);
104
+ --feel-inactive-color: var(--color-grey-225-10-35);
105
+ --feel-hover-background-color: var(--color-grey-225-10-90);
106
+ --feel-active-background-color: var(--color-grey-225-10-95);
107
+
108
+ --feel-indicator-background-color: var(--color-grey-225-10-90);
109
+
110
+ --text-size-base: 14px;
111
+ --text-size-small: 13px;
112
+ --text-size-smallest: 12px;
113
+ --text-line-height: 21px;
114
+ --line-height-condensed: 17px;
115
+
116
+ --font-family: sans-serif;
117
+ --font-family-monospace: monospace;
118
+
119
+ display: flex;
120
+ flex-direction: column;
121
+ flex: 1;
122
+ position: relative;
123
+ height: 100%;
124
+ width: 100%;
125
+ overflow: hidden;
126
+ }
127
+
128
+ .bio-properties-panel {
129
+ color: var(--text-base-color);
130
+ }
131
+
132
+ .bio-properties-panel * {
133
+ font-size: var(--text-size-base);
134
+ line-height: var(--text-line-height);
135
+ font-weight: 400;
136
+ box-sizing: border-box;
137
+ }
138
+
139
+ .bio-properties-panel {
140
+ font-family: var(--font-family);
141
+ }
142
+
143
+ /**
144
+ * Placeholder (empty, multi select, ...)
145
+ */
146
+ .bio-properties-panel-placeholder {
147
+ position: absolute;
148
+ display: flex;
149
+ flex-direction: column;
150
+ justify-content: center;
151
+ align-items: center;
152
+ top: 0;
153
+ right: 0;
154
+ bottom: 0;
155
+ left: 0;
156
+ background-color: var(--placeholder-background-color);
157
+ }
158
+
159
+ .bio-properties-panel-placeholder-text {
160
+ color: var(--placeholder-color);
161
+ font-size: var(--text-size-base);
162
+ text-align: center;
163
+ margin: 12px 48px;
164
+ }
165
+
166
+ /**
167
+ * Header
168
+ */
169
+ .bio-properties-panel-header {
170
+ display: flex;
171
+ flex-direction: row;
172
+ align-items: center;
173
+ font-size: var(--text-size-base);
174
+ padding: 16px 10px;
175
+ background-color: var(--header-background-color);
176
+ border-bottom: 1px solid var(--header-bottom-border-color);
177
+ width: 100%;
178
+ z-index: 10;
179
+ max-height: 64px;
180
+ overflow: hidden;
181
+ }
182
+
183
+ .bio-properties-panel-header-icon {
184
+ fill: var(--header-icon-fill-color);
185
+ display: flex;
186
+ flex-direction: row;
187
+ align-items: center;
188
+ justify-content: center;
189
+ width: 32px;
190
+ height: 32px;
191
+ }
192
+
193
+ .bio-properties-panel-header-labels {
194
+ overflow: hidden;
195
+ margin-left: 12px;
196
+ user-select: none;
197
+ }
198
+
199
+ .bio-properties-panel-header-type {
200
+ font-size: var(--text-size-smallest);
201
+ font-weight: 600;
202
+ white-space: nowrap;
203
+ text-overflow: ellipsis;
204
+ overflow: hidden;
205
+ text-transform: uppercase;
206
+ }
207
+
208
+ .bio-properties-panel-header-label {
209
+ white-space: nowrap;
210
+ text-overflow: ellipsis;
211
+ overflow: hidden;
212
+ margin-top: -6px;
213
+ }
214
+
215
+ .bio-properties-panel-header-actions {
216
+ margin-left: auto;
217
+ margin-top: auto;
218
+ }
219
+
220
+ /**
221
+ * Scroll container
222
+ */
223
+ .bio-properties-panel-scroll-container {
224
+ overflow-y: auto;
225
+ overflow-x: hidden;
226
+ flex: 1;
227
+ }
228
+
229
+ /**
230
+ * Groups
231
+ */
232
+ .bio-properties-panel-group {
233
+ background-color: var(--group-background-color);
234
+ border-bottom: 1px solid var(--group-bottom-border-color);
235
+ position: relative;
236
+ }
237
+
238
+ .bio-properties-panel-group-header {
239
+ display: flex;
240
+ flex-direction: row;
241
+ align-items: center;
242
+ font-size: var(--text-size-base);
243
+ height: 32px;
244
+ user-select: none;
245
+ justify-content: space-between;
246
+ margin-bottom: -1px; /* avoid double borders */
247
+ position: relative; /* browsers not supporting sticky */
248
+ position: -webkit-sticky; /* for safari */
249
+ position: sticky;
250
+ top: 0;
251
+ z-index: 10;
252
+ }
253
+
254
+ .bio-properties-panel-group-header .bio-properties-panel-group-header-title {
255
+ white-space: nowrap;
256
+ overflow: hidden;
257
+ text-overflow: ellipsis;
258
+ margin: 1px 12px 0;
259
+ }
260
+
261
+ .bio-properties-panel-group-header.open .bio-properties-panel-group-header-title {
262
+ font-weight: 500;
263
+ }
264
+
265
+ .bio-properties-panel-group-header.sticky {
266
+ background-color: var(--sticky-group-background-color);
267
+ border-bottom: 1px solid var(--sticky-group-bottom-border-color);
268
+ }
269
+
270
+ .bio-properties-panel-group-header-buttons {
271
+ display: flex;
272
+ }
273
+
274
+ .bio-properties-panel-group-header-buttons .bio-properties-panel-group-header-button {
275
+ display: inline-flex;
276
+ justify-content: center;
277
+ align-items: center;
278
+ align-self: center;
279
+ height: 22px;
280
+ line-height: 22px;
281
+ min-width: 22px;
282
+ margin: 5px;
283
+ padding: 0 3px;
284
+ border: none;
285
+ background: none;
286
+ }
287
+
288
+ .bio-properties-panel-group-header-buttons .bio-properties-panel-group-header-buttons:last-child {
289
+ margin-right: 0;
290
+ }
291
+
292
+ .bio-properties-panel-add-entry {
293
+ fill: var(--add-entry-fill-color);
294
+ border-radius: 11px;
295
+ }
296
+
297
+ .bio-properties-panel-group-header.empty .bio-properties-panel-add-entry {
298
+ margin-right: 69px;
299
+ }
300
+
301
+ .bio-properties-panel-group-header.empty .bio-properties-panel-add-entry:hover {
302
+ margin-right: 19px;
303
+ }
304
+
305
+ .bio-properties-panel-group-header.empty .bio-properties-panel-add-entry-label {
306
+ display: none;
307
+ color: var(--add-entry-label-color);
308
+ padding: 0 6px 0 2px;
309
+ }
310
+
311
+ .bio-properties-panel-group-header-button.bio-properties-panel-add-entry:hover {
312
+ background-color: var(--add-entry-hover-background-color);
313
+ fill: var(--add-entry-hover-fill-color);
314
+ }
315
+
316
+ .bio-properties-panel-group-header-button.bio-properties-panel-add-entry:hover .bio-properties-panel-add-entry-label {
317
+ display: block;
318
+ }
319
+
320
+ .bio-properties-panel-group-entries {
321
+ display: none;
322
+ }
323
+
324
+ .bio-properties-panel-group-entries.open {
325
+ display: block;
326
+ }
327
+
328
+ .bio-properties-panel-arrow {
329
+ display: flex;
330
+ justify-content: center;
331
+ text-align: center;
332
+ fill: var(--arrow-fill-color);
333
+ min-width: 22px;
334
+ border-radius: 11px;
335
+ border: none;
336
+ background: none;
337
+ }
338
+
339
+ .bio-properties-panel-arrow:hover {
340
+ background-color: var(--arrow-hover-background-color);
341
+ }
342
+
343
+ .bio-properties-panel-arrow-down {
344
+ transform: rotate(90deg);
345
+ }
346
+
347
+ .bio-properties-panel-dot {
348
+ align-self: center;
349
+ height: 8px;
350
+ min-width: 8px;
351
+ border-radius: 50%;
352
+ margin: 12px;
353
+ background-color: var(--dot-color);
354
+ }
355
+
356
+ /**
357
+ * Lists
358
+ */
359
+ .bio-properties-panel-list {
360
+ display: none;
361
+ }
362
+
363
+ .bio-properties-panel-list.open {
364
+ display: block;
365
+ margin-bottom: 6px;
366
+ padding-bottom: 2px;
367
+ }
368
+
369
+ .bio-properties-panel-list-badge {
370
+ height: 22px;
371
+ min-width: 22px;
372
+ color: var(--list-badge-color);
373
+ border-radius: 11px;
374
+ font-size: var(--text-size-small);
375
+ line-height: 22px;
376
+ text-align: center;
377
+ user-select: none;
378
+ padding: 0 5px;
379
+ margin: 5px;
380
+ background-color: var(--list-badge-background-color);
381
+ }
382
+
383
+ /**
384
+ * Basic entries
385
+ */
386
+ .bio-properties-panel-entry {
387
+ margin: 2px 32px 6px 12px;
388
+ }
389
+
390
+ .bio-properties-panel-entry:last-child {
391
+ padding-bottom: 10px;
392
+ }
393
+
394
+ .bio-properties-panel-label {
395
+ display: block;
396
+ font-size: var(--text-size-small);
397
+ margin: 2px 0 1px;
398
+ }
399
+
400
+ .bio-properties-panel-description,
401
+ .bio-properties-panel-description p,
402
+ .bio-properties-panel-description span,
403
+ .bio-properties-panel-description div {
404
+ color: var(--description-color);
405
+ display: block;
406
+ margin: 2px 0 4px;
407
+ line-height: var(--line-height-condensed);
408
+ font-weight: 400;
409
+ font-size: var(--text-size-small);
410
+ }
411
+
412
+ .bio-properties-panel-description code {
413
+ color: var(--description-color);
414
+ font-family: var(--font-family);
415
+ font-size: var(--text-size-small);
416
+ line-height: var(--line-height-condensed);
417
+ padding: 0 2px;
418
+ background-color: var(--description-code-background-color);
419
+ border: 1px solid var(--description-code-border-color);
420
+ border-radius: 3px;
421
+ }
422
+
423
+ .bio-properties-panel-description pre code {
424
+ width: 100%;
425
+ display: block;
426
+ overflow-x: auto;
427
+ padding: 4px 6px;
428
+ font-family: var(--font-family-monospace);
429
+ }
430
+
431
+ .bio-properties-panel-description ul {
432
+ padding: 0;
433
+ margin: 0 0 0 12px;
434
+ list-style-type: disc;
435
+ }
436
+
437
+ .bio-properties-panel-description li {
438
+ color: var(--description-list-item-color);
439
+ margin: 0 0 0 12px;
440
+ }
441
+
442
+ .bio-properties-panel-description a {
443
+ color: var(--link-color);
444
+ font-size: var(--text-size-small);
445
+ text-decoration: underline;
446
+ }
447
+
448
+ .bio-properties-panel-feelers-editor.bio-properties-panel-input {
449
+ padding: 0;
450
+ }
451
+
452
+ .bio-properties-panel-feelers-input .cm-editor
453
+ {
454
+ min-height: 32px;
455
+ max-height: 215px;
456
+ background-color: transparent;
457
+ }
458
+
459
+ .bio-properties-panel-feelers-editor .cm-editor.cm-focused,
460
+ .bio-properties-panel-feelers-input .cm-editor.cm-focused {
461
+ outline: none;
462
+ }
463
+
464
+ .bio-properties-panel-input {
465
+ padding: 3px 6px 2px;
466
+ border: 1px solid var(--input-border-color);
467
+ border-radius: 2px;
468
+ background-color: var(--input-background-color);
469
+ font-size: var(--text-size-base);
470
+ font-family: inherit;
471
+ }
472
+
473
+ .bio-properties-panel-input[type=number],
474
+ select.bio-properties-panel-input,
475
+ textarea.bio-properties-panel-input,
476
+ .bio-properties-panel-input[type=text] {
477
+ display: block;
478
+ width: 100%;
479
+ }
480
+
481
+ textarea.bio-properties-panel-input {
482
+ min-height: 28px;
483
+ }
484
+
485
+ .bio-properties-panel-input:focus,
486
+ .bio-properties-panel-input:focus-within {
487
+ outline: none;
488
+ background-color: var(--input-focus-background-color);
489
+ border: 1px solid var(--input-focus-border-color);
490
+ }
491
+
492
+ .bio-properties-panel-textfield:focus-within,
493
+ .bio-properties-panel-feel-entry:focus-within {
494
+ --input-background-color: var(--input-focus-background-color);
495
+ --input-border-color: var(--input-focus-border-color);
496
+ }
497
+
498
+ .bio-properties-panel-input:disabled {
499
+ border-color: var(--input-disabled-border-color);
500
+ background-color: var(--input-disabled-background-color);
501
+ color: var(--input-disabled-color);
502
+ }
503
+
504
+ select.bio-properties-panel-input {
505
+ padding: 4px 6px;
506
+ }
507
+
508
+ .bio-properties-panel-input-monospace {
509
+ font-family: var(--font-family-monospace);
510
+ }
511
+
512
+ .bio-properties-panel-input[type="checkbox"], .bio-properties-panel-input[type="radio"] {
513
+ margin: 0;
514
+ vertical-align: middle;
515
+ }
516
+
517
+ .bio-properties-panel-input[type="checkbox"]:focus {
518
+ outline: 2px solid var(--input-focus-border-color);
519
+ outline-offset: 0;
520
+ }
521
+
522
+ .bio-properties-panel-checkbox > .bio-properties-panel-label {
523
+ display: inline-block;
524
+ font-size: var(--text-size-base);
525
+ margin-left: 6px;
526
+ margin-top: auto;
527
+ vertical-align: middle;
528
+ }
529
+
530
+ .bio-properties-panel-checkbox-entry + .bio-properties-panel-checkbox-entry {
531
+ margin-top: -8px;
532
+ }
533
+
534
+ .bio-properties-panel-checkbox-entry > .bio-properties-panel-description {
535
+ margin-left: 18px;
536
+ }
537
+
538
+ textarea.bio-properties-panel-input {
539
+ resize: vertical;
540
+ }
541
+
542
+ .bio-properties-panel-entry.has-error .bio-properties-panel-input {
543
+ border-color: var(--input-error-border-color);
544
+ background-color: var(--input-error-background-color);
545
+ }
546
+
547
+ .bio-properties-panel-entry.has-error .bio-properties-panel-feel-indicator {
548
+ border-color: var(--input-error-border-color);
549
+ }
550
+
551
+ .bio-properties-panel-entry.has-error .bio-properties-panel-input:focus,
552
+ .bio-properties-panel-entry.has-error .bio-properties-panel-feel-indicator:focus {
553
+ border-color: var(--input-error-focus-border-color);
554
+ }
555
+
556
+ .bio-properties-panel-entry .bio-properties-panel-error {
557
+ color: var(--text-error-color);
558
+ margin: 4px 0;
559
+ font-size: var(--text-size-small);
560
+ }
561
+
562
+ .bio-properties-panel-simple {
563
+ width: 100%;
564
+ margin-right: 8px;
565
+ }
566
+
567
+ .bio-properties-panel-simple + .bio-properties-panel-remove-entry {
568
+ margin: auto;
569
+ }
570
+
571
+ /**
572
+ * Toggle Switch
573
+ */
574
+ .bio-properties-panel-toggle-switch-entry + .bio-properties-panel-toggle-switch-entry {
575
+ margin-top: -8px;
576
+ }
577
+
578
+ .bio-properties-panel-toggle-switch-entry > .bio-properties-panel-description {
579
+ margin-left: 38px;
580
+ }
581
+
582
+ .bio-properties-panel-toggle-switch .bio-properties-panel-field-wrapper {
583
+ display: flex;
584
+ flex-direction: row;
585
+ align-items: center;
586
+ }
587
+
588
+ .bio-properties-panel-toggle-switch.inline {
589
+ display: flex;
590
+ flex-direction: row;
591
+ }
592
+
593
+ .bio-properties-panel-toggle-switch.inline .bio-properties-panel-field-wrapper {
594
+ margin-left: auto;
595
+ }
596
+
597
+ .bio-properties-panel-toggle-switch > .bio-properties-panel-label {
598
+ font-size: var(--text-size-base);
599
+ }
600
+
601
+ .bio-properties-panel-toggle-switch.inline > .bio-properties-panel-label {
602
+ font-size: var(--text-size-small);
603
+ }
604
+
605
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__label {
606
+ margin: 0;
607
+ margin-left: 6px;
608
+ font-size: var(--text-size-base);
609
+ }
610
+
611
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher {
612
+ position: relative;
613
+ width: 32px;
614
+ height: 16px;
615
+ }
616
+
617
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher:focus-within {
618
+ outline: 2px solid var(--input-focus-border-color);
619
+ outline-offset: 1px;
620
+ }
621
+
622
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher input[type='checkbox'] {
623
+ opacity: 0;
624
+ width: 0;
625
+ height: 0;
626
+ }
627
+
628
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher .bio-properties-panel-toggle-switch__slider {
629
+ position: absolute;
630
+ cursor: pointer;
631
+ top: 0;
632
+ left: 0;
633
+ right: 0;
634
+ bottom: 0;
635
+ background-color: var(--toggle-switch-off-background-color);
636
+ -webkit-transition: 0.4s;
637
+ transition: 0.4s;
638
+ border-radius: 34px;
639
+ }
640
+
641
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher .bio-properties-panel-toggle-switch__slider:before {
642
+ position: absolute;
643
+ content: "";
644
+ height: 12px;
645
+ width: 12px;
646
+ left: 2px;
647
+ bottom: 2px;
648
+ background-color: var(--toggle-switch-switcher-background-color);
649
+ -webkit-transition: 0.4s;
650
+ transition: 0.4s;
651
+ border-radius: 50%;
652
+ }
653
+
654
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher input[type='checkbox']:checked + .bio-properties-panel-toggle-switch__slider {
655
+ background-color: var(--toggle-switch-on-background-color);
656
+ box-shadow: 0 0 1px ;
657
+ }
658
+
659
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher input[type='checkbox']:checked + .bio-properties-panel-toggle-switch__slider:before {
660
+ -webkit-transform: translateX(16px);
661
+ -ms-transform: translateX(16px);
662
+ transform: translateX(16px);
663
+ }
664
+
665
+ /**
666
+ * Collapsible entries
667
+ */
668
+ .bio-properties-panel-collapsible-entry-entries {
669
+ position: relative;
670
+ display: none;
671
+ }
672
+
673
+ .bio-properties-panel-collapsible-entry-entries .bio-properties-panel-entry:last-child {
674
+ padding-bottom: 0;
675
+ }
676
+
677
+ .bio-properties-panel-collapsible-entry-entries.open {
678
+ display: block;
679
+ }
680
+
681
+ .bio-properties-panel-collapsible-entry-entries {
682
+ padding-left: 20px;
683
+ margin-bottom: 10px;
684
+ position: relative;
685
+ display: none;
686
+ }
687
+
688
+ .bio-properties-panel-collapsible-entry-header {
689
+ position: relative;
690
+ display: flex;
691
+ justify-content: space-between;
692
+ align-items: center;
693
+ overflow: hidden;
694
+ }
695
+
696
+ .bio-properties-panel-collapsible-entry-header .bio-properties-panel-collapsible-entry-header-title {
697
+ padding: 2px 24px 2px 32px;
698
+ font-size: var(--text-size-base);
699
+ white-space: nowrap;
700
+ overflow: hidden;
701
+ text-overflow: ellipsis;
702
+ user-select: none;
703
+ }
704
+
705
+ .bio-properties-panel-collapsible-entry-arrow {
706
+ position: absolute;
707
+ top: 2px;
708
+ left: 6px;
709
+ padding: 0 3px;
710
+ height: 22px;
711
+ display: inline-flex;
712
+ justify-content: center;
713
+ align-items: center;
714
+ align-self: center;
715
+ }
716
+
717
+ .bio-properties-panel-remove-entry {
718
+ display: flex;
719
+ align-items: center;
720
+ justify-content: center;
721
+ margin-right: 5px;
722
+ padding: 0;
723
+ width: 22px;
724
+ height: 22px;
725
+ fill: var(--remove-entry-fill-color);
726
+ border-radius: 50%;
727
+ border: none;
728
+ background: none;
729
+ visibility: hidden;
730
+ }
731
+
732
+ .bio-properties-panel-remove-entry:hover {
733
+ background-color: var(--remove-entry-hover-background-color);
734
+ }
735
+
736
+ .bio-properties-panel-list-entry-item:hover .bio-properties-panel-remove-list-entry,
737
+ .bio-properties-panel-collapsible-entry:hover > .bio-properties-panel-collapsible-entry-header .bio-properties-panel-remove-entry,
738
+ .bio-properties-panel-collapsible-entry:focus-within > .bio-properties-panel-collapsible-entry-header .bio-properties-panel-remove-entry
739
+ {
740
+ visibility: visible;
741
+ }
742
+
743
+ /* Side line */
744
+ .bio-properties-panel-collapsible-entry-entries::before {
745
+ content: "";
746
+ position: absolute;
747
+ left: 16px;
748
+ width: 2px;
749
+ top: -6px;
750
+ bottom: 12px;
751
+ background-color: var(--side-line-background-color);
752
+ border-radius: 1px;
753
+ }
754
+
755
+ /* Side line extension for non-list entry or open list entry positioned as the last one. */
756
+ .bio-properties-panel-collapsible-entry-entries .bio-properties-panel-entry:not(.bio-properties-panel-list-entry):last-child,
757
+ .bio-properties-panel-list-entry.open:last-child {
758
+ position: relative;
759
+ }
760
+
761
+ .bio-properties-panel-collapsible-entry-entries .bio-properties-panel-entry:not(.bio-properties-panel-list-entry):last-child::after,
762
+ .bio-properties-panel-list-entry.open:last-child::after {
763
+ content: "";
764
+ position: absolute;
765
+ left: -16px;
766
+ width: 2px;
767
+ top: 0;
768
+ bottom: -4px;
769
+ background-color: var(--side-line-extension-background-color);
770
+ border-radius: 1px;
771
+ }
772
+
773
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry-entries .bio-properties-panel-entry:last-child::after {
774
+ left: -18px;
775
+ }
776
+
777
+ /*
778
+ * List entry
779
+ */
780
+ .bio-properties-panel-list-entry {
781
+ position: relative;
782
+ margin-right: 5px;
783
+ margin-bottom: 0;
784
+ }
785
+
786
+ .bio-properties-panel-list-entry .bio-properties-panel-entry {
787
+ margin-right: 0;
788
+ }
789
+
790
+ .bio-properties-panel-list-entry-header {
791
+ position: relative;
792
+ overflow: hidden;
793
+ display: flex;
794
+ justify-content: space-between;
795
+ height: 32px;
796
+ }
797
+
798
+ /* Nested list dot */
799
+ .bio-properties-panel-list-entry::before {
800
+ content: "";
801
+ width: 8px;
802
+ height: 8px;
803
+ position: absolute;
804
+ left: -19px;
805
+ top: 13px;
806
+ border-radius: 50%;
807
+ background-color: var(--list-entry-dot-background-color);
808
+ }
809
+
810
+ .bio-properties-panel-list-entry-header-title {
811
+ display: block;
812
+ margin: auto 0;
813
+ padding: 2px 0;
814
+ font-size: var(--text-size-base);
815
+ white-space: nowrap;
816
+ overflow: hidden;
817
+ text-overflow: ellipsis;
818
+ }
819
+
820
+ .bio-properties-panel-list-entry-header-title.open {
821
+ font-weight: 500;
822
+ }
823
+
824
+ .bio-properties-panel-list-entry-header-buttons {
825
+ display: flex;
826
+ align-items: center;
827
+ }
828
+
829
+ .bio-properties-panel-list-entry-header-buttons > button {
830
+ display: inline-flex;
831
+ justify-content: center;
832
+ align-items: center;
833
+ align-self: center;
834
+ height: 22px;
835
+ line-height: 22px;
836
+ min-width: 22px;
837
+ margin: 5px;
838
+ padding: 0 3px;
839
+ border: none;
840
+ background: none;
841
+ fill: var(--list-entry-header-button-fill-color);
842
+ }
843
+
844
+ .bio-properties-panel-list-entry-header-buttons > :last-child {
845
+ margin-right: 0;
846
+ }
847
+
848
+ .bio-properties-panel-list-entry-items {
849
+ padding: 0;
850
+ margin: 0;
851
+
852
+ list-style: none;
853
+ }
854
+
855
+ .bio-properties-panel-list-entry-items:not(.open) {
856
+ display: none;
857
+ }
858
+
859
+ .bio-properties-panel-list-entry-item {
860
+ display: flex;
861
+ justify-content: space-between;
862
+ }
863
+
864
+ .bio-properties-panel-list-entry-item .bio-properties-panel-remove-entry {
865
+ margin-right: 1px;
866
+ }
867
+
868
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry {
869
+ width: 100%;
870
+ margin-right: 4px;
871
+ }
872
+
873
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry-header {
874
+ margin-left: -8px;
875
+ }
876
+
877
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry-arrow {
878
+ left: 2px;
879
+ }
880
+
881
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry-header-title {
882
+ padding-left: 30px;
883
+ }
884
+
885
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry-entries {
886
+ padding-left: 10px;
887
+ }
888
+
889
+ .bio-properties-panel-list-entry-item .bio-properties-panel-collapsible-entry-entries::before {
890
+ left: 4px;
891
+ }
892
+
893
+ .bio-properties-panel-list-entry.empty .bio-properties-panel-add-entry {
894
+ margin-right: 16px;
895
+ padding-left: 6px;
896
+ }
897
+
898
+ .bio-properties-panel-list-entry.empty .bio-properties-panel-add-entry-label {
899
+ color: var(--list-entry-add-entry-label-color);
900
+ padding: 4px 6px 3px 2px;
901
+ }
902
+
903
+ .bio-properties-panel-list-entry-header-buttons .bio-properties-panel-add-entry:hover {
904
+ background-color: var(--list-entry-add-entry-background-color);
905
+ fill: var(--list-entry-add-entry-fill-color);
906
+ }
907
+
908
+ .bio-properties-panel-list-entry-item .bio-properties-panel-simple .bio-properties-panel-input {
909
+ border-radius: 0;
910
+ margin-bottom: -2px;
911
+ }
912
+
913
+ .bio-properties-panel-list-entry-item:first-child .bio-properties-panel-simple .bio-properties-panel-input {
914
+ border-top-left-radius: 2px;
915
+ border-top-right-radius: 2px;
916
+ }
917
+
918
+ .bio-properties-panel-list-entry-item:last-child .bio-properties-panel-simple .bio-properties-panel-input {
919
+ border-bottom-left-radius: 2px;
920
+ border-bottom-right-radius: 2px;
921
+ }
922
+
923
+ .bio-properties-panel-dropdown-button {
924
+ position: relative;
925
+
926
+ --dropdown-button-margin: 5px;
927
+ }
928
+
929
+ .bio-properties-panel-dropdown-button:not(.open) .bio-properties-panel-dropdown-button__menu {
930
+ display: none;
931
+ }
932
+
933
+ .bio-properties-panel-dropdown-button__menu {
934
+ min-width: calc(100% - var(--dropdown-button-margin) * 2);
935
+ max-width: 240px;
936
+
937
+ position: absolute;
938
+ top: calc(100% - var(--dropdown-button-margin));
939
+ right: var(--dropdown-button-margin);
940
+ z-index: 101;
941
+
942
+ background-color: var(--dropdown-item-background-color);
943
+
944
+ padding: 8px 0;
945
+
946
+ box-shadow: 0 1px 4px 0 var(--color-grey-225-10-85), 0 2px 16px 0 var(--color-grey-225-10-75)
947
+ }
948
+
949
+ .bio-properties-panel-dropdown-button__menu-item {
950
+ display: block;
951
+ width: 100%;
952
+ padding: 4px 12px;
953
+
954
+ font-size: var(--text-size-small);
955
+ appearance: revert;
956
+ border: unset;
957
+ background: unset;
958
+ text-align: unset;
959
+ }
960
+
961
+ .bio-properties-panel-dropdown-button__menu-item--separator {
962
+ width: 100%;
963
+ height: 1px;
964
+
965
+ padding: 0;
966
+ margin: 8px 0;
967
+
968
+ background-color: var(--dropdown-separator-background-color);
969
+ }
970
+
971
+ .bio-properties-panel-dropdown-button__menu-item--actionable {
972
+ font-size: var(--text-size-base);
973
+ }
974
+
975
+ .bio-properties-panel-dropdown-button__menu-item--actionable:hover {
976
+ background-color: var(--dropdown-item-hover-background-color);
977
+ }
978
+
979
+ .bio-properties-panel-feel-input {
980
+ position: relative;
981
+ }
982
+
983
+ .bio-properties-panel-feel-input input {
984
+ padding-right: 2em
985
+ }
986
+
987
+ .bio-properties-panel-feel-entry .bio-properties-panel-label {
988
+ display: flex;
989
+ }
990
+
991
+ .bio-properties-panel-feel-icon {
992
+ display: inline-flex;
993
+ height: 22px;
994
+ width: 22px;
995
+ vertical-align: text-bottom;
996
+ padding: 0;
997
+ margin: 0 3px;
998
+ align-items: center;
999
+ align-self: center;
1000
+ justify-content: center;
1001
+ border: none;
1002
+ background: none;
1003
+ border-radius: 3px;
1004
+ }
1005
+
1006
+ .bio-properties-panel-feel-icon.optional {
1007
+ cursor: pointer;
1008
+
1009
+ background: var(--feel-background-color);
1010
+ }
1011
+
1012
+ .bio-properties-panel-feel-icon svg * {
1013
+ fill: var(--feel-inactive-color);
1014
+ }
1015
+
1016
+ .bio-properties-panel-feel-icon:hover {
1017
+ background: var(--feel-hover-background-color);
1018
+ }
1019
+
1020
+ .bio-properties-panel-feel-icon.active {
1021
+ background: var(--feel-active-background-color);
1022
+ }
1023
+
1024
+ .bio-properties-panel-feel-icon.active:hover {
1025
+ background: var(--feel-hover-background-color);
1026
+ }
1027
+
1028
+ .bio-properties-panel-feel-icon.required.active {
1029
+ background: none;
1030
+ }
1031
+
1032
+ .bio-properties-panel-feel-icon.active svg * {
1033
+ fill: var(--feel-active-color);
1034
+ }
1035
+
1036
+ .bio-properties-panel-feel-icon.required.active svg * {
1037
+ fill: var(--feel-inactive-color);
1038
+ }
1039
+
1040
+ .bio-properties-panel-feel-editor-container {
1041
+ position: relative;
1042
+ }
1043
+
1044
+ .bio-properties-panel-feel-editor-container.active {
1045
+ font-family: var(--font-family-monospace);
1046
+ }
1047
+
1048
+ .bio-properties-panel-feel-container {
1049
+ position: relative;
1050
+ }
1051
+
1052
+ .bio-properties-panel-feel-container .bio-properties-panel-feel-editor-container>div {
1053
+ position: static;
1054
+ padding-left: 2.4em !important;
1055
+ min-height: 28px;
1056
+ }
1057
+
1058
+ .bio-properties-panel-feel-indicator {
1059
+ position: absolute;
1060
+ border: 1px solid var(--input-border-color);
1061
+ background-color: var(--feel-indicator-background-color);
1062
+ border-right: 0px;
1063
+ border-radius: 2px 0 0 2px;
1064
+ z-index: 1;
1065
+ height: 100%;
1066
+ width: 2em;
1067
+ text-align: center;
1068
+ padding: 2px 6px;
1069
+ }
1070
+
1071
+ .bio-properties-panel-feel-editor-container .cm-scroller {
1072
+ overflow: hidden !important;
1073
+ }
1074
+
1075
+ .bio-properties-panel-feelers-editor .cm-editor {
1076
+ background-color: transparent;
1077
+ }
1078
+
1079
+ .bio-properties-panel-feelers-editor .cm-editor.cm-focused {
1080
+ background-color: transparent;
1081
+ }
1082
+
1083
+ .bio-properties-panel-feel-editor-container .bio-properties-panel-input {
1084
+ resize: vertical;
1085
+ overflow: hidden;
1086
+ overflow-y: auto;
1087
+ }
1088
+
1089
+ .bio-properties-panel-feel-editor-container,
1090
+ .bio-properties-panel-feel-editor-container .bio-properties-panel-input,
1091
+ .bio-properties-panel-feel-container .cm-editor {
1092
+ min-height: 100%;
1093
+ }
1094
+
1095
+ .bio-properties-panel-feel-checkbox,
1096
+ .bio-properties-panel-feel-toggle-switch {
1097
+ padding-top: 1px;
1098
+ }
1099
+
1100
+ .bio-properties-panel-feel-checkbox .bio-properties-panel-feel-entry:not(.feel-active),
1101
+ .bio-properties-panel-feel-toggle-switch .bio-properties-panel-feel-entry:not(.feel-active) {
1102
+ display: flex;
1103
+ flex-direction: row;
1104
+ align-items: center;
1105
+ }
1106
+
1107
+ .bio-properties-panel-feel-checkbox .bio-properties-panel-feel-entry:not(.feel-active) .bio-properties-panel-feel-container,
1108
+ .bio-properties-panel-feel-toggle-switch .bio-properties-panel-feel-entry:not(.feel-active) .bio-properties-panel-feel-container {
1109
+ margin-left: auto;
1110
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.7",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -9,6 +9,8 @@
9
9
  },
10
10
  "./dist/assets/form-js-editor.css": "./dist/assets/form-js-editor.css",
11
11
  "./dist/assets/form-js-editor-base.css": "./dist/assets/form-js-editor-base.css",
12
+ "./dist/assets/dragula.css": "./dist/assets/dragula.css",
13
+ "./dist/assets/properties-panel.css": "./dist/assets/properties-panel.css",
12
14
  "./package.json": "./package.json"
13
15
  },
14
16
  "publishConfig": {
@@ -44,7 +46,7 @@
44
46
  "url": "https://github.com/bpmn-io"
45
47
  },
46
48
  "dependencies": {
47
- "@bpmn-io/form-js-viewer": "^1.0.0-alpha.5",
49
+ "@bpmn-io/form-js-viewer": "^1.0.0-alpha.7",
48
50
  "@bpmn-io/properties-panel": "^2.1.0",
49
51
  "array-move": "^3.0.1",
50
52
  "big.js": "^6.2.1",
@@ -60,5 +62,5 @@
60
62
  "files": [
61
63
  "dist"
62
64
  ],
63
- "gitHead": "dd91f40203ebbe5b00dd3dc2f2471968daa7fb61"
65
+ "gitHead": "ced83b4bbba91cf0c2ca9e2f9950bb278f36ed3c"
64
66
  }