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.
@@ -55961,7 +55961,8 @@
55961
55961
  }
55962
55962
 
55963
55963
  forEach(elements, function(element) {
55964
- var assignedDi = isConnection$c(element) ? pick(di, [ 'border-color' ]) : di;
55964
+ var assignedDi = isConnection$c(element) ? pick(di, [ 'border-color' ]) : di,
55965
+ elementDi = getDi(element);
55965
55966
 
55966
55967
  // TODO @barmac: remove once we drop bpmn.io properties
55967
55968
  ensureLegacySupport(assignedDi);
@@ -55971,13 +55972,18 @@
55971
55972
  // set label colors as bpmndi:BPMNLabel#color
55972
55973
  self._commandStack.execute('element.updateModdleProperties', {
55973
55974
  element: element,
55974
- moddleElement: getDi(element).label,
55975
+ moddleElement: elementDi.label,
55975
55976
  properties: {
55976
55977
  color: di['border-color']
55977
55978
  }
55978
55979
  });
55979
55980
  } else {
55980
55981
 
55982
+ // ignore non-compliant di
55983
+ if (!isAny(elementDi, [ 'bpmndi:BPMNEdge', 'bpmndi:BPMNShape' ])) {
55984
+ return;
55985
+ }
55986
+
55981
55987
  // set colors bpmndi:BPMNEdge or bpmndi:BPMNShape
55982
55988
  self._commandStack.execute('element.updateProperties', {
55983
55989
  element: element,
@@ -62777,7 +62783,7 @@
62777
62783
  return o$2("svg", { ...props,
62778
62784
  children: o$2("path", {
62779
62785
  fillRule: "evenodd",
62780
- 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"
62786
+ 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"
62781
62787
  })
62782
62788
  });
62783
62789
  };
@@ -62793,7 +62799,7 @@
62793
62799
  children: o$2("path", {
62794
62800
  fillRule: "evenodd",
62795
62801
  clipRule: "evenodd",
62796
- 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",
62802
+ 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",
62797
62803
  fill: "#818798"
62798
62804
  })
62799
62805
  });
@@ -67226,6 +67232,7 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
67226
67232
  value,
67227
67233
  onInput,
67228
67234
  onFeelToggle,
67235
+ onLint = () => {},
67229
67236
  disabled,
67230
67237
  variables
67231
67238
  } = props;
@@ -67262,11 +67269,13 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
67262
67269
  container: inputRef.current,
67263
67270
  onChange: handleInput,
67264
67271
  onKeyDown: onKeyDown,
67272
+ onLint: onLint,
67265
67273
  value: localValue,
67266
67274
  variables: variables
67267
67275
  });
67268
67276
  setEditor(editor);
67269
67277
  return () => {
67278
+ onLint([]);
67270
67279
  inputRef.current.innerHTML = '';
67271
67280
  setEditor(null);
67272
67281
  };
@@ -67283,12 +67292,18 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
67283
67292
  editor.setValue(value);
67284
67293
  setLocalValue(value);
67285
67294
  }, [value]);
67295
+
67296
+ const handleClick = () => {
67297
+ ref.current.focus();
67298
+ };
67299
+
67286
67300
  return o$2("div", {
67287
67301
  class: classnames('bio-properties-panel-feel-editor-container', disabled ? 'disabled' : null),
67288
67302
  children: o$2("div", {
67289
67303
  name: props.name,
67290
67304
  class: classnames('bio-properties-panel-input', localValue ? 'edited' : null),
67291
- ref: inputRef
67305
+ ref: inputRef,
67306
+ onClick: handleClick
67292
67307
  })
67293
67308
  });
67294
67309
  });