@abgov/jsonforms-components 2.67.5 → 2.67.6
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 +6 -7
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -5974,7 +5974,6 @@ const NoneGivenText = styled.span(_t1$2 || (_t1$2 = _$a`
|
|
|
5974
5974
|
`));
|
|
5975
5975
|
const NoneGivenTableText = styled.span(_t10$2 || (_t10$2 = _$a`
|
|
5976
5976
|
padding-top: var(--goa-space-l);
|
|
5977
|
-
padding-left: var(--goa-space-xs);
|
|
5978
5977
|
color: var(--goa-color-greyscale-700);
|
|
5979
5978
|
font-style: italic;
|
|
5980
5979
|
`));
|
|
@@ -7363,12 +7362,12 @@ const InnerGoAInputText = props => {
|
|
|
7363
7362
|
setLocalValue(isSinField && typeof data === 'string' ? formatSinForDisplay(data) : data);
|
|
7364
7363
|
}, [data, isSinField]);
|
|
7365
7364
|
useEffect(() => {
|
|
7366
|
-
if (typeof handleChange === 'function' && hasDefault && !manualInput) {
|
|
7365
|
+
if (typeof handleChange === 'function' && hasDefault && data === undefined && !manualInput) {
|
|
7367
7366
|
handleChange(props.path, schema.default);
|
|
7368
7367
|
setLocalValue(schema.default);
|
|
7369
7368
|
}
|
|
7370
7369
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7371
|
-
}, [schema.default]);
|
|
7370
|
+
}, [schema.default, data]);
|
|
7372
7371
|
/* istanbul ignore next */
|
|
7373
7372
|
useEffect(() => {
|
|
7374
7373
|
const dataForInput = isSinField && typeof data === 'string' ? formatSinForDisplay(data) : data;
|
|
@@ -10521,11 +10520,12 @@ const GoAEmailInput = props => {
|
|
|
10521
10520
|
splitErrors[splintIndex] = `${primaryLabel} is required`;
|
|
10522
10521
|
const finalErrors = splitErrors.join('\n');
|
|
10523
10522
|
useEffect(() => {
|
|
10524
|
-
if (typeof handleChange === 'function' && (schema == null ? void 0 : schema.default) !== undefined) {
|
|
10523
|
+
if (typeof handleChange === 'function' && (schema == null ? void 0 : schema.default) !== undefined && data === undefined) {
|
|
10525
10524
|
handleChange(props.path, schema.default);
|
|
10525
|
+
setLocalValue(schema.default);
|
|
10526
10526
|
}
|
|
10527
10527
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
10528
|
-
}, [schema.default]);
|
|
10528
|
+
}, [schema.default, data]);
|
|
10529
10529
|
return jsx(Visible, {
|
|
10530
10530
|
visible: visible,
|
|
10531
10531
|
children: jsx(JsonFormRegisterProvider, {
|
|
@@ -12044,7 +12044,6 @@ const renderCellColumn = ({
|
|
|
12044
12044
|
title: "warning",
|
|
12045
12045
|
size: "small",
|
|
12046
12046
|
theme: "filled",
|
|
12047
|
-
ml: "2xs",
|
|
12048
12047
|
mt: "2xs"
|
|
12049
12048
|
}), error ? error : '']
|
|
12050
12049
|
})]
|
|
@@ -12304,7 +12303,7 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
|
|
|
12304
12303
|
style: {
|
|
12305
12304
|
display: 'flex',
|
|
12306
12305
|
marginBottom: '0.5rem',
|
|
12307
|
-
alignItems: '
|
|
12306
|
+
alignItems: 'flex-start'
|
|
12308
12307
|
},
|
|
12309
12308
|
"data-testid": `#/properties/${key}-input-${i}-row`,
|
|
12310
12309
|
children: [jsxs("strong", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.67.
|
|
3
|
+
"version": "2.67.6",
|
|
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-06-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-06-23T21:16:03.119Z",
|
|
4
|
+
"sourceCommit": "a83b527a2f034d3e3d4699630165799b4f644517",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|