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

dmn-js-shared

Package Overview
Dependencies
Maintainers
9
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmn-js-shared - npm Package Compare versions

Comparing version 15.0.0 to 15.1.0

lib/util/PoweredByUtil.js

4

lib/base/EditingManager.js

@@ -18,5 +18,5 @@ import Manager from './Manager';

this.on('viewer.created', _ref => {
let viewer = _ref.viewer;
var viewer = _ref.viewer;
viewer.on('elements.changed', _ref2 => {
let elements = _ref2.elements;
var elements = _ref2.elements;
var viewsChanged = elements.some(function (e) {

@@ -23,0 +23,0 @@ return isAny(e, ['dmn:Decision', 'dmn:Definitions']);

@@ -1,6 +0,6 @@

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import EventBus from 'diagram-js/lib/core/EventBus';

@@ -20,3 +20,3 @@ import DmnModdle from 'dmn-moddle';

const DEFAULT_CONTAINER_OPTIONS = {
var DEFAULT_CONTAINER_OPTIONS = {
width: '100%',

@@ -41,3 +41,3 @@ height: '100%',

constructor() {
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
_defineProperty(this, "_viewsChanged", () => {

@@ -374,4 +374,4 @@ this._emit('views.changed', {

this._views = [];
const container = domify('<div class="dmn-js-parent"></div>');
const containerOptions = assign({}, DEFAULT_CONTAINER_OPTIONS, options);
var container = domify('<div class="dmn-js-parent"></div>');
var containerOptions = assign({}, DEFAULT_CONTAINER_OPTIONS, options);
assign(container.style, {

@@ -378,0 +378,0 @@ width: ensureUnit(containerOptions.width),

@@ -5,7 +5,7 @@ export default class ChangeSupport {

eventBus.on('elements.changed', _ref => {
let elements = _ref.elements;
var elements = _ref.elements;
this.elementsChanged(elements);
});
eventBus.on('element.updateId', _ref2 => {
let element = _ref2.element,
var element = _ref2.element,
newId = _ref2.newId;

@@ -16,6 +16,6 @@ this.updateId(element.id, newId);

elementsChanged(elements) {
const invoked = {};
const elementsLength = elements.length;
for (let i = 0; i < elementsLength; i++) {
const id = elements[i].id;
var invoked = {};
var elementsLength = elements.length;
for (var i = 0; i < elementsLength; i++) {
var id = elements[i].id;
if (invoked[id]) {

@@ -25,5 +25,5 @@ return;

invoked[id] = true;
const listenersLength = this._listeners[id] && this._listeners[id].length;
var listenersLength = this._listeners[id] && this._listeners[id].length;
if (listenersLength) {
for (let j = 0; j < listenersLength; j++) {
for (var j = 0; j < listenersLength; j++) {
// listeners might remove themselves before they get called

@@ -48,3 +48,3 @@ this._listeners[id][j] && this._listeners[id][j]();

if (listener) {
const idx = this._listeners[id].indexOf(listener);
var idx = this._listeners[id].indexOf(listener);
if (idx !== -1) {

@@ -51,0 +51,0 @@ this._listeners[id].splice(idx, 1);

import { isFunction, isNumber } from 'min-dash';
const DEFAULT_PRIORITY = 1000;
var DEFAULT_PRIORITY = 1000;
export default class Components {

@@ -8,8 +8,8 @@ constructor() {

getComponent(type, context) {
const listeners = this._listeners[type];
var listeners = this._listeners[type];
if (!listeners) {
return;
}
let component;
for (let i = 0; i < listeners.length; i++) {
var component;
for (var i = 0; i < listeners.length; i++) {
component = listeners[i].callback(context);

@@ -23,9 +23,9 @@ if (component) {

getComponents(type, context) {
const listeners = this._listeners[type];
var listeners = this._listeners[type];
if (!listeners) {
return;
}
const components = [];
for (let i = 0; i < listeners.length; i++) {
const component = listeners[i].callback(context);
var components = [];
for (var i = 0; i < listeners.length; i++) {
var component = listeners[i].callback(context);
if (component) {

@@ -48,5 +48,5 @@ components.push(component);

}
const listeners = this._getListeners(type);
let existingListener, idx;
const newListener = {
var listeners = this._getListeners(type);
var existingListener, idx;
var newListener = {
priority,

@@ -65,4 +65,4 @@ callback

offGetComponent(type, callback) {
const listeners = this._getListeners(type);
let listener, listenerCallback, idx;
var listeners = this._getListeners(type);
var listener, listenerCallback, idx;
if (callback) {

@@ -83,3 +83,3 @@ // move through listeners from back to front

_getListeners(type) {
let listeners = this._listeners[type];
var listeners = this._listeners[type];
if (!listeners) {

@@ -86,0 +86,0 @@ this._listeners[type] = listeners = [];

@@ -6,3 +6,3 @@ import { createVNode, createComponentVNode } from "inferno";

super(props);
const injector = this._injector = props.injector;
var injector = this._injector = props.injector;
this._changeSupport = injector.get('changeSupport');

@@ -21,3 +21,3 @@ this._components = injector.get('components');

render() {
const components = this._components.getComponents('viewer');
var components = this._components.getComponents('viewer');
return createVNode(1, "div", "viewer-container", components && components.map((Component, index) => createComponentVNode(2, Component, null, index)), 0);

@@ -24,0 +24,0 @@ }

@@ -6,3 +6,3 @@ import { createComponentVNode } from "inferno";

constructor(changeSupport, components, config, eventBus, injector) {
const container = config.container;
var container = config.container;
this._container = container;

@@ -9,0 +9,0 @@ eventBus.on('renderer.mount', () => {

@@ -1,2 +0,2 @@

const _excluded = ["modules"];
var _excluded = ["modules"];
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

@@ -12,6 +12,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

constructor() {
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
let injector = options.injector;
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var injector = options.injector;
if (!injector) {
let _this$_init = this._init(options),
var _this$_init = this._init(options),
modules = _this$_init.modules,

@@ -34,3 +34,3 @@ config = _this$_init.config;

_init(options) {
let modules = options.modules,
var modules = options.modules,
config = _objectWithoutProperties(options, _excluded);

@@ -47,3 +47,3 @@ return {

destroy() {
const eventBus = this.get('eventBus');
var eventBus = this.get('eventBus');
eventBus.fire('viewer.destroy');

@@ -56,3 +56,3 @@ }

clear() {
const eventBus = this.get('eventBus');
var eventBus = this.get('eventBus');
eventBus.fire('viewer.clear');

@@ -65,6 +65,6 @@ }

function createInjector(config, modules) {
const bootstrapModules = [{
var bootstrapModules = [{
config: ['value', config]
}, core].concat(modules || []);
const injector = new Injector(bootstrapModules);
var injector = new Injector(bootstrapModules);
injector.init();

@@ -71,0 +71,0 @@ return injector;

import { createVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';

@@ -10,3 +10,3 @@ export default class Button extends Component {

_defineProperty(this, "onClick", event => {
const onClick = this.props.onClick;
var onClick = this.props.onClick;
if (typeof onClick !== 'function') {

@@ -18,3 +18,3 @@ return;

_defineProperty(this, "onMouseDown", event => {
const onMouseDown = this.props.onMouseDown;
var onMouseDown = this.props.onMouseDown;
if (typeof onMouseDown !== 'function') {

@@ -26,3 +26,3 @@ return;

_defineProperty(this, "onMouseUp", event => {
const onMouseUp = this.props.onMouseUp;
var onMouseUp = this.props.onMouseUp;
if (typeof onMouseUp !== 'function') {

@@ -35,3 +35,3 @@ return;

render() {
const className = this.props.className;
var className = this.props.className;
return createVNode(1, "button", [className || '', 'button'].join(' '), this.props.children, 0, {

@@ -38,0 +38,0 @@ "onClick": this.onClick,

import { createVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';

@@ -82,2 +82,3 @@ import escapeHtml from 'escape-html';

});
// TODO(barmac): remove once we drop IE 11 support
_defineProperty(this, "onKeyPress", event => {

@@ -94,3 +95,3 @@ if (this.onInputIEPolyfill) {

if (this.props.singleLine) {
const text = (event.clipboardData || window.clipboardData).getData('text');
var text = (event.clipboardData || window.clipboardData).getData('text');

@@ -136,15 +137,15 @@ // replace newline with space

const range = selected.range;
const text = selected.text;
const node = this.node;
const newText = innerText(node);
const newRange = newText !== text ? selectionUpdate(range, text, newText) : range;
var range = selected.range;
var text = selected.text;
var node = this.node;
var newText = innerText(node);
var newRange = newText !== text ? selectionUpdate(range, text, newText) : range;
setRange(node, newRange);
}
getClassName() {
const _this$props = this.props,
var _this$props = this.props,
className = _this$props.className,
placeholder = _this$props.placeholder,
value = _this$props.value;
return [className || '', 'content-editable', !value && placeholder ? 'content-editable--with-placeholder' : ''].join(' ');
return [className || '', 'content-editable', !value && placeholder ? 'placeholder' : ''].join(' ');
}

@@ -151,0 +152,0 @@ render(props) {

import { createComponentVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';

@@ -53,3 +53,3 @@ import ContentEditable from './ContentEditable';

});
const invalid = this.state.invalid;
var invalid = this.state.invalid;
if (invalid) {

@@ -61,3 +61,3 @@ this.setState({

}
const onBlur = this.props.onBlur;
var onBlur = this.props.onBlur;
if (typeof onBlur === 'function') {

@@ -71,6 +71,6 @@ onBlur(event);

};
const injector = context.injector;
const debounceInput = injector.get('debounceInput');
var injector = context.injector;
var debounceInput = injector.get('debounceInput');
this.inputChanged = debounceInput(value => {
const onChange = this.props.onChange;
var onChange = this.props.onChange;
if (typeof onChange === 'function') {

@@ -83,3 +83,3 @@ onChange(value);

// input jumping back to the saved, good value.
const currentValue = this.state.changing;
var currentValue = this.state.changing;
this.setState({

@@ -137,3 +137,3 @@ changing: currentValue === value ? false : currentValue

getEditor() {
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return createComponentVNode(2, ContentEditable, {

@@ -140,0 +140,0 @@ "className": props.className,

import { createVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';

@@ -10,3 +10,3 @@ export default class Input extends Component {

_defineProperty(this, "onInput", event => {
const onInput = this.props.onInput;
var onInput = this.props.onInput;
if (typeof onInput !== 'function') {

@@ -18,3 +18,3 @@ return;

_defineProperty(this, "onKeyDown", event => {
const onKeyDown = this.props.onKeyDown;
var onKeyDown = this.props.onKeyDown;
if (typeof onKeyDown !== 'function') {

@@ -26,3 +26,3 @@ return;

_defineProperty(this, "onKeyUp", event => {
const onKeyUp = this.props.onKeyUp;
var onKeyUp = this.props.onKeyUp;
if (typeof onKeyUp !== 'function') {

@@ -35,3 +35,3 @@ return;

render() {
const _this$props = this.props,
var _this$props = this.props,
className = _this$props.className,

@@ -38,0 +38,0 @@ placeholder = _this$props.placeholder,

import { createVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component, createPortal } from 'inferno';

@@ -16,3 +16,3 @@ import { inject } from 'table-js/lib/components';

});
const onChange = this.props.onChange;
var onChange = this.props.onChange;
if (typeof onChange !== 'function') {

@@ -30,3 +30,3 @@ return;

_defineProperty(this, "onInput", event => {
const value = event.target.value;
var value = event.target.value;
this.onChange(value);

@@ -48,3 +48,3 @@ });

_defineProperty(this, "onKeyDown", evt => {
const optionsVisible = this.state.optionsVisible;
var optionsVisible = this.state.optionsVisible;
var code = evt.which;

@@ -73,3 +73,3 @@

_defineProperty(this, "onKeyboard", keycode => {
const optionsVisible = this.state.optionsVisible;
var optionsVisible = this.state.optionsVisible;
if (!optionsVisible) {

@@ -86,3 +86,3 @@ return;

inject(this);
const _value = props.value;
var _value = props.value;
this.state = {

@@ -106,3 +106,3 @@ value: _value,

componentWillReceiveProps(props) {
const value = props.value;
var value = props.value;
this.setState({

@@ -113,3 +113,3 @@ value

componentWillUpdate(nextProps, nextState) {
const optionsVisible = nextState.optionsVisible;
var optionsVisible = nextState.optionsVisible;
if (optionsVisible) {

@@ -126,16 +126,16 @@ if (!this._portalEl) {

componentDidUpdate() {
const optionsVisible = this.state.optionsVisible;
var optionsVisible = this.state.optionsVisible;
if (!optionsVisible || !this.inputNode) {
return;
}
const optionsBounds = this.getOptionsBounds();
var optionsBounds = this.getOptionsBounds();
assign(this._portalEl.style, optionsBounds);
}
getOptionsBounds() {
const container = this.renderer.getContainer();
const _container$getBoundin = container.getBoundingClientRect(),
var container = this.renderer.getContainer();
var _container$getBoundin = container.getBoundingClientRect(),
containerTop = _container$getBoundin.top,
containerLeft = _container$getBoundin.left,
containerBottom = _container$getBoundin.bottom;
const _this$inputNode$getBo = this.inputNode.getBoundingClientRect(),
var _this$inputNode$getBo = this.inputNode.getBoundingClientRect(),
inputTop = _this$inputNode$getBo.top,

@@ -146,5 +146,5 @@ inputLeft = _this$inputNode$getBo.left,

inputBottom = _this$inputNode$getBo.bottom;
const top = inputTop + height - containerTop + container.scrollTop;
const left = inputLeft - containerLeft + container.scrollLeft;
const bounds = {
var top = inputTop + height - containerTop + container.scrollTop;
var left = inputLeft - containerLeft + container.scrollLeft;
var bounds = {
top: "".concat(top, "px"),

@@ -158,3 +158,3 @@ left: "".concat(left, "px"),

if (containerBottom - inputBottom < height) {
const bottom = containerBottom - inputTop;
var bottom = containerBottom - inputTop;
bounds.bottom = "".concat(bottom, "px");

@@ -168,3 +168,3 @@ bounds['max-height'] = "calc(100% - ".concat(bottom, ")");

this._portalEl = domify('<div class="dms-select-options"></div>');
const container = this.renderer.getContainer();
var container = this.renderer.getContainer();
container.appendChild(this._portalEl);

@@ -186,3 +186,3 @@

focusInput() {
const node = this.inputNode;
var node = this.inputNode;
node.focus();

@@ -201,11 +201,11 @@

select(direction) {
const options = this.props.options;
const value = this.state.value;
var options = this.props.options;
var value = this.state.value;
if (!options) {
return;
}
const option = options.filter(o => o.value === value)[0];
const idx = option ? options.indexOf(option) : -1;
const nextIdx = idx === -1 ? direction === 1 ? 0 : options.length - 1 : (idx + direction) % options.length;
const nextOption = options[nextIdx < 0 ? options.length + nextIdx : nextIdx];
var option = options.filter(o => o.value === value)[0];
var idx = option ? options.indexOf(option) : -1;
var nextIdx = idx === -1 ? direction === 1 ? 0 : options.length - 1 : (idx + direction) % options.length;
var nextOption = options[nextIdx < 0 ? options.length + nextIdx : nextIdx];
this.onChange(nextOption.value);

@@ -227,3 +227,3 @@ }

render() {
const _this$props = this.props,
var _this$props = this.props,
className = _this$props.className,

@@ -233,7 +233,7 @@ options = _this$props.options,

title = _this$props.title;
const _this$state = this.state,
var _this$state = this.state,
optionsVisible = _this$state.optionsVisible,
value = _this$state.value;
const option = options ? options.filter(o => o.value === value)[0] : false;
const label = option ? option.label : value;
var option = options ? options.filter(o => o.value === value)[0] : false;
var label = option ? option.label : value;
return createVNode(1, "div", [className || '', 'dms-input-select'].join(' '), [noInput ? createVNode(1, "div", "dms-input", label, 0, {

@@ -240,0 +240,0 @@ "tabindex": "0",

import { createVNode, createTextVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';
import { groupBy } from 'min-dash';
const RADIO = 'radio';
const REMOVE_BTN_CLS = 'remove dmn-icon-clear';
var RADIO = 'radio';
var REMOVE_BTN_CLS = 'remove dmn-icon-clear';

@@ -38,6 +38,6 @@ /**

_defineProperty(this, "removeItem", item => {
const onChange = this.props.onChange;
var onChange = this.props.onChange;
// remove item
const newItems = this.state.items.filter(i => i !== item);
var newItems = this.state.items.filter(i => i !== item);
this.setState({

@@ -49,3 +49,3 @@ items: newItems

_defineProperty(this, "toggleItem", item => {
const _this$props = this.props,
var _this$props = this.props,
onChange = _this$props.onChange,

@@ -55,3 +55,3 @@ type = _this$props.type;

// toggle item
const newItems = this.state.items.map(i => {
var newItems = this.state.items.map(i => {
if (i === item) {

@@ -71,3 +71,3 @@ i.isChecked = !i.isChecked;

});
const items = props.items;
var items = props.items;
this.state = {

@@ -78,3 +78,3 @@ items

componentWillReceiveProps(props) {
const items = props.items;
var items = props.items;
this.setState({

@@ -85,3 +85,3 @@ items

render() {
const _this$props2 = this.props,
var _this$props2 = this.props,
className = _this$props2.className,

@@ -91,3 +91,3 @@ items = _this$props2.items,

labelComponent = _this$props2.labelComponent;
const classes = ['dms-list-component'];
var classes = ['dms-list-component'];
if (className) {

@@ -98,6 +98,6 @@ classes.push(className);

// group items by group title
const groupedItems = groupBy(items, 'group');
const asPairs = toPairs(groupedItems);
var groupedItems = groupBy(items, 'group');
var asPairs = toPairs(groupedItems);
return createVNode(1, "div", classes.join(' '), asPairs.map(pair => {
const groupTitle = pair[0],
var groupTitle = pair[0],
groupItems = pair[1];

@@ -121,4 +121,4 @@ return createVNode(1, "div", "group", [labelComponent && labelComponent(groupTitle) || createVNode(1, "h4", "dms-heading", groupTitle, 0), createVNode(1, "ul", "items no-wrap", groupItems.map(item => {

function toPairs(object) {
const entrys = [];
for (let key in object) {
var entrys = [];
for (var key in object) {
entrys.push([key, object[key]]);

@@ -125,0 +125,0 @@ }

import { createVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';

@@ -58,2 +58,5 @@ import FeelEditor from '@bpmn-io/feel-editor';

});
/**
* @param {KeyboardEvent} event
*/
_defineProperty(this, "handleKeyDown", event => {

@@ -66,3 +69,3 @@ // contain the event in the component to not trigger global handlers

_defineProperty(this, "handleChange", value => {
const onInput = this.props.onInput;
var onInput = this.props.onInput;
this.setState({

@@ -101,3 +104,3 @@ value

componentDidUpdate(prevProps) {
const value = this.props.value;
var value = this.props.value;
if (prevProps.value !== value && value !== this.state.value) {

@@ -104,0 +107,0 @@ this.setState({

@@ -1,9 +0,9 @@

const _excluded = ["type", "context"],
var _excluded = ["type", "context"],
_excluded2 = ["type", "context"];
import { createComponentVNode, normalizeProps } from "inferno";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

@@ -16,8 +16,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

*/
const ComponentWithSlots = {
var ComponentWithSlots = {
slotFill(slotProps, DefaultFill) {
const type = slotProps.type,
var type = slotProps.type,
context = slotProps.context,
props = _objectWithoutProperties(slotProps, _excluded);
const Fill = this.components.getComponent(type, context) || DefaultFill;
var Fill = this.components.getComponent(type, context) || DefaultFill;
if (Fill) {

@@ -29,6 +29,6 @@ return normalizeProps(createComponentVNode(2, Fill, _objectSpread(_objectSpread({}, context), props)));

slotFills(slotProps) {
const type = slotProps.type,
var type = slotProps.type,
context = slotProps.context,
props = _objectWithoutProperties(slotProps, _excluded2);
const fills = this.components.getComponents(type, context);
var fills = this.components.getComponents(type, context);
return fills.map(Fill => normalizeProps(createComponentVNode(2, Fill, _objectSpread(_objectSpread({}, context), props))));

@@ -35,0 +35,0 @@ }

import { createVNode } from "inferno";
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Component } from 'inferno';

@@ -10,7 +10,7 @@ export default class Select extends Component {

_defineProperty(this, "onChange", event => {
const value = event.target.value;
var value = event.target.value;
this.setState({
value
});
const onChange = this.props.onChange;
var onChange = this.props.onChange;
if (typeof onChange !== 'function') {

@@ -21,3 +21,3 @@ return;

});
const _value = props.value;
var _value = props.value;
this.state = {

@@ -28,3 +28,3 @@ value: _value

componentWillReceiveProps(props) {
const value = props.value;
var value = props.value;
this.setState({

@@ -35,8 +35,8 @@ value

render() {
const _this$props = this.props,
var _this$props = this.props,
className = _this$props.className,
options = _this$props.options;
const value = this.state.value;
var value = this.state.value;
return createVNode(256, "select", [className || '', 'dms-select'].join(' '), (options || []).map(_ref => {
let label = _ref.label,
var label = _ref.label,
value = _ref.value;

@@ -43,0 +43,0 @@ return createVNode(1, "option", "option", label, 0, {

@@ -13,5 +13,5 @@ import { createVNode, createComponentVNode } from "inferno";

super(props, context);
const validate = props.validate,
var validate = props.validate,
value = props.value;
const validationWarning = validate ? validate(value || '') : undefined;
var validationWarning = validate ? validate(value || '') : undefined;
this.state = {

@@ -26,5 +26,5 @@ validationWarning,

componentWillReceiveProps(props) {
const validate = props.validate,
var validate = props.validate,
value = props.value;
const validationWarning = validate ? validate(value || '') : undefined;
var validationWarning = validate ? validate(value || '') : undefined;
this.setState({

@@ -36,6 +36,6 @@ validationWarning,

onInput(value) {
const _this$props = this.props,
var _this$props = this.props,
onInput = _this$props.onInput,
validate = _this$props.validate;
const validationWarning = validate ? validate(value) : undefined;
var validationWarning = validate ? validate(value) : undefined;
this.setState({

@@ -54,8 +54,8 @@ validationWarning,

onKeyDown(event) {
const target = event.target,
var target = event.target,
value = target.value;
const _this$props2 = this.props,
var _this$props2 = this.props,
onKeyDown = _this$props2.onKeyDown,
validate = _this$props2.validate;
const validationWarning = validate ? validate(value) : undefined;
var validationWarning = validate ? validate(value) : undefined;
if (typeof onKeyDown !== 'function') {

@@ -71,8 +71,8 @@ return;

onKeyUp(event) {
const target = event.target,
var target = event.target,
value = target.value;
const _this$props3 = this.props,
var _this$props3 = this.props,
onKeyUp = _this$props3.onKeyUp,
validate = _this$props3.validate;
const validationWarning = validate ? validate(value) : undefined;
var validationWarning = validate ? validate(value) : undefined;
if (typeof onKeyUp !== 'function') {

@@ -88,11 +88,11 @@ return;

render() {
const _this$props4 = this.props,
var _this$props4 = this.props,
placeholder = _this$props4.placeholder,
type = _this$props4.type,
className = _this$props4.className;
const _this$state = this.state,
var _this$state = this.state,
validationWarning = _this$state.validationWarning,
value = _this$state.value;
const parentClasses = ['dms-validated-input', className].join(' ');
const inputClasses = [];
var parentClasses = ['dms-validated-input', className].join(' ');
var inputClasses = [];
if (validationWarning) {

@@ -99,0 +99,0 @@ inputClasses.push('invalid');

@@ -1,2 +0,2 @@

const DEFAULT_DATA_TYPES = ['string', 'boolean', 'number', 'date', 'time', 'dateTime', 'dayTimeDuration', 'yearMonthDuration', 'Any'];
var DEFAULT_DATA_TYPES = ['string', 'boolean', 'number', 'date', 'time', 'dateTime', 'dayTimeDuration', 'yearMonthDuration', 'Any'];

@@ -3,0 +3,0 @@ /**

import { debounce, isNumber } from 'min-dash';
const DEFAULT_DEBOUNCE_TIME = 300;
var DEFAULT_DEBOUNCE_TIME = 300;
export default function debounceInput(shouldDebounce) {

@@ -4,0 +4,0 @@ return function _debounceInput(fn) {

import { assign, find } from 'min-dash';
const EXPRESSION_LANGUAGE_OPTIONS = [{
var EXPRESSION_LANGUAGE_OPTIONS = [{
label: 'FEEL',

@@ -39,3 +39,3 @@ value: 'feel'

this._injector = injector;
const config = injector.get('config.expressionLanguages') || {};
var config = injector.get('config.expressionLanguages') || {};
this._config = {

@@ -52,3 +52,3 @@ options: EXPRESSION_LANGUAGE_OPTIONS,

}
const legacyDefaults = this._getLegacyDefaults();
var legacyDefaults = this._getLegacyDefaults();
assign(this._config.defaults, legacyDefaults, config.defaults);

@@ -65,4 +65,4 @@ }

getDefault(componentName) {
const defaults = this._config.defaults;
const defaultFromConfig = defaults[componentName] || defaults.editor;
var defaults = this._config.defaults;
var defaultFromConfig = defaults[componentName] || defaults.editor;
return this._getLanguageByValue(defaultFromConfig) || this.getAll()[0];

@@ -78,3 +78,3 @@ }

getLabel(expressionLanguageValue) {
const langauge = this._getLanguageByValue(expressionLanguageValue);
var langauge = this._getLanguageByValue(expressionLanguageValue);
return langauge ? langauge.label : expressionLanguageValue;

@@ -92,6 +92,6 @@ }

_getLegacyDefaults() {
const defaults = {},
var defaults = {},
injector = this._injector;
const inputCellValue = injector.get('config.defaultInputExpressionLanguage');
const outputCellValue = injector.get('config.defaultOutputExpressionLanguage');
var inputCellValue = injector.get('config.defaultInputExpressionLanguage');
var outputCellValue = injector.get('config.defaultOutputExpressionLanguage');
if (inputCellValue) {

@@ -98,0 +98,0 @@ defaults.inputCell = inputCellValue;

import { forEach } from 'min-dash';
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
import { is, getBusinessObject } from '../../../util/ModelUtil';
const ID = 'id';
var ID = 'id';
export default class IdChangeBehavior extends CommandInterceptor {

@@ -11,16 +11,16 @@ constructor(eventBus) {

updateIds(_ref) {
let context = _ref.context;
const element = context.element,
var context = _ref.context;
var element = context.element,
oldProperties = context.oldProperties,
properties = context.properties;
const bo = getBusinessObject(element);
var bo = getBusinessObject(element);
if (this.shouldSkipUpdate(bo, oldProperties, properties)) {
return;
}
const definitions = getDefinitions(bo);
const drgElements = definitions.get('drgElement');
var definitions = getDefinitions(bo);
var drgElements = definitions.get('drgElement');
drgElements.forEach(drgElement => {
updateElementReferences(drgElement, oldProperties.id, properties.id);
});
const artifacts = definitions.get('artifact');
var artifacts = definitions.get('artifact');
artifacts.forEach(artifact => {

@@ -48,3 +48,3 @@ updateAssociationReferences(artifact, oldProperties.id, properties.id);

function getDefinitions(element) {
let definitions = element;
var definitions = element;
while (!is(definitions, 'dmn:Definitions')) {

@@ -56,6 +56,6 @@ definitions = definitions.$parent;

function updateElementReferences(element, oldId, id) {
const handlers = {
var handlers = {
authorityRequirement: () => {
element.authorityRequirement.forEach(authorityRequirement => {
const requiredAuthority = authorityRequirement.requiredAuthority,
var requiredAuthority = authorityRequirement.requiredAuthority,
requiredDecision = authorityRequirement.requiredDecision,

@@ -76,3 +76,3 @@ requiredInput = authorityRequirement.requiredInput;

element.informationRequirement.forEach(informationRequirement => {
const requiredDecision = informationRequirement.requiredDecision,
var requiredDecision = informationRequirement.requiredDecision,
requiredInput = informationRequirement.requiredInput;

@@ -89,3 +89,3 @@ if (requiredDecision && requiredDecision.href === "#".concat(oldId)) {

element.knowledgeRequirement.forEach(knowledgeRequirement => {
const requiredKnowledge = knowledgeRequirement.requiredKnowledge;
var requiredKnowledge = knowledgeRequirement.requiredKnowledge;
if (requiredKnowledge && requiredKnowledge.href === "#".concat(oldId)) {

@@ -104,5 +104,5 @@ requiredKnowledge.href = "#".concat(id);

function updateAssociationReferences(element, oldId, id) {
const handlers = {
var handlers = {
sourceRef: () => {
const sourceRef = element.sourceRef;
var sourceRef = element.sourceRef;
if (sourceRef.href === "#".concat(oldId)) {

@@ -113,3 +113,3 @@ sourceRef.href = "#".concat(id);

targetRef: () => {
const targetRef = element.targetRef;
var targetRef = element.targetRef;
if (targetRef.href === "#".concat(oldId)) {

@@ -116,0 +116,0 @@ targetRef.href = "#".concat(id);

@@ -1,9 +0,9 @@

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { isObject, isDefined, reduce } from 'min-dash';
import { getBusinessObject } from '../../../util/ModelUtil';
const ID = 'id';
var ID = 'id';

@@ -23,6 +23,6 @@ /**

execute(context) {
const element = context.element,
var element = context.element,
properties = context.properties;
const bo = getBusinessObject(element);
const _this$updatePropertie = this.updateProperties(bo, properties),
var bo = getBusinessObject(element);
var _this$updatePropertie = this.updateProperties(bo, properties),
changed = _this$updatePropertie.changed,

@@ -38,3 +38,3 @@ oldProperties = _this$updatePropertie.oldProperties;

revert(context) {
const element = context.element,
var element = context.element,
oldProperties = context.oldProperties;

@@ -52,3 +52,3 @@ var bo = getBusinessObject(element);

updateProperties(bo, newProps) {
const ids = this._moddle.ids;
var ids = this._moddle.ids;

@@ -62,3 +62,3 @@ // Reduce over all new properties and return

return reduce(newProps, (result, value, key) => {
const propertyValue = bo.get(key);
var propertyValue = bo.get(key);

@@ -70,3 +70,3 @@ // handle nested update

}
let _this$updatePropertie3 = this.updateProperties(propertyValue, value),
var _this$updatePropertie3 = this.updateProperties(propertyValue, value),
changed = _this$updatePropertie3.changed,

@@ -73,0 +73,0 @@ oldProperties = _this$updatePropertie3.oldProperties;

@@ -1,9 +0,9 @@

const SPACE_REGEX = /\s/;
var SPACE_REGEX = /\s/;
// for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar
const QNAME_REGEX = /^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i;
var QNAME_REGEX = /^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i;
// for ID validation as per BPMN Schema (QName - Namespace)
const ID_REGEX = /^[a-z_][\w-.]*$/i;
const PLACEHOLDER_REGEX = /\$\{([^}]*)\}/g;
var ID_REGEX = /^[a-z_][\w-.]*$/i;
var PLACEHOLDER_REGEX = /\$\{([^}]*)\}/g;

@@ -19,4 +19,4 @@ /**

export function validateId(businessObject, id) {
const assigned = businessObject.$model.ids.assigned(id);
const idExists = assigned && assigned !== businessObject;
var assigned = businessObject.$model.ids.assigned(id);
var idExists = assigned && assigned !== businessObject;
if (!id) {

@@ -23,0 +23,0 @@ return 'Element must have ID.';

{
"name": "dmn-js-shared",
"description": "Shared components used by dmn-js",
"version": "15.0.0",
"version": "15.1.0",
"files": [

@@ -26,4 +26,4 @@ "assets",

"dependencies": {
"@bpmn-io/feel-editor": "^1.0.0",
"diagram-js": "^13.0.0",
"@bpmn-io/feel-editor": "^1.1.0",
"diagram-js": "^13.4.0",
"didi": "^10.0.1",

@@ -39,3 +39,3 @@ "dmn-moddle": "^10.0.0",

},
"gitHead": "d99f7e3724d27df8e667149e2de54ad4aa518802"
"gitHead": "39f2a01ea86ab9e0ad306498231ab8937c6d0897"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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