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.
@@ -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: getDi(element).label,
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 8z"
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 0z"
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 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"
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.274zM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2z",
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
  });
@@ -67804,6 +67810,7 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
67804
67810
  value,
67805
67811
  onInput,
67806
67812
  onFeelToggle,
67813
+ onLint = () => {},
67807
67814
  disabled,
67808
67815
  variables
67809
67816
  } = props;
@@ -67840,11 +67847,13 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
67840
67847
  container: inputRef.current,
67841
67848
  onChange: handleInput,
67842
67849
  onKeyDown: onKeyDown,
67850
+ onLint: onLint,
67843
67851
  value: localValue,
67844
67852
  variables: variables
67845
67853
  });
67846
67854
  setEditor(editor);
67847
67855
  return () => {
67856
+ onLint([]);
67848
67857
  inputRef.current.innerHTML = '';
67849
67858
  setEditor(null);
67850
67859
  };
@@ -67861,12 +67870,18 @@ name: name$6,/// The [name](#highlight.tags.name) of a variable.
67861
67870
  editor.setValue(value);
67862
67871
  setLocalValue(value);
67863
67872
  }, [value]);
67873
+
67874
+ const handleClick = () => {
67875
+ ref.current.focus();
67876
+ };
67877
+
67864
67878
  return o$2("div", {
67865
67879
  class: classnames('bio-properties-panel-feel-editor-container', disabled ? 'disabled' : null),
67866
67880
  children: o$2("div", {
67867
67881
  name: props.name,
67868
67882
  class: classnames('bio-properties-panel-input', localValue ? 'edited' : null),
67869
- ref: inputRef
67883
+ ref: inputRef,
67884
+ onClick: handleClick
67870
67885
  })
67871
67886
  });
67872
67887
  });