@abgov/jsonforms-components 1.23.3 → 1.24.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 +911 -575
- package/package.json +1 -1
- package/src/lib/Components/CheckboxGroup.d.ts +9 -0
- package/src/lib/Context/register/util.d.ts +1 -5
- package/src/lib/Controls/Inputs/InputEnumCheckboxes.d.ts +12 -0
- package/src/lib/Controls/Inputs/index.d.ts +1 -0
- package/src/lib/util/inputControlUtils.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.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",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CheckboxGroupProps {
|
|
3
|
+
orientation?: CheckboxGroupOrientation;
|
|
4
|
+
testId?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export type CheckboxGroupOrientation = 'horizontal' | 'vertical';
|
|
8
|
+
declare const Checkboxes: ({ children, orientation, testId }: CheckboxGroupProps) => JSX.Element;
|
|
9
|
+
export default Checkboxes;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { RegisterConfig } from './actions';
|
|
2
2
|
export declare const fetchRegister: (props: RegisterConfig) => Promise<any[] | undefined>;
|
|
3
|
-
|
|
4
|
-
url?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const validateUrl: (props: Validate) => Promise<boolean>;
|
|
7
|
-
export {};
|
|
3
|
+
export declare const isValidUrl: (url: string) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ControlProps, OwnPropsOfEnum, RankedTester } from '@jsonforms/core';
|
|
3
|
+
import { TranslateProps } from '@jsonforms/react';
|
|
4
|
+
import { WithInputProps } from './type';
|
|
5
|
+
import { WithOptionLabel } from '../../util';
|
|
6
|
+
import { EnumCellProps, WithClassname } from '@jsonforms/core';
|
|
7
|
+
type CheckboxGroupProp = EnumCellProps & WithClassname & TranslateProps & WithInputProps;
|
|
8
|
+
export declare const CheckboxGroup: (props: CheckboxGroupProp) => JSX.Element;
|
|
9
|
+
export declare const EnumCheckboxControl: (props: ControlProps & OwnPropsOfEnum & WithOptionLabel & TranslateProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const GoAEnumCheckboxGroupControl: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl & OwnPropsOfEnum>;
|
|
11
|
+
export declare const GoACheckoutGroupControlTester: RankedTester;
|
|
12
|
+
export {};
|
|
@@ -67,3 +67,11 @@ export declare const onChangeForDateTimeControl: (props: EventChangeControlProps
|
|
|
67
67
|
* @param props - EventChangeControlProps
|
|
68
68
|
*/
|
|
69
69
|
export declare const onChangeForNumericControl: (props: EventChangeControlProps) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Helper function to process onChange event for input enum checkboxes controls.
|
|
72
|
+
* @param data
|
|
73
|
+
* @param name
|
|
74
|
+
* @param value
|
|
75
|
+
* @returns {string[]}
|
|
76
|
+
*/
|
|
77
|
+
export declare const onChangeForCheckboxData: (data: any, name: string, value: string) => any;
|