@abgov/jsonforms-components 1.57.1 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.57.1",
3
+ "version": "1.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/src/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './lib/Context/register';
5
5
  export * from './lib/Controls';
6
6
  export declare const GoABaseRenderers: JsonFormsRendererRegistryEntry[];
7
7
  export declare const GoABaseReviewRenderers: JsonFormsRendererRegistryEntry[];
8
+ export declare const GoABaseTableReviewRenderers: JsonFormsRendererRegistryEntry[];
8
9
  export declare const GoAReviewRenderers: JsonFormsRendererRegistryEntry[];
9
10
  export declare const GoARenderers: JsonFormsRendererRegistryEntry[];
10
11
  export declare const GoACells: JsonFormsCellRendererRegistryEntry[];
@@ -0,0 +1,4 @@
1
+ import { CategorizationStepperLayoutReviewRendererProps } from './types';
2
+ export declare const FormStepperPageReviewer: (props: CategorizationStepperLayoutReviewRendererProps) => JSX.Element;
3
+ export declare const FormStepperPageReviewControl: (props: CategorizationStepperLayoutReviewRendererProps & import("@jsonforms/core").OwnPropsOfLayout) => import("react/jsx-runtime").JSX.Element;
4
+ export default FormStepperPageReviewer;
@@ -7,6 +7,8 @@ export interface JsonFormsStepperContextProviderProps {
7
7
  StepperProps: CategorizationStepperLayoutRendererProps & {
8
8
  customDispatch?: Dispatch<any> & {
9
9
  activeId?: number;
10
+ } & {
11
+ withBackReviewBtn?: boolean;
10
12
  };
11
13
  };
12
14
  }
@@ -18,6 +20,7 @@ export interface JsonFormsStepperContextProps {
18
20
  selectPath: () => string;
19
21
  selectCategory: (id: number) => CategoryState;
20
22
  goToPage: (id: number, updateCategoryId?: number) => void;
23
+ toggleShowReviewLink: (id: number) => void;
21
24
  validatePage: (id: number) => void;
22
25
  isProvided?: boolean;
23
26
  }
@@ -24,6 +24,11 @@ export type StepperAction = {
24
24
  payload: {
25
25
  errors?: ErrorObject[];
26
26
  };
27
+ } | {
28
+ type: 'toggle/category/review-link';
29
+ payload: {
30
+ id: number;
31
+ };
27
32
  } | {
28
33
  type: 'update/uischema';
29
34
  payload: {
@@ -3,6 +3,7 @@ export interface CategoryInternalState {
3
3
  isCompleted?: boolean;
4
4
  isVisited?: boolean;
5
5
  isValid?: boolean;
6
+ showReviewPageLink?: boolean;
6
7
  id: number;
7
8
  uischema?: CategorizationElement;
8
9
  isEnabled?: boolean;
@@ -12,3 +12,6 @@ export declare const RightAlignmentDiv: import("styled-components/dist/types").I
12
12
  export declare const FormStepperSummaryH3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
13
13
  export declare const PageRenderPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
14
14
  export declare const PageBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
15
+ export declare const TableReviewItemSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
+ export declare const TableReviewItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
+ export declare const TableReviewCategoryLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ControlProps } from '@jsonforms/core';
3
+ export declare const GoAInputBaseTableReview: (props: ControlProps) => JSX.Element;
4
+ export declare const GoAInputBaseTableReviewControl: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
@@ -12,3 +12,4 @@ export * from './InputBooleanControl';
12
12
  export * from './InputBooleanRadioControl';
13
13
  export * from './InputEnumCheckboxes';
14
14
  export * from './InputBaseReviewControl';
15
+ export * from './InputBaseTableReviewControl';
@@ -2,3 +2,7 @@
2
2
  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;
3
3
  export declare const WarningIconDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  export declare const RequiredTextLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
5
+ export declare const PageReviewNameCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
6
+ export declare const PageReviewValueCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
7
+ export declare const PageReviewActionCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
8
+ export declare const CheckboxWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;