@abgov/jsonforms-components 2.66.3 → 2.66.4
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
CHANGED
|
@@ -5910,7 +5910,8 @@ let _$a = t => t,
|
|
|
5910
5910
|
_t0$2,
|
|
5911
5911
|
_t1$2,
|
|
5912
5912
|
_t10$2,
|
|
5913
|
-
_t11$2
|
|
5913
|
+
_t11$2,
|
|
5914
|
+
_t12$2;
|
|
5914
5915
|
const FormFieldWrapper$1 = styled.div(_t$b || (_t$b = _$a`
|
|
5915
5916
|
margin-bottom: var(--goa-space-l);
|
|
5916
5917
|
`));
|
|
@@ -5973,11 +5974,17 @@ const NoneGivenText = styled.span(_t1$2 || (_t1$2 = _$a`
|
|
|
5973
5974
|
color: var(--goa-color-greyscale-700);
|
|
5974
5975
|
font-style: italic;
|
|
5975
5976
|
`));
|
|
5976
|
-
styled.
|
|
5977
|
+
const NoneGivenTableText = styled.span(_t10$2 || (_t10$2 = _$a`
|
|
5978
|
+
padding-top: var(--goa-space-l);
|
|
5979
|
+
padding-left: var(--goa-space-m);
|
|
5980
|
+
color: var(--goa-color-greyscale-700);
|
|
5981
|
+
font-style: italic;
|
|
5982
|
+
`));
|
|
5983
|
+
styled.h4(_t11$2 || (_t11$2 = _$a`
|
|
5977
5984
|
margin: 0 0 0.25rem 0;
|
|
5978
5985
|
fontsize: larger;
|
|
5979
5986
|
`));
|
|
5980
|
-
styled.h4(
|
|
5987
|
+
styled.h4(_t12$2 || (_t12$2 = _$a`
|
|
5981
5988
|
border-bottom: 1px solid #ddd;
|
|
5982
5989
|
`));
|
|
5983
5990
|
|
|
@@ -12017,6 +12024,13 @@ const isObjectArrayEmpty = currentData => {
|
|
|
12017
12024
|
const result = isEmpty$1(currentData) || JSON.stringify(currentData) === '[{}]';
|
|
12018
12025
|
return result;
|
|
12019
12026
|
};
|
|
12027
|
+
const renderNoneGivenText = data => {
|
|
12028
|
+
return !data ? jsxs(Fragment, {
|
|
12029
|
+
children: [jsx(NoneGivenTableText, {
|
|
12030
|
+
children: "(none given)"
|
|
12031
|
+
}), jsx("br", {})]
|
|
12032
|
+
}) : data;
|
|
12033
|
+
};
|
|
12020
12034
|
const renderCellColumn = ({
|
|
12021
12035
|
data,
|
|
12022
12036
|
error,
|
|
@@ -12026,24 +12040,25 @@ const renderCellColumn = ({
|
|
|
12026
12040
|
element,
|
|
12027
12041
|
isRequired
|
|
12028
12042
|
}) => {
|
|
12029
|
-
const renderWarningCell =
|
|
12030
|
-
return
|
|
12031
|
-
children:
|
|
12032
|
-
children: jsx(GoabIcon, {
|
|
12043
|
+
const renderWarningCell = error => {
|
|
12044
|
+
return jsxs(HilightCellWarning, {
|
|
12045
|
+
children: [renderNoneGivenText(data), jsxs(ObjectArrayWarningIconDiv, {
|
|
12046
|
+
children: [jsx(GoabIcon, {
|
|
12033
12047
|
type: "warning",
|
|
12034
12048
|
title: "warning",
|
|
12035
12049
|
size: "small",
|
|
12036
12050
|
theme: "filled",
|
|
12037
12051
|
ml: "2xs",
|
|
12038
12052
|
mt: "2xs"
|
|
12039
|
-
})
|
|
12040
|
-
})
|
|
12053
|
+
}), error ? error : '']
|
|
12054
|
+
})]
|
|
12041
12055
|
});
|
|
12042
12056
|
};
|
|
12043
12057
|
if (data === undefined && isRequired || error !== '' && error !== undefined) {
|
|
12044
|
-
|
|
12058
|
+
const message = error || (isRequired && data === undefined ? 'Required' : data);
|
|
12059
|
+
return renderWarningCell(message);
|
|
12045
12060
|
} else if (data !== undefined && isRequired && error) {
|
|
12046
|
-
return renderWarningCell();
|
|
12061
|
+
return renderWarningCell(error);
|
|
12047
12062
|
}
|
|
12048
12063
|
const path = `/${rowPath}/${index}/${element}/${index === 0 ? index : index - 1}`;
|
|
12049
12064
|
const nestedErrors = errors == null ? void 0 : errors.filter(e => e.instancePath.includes(path));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.66.
|
|
3
|
+
"version": "2.66.4",
|
|
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-17T15:15:12.476Z",
|
|
4
|
+
"sourceCommit": "131eadb73d7d67a498c9363ca20648a1cc9b6b88",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|
|
@@ -9,5 +9,6 @@ export declare const ReviewLabel: import("styled-components/dist/types").IStyled
|
|
|
9
9
|
export declare const ReviewValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
10
10
|
export declare const CheckboxWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
11
11
|
export declare const NoneGivenText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
12
|
+
export declare const NoneGivenTableText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
12
13
|
export declare const H4Large: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>> & string;
|
|
13
14
|
export declare const Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>> & string;
|
|
@@ -13,4 +13,5 @@ export interface TableProps {
|
|
|
13
13
|
columnLabels?: Record<string, string>;
|
|
14
14
|
}
|
|
15
15
|
export declare const isObjectArrayEmpty: (currentData: string) => boolean;
|
|
16
|
+
export declare const renderNoneGivenText: (data: string | undefined) => string | import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export declare const renderCellColumn: ({ data, error, errors, index, rowPath, element, isRequired, }: RenderCellColumnProps) => string | import("react/jsx-runtime").JSX.Element | null;
|