@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.js
CHANGED
|
@@ -2053,7 +2053,8 @@ function NumberField(props) {
|
|
|
2053
2053
|
step,
|
|
2054
2054
|
value = '',
|
|
2055
2055
|
onFocus,
|
|
2056
|
-
onBlur
|
|
2056
|
+
onBlur,
|
|
2057
|
+
tooltip
|
|
2057
2058
|
} = props;
|
|
2058
2059
|
const [localValue, setLocalValue] = hooks.useState(value);
|
|
2059
2060
|
const handleInputCallback = hooks.useMemo(() => {
|
|
@@ -2078,7 +2079,12 @@ function NumberField(props) {
|
|
|
2078
2079
|
children: [displayLabel && jsxRuntime.jsx("label", {
|
|
2079
2080
|
for: prefixId$6(id),
|
|
2080
2081
|
class: "bio-properties-panel-label",
|
|
2081
|
-
children:
|
|
2082
|
+
children: jsxRuntime.jsx(TooltipWrapper, {
|
|
2083
|
+
value: tooltip,
|
|
2084
|
+
forId: id,
|
|
2085
|
+
element: props.element,
|
|
2086
|
+
children: label
|
|
2087
|
+
})
|
|
2082
2088
|
}), jsxRuntime.jsx("input", {
|
|
2083
2089
|
id: prefixId$6(id),
|
|
2084
2090
|
ref: inputRef,
|
|
@@ -2131,7 +2137,8 @@ function NumberFieldEntry(props) {
|
|
|
2131
2137
|
step,
|
|
2132
2138
|
onFocus,
|
|
2133
2139
|
onBlur,
|
|
2134
|
-
validate
|
|
2140
|
+
validate,
|
|
2141
|
+
tooltip
|
|
2135
2142
|
} = props;
|
|
2136
2143
|
const globalError = useError(id);
|
|
2137
2144
|
const [localError, setLocalError] = hooks.useState(null);
|
|
@@ -2165,7 +2172,8 @@ function NumberFieldEntry(props) {
|
|
|
2165
2172
|
max: max,
|
|
2166
2173
|
min: min,
|
|
2167
2174
|
step: step,
|
|
2168
|
-
value: value
|
|
2175
|
+
value: value,
|
|
2176
|
+
tooltip: tooltip
|
|
2169
2177
|
}, element), error && jsxRuntime.jsx("div", {
|
|
2170
2178
|
class: "bio-properties-panel-error",
|
|
2171
2179
|
children: error
|
|
@@ -2288,10 +2296,12 @@ function FeelTextfield(props) {
|
|
|
2288
2296
|
}
|
|
2289
2297
|
};
|
|
2290
2298
|
const handleOnBlur = e => {
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2299
|
+
if (e.target.type === 'checkbox') {
|
|
2300
|
+
onInput(e.target.checked);
|
|
2301
|
+
} else {
|
|
2302
|
+
const trimmedValue = e.target.value.trim();
|
|
2303
|
+
onInput(trimmedValue);
|
|
2304
|
+
}
|
|
2295
2305
|
if (onBlur) {
|
|
2296
2306
|
onBlur(e);
|
|
2297
2307
|
}
|