@bpmn-io/form-js-editor 1.3.3 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +152 -116
  3. package/dist/assets/form-js-editor-base.css +832 -797
  4. package/dist/assets/form-js-editor.css +74 -19
  5. package/dist/assets/properties-panel.css +23 -3
  6. package/dist/index.cjs +1097 -838
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.es.js +1130 -876
  9. package/dist/index.es.js.map +1 -1
  10. package/dist/types/FormEditor.d.ts +2 -0
  11. package/dist/types/features/modeling/behavior/ValuesSourceBehavior.d.ts +8 -0
  12. package/dist/types/features/modeling/behavior/index.d.ts +2 -0
  13. package/dist/types/features/modeling/index.d.ts +1 -0
  14. package/dist/types/features/palette/components/Palette.d.ts +35 -5
  15. package/dist/types/features/palette/components/PaletteEntry.d.ts +1 -0
  16. package/dist/types/features/properties-panel/PropertiesPanelHeaderProvider.d.ts +1 -1
  17. package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +17 -0
  18. package/dist/types/features/properties-panel/PropertiesProvider.d.ts +10 -0
  19. package/dist/types/features/properties-panel/Util.d.ts +2 -0
  20. package/dist/types/features/properties-panel/entries/ActionEntry.d.ts +1 -0
  21. package/dist/types/features/properties-panel/entries/AdornerEntry.d.ts +1 -0
  22. package/dist/types/features/properties-panel/entries/AltTextEntry.d.ts +1 -0
  23. package/dist/types/features/properties-panel/entries/DateTimeConstraintsEntry.d.ts +1 -0
  24. package/dist/types/features/properties-panel/entries/DateTimeEntry.d.ts +1 -0
  25. package/dist/types/features/properties-panel/entries/DateTimeSerializationEntry.d.ts +1 -0
  26. package/dist/types/features/properties-panel/entries/DefaultValueEntry.d.ts +11 -1
  27. package/dist/types/features/properties-panel/entries/DescriptionEntry.d.ts +1 -0
  28. package/dist/types/features/properties-panel/entries/DisabledEntry.d.ts +1 -0
  29. package/dist/types/features/properties-panel/entries/GroupEntries.d.ts +1 -0
  30. package/dist/types/features/properties-panel/entries/IdEntry.d.ts +1 -0
  31. package/dist/types/features/properties-panel/entries/ImageSourceEntry.d.ts +1 -0
  32. package/dist/types/features/properties-panel/entries/KeyEntry.d.ts +1 -0
  33. package/dist/types/features/properties-panel/entries/LabelEntry.d.ts +1 -0
  34. package/dist/types/features/properties-panel/entries/NumberEntries.d.ts +1 -0
  35. package/dist/types/features/properties-panel/entries/NumberSerializationEntry.d.ts +1 -0
  36. package/dist/types/features/properties-panel/entries/ReadonlyEntry.d.ts +1 -0
  37. package/dist/types/features/properties-panel/entries/SelectEntries.d.ts +1 -0
  38. package/dist/types/features/properties-panel/entries/SpacerEntry.d.ts +1 -0
  39. package/dist/types/features/properties-panel/entries/TextEntry.d.ts +1 -0
  40. package/dist/types/features/properties-panel/entries/factories/simpleBoolEntryFactory.d.ts +1 -0
  41. package/dist/types/features/properties-panel/groups/AppearanceGroup.d.ts +1 -0
  42. package/dist/types/features/properties-panel/groups/ConstraintsGroup.d.ts +1 -0
  43. package/dist/types/features/properties-panel/groups/GeneralGroup.d.ts +17 -1
  44. package/dist/types/features/properties-panel/groups/SerializationGroup.d.ts +1 -0
  45. package/dist/types/features/properties-panel/groups/ValidationGroup.d.ts +1 -0
  46. package/dist/types/features/properties-panel/groups/ValuesGroups.d.ts +1 -1
  47. package/dist/types/features/properties-panel/index.d.ts +2 -0
  48. package/dist/types/index.d.ts +2 -0
  49. package/dist/types/types.d.ts +28 -28
  50. package/package.json +4 -4
@@ -55,12 +55,17 @@
55
55
  var(--cds-layer-01, var(--color-white))
56
56
  );
57
57
  --color-palette-field-border: var(
58
- --cds-border-strong,
59
- var(--cds-border-strong-01, var(--color-grey-225-10-80))
58
+ --cds-border-subtle,
59
+ var(--cds-border-subtle-01, var(--color-grey-225-10-93))
60
60
  );
61
+ --color-palette-field-focus: var(--cds-border-interactive, var(--color-blue-205-100-45));
61
62
  --color-palette-field-hover-background: var(--cds-background-hover, var(--color-grey-225-10-90));
63
+ --color-palette-field-hover-border: var(
64
+ --cds-border-strong,
65
+ var(--cds-border-strong-01, var(--color-grey-225-10-55))
66
+ );
62
67
  --cursor-palette-field: grab;
63
- --palette-width: 250px;
68
+ --palette-width: 246px;
64
69
  }
65
70
 
66
71
  .fjs-properties-container {
@@ -189,6 +194,17 @@
189
194
  display: none;
190
195
  }
191
196
 
197
+ .fjs-no-json-lint .cm-activeLine,
198
+ .fjs-no-json-lint .cm-activeLineGutter {
199
+ background: none;
200
+ }
201
+
202
+ .fjs-no-json-lint .cm-placeholder {
203
+ font-size: 12px;
204
+ line-height: 16px;
205
+ color: var(--cds-text-placeholder, var(--color-grey-225-10-35));
206
+ }
207
+
192
208
  .fjs-editor-container .fjs-form-editor {
193
209
  display: flex;
194
210
  flex: 1;
@@ -514,8 +530,7 @@
514
530
  display: flex;
515
531
  flex-direction: row;
516
532
  padding: 4px;
517
- margin: 15px;
518
- margin-top: 12px;
533
+ margin: 12px;
519
534
  color: var(--color-palette-search);
520
535
  border: 1px solid var(--color-palette-search-border);
521
536
  background-color: var(--color-palette-search-background);
@@ -570,56 +585,72 @@
570
585
  }
571
586
 
572
587
  .fjs-palette-container .fjs-palette-entries {
573
- height: 100%;
588
+ display: flex;
589
+ flex-direction: column;
574
590
  overflow-x: hidden;
575
591
  overflow-y: auto;
592
+ gap: 20px;
593
+ padding-bottom: 20px;
576
594
  }
577
595
 
578
596
  .fjs-palette-container .fjs-palette-group {
579
- padding: 5px 15px;
580
- padding-right: 0px;
597
+ display: flex;
598
+ flex-direction: column;
599
+ width: 212px;
600
+ margin: auto;
581
601
  }
582
602
 
583
603
  .fjs-palette-container .fjs-palette-group-title {
584
604
  font-size: 14px;
585
605
  font-weight: 500;
606
+ margin-bottom: 4px;
586
607
  color: var(--color-palette-group-title);
587
608
  user-select: none;
588
609
  }
589
610
 
590
611
  .fjs-palette-container .fjs-palette-fields {
591
- height: 100%;
592
612
  display: flex;
593
613
  flex-wrap: wrap;
594
- gap: 3%;
614
+ gap: 10px;
595
615
  }
596
616
 
597
617
  .fjs-palette-field {
598
- height: 68px;
599
- margin: 5px 0;
618
+ height: 64px;
600
619
  display: flex;
601
620
  flex-direction: column;
602
621
  justify-content: center;
603
622
  font-size: 11px;
623
+ align-items: center;
624
+ border: none;
625
+ font-family: inherit;
604
626
  user-select: none;
605
627
  color: var(--color-palette-field);
606
- background: var(--color-palette-field-background);
628
+ background-color: var(--color-palette-field-background);
629
+ outline: solid 1px var(--color-palette-field-border);
630
+ outline-offset: 0px;
631
+ transition: all ease-in-out 0.05s;
607
632
  }
608
633
 
609
634
  .fjs-palette-container .fjs-palette-field {
610
- width: 68px;
635
+ width: 64px;
636
+ }
637
+
638
+ .fjs-palette-container .fjs-palette-field:focus {
639
+ outline: solid 1px var(--color-palette-field-focus);
611
640
  }
612
641
 
613
- .fjs-palette-field .fjs-palette-field-icon {
642
+ .fjs-palette-field .fjs-palette-field-icon,
643
+ .fjs-palette-field .fjs-field-icon-image {
614
644
  margin: 0 auto;
615
645
  }
616
646
 
617
647
  .fjs-palette-field .fjs-palette-field-text {
618
648
  text-align: center;
649
+ width: inherit;
619
650
  }
620
651
 
621
652
  .fjs-palette-container .fjs-palette-field:hover {
622
- background-color: var(--color-palette-field-hover-background);
653
+ outline: solid 1px var(--color-palette-field-hover-border);
623
654
  cursor: var(--cursor-palette-field);
624
655
  }
625
656
 
@@ -676,6 +707,10 @@
676
707
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 10px, #f5f5f5 10px, #f5f5f5 20px);
677
708
  }
678
709
 
710
+ .fjs-editor-container .fjs-form-field-separator hr {
711
+ margin: 10px 2px;
712
+ }
713
+
679
714
  /**
680
715
  * Custom Dragula Styles
681
716
  */
@@ -1334,7 +1369,8 @@ textarea.bio-properties-panel-input {
1334
1369
  resize: vertical;
1335
1370
  }
1336
1371
 
1337
- .bio-properties-panel-entry.has-error .bio-properties-panel-input {
1372
+ .bio-properties-panel-entry.has-error .bio-properties-panel-input,
1373
+ .bio-properties-panel-entry.has-error .bio-properties-panel-feel-editor__open-popup-placeholder {
1338
1374
  border-color: var(--input-error-border-color);
1339
1375
  background-color: var(--input-error-background-color);
1340
1376
  }
@@ -1940,6 +1976,10 @@ textarea.bio-properties-panel-input {
1940
1976
  border-radius: 3px;
1941
1977
  }
1942
1978
 
1979
+ .bio-properties-panel-tooltip-content pre code {
1980
+ border: none;
1981
+ }
1982
+
1943
1983
  .bio-properties-panel-tooltip p:first-child {
1944
1984
  margin-top: 0;
1945
1985
  }
@@ -2023,6 +2063,8 @@ textarea.bio-properties-panel-input {
2023
2063
  .bio-properties-panel-popup .bio-properties-panel-popup__footer {
2024
2064
  padding: 12px;
2025
2065
  display: flex;
2066
+ justify-content: center;
2067
+ align-items: center;
2026
2068
  }
2027
2069
 
2028
2070
  .bio-properties-panel-popup .bio-properties-panel-popup__body:not(:first-child) {
@@ -2030,11 +2072,12 @@ textarea.bio-properties-panel-input {
2030
2072
  }
2031
2073
 
2032
2074
  .bio-properties-panel-popup .bio-properties-panel-popup__header {
2075
+ --popup-header-line-height: 16px;
2033
2076
  background-color: var(--popup-header-background-color);
2034
2077
  margin: 0;
2035
2078
  font-size: 12px;
2036
2079
  font-weight: 400;
2037
- line-height: 16px;
2080
+ line-height: var(--popup-header-line-height);
2038
2081
  text-align: left;
2039
2082
  color: var(--popup-title-color);
2040
2083
  }
@@ -2062,7 +2105,7 @@ textarea.bio-properties-panel-input {
2062
2105
  text-transform: capitalize;
2063
2106
  }
2064
2107
 
2065
- .bio-properties-panel-popup .bio-properties-panel-popup__header svg {
2108
+ .bio-properties-panel-popup .bio-properties-panel-popup__header .bio-properties-panel-popup__drag-handle svg {
2066
2109
  margin-left: -4px;
2067
2110
  }
2068
2111
 
@@ -2093,6 +2136,18 @@ textarea.bio-properties-panel-input {
2093
2136
  width: 100%;
2094
2137
  }
2095
2138
 
2139
+ .bio-properties-panel-feel-popup__title-link {
2140
+ margin-left: auto;
2141
+ display: flex;
2142
+ }
2143
+
2144
+ .bio-properties-panel-feel-popup__title-link svg {
2145
+ width: var(--popup-header-line-height);
2146
+ height: var(--popup-header-line-height);
2147
+ fill: currentColor;
2148
+ margin: 0 0.5em;
2149
+ }
2150
+
2096
2151
  .bio-properties-panel-feel-popup .bio-properties-panel-feel-editor-container {
2097
2152
  display: flex;
2098
2153
  min-width: 100%;
@@ -564,7 +564,8 @@ textarea.bio-properties-panel-input {
564
564
  resize: vertical;
565
565
  }
566
566
 
567
- .bio-properties-panel-entry.has-error .bio-properties-panel-input {
567
+ .bio-properties-panel-entry.has-error .bio-properties-panel-input,
568
+ .bio-properties-panel-entry.has-error .bio-properties-panel-feel-editor__open-popup-placeholder {
568
569
  border-color: var(--input-error-border-color);
569
570
  background-color: var(--input-error-background-color);
570
571
  }
@@ -1181,6 +1182,10 @@ textarea.bio-properties-panel-input {
1181
1182
  border-radius: 3px;
1182
1183
  }
1183
1184
 
1185
+ .bio-properties-panel-tooltip-content pre code {
1186
+ border: none;
1187
+ }
1188
+
1184
1189
  .bio-properties-panel-tooltip p:first-child {
1185
1190
  margin-top: 0;
1186
1191
  }
@@ -1266,6 +1271,8 @@ textarea.bio-properties-panel-input {
1266
1271
  .bio-properties-panel-popup .bio-properties-panel-popup__footer {
1267
1272
  padding: 12px;
1268
1273
  display: flex;
1274
+ justify-content: center;
1275
+ align-items: center;
1269
1276
  }
1270
1277
 
1271
1278
  .bio-properties-panel-popup .bio-properties-panel-popup__body:not(:first-child) {
@@ -1273,11 +1280,12 @@ textarea.bio-properties-panel-input {
1273
1280
  }
1274
1281
 
1275
1282
  .bio-properties-panel-popup .bio-properties-panel-popup__header {
1283
+ --popup-header-line-height: 16px;
1276
1284
  background-color: var(--popup-header-background-color);
1277
1285
  margin: 0;
1278
1286
  font-size: 12px;
1279
1287
  font-weight: 400;
1280
- line-height: 16px;
1288
+ line-height: var(--popup-header-line-height);
1281
1289
  text-align: left;
1282
1290
  color: var(--popup-title-color);
1283
1291
  }
@@ -1305,7 +1313,7 @@ textarea.bio-properties-panel-input {
1305
1313
  text-transform: capitalize;
1306
1314
  }
1307
1315
 
1308
- .bio-properties-panel-popup .bio-properties-panel-popup__header svg {
1316
+ .bio-properties-panel-popup .bio-properties-panel-popup__header .bio-properties-panel-popup__drag-handle svg {
1309
1317
  margin-left: -4px;
1310
1318
  }
1311
1319
 
@@ -1336,6 +1344,18 @@ textarea.bio-properties-panel-input {
1336
1344
  width: 100%;
1337
1345
  }
1338
1346
 
1347
+ .bio-properties-panel-feel-popup__title-link {
1348
+ margin-left: auto;
1349
+ display: flex;
1350
+ }
1351
+
1352
+ .bio-properties-panel-feel-popup__title-link svg {
1353
+ width: var(--popup-header-line-height);
1354
+ height: var(--popup-header-line-height);
1355
+ fill: currentColor;
1356
+ margin: 0 0.5em;
1357
+ }
1358
+
1339
1359
  .bio-properties-panel-feel-popup .bio-properties-panel-feel-editor-container {
1340
1360
  display: flex;
1341
1361
  min-width: 100%;