New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bpmn-js-properties-panel

Package Overview
Dependencies
Maintainers
2
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-js-properties-panel - npm Package Compare versions

Comparing version 0.25.2 to 0.26.0

dist/assets/bpmn-js-properties-panel.css

6

CHANGELOG.md

@@ -9,2 +9,8 @@ # Changelog

## 0.26.0
* `FEAT`: provide pre-built styles
* `CHORE`: bump dependency versions
* `CHORE`: migrate to `lodash@4`
## 0.25.2

@@ -11,0 +17,0 @@

21

lib/cmd/CreateAndReferenceHandler.js

@@ -21,10 +21,4 @@ 'use strict';

function ensureNotNull(prop, name) {
if (!prop) {
throw new Error(name + ' required');
}
return prop;
}
////// api /////////////////////////////////////////////
// api ////////////////////

@@ -57,3 +51,3 @@ /**

var referencedObject = elementHelper
.createElement(newObject.type, newObject.properties, newObjectParent, this._bpmnFactory);
.createElement(newObject.type, newObject.properties, newObjectParent, this._bpmnFactory);
context.referencedObject = referencedObject;

@@ -99,1 +93,12 @@

};
// helpers //////////////
function ensureNotNull(prop, name) {
if (!prop) {
throw new Error(name + ' required');
}
return prop;
}
'use strict';
var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -39,3 +39,3 @@ var elementHelper = require('../helper/ElementHelper');

function ensureList(prop, name) {
if (!prop || Object.prototype.toString.call(prop) !== '[object Array]' ) {
if (!prop || Object.prototype.toString.call(prop) !== '[object Array]') {
throw new Error(name + ' needs to be a list');

@@ -46,3 +46,3 @@ }

////// api /////////////////////////////////////////////
// api /////////////////////////////////////////////

@@ -49,0 +49,0 @@ /**

'use strict';
var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -5,0 +5,0 @@ var HANDLERS = {

'use strict';
var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -5,0 +5,0 @@ /**

'use strict';
var reduce = require('lodash/object/transform'),
var reduce = require('lodash/transform'),
is = require('bpmn-js/lib/util/ModelUtil').is,
keys = require('lodash/object/keys'),
forEach = require('lodash/collection/forEach');
keys = require('lodash/keys'),
forEach = require('lodash/forEach');

@@ -57,3 +57,3 @@ /**

////// api /////////////////////////////////////////////
// api /////////////////////////////////////////////

@@ -60,0 +60,0 @@ /**

'use strict';
var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -36,3 +36,3 @@ /**

////// api /////////////////////////////////////////////
// api /////////////////////////////////////////////

@@ -39,0 +39,0 @@ /**

@@ -10,7 +10,7 @@ 'use strict';

var checkbox = function(options, defaultParameters) {
var resource = defaultParameters,
label = options.label || resource.id,
var resource = defaultParameters,
label = options.label || resource.id,
canBeDisabled = !!options.disabled && typeof options.disabled === 'function',
canBeHidden = !!options.hidden && typeof options.hidden === 'function',
description = options.description;
canBeHidden = !!options.hidden && typeof options.hidden === 'function',
description = options.description;

@@ -17,0 +17,0 @@ resource.html =

'use strict';
var assign = require('lodash/object/assign'),
find = require('lodash/collection/find');
var assign = require('lodash/assign'),
find = require('lodash/find');

@@ -33,5 +33,5 @@ var domQuery = require('min-dom').query;

modelProperty = options.modelProperty,
customValue = options.customValue || 'custom',
customName = options.customName || 'custom ' + modelProperty,
description = options.description;
customValue = options.customValue || 'custom',
customName = options.customName || 'custom ' + modelProperty,
description = options.description;

@@ -38,0 +38,0 @@ // check if a value is not a built in value

@@ -35,3 +35,3 @@ 'use strict';

*/
var setDefaultParameters = function( options ) {
var setDefaultParameters = function(options) {

@@ -48,3 +48,3 @@ // default method to fetch the current value of the input field

// default method to set a new value to the input field
// default method to set a new value to the input field
var defaultSet = function(element, values) {

@@ -62,3 +62,3 @@ var res = {},

// default validation method
// default validation method
var defaultValidate = function() {

@@ -70,6 +70,6 @@ return {};

id : options.id,
description : ( options.description || '' ),
get : ( options.get || defaultGet ),
set : ( options.set || defaultSet ),
validate : ( options.validate || defaultValidate ),
description : (options.description || ''),
get : (options.get || defaultGet),
set : (options.set || defaultSet),
validate : (options.validate || defaultValidate),
html: ''

@@ -76,0 +76,0 @@ };

'use strict';
var MARKDOWN_LINK_REGEX = /\[([^\)]+)\]\(([^\]]+)\)/g;
var MARKDOWN_LINK_REGEX = /\[([^)]+)\]\(([^\]]+)\)/g;

@@ -5,0 +5,0 @@ /**

@@ -5,3 +5,3 @@ 'use strict';

var bind = require('lodash/function/bind');
var bind = require('lodash/bind');

@@ -37,7 +37,7 @@ /**

var id = options.id,
label = options.label || id,
showLink = options.showLink,
handleClick = options.handleClick,
description = options.description;
var id = options.id,
label = options.label || id,
showLink = options.showLink,
handleClick = options.handleClick,
description = options.description;

@@ -44,0 +44,0 @@ if (showLink && typeof showLink !== 'function') {

@@ -5,3 +5,3 @@ 'use strict';

var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -8,0 +8,0 @@ var entryFieldDescription = require('./EntryFieldDescription');

@@ -9,5 +9,5 @@ 'use strict';

var filter = require('lodash/collection/filter'),
forEach = require('lodash/collection/forEach'),
keys = require('lodash/object/keys');
var filter = require('lodash/filter'),
forEach = require('lodash/forEach'),
keys = require('lodash/keys');

@@ -131,25 +131,25 @@ var domify = require('min-dom').domify;

var id = options.id,
var id = options.id,
modelProperties = options.modelProperties,
labels = options.labels,
description = options.description;
labels = options.labels,
description = options.description;
var labelRow = createLabelRowTemplate(labels);
var getElements = options.getElements;
var getElements = options.getElements;
var removeElement = options.removeElement,
canRemove = typeof removeElement === 'function';
canRemove = typeof removeElement === 'function';
var addElement = options.addElement,
canAdd = typeof addElement === 'function',
addLabel = options.addLabel || 'Add Value';
canAdd = typeof addElement === 'function',
addLabel = options.addLabel || 'Add Value';
var updateElement = options.updateElement,
canUpdate = typeof updateElement === 'function';
canUpdate = typeof updateElement === 'function';
var editable = options.editable || function() { return true; },
var editable = options.editable || function() { return true; },
setControlValue = options.setControlValue;
var show = options.show,
var show = options.show,
canBeShown = typeof show === 'function';

@@ -163,4 +163,4 @@

id: id,
html: ( canAdd ?
'<div class="bpp-table-add-row" ' + (canBeShown ? 'data-show="show"' : '') + '>' +
html: (canAdd ?
'<div class="bpp-table-add-row" ' + (canBeShown ? 'data-show="show"' : '') + '>' +
'<label>' + addLabel + '</label>' +

@@ -178,3 +178,3 @@ '<button class="add" data-action="addElement"><span>+</span></button>' +

// add description below table entry field
( description ? entryFieldDescription(description) : ''),
(description ? entryFieldDescription(description) : ''),

@@ -181,0 +181,0 @@ get: function(element, node) {

@@ -8,5 +8,5 @@ 'use strict';

var resource = defaultParameters,
label = options.label || resource.id,
canBeShown = !!options.show && typeof options.show === 'function',
var resource = defaultParameters,
label = options.label || resource.id,
canBeShown = !!options.show && typeof options.show === 'function',
description = options.description;

@@ -13,0 +13,0 @@

@@ -26,13 +26,13 @@ 'use strict';

var resource = defaultParameters,
label = options.label || resource.id,
var resource = defaultParameters,
label = options.label || resource.id,
dataValueLabel = options.dataValueLabel,
buttonLabel = ( options.buttonLabel || 'X' ),
actionName = ( typeof options.buttonAction != 'undefined' ) ? options.buttonAction.name : 'clear',
actionMethod = ( typeof options.buttonAction != 'undefined' ) ? options.buttonAction.method : defaultButtonAction,
showName = ( typeof options.buttonShow != 'undefined' ) ? options.buttonShow.name : 'canClear',
showMethod = ( typeof options.buttonShow != 'undefined' ) ? options.buttonShow.method : defaultButtonShow,
canBeDisabled = !!options.disabled && typeof options.disabled === 'function',
canBeHidden = !!options.hidden && typeof options.hidden === 'function',
description = options.description;
buttonLabel = (options.buttonLabel || 'X'),
actionName = (typeof options.buttonAction != 'undefined') ? options.buttonAction.name : 'clear',
actionMethod = (typeof options.buttonAction != 'undefined') ? options.buttonAction.method : defaultButtonAction,
showName = (typeof options.buttonShow != 'undefined') ? options.buttonShow.name : 'canClear',
showMethod = (typeof options.buttonShow != 'undefined') ? options.buttonShow.method : defaultButtonShow,
canBeDisabled = !!options.disabled && typeof options.disabled === 'function',
canBeHidden = !!options.hidden && typeof options.hidden === 'function',
description = options.description;

@@ -39,0 +39,0 @@ resource.html =

'use strict';
var map = require('lodash/collection/map');
var map = require('lodash/map');

@@ -5,0 +5,0 @@ var extensionElementsHelper = require('./ExtensionElementsHelper');

@@ -5,3 +5,3 @@ 'use strict';

is = require('bpmn-js/lib/util/ModelUtil').is,
forEach = require('lodash/collection/forEach');
forEach = require('lodash/forEach');

@@ -8,0 +8,0 @@ var EventDefinitionHelper = {};

'use strict';
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
getBusinessObject = ModelUtil.getBusinessObject;

@@ -105,8 +105,7 @@

if (is(element, 'bpmn:IntermediateThrowEvent') || is(element, 'bpmn:EndEvent')) {
/**
* change business object to 'messageEventDefinition' when
* the element is a message intermediate throw event or message end event
* because the camunda extensions (e.g. camunda:class) are in the message
* event definition tag and not in the intermediate throw event or end event tag
*/
// change business object to 'messageEventDefinition' when
// the element is a message intermediate throw event or message end event
// because the camunda extensions (e.g. camunda:class) are in the message
// event definition tag and not in the intermediate throw event or end event tag
var messageEventDefinition = eventDefinitionHelper.getMessageEventDefinition(element);

@@ -113,0 +112,0 @@ if (messageEventDefinition) {

'use strict';
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
getBusinessObject = ModelUtil.getBusinessObject;

@@ -50,3 +50,3 @@

var bo = implementationTypeHelper.getServiceTaskLikeBusinessObject(element);
return bo && (getElements(bo, 'camunda:Connector') || [])[0];
return bo && (getElements(bo, 'camunda:Connector') || [])[0];
};

@@ -53,0 +53,0 @@

@@ -13,3 +13,3 @@ 'use strict';

ParticipantHelper.modifyProcessBusinessObject = function(element, property, values) {
if ( !is(element, 'bpmn:Participant') ) {
if (!is(element, 'bpmn:Participant')) {
return {};

@@ -27,3 +27,3 @@ }

ParticipantHelper.getProcessBusinessObject = function(element, propertyName) {
if ( !is(element, 'bpmn:Participant') ) {
if (!is(element, 'bpmn:Participant')) {
return {};

@@ -30,0 +30,0 @@ }

@@ -6,3 +6,3 @@ 'use strict';

domify = require('min-dom').domify,
bind = require('lodash/function/bind');
bind = require('lodash/bind');

@@ -19,3 +19,3 @@ /**

this.header = domQuery('.popup-header', el);
this.body = domQuery('.popup-body', el);
this.body = domQuery('.popup-body', el);
this.footer = domQuery('.popup-footer', el);

@@ -28,3 +28,3 @@

Popup.prototype.template = '<div class="bpp-properties-panel-popup">' +
Popup.prototype.template = '<div class="bpp-properties-panel-popup">' +
'<div class="underlay"></div>' +

@@ -31,0 +31,0 @@ '<div class="popup">' +

@@ -13,14 +13,14 @@ 'use strict';

var forEach = require('lodash/collection/forEach'),
filter = require('lodash/collection/filter'),
get = require('lodash/object/get'),
keys = require('lodash/object/keys'),
isEmpty = require('lodash/lang/isEmpty'),
isArray = require('lodash/lang/isArray'),
xor = require('lodash/array/xor'),
debounce = require('lodash/function/debounce');
var forEach = require('lodash/forEach'),
filter = require('lodash/filter'),
get = require('lodash/get'),
keys = require('lodash/keys'),
isEmpty = require('lodash/isEmpty'),
isArray = require('lodash/isArray'),
xor = require('lodash/xor'),
debounce = require('lodash/debounce');
var updateSelection = require('selection-update');
var scrollTabs = require('scroll-tabs');
var scrollTabs = require('scroll-tabs').default;

@@ -191,3 +191,3 @@ var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;

function extractEntries(tabs) {
return indexBy(flattenDeep(map(flattenDeep(map(tabs, 'groups')), 'entries')), 'id');
return keyBy(flattenDeep(map(flattenDeep(map(tabs, 'groups')), 'entries')), 'id');
}

@@ -202,3 +202,3 @@

function extractGroups(tabs) {
return indexBy(flattenDeep(map(tabs, 'groups')), 'id');
return keyBy(flattenDeep(map(tabs, 'groups')), 'id');
}

@@ -258,3 +258,3 @@

*/
eventBus.on('root.added', function(e) {
eventBus.on('root.added', function(e) {
var element = e.element;

@@ -826,5 +826,5 @@

var flattenDeep = require('lodash/array/flattenDeep'),
indexBy = require('lodash/collection/indexBy'),
map = require('lodash/collection/map');
var flattenDeep = require('lodash/flattenDeep'),
keyBy = require('lodash/keyBy'),
map = require('lodash/map');

@@ -831,0 +831,0 @@ PropertiesPanel.prototype._create = function(element, tabs) {

@@ -8,3 +8,3 @@ 'use strict';

var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -11,0 +11,0 @@ var message = require('./implementation/MessageEventDefinition'),

@@ -12,5 +12,5 @@ 'use strict';

var forEach = require('lodash/collection/forEach'),
find = require('lodash/collection/find'),
filter = require('lodash/collection/filter');
var forEach = require('lodash/forEach'),
find = require('lodash/find'),
filter = require('lodash/filter');

@@ -17,0 +17,0 @@

@@ -49,3 +49,3 @@ 'use strict';

modelProperty : 'variableEvent',
get: getValue('variableEvent'),

@@ -52,0 +52,0 @@ set: setValue('variableEvent')

@@ -11,3 +11,3 @@ 'use strict';

module.exports = function(group, element, bpmnFactory, errorEventDefinition, showErrorCodeVariable,
showErrorMessageVariable) {
showErrorMessageVariable) {

@@ -14,0 +14,0 @@

@@ -9,4 +9,4 @@ 'use strict';

var forEach = require('lodash/collection/forEach'),
find = require('lodash/collection/find');
var forEach = require('lodash/forEach'),
find = require('lodash/find');

@@ -62,4 +62,4 @@ var elementHelper = require('../../../../helper/ElementHelper');

var elementName = options.elementName || '',
elementType = options.elementType,
var elementName = options.elementName || '',
elementType = options.elementType,
referenceProperty = options.referenceProperty;

@@ -69,3 +69,3 @@

var label = options.label || '',
var label = options.label || '',
description = options.description || '';

@@ -72,0 +72,0 @@

@@ -8,3 +8,3 @@ 'use strict';

var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -11,0 +11,0 @@ function getLinkEventDefinition(element) {

@@ -78,3 +78,3 @@ 'use strict';

// show only if element is a process, a participant ...
if (is(element, 'bpmn:Process') || is(element, 'bpmn:Participant') && businessObject.get('processRef')) {
if (is(element, 'bpmn:Process') || is(element, 'bpmn:Participant') && businessObject.get('processRef')) {
return true;

@@ -93,3 +93,3 @@ }

if (is(element, 'bpmn:Process') || is(element, 'bpmn:Participant') && businessObject.get('processRef')) {
if (is(element, 'bpmn:Process') || is(element, 'bpmn:Participant') && businessObject.get('processRef')) {
return true;

@@ -105,3 +105,3 @@ }

// timer definition
if (is(element, 'bpmn:Event')) {
if (is(element, 'bpmn:Event')) {
return !!eventDefinitionHelper.getTimerEventDefinition(element);

@@ -441,4 +441,4 @@ }

groups: createGeneralTabGroups(
element, bpmnFactory,
elementRegistry, elementTemplates, translate)
element, bpmnFactory,
elementRegistry, elementTemplates, translate)
};

@@ -445,0 +445,0 @@

@@ -15,3 +15,3 @@ 'use strict';

var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -313,3 +313,3 @@ var CAMUNDA_SERVICE_TASK_LIKE = [

/////// helpers /////////////////////////////
// helpers /////////////////////////////

@@ -362,3 +362,3 @@ function createBpmnPropertyUpdates(template, bpmnFactory) {

var binding = p.binding,
bindingType = binding.type;
bindingType = binding.type;
if (bindingType === 'camunda:field') {

@@ -382,3 +382,3 @@ injections.push(createCamundaFieldInjection(

var binding = p.binding,
bindingType = binding.type;
bindingType = binding.type;

@@ -436,3 +436,3 @@ if (bindingType === 'camunda:property') {

var binding = p.binding,
bindingType = binding.type;
bindingType = binding.type;

@@ -466,3 +466,3 @@ if (bindingType === 'camunda:in') {

var binding = p.binding,
bindingType = binding.type;
bindingType = binding.type;

@@ -469,0 +469,0 @@ if (bindingType === 'camunda:executionListener') {

'use strict';
var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -209,3 +209,3 @@ /**

/////////// helpers ////////////////////////////
// helpers ////////////////////////////

@@ -212,0 +212,0 @@ /**

@@ -57,3 +57,3 @@ 'use strict';

////// helpers ////////////////////////////////////
// helpers ////////////////////////////////////

@@ -60,0 +60,0 @@

'use strict';
var values = require('lodash/object/values');
var values = require('lodash/values');

@@ -5,0 +5,0 @@ /**

@@ -8,3 +8,3 @@ 'use strict';

var find = require('lodash/collection/find');
var find = require('lodash/find');

@@ -201,3 +201,3 @@

//////// helpers /////////////////////////////////
// helpers /////////////////////////////////

@@ -204,0 +204,0 @@ function getExtensionElements(element) {

@@ -8,3 +8,3 @@ 'use strict';

var find = require('lodash/collection/find');
var find = require('lodash/find');

@@ -47,3 +47,3 @@ var TEMPLATE_ATTR = require('../Helper').TEMPLATE_ATTR;

////// helpers //////////////////////////////////////
// helpers //////////////////////////////////////

@@ -50,0 +50,0 @@ function applyTemplate(element, newTemplateId, elementTemplates) {

'use strict';
var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -169,3 +169,3 @@ var entryFactory = require('../../../../factory/EntryFactory'),

/////// getters, setters and validators ///////////////
// getters, setters and validators ///////////////

@@ -234,3 +234,3 @@

//////// get, set and validate helpers ///////////////////
// get, set and validate helpers ///////////////////

@@ -636,3 +636,3 @@ /**

var newFieldInjections = [];
if (existingFieldInjections.length > 0) {

@@ -711,3 +711,3 @@ existingFieldInjections.forEach(function(item) {

//////// misc helpers ///////////////////////////////
// misc helpers ///////////////////////////////

@@ -714,0 +714,0 @@ function propertyWithScope(property, scopeName) {

'use strict';
var isArray = require('lodash/lang/isArray');
var isObject = require('lodash/lang/isObject');
var isArray = require('lodash/isArray');
var isObject = require('lodash/isObject');

@@ -187,4 +187,5 @@ var DROPDOWN_TYPE = 'Dropdown';

err = this._logError(
'invalid property type <' + type + '>; ' +
'must be any of { ' + VALID_TYPES.join(', ') + ' }');
'invalid property type <' + type + '>; ' +
'must be any of { ' + VALID_TYPES.join(', ') + ' }'
);
}

@@ -194,3 +195,5 @@

if (!isArray(property.choices)) {
err = this._logError('must provide choices=[] with ' + DROPDOWN_TYPE + ' type');
err = this._logError(
'must provide choices=[] with ' + DROPDOWN_TYPE + ' type'
);
} else

@@ -212,4 +215,5 @@

err = this._logError(
'invalid property.binding type <' + bindingType + '>; ' +
'must be any of { ' + VALID_BINDING_TYPES.join(', ') + ' }');
'invalid property.binding type <' + bindingType + '>; ' +
'must be any of { ' + VALID_BINDING_TYPES.join(', ') + ' }'
);
}

@@ -224,3 +228,4 @@

err = this._logError(
'property.binding <' + bindingType + '> requires name');
'property.binding <' + bindingType + '> requires name'
);
}

@@ -232,3 +237,4 @@ }

err = this._logError(
'property.binding <' + bindingType + '> requires source');
'property.binding <' + bindingType + '> requires source'
);
}

@@ -241,4 +247,5 @@ }

err = this._logError(
'property.binding <' + bindingType + '> requires ' +
'variables or target');
'property.binding <' + bindingType + '> requires ' +
'variables or target'
);
}

@@ -251,4 +258,5 @@ }

err = this._logError(
'property.binding <' + bindingType + '> requires ' +
'variables, sourceExpression or source');
'property.binding <' + bindingType + '> requires ' +
'variables, sourceExpression or source'
);
}

@@ -261,4 +269,5 @@ }

err = this._logError(
'invalid property type <' + type + '> for ' + CAMUNDA_EXECUTION_LISTENER + '; ' +
'must be <Hidden>');
'invalid property type <' + type + '> for ' + CAMUNDA_EXECUTION_LISTENER + '; ' +
'must be <Hidden>'
);
}

@@ -298,3 +307,3 @@ }

//////// helpers ///////////////////////////////////
// helpers ///////////////////////////////////

@@ -301,0 +310,0 @@ function isDropdownChoiceValid(c) {

@@ -12,4 +12,4 @@ 'use strict';

var flattenDeep = require('lodash/array/flattenDeep');
var assign = require('lodash/object/assign');
var flattenDeep = require('lodash/flattenDeep');
var assign = require('lodash/assign');

@@ -16,0 +16,0 @@ function getCallableType(element) {

@@ -24,3 +24,3 @@ 'use strict';

&& !conditionalEventDefinition) {
return;
return;
}

@@ -119,3 +119,3 @@

? { condition: conditionOrConditionExpression }
: { conditionExpression: conditionOrConditionExpression };
: { conditionExpression: conditionOrConditionExpression };

@@ -174,3 +174,3 @@ commands.push(cmdHelper.updateBusinessObject(element, conditionalEventDefinition || bo, update));

////// utilities //////////////////////////
// utilities //////////////////////////

@@ -177,0 +177,0 @@ var CONDITIONAL_SOURCES = [

'use strict';
var ImplementationTypeHelper = require('../../../helper/ImplementationTypeHelper'),
InputOutputHelper = require('../../../helper/InputOutputHelper');
InputOutputHelper = require('../../../helper/InputOutputHelper');
var entryFactory = require('../../../factory/EntryFactory'),
cmdHelper = require('../../../helper/CmdHelper');
var entryFactory = require('../../../factory/EntryFactory'),
cmdHelper = require('../../../helper/CmdHelper');

@@ -9,0 +9,0 @@ function getImplementationType(element) {

'use strict';
var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -5,0 +5,0 @@ var inputOutputParameter = require('./implementation/InputOutputParameter');

@@ -14,4 +14,4 @@ 'use strict';

is = require('bpmn-js/lib/util/ModelUtil').is,
find = require('lodash/collection/find'),
each = require('lodash/collection/forEach');
find = require('lodash/find'),
each = require('lodash/forEach');

@@ -80,4 +80,5 @@ function generateValueId() {

function ensureFormKeyAndDataSupported(element) {
return (is(element, 'bpmn:StartEvent') && !is(element.parent, 'bpmn:SubProcess')) ||
is(element, 'bpmn:UserTask');
return (
is(element, 'bpmn:StartEvent') && !is(element.parent, 'bpmn:SubProcess')
) || is(element, 'bpmn:UserTask');
}

@@ -150,8 +151,8 @@

commands.push(cmdHelper.addAndRemoveElementsFromList(
element,
extensionElements,
'values',
'extensionElements',
[formData],
[]
element,
extensionElements,
'values',
'extensionElements',
[formData],
[]
));

@@ -179,3 +180,3 @@ }

commands.push(cmdHelper.removeElementsFromList(element, formData, 'fields', null, [entry]));
if (entry.id === formData.get('businessKey')) {

@@ -380,4 +381,8 @@ commands.push(cmdHelper.updateBusinessObject(element, formData, { 'businessKey': undefined }));

var enumValue = elementHelper.createElement('camunda:Value', { id: id, name: undefined },
getBusinessObject(element), bpmnFactory);
var enumValue = elementHelper.createElement(
'camunda:Value',
{ id: id, name: undefined },
getBusinessObject(element),
bpmnFactory
);

@@ -449,4 +454,8 @@ return cmdHelper.addElementsTolist(element, selectedFormField, 'values', [enumValue]);

var newConstraint = elementHelper.createElement('camunda:Constraint',
{ name: undefined, config: undefined }, validation, bpmnFactory);
var newConstraint = elementHelper.createElement(
'camunda:Constraint',
{ name: undefined, config: undefined },
validation,
bpmnFactory
);

@@ -472,4 +481,9 @@ commands.push(cmdHelper.addElementsTolist(element, validation, 'constraints', [ newConstraint ]));

commands.push(cmdHelper.removeElementsFromList(element, formField.validation,
'constraints', null, [ currentConstraint ]));
commands.push(cmdHelper.removeElementsFromList(
element,
formField.validation,
'constraints',
null,
[ currentConstraint ]
));

@@ -476,0 +490,0 @@ if (constraints.length === 1) {

'use strict';
var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -5,0 +5,0 @@ var entryFactory = require('../../../../factory/EntryFactory');

@@ -14,3 +14,3 @@ 'use strict';

var forEach = require('lodash/collection/forEach');
var forEach = require('lodash/forEach');

@@ -332,4 +332,8 @@ var attributeInfo = {

var type = getCallableType(element);
return isSupportedCallableType(type) && (getCallActivityBindingValue(element) === 'version') && !version ?
{ callableVersion: translate('Must provide a value.') } : {};
return (
isSupportedCallableType(type) &&
getCallActivityBindingValue(element) === 'version' && (
!version ? { callableVersion: translate('Must provide a value.') } : {}
)
);
},

@@ -343,3 +347,3 @@

}));
entries.push(entryFactory.textField({

@@ -383,7 +387,8 @@ id: 'callable-version-tag',

return isSupportedCallableType(type)
&& (getCallActivityBindingValue(element) === 'versionTag')
&& !versionTag
? { versionTag: translate('Must provide a value.') }
: {};
return (
isSupportedCallableType(type) &&
getCallActivityBindingValue(element) === 'versionTag' && (
!versionTag ? { versionTag: translate('Must provide a value.') } : {}
)
);
},

@@ -468,3 +473,7 @@

return {
businessKey: camundaInWithBusinessKey.length ? camundaInWithBusinessKey[0].get('camunda:businessKey') : undefined
businessKey: (
camundaInWithBusinessKey.length ?
camundaInWithBusinessKey[0].get('camunda:businessKey') :
undefined
)
};

@@ -605,4 +614,7 @@ },

var delegateVariableMapping = values.delegateVariableMapping;
return (getCallableType(element) === 'bpmn') && !delegateVariableMapping ?
{ delegateVariableMapping: translate('Must provide a value.') } : {};
return (
getCallableType(element) === 'bpmn' && (
!delegateVariableMapping ? { delegateVariableMapping: translate('Must provide a value.') } : {}
)
);
},

@@ -609,0 +621,0 @@

@@ -31,4 +31,4 @@ 'use strict';

});
}
}
});

@@ -56,4 +56,4 @@

});
}
}
});

@@ -60,0 +60,0 @@

'use strict';
var entryFactory = require('../../../../factory/EntryFactory'),
cmdHelper = require('../../../../helper/CmdHelper');
cmdHelper = require('../../../../helper/CmdHelper');

@@ -30,3 +30,3 @@ var DELEGATE_TYPES = [

var getImplementationType = options.getImplementationType,
getBusinessObject = options.getBusinessObject;
getBusinessObject = options.getBusinessObject;

@@ -33,0 +33,0 @@ function getDelegationLabel(type) {

@@ -8,3 +8,3 @@ 'use strict';

domify = require('min-dom').domify,
forEach = require('lodash/collection/forEach');
forEach = require('lodash/forEach');

@@ -39,5 +39,5 @@ var elementHelper = require('../../../../helper/ElementHelper'),

var id = options.id,
var id = options.id,
prefix = options.prefix || 'elem',
label = options.label || id,
label = options.label || id,
idGeneration = (options.idGeneration === false) ? options.idGeneration : true,

@@ -51,6 +51,6 @@ businessObject = options.businessObject || getBusinessObject(element);

var createElement = options.createExtensionElement,
canCreate = typeof createElement === 'function';
canCreate = typeof createElement === 'function';
var removeElement = options.removeExtensionElement,
canRemove = typeof removeElement === 'function';
canRemove = typeof removeElement === 'function';

@@ -60,3 +60,3 @@ var onSelectionChange = options.onSelectionChange;

var hideElements = options.hideExtensionElements,
canBeHidden = typeof hideElements === 'function';
canBeHidden = typeof hideElements === 'function';

@@ -66,3 +66,3 @@ var setOptionLabelValue = options.setOptionLabelValue;

var defaultSize = options.size || 5,
resizable = options.resizable;
resizable = options.resizable;

@@ -69,0 +69,0 @@ var reference = options.reference || undefined;

'use strict';
var entryFactory = require('../../../../factory/EntryFactory'),
cmdHelper = require('../../../../helper/CmdHelper');
cmdHelper = require('../../../../helper/CmdHelper');

@@ -9,3 +9,3 @@ module.exports = function(element, bpmnFactory, options, translate) {

var getImplementationType = options.getImplementationType,
getBusinessObject = options.getBusinessObject;
getBusinessObject = options.getBusinessObject;

@@ -12,0 +12,0 @@ function isExternal(element) {

@@ -13,6 +13,6 @@ 'use strict';

var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
getBusinessObject = ModelUtil.getBusinessObject;
var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -33,3 +33,3 @@

var insideListener = !!options.insideListener,
idPrefix = options.idPrefix || '',
idPrefix = options.idPrefix || '',
getSelectedListener = options.getSelectedListener,

@@ -36,0 +36,0 @@ businessObject = options.businessObject || getBusinessObject(element);

@@ -30,4 +30,4 @@ 'use strict';

});
}
}
});

@@ -34,0 +34,0 @@

@@ -8,4 +8,4 @@ 'use strict';

var assign = require('lodash/object/assign');
var map = require('lodash/collection/map');
var assign = require('lodash/assign');
var map = require('lodash/map');

@@ -59,9 +59,9 @@ var DEFAULT_DELEGATE_PROPS = [ 'class', 'expression', 'delegateExpression' ];

var getType = options.getImplementationType,
var getType = options.getImplementationType,
getBusinessObject = options.getBusinessObject;
var hasDmnSupport = options.hasDmnSupport,
hasExternalSupport = options.hasExternalSupport,
var hasDmnSupport = options.hasDmnSupport,
hasExternalSupport = options.hasExternalSupport,
hasServiceTaskLikeSupport = options.hasServiceTaskLikeSupport,
hasScriptSupport = options.hasScriptSupport;
hasScriptSupport = options.hasScriptSupport;

@@ -133,3 +133,3 @@ var entries = [];

if (hasScriptSupport) {
if (hasScriptSupport) {
props['camunda:script'] = undefined;

@@ -136,0 +136,0 @@

@@ -70,3 +70,3 @@ 'use strict';

var insideConnector = !!options.insideConnector,
idPrefix = options.idPrefix || '';
idPrefix = options.idPrefix || '';

@@ -73,0 +73,0 @@ var getSelected = function(element, node) {

@@ -54,3 +54,3 @@ 'use strict';

var insideConnector = !!options.insideConnector,
idPrefix = options.idPrefix || '';
idPrefix = options.idPrefix || '';

@@ -57,0 +57,0 @@ var getSelected = options.getSelectedParameter;

@@ -41,3 +41,3 @@ 'use strict';

var idPrefix = options.idPrefix || '',
var idPrefix = options.idPrefix || '',
labelPrefix = options.labelPrefix || '';

@@ -44,0 +44,0 @@

@@ -88,3 +88,3 @@ 'use strict';

////////// Execution Listener
// Execution Listener

@@ -127,3 +127,3 @@ if (is(element, 'bpmn:FlowElement') || is(element, 'bpmn:Process') || is(element, 'bpmn:Participant')) {

////////// Task Listener
// Task Listener

@@ -130,0 +130,0 @@ if (is(element, 'bpmn:UserTask')) {

@@ -13,5 +13,5 @@ 'use strict';

var assign = require('lodash/object/assign'),
forEach = require('lodash/collection/forEach'),
find = require('lodash/collection/find');
var assign = require('lodash/assign'),
forEach = require('lodash/forEach'),
find = require('lodash/find');

@@ -94,3 +94,3 @@ function generatePropertyId() {

var modelProperties = options.modelProperties,
createParent = options.createParent;
createParent = options.createParent;

@@ -97,0 +97,0 @@ var bo = getBusinessObject(element);

@@ -5,12 +5,12 @@ 'use strict';

var assign = require('lodash/object/assign');
var assign = require('lodash/assign');
var entryFactory = require('../../../../factory/EntryFactory'),
cmdHelper = require('../../../../helper/CmdHelper');
cmdHelper = require('../../../../helper/CmdHelper');
module.exports = function(element, bpmnFactory, options, translate) {
var getBusinessObject = options.getBusinessObject,
hideResultVariable = options.hideResultVariable,
id = options.id || 'resultVariable';
var getBusinessObject = options.getBusinessObject,
hideResultVariable = options.hideResultVariable,
id = options.id || 'resultVariable';

@@ -17,0 +17,0 @@

@@ -92,6 +92,6 @@ 'use strict';

} else
// set language only when scriptFormat has a value
if (scriptFormat !== '') {
update[scriptLanguagePropName] = scriptFormat;
}
// set language only when scriptFormat has a value
if (scriptFormat !== '') {
update[scriptLanguagePropName] = scriptFormat;
}

@@ -167,3 +167,3 @@ // set either inline script or resource

isScript: function(element, inputNode, btnNode, scopeNode) {
isScript: function(element, inputNode, btnNode, scopeNode) {
var scriptType = getScriptType(scopeNode);

@@ -170,0 +170,0 @@ return scriptType === 'script';

@@ -5,3 +5,3 @@ 'use strict';

var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -8,0 +8,0 @@ module.exports = function(group, element, bpmnFactory, options, translate) {

'use strict';
var assign = require('lodash/object/assign');
var assign = require('lodash/assign');

@@ -5,0 +5,0 @@ var fieldInjection = require('./implementation/FieldInjection');

'use strict';
var ImplementationTypeHelper = require('../../../helper/ImplementationTypeHelper'),
InputOutputHelper = require('../../../helper/InputOutputHelper');
InputOutputHelper = require('../../../helper/InputOutputHelper');

@@ -9,10 +9,10 @@ var triggerClickEvent = require('../../../Utils').triggerClickEvent;

var implementationType = require('./implementation/ImplementationType'),
delegate = require('./implementation/Delegate'),
external = require('./implementation/External'),
callable = require('./implementation/Callable'),
resultVariable = require('./implementation/ResultVariable');
delegate = require('./implementation/Delegate'),
external = require('./implementation/External'),
callable = require('./implementation/Callable'),
resultVariable = require('./implementation/ResultVariable');
var entryFactory = require('../../../factory/EntryFactory');
var domQuery = require('min-dom').query,
var domQuery = require('min-dom').query,
domClosest = require('min-dom').closest,

@@ -19,0 +19,0 @@ domClasses = require('min-dom').classes;

@@ -16,3 +16,3 @@ 'use strict';

if ( is(element, 'camunda:Initiator') && !is(element.parent, 'bpmn:SubProcess') ) {
if (is(element, 'camunda:Initiator') && !is(element.parent, 'bpmn:SubProcess')) {
group.entries.push(entryFactory.textField({

@@ -19,0 +19,0 @@ id: 'initiator',

@@ -7,3 +7,3 @@ 'use strict';

var filter = require('lodash/collection/filter');
var filter = require('lodash/filter');

@@ -10,0 +10,0 @@ var extensionElementsHelper = require('../../../helper/ExtensionElementsHelper'),

@@ -27,3 +27,3 @@ 'use strict';

var processBo = bo.get('processRef');
return {

@@ -30,0 +30,0 @@ versionTag: processBo.get('camunda:versionTag')

@@ -6,3 +6,3 @@ 'use strict';

is = require('bpmn-js/lib/util/ModelUtil').is,
forEach = require('lodash/collection/forEach'),
forEach = require('lodash/forEach'),
domify = require('min-dom').domify,

@@ -19,3 +19,3 @@ Ids = require('ids');

var PLACEHOLDER_REGEX = /\$\{([^\}]*)\}/g;
var PLACEHOLDER_REGEX = /\$\{([^}]*)\}/g;

@@ -110,3 +110,3 @@ function selectedOption(selectBox) {

model.push({
label: (obj.name || '') + ' (id='+obj.id+')',
label: (obj.name || '') + ' (id='+obj.id+')',
value: obj.id,

@@ -113,0 +113,0 @@ name: obj.name

{
"name": "bpmn-js-properties-panel",
"version": "0.25.2",
"version": "0.26.0",
"description": "A simple properties panel for bpmn-js",
"scripts": {
"all": "grunt",
"dev": "grunt auto-test",
"test": "grunt test"
"lint": "eslint .",
"all": "run-s lint test build",
"dev": "npm test -- --no-single-run --auto-watch",
"build": "run-s build:*",
"build:less": "lessc --include-path=node_modules styles/properties.less dist/assets/bpmn-js-properties-panel.css",
"test": "karma start",
"prepublishOnly": "run-s build"
},

@@ -25,44 +29,34 @@ "repository": {

"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"bpmn-js": "^2.0.1",
"bpmn-moddle": "^2.1.0",
"browserify": "^13.0.0",
"bpmn-js": "^2.4.0",
"bpmn-moddle": "^5.1.5",
"camunda-bpmn-moddle": "^3.0.0",
"chai": "^4.1.2",
"diagram-js": "^2.1.1",
"eslint": "^2.11.1",
"eslint-plugin-mocha": "^2.2.0",
"grunt": "^0.4.4",
"grunt-cli": "^1.2.0",
"grunt-eslint": "^18.1.0",
"grunt-karma": "^0.12.0",
"grunt-release": "^0.13.0",
"karma": "^1.7.1",
"karma-browserify": "^5.0.1",
"karma-chai": "^0.1.0",
"diagram-js": "^2.5.1",
"eslint": "^5.2.0",
"eslint-plugin-bpmn-io": "^0.5.3",
"karma": "^2.0.4",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.0.0",
"karma-ie-launcher": "^1.0.0",
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "~1.2.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-safari-launcher": "^1.0.0",
"karma-sinon-chai": "^1.3.2",
"karma-sinon-chai": "^2.0.2",
"karma-spec-reporter": "0.0.31",
"load-grunt-tasks": "^3.4.0",
"mocha": "^4.0.1",
"karma-webpack": "^3.0.0",
"less": "^3.8.0",
"mocha": "^5.2.0",
"mocha-test-container-support": "0.2.0",
"puppeteer": "^0.11.0",
"sinon": "^2.4.1",
"sinon-chai": "^2.14.0",
"stringify": "^5.2.0",
"time-grunt": "^1.3.0",
"watchify": "^3.7.0"
"npm-run-all": "^4.1.3",
"puppeteer": "^1.6.0-next.1532381444032",
"raw-loader": "^0.5.1",
"sinon": "^4.5.0",
"sinon-chai": "^3.2.0",
"webpack": "^4.16.2"
},
"dependencies": {
"ids": "^0.2.0",
"ids": "^0.2.2",
"inherits": "^2.0.1",
"lodash": "^3.0.1",
"min-dom": "^3.0.0",
"scroll-tabs": "^0.2.1",
"lodash": "^4.17.10",
"min-dom": "^3.1.0",
"scroll-tabs": "^1.0.0",
"selection-update": "^0.1.2"

@@ -69,0 +63,0 @@ },

@@ -31,6 +31,6 @@ 'use strict';

var unique = require('lodash/array/unique'),
isFunction = require('lodash/lang/isFunction'),
merge = require('lodash/object/merge'),
forEach = require('lodash/collection/forEach');
var unique = require('lodash/uniq'),
isFunction = require('lodash/isFunction'),
merge = require('lodash/merge'),
forEach = require('lodash/forEach');

@@ -37,0 +37,0 @@ var TestContainer = require('mocha-test-container-support');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc