@abgov/jsonforms-components 2.41.1 → 2.42.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 +313 -297
- package/package.json +3 -2
- package/src/lib/Additional/GoACalloutControl.d.ts +3 -3
- package/src/lib/Controls/FileUploader/ContextMenu.d.ts +3 -3
- package/src/lib/Controls/FormStepper/FormStepperControl.d.ts +3 -3
- package/src/lib/Controls/FormStepper/PageStepperControl.d.ts +3 -3
- package/src/lib/Controls/Inputs/InputBaseControl.d.ts +1 -1
- package/src/lib/Controls/Inputs/InputBaseReviewControl.d.ts +1 -1
- package/src/lib/Controls/Inputs/InputIntegerControl.d.ts +2 -2
- package/src/lib/Controls/Inputs/InputMultiLineTextControl.d.ts +2 -2
- package/src/lib/Controls/PhoneNumber/PhoneNumberReviewControl.d.ts +1 -1
- package/src/lib/Controls/PhoneNumber/PhoneNumberWithTypeReviewControl.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.42.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",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@abgov/react-components": "^
|
|
8
|
+
"@abgov/react-components": "^6.9.3",
|
|
9
|
+
"@abgov/ui-components-common": "1.9.1",
|
|
9
10
|
"@jsonforms/core": "^3.1.0",
|
|
10
11
|
"@jsonforms/react": "^3.1.0",
|
|
11
12
|
"react": "^18.0.0",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RankedTester } from '@jsonforms/core';
|
|
3
|
-
import {
|
|
3
|
+
import { GoabCalloutSize, GoabCalloutType } from '@abgov/ui-components-common';
|
|
4
4
|
export interface CalloutProps {
|
|
5
|
-
size?:
|
|
6
|
-
type?:
|
|
5
|
+
size?: GoabCalloutSize;
|
|
6
|
+
type?: GoabCalloutType;
|
|
7
7
|
message?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const callout: (props: CalloutProps) => JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GoabIconType } from '@abgov/ui-components-common';
|
|
3
3
|
interface ContextMenuIconProps {
|
|
4
|
-
type:
|
|
4
|
+
type: GoabIconType;
|
|
5
5
|
testId?: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
interface ContextMenuTextProps {
|
|
11
|
-
type?:
|
|
11
|
+
type?: GoabIconType;
|
|
12
12
|
testId?: string;
|
|
13
13
|
onClick?: () => void;
|
|
14
14
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoabButtonType } from '@abgov/ui-components-common';
|
|
2
2
|
import { CategorizationStepperLayoutRendererProps } from './types';
|
|
3
3
|
export interface FormStepperOptionProps {
|
|
4
4
|
nextButtonLabel?: string;
|
|
5
|
-
nextButtonType?:
|
|
5
|
+
nextButtonType?: GoabButtonType;
|
|
6
6
|
previousButtonLabel?: string;
|
|
7
|
-
previousButtonType?:
|
|
7
|
+
previousButtonType?: GoabButtonType;
|
|
8
8
|
}
|
|
9
9
|
export declare const FormStepper: (props: CategorizationStepperLayoutRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const FormStepperView: (props: CategorizationStepperLayoutRendererProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoabButtonType } from '@abgov/ui-components-common';
|
|
2
2
|
import { CategorizationStepperLayoutRendererProps } from './types';
|
|
3
3
|
declare function getByJsonPointer(obj: unknown, pointer: string): unknown;
|
|
4
4
|
/** Return true only if value is user-provided/meaningful (not just defaults). */
|
|
@@ -7,9 +7,9 @@ declare function getCategoryScopes(cat: unknown): string[];
|
|
|
7
7
|
declare function hasDataInScopes(data: unknown, scopes?: string[]): boolean;
|
|
8
8
|
export interface FormPageOptionProps {
|
|
9
9
|
nextButtonLabel?: string;
|
|
10
|
-
nextButtonType?:
|
|
10
|
+
nextButtonType?: GoabButtonType;
|
|
11
11
|
previousButtonLabel?: string;
|
|
12
|
-
previousButtonType?:
|
|
12
|
+
previousButtonType?: GoabButtonType;
|
|
13
13
|
}
|
|
14
14
|
export declare const FormPageStepper: (props: CategorizationStepperLayoutRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare const FormPagesView: (props: CategorizationStepperLayoutRendererProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ControlProps } from '@jsonforms/core';
|
|
2
|
-
export type
|
|
2
|
+
export type GoabInputType = 'text' | 'password' | 'email' | 'number' | 'date' | 'datetime-local' | 'month' | 'range' | 'search' | 'tel' | 'time' | 'url' | 'week';
|
|
3
3
|
export interface WithInput {
|
|
4
4
|
input: any;
|
|
5
5
|
noLabel?: boolean;
|
|
@@ -3,4 +3,4 @@ import { WithInputProps } from './type';
|
|
|
3
3
|
export type WithBaseInputReviewProps = CellProps & WithClassname & WithInputProps & StatePropsOfControl;
|
|
4
4
|
export declare const GoABaseInputReviewComponent: (props: WithBaseInputReviewProps) => JSX.Element;
|
|
5
5
|
export declare const GoInputBaseReview: (props: ControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const GoAInputBaseReviewControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname, ControlProps, RankedTester } from '@jsonforms/core';
|
|
3
3
|
import { WithInputProps } from './type';
|
|
4
|
-
export type
|
|
5
|
-
export declare const
|
|
4
|
+
export type GoabInputIntegerProps = CellProps & WithClassname & WithInputProps;
|
|
5
|
+
export declare const GoabInputInteger: (props: GoabInputIntegerProps) => JSX.Element;
|
|
6
6
|
export declare const GoAIntegerControl: (props: ControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const GoAIntegerControlTester: RankedTester;
|
|
8
8
|
export declare const GoAInputIntegerControl: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname, ControlProps, RankedTester } from '@jsonforms/core';
|
|
3
3
|
import { WithInputProps } from './type';
|
|
4
|
-
export type
|
|
5
|
-
export declare const MultiLineText: (props:
|
|
4
|
+
export type GoabInputMultiLineTextProps = CellProps & WithClassname & WithInputProps;
|
|
5
|
+
export declare const MultiLineText: (props: GoabInputMultiLineTextProps) => JSX.Element;
|
|
6
6
|
export declare const MultiLineTextControlInput: (props: ControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const MultiLineTextControlTester: RankedTester;
|
|
8
8
|
export declare const MultiLineTextControl: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ControlProps } from '@jsonforms/core';
|
|
2
2
|
type PhoneNumberReviewControlProps = ControlProps;
|
|
3
3
|
export declare const PhoneNumberReviewControl: (props: PhoneNumberReviewControlProps) => JSX.Element;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const GoabInputBasePhoneNumberReviewControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ControlProps } from '@jsonforms/core';
|
|
2
2
|
type PhoneNumberWithTypeReviewProps = ControlProps;
|
|
3
3
|
export declare const PhoneNumberWithTypeReviewControl: (props: PhoneNumberWithTypeReviewProps) => JSX.Element;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const GoabInputBasePhoneNumberWithTypeReviewControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
|
|
5
5
|
export {};
|