How to use the bpmn-js-properties-panel/lib/Utils.containsSpace function in bpmn-js-properties-panel

To help you get started, we’ve selected a few bpmn-js-properties-panel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / implementation / InputOutputParameter.js View on Github external
validate: function(element, values, node) {
      const bo = getSelected(element, node);

      const validation = {};
      if (bo) {
        const sourceValue = values.source;

        if (sourceValue) {
          if (utils.containsSpace(sourceValue)) {
            validation.source = 'Source must not contain spaces';
          }
        }
        else {
          validation.source = 'Parameter must have a source';
        }
      }

      return validation;
    },
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / implementation / Mapping.js View on Github external
validate: function(element, values, node) {
      const bo = getSelected(element, node);

      const validation = {};
      if (bo) {
        const targetValue = values.target;

        if (targetValue) {
          if (utils.containsSpace(targetValue)) {
            validation.target = 'Target must not contain spaces';
          }
        }
        else {
          validation.target = 'Mapping must have a Target';
        }
      }

      return validation;
    },
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / TaskDefinitionProps.js View on Github external
validate: function(element, values, node) {
      const bo = getTaskDefinition(element);
      let validation = {};
      if (bo) {
        const {
          type
        } = values;

        if (type) {
          if (containsSpace(type)) {
            validation = {
              type: 'Type must not contain spaces'
            };
          }
        }
        else {
          validation = {
            type: 'ServiceTask must have a type'
          };
        }
      }
      return validation;
    }
  }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / implementation / InputOutputParameter.js View on Github external
validate: function(element, values, node) {
      const bo = getSelected(element, node);

      const validation = {};
      if (bo) {
        const targetValue = values.target;

        if (targetValue) {
          if (utils.containsSpace(targetValue)) {
            validation.target = 'Target must not contain spaces';
          }
        }
        else {
          validation.target = 'Parameter must have a Target';
        }
      }

      return validation;
    },
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / implementation / Mapping.js View on Github external
validate: function(element, values, node) {
      const bo = getSelected(element, node);

      const validation = {};
      if (bo) {
        const sourceValue = values.source;

        if (sourceValue) {
          if (utils.containsSpace(sourceValue)) {
            validation.source = 'Source must not contain spaces';
          }
        }
        else {
          validation.source = 'Mapping must have a source';
        }
      }

      return validation;
    },

bpmn-js-properties-panel

A simple properties panel for bpmn-js

MIT
Latest version published 8 days ago

Package Health Score

90 / 100
Full package analysis