@abgov/jsonforms-components 2.57.2 → 2.57.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/index.esm.js +4 -36
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -3337,24 +3337,6 @@ const isRequiredAndHasNoData = props => {
|
|
|
3337
3337
|
const isNotKeyPressTabOrShift = key => {
|
|
3338
3338
|
return !(key === 'Tab' || key === 'Shift') && key !== undefined;
|
|
3339
3339
|
};
|
|
3340
|
-
/**
|
|
3341
|
-
* Helper function to process onKeyPress events for text controls.
|
|
3342
|
-
* @param props - EventKeyPressControlProps
|
|
3343
|
-
*/
|
|
3344
|
-
const onKeyPressForTextControl = props => {
|
|
3345
|
-
const {
|
|
3346
|
-
key,
|
|
3347
|
-
value,
|
|
3348
|
-
controlProps
|
|
3349
|
-
} = props;
|
|
3350
|
-
const {
|
|
3351
|
-
handleChange,
|
|
3352
|
-
path
|
|
3353
|
-
} = controlProps;
|
|
3354
|
-
if (isNotKeyPressTabOrShift(key)) {
|
|
3355
|
-
handleChange(path, value);
|
|
3356
|
-
}
|
|
3357
|
-
};
|
|
3358
3340
|
/**
|
|
3359
3341
|
* Helper function to process onKeyPress events for Time controls
|
|
3360
3342
|
* @param props - EventKeyPressControlProps
|
|
@@ -7400,6 +7382,7 @@ const GoATextControl = props => jsx(GoAInputBaseControl, Object.assign({}, props
|
|
|
7400
7382
|
const GoATextControlTester = rankWith(1, isStringControl);
|
|
7401
7383
|
const GoAInputTextControl = withJsonFormsControlProps(GoATextControl);
|
|
7402
7384
|
|
|
7385
|
+
const DEBOUNCE_DELAY = 550;
|
|
7403
7386
|
const MultiLineText = props => {
|
|
7404
7387
|
var _uischema$options$com, _uischema$options, _uischema$options2, _uischema$options3, _uischema$options$com2, _uischema$options4, _uischema$options5;
|
|
7405
7388
|
const {
|
|
@@ -7415,11 +7398,8 @@ const MultiLineText = props => {
|
|
|
7415
7398
|
errors,
|
|
7416
7399
|
setIsVisited
|
|
7417
7400
|
} = props;
|
|
7418
|
-
const {
|
|
7419
|
-
required
|
|
7420
|
-
} = props;
|
|
7421
7401
|
const [textAreaValue, setTextAreaValue] = React.useState(data || '');
|
|
7422
|
-
const debouncedValue = useDebounce(textAreaValue,
|
|
7402
|
+
const debouncedValue = useDebounce(textAreaValue, DEBOUNCE_DELAY);
|
|
7423
7403
|
useEffect(() => {
|
|
7424
7404
|
setTextAreaValue(data || '');
|
|
7425
7405
|
}, [data]);
|
|
@@ -7440,7 +7420,7 @@ const MultiLineText = props => {
|
|
|
7440
7420
|
const textAreaName = `${label || path}-text-area` || '';
|
|
7441
7421
|
const txtAreaComponent = jsx(GoabTextArea, Object.assign({
|
|
7442
7422
|
error: isVisited && errors.length > 0,
|
|
7443
|
-
value:
|
|
7423
|
+
value: debouncedValue,
|
|
7444
7424
|
disabled: !enabled,
|
|
7445
7425
|
readOnly: readOnly,
|
|
7446
7426
|
placeholder: placeholder,
|
|
@@ -7455,20 +7435,8 @@ const MultiLineText = props => {
|
|
|
7455
7435
|
if (isVisited === false && setIsVisited) {
|
|
7456
7436
|
setIsVisited();
|
|
7457
7437
|
}
|
|
7458
|
-
if (detail.value.length === 0 || required && errors.length === 0 && detail.value.length > 0) {
|
|
7459
|
-
onKeyPressForTextControl({
|
|
7460
|
-
name: detail.name,
|
|
7461
|
-
value: newValue,
|
|
7462
|
-
key: detail.key,
|
|
7463
|
-
controlProps: props
|
|
7464
|
-
});
|
|
7465
|
-
}
|
|
7466
7438
|
},
|
|
7467
|
-
onChange:
|
|
7468
|
-
if (isVisited === false && setIsVisited) {
|
|
7469
|
-
setIsVisited();
|
|
7470
|
-
}
|
|
7471
|
-
}
|
|
7439
|
+
onChange: detail => {}
|
|
7472
7440
|
}, uischema == null || (_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.componentProps));
|
|
7473
7441
|
return txtAreaComponent;
|
|
7474
7442
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.57.
|
|
3
|
+
"version": "2.57.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-03-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-03-23T15:28:50.694Z",
|
|
4
|
+
"sourceCommit": "014f784d8d45888ff2eee1a7f05b1cb0e715e9b7",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 32,
|
|
7
7
|
"renderers": [
|