camunda-bpmn-js 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-modeler.development.js +20 -5
- package/dist/base-modeler.production.min.js +2 -2
- package/dist/camunda-cloud-modeler.development.js +46 -14
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +22 -7
- package/dist/camunda-platform-modeler.production.min.js +2 -2
- package/package.json +3 -3
|
@@ -56088,7 +56088,8 @@
|
|
|
56088
56088
|
}
|
|
56089
56089
|
|
|
56090
56090
|
forEach(elements, function(element) {
|
|
56091
|
-
var assignedDi = isConnection$c(element) ? pick(di, [ 'border-color' ]) : di
|
|
56091
|
+
var assignedDi = isConnection$c(element) ? pick(di, [ 'border-color' ]) : di,
|
|
56092
|
+
elementDi = getDi(element);
|
|
56092
56093
|
|
|
56093
56094
|
// TODO @barmac: remove once we drop bpmn.io properties
|
|
56094
56095
|
ensureLegacySupport(assignedDi);
|
|
@@ -56098,13 +56099,18 @@
|
|
|
56098
56099
|
// set label colors as bpmndi:BPMNLabel#color
|
|
56099
56100
|
self._commandStack.execute('element.updateModdleProperties', {
|
|
56100
56101
|
element: element,
|
|
56101
|
-
moddleElement:
|
|
56102
|
+
moddleElement: elementDi.label,
|
|
56102
56103
|
properties: {
|
|
56103
56104
|
color: di['border-color']
|
|
56104
56105
|
}
|
|
56105
56106
|
});
|
|
56106
56107
|
} else {
|
|
56107
56108
|
|
|
56109
|
+
// ignore non-compliant di
|
|
56110
|
+
if (!isAny(elementDi, [ 'bpmndi:BPMNEdge', 'bpmndi:BPMNShape' ])) {
|
|
56111
|
+
return;
|
|
56112
|
+
}
|
|
56113
|
+
|
|
56108
56114
|
// set colors bpmndi:BPMNEdge or bpmndi:BPMNShape
|
|
56109
56115
|
self._commandStack.execute('element.updateProperties', {
|
|
56110
56116
|
element: element,
|
|
@@ -62904,7 +62910,7 @@
|
|
|
62904
62910
|
return o$2("svg", { ...props,
|
|
62905
62911
|
children: o$2("path", {
|
|
62906
62912
|
fillRule: "evenodd",
|
|
62907
|
-
d: "m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657
|
|
62913
|
+
d: "m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8Z"
|
|
62908
62914
|
})
|
|
62909
62915
|
});
|
|
62910
62916
|
};
|
|
@@ -62919,7 +62925,7 @@
|
|
|
62919
62925
|
return o$2("svg", { ...props,
|
|
62920
62926
|
children: o$2("path", {
|
|
62921
62927
|
fillRule: "evenodd",
|
|
62922
|
-
d: "M9 13V9h4a1 1 0 0 0 0-2H9V3a1 1 0 1 0-2 0v4H3a1 1 0 1 0 0 2h4v4a1 1 0 0 0 2
|
|
62928
|
+
d: "M9 13V9h4a1 1 0 0 0 0-2H9V3a1 1 0 1 0-2 0v4H3a1 1 0 1 0 0 2h4v4a1 1 0 0 0 2 0Z"
|
|
62923
62929
|
})
|
|
62924
62930
|
});
|
|
62925
62931
|
};
|
|
@@ -62934,7 +62940,7 @@
|
|
|
62934
62940
|
return o$2("svg", { ...props,
|
|
62935
62941
|
children: o$2("path", {
|
|
62936
62942
|
fillRule: "evenodd",
|
|
62937
|
-
d: "M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4
|
|
62943
|
+
d: "M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4 13V6h8Zm-1.5 1.5h-5v4.3c0 .66.5 1.2 1.111 1.2H9.39c.611 0 1.111-.54 1.111-1.2V7.5ZM13 3h-2l-1-1H6L5 3H3v1.5h10V3Z"
|
|
62938
62944
|
})
|
|
62939
62945
|
});
|
|
62940
62946
|
};
|
|
@@ -62950,7 +62956,7 @@
|
|
|
62950
62956
|
children: o$2("path", {
|
|
62951
62957
|
fillRule: "evenodd",
|
|
62952
62958
|
clipRule: "evenodd",
|
|
62953
|
-
d: "M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.
|
|
62959
|
+
d: "M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.274ZM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2Z",
|
|
62954
62960
|
fill: "#818798"
|
|
62955
62961
|
})
|
|
62956
62962
|
});
|
|
@@ -62966,15 +62972,15 @@
|
|
|
62966
62972
|
var FeelRequiredIcon = function FeelRequiredIcon(props) {
|
|
62967
62973
|
return o$2("svg", { ...props,
|
|
62968
62974
|
children: [o$2("path", {
|
|
62969
|
-
d: "M5.8 7.06V5.95h4.307v1.11H5.
|
|
62975
|
+
d: "M5.8 7.06V5.95h4.307v1.11H5.8Zm0 3.071v-1.11h4.307v1.11H5.8Z",
|
|
62970
62976
|
fill: "currentColor"
|
|
62971
62977
|
}), o$2("path", {
|
|
62972
62978
|
fillRule: "evenodd",
|
|
62973
62979
|
clipRule: "evenodd",
|
|
62974
|
-
d: "M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.
|
|
62980
|
+
d: "M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268Z",
|
|
62975
62981
|
fill: "currentColor"
|
|
62976
62982
|
}), o$2("path", {
|
|
62977
|
-
d: "m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.
|
|
62983
|
+
d: "m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304Z",
|
|
62978
62984
|
fill: "currentColor"
|
|
62979
62985
|
})]
|
|
62980
62986
|
});
|
|
@@ -62989,12 +62995,12 @@
|
|
|
62989
62995
|
var FeelOptionalIcon = function FeelOptionalIcon(props) {
|
|
62990
62996
|
return o$2("svg", { ...props,
|
|
62991
62997
|
children: [o$2("path", {
|
|
62992
|
-
d: "M5.845 7.04V5.93h4.307v1.11H5.
|
|
62998
|
+
d: "M5.845 7.04V5.93h4.307v1.11H5.845Zm0 3.07V9h4.307v1.11H5.845Z",
|
|
62993
62999
|
fill: "currentColor"
|
|
62994
63000
|
}), o$2("path", {
|
|
62995
63001
|
fillRule: "evenodd",
|
|
62996
63002
|
clipRule: "evenodd",
|
|
62997
|
-
d: "M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428
|
|
63003
|
+
d: "M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0ZM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z",
|
|
62998
63004
|
fill: "currentColor"
|
|
62999
63005
|
})]
|
|
63000
63006
|
});
|
|
@@ -67809,6 +67815,7 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
67809
67815
|
value,
|
|
67810
67816
|
onInput,
|
|
67811
67817
|
onFeelToggle,
|
|
67818
|
+
onLint = () => {},
|
|
67812
67819
|
disabled,
|
|
67813
67820
|
variables
|
|
67814
67821
|
} = props;
|
|
@@ -67845,11 +67852,13 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
67845
67852
|
container: inputRef.current,
|
|
67846
67853
|
onChange: handleInput,
|
|
67847
67854
|
onKeyDown: onKeyDown,
|
|
67855
|
+
onLint: onLint,
|
|
67848
67856
|
value: localValue,
|
|
67849
67857
|
variables: variables
|
|
67850
67858
|
});
|
|
67851
67859
|
setEditor(editor);
|
|
67852
67860
|
return () => {
|
|
67861
|
+
onLint([]);
|
|
67853
67862
|
inputRef.current.innerHTML = '';
|
|
67854
67863
|
setEditor(null);
|
|
67855
67864
|
};
|
|
@@ -67866,12 +67875,18 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
67866
67875
|
editor.setValue(value);
|
|
67867
67876
|
setLocalValue(value);
|
|
67868
67877
|
}, [value]);
|
|
67878
|
+
|
|
67879
|
+
const handleClick = () => {
|
|
67880
|
+
ref.current.focus();
|
|
67881
|
+
};
|
|
67882
|
+
|
|
67869
67883
|
return o$2("div", {
|
|
67870
67884
|
class: classnames('bio-properties-panel-feel-editor-container', disabled ? 'disabled' : null),
|
|
67871
67885
|
children: o$2("div", {
|
|
67872
67886
|
name: props.name,
|
|
67873
67887
|
class: classnames('bio-properties-panel-input', localValue ? 'edited' : null),
|
|
67874
|
-
ref: inputRef
|
|
67888
|
+
ref: inputRef,
|
|
67889
|
+
onClick: handleClick
|
|
67875
67890
|
})
|
|
67876
67891
|
});
|
|
67877
67892
|
});
|
|
@@ -67935,6 +67950,7 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
67935
67950
|
id,
|
|
67936
67951
|
label,
|
|
67937
67952
|
onInput,
|
|
67953
|
+
onError,
|
|
67938
67954
|
feel,
|
|
67939
67955
|
value = '',
|
|
67940
67956
|
disabled = false,
|
|
@@ -68000,6 +68016,16 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
68000
68016
|
}
|
|
68001
68017
|
};
|
|
68002
68018
|
|
|
68019
|
+
const handleLint = useStaticCallback(lint => {
|
|
68020
|
+
if (!(lint && lint.length)) {
|
|
68021
|
+
onError(undefined);
|
|
68022
|
+
return;
|
|
68023
|
+
}
|
|
68024
|
+
|
|
68025
|
+
const error = lint[0];
|
|
68026
|
+
const message = `${error.source}: ${error.message}`;
|
|
68027
|
+
onError(message);
|
|
68028
|
+
});
|
|
68003
68029
|
y$1(() => {
|
|
68004
68030
|
if (typeof focus !== 'undefined') {
|
|
68005
68031
|
editorRef.current.focus(focus);
|
|
@@ -68080,8 +68106,9 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
68080
68106
|
disabled: disabled,
|
|
68081
68107
|
onFeelToggle: () => {
|
|
68082
68108
|
handleFeelToggle();
|
|
68083
|
-
setFocus();
|
|
68109
|
+
setFocus(true);
|
|
68084
68110
|
},
|
|
68111
|
+
onLint: handleLint,
|
|
68085
68112
|
value: feelOnlyValue,
|
|
68086
68113
|
variables: props.variables,
|
|
68087
68114
|
ref: editorRef
|
|
@@ -68204,6 +68231,7 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
68204
68231
|
} = props;
|
|
68205
68232
|
const [cachedInvalidValue, setCachedInvalidValue] = l(null);
|
|
68206
68233
|
const [validationError, setValidationError] = l(null);
|
|
68234
|
+
const [localError, setLocalError] = l(null);
|
|
68207
68235
|
let value = getValue(element);
|
|
68208
68236
|
const previousValue = usePrevious(value);
|
|
68209
68237
|
y$1(() => {
|
|
@@ -68230,13 +68258,16 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
68230
68258
|
|
|
68231
68259
|
setValidationError(newValidationError);
|
|
68232
68260
|
});
|
|
68261
|
+
const onError = A$1(err => {
|
|
68262
|
+
setLocalError(err);
|
|
68263
|
+
}, []);
|
|
68233
68264
|
|
|
68234
68265
|
if (previousValue === value && validationError) {
|
|
68235
68266
|
value = cachedInvalidValue;
|
|
68236
68267
|
}
|
|
68237
68268
|
|
|
68238
68269
|
const temporaryError = useError(id);
|
|
68239
|
-
const error = temporaryError || validationError;
|
|
68270
|
+
const error = temporaryError || validationError || localError;
|
|
68240
68271
|
return o$2("div", {
|
|
68241
68272
|
class: classnames(props.class, 'bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
68242
68273
|
"data-entry-id": id,
|
|
@@ -68247,6 +68278,7 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
|
|
|
68247
68278
|
id: id,
|
|
68248
68279
|
label: label,
|
|
68249
68280
|
onInput: onInput,
|
|
68281
|
+
onError: onError,
|
|
68250
68282
|
example: props.example,
|
|
68251
68283
|
show: show,
|
|
68252
68284
|
value: value,
|