@abgov/jsonforms-components 2.79.5 → 2.80.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
CHANGED
|
@@ -6170,6 +6170,9 @@ const OPTION_DEFINITIONS = defineFields({
|
|
|
6170
6170
|
mainTitle: {
|
|
6171
6171
|
schema: 'Main form title'
|
|
6172
6172
|
},
|
|
6173
|
+
summaryPageTitle: {
|
|
6174
|
+
schema: 'Summary page title'
|
|
6175
|
+
},
|
|
6173
6176
|
enableEmail: {
|
|
6174
6177
|
schema: true
|
|
6175
6178
|
},
|
|
@@ -14576,10 +14579,12 @@ const RightAlignmentDiv = styled.div(_t14 || (_t14 = _$5`
|
|
|
14576
14579
|
`));
|
|
14577
14580
|
const FormStepperSummaryH3 = styled.h3(_t15 || (_t15 = _$5`
|
|
14578
14581
|
flex: 1;
|
|
14582
|
+
max-width: 100%;
|
|
14579
14583
|
margin-bottom: var(--goa-space-m);
|
|
14580
14584
|
font-size: var(--goa-font-size-7);
|
|
14581
14585
|
line-height: var(--goa-line-height-4);
|
|
14582
|
-
font-weight: var(--goa-font-weight-
|
|
14586
|
+
font-weight: var(--goa-font-weight-bold);
|
|
14587
|
+
overflow-wrap: anywhere;
|
|
14583
14588
|
`));
|
|
14584
14589
|
const PageRenderPadding = styled.div(_t16 || (_t16 = _$5`
|
|
14585
14590
|
margin-top: var(--goa-space-2xl);
|
|
@@ -17879,7 +17884,7 @@ const GoABaseTableReviewRenderers$1 = [
|
|
|
17879
17884
|
renderer: CalloutReviewControl
|
|
17880
17885
|
}];
|
|
17881
17886
|
const FormStepperReviewer = props => {
|
|
17882
|
-
var _uischema$options$com, _uischema$options;
|
|
17887
|
+
var _uischema$options$com, _uischema$options, _uischema$options2;
|
|
17883
17888
|
const {
|
|
17884
17889
|
uischema,
|
|
17885
17890
|
data,
|
|
@@ -17888,7 +17893,10 @@ const FormStepperReviewer = props => {
|
|
|
17888
17893
|
cells,
|
|
17889
17894
|
enabled
|
|
17890
17895
|
} = props;
|
|
17891
|
-
(_uischema$options$com = (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.componentProps) != null ? _uischema$options$com : {};
|
|
17896
|
+
const componentProps = (_uischema$options$com = (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.componentProps) != null ? _uischema$options$com : {};
|
|
17897
|
+
const {
|
|
17898
|
+
summaryPageTitle
|
|
17899
|
+
} = (_uischema$options2 = uischema.options) != null ? _uischema$options2 : {};
|
|
17892
17900
|
const categorization = uischema;
|
|
17893
17901
|
const categories = categorization.elements;
|
|
17894
17902
|
const rescopeMaps = ['#/properties/albertaAddress', '#/properties/canadianAddress', '#/properties/sin'];
|
|
@@ -17906,8 +17914,10 @@ const FormStepperReviewer = props => {
|
|
|
17906
17914
|
}
|
|
17907
17915
|
return true;
|
|
17908
17916
|
};
|
|
17909
|
-
return
|
|
17910
|
-
children:
|
|
17917
|
+
return jsxs(ReviewItem, {
|
|
17918
|
+
children: [summaryPageTitle && !componentProps.readOnly && jsx(FormStepperSummaryH3, {
|
|
17919
|
+
children: summaryPageTitle
|
|
17920
|
+
}), categories.map((category, categoryIndex) => {
|
|
17911
17921
|
// Preserve index stability
|
|
17912
17922
|
if (!isVisible(category, data, '', ajv, undefined)) {
|
|
17913
17923
|
return null;
|
|
@@ -17957,13 +17967,11 @@ const FormStepperReviewer = props => {
|
|
|
17957
17967
|
}, elementIndex);
|
|
17958
17968
|
})]
|
|
17959
17969
|
}, categoryIndex);
|
|
17960
|
-
})
|
|
17970
|
+
})]
|
|
17961
17971
|
});
|
|
17962
17972
|
};
|
|
17963
17973
|
const FormStepperReviewControl = withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepperReviewer)));
|
|
17964
17974
|
|
|
17965
|
-
const summaryLabel = 'Summary';
|
|
17966
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17967
17975
|
const FormStepper = props => {
|
|
17968
17976
|
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
17969
17977
|
const memoStepperProps = useMemo(() => Object.assign({}, props), [props]);
|
|
@@ -18070,13 +18078,11 @@ const FormStepperView = props => {
|
|
|
18070
18078
|
},
|
|
18071
18079
|
children: jsx(RenderStepElements, Object.assign({}, props))
|
|
18072
18080
|
}, `${category.label}`);
|
|
18073
|
-
}),
|
|
18081
|
+
}), jsx("div", {
|
|
18074
18082
|
"data-testid": "summary_step-content",
|
|
18075
|
-
children:
|
|
18076
|
-
children: summaryLabel
|
|
18077
|
-
}), jsx(FormStepperReviewer, Object.assign({}, props, {
|
|
18083
|
+
children: jsx(FormStepperReviewer, Object.assign({}, props, {
|
|
18078
18084
|
navigationFunc: goToPage
|
|
18079
|
-
}))
|
|
18085
|
+
}))
|
|
18080
18086
|
})]
|
|
18081
18087
|
}), jsxs(GoabGrid, {
|
|
18082
18088
|
minChildWidth: "100px",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.80.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/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-10-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-10-29T22:19:01.705Z",
|
|
4
|
+
"sourceCommit": "b812ba1920ec643624ffce4c38c6bd71bf5ef933",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 23,
|
|
7
7
|
"renderers": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GoabButtonType } from '@abgov/ui-components-common';
|
|
2
|
-
import { CategorizationStepperLayoutRendererProps } from './types';
|
|
3
|
-
export interface FormStepperOptionProps {
|
|
2
|
+
import { CategorizationStepperLayoutRendererProps, FormStepperOptions } from './types';
|
|
3
|
+
export interface FormStepperOptionProps extends FormStepperOptions {
|
|
4
4
|
nextButtonLabel?: string;
|
|
5
5
|
nextButtonType?: GoabButtonType;
|
|
6
6
|
previousButtonLabel?: string;
|