@bpmn-io/properties-panel 3.30.0 → 3.30.2
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/index.esm.js +18 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2032,7 +2032,8 @@ function NumberField(props) {
|
|
|
2032
2032
|
step,
|
|
2033
2033
|
value = '',
|
|
2034
2034
|
onFocus,
|
|
2035
|
-
onBlur
|
|
2035
|
+
onBlur,
|
|
2036
|
+
tooltip
|
|
2036
2037
|
} = props;
|
|
2037
2038
|
const [localValue, setLocalValue] = useState(value);
|
|
2038
2039
|
const handleInputCallback = useMemo(() => {
|
|
@@ -2057,7 +2058,12 @@ function NumberField(props) {
|
|
|
2057
2058
|
children: [displayLabel && jsx("label", {
|
|
2058
2059
|
for: prefixId$6(id),
|
|
2059
2060
|
class: "bio-properties-panel-label",
|
|
2060
|
-
children:
|
|
2061
|
+
children: jsx(TooltipWrapper, {
|
|
2062
|
+
value: tooltip,
|
|
2063
|
+
forId: id,
|
|
2064
|
+
element: props.element,
|
|
2065
|
+
children: label
|
|
2066
|
+
})
|
|
2061
2067
|
}), jsx("input", {
|
|
2062
2068
|
id: prefixId$6(id),
|
|
2063
2069
|
ref: inputRef,
|
|
@@ -2110,7 +2116,8 @@ function NumberFieldEntry(props) {
|
|
|
2110
2116
|
step,
|
|
2111
2117
|
onFocus,
|
|
2112
2118
|
onBlur,
|
|
2113
|
-
validate
|
|
2119
|
+
validate,
|
|
2120
|
+
tooltip
|
|
2114
2121
|
} = props;
|
|
2115
2122
|
const globalError = useError(id);
|
|
2116
2123
|
const [localError, setLocalError] = useState(null);
|
|
@@ -2144,7 +2151,8 @@ function NumberFieldEntry(props) {
|
|
|
2144
2151
|
max: max,
|
|
2145
2152
|
min: min,
|
|
2146
2153
|
step: step,
|
|
2147
|
-
value: value
|
|
2154
|
+
value: value,
|
|
2155
|
+
tooltip: tooltip
|
|
2148
2156
|
}, element), error && jsx("div", {
|
|
2149
2157
|
class: "bio-properties-panel-error",
|
|
2150
2158
|
children: error
|
|
@@ -2267,10 +2275,12 @@ function FeelTextfield(props) {
|
|
|
2267
2275
|
}
|
|
2268
2276
|
};
|
|
2269
2277
|
const handleOnBlur = e => {
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2278
|
+
if (e.target.type === 'checkbox') {
|
|
2279
|
+
onInput(e.target.checked);
|
|
2280
|
+
} else {
|
|
2281
|
+
const trimmedValue = e.target.value.trim();
|
|
2282
|
+
onInput(trimmedValue);
|
|
2283
|
+
}
|
|
2274
2284
|
if (onBlur) {
|
|
2275
2285
|
onBlur(e);
|
|
2276
2286
|
}
|