@bpmn-io/properties-panel 3.13.0 → 3.15.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/assets/properties-panel.css +0 -4
- package/dist/index.esm.js +31 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +66 -63
- package/dist/index.js.map +1 -1
- package/package.json +28 -31
- package/preact/README.md +2 -2
- package/preact/compat/LICENSE +21 -0
- package/preact/compat/dist/compat.js +1 -1
- package/preact/compat/dist/compat.js.map +1 -1
- package/preact/compat/dist/compat.mjs +1 -1
- package/preact/compat/dist/compat.module.js +1 -1
- package/preact/compat/dist/compat.module.js.map +1 -1
- package/preact/compat/dist/compat.umd.js +1 -1
- package/preact/compat/dist/compat.umd.js.map +1 -1
- package/preact/compat/server.browser.js +7 -0
- package/preact/compat/server.mjs +7 -0
- package/preact/compat/src/index.d.ts +22 -8
- package/preact/compat/src/index.js +35 -3
- package/preact/compat/src/portals.js +26 -35
- package/preact/compat/src/suspense.js +9 -6
- package/preact/compat/src/util.js +0 -5
- package/preact/debug/LICENSE +21 -0
- package/preact/debug/dist/debug.js +1 -1
- package/preact/debug/dist/debug.js.map +1 -1
- package/preact/debug/dist/debug.mjs +1 -1
- package/preact/debug/dist/debug.module.js +1 -1
- package/preact/debug/dist/debug.module.js.map +1 -1
- package/preact/debug/dist/debug.umd.js +1 -1
- package/preact/debug/dist/debug.umd.js.map +1 -1
- package/preact/debug/src/debug.js +124 -42
- package/preact/devtools/LICENSE +21 -0
- package/preact/devtools/dist/devtools.js +1 -1
- package/preact/devtools/dist/devtools.js.map +1 -1
- package/preact/devtools/dist/devtools.mjs +1 -1
- package/preact/devtools/dist/devtools.module.js +1 -1
- package/preact/devtools/dist/devtools.module.js.map +1 -1
- package/preact/devtools/dist/devtools.umd.js +1 -1
- package/preact/devtools/dist/devtools.umd.js.map +1 -1
- package/preact/devtools/src/devtools.js +1 -1
- package/preact/dist/preact.js +1 -1
- package/preact/dist/preact.js.map +1 -1
- package/preact/dist/preact.min.js +1 -1
- package/preact/dist/preact.min.js.map +1 -1
- package/preact/dist/preact.min.module.js +1 -1
- package/preact/dist/preact.min.module.js.map +1 -1
- package/preact/dist/preact.min.umd.js +1 -1
- package/preact/dist/preact.min.umd.js.map +1 -1
- package/preact/dist/preact.mjs +1 -1
- package/preact/dist/preact.module.js +1 -1
- package/preact/dist/preact.module.js.map +1 -1
- package/preact/dist/preact.umd.js +1 -1
- package/preact/dist/preact.umd.js.map +1 -1
- package/preact/hooks/LICENSE +21 -0
- package/preact/jsx-runtime/LICENSE +21 -0
- package/preact/jsx-runtime/dist/jsxRuntime.js +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.mjs +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.module.js +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.umd.js +1 -1
- package/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -1
- package/preact/jsx-runtime/src/index.d.ts +10 -0
- package/preact/jsx-runtime/src/index.js +113 -4
- package/preact/jsx-runtime/src/utils.js +36 -0
- package/preact/package.json +4 -3
- package/preact/src/clone-element.js +6 -4
- package/preact/src/component.js +34 -28
- package/preact/src/constants.js +13 -1
- package/preact/src/create-context.js +3 -3
- package/preact/src/create-element.js +14 -11
- package/preact/src/diff/catch-error.js +11 -7
- package/preact/src/diff/children.js +321 -218
- package/preact/src/diff/index.js +188 -142
- package/preact/src/diff/props.js +31 -38
- package/preact/src/index.d.ts +38 -19
- package/preact/src/index.js +1 -1
- package/preact/src/internal.d.ts +183 -153
- package/preact/src/jsx.d.ts +883 -19
- package/preact/src/options.js +1 -1
- package/preact/src/render.js +11 -11
- package/preact/src/util.js +2 -2
- package/preact/test-utils/dist/testUtils.js +1 -1
- package/preact/test-utils/dist/testUtils.js.map +1 -1
- package/preact/test-utils/dist/testUtils.mjs +1 -1
- package/preact/test-utils/dist/testUtils.module.js +1 -1
- package/preact/test-utils/dist/testUtils.module.js.map +1 -1
- package/preact/test-utils/dist/testUtils.umd.js +1 -1
- package/preact/test-utils/dist/testUtils.umd.js.map +1 -1
- package/preact/test-utils/src/index.js +13 -5
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var hooks = require('../preact/hooks');
|
|
6
4
|
var minDash = require('min-dash');
|
|
7
5
|
var compat = require('../preact/compat');
|
|
@@ -14,10 +12,7 @@ var FeelEditor = require('@bpmn-io/feel-editor');
|
|
|
14
12
|
var view = require('@codemirror/view');
|
|
15
13
|
var focusTrap = require('focus-trap');
|
|
16
14
|
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
function _interopNamespace(e) {
|
|
20
|
-
if (e && e.__esModule) return e;
|
|
15
|
+
function _interopNamespaceDefault(e) {
|
|
21
16
|
var n = Object.create(null);
|
|
22
17
|
if (e) {
|
|
23
18
|
Object.keys(e).forEach(function (k) {
|
|
@@ -30,13 +25,11 @@ function _interopNamespace(e) {
|
|
|
30
25
|
}
|
|
31
26
|
});
|
|
32
27
|
}
|
|
33
|
-
n
|
|
28
|
+
n.default = e;
|
|
34
29
|
return Object.freeze(n);
|
|
35
30
|
}
|
|
36
31
|
|
|
37
|
-
var
|
|
38
|
-
var FeelEditor__default = /*#__PURE__*/_interopDefaultLegacy(FeelEditor);
|
|
39
|
-
var focusTrap__namespace = /*#__PURE__*/_interopNamespace(focusTrap);
|
|
32
|
+
var focusTrap__namespace = /*#__PURE__*/_interopNamespaceDefault(focusTrap);
|
|
40
33
|
|
|
41
34
|
var ArrowIcon = function ArrowIcon(props) {
|
|
42
35
|
return jsxRuntime.jsx("svg", {
|
|
@@ -162,6 +155,24 @@ HelpIcon.defaultProps = {
|
|
|
162
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
163
156
|
viewBox: "0 0 32 32"
|
|
164
157
|
};
|
|
158
|
+
var PopupIcon = function PopupIcon(props) {
|
|
159
|
+
return jsxRuntime.jsxs("svg", {
|
|
160
|
+
...props,
|
|
161
|
+
children: [jsxRuntime.jsx("path", {
|
|
162
|
+
fill: "currentColor",
|
|
163
|
+
d: "M28 4H10a2.006 2.006 0 0 0-2 2v14a2.006 2.006 0 0 0 2 2h18a2.006 2.006 0 0 0 2-2V6a2.006 2.006 0 0 0-2-2Zm0 16H10V6h18Z"
|
|
164
|
+
}), jsxRuntime.jsx("path", {
|
|
165
|
+
fill: "currentColor",
|
|
166
|
+
d: "M18 26H4V16h2v-2H4a2.006 2.006 0 0 0-2 2v10a2.006 2.006 0 0 0 2 2h14a2.006 2.006 0 0 0 2-2v-2h-2Z"
|
|
167
|
+
})]
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
PopupIcon.defaultProps = {
|
|
171
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
172
|
+
width: "16",
|
|
173
|
+
height: "16",
|
|
174
|
+
viewBox: "0 0 32 32"
|
|
175
|
+
};
|
|
165
176
|
|
|
166
177
|
function Header(props) {
|
|
167
178
|
const {
|
|
@@ -235,6 +246,7 @@ const ErrorsContext = preact.createContext({
|
|
|
235
246
|
*
|
|
236
247
|
* @returns void
|
|
237
248
|
*/
|
|
249
|
+
|
|
238
250
|
const EventContext = preact.createContext({
|
|
239
251
|
eventBus: null
|
|
240
252
|
});
|
|
@@ -734,7 +746,7 @@ function Group(props) {
|
|
|
734
746
|
"data-group-id": 'group-' + id,
|
|
735
747
|
ref: groupRef,
|
|
736
748
|
children: [jsxRuntime.jsxs("div", {
|
|
737
|
-
class:
|
|
749
|
+
class: classnames('bio-properties-panel-group-header', edited ? '' : 'empty', open ? 'open' : '', sticky && open ? 'sticky' : ''),
|
|
738
750
|
onClick: toggleOpen,
|
|
739
751
|
children: [jsxRuntime.jsx("div", {
|
|
740
752
|
title: props.tooltip ? null : label,
|
|
@@ -762,7 +774,7 @@ function Group(props) {
|
|
|
762
774
|
})]
|
|
763
775
|
})]
|
|
764
776
|
}), jsxRuntime.jsx("div", {
|
|
765
|
-
class:
|
|
777
|
+
class: classnames('bio-properties-panel-group-entries', open ? 'open' : ''),
|
|
766
778
|
children: jsxRuntime.jsx(LayoutContext.Provider, {
|
|
767
779
|
value: propertiesPanelContext,
|
|
768
780
|
children: entries.map(entry => {
|
|
@@ -926,13 +938,13 @@ const CodeEditor$1 = compat.forwardRef((props, ref) => {
|
|
|
926
938
|
ref.current.focus();
|
|
927
939
|
};
|
|
928
940
|
return jsxRuntime.jsxs("div", {
|
|
929
|
-
class:
|
|
941
|
+
class: classnames('bio-properties-panel-feelers-editor-container', popupOpen ? 'popupOpen' : null),
|
|
930
942
|
children: [jsxRuntime.jsx("div", {
|
|
931
943
|
class: "bio-properties-panel-feelers-editor__open-popup-placeholder",
|
|
932
944
|
children: "Opened in editor"
|
|
933
945
|
}), jsxRuntime.jsx("div", {
|
|
934
946
|
name: props.name,
|
|
935
|
-
class:
|
|
947
|
+
class: classnames('bio-properties-panel-feelers-editor bio-properties-panel-input', localValue ? 'edited' : null, disabled ? 'disabled' : null),
|
|
936
948
|
ref: inputRef,
|
|
937
949
|
onClick: handleClick
|
|
938
950
|
}), jsxRuntime.jsx("button", {
|
|
@@ -1011,7 +1023,7 @@ const CodeEditor = compat.forwardRef((props, ref) => {
|
|
|
1011
1023
|
onFeelToggle();
|
|
1012
1024
|
}
|
|
1013
1025
|
};
|
|
1014
|
-
editor = new
|
|
1026
|
+
editor = new FeelEditor({
|
|
1015
1027
|
container: inputRef.current,
|
|
1016
1028
|
onChange: handleInput,
|
|
1017
1029
|
onKeyDown: onKeyDown,
|
|
@@ -1048,13 +1060,13 @@ const CodeEditor = compat.forwardRef((props, ref) => {
|
|
|
1048
1060
|
ref.current.focus();
|
|
1049
1061
|
};
|
|
1050
1062
|
return jsxRuntime.jsxs("div", {
|
|
1051
|
-
class:
|
|
1063
|
+
class: classnames('bio-properties-panel-feel-editor-container', disabled ? 'disabled' : null, popupOpen ? 'popupOpen' : null),
|
|
1052
1064
|
children: [jsxRuntime.jsx("div", {
|
|
1053
1065
|
class: "bio-properties-panel-feel-editor__open-popup-placeholder",
|
|
1054
1066
|
children: "Opened in editor"
|
|
1055
1067
|
}), jsxRuntime.jsx("div", {
|
|
1056
1068
|
name: props.name,
|
|
1057
|
-
class:
|
|
1069
|
+
class: classnames('bio-properties-panel-input', localValue ? 'edited' : null),
|
|
1058
1070
|
ref: inputRef,
|
|
1059
1071
|
onClick: handleClick
|
|
1060
1072
|
}), jsxRuntime.jsx("button", {
|
|
@@ -1062,7 +1074,7 @@ const CodeEditor = compat.forwardRef((props, ref) => {
|
|
|
1062
1074
|
title: "Open pop-up editor",
|
|
1063
1075
|
class: "bio-properties-panel-open-feel-popup",
|
|
1064
1076
|
onClick: () => onPopupOpen(),
|
|
1065
|
-
children: jsxRuntime.jsx(
|
|
1077
|
+
children: jsxRuntime.jsx(PopupIcon, {})
|
|
1066
1078
|
})]
|
|
1067
1079
|
});
|
|
1068
1080
|
});
|
|
@@ -1106,7 +1118,7 @@ function FeelIcon(props) {
|
|
|
1106
1118
|
};
|
|
1107
1119
|
return jsxRuntime.jsx("button", {
|
|
1108
1120
|
type: "button",
|
|
1109
|
-
class:
|
|
1121
|
+
class: classnames('bio-properties-panel-feel-icon', active ? 'active' : null, feel === 'required' ? 'required' : 'optional'),
|
|
1110
1122
|
onClick: handleClick,
|
|
1111
1123
|
disabled: feel === 'required' || disabled,
|
|
1112
1124
|
title: feel === 'required' ? feelRequiredLabel : feelOptionalLabel,
|
|
@@ -1283,7 +1295,7 @@ function PopupComponent(props, globalRef) {
|
|
|
1283
1295
|
ref: popupRef,
|
|
1284
1296
|
onKeyDown: handleKeydown,
|
|
1285
1297
|
role: "dialog",
|
|
1286
|
-
class:
|
|
1298
|
+
class: classnames('bio-properties-panel-popup', className),
|
|
1287
1299
|
style: style,
|
|
1288
1300
|
children: props.children
|
|
1289
1301
|
}), containerNode || document.body);
|
|
@@ -1352,7 +1364,7 @@ function Title(props) {
|
|
|
1352
1364
|
emit('dragend');
|
|
1353
1365
|
};
|
|
1354
1366
|
return jsxRuntime.jsxs("div", {
|
|
1355
|
-
class:
|
|
1367
|
+
class: classnames('bio-properties-panel-popup__header', draggable && 'draggable', className),
|
|
1356
1368
|
ref: titleRef,
|
|
1357
1369
|
draggable: draggable,
|
|
1358
1370
|
onDragStart: onMoveStart,
|
|
@@ -1379,7 +1391,7 @@ function Body(props) {
|
|
|
1379
1391
|
...rest
|
|
1380
1392
|
} = props;
|
|
1381
1393
|
return jsxRuntime.jsx("div", {
|
|
1382
|
-
class:
|
|
1394
|
+
class: classnames('bio-properties-panel-popup__body', className),
|
|
1383
1395
|
...rest,
|
|
1384
1396
|
children: children
|
|
1385
1397
|
});
|
|
@@ -1391,7 +1403,7 @@ function Footer(props) {
|
|
|
1391
1403
|
...rest
|
|
1392
1404
|
} = props;
|
|
1393
1405
|
return jsxRuntime.jsx("div", {
|
|
1394
|
-
class:
|
|
1406
|
+
class: classnames('bio-properties-panel-popup__footer', className),
|
|
1395
1407
|
...rest,
|
|
1396
1408
|
children: props.children
|
|
1397
1409
|
});
|
|
@@ -1688,7 +1700,7 @@ function ToggleSwitch(props) {
|
|
|
1688
1700
|
setLocalValue(value);
|
|
1689
1701
|
}, [value]);
|
|
1690
1702
|
return jsxRuntime.jsxs("div", {
|
|
1691
|
-
class:
|
|
1703
|
+
class: classnames('bio-properties-panel-toggle-switch', {
|
|
1692
1704
|
inline
|
|
1693
1705
|
}),
|
|
1694
1706
|
children: [jsxRuntime.jsx("label", {
|
|
@@ -1803,18 +1815,14 @@ function NumberField(props) {
|
|
|
1803
1815
|
} = props;
|
|
1804
1816
|
const [localValue, setLocalValue] = hooks.useState(value);
|
|
1805
1817
|
const handleInputCallback = hooks.useMemo(() => {
|
|
1806
|
-
return debounce(
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
value
|
|
1810
|
-
} = event.target;
|
|
1811
|
-
if (validity.valid) {
|
|
1812
|
-
onInput(value ? parseFloat(value) : undefined);
|
|
1818
|
+
return debounce(target => {
|
|
1819
|
+
if (target.validity.valid) {
|
|
1820
|
+
onInput(target.value ? parseFloat(target.value) : undefined);
|
|
1813
1821
|
}
|
|
1814
1822
|
});
|
|
1815
1823
|
}, [onInput, debounce]);
|
|
1816
1824
|
const handleInput = e => {
|
|
1817
|
-
handleInputCallback(e);
|
|
1825
|
+
handleInputCallback(e.target);
|
|
1818
1826
|
setLocalValue(e.target.value);
|
|
1819
1827
|
};
|
|
1820
1828
|
hooks.useEffect(() => {
|
|
@@ -1902,7 +1910,7 @@ function NumberFieldEntry(props) {
|
|
|
1902
1910
|
};
|
|
1903
1911
|
const error = globalError || localError;
|
|
1904
1912
|
return jsxRuntime.jsxs("div", {
|
|
1905
|
-
class:
|
|
1913
|
+
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
1906
1914
|
"data-entry-id": id,
|
|
1907
1915
|
children: [jsxRuntime.jsx(NumberField, {
|
|
1908
1916
|
debounce: debounce,
|
|
@@ -2082,7 +2090,7 @@ function FeelTextfield(props) {
|
|
|
2082
2090
|
};
|
|
2083
2091
|
}, [containerRef, feelActive, handleFeelToggle, setFocus]);
|
|
2084
2092
|
return jsxRuntime.jsxs("div", {
|
|
2085
|
-
class:
|
|
2093
|
+
class: classnames('bio-properties-panel-feel-entry', {
|
|
2086
2094
|
'feel-active': feelActive
|
|
2087
2095
|
}),
|
|
2088
2096
|
children: [jsxRuntime.jsxs("label", {
|
|
@@ -2410,7 +2418,7 @@ function FeelEntry(props) {
|
|
|
2410
2418
|
const temporaryError = useError(id);
|
|
2411
2419
|
const error = temporaryError || localError || validationError;
|
|
2412
2420
|
return jsxRuntime.jsxs("div", {
|
|
2413
|
-
class:
|
|
2421
|
+
class: classnames(props.class, 'bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
2414
2422
|
"data-entry-id": id,
|
|
2415
2423
|
children: [preact.createElement(FeelTextfield, {
|
|
2416
2424
|
...props,
|
|
@@ -2912,7 +2920,7 @@ function DropdownButton(props) {
|
|
|
2912
2920
|
}
|
|
2913
2921
|
useGlobalClick([dropdownRef.current], () => close());
|
|
2914
2922
|
return jsxRuntime.jsxs("div", {
|
|
2915
|
-
class:
|
|
2923
|
+
class: classnames('bio-properties-panel-dropdown-button', {
|
|
2916
2924
|
open
|
|
2917
2925
|
}, className),
|
|
2918
2926
|
onClick: onDropdownToggle,
|
|
@@ -2986,7 +2994,7 @@ function HeaderButton(props) {
|
|
|
2986
2994
|
type: "button",
|
|
2987
2995
|
...otherProps,
|
|
2988
2996
|
onClick: onClick,
|
|
2989
|
-
class:
|
|
2997
|
+
class: classnames('bio-properties-panel-group-header-button', classname),
|
|
2990
2998
|
children: children
|
|
2991
2999
|
});
|
|
2992
3000
|
}
|
|
@@ -3019,13 +3027,13 @@ function CollapsibleEntry(props) {
|
|
|
3019
3027
|
const placeholderLabel = '<empty>';
|
|
3020
3028
|
return jsxRuntime.jsxs("div", {
|
|
3021
3029
|
"data-entry-id": id,
|
|
3022
|
-
class:
|
|
3030
|
+
class: classnames('bio-properties-panel-collapsible-entry', open ? 'open' : ''),
|
|
3023
3031
|
children: [jsxRuntime.jsxs("div", {
|
|
3024
3032
|
class: "bio-properties-panel-collapsible-entry-header",
|
|
3025
3033
|
onClick: toggleOpen,
|
|
3026
3034
|
children: [jsxRuntime.jsx("div", {
|
|
3027
3035
|
title: label || placeholderLabel,
|
|
3028
|
-
class:
|
|
3036
|
+
class: classnames('bio-properties-panel-collapsible-entry-header-title', !label && 'empty'),
|
|
3029
3037
|
children: label || placeholderLabel
|
|
3030
3038
|
}), jsxRuntime.jsx("button", {
|
|
3031
3039
|
type: "button",
|
|
@@ -3042,7 +3050,7 @@ function CollapsibleEntry(props) {
|
|
|
3042
3050
|
children: jsxRuntime.jsx(DeleteIcon, {})
|
|
3043
3051
|
}) : null]
|
|
3044
3052
|
}), jsxRuntime.jsx("div", {
|
|
3045
|
-
class:
|
|
3053
|
+
class: classnames('bio-properties-panel-collapsible-entry-entries', open ? 'open' : ''),
|
|
3046
3054
|
children: jsxRuntime.jsx(LayoutContext.Provider, {
|
|
3047
3055
|
value: propertiesPanelContext,
|
|
3048
3056
|
children: entries.map(entry => {
|
|
@@ -3223,7 +3231,7 @@ function ListGroup(props) {
|
|
|
3223
3231
|
"data-group-id": 'group-' + id,
|
|
3224
3232
|
ref: groupRef,
|
|
3225
3233
|
children: [jsxRuntime.jsxs("div", {
|
|
3226
|
-
class:
|
|
3234
|
+
class: classnames('bio-properties-panel-group-header', hasItems ? '' : 'empty', hasItems && open ? 'open' : '', sticky && open ? 'sticky' : ''),
|
|
3227
3235
|
onClick: hasItems ? toggleOpen : noop$1,
|
|
3228
3236
|
children: [jsxRuntime.jsx("div", {
|
|
3229
3237
|
title: props.tooltip ? null : label,
|
|
@@ -3249,7 +3257,7 @@ function ListGroup(props) {
|
|
|
3249
3257
|
}) : null]
|
|
3250
3258
|
}) : null, hasItems ? jsxRuntime.jsx("div", {
|
|
3251
3259
|
title: `List contains ${items.length} item${items.length != 1 ? 's' : ''}`,
|
|
3252
|
-
class:
|
|
3260
|
+
class: classnames('bio-properties-panel-list-badge', hasError ? 'bio-properties-panel-list-badge--error' : ''),
|
|
3253
3261
|
children: items.length
|
|
3254
3262
|
}) : null, hasItems ? jsxRuntime.jsx("button", {
|
|
3255
3263
|
type: "button",
|
|
@@ -3261,7 +3269,7 @@ function ListGroup(props) {
|
|
|
3261
3269
|
}) : null]
|
|
3262
3270
|
})]
|
|
3263
3271
|
}), jsxRuntime.jsx("div", {
|
|
3264
|
-
class:
|
|
3272
|
+
class: classnames('bio-properties-panel-list', open && hasItems ? 'open' : ''),
|
|
3265
3273
|
children: jsxRuntime.jsx(LayoutContext.Provider, {
|
|
3266
3274
|
value: propertiesPanelContext,
|
|
3267
3275
|
children: ordering.map((o, index) => {
|
|
@@ -3476,7 +3484,7 @@ function TemplatingEntry(props) {
|
|
|
3476
3484
|
const temporaryError = useError(id);
|
|
3477
3485
|
const error = localError || temporaryError || validationError;
|
|
3478
3486
|
return jsxRuntime.jsxs("div", {
|
|
3479
|
-
class:
|
|
3487
|
+
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
3480
3488
|
"data-entry-id": id,
|
|
3481
3489
|
children: [jsxRuntime.jsx(Templating, {
|
|
3482
3490
|
debounce: debounce,
|
|
@@ -3624,13 +3632,13 @@ function List(props) {
|
|
|
3624
3632
|
}
|
|
3625
3633
|
return jsxRuntime.jsxs("div", {
|
|
3626
3634
|
"data-entry-id": id,
|
|
3627
|
-
class:
|
|
3635
|
+
class: classnames('bio-properties-panel-entry', 'bio-properties-panel-list-entry', hasItems ? '' : 'empty', open ? 'open' : ''),
|
|
3628
3636
|
children: [jsxRuntime.jsxs("div", {
|
|
3629
3637
|
class: "bio-properties-panel-list-entry-header",
|
|
3630
3638
|
onClick: toggleOpen,
|
|
3631
3639
|
children: [jsxRuntime.jsx("div", {
|
|
3632
3640
|
title: label,
|
|
3633
|
-
class:
|
|
3641
|
+
class: classnames('bio-properties-panel-list-entry-header-title', open && 'open'),
|
|
3634
3642
|
children: label
|
|
3635
3643
|
}), jsxRuntime.jsxs("div", {
|
|
3636
3644
|
class: "bio-properties-panel-list-entry-header-buttons",
|
|
@@ -3703,7 +3711,7 @@ function ItemsList(props) {
|
|
|
3703
3711
|
}
|
|
3704
3712
|
}, [newItem, autoFocusEntry, id]);
|
|
3705
3713
|
return jsxRuntime.jsx("ol", {
|
|
3706
|
-
class:
|
|
3714
|
+
class: classnames('bio-properties-panel-list-entry-items', open ? 'open' : ''),
|
|
3707
3715
|
children: items.map((item, index) => {
|
|
3708
3716
|
const key = getKey(item);
|
|
3709
3717
|
return jsxRuntime.jsxs("li", {
|
|
@@ -3890,7 +3898,7 @@ function SelectEntry(props) {
|
|
|
3890
3898
|
};
|
|
3891
3899
|
const error = globalError || localError;
|
|
3892
3900
|
return jsxRuntime.jsxs("div", {
|
|
3893
|
-
class:
|
|
3901
|
+
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
3894
3902
|
"data-entry-id": id,
|
|
3895
3903
|
children: [jsxRuntime.jsx(Select, {
|
|
3896
3904
|
id: id,
|
|
@@ -3937,12 +3945,10 @@ function Simple(props) {
|
|
|
3937
3945
|
const value = getValue(element);
|
|
3938
3946
|
const [localValue, setLocalValue] = hooks.useState(value);
|
|
3939
3947
|
const handleInputCallback = hooks.useMemo(() => {
|
|
3940
|
-
return debounce((
|
|
3941
|
-
target
|
|
3942
|
-
}) => setValue(target.value.length ? target.value : undefined));
|
|
3948
|
+
return debounce(target => setValue(target.value.length ? target.value : undefined));
|
|
3943
3949
|
}, [setValue, debounce]);
|
|
3944
3950
|
const handleInput = e => {
|
|
3945
|
-
handleInputCallback(e);
|
|
3951
|
+
handleInputCallback(e.target);
|
|
3946
3952
|
setLocalValue(e.target.value);
|
|
3947
3953
|
};
|
|
3948
3954
|
hooks.useEffect(() => {
|
|
@@ -4004,12 +4010,10 @@ function TextArea(props) {
|
|
|
4004
4010
|
const [localValue, setLocalValue] = hooks.useState(value);
|
|
4005
4011
|
const ref = useShowEntryEvent(id);
|
|
4006
4012
|
const handleInputCallback = hooks.useMemo(() => {
|
|
4007
|
-
return debounce((
|
|
4008
|
-
target
|
|
4009
|
-
}) => onInput(target.value.length ? target.value : undefined));
|
|
4013
|
+
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
4010
4014
|
}, [onInput, debounce]);
|
|
4011
4015
|
const handleInput = e => {
|
|
4012
|
-
handleInputCallback(e);
|
|
4016
|
+
handleInputCallback(e.target);
|
|
4013
4017
|
autoResize && resizeToContents(e.target);
|
|
4014
4018
|
setLocalValue(e.target.value);
|
|
4015
4019
|
};
|
|
@@ -4038,7 +4042,7 @@ function TextArea(props) {
|
|
|
4038
4042
|
id: prefixId$1(id),
|
|
4039
4043
|
name: id,
|
|
4040
4044
|
spellCheck: "false",
|
|
4041
|
-
class:
|
|
4045
|
+
class: classnames('bio-properties-panel-input', monospace ? 'bio-properties-panel-input-monospace' : '', autoResize ? 'auto-resize' : ''),
|
|
4042
4046
|
onInput: handleInput,
|
|
4043
4047
|
onFocus: onFocus,
|
|
4044
4048
|
onBlur: onBlur,
|
|
@@ -4103,7 +4107,7 @@ function TextAreaEntry(props) {
|
|
|
4103
4107
|
};
|
|
4104
4108
|
const error = globalError || localError;
|
|
4105
4109
|
return jsxRuntime.jsxs("div", {
|
|
4106
|
-
class:
|
|
4110
|
+
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
4107
4111
|
"data-entry-id": id,
|
|
4108
4112
|
children: [jsxRuntime.jsx(TextArea, {
|
|
4109
4113
|
id: id,
|
|
@@ -4154,12 +4158,10 @@ function Textfield(props) {
|
|
|
4154
4158
|
const [localValue, setLocalValue] = hooks.useState(value || '');
|
|
4155
4159
|
const ref = useShowEntryEvent(id);
|
|
4156
4160
|
const handleInputCallback = hooks.useMemo(() => {
|
|
4157
|
-
return debounce((
|
|
4158
|
-
target
|
|
4159
|
-
}) => onInput(target.value.length ? target.value : undefined));
|
|
4161
|
+
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
4160
4162
|
}, [onInput, debounce]);
|
|
4161
4163
|
const handleInput = e => {
|
|
4162
|
-
handleInputCallback(e);
|
|
4164
|
+
handleInputCallback(e.target);
|
|
4163
4165
|
setLocalValue(e.target.value);
|
|
4164
4166
|
};
|
|
4165
4167
|
hooks.useEffect(() => {
|
|
@@ -4245,7 +4247,7 @@ function TextfieldEntry(props) {
|
|
|
4245
4247
|
};
|
|
4246
4248
|
const error = globalError || localError;
|
|
4247
4249
|
return jsxRuntime.jsxs("div", {
|
|
4248
|
-
class:
|
|
4250
|
+
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
4249
4251
|
"data-entry-id": id,
|
|
4250
4252
|
children: [jsxRuntime.jsx(Textfield, {
|
|
4251
4253
|
debounce: debounce,
|
|
@@ -4368,6 +4370,7 @@ exports.ListItem = ListItem;
|
|
|
4368
4370
|
exports.NumberFieldEntry = NumberFieldEntry;
|
|
4369
4371
|
exports.Placeholder = Placeholder;
|
|
4370
4372
|
exports.Popup = Popup;
|
|
4373
|
+
exports.PopupIcon = PopupIcon;
|
|
4371
4374
|
exports.PropertiesPanel = PropertiesPanel;
|
|
4372
4375
|
exports.PropertiesPanelContext = LayoutContext;
|
|
4373
4376
|
exports.SelectEntry = SelectEntry;
|