@abgov/jsonforms-components 2.28.1 → 2.28.2
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 +17 -11
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -8450,15 +8450,26 @@ const TaskList = ({
|
|
|
8450
8450
|
children: [sectionTitle && showInTaskListList[globalIndex] && jsx(SectionHeaderRow, {
|
|
8451
8451
|
title: sectionTitle,
|
|
8452
8452
|
index: sectionIndex++
|
|
8453
|
-
}, `section-${sectionTitle}`), group.map(category => {
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8453
|
+
}, `section-${sectionTitle}`), group.map((category, groupIndex) => {
|
|
8454
|
+
//eslint-disable-next-line
|
|
8455
|
+
const shouldShow = cat => {
|
|
8456
|
+
var _a, _b;
|
|
8457
|
+
return ((_b = (_a = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.showInTaskList) !== false;
|
|
8458
|
+
};
|
|
8459
|
+
let leftIndex = groupIndex;
|
|
8460
|
+
while (leftIndex > 0 && !shouldShow(group[leftIndex - 1])) {
|
|
8461
|
+
leftIndex--;
|
|
8462
|
+
}
|
|
8463
|
+
let rightIndex = groupIndex;
|
|
8464
|
+
while (rightIndex < group.length - 1 && !shouldShow(group[rightIndex + 1])) {
|
|
8465
|
+
rightIndex++;
|
|
8466
|
+
}
|
|
8467
|
+
const currentLocalGroup = group.slice(leftIndex, rightIndex + 1);
|
|
8468
|
+
const showGroupTaskListList = categories.map(cat => shouldShow(cat));
|
|
8458
8469
|
const showCurrent = showInTaskListList[globalIndex];
|
|
8459
8470
|
const index = globalIndex++;
|
|
8460
8471
|
const modifyCategory = JSON.parse(JSON.stringify(category));
|
|
8461
|
-
modifyCategory.isCompleted =
|
|
8472
|
+
modifyCategory.isCompleted = currentLocalGroup.length === currentLocalGroup.filter(category => category.isCompleted).length;
|
|
8462
8473
|
let currentCategory = category;
|
|
8463
8474
|
if (showGroupTaskListList.length > showGroupTaskListList.filter(item => item === true).length) {
|
|
8464
8475
|
currentCategory = modifyCategory;
|
|
@@ -8592,11 +8603,6 @@ const BackButtonWrapper = styled.span(_t$5 || (_t$5 = _$5`
|
|
|
8592
8603
|
|
|
8593
8604
|
.back-link {
|
|
8594
8605
|
margin-top: var(--goa-space-m);
|
|
8595
|
-
color: #0070c4;
|
|
8596
|
-
text-decoration: underline;
|
|
8597
|
-
text-underline-offset: 2px;
|
|
8598
|
-
text-decoration-color: currentColor;
|
|
8599
|
-
display: inline-block;
|
|
8600
8606
|
}
|
|
8601
8607
|
display: inline-block;
|
|
8602
8608
|
color: #0070c4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.2",
|
|
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",
|