@bpmn-io/form-js-editor 1.7.1 → 1.7.3

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/dist/index.es.js CHANGED
@@ -1390,6 +1390,7 @@ function PaletteEntry(props) {
1390
1390
  }
1391
1391
  };
1392
1392
  return jsxs("button", {
1393
+ type: "button",
1393
1394
  class: "fjs-palette-field fjs-drag-copy fjs-no-drop",
1394
1395
  "data-field-type": type,
1395
1396
  title: `Create ${getIndefiniteArticle(type)} ${label} element`,
@@ -1482,6 +1483,7 @@ function Palette(props) {
1482
1483
  value: searchTerm,
1483
1484
  onInput: handleInput
1484
1485
  }), searchTerm && jsx("button", {
1486
+ type: "button",
1485
1487
  title: "Clear content",
1486
1488
  class: "fjs-palette-search-clear",
1487
1489
  onClick: handleClear,
@@ -2232,6 +2234,7 @@ function Element$1(props) {
2232
2234
  field: field
2233
2235
  }), jsx(ContextPad, {
2234
2236
  children: selection.isSelected(field) && field.type !== 'default' ? jsx("button", {
2237
+ type: "button",
2235
2238
  title: getRemoveButtonTitle(field, formFields),
2236
2239
  class: "fjs-context-pad-item",
2237
2240
  onClick: onRemove,
@@ -9704,7 +9707,7 @@ function Disabled(props) {
9704
9707
  getValue,
9705
9708
  id,
9706
9709
  label: 'Disabled',
9707
- tooltip: 'Field cannot be edited by the end-user, and the data is not submitted.',
9710
+ tooltip: 'Field cannot be edited by the end-user, and the data is not submitted. Takes precedence over read only.',
9708
9711
  inline: true,
9709
9712
  setValue
9710
9713
  });
@@ -11579,15 +11582,20 @@ function ReadonlyEntry(props) {
11579
11582
  editField,
11580
11583
  field
11581
11584
  } = props;
11585
+ const {
11586
+ disabled
11587
+ } = field;
11582
11588
  const entries = [];
11583
- entries.push({
11584
- id: 'readonly',
11585
- component: Readonly,
11586
- editField: editField,
11587
- field: field,
11588
- isEdited: isEdited$6,
11589
- isDefaultVisible: field => INPUTS.includes(field.type)
11590
- });
11589
+ if (!disabled) {
11590
+ entries.push({
11591
+ id: 'readonly',
11592
+ component: Readonly,
11593
+ editField: editField,
11594
+ field: field,
11595
+ isEdited: isEdited$6,
11596
+ isDefaultVisible: field => INPUTS.includes(field.type)
11597
+ });
11598
+ }
11591
11599
  return entries;
11592
11600
  }
11593
11601
  function Readonly(props) {