@abgov/jsonforms-components 2.7.0 → 2.8.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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.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;
|