@civicactions/cmsds-open-data-components 4.1.2-alpha.4 → 4.1.2-alpha.5
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/dist/main.js +20 -12
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3232,21 +3232,24 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
|
|
|
3232
3232
|
]
|
|
3233
3233
|
})
|
|
3234
3234
|
}),
|
|
3235
|
+
loading && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
|
|
3236
|
+
"aria-valuetext": "Dataset loading",
|
|
3237
|
+
role: "status",
|
|
3238
|
+
className: "ds-u-margin--3"
|
|
3239
|
+
}),
|
|
3240
|
+
!loading && table.getRowModel().rows.length === 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
|
|
3241
|
+
variation: "warn",
|
|
3242
|
+
children: "No results found for the current filters"
|
|
3243
|
+
}),
|
|
3235
3244
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
3236
3245
|
"aria-live": "polite",
|
|
3237
|
-
className:
|
|
3238
|
-
children: loading
|
|
3239
|
-
"aria-valuetext": "Dataset loading",
|
|
3240
|
-
className: "ds-u-margin--3"
|
|
3241
|
-
})
|
|
3246
|
+
className: "ds-u-visibility--screen-reader",
|
|
3247
|
+
children: loading ? "Dataset loading" : ""
|
|
3242
3248
|
}),
|
|
3243
3249
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
3244
3250
|
"aria-live": "assertive",
|
|
3245
|
-
className:
|
|
3246
|
-
children: !loading && table.getRowModel().rows.length === 0
|
|
3247
|
-
variation: "warn",
|
|
3248
|
-
children: "No results found for the current filters"
|
|
3249
|
-
})
|
|
3251
|
+
className: "ds-u-visibility--screen-reader",
|
|
3252
|
+
children: !loading && table.getRowModel().rows.length === 0 ? "No results found for the current filters" : ""
|
|
3250
3253
|
})
|
|
3251
3254
|
]
|
|
3252
3255
|
});
|
|
@@ -7548,15 +7551,20 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
|
|
|
7548
7551
|
}
|
|
7549
7552
|
}
|
|
7550
7553
|
};
|
|
7554
|
+
(0, $hgUW1$useEffect)(()=>{
|
|
7555
|
+
if (!mobileMax && mobileMenuOpen) setMobileMenuOpen(false);
|
|
7556
|
+
}, [
|
|
7557
|
+
mobileMax
|
|
7558
|
+
]);
|
|
7551
7559
|
(0, $hgUW1$useEffect)(()=>{
|
|
7552
7560
|
document.addEventListener('keyup', handleMenuClose);
|
|
7553
7561
|
document.addEventListener('mousedown', handleClick);
|
|
7554
7562
|
if (mobileMenuOpen) handleFocusIn();
|
|
7555
7563
|
else closeMobileMenu();
|
|
7556
|
-
if (menu.current) menu.current.addEventListener('keydown',
|
|
7564
|
+
if (menu.current) menu.current.addEventListener('keydown', trapFocus);
|
|
7557
7565
|
return ()=>{
|
|
7558
7566
|
document.removeEventListener('keyup', handleMenuClose);
|
|
7559
|
-
document.
|
|
7567
|
+
document.removeEventListener('mousedown', handleClick);
|
|
7560
7568
|
if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
|
|
7561
7569
|
};
|
|
7562
7570
|
}, [
|