@bpmn-io/form-js-viewer 1.15.0 → 1.15.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.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +14 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -5144,13 +5144,22 @@ function Textfield(props) {
|
|
|
5144
5144
|
const {
|
|
5145
5145
|
required
|
|
5146
5146
|
} = validate;
|
|
5147
|
-
const [
|
|
5147
|
+
const [onChange, flushOnChange] = useFlushDebounce(({
|
|
5148
5148
|
target
|
|
5149
5149
|
}) => {
|
|
5150
5150
|
props.onChange({
|
|
5151
5151
|
value: target.value
|
|
5152
5152
|
});
|
|
5153
5153
|
});
|
|
5154
|
+
|
|
5155
|
+
/**
|
|
5156
|
+
* @param {import('preact').JSX.TargetedEvent<HTMLInputElement, Event>} event
|
|
5157
|
+
*/
|
|
5158
|
+
const onInputChange = event => {
|
|
5159
|
+
onChange({
|
|
5160
|
+
target: event.target
|
|
5161
|
+
});
|
|
5162
|
+
};
|
|
5154
5163
|
const onInputBlur = () => {
|
|
5155
5164
|
flushOnChange && flushOnChange();
|
|
5156
5165
|
onBlur && onBlur();
|
|
@@ -5720,7 +5729,10 @@ function serializeCellData(cellData) {
|
|
|
5720
5729
|
if (cellData !== null && typeof cellData === 'object') {
|
|
5721
5730
|
return JSON.stringify(cellData);
|
|
5722
5731
|
}
|
|
5723
|
-
|
|
5732
|
+
if (cellData === null || cellData === undefined) {
|
|
5733
|
+
return '';
|
|
5734
|
+
}
|
|
5735
|
+
return `${cellData}`;
|
|
5724
5736
|
}
|
|
5725
5737
|
|
|
5726
5738
|
const FILE_PICKER_FILE_KEY_PREFIX = 'files::';
|