@bpmn-io/form-js-editor 1.0.0-alpha.1 → 1.0.0-alpha.10

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