@abgov/jsonforms-components 2.61.2 → 2.62.0

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
@@ -5789,7 +5789,8 @@ let _$a = t => t,
5789
5789
  _t9$2,
5790
5790
  _t0$2,
5791
5791
  _t1$2,
5792
- _t10$2;
5792
+ _t10$2,
5793
+ _t11$2;
5793
5794
  const FormFieldWrapper$1 = styled.div(_t$b || (_t$b = _$a`
5794
5795
  margin-bottom: var(--goa-space-l);
5795
5796
  `));
@@ -5848,11 +5849,15 @@ const ReviewValue = styled.div(_t9$2 || (_t9$2 = _$a`
5848
5849
  const CheckboxWrapper = styled.div(_t0$2 || (_t0$2 = _$a`
5849
5850
  min-height: 28px;
5850
5851
  `));
5851
- styled.h4(_t1$2 || (_t1$2 = _$a`
5852
+ const NoneGivenText = styled.span(_t1$2 || (_t1$2 = _$a`
5853
+ color: var(--goa-color-greyscale-700);
5854
+ font-style: italic;
5855
+ `));
5856
+ styled.h4(_t10$2 || (_t10$2 = _$a`
5852
5857
  margin: 0 0 0.25rem 0;
5853
5858
  fontsize: larger;
5854
5859
  `));
5855
- styled.h4(_t10$2 || (_t10$2 = _$a`
5860
+ styled.h4(_t11$2 || (_t11$2 = _$a`
5856
5861
  border-bottom: 1px solid #ddd;
5857
5862
  `));
5858
5863
 
@@ -10141,12 +10146,15 @@ const GoAInputBaseTableReview = props => {
10141
10146
  }
10142
10147
  // If a required checkbox is unchecked, show only the validation message in
10143
10148
  // review mode (not a contradictory "No (...)" value line).
10149
+ let isBooleanRequiredError = false;
10144
10150
  if ((schema == null ? void 0 : schema.type) === 'boolean' && data === false && activeError && /\sis required$/i.test(activeError)) {
10145
10151
  reviewText = '';
10152
+ isBooleanRequiredError = true;
10146
10153
  }
10147
10154
  // eslint-disable-next-line
10148
10155
  const stepId = (_uischema$options4 = uischema.options) == null ? void 0 : _uischema$options4.stepId;
10149
10156
  const showInlineValue = reviewText === null || reviewText === undefined || typeof reviewText === 'string' || typeof reviewText === 'number' || /*#__PURE__*/React.isValidElement(reviewText) || Array.isArray(reviewText) && reviewText.length === 0;
10157
+ const isValueEmpty = !isBooleanRequiredError && (reviewText === null || reviewText === undefined || reviewText === '' || Array.isArray(reviewText) && reviewText.length === 0);
10150
10158
  return jsx("tr", {
10151
10159
  "data-testid": `input-base-table-${label}-row`,
10152
10160
  children: jsxs(PageReviewContainer, {
@@ -10165,7 +10173,9 @@ const GoAInputBaseTableReview = props => {
10165
10173
  }), jsxs(ReviewValue, {
10166
10174
  children: [showInlineValue ? jsx("div", {
10167
10175
  "data-testid": `review-value-${label}`,
10168
- children: reviewText != null ? reviewText : ''
10176
+ children: isValueEmpty ? jsx(NoneGivenText, {
10177
+ children: "(none given)"
10178
+ }) : reviewText != null ? reviewText : ''
10169
10179
  }) : jsx(JsonFormsDispatch, {
10170
10180
  "data-testid": `jsonforms-object-list-defined-elements-dispatch`,
10171
10181
  schema: schema,
@@ -13127,7 +13137,9 @@ const AddressLoopUpControlTableReview = props => {
13127
13137
  children: "Change"
13128
13138
  })]
13129
13139
  }), jsxs(ReviewValue, {
13130
- children: [value, errorMessage && jsx(GoabFormItem, {
13140
+ children: [!value ? jsx(NoneGivenText, {
13141
+ children: "(none given)"
13142
+ }) : value, errorMessage && jsx(GoabFormItem, {
13131
13143
  error: errorMessage,
13132
13144
  label: ""
13133
13145
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.61.2",
3
+ "version": "2.62.0",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-05-01T22:19:53.399Z",
4
- "sourceCommit": "b63e6978b884cc69b9fa9ede0e6f0b9b0f609977",
3
+ "generatedAt": "2026-05-04T22:09:31.942Z",
4
+ "sourceCommit": "db0eb216b2743826de1a7f3bb0e6d6e2aa7ec1cf",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [
@@ -8,5 +8,6 @@ export declare const ReviewHeader: import("styled-components/dist/types").IStyle
8
8
  export declare const ReviewLabel: 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;
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
+ 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;
11
12
  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;
12
13
  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;