@bpmn-io/form-js-editor 0.12.0 → 0.12.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.
package/dist/index.es.js CHANGED
@@ -716,7 +716,7 @@ function EditorText(props) {
716
716
  type,
717
717
  text = ''
718
718
  } = props.field;
719
- const Icon = iconsByType['text'];
719
+ const Icon = iconsByType('text');
720
720
  if (!text) {
721
721
  return jsx("div", {
722
722
  class: editorFormFieldClasses(type),
@@ -882,7 +882,7 @@ function Palette(props) {
882
882
  label,
883
883
  type
884
884
  }) => {
885
- const Icon = iconsByType[type];
885
+ const Icon = iconsByType(type);
886
886
  return jsxs("div", {
887
887
  class: "fjs-palette-field fjs-drag-copy fjs-no-drop",
888
888
  "data-field-type": type,
@@ -1263,7 +1263,7 @@ function CreatePreview(props) {
1263
1263
  } = useContext(DragAndDropContext$1);
1264
1264
  function handleCloned(clone, original, type) {
1265
1265
  const fieldType = clone.dataset.fieldType;
1266
- const Icon = iconsByType[fieldType];
1266
+ const Icon = iconsByType(fieldType);
1267
1267
  const {
1268
1268
  label
1269
1269
  } = findPaletteEntry(fieldType);
@@ -5486,7 +5486,7 @@ const PropertiesPanelHeaderProvider = {
5486
5486
  const {
5487
5487
  type
5488
5488
  } = field;
5489
- const Icon = iconsByType[type];
5489
+ const Icon = iconsByType(type);
5490
5490
  if (Icon) {
5491
5491
  return () => jsx(Icon, {
5492
5492
  width: "36",
@@ -7344,7 +7344,7 @@ function ConstraintsGroup(field, editField) {
7344
7344
 
7345
7345
  const VALIDATION_TYPE_OPTIONS = {
7346
7346
  custom: {
7347
- value: undefined,
7347
+ value: '',
7348
7348
  label: 'Custom'
7349
7349
  },
7350
7350
  email: {
@@ -7361,7 +7361,7 @@ function ValidationGroup(field, editField) {
7361
7361
  type
7362
7362
  } = field;
7363
7363
  const validate = get(field, ['validate'], {});
7364
- const isCustomValidation = [undefined, VALIDATION_TYPE_OPTIONS.custom.value].includes(validate && validate.validationType);
7364
+ const isCustomValidation = [undefined, VALIDATION_TYPE_OPTIONS.custom.value].includes(validate.validationType);
7365
7365
  if (!(INPUTS.includes(type) && type !== 'checkbox' && type !== 'checklist' && type !== 'taglist')) {
7366
7366
  return null;
7367
7367
  }