@bpmn-io/properties-panel 3.26.2 → 3.26.3
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 +22 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1948,6 +1948,7 @@ function FeelTextfieldComponent(props) {
|
|
|
1948
1948
|
label,
|
|
1949
1949
|
hostLanguage,
|
|
1950
1950
|
onInput,
|
|
1951
|
+
onBlur,
|
|
1951
1952
|
onError,
|
|
1952
1953
|
placeholder,
|
|
1953
1954
|
feel,
|
|
@@ -2013,6 +2014,12 @@ function FeelTextfieldComponent(props) {
|
|
|
2013
2014
|
setFocus(-1);
|
|
2014
2015
|
}
|
|
2015
2016
|
};
|
|
2017
|
+
const handleOnBlur = e => {
|
|
2018
|
+
if (onBlur) {
|
|
2019
|
+
onBlur(e);
|
|
2020
|
+
}
|
|
2021
|
+
setLocalValue(e.target.value.trim());
|
|
2022
|
+
};
|
|
2016
2023
|
const handleLint = useStaticCallback((lint = []) => {
|
|
2017
2024
|
const syntaxError = lint.some(report => report.type === 'Syntax Error');
|
|
2018
2025
|
if (syntaxError) {
|
|
@@ -2134,6 +2141,7 @@ function FeelTextfieldComponent(props) {
|
|
|
2134
2141
|
...props,
|
|
2135
2142
|
popupOpen: popuOpen,
|
|
2136
2143
|
onInput: handleLocalInput,
|
|
2144
|
+
onBlur: handleOnBlur,
|
|
2137
2145
|
contentAttributes: {
|
|
2138
2146
|
'id': prefixId$5(id),
|
|
2139
2147
|
'aria-label': label
|
|
@@ -3962,6 +3970,12 @@ function TextArea(props) {
|
|
|
3962
3970
|
autoResize && resizeToContents(e.target);
|
|
3963
3971
|
setLocalValue(e.target.value);
|
|
3964
3972
|
};
|
|
3973
|
+
const handleOnBlur = e => {
|
|
3974
|
+
if (onBlur) {
|
|
3975
|
+
onBlur(e);
|
|
3976
|
+
}
|
|
3977
|
+
setLocalValue(e.target.value.trim());
|
|
3978
|
+
};
|
|
3965
3979
|
useLayoutEffect(() => {
|
|
3966
3980
|
autoResize && resizeToContents(ref.current);
|
|
3967
3981
|
}, []);
|
|
@@ -3993,7 +4007,7 @@ function TextArea(props) {
|
|
|
3993
4007
|
class: classnames('bio-properties-panel-input', monospace ? 'bio-properties-panel-input-monospace' : '', autoResize ? 'auto-resize' : ''),
|
|
3994
4008
|
onInput: handleInput,
|
|
3995
4009
|
onFocus: onFocus,
|
|
3996
|
-
onBlur:
|
|
4010
|
+
onBlur: handleOnBlur,
|
|
3997
4011
|
placeholder: placeholder,
|
|
3998
4012
|
rows: rows,
|
|
3999
4013
|
value: localValue,
|
|
@@ -4112,6 +4126,12 @@ function Textfield(props) {
|
|
|
4112
4126
|
const handleInputCallback = useMemo(() => {
|
|
4113
4127
|
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
4114
4128
|
}, [onInput, debounce]);
|
|
4129
|
+
const handleOnBlur = e => {
|
|
4130
|
+
if (onBlur) {
|
|
4131
|
+
onBlur(e);
|
|
4132
|
+
}
|
|
4133
|
+
setLocalValue(e.target.value.trim());
|
|
4134
|
+
};
|
|
4115
4135
|
const handleInput = e => {
|
|
4116
4136
|
handleInputCallback(e.target);
|
|
4117
4137
|
setLocalValue(e.target.value);
|
|
@@ -4144,7 +4164,7 @@ function Textfield(props) {
|
|
|
4144
4164
|
class: "bio-properties-panel-input",
|
|
4145
4165
|
onInput: handleInput,
|
|
4146
4166
|
onFocus: onFocus,
|
|
4147
|
-
onBlur:
|
|
4167
|
+
onBlur: handleOnBlur,
|
|
4148
4168
|
placeholder: placeholder,
|
|
4149
4169
|
value: localValue
|
|
4150
4170
|
})]
|