@abgov/jsonforms-components 2.38.4 → 2.39.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.
|
|
3
|
+
"version": "2.39.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,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ErrorObject } from 'ajv';
|
|
2
|
+
export declare function getStepStatus(opts: {
|
|
3
|
+
scopes: string[];
|
|
4
|
+
data: any;
|
|
5
|
+
errors: AjvError[];
|
|
6
|
+
schema: any;
|
|
7
|
+
}): 'Completed' | 'InProgress' | 'NotStarted';
|
|
2
8
|
export declare const isErrorPathIncluded: (errorPaths: string[], path: string) => boolean;
|
|
3
|
-
|
|
9
|
+
type AjvError = ErrorObject & {
|
|
10
|
+
dataPath?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function normalizeSchemaPath(schemaPath: string): string;
|
|
13
|
+
export declare function normalizeInstancePath(instancePath: string): string;
|
|
14
|
+
export declare function getIncompletePaths(errors: AjvError[] | null | undefined, scopePaths: string[]): string[];
|
|
15
|
+
export type StepStatus = 'not-started' | 'in-progress' | 'completed';
|
|
16
|
+
export interface StepConfig {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
scopePaths: string[];
|
|
20
|
+
}
|
|
4
21
|
export declare const subErrorInParent: (error: ErrorObject, paths: string[]) => boolean;
|
|
5
|
-
export declare const getErrorsInScopes: (errors: ErrorObject[], scopes: string[]) => ErrorObject[];
|
|
22
|
+
export declare const getErrorsInScopes: (errors: ErrorObject[] | null | undefined, scopes: string[]) => ErrorObject[];
|
|
6
23
|
export declare const hasDataInScopes: (data: object, scopes: string[]) => boolean;
|
|
7
24
|
export declare function isJson(str: string): boolean;
|
|
8
25
|
export declare const saveIsVisitFromLocalStorage: (status: boolean[]) => void;
|
|
9
26
|
export declare const getIsVisitFromLocalStorage: () => boolean[] | undefined;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildConditionalDeps(rootSchema: any): Map<string, string[]>;
|
|
@@ -23,3 +23,4 @@ export declare const ObjectArrayRequiredTextLabel: import("styled-components/dis
|
|
|
23
23
|
export declare const HasErrorLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
24
|
export declare const HilightCellWarning: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
25
25
|
export declare const FixTableHeaderAlignment: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
+
export declare const ListWithDetailsReviewCellDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|