@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/index.esm.js +3598 -3454
- package/package.json +1 -1
- package/renderer-catalog.json +44 -3
- package/src/lib/Controls/ContactInfo/ContactInfoControlReview.d.ts +6 -0
- package/src/lib/Controls/ContactInfo/ContractInfoControl.d.ts +2 -0
- package/src/lib/Controls/ContactInfo/ContractInfoTester.d.ts +3 -0
- package/src/lib/Controls/ContactInfo/index.d.ts +3 -0
- package/src/lib/Controls/ContactInfo/style-component.d.ts +1 -0
- package/src/lib/Controls/Inputs/InputBaseTableReviewControl.d.ts +1 -1
- package/src/lib/Controls/index.d.ts +1 -0
- package/src/lib/util/registerOptions.d.ts +9 -0
- package/src/lib/util/stringUtils.d.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
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",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-03-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-03-27T16:26:32.367Z",
|
|
4
|
+
"sourceCommit": "afda240e669adb847782b947559cb390dfbab70c",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
|
-
"rendererCount":
|
|
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 @@
|
|
|
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>;
|
|
@@ -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
|
*/
|