@abgov/jsonforms-components 1.18.0 → 1.18.1

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
@@ -4611,9 +4611,15 @@ const getFormFieldValue = (scope, data) => {
4611
4611
  value: flatten(objToArray(currentValue))
4612
4612
  } : {
4613
4613
  type: 'primitive',
4614
- value: currentValue
4614
+ value: getValue(currentValue)
4615
4615
  };
4616
4616
  };
4617
+ const getValue = currentValue => {
4618
+ if (typeof currentValue === 'boolean') {
4619
+ return currentValue ? 'Yes' : 'No';
4620
+ }
4621
+ return currentValue ? String(currentValue) : undefined;
4622
+ };
4617
4623
 
4618
4624
  const renderValue = (label, key,
4619
4625
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -4956,7 +4962,7 @@ const FormStepper = props => {
4956
4962
  })]
4957
4963
  }), jsx(Grid, {
4958
4964
  children: jsx(RenderFormReviewFields, {
4959
- elements: category.elements,
4965
+ elements: category === null || category === void 0 ? void 0 : category.elements,
4960
4966
  data: data,
4961
4967
  requiredFields: requiredFields
4962
4968
  })
@@ -4965,7 +4971,7 @@ const FormStepper = props => {
4965
4971
  })
4966
4972
  })]
4967
4973
  })]
4968
- }), step && step !== 0 && jsxs(GoAGrid, {
4974
+ }), step !== 0 && jsxs(GoAGrid, {
4969
4975
  minChildWidth: "100px",
4970
4976
  children: [jsx("div", {
4971
4977
  children: step !== 1 ? jsx(GoAButton, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
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",
@@ -3,7 +3,7 @@ type jsonformsLabel = string | boolean | LabelDescription | undefined;
3
3
  export declare const labelToString: (label: jsonformsLabel, scope: string) => string;
4
4
  export interface InputValue {
5
5
  type: 'primitive' | 'object';
6
- value?: string[][];
6
+ value?: string | string[][];
7
7
  }
8
8
  export declare const getFormFieldValue: (scope: string, data: unknown) => InputValue;
9
9
  export {};