@bpmn-io/form-js-viewer 0.10.0-alpha.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/assets/flatpickr/light.css +809 -0
- package/dist/assets/form-js.css +148 -26
- package/dist/index.cjs +1435 -313
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1417 -316
- package/dist/index.es.js.map +1 -1
- package/dist/types/render/components/Util.d.ts +0 -2
- package/dist/types/render/components/form-fields/Checklist.d.ts +1 -1
- package/dist/types/render/components/form-fields/Datetime.d.ts +11 -0
- package/dist/types/render/components/form-fields/Radio.d.ts +1 -1
- package/dist/types/render/components/form-fields/Select.d.ts +1 -1
- package/dist/types/render/components/form-fields/Taglist.d.ts +1 -1
- package/dist/types/render/components/form-fields/parts/Datepicker.d.ts +1 -0
- package/dist/types/render/components/form-fields/parts/InputAdorner.d.ts +1 -0
- package/dist/types/render/components/form-fields/parts/Timepicker.d.ts +1 -0
- package/dist/types/render/components/icons/index.d.ts +16 -0
- package/dist/types/render/components/index.d.ts +3 -1
- package/dist/types/render/components/util/dateTimeUtil.d.ts +12 -0
- package/dist/types/render/components/util/sanitizerUtil.d.ts +3 -0
- package/dist/types/util/constants/DatetimeConstants.d.ts +24 -0
- package/dist/types/util/constants/ValuesSourceConstants.d.ts +15 -0
- package/dist/types/util/constants/index.d.ts +2 -0
- package/dist/types/util/feel.d.ts +1 -0
- package/dist/types/util/index.d.ts +1 -0
- package/package.json +4 -2
package/dist/assets/form-js.css
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
.fjs-container {
|
|
5
5
|
--color-grey-225-10-15: hsl(225, 10%, 15%);
|
|
6
6
|
--color-grey-225-10-35: hsl(225, 10%, 35%);
|
|
7
|
+
--color-grey-225-10-45: hsl(225, 10%, 45%);
|
|
7
8
|
--color-grey-225-10-55: hsl(225, 10%, 55%);
|
|
8
9
|
--color-grey-225-10-75: hsl(225, 10%, 75%);
|
|
9
10
|
--color-grey-225-10-80: hsl(225, 10%, 80%);
|
|
@@ -32,16 +33,18 @@
|
|
|
32
33
|
|
|
33
34
|
--color-background: var(--color-white);
|
|
34
35
|
--color-background-disabled: var(--color-grey-225-10-95);
|
|
35
|
-
--color-background-adornment: var(--color-grey-225-10-
|
|
36
|
+
--color-background-adornment: var(--color-grey-225-10-95);
|
|
36
37
|
--color-text: var(--color-grey-225-10-15);
|
|
37
38
|
--color-text-light: var(--color-grey-225-10-35);
|
|
38
|
-
--color-text-lighter: var(--color-grey-225-10-
|
|
39
|
+
--color-text-lighter: var(--color-grey-225-10-45);
|
|
40
|
+
--color-text-lightest: var(--color-grey-225-10-55);
|
|
39
41
|
--color-text-inverted: var(--color-white);
|
|
40
42
|
--color-borders: var(--color-grey-225-10-55);
|
|
41
43
|
--color-borders-disabled: var(--color-grey-225-10-75);
|
|
42
44
|
--color-borders-adornment: var(--color-grey-225-10-85);
|
|
43
45
|
--color-warning: var(--color-red-360-100-45);
|
|
44
46
|
--color-accent: var(--color-blue-205-100-40);
|
|
47
|
+
--color-datepicker-focused-day: var(--color-grey-225-10-55);
|
|
45
48
|
|
|
46
49
|
--font-family: 'IBM Plex Sans', sans-serif;
|
|
47
50
|
|
|
@@ -66,6 +69,12 @@
|
|
|
66
69
|
flex-direction: row;
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
.fjs-container .fjs-vertical-group {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex: 1;
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
77
|
+
|
|
69
78
|
.fjs-container .fjs-column {
|
|
70
79
|
flex-grow: 1;
|
|
71
80
|
}
|
|
@@ -82,10 +91,8 @@
|
|
|
82
91
|
font-size: 14px;
|
|
83
92
|
line-height: 1.3;
|
|
84
93
|
font-weight: 400;
|
|
85
|
-
|
|
86
94
|
color: var(--color-text);
|
|
87
95
|
background-color: var(--color-background);
|
|
88
|
-
|
|
89
96
|
position: relative;
|
|
90
97
|
}
|
|
91
98
|
|
|
@@ -99,6 +106,15 @@
|
|
|
99
106
|
|
|
100
107
|
.fjs-container .fjs-form-field-placeholder {
|
|
101
108
|
color: var(--color-text-light);
|
|
109
|
+
font-style: italic;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.fjs-container .fjs-form-field-placeholder svg {
|
|
113
|
+
width: 36px;
|
|
114
|
+
height: 36px;
|
|
115
|
+
vertical-align: middle;
|
|
116
|
+
margin-top: -2px;
|
|
117
|
+
margin-right: 2px;
|
|
102
118
|
}
|
|
103
119
|
|
|
104
120
|
.fjs-container .fjs-input,
|
|
@@ -115,7 +131,7 @@
|
|
|
115
131
|
.fjs-container .fjs-select [disabled] {
|
|
116
132
|
font-style: italic;
|
|
117
133
|
letter-spacing: 0.25px;
|
|
118
|
-
color: var(--color-text-
|
|
134
|
+
color: var(--color-text-lightest);
|
|
119
135
|
}
|
|
120
136
|
|
|
121
137
|
.fjs-container .fjs-form-field-label {
|
|
@@ -123,6 +139,10 @@
|
|
|
123
139
|
align-items: center;
|
|
124
140
|
}
|
|
125
141
|
|
|
142
|
+
.fjs-container .fjs-incollapsible-label {
|
|
143
|
+
min-height: 18.2px;
|
|
144
|
+
}
|
|
145
|
+
|
|
126
146
|
.fjs-container .fjs-form-field-description {
|
|
127
147
|
display: block;
|
|
128
148
|
color: var(--color-text-light);
|
|
@@ -143,6 +163,42 @@
|
|
|
143
163
|
display: none;
|
|
144
164
|
}
|
|
145
165
|
|
|
166
|
+
.fjs-container .fjs-input,
|
|
167
|
+
.fjs-container .fjs-textarea,
|
|
168
|
+
.fjs-container .fjs-select {
|
|
169
|
+
background-color: var(--color-background);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.fjs-container .fjs-input-adornment {
|
|
173
|
+
border-style: solid;
|
|
174
|
+
border-color: var(--color-borders-adornment);
|
|
175
|
+
background-color: var(--color-background-adornment);
|
|
176
|
+
color: var(--color-text-lighter);
|
|
177
|
+
padding: 8px;
|
|
178
|
+
width: auto !important;
|
|
179
|
+
min-width: 34px;
|
|
180
|
+
text-align: center;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.fjs-container .fjs-input-adornment svg {
|
|
184
|
+
display: block;
|
|
185
|
+
margin: auto;
|
|
186
|
+
width: 15px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.fjs-container .fjs-input-adornment span {
|
|
190
|
+
color: var(--color-background-adornment);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.fjs-container .fjs-input::placeholder,
|
|
194
|
+
.fjs-container .fjs-textarea::placeholder,
|
|
195
|
+
.fjs-container .fjs-select > option:disabled,
|
|
196
|
+
.fjs-container .fjs-select [disabled] {
|
|
197
|
+
font-style: italic;
|
|
198
|
+
letter-spacing: 0.25px;
|
|
199
|
+
color: var(--color-text-lightest);
|
|
200
|
+
}
|
|
201
|
+
|
|
146
202
|
.fjs-container .fjs-input[type='text'],
|
|
147
203
|
.fjs-container .fjs-input[type='email'],
|
|
148
204
|
.fjs-container .fjs-input[type='tel'],
|
|
@@ -155,15 +211,24 @@
|
|
|
155
211
|
width: 100%;
|
|
156
212
|
padding: 8px;
|
|
157
213
|
margin: 4px 0;
|
|
158
|
-
border
|
|
159
|
-
border-style: solid;
|
|
214
|
+
border: var(--border-definition);
|
|
160
215
|
border-radius: 3px;
|
|
161
216
|
}
|
|
162
217
|
|
|
218
|
+
.fjs-container .fjs-datepicker,
|
|
219
|
+
.fjs-container .fjs-timepicker,
|
|
220
|
+
.fjs-container .fjs-datetime-subsection {
|
|
221
|
+
width: 100%;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.fjs-container .fjs-datetime-separator {
|
|
225
|
+
width: 10px;
|
|
226
|
+
}
|
|
227
|
+
|
|
163
228
|
.fjs-container .fjs-input-group {
|
|
164
229
|
display: flex;
|
|
165
230
|
width: 100%;
|
|
166
|
-
margin
|
|
231
|
+
margin: 4px, 0;
|
|
167
232
|
border: var(--border-definition);
|
|
168
233
|
border-radius: 3px;
|
|
169
234
|
}
|
|
@@ -184,6 +249,8 @@
|
|
|
184
249
|
border-radius: 0;
|
|
185
250
|
margin: 0;
|
|
186
251
|
outline: 0;
|
|
252
|
+
width: auto;
|
|
253
|
+
flex-grow: 1;
|
|
187
254
|
}
|
|
188
255
|
|
|
189
256
|
.fjs-container .fjs-input-group .fjs-input-adornment {
|
|
@@ -216,6 +283,10 @@
|
|
|
216
283
|
width: 100%;
|
|
217
284
|
}
|
|
218
285
|
|
|
286
|
+
.fjs-container .flatpickr-wrapper {
|
|
287
|
+
width: 100%;
|
|
288
|
+
}
|
|
289
|
+
|
|
219
290
|
.fjs-container .fjs-textarea {
|
|
220
291
|
resize: none;
|
|
221
292
|
overflow: hidden;
|
|
@@ -255,7 +326,6 @@
|
|
|
255
326
|
background-color: var(--color-grey-225-10-95);
|
|
256
327
|
}
|
|
257
328
|
|
|
258
|
-
|
|
259
329
|
.fjs-container .fjs-radio {
|
|
260
330
|
display: flex;
|
|
261
331
|
flex-direction: column;
|
|
@@ -290,7 +360,6 @@
|
|
|
290
360
|
|
|
291
361
|
.fjs-container .fjs-taglist:focus-within,
|
|
292
362
|
.fjs-container .fjs-input-group:focus-within,
|
|
293
|
-
.fjs-container .fjs-textarea:focus,
|
|
294
363
|
.fjs-container .fjs-input[type='text']:focus,
|
|
295
364
|
.fjs-container .fjs-input[type='email']:focus,
|
|
296
365
|
.fjs-container .fjs-input[type='tel']:focus,
|
|
@@ -299,7 +368,12 @@
|
|
|
299
368
|
.fjs-container .fjs-button[type='reset']:focus,
|
|
300
369
|
.fjs-container .fjs-textarea:focus,
|
|
301
370
|
.fjs-container .fjs-select:focus {
|
|
302
|
-
outline: var(--
|
|
371
|
+
outline: var(--outline-definition);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.fjs-container .fjs-input-group .fjs-input,
|
|
375
|
+
.fjs-container .fjs-input-group .fjs-input:focus {
|
|
376
|
+
outline: none;
|
|
303
377
|
}
|
|
304
378
|
|
|
305
379
|
.fjs-container .fjs-input-group .fjs-input,
|
|
@@ -313,7 +387,8 @@
|
|
|
313
387
|
|
|
314
388
|
.fjs-container .fjs-input:disabled,
|
|
315
389
|
.fjs-container .fjs-textarea:disabled,
|
|
316
|
-
.fjs-container .fjs-select:disabled
|
|
390
|
+
.fjs-container .fjs-select:disabled,
|
|
391
|
+
.fjs-container .fjs-taglist.disabled {
|
|
317
392
|
background-color: var(--color-background-disabled);
|
|
318
393
|
border-color: var(--color-borders-disabled);
|
|
319
394
|
}
|
|
@@ -327,8 +402,9 @@
|
|
|
327
402
|
|
|
328
403
|
.fjs-container .fjs-form-field.fjs-has-errors .fjs-input,
|
|
329
404
|
.fjs-container .fjs-form-field.fjs-has-errors .fjs-select,
|
|
405
|
+
.fjs-container .fjs-form-field.fjs-has-errors .fjs-textarea,
|
|
330
406
|
.fjs-container .fjs-form-field.fjs-has-errors .fjs-input-group,
|
|
331
|
-
.fjs-container .fjs-form-field.fjs-has-errors .fjs-
|
|
407
|
+
.fjs-container .fjs-form-field.fjs-has-errors .fjs-input-group .fjs-input {
|
|
332
408
|
border-color: var(--color-warning);
|
|
333
409
|
outline-color: var(--color-warning);
|
|
334
410
|
}
|
|
@@ -349,6 +425,11 @@
|
|
|
349
425
|
background-color: var(--color-red-360-100-95);
|
|
350
426
|
}
|
|
351
427
|
|
|
428
|
+
.fjs-container .fjs-form-field.fjs-has-errors .fjs-input-adornment {
|
|
429
|
+
border-color: var(--color-red-360-100-92);
|
|
430
|
+
background: var(--color-red-360-100-97);
|
|
431
|
+
}
|
|
432
|
+
|
|
352
433
|
.fjs-container .fjs-form-field-error {
|
|
353
434
|
color: var(--color-warning);
|
|
354
435
|
}
|
|
@@ -367,7 +448,8 @@
|
|
|
367
448
|
color: var(--color-accent);
|
|
368
449
|
}
|
|
369
450
|
|
|
370
|
-
.fjs-container .fjs-taglist-anchor
|
|
451
|
+
.fjs-container .fjs-taglist-anchor,
|
|
452
|
+
.fjs-container .fjs-timepicker-anchor {
|
|
371
453
|
position: relative;
|
|
372
454
|
}
|
|
373
455
|
|
|
@@ -442,20 +524,11 @@
|
|
|
442
524
|
flex-grow: 1;
|
|
443
525
|
}
|
|
444
526
|
|
|
445
|
-
.fjs-container .fjs-taglist .fjs-taglist-input:focus-visible {
|
|
446
|
-
outline: none;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.fjs-container .fjs-taglist .fjs-taglist-dropdown-anchor {
|
|
450
|
-
position: relative;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
527
|
.fjs-container .fjs-dropdownlist {
|
|
528
|
+
z-index: 1;
|
|
454
529
|
position: absolute;
|
|
455
530
|
user-select: none;
|
|
456
|
-
overflow-y:
|
|
457
|
-
max-height: 120px;
|
|
458
|
-
scroll-behavior: smooth;
|
|
531
|
+
overflow-y: auto;
|
|
459
532
|
width: 100%;
|
|
460
533
|
border-radius: 3px;
|
|
461
534
|
margin-top: 3px;
|
|
@@ -480,7 +553,7 @@
|
|
|
480
553
|
|
|
481
554
|
.fjs-container .fjs-dropdownlist .fjs-dropdownlist-empty {
|
|
482
555
|
padding: 6px 8px;
|
|
483
|
-
color: var(--color-text-
|
|
556
|
+
color: var(--color-text-lightest);
|
|
484
557
|
}
|
|
485
558
|
|
|
486
559
|
.fjs-container .fjs-image-container {
|
|
@@ -496,3 +569,52 @@
|
|
|
496
569
|
height: 64px;
|
|
497
570
|
margin: 2px 0;
|
|
498
571
|
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Flatpickr style adjustments
|
|
575
|
+
*/
|
|
576
|
+
|
|
577
|
+
.flatpickr-day.today {
|
|
578
|
+
border-color: transparent !important;
|
|
579
|
+
background-color: transparent !important;
|
|
580
|
+
font-weight: bold !important;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.flatpickr-day.today:hover,
|
|
584
|
+
.flatpickr-day.today:focus {
|
|
585
|
+
border-color: var(--color-borders) !important;
|
|
586
|
+
background-color: var(--color-datepicker-focused-day) !important;
|
|
587
|
+
color: var(--color-text-inverted) !important;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.flatpickr-day.selected {
|
|
591
|
+
border-color: var(--color-accent) !important;
|
|
592
|
+
background-color: inherit !important;
|
|
593
|
+
color: inherit !important;
|
|
594
|
+
font-weight: normal !important;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.flatpickr-day.selected.today {
|
|
598
|
+
font-weight: bold !important;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.flatpickr-day.selected:hover,
|
|
602
|
+
.flatpickr-day.selected:focus {
|
|
603
|
+
background-color: var(--color-accent) !important;
|
|
604
|
+
font-weight: bold !important;
|
|
605
|
+
color: var(--color-text-inverted) !important;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.flatpickr-days, .flatpickr-weekdays {
|
|
609
|
+
padding: 10px !important;
|
|
610
|
+
width: 100% !important;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.fjs-container .flatpickr-calendar.hasTime.noCalendar {
|
|
614
|
+
width: auto !important;
|
|
615
|
+
max-width: 250px !important;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.flatpickr-calendar {
|
|
619
|
+
width: 326px !important;
|
|
620
|
+
}
|