@abgov/jsonforms-components 2.7.0 → 2.9.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
|
@@ -8018,11 +8018,11 @@ const SectionHeaderRow = ({
|
|
|
8018
8018
|
var PageStatus;
|
|
8019
8019
|
(function (PageStatus) {
|
|
8020
8020
|
PageStatus["Complete"] = "Completed";
|
|
8021
|
-
PageStatus["
|
|
8021
|
+
PageStatus["Inprogress"] = "In progress";
|
|
8022
8022
|
PageStatus["NotStarted"] = "Not started";
|
|
8023
8023
|
})(PageStatus || (PageStatus = {}));
|
|
8024
8024
|
const getCategoryStatus = category => {
|
|
8025
|
-
return category.isVisited ? category.isCompleted && category.isValid ? PageStatus.Complete : PageStatus.
|
|
8025
|
+
return category.isVisited ? category.isCompleted && category.isValid ? PageStatus.Complete : PageStatus.Inprogress : PageStatus.NotStarted;
|
|
8026
8026
|
};
|
|
8027
8027
|
const getCategoryStatusBadge = category => {
|
|
8028
8028
|
const status = getCategoryStatus(category);
|
|
@@ -10073,6 +10073,7 @@ const ObjectArrayList = ({
|
|
|
10073
10073
|
currentIndex,
|
|
10074
10074
|
setCurrentIndex
|
|
10075
10075
|
}) => {
|
|
10076
|
+
var _a, _b;
|
|
10076
10077
|
const isEmptyList = data === 0;
|
|
10077
10078
|
const rightRef = useRef(null);
|
|
10078
10079
|
const current = rightRef.current;
|
|
@@ -10093,6 +10094,9 @@ const ObjectArrayList = ({
|
|
|
10093
10094
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
10094
10095
|
}, [current, rightHeight, rightRef]);
|
|
10095
10096
|
if (isEmptyList) {
|
|
10097
|
+
if (((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.noDataMessage) !== undefined) {
|
|
10098
|
+
translations.noDataMessage = (_b = uischema.options) === null || _b === void 0 ? void 0 : _b.noDataMessage;
|
|
10099
|
+
}
|
|
10096
10100
|
return jsx(EmptyList, {
|
|
10097
10101
|
numColumns: getValidColumnProps(schema).length + 1,
|
|
10098
10102
|
translations: translations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CategoryState } from './context';
|
|
2
2
|
export declare enum PageStatus {
|
|
3
3
|
Complete = "Completed",
|
|
4
|
-
|
|
4
|
+
Inprogress = "In progress",
|
|
5
5
|
NotStarted = "Not started"
|
|
6
6
|
}
|
|
7
7
|
export declare const getCategoryStatus: (category: CategoryState) => string;
|