@bpmn-io/form-js-editor 1.13.2 → 1.14.1-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.
@@ -857,13 +857,14 @@
857
857
  --color-grey-225-10-97: hsl(225, 10%, 97%);
858
858
  --color-grey-0-0-22: hsl(0, 0%, 22%);
859
859
  --color-blue-205-100-35: hsl(205, 100%, 35%);
860
+ --color-blue-205-100-40: hsl(205, 100%, 40%);
861
+ --color-green-150-86-44: hsl(150, 86%, 44%);
860
862
  --color-blue-205-100-45: hsl(205, 100%, 45%);
861
863
  --color-blue-205-100-50: hsl(205, 100%, 50%);
862
- --color-blue-205-100-85: hsl(205, 100%, 85%);
863
- --color-blue-205-100-95: hsl(205, 100%, 95%);
864
864
  --color-blue-219-99-53: hsl(219, 99%, 53%);
865
865
  --color-blue-218-100-74: hsl(218, 100%, 74%);
866
- --color-green-150-86-44: hsl(150, 86%, 44%);
866
+ --color-blue-205-100-85: hsl(205, 100%, 85%);
867
+ --color-blue-205-100-95: hsl(205, 100%, 95%);
867
868
  --color-red-360-100-40: hsl(360, 100%, 40%);
868
869
  --color-red-360-100-45: hsl(360, 100%, 45%);
869
870
  --color-red-360-100-92: hsl(360, 100%, 92%);
@@ -906,6 +907,7 @@
906
907
  --input-border-color: var(--color-grey-225-10-75);
907
908
  --input-focus-background-color: var(--color-blue-205-100-95);
908
909
  --input-focus-border-color: var(--color-blue-205-100-50);
910
+ --focus-outline-color: var(--color-blue-205-100-40);
909
911
  --input-error-background-color: var(--color-red-360-100-97);
910
912
  --input-error-border-color: var(--color-red-360-100-45);
911
913
  --input-error-focus-border-color: var(--color-red-360-100-45);
@@ -1115,6 +1117,11 @@
1115
1117
  background: none;
1116
1118
  }
1117
1119
 
1120
+ .bio-properties-panel-group-header-button:focus {
1121
+ outline-offset: 2px;
1122
+ outline-color: var(--focus-outline-color);
1123
+ }
1124
+
1118
1125
  .bio-properties-panel-group-header-buttons .bio-properties-panel-group-header-buttons:last-child {
1119
1126
  margin-right: 0;
1120
1127
  }
@@ -1352,8 +1359,9 @@ select.bio-properties-panel-input {
1352
1359
  }
1353
1360
 
1354
1361
  .bio-properties-panel-input[type=checkbox]:focus {
1355
- outline: 2px solid var(--input-focus-border-color);
1356
- outline-offset: 0;
1362
+ outline: auto;
1363
+ outline-color: var(--focus-outline-color);
1364
+ outline-offset: 2px;
1357
1365
  }
1358
1366
 
1359
1367
  .bio-properties-panel-checkbox > .bio-properties-panel-label {
@@ -15,13 +15,14 @@
15
15
  --color-grey-0-0-22: hsl(0, 0%, 22%);
16
16
 
17
17
  --color-blue-205-100-35: hsl(205, 100%, 35%);
18
+ --color-blue-205-100-40: hsl(205, 100%, 40%);
19
+ --color-green-150-86-44: hsl(150, 86%, 44%);
18
20
  --color-blue-205-100-45: hsl(205, 100%, 45%);
19
21
  --color-blue-205-100-50: hsl(205, 100%, 50%);
20
- --color-blue-205-100-85: hsl(205, 100%, 85%);
21
- --color-blue-205-100-95: hsl(205, 100%, 95%);
22
22
  --color-blue-219-99-53: hsl(219, 99%, 53%);
23
23
  --color-blue-218-100-74: hsl(218, 100%, 74%);
24
- --color-green-150-86-44: hsl(150, 86%, 44%);
24
+ --color-blue-205-100-85: hsl(205, 100%, 85%);
25
+ --color-blue-205-100-95: hsl(205, 100%, 95%);
25
26
 
26
27
  --color-red-360-100-40: hsl(360, 100%, 40%);
27
28
  --color-red-360-100-45: hsl(360, 100%, 45%);
@@ -78,6 +79,7 @@
78
79
 
79
80
  --input-focus-background-color: var(--color-blue-205-100-95);
80
81
  --input-focus-border-color: var(--color-blue-205-100-50);
82
+ --focus-outline-color: var(--color-blue-205-100-40);
81
83
 
82
84
  --input-error-background-color: var(--color-red-360-100-97);
83
85
  --input-error-border-color: var(--color-red-360-100-45);
@@ -299,6 +301,11 @@
299
301
  background: none;
300
302
  }
301
303
 
304
+ .bio-properties-panel-group-header-button:focus {
305
+ outline-offset: 2px;
306
+ outline-color: var(--focus-outline-color);
307
+ }
308
+
302
309
  .bio-properties-panel-group-header-buttons .bio-properties-panel-group-header-buttons:last-child {
303
310
  margin-right: 0;
304
311
  }
@@ -537,8 +544,9 @@ select.bio-properties-panel-input {
537
544
  }
538
545
 
539
546
  .bio-properties-panel-input[type="checkbox"]:focus {
540
- outline: 2px solid var(--input-focus-border-color);
541
- outline-offset: 0;
547
+ outline: auto;
548
+ outline-color: var(--focus-outline-color);
549
+ outline-offset: 2px;
542
550
  }
543
551
 
544
552
  .bio-properties-panel-checkbox > .bio-properties-panel-label {
package/dist/index.cjs CHANGED
@@ -1618,10 +1618,10 @@ function Palette(props) {
1618
1618
  return jsxRuntime.jsx(PaletteEntry, {
1619
1619
  getPaletteIcon: getPaletteIcon,
1620
1620
  ...entry
1621
- });
1621
+ }, entry.type);
1622
1622
  })
1623
1623
  })]
1624
- })), groups.length == 0 && jsxRuntime.jsx("div", {
1624
+ }, id)), groups.length == 0 && jsxRuntime.jsx("div", {
1625
1625
  class: "fjs-palette-no-entries",
1626
1626
  children: "No components found."
1627
1627
  })]
@@ -1698,15 +1698,17 @@ function getPaletteIcon(entry) {
1698
1698
  } = entry;
1699
1699
  let Icon;
1700
1700
  if (iconUrl) {
1701
- Icon = () => jsxRuntime.jsx("img", {
1702
- class: "fjs-field-icon-image",
1703
- width: 36,
1704
- style: {
1705
- margin: 'auto'
1706
- },
1707
- alt: label,
1708
- src: formJsViewer.sanitizeImageSource(iconUrl)
1709
- });
1701
+ Icon = function Icon() {
1702
+ return jsxRuntime.jsx("img", {
1703
+ class: "fjs-field-icon-image",
1704
+ width: 36,
1705
+ style: {
1706
+ margin: 'auto'
1707
+ },
1708
+ alt: label,
1709
+ src: formJsViewer.sanitizeImageSource(iconUrl)
1710
+ });
1711
+ };
1710
1712
  } else {
1711
1713
  Icon = icon || formJsViewer.iconsByType(type);
1712
1714
  }
@@ -1726,9 +1728,9 @@ const InjectedRendersRoot = () => {
1726
1728
  return jsxRuntime.jsx(preact.Fragment, {
1727
1729
  children: injectedRenderers.map(({
1728
1730
  Renderer
1729
- }) => jsxRuntime.jsx(Renderer, {
1731
+ }, index) => jsxRuntime.jsx(Renderer, {
1730
1732
  ...injectedProps
1731
- }))
1733
+ }, index))
1732
1734
  });
1733
1735
  };
1734
1736
 
@@ -9074,11 +9076,13 @@ function getPropertiesPanelHeaderProvider(options = {}) {
9074
9076
  const fieldDefinition = formFields.get(type).config;
9075
9077
  const Icon = fieldDefinition.icon || formJsViewer.iconsByType(type);
9076
9078
  if (Icon) {
9077
- return () => jsxRuntime.jsx(Icon, {
9078
- width: "36",
9079
- height: "36",
9080
- viewBox: "0 0 54 54"
9081
- });
9079
+ return function IconComponent() {
9080
+ return jsxRuntime.jsx(Icon, {
9081
+ width: "36",
9082
+ height: "36",
9083
+ viewBox: "0 0 54 54"
9084
+ });
9085
+ };
9082
9086
  } else if (fieldDefinition.iconUrl) {
9083
9087
  return getPaletteIcon({
9084
9088
  iconUrl: fieldDefinition.iconUrl,
@@ -9444,7 +9448,7 @@ function Columns(props) {
9444
9448
  editField,
9445
9449
  id
9446
9450
  } = props;
9447
- const debounce = useService('debounce');
9451
+ useService('debounce');
9448
9452
  const formLayoutValidator = useService('formLayoutValidator');
9449
9453
  const validate = hooks.useCallback(value => {
9450
9454
  return formLayoutValidator.validateField(field, value ? parseInt(value) : null);
@@ -9470,7 +9474,6 @@ function Columns(props) {
9470
9474
  ...asArray(16).filter(i => i >= MIN_COLUMNS).map(asOption)];
9471
9475
  };
9472
9476
  return SelectEntry({
9473
- debounce,
9474
9477
  element: field,
9475
9478
  id,
9476
9479
  label: 'Columns',
@@ -10576,8 +10579,7 @@ function IFrameHeightEntry(props) {
10576
10579
  })];
10577
10580
  }
10578
10581
 
10579
- const HTTPS_PATTERN = /^(https):\/\/*/i; // eslint-disable-line no-useless-escape
10580
-
10582
+ const HTTPS_PATTERN = /^(https):\/\/*/i;
10581
10583
  function IFrameUrlEntry(props) {
10582
10584
  const {
10583
10585
  editField,
@@ -10638,6 +10640,7 @@ function getTooltip$1() {
10638
10640
  children: ["Not all external sources can be displayed in the iFrame. Read more about it in the", ' ', jsxRuntime.jsx("a", {
10639
10641
  target: "_blank",
10640
10642
  href: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options",
10643
+ rel: "noreferrer",
10641
10644
  children: "X-FRAME-OPTIONS documentation"
10642
10645
  }), "."]
10643
10646
  })]
@@ -10753,6 +10756,7 @@ const description$4 = jsxRuntime.jsxs(jsxRuntime.Fragment, {
10753
10756
  children: ["Supports markdown and templating.", ' ', jsxRuntime.jsx("a", {
10754
10757
  href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-text/",
10755
10758
  target: "_blank",
10759
+ rel: "noreferrer",
10756
10760
  children: "Learn more"
10757
10761
  })]
10758
10762
  });
@@ -10809,6 +10813,7 @@ const description$3 = jsxRuntime.jsxs(jsxRuntime.Fragment, {
10809
10813
  children: ["Supports HTML, styling, and templating. Styles are automatically scoped to the HTML component.", ' ', jsxRuntime.jsx("a", {
10810
10814
  href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-html/",
10811
10815
  target: "_blank",
10816
+ rel: "noreferrer",
10812
10817
  children: "Learn more"
10813
10818
  })]
10814
10819
  });
@@ -11948,7 +11953,6 @@ function RepeatableEntry(props) {
11948
11953
  path: ['nonCollapsedItems'],
11949
11954
  label: 'Number of non-collapsing items',
11950
11955
  min: 1,
11951
- defaultValue: 5,
11952
11956
  props
11953
11957
  });
11954
11958
  entries.push(nonCollapseItemsEntry);
@@ -12673,6 +12677,7 @@ const description$2 = jsxRuntime.jsxs(jsxRuntime.Fragment, {
12673
12677
  children: ["A comma-separated list of", ' ', jsxRuntime.jsx("a", {
12674
12678
  href: "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers",
12675
12679
  target: "_blank",
12680
+ rel: "noreferrer",
12676
12681
  children: "file type specifiers"
12677
12682
  })]
12678
12683
  });
@@ -12844,9 +12849,9 @@ function EndpointKey(props) {
12844
12849
  }), jsxRuntime.jsxs("p", {
12845
12850
  children: ["The string must contain ", jsxRuntime.jsx("code", {
12846
12851
  children: '{ documentId }'
12847
- }), ", which will be replaced with the document ID from the document's reference."]
12852
+ }), ", which will be replaced with the document ID from the document\u2018s reference."]
12848
12853
  }), jsxRuntime.jsx("p", {
12849
- children: "If you're using the Camunda Tasklist, this variable is automatically added to the context for you."
12854
+ children: "If you\u2018re using the Camunda Tasklist, this variable is automatically added to the context for you."
12850
12855
  }), jsxRuntime.jsxs("p", {
12851
12856
  children: ["For more details, see the", ' ', jsxRuntime.jsx("a", {
12852
12857
  href: "https://docs.camunda.io/docs/next/components/modeler/forms/form-element-library/forms-element-library-document-preview/",
@@ -12989,13 +12994,9 @@ function GeneralGroup(field, editField, getService) {
12989
12994
  editField
12990
12995
  }), ...TextEntry({
12991
12996
  field,
12992
- editField,
12993
- getService
12994
- }), ...HtmlEntry({
12997
+ editField}), ...HtmlEntry({
12995
12998
  field,
12996
- editField,
12997
- getService
12998
- }), ...IFrameUrlEntry({
12999
+ editField}), ...IFrameUrlEntry({
12999
13000
  field,
13000
13001
  editField
13001
13002
  }), ...IFrameHeightEntry({
@@ -13317,12 +13318,11 @@ function ValidationType(props) {
13317
13318
  id,
13318
13319
  onChange
13319
13320
  } = props;
13320
- const debounce = useService('debounce');
13321
+ useService('debounce');
13321
13322
  const setValue = validationType => {
13322
13323
  onChange('validationType')(validationType || undefined);
13323
13324
  };
13324
13325
  return SelectEntry({
13325
- debounce,
13326
13326
  element: field,
13327
13327
  getValue: getValue('validationType'),
13328
13328
  id,
@@ -13598,6 +13598,7 @@ function getTooltip() {
13598
13598
  children: ["Allow the iframe to access more functionality of your browser, details regarding the various options can be found in the", ' ', jsxRuntime.jsx("a", {
13599
13599
  target: "_blank",
13600
13600
  href: "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe",
13601
+ rel: "noreferrer",
13601
13602
  children: "MDN iFrame documentation."
13602
13603
  })]
13603
13604
  })