@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.23.3",
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
- interface Validate {
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 {};
@@ -10,3 +10,4 @@ export * from './InputEnum';
10
10
  export * from './InputEnumRadios';
11
11
  export * from './InputBooleanControl';
12
12
  export * from './InputBooleanRadioControl';
13
+ export * from './InputEnumCheckboxes';
@@ -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;