@civicactions/cmsds-open-data-components 4.1.7-alpha.2 → 4.1.7-alpha.4
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 +4 -4
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2621,7 +2621,7 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
|
|
|
2621
2621
|
// keep state in sync
|
|
2622
2622
|
(0, $hgUW1$useEffect)(()=>{
|
|
2623
2623
|
if (columnOrder?.length) setCards(columnOrder.map((id)=>columns.find((col)=>col.id === id)) // Get list of cards in order
|
|
2624
|
-
.filter(Boolean) // Filter out
|
|
2624
|
+
.filter(Boolean) // Filter out any possible undefined/non-matches
|
|
2625
2625
|
.map((column)=>({
|
|
2626
2626
|
id: column.id,
|
|
2627
2627
|
visible: column.getIsVisible()
|
|
@@ -2762,7 +2762,7 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
|
|
|
2762
2762
|
// reset to default column order and set all cards to visible
|
|
2763
2763
|
// do not save this to the table state until the "Save" button is clicked
|
|
2764
2764
|
setCards(defaultColumnOrder.map((id)=>cards.find((c)=>c.id === id)) // Get list of cards in order
|
|
2765
|
-
.filter(Boolean) // Filter out
|
|
2765
|
+
.filter(Boolean) // Filter out any possible undefined/non-matches
|
|
2766
2766
|
.map((card)=>({
|
|
2767
2767
|
...card,
|
|
2768
2768
|
visible: true
|
|
@@ -3458,7 +3458,7 @@ function $a35cf16d1488f54e$export$1147582dfae658c6(columns, schema) {
|
|
|
3458
3458
|
accessor: column
|
|
3459
3459
|
}));
|
|
3460
3460
|
}
|
|
3461
|
-
const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopyLinkButton: showCopyLinkButton = true, showDataTableToolbar: showDataTableToolbar = true, showDownloadFilteredDataButton: showDownloadFilteredDataButton = true, showDownloadFullDataButton: showDownloadFullDataButton = true, showStoredQueryDownloadButton: showStoredQueryDownloadButton = false, showTableResults: showTableResults = true, showFilterDatasetButton: showFilterDatasetButton = true, showManageColumnsButton: showManageColumnsButton = true, showDisplaySettingsButton: showDisplaySettingsButton = true, showFullScreenButton: showFullScreenButton = true, showInfoShareContainer: showInfoShareContainer = true })=>{
|
|
3461
|
+
const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopyLinkButton: showCopyLinkButton = true, showDataTableToolbar: showDataTableToolbar = true, showDownloadFilteredDataButton: showDownloadFilteredDataButton = true, showDownloadFullDataButton: showDownloadFullDataButton = true, showStoredQueryDownloadButton: showStoredQueryDownloadButton = false, showTableResults: showTableResults = true, showFilterDatasetButton: showFilterDatasetButton = true, showManageColumnsButton: showManageColumnsButton = true, showDisplaySettingsButton: showDisplaySettingsButton = true, showFullScreenButton: showFullScreenButton = true, showInfoShareContainer: showInfoShareContainer = true, errorHomeButtonHref: errorHomeButtonHref = '/' })=>{
|
|
3462
3462
|
const { id: id, distribution: distribution, resource: resource, rootUrl: rootUrl, customColumns: customColumns = [], dataDictionaryBanner: dataDictionaryBanner } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
|
|
3463
3463
|
const { page: page, setPage: setPage, tableDensity: tableDensity } = (0, $hgUW1$useContext)((0, $ee0d4d4f34048447$export$f814ea079e65d8fe));
|
|
3464
3464
|
const defaultPageSize = 10;
|
|
@@ -3547,7 +3547,7 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
|
|
|
3547
3547
|
children: useDatastoreErrorMessages[resourceErrorStatus].message
|
|
3548
3548
|
}),
|
|
3549
3549
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
|
|
3550
|
-
href:
|
|
3550
|
+
href: errorHomeButtonHref,
|
|
3551
3551
|
variation: "solid",
|
|
3552
3552
|
className: "",
|
|
3553
3553
|
children: "Go to home"
|