@abgov/jsonforms-components 2.36.0 → 2.36.1
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 +12 -10
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -8989,12 +8989,8 @@ const TaskList = ({
|
|
|
8989
8989
|
}
|
|
8990
8990
|
return sections;
|
|
8991
8991
|
}, [categories]);
|
|
8992
|
-
|
|
8993
|
-
const
|
|
8994
|
-
const completedGroups = useMemo(() => mergedSections.filter(section => {
|
|
8995
|
-
const visibleCats = section.categories.filter(shouldShow);
|
|
8996
|
-
return visibleCats.length > 0 && visibleCats.every(cat => cat.isCompleted);
|
|
8997
|
-
}).length, [mergedSections]);
|
|
8992
|
+
const totalPages = useMemo(() => mergedSections.reduce((count, section) => count + section.categories.filter(shouldShow).length, 0), [mergedSections]);
|
|
8993
|
+
const completedPages = useMemo(() => mergedSections.reduce((count, section) => count + section.categories.filter(cat => shouldShow(cat) && cat.isCompleted).length, 0), [mergedSections]);
|
|
8998
8994
|
let globalIndex = 0;
|
|
8999
8995
|
let sectionIndex = 1;
|
|
9000
8996
|
return jsx(PageBorder, {
|
|
@@ -9012,8 +9008,8 @@ const TaskList = ({
|
|
|
9012
9008
|
ml: "xl",
|
|
9013
9009
|
children: subtitle
|
|
9014
9010
|
}), jsx(ApplicationStatus, {
|
|
9015
|
-
completedGroups:
|
|
9016
|
-
totalGroups:
|
|
9011
|
+
completedGroups: completedPages,
|
|
9012
|
+
totalGroups: totalPages
|
|
9017
9013
|
}), jsx(GoATable, {
|
|
9018
9014
|
width: "100%",
|
|
9019
9015
|
children: jsxs("tbody", {
|
|
@@ -10743,7 +10739,7 @@ const ObjectArrayControl = props => {
|
|
|
10743
10739
|
visible: visible,
|
|
10744
10740
|
"data-testid": "jsonforms-object-list-wrapper",
|
|
10745
10741
|
children: [jsxs(ToolBarHeader, {
|
|
10746
|
-
children: [isInReview
|
|
10742
|
+
children: [isInReview ? listTitle ? isListWithDetail && additionalProps.required && (data === null || data === undefined) ? jsx("b", {
|
|
10747
10743
|
children: jsxs(ListWithDetailWarningIconDiv, {
|
|
10748
10744
|
children: [jsx(GoAIcon, {
|
|
10749
10745
|
type: "warning",
|
|
@@ -10764,9 +10760,15 @@ const ObjectArrayControl = props => {
|
|
|
10764
10760
|
},
|
|
10765
10761
|
children: maxItemsError
|
|
10766
10762
|
})]
|
|
10767
|
-
})
|
|
10763
|
+
}) : null : listTitle && jsxs(ObjectArrayTitle, {
|
|
10768
10764
|
children: [listTitle, " ", jsx("span", {
|
|
10769
10765
|
children: additionalProps.required && '(required)'
|
|
10766
|
+
}), maxItemsError && jsx("span", {
|
|
10767
|
+
style: {
|
|
10768
|
+
color: 'red',
|
|
10769
|
+
marginLeft: '1rem'
|
|
10770
|
+
},
|
|
10771
|
+
children: maxItemsError
|
|
10770
10772
|
})]
|
|
10771
10773
|
}), !isInReview && jsx(ObjectArrayToolBar, {
|
|
10772
10774
|
errors: errors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.36.
|
|
3
|
+
"version": "2.36.1",
|
|
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",
|