camunda-bpmn-js 4.12.1 → 4.13.0
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 +22 -0
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +25 -2
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +25 -2
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/package.json +3 -3
|
@@ -98562,6 +98562,24 @@
|
|
|
98562
98562
|
return T$1((...args) => callbackRef.current(...args), []);
|
|
98563
98563
|
}
|
|
98564
98564
|
|
|
98565
|
+
function useElementVisible(element) {
|
|
98566
|
+
const [visible, setVisible] = h(!!element && !!element.clientHeight);
|
|
98567
|
+
y(() => {
|
|
98568
|
+
if (!element) return;
|
|
98569
|
+
const resizeObserver = new ResizeObserver(([entry]) => {
|
|
98570
|
+
requestAnimationFrame(() => {
|
|
98571
|
+
const newVisible = !!entry.contentRect.height;
|
|
98572
|
+
if (newVisible !== visible) {
|
|
98573
|
+
setVisible(newVisible);
|
|
98574
|
+
}
|
|
98575
|
+
});
|
|
98576
|
+
});
|
|
98577
|
+
resizeObserver.observe(element);
|
|
98578
|
+
return () => resizeObserver.disconnect();
|
|
98579
|
+
}, [element, visible]);
|
|
98580
|
+
return visible;
|
|
98581
|
+
}
|
|
98582
|
+
|
|
98565
98583
|
function Group(props) {
|
|
98566
98584
|
const {
|
|
98567
98585
|
element,
|
|
@@ -101039,6 +101057,7 @@
|
|
|
101039
101057
|
} = props;
|
|
101040
101058
|
const [localValue, setLocalValue] = h(value);
|
|
101041
101059
|
const ref = useShowEntryEvent(id);
|
|
101060
|
+
const visible = useElementVisible(ref.current);
|
|
101042
101061
|
const handleInputCallback = F$1(() => {
|
|
101043
101062
|
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
101044
101063
|
}, [onInput, debounce]);
|
|
@@ -101050,6 +101069,9 @@
|
|
|
101050
101069
|
y(() => {
|
|
101051
101070
|
autoResize && resizeToContents(ref.current);
|
|
101052
101071
|
}, []);
|
|
101072
|
+
y(() => {
|
|
101073
|
+
visible && autoResize && resizeToContents(ref.current);
|
|
101074
|
+
}, [visible]);
|
|
101053
101075
|
p$1(() => {
|
|
101054
101076
|
if (value === localValue) {
|
|
101055
101077
|
return;
|
|
@@ -111427,13 +111449,14 @@
|
|
|
111427
111449
|
const getValue = field => {
|
|
111428
111450
|
return field.string || field.stringValue || field.expression;
|
|
111429
111451
|
};
|
|
111430
|
-
return
|
|
111452
|
+
return TextAreaEntry({
|
|
111431
111453
|
element: field,
|
|
111432
111454
|
id: idPrefix + '-value',
|
|
111433
111455
|
label: translate('Value'),
|
|
111434
111456
|
getValue,
|
|
111435
111457
|
setValue,
|
|
111436
|
-
debounce
|
|
111458
|
+
debounce,
|
|
111459
|
+
autoResize: true
|
|
111437
111460
|
});
|
|
111438
111461
|
}
|
|
111439
111462
|
|