@abgov/jsonforms-components 2.57.3 → 2.58.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.57.3",
3
+ "version": "2.58.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,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-03-23T15:28:50.694Z",
4
- "sourceCommit": "014f784d8d45888ff2eee1a7f05b1cb0e715e9b7",
3
+ "generatedAt": "2026-03-27T16:26:32.367Z",
4
+ "sourceCommit": "afda240e669adb847782b947559cb390dfbab70c",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
- "rendererCount": 32,
6
+ "rendererCount": 33,
7
7
  "renderers": [
8
8
  {
9
9
  "id": "address-look-up",
@@ -132,6 +132,47 @@
132
132
  ],
133
133
  "inference": "auto"
134
134
  },
135
+ {
136
+ "id": "contact-information",
137
+ "tester": "ContactInformationTester",
138
+ "kind": "control",
139
+ "ui": {
140
+ "type": "Control",
141
+ "options": {
142
+ "required": {},
143
+ "optional": {}
144
+ }
145
+ },
146
+ "match": {
147
+ "scope": "control",
148
+ "schema": {
149
+ "type": "object",
150
+ "format": null,
151
+ "enum": null,
152
+ "requiredProperties": [
153
+ "email",
154
+ "phone",
155
+ "preferredContactMethod"
156
+ ],
157
+ "exactProperties": false,
158
+ "arrayItemType": null
159
+ }
160
+ },
161
+ "rank": 4,
162
+ "supports": {
163
+ "input": true,
164
+ "review": false
165
+ },
166
+ "fallback": {
167
+ "strategy": "decompose-object",
168
+ "message": "No direct renderer match. Decompose object properties into primitive child controls or use known common schema refs."
169
+ },
170
+ "source": {
171
+ "file": "libs/jsonforms-components/src/lib/Controls/ContactInfo/ContractInfoTester.ts"
172
+ },
173
+ "notes": [],
174
+ "inference": "auto"
175
+ },
135
176
  {
136
177
  "id": "file-uploader",
137
178
  "tester": "FileUploaderTester",
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ControlProps } from '@jsonforms/core';
3
+ type ContractInfoControlReviewProps = ControlProps;
4
+ export declare const ContractInfoControlReview: (props: ContractInfoControlReviewProps) => JSX.Element;
5
+ export declare const GoAContractInfoControlReview: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ControlProps } from '@jsonforms/core';
2
+ export declare const ContractInfoControl: (props: ControlProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { RankedTester } from '@jsonforms/core';
2
+ export declare const isContactInformation: import("@jsonforms/core").Tester;
3
+ export declare const ContactInformationTester: RankedTester;
@@ -0,0 +1,3 @@
1
+ export * from './ContractInfoControl';
2
+ export * from './ContactInfoControlReview';
3
+ export * from './ContractInfoTester';
@@ -0,0 +1 @@
1
+ export declare const FormFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ControlProps } from '@jsonforms/core';
3
- export declare const GoAInputBaseTableReview: (props: ControlProps) => JSX.Element;
3
+ export declare const GoAInputBaseTableReview: (props: ControlProps) => JSX.Element | null;
4
4
  export declare const GoAInputBaseTableReviewControl: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
@@ -7,3 +7,4 @@ export * from './FullName';
7
7
  export * from './FullNameDOB';
8
8
  export * from './PhoneNumber';
9
9
  export * from './Calculation';
10
+ export * from './ContactInfo';
@@ -2,6 +2,15 @@ export declare const OPTION_DEFINITIONS: {
2
2
  mainTitle: {
3
3
  schema: string;
4
4
  };
5
+ enableEmail: {
6
+ schema: boolean;
7
+ };
8
+ enablePhone: {
9
+ schema: boolean;
10
+ };
11
+ emailFirst: {
12
+ schema: boolean;
13
+ };
5
14
  noDataMessage: {
6
15
  schema: string;
7
16
  };
@@ -21,6 +21,14 @@ export declare const controlScopeMatchesLabel: (scope: string, label: string) =>
21
21
  export declare const getLabelText: (scope: string, label: string) => string;
22
22
  export declare const isEmptyBoolean: (schema: JsonSchema, data: unknown) => boolean;
23
23
  export declare const isEmptyNumber: (schema: JsonSchema, data: unknown) => boolean;
24
+ /**
25
+ * Returns true when a value is undefined, null, or an empty string.
26
+ */
27
+ export declare const isNilOrEmptyString: (value: string | null | undefined) => boolean;
28
+ /**
29
+ * Returns true when a value is undefined, null, empty string, or (optionally) an empty array.
30
+ */
31
+ export declare const isNilOrEmptyValue: (value: unknown, includeEmptyArray?: boolean) => boolean;
24
32
  export declare const validateSinWithLuhn: (input: number) => boolean;
25
33
  /**
26
34
  * Gets the required fields in the If/Then/Else json schema condition.
@@ -34,7 +42,7 @@ export declare const getRequiredIfThen: (props: ControlProps) => string[];
34
42
  * @param props
35
43
  * @returns error message
36
44
  */
37
- export declare const checkFieldValidity: (props: ControlProps) => string;
45
+ export declare const checkFieldValidity: (props: ControlProps, rootData?: unknown) => string;
38
46
  /**
39
47
  * Check if the date is a valid date/time
40
48
  */