@bpmn-io/form-js-editor 1.1.0 → 1.3.0-alpha.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/LICENSE +22 -22
- package/README.md +116 -116
- package/dist/assets/dragula.css +1 -1
- package/dist/assets/form-js-editor-base.css +797 -758
- package/dist/assets/form-js-editor.css +365 -10
- package/dist/assets/properties-panel.css +322 -2
- package/dist/index.cjs +2901 -1904
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +2901 -1905
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +1 -0
- package/dist/types/core/index.d.ts +7 -5
- package/dist/types/features/dragging/Dragging.d.ts +3 -1
- package/dist/types/features/modeling/Modeling.d.ts +4 -0
- package/dist/types/features/modeling/behavior/KeyBehavior.d.ts +1 -1
- package/dist/types/features/modeling/behavior/PathBehavior.d.ts +8 -0
- package/dist/types/features/modeling/behavior/index.d.ts +2 -0
- package/dist/types/features/modeling/cmd/MoveFormFieldHandler.d.ts +3 -1
- package/dist/types/features/modeling/cmd/UpdateKeyClaimHandler.d.ts +3 -3
- package/dist/types/features/modeling/cmd/UpdatePathClaimHandler.d.ts +14 -0
- package/dist/types/features/modeling/cmd/Util.d.ts +1 -0
- package/dist/types/features/modeling/index.d.ts +1 -0
- package/dist/types/features/properties-panel/Util.d.ts +1 -0
- package/dist/types/features/properties-panel/entries/GroupEntries.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/PathEntry.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/index.d.ts +2 -0
- package/dist/types/features/properties-panel/groups/{CustomValuesGroup.d.ts → CustomPropertiesGroup.d.ts} +2 -1
- package/dist/types/features/properties-panel/groups/index.d.ts +1 -1
- package/dist/types/render/components/Util.d.ts +1 -2
- package/dist/types/types.d.ts +28 -28
- package/package.json +5 -5
- package/dist/types/core/FieldFactory.d.ts +0 -18
- package/dist/types/import/Importer.d.ts +0 -53
- package/dist/types/import/index.d.ts +0 -5
|
@@ -11,12 +11,15 @@
|
|
|
11
11
|
--color-grey-225-10-90: hsl(225, 10%, 90%);
|
|
12
12
|
--color-grey-225-10-95: hsl(225, 10%, 95%);
|
|
13
13
|
--color-grey-225-10-97: hsl(225, 10%, 97%);
|
|
14
|
+
--color-grey-0-0-22: hsl(0, 0%, 22%);
|
|
14
15
|
|
|
15
16
|
--color-blue-205-100-35: hsl(205, 100%, 35%);
|
|
16
17
|
--color-blue-205-100-45: hsl(205, 100%, 45%);
|
|
17
18
|
--color-blue-205-100-50: hsl(205, 100%, 50%);
|
|
19
|
+
--color-blue-205-100-85: hsl(205, 100%, 85%);
|
|
18
20
|
--color-blue-205-100-95: hsl(205, 100%, 95%);
|
|
19
|
-
|
|
21
|
+
--color-blue-219-99-53: hsl(219, 99%, 53%);
|
|
22
|
+
--color-blue-218-100-74: hsl(218, 100%, 74%);
|
|
20
23
|
--color-green-150-86-44: hsl(150, 86%, 44%);
|
|
21
24
|
|
|
22
25
|
--color-red-360-100-40: hsl(360, 100%, 40%);
|
|
@@ -62,6 +65,7 @@
|
|
|
62
65
|
--arrow-hover-background-color: var(--color-grey-225-10-95);
|
|
63
66
|
|
|
64
67
|
--dot-color: var(--color-grey-225-10-35);
|
|
68
|
+
--dot-color-error: var(--color-red-360-100-45);
|
|
65
69
|
|
|
66
70
|
--list-badge-color: var(--color-white);
|
|
67
71
|
--list-badge-background-color: var(--color-grey-225-10-35);
|
|
@@ -106,9 +110,20 @@
|
|
|
106
110
|
--feel-hover-background-color: var(--color-grey-225-10-97);
|
|
107
111
|
--feel-active-background-color: transparent;
|
|
108
112
|
--feel-required-color: var(--color-grey-225-10-55);
|
|
113
|
+
--feel-open-popup-color: hsla(0, 0%, 32%, 1);
|
|
114
|
+
--feel-open-popup-background-color: var(--color-white);
|
|
115
|
+
--feel-open-popup-hover-color: hsla(219, 99%, 53%, 1);
|
|
109
116
|
|
|
110
117
|
--feel-indicator-background-color: var(--color-grey-225-10-90);
|
|
111
118
|
|
|
119
|
+
--feelers-select-color: var(--color-blue-205-100-85);
|
|
120
|
+
|
|
121
|
+
--tooltip-underline-color: var(--color-blue-219-99-53);
|
|
122
|
+
--tooltip-background-color: var(--color-grey-0-0-22);
|
|
123
|
+
--tooltip-link: var(--color-blue-218-100-74);
|
|
124
|
+
--tooltip-code-background-color: var(--color-grey-225-10-97);
|
|
125
|
+
--tooltip-code-border-color: var(--color-grey-225-10-85);
|
|
126
|
+
|
|
112
127
|
--text-size-base: 14px;
|
|
113
128
|
--text-size-small: 13px;
|
|
114
129
|
--text-size-smallest: 12px;
|
|
@@ -355,6 +370,10 @@
|
|
|
355
370
|
background-color: var(--dot-color);
|
|
356
371
|
}
|
|
357
372
|
|
|
373
|
+
.bio-properties-panel-dot--error {
|
|
374
|
+
--dot-color: var(--dot-color-error);
|
|
375
|
+
}
|
|
376
|
+
|
|
358
377
|
/**
|
|
359
378
|
* Lists
|
|
360
379
|
*/
|
|
@@ -382,6 +401,10 @@
|
|
|
382
401
|
background-color: var(--list-badge-background-color);
|
|
383
402
|
}
|
|
384
403
|
|
|
404
|
+
.bio-properties-panel-list-badge--error {
|
|
405
|
+
--list-badge-background-color: var(--dot-color-error);
|
|
406
|
+
}
|
|
407
|
+
|
|
385
408
|
/**
|
|
386
409
|
* Basic entries
|
|
387
410
|
*/
|
|
@@ -1081,6 +1104,12 @@ textarea.bio-properties-panel-input {
|
|
|
1081
1104
|
background-color: transparent;
|
|
1082
1105
|
}
|
|
1083
1106
|
|
|
1107
|
+
|
|
1108
|
+
/* @Note(pinussilvestrus): mitigate low contrast - https://github.com/bpmn-io/cm-theme/issues/4 */
|
|
1109
|
+
.bio-properties-panel-feelers-editor .cm-content ::selection {
|
|
1110
|
+
background: var(--feelers-select-color, hsl(205, 100%, 85%));
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1084
1113
|
.bio-properties-panel-feelers-editor .cm-editor.cm-focused {
|
|
1085
1114
|
background-color: transparent;
|
|
1086
1115
|
}
|
|
@@ -1112,4 +1141,295 @@ textarea.bio-properties-panel-input {
|
|
|
1112
1141
|
.bio-properties-panel-feel-checkbox .bio-properties-panel-feel-entry:not(.feel-active) .bio-properties-panel-feel-container,
|
|
1113
1142
|
.bio-properties-panel-feel-toggle-switch .bio-properties-panel-feel-entry:not(.feel-active) .bio-properties-panel-feel-container {
|
|
1114
1143
|
margin-left: auto;
|
|
1115
|
-
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.bio-properties-panel-tooltip-wrapper {
|
|
1147
|
+
text-decoration: underline;
|
|
1148
|
+
text-decoration-style: dotted;
|
|
1149
|
+
text-underline-offset: 2px;
|
|
1150
|
+
font: inherit;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.bio-properties-panel-tooltip {
|
|
1154
|
+
display: flex;
|
|
1155
|
+
color: var(--color-white, white);
|
|
1156
|
+
position: fixed;
|
|
1157
|
+
z-index: 1000;
|
|
1158
|
+
padding-right: 6px;
|
|
1159
|
+
max-width: 300px;
|
|
1160
|
+
font-size: var(--text-size-small);
|
|
1161
|
+
font-family: var(--font-family);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
.bio-properties-panel-tooltip-content {
|
|
1165
|
+
background-color: var(--tooltip-background-color);
|
|
1166
|
+
padding: 16px;
|
|
1167
|
+
border-radius: 2px;
|
|
1168
|
+
font-weight: 400;
|
|
1169
|
+
white-space: pre-wrap;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.bio-properties-panel-tooltip-content code,
|
|
1173
|
+
.bio-properties-panel-tooltip-content pre {
|
|
1174
|
+
color: var(--description-color);
|
|
1175
|
+
font-family: var(--font-family);
|
|
1176
|
+
font-size: var(--text-size-small);
|
|
1177
|
+
line-height: var(--line-height-condensed);
|
|
1178
|
+
padding: 0 2px;
|
|
1179
|
+
background-color: var(--tooltip-code-background-color);
|
|
1180
|
+
border: 1px solid var(--tooltip-code-border-color);
|
|
1181
|
+
border-radius: 3px;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.bio-properties-panel-tooltip p:first-child {
|
|
1185
|
+
margin-top: 0;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.bio-properties-panel-tooltip p:last-child {
|
|
1189
|
+
margin-bottom: 0;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.bio-properties-panel-tooltip-content a {
|
|
1193
|
+
color: var(--tooltip-link);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.bio-properties-panel-tooltip .bio-properties-panel-tooltip-arrow {
|
|
1197
|
+
width: 0;
|
|
1198
|
+
height: 0;
|
|
1199
|
+
border-top: 5px solid transparent;
|
|
1200
|
+
border-bottom: 5px solid transparent;
|
|
1201
|
+
border-left: 5px solid var(--tooltip-background-color);
|
|
1202
|
+
margin-top: 16px;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.bio-properties-panel-feelers-editor-container .bio-properties-panel-feelers-editor__open-popup-placeholder,
|
|
1206
|
+
.bio-properties-panel-feel-editor-container .bio-properties-panel-feel-editor__open-popup-placeholder {
|
|
1207
|
+
display: none;
|
|
1208
|
+
justify-content: center;
|
|
1209
|
+
flex-direction: column;
|
|
1210
|
+
color: hsla(0, 0%, 9%, 0.25);
|
|
1211
|
+
padding: 3px 6px 2px;
|
|
1212
|
+
border: 1px solid var(--input-border-color);
|
|
1213
|
+
border-radius: 2px;
|
|
1214
|
+
background-color: var(--input-background-color);
|
|
1215
|
+
font-size: var(--text-size-base);
|
|
1216
|
+
font-family: inherit;
|
|
1217
|
+
width: 100%;
|
|
1218
|
+
min-height: 100%;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.bio-properties-panel-feelers-editor-container.popupOpen .bio-properties-panel-input,
|
|
1222
|
+
.bio-properties-panel-feel-editor-container.popupOpen .bio-properties-panel-input {
|
|
1223
|
+
display: none;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.bio-properties-panel-feelers-editor-container.popupOpen .bio-properties-panel-feelers-editor__open-popup-placeholder,
|
|
1227
|
+
.bio-properties-panel-feel-editor-container.popupOpen .bio-properties-panel-feel-editor__open-popup-placeholder {
|
|
1228
|
+
display: flex;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.bio-properties-panel-popup {
|
|
1232
|
+
--popup-background-color: hsla(0, 0%, 96%, 1);
|
|
1233
|
+
--popup-header-background-color: white;
|
|
1234
|
+
--popup-font-color: hsla(0, 0%, 0%, 1);
|
|
1235
|
+
--popup-title-color: hsla(0, 0%, 0%, 1);
|
|
1236
|
+
|
|
1237
|
+
--feel-popup-close-background-color: hsla(219, 99%, 53%, 1);
|
|
1238
|
+
--feel-popup-gutters-background-color: hsla(0, 0%, 90%, 1);
|
|
1239
|
+
|
|
1240
|
+
position: absolute;
|
|
1241
|
+
display: flex;
|
|
1242
|
+
flex: auto;
|
|
1243
|
+
flex-direction: column;
|
|
1244
|
+
font-family: IBM Plex Sans, sans-serif;
|
|
1245
|
+
padding: 0;
|
|
1246
|
+
z-index: 1001;
|
|
1247
|
+
box-shadow: 0px 2px 6px 0px hsla(0, 0%, 0%, 0.3);
|
|
1248
|
+
background-color: var(--popup-background-color);
|
|
1249
|
+
color: var(--popup-font-color);
|
|
1250
|
+
height: auto;
|
|
1251
|
+
width: auto;
|
|
1252
|
+
overflow: hidden;
|
|
1253
|
+
font-size: 14px;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
.bio-properties-panel-popup h1,
|
|
1257
|
+
.bio-properties-panel-popup h2,
|
|
1258
|
+
.bio-properties-panel-popup h3,
|
|
1259
|
+
.bio-properties-panel-popup h4 {
|
|
1260
|
+
font-weight: 500;
|
|
1261
|
+
font-size: inherit;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__header,
|
|
1265
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__body,
|
|
1266
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__footer {
|
|
1267
|
+
padding: 12px;
|
|
1268
|
+
display: flex;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__body:not(:first-child) {
|
|
1272
|
+
padding-top: 0;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__header {
|
|
1276
|
+
background-color: var(--popup-header-background-color);
|
|
1277
|
+
margin: 0;
|
|
1278
|
+
font-size: 12px;
|
|
1279
|
+
font-weight: 400;
|
|
1280
|
+
line-height: 16px;
|
|
1281
|
+
text-align: left;
|
|
1282
|
+
color: var(--popup-title-color);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__header.draggable {
|
|
1286
|
+
cursor: grab;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__drag-handle {
|
|
1290
|
+
display: flex;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__drag-preview {
|
|
1294
|
+
width: 1px;
|
|
1295
|
+
height: 1px;
|
|
1296
|
+
position: absolute;
|
|
1297
|
+
top: 0;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__title {
|
|
1301
|
+
margin-left: 8px;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__title::first-letter {
|
|
1305
|
+
text-transform: capitalize;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__header svg {
|
|
1309
|
+
margin-left: -4px;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__body {
|
|
1313
|
+
font-size: inherit;
|
|
1314
|
+
height: 100%;
|
|
1315
|
+
display: flex;
|
|
1316
|
+
overflow: auto;
|
|
1317
|
+
padding-bottom: 0;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
.bio-properties-panel-popup .bio-properties-panel-popup__footer {
|
|
1321
|
+
position: absolute;
|
|
1322
|
+
bottom: 0;
|
|
1323
|
+
right: 8px;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.bio-properties-panel-feel-popup {
|
|
1327
|
+
min-height: 400px;
|
|
1328
|
+
width: fit-content;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feel-popup__body {
|
|
1332
|
+
display: flex;
|
|
1333
|
+
margin: 0;
|
|
1334
|
+
padding: 0;
|
|
1335
|
+
height: 100%;
|
|
1336
|
+
width: 100%;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feel-editor-container {
|
|
1340
|
+
display: flex;
|
|
1341
|
+
min-width: 100%;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feelers-editor-container {
|
|
1345
|
+
width: 100%;
|
|
1346
|
+
display: flex;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feelers-editor-container .bio-properties-panel-feelers-editor {
|
|
1350
|
+
display: flex;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feelers-editor-container .bio-properties-panel-feelers-editor .cm-editor {
|
|
1354
|
+
width: 100%;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-input {
|
|
1358
|
+
width: 100%;
|
|
1359
|
+
resize: none;
|
|
1360
|
+
padding: 0;
|
|
1361
|
+
margin-left: -12px;
|
|
1362
|
+
overflow: hidden;
|
|
1363
|
+
overflow-y: auto
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-open-feel-popup {
|
|
1367
|
+
display: none !important;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.bio-properties-panel-feelers-editor-container .bio-properties-panel-open-feel-popup,
|
|
1371
|
+
.bio-properties-panel-feel-container .bio-properties-panel-open-feel-popup {
|
|
1372
|
+
position: absolute;
|
|
1373
|
+
display: none;
|
|
1374
|
+
right: 0;
|
|
1375
|
+
bottom: -1px;
|
|
1376
|
+
background: none;
|
|
1377
|
+
border: none;
|
|
1378
|
+
color: var(--feel-open-popup-color);
|
|
1379
|
+
cursor: pointer;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.bio-properties-panel-open-feel-popup svg {
|
|
1383
|
+
background: var(--feel-open-popup-background-color);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.bio-properties-panel-feelers-editor-container:hover .bio-properties-panel-open-feel-popup,
|
|
1387
|
+
.bio-properties-panel-feel-container:hover .bio-properties-panel-open-feel-popup,
|
|
1388
|
+
.bio-properties-panel-feelers-editor-container:focus-within .bio-properties-panel-open-feel-popup,
|
|
1389
|
+
.bio-properties-panel-feel-container:focus-within .bio-properties-panel-open-feel-popup {
|
|
1390
|
+
display: block;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.bio-properties-panel-feelers-editor-container .bio-properties-panel-open-feel-popup {
|
|
1394
|
+
bottom: 0;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.bio-properties-panel-feelers-editor-container .bio-properties-panel-open-feel-popup:hover,
|
|
1398
|
+
.bio-properties-panel-feel-container .bio-properties-panel-open-feel-popup:hover {
|
|
1399
|
+
color: var(--feel-open-popup-hover-color);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-popup__footer .bio-properties-panel-feel-popup__close-btn {
|
|
1403
|
+
background: var(--feel-popup-close-background-color);
|
|
1404
|
+
width: 66px;
|
|
1405
|
+
font-weight: 400;
|
|
1406
|
+
font-size: 14px;
|
|
1407
|
+
font-family: inherit;
|
|
1408
|
+
color: white;
|
|
1409
|
+
border: none;
|
|
1410
|
+
height: 32px;
|
|
1411
|
+
cursor: pointer;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feel-editor-container .cm-editor {
|
|
1415
|
+
width: 100%;
|
|
1416
|
+
height: 100%;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
.bio-properties-panel-feel-popup .bio-properties-panel-feel-editor-container .cm-editor .cm-content {
|
|
1420
|
+
padding-left: 4px;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.bio-properties-panel-feel-popup .cm-gutters {
|
|
1424
|
+
background-color: var(--feel-popup-gutters-background-color);
|
|
1425
|
+
border: none;
|
|
1426
|
+
padding: 0;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
.bio-properties-panel-feel-popup .cm-gutter {
|
|
1430
|
+
min-width: 32px;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
.bio-properties-panel-feel-popup .cm-gutters .cm-lineNumbers .cm-gutterElement {
|
|
1434
|
+
text-align: center;
|
|
1435
|
+
}
|