@civicactions/cmsds-open-data-components 3.6.3-oe → 3.6.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/README.md +17 -1
- package/dist/main.css +16 -4
- package/dist/main.css.map +1 -1
- package/dist/main.js +245 -128
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +4 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/main.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import {
|
|
2
|
+
import {jsx as $hgUW1$jsx, jsxs as $hgUW1$jsxs, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
|
|
3
|
+
import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Choice as $hgUW1$Choice, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, Table as $hgUW1$Table, TableBody as $hgUW1$TableBody, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, TableHead as $hgUW1$TableHead, Badge as $hgUW1$Badge} from "@cmsgov/design-system";
|
|
3
4
|
import $hgUW1$react, {createContext as $hgUW1$createContext, useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect, useMemo as $hgUW1$useMemo, useContext as $hgUW1$useContext, useCallback as $hgUW1$useCallback} from "react";
|
|
4
5
|
import {NavLink as $hgUW1$NavLink, useNavigate as $hgUW1$useNavigate, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams, Link as $hgUW1$Link} from "react-router-dom";
|
|
5
|
-
import {Button as $hgUW1$Button, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Choice as $hgUW1$Choice, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, Table as $hgUW1$Table, TableBody as $hgUW1$TableBody, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, TableHead as $hgUW1$TableHead, Badge as $hgUW1$Badge} from "@cmsgov/design-system";
|
|
6
6
|
import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
|
|
7
7
|
import $hgUW1$qs from "qs";
|
|
8
8
|
import $hgUW1$swaggeruireact from "swagger-ui-react";
|
|
9
|
+
import {SpanOpenAPIVersion as $hgUW1$SpanOpenAPIVersion, SpanVersionStamp as $hgUW1$SpanVersionStamp} from "@civicactions/swagger-ui-layout";
|
|
9
10
|
import "swagger-ui-react/swagger-ui.css";
|
|
10
11
|
import $hgUW1$axios from "axios";
|
|
11
12
|
import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryClientProvider as $hgUW1$QueryClientProvider} from "@tanstack/react-query";
|
|
@@ -23,6 +24,35 @@ import "react-datepicker/dist/react-datepicker.css";
|
|
|
23
24
|
// Components
|
|
24
25
|
|
|
25
26
|
|
|
27
|
+
function $e49d4387bed21287$export$2e2bcd8739ae039() {
|
|
28
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
29
|
+
className: "ds-u-padding-top--3",
|
|
30
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Accordion), {
|
|
31
|
+
bordered: true,
|
|
32
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$AccordionItem), {
|
|
33
|
+
heading: "Row Limit Warning",
|
|
34
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
|
|
35
|
+
children: [
|
|
36
|
+
'If you receive a 500 response from your API query it is most likely due to memory exhaustion. You may see a "Temporarily Unavailable" message. Make sure you include a limit appropriate to the speed of your connection, HTTP calls will time out if set too high and payloads for high limits can be very large. Complex queries should include a smaller limit value. Use the ',
|
|
37
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
|
|
38
|
+
children: "limit"
|
|
39
|
+
}),
|
|
40
|
+
" and ",
|
|
41
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
|
|
42
|
+
children: "offset"
|
|
43
|
+
}),
|
|
44
|
+
" ",
|
|
45
|
+
"parameters to iterate through result sets that are larger than the row limit when running queries against the datastore API."
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
}, "1")
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
26
56
|
|
|
27
57
|
|
|
28
58
|
|
|
@@ -679,22 +709,33 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
|
|
|
679
709
|
|
|
680
710
|
|
|
681
711
|
|
|
682
|
-
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, additionalParams: additionalParams, rootUrl: rootUrl, showRowLimitNotice: showRowLimitNotice = false })=>{
|
|
683
715
|
const hasACA = additionalParams && additionalParams.ACA ? true : false;
|
|
684
716
|
let params = {
|
|
685
717
|
authentication: hideAuth ? false : undefined,
|
|
686
718
|
ACA: hasACA ? additionalParams.ACA : undefined,
|
|
687
719
|
redirect: hasACA ? false : undefined
|
|
688
720
|
};
|
|
689
|
-
return /*#__PURE__*/ (0, $hgUW1$
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
721
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
722
|
+
children: [
|
|
723
|
+
showRowLimitNotice && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e49d4387bed21287$export$2e2bcd8739ae039), {}),
|
|
724
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("section", {
|
|
725
|
+
className: "ds-l-container",
|
|
726
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
|
|
727
|
+
url: `${rootUrl}${(0, $hgUW1$qs).stringify(params, {
|
|
728
|
+
addQueryPrefix: true
|
|
729
|
+
})}`,
|
|
730
|
+
docExpansion: "list",
|
|
731
|
+
defaultModelsExpandDepth: -1,
|
|
732
|
+
plugins: [
|
|
733
|
+
(0, $hgUW1$SpanOpenAPIVersion),
|
|
734
|
+
(0, $hgUW1$SpanVersionStamp)
|
|
735
|
+
]
|
|
736
|
+
})
|
|
737
|
+
})
|
|
738
|
+
]
|
|
698
739
|
});
|
|
699
740
|
};
|
|
700
741
|
var $c96c4b9ef7203c1f$export$2e2bcd8739ae039 = $c96c4b9ef7203c1f$var$APIPage;
|
|
@@ -785,49 +826,6 @@ var $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 = $61ff88fb3f6ee2c8$var$withQueryPr
|
|
|
785
826
|
|
|
786
827
|
|
|
787
828
|
|
|
788
|
-
const $b61856b23f5f58a2$var$LargeFileDialog = (props)=>{
|
|
789
|
-
const [modalOpen, setModalOpen] = (0, $hgUW1$useState)(false);
|
|
790
|
-
const { downloadUrl: downloadUrl } = props;
|
|
791
|
-
return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
792
|
-
children: [
|
|
793
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
|
|
794
|
-
variation: "ghost",
|
|
795
|
-
onClick: ()=>setModalOpen(true),
|
|
796
|
-
children: "Download"
|
|
797
|
-
}),
|
|
798
|
-
modalOpen && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
|
|
799
|
-
onExit: ()=>setModalOpen(false),
|
|
800
|
-
heading: "Notice: Large File Size",
|
|
801
|
-
actions: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
802
|
-
children: [
|
|
803
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
|
|
804
|
-
href: downloadUrl,
|
|
805
|
-
className: "ds-u-margin-right--2 ",
|
|
806
|
-
variation: "solid",
|
|
807
|
-
children: "Yes, download"
|
|
808
|
-
}),
|
|
809
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
|
|
810
|
-
variation: "ghost",
|
|
811
|
-
onClick: ()=>setModalOpen(false),
|
|
812
|
-
children: "No, cancel"
|
|
813
|
-
})
|
|
814
|
-
]
|
|
815
|
-
}),
|
|
816
|
-
children: [
|
|
817
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
818
|
-
children: "This is a very large file and, depending on your network characteristics and software, may take a long time to download or fail to download. Additionally, the number of rows in the file may larger than the maximum rows your version of Microsoft Excel supports. If you can't download the file, we recommend engaging your IT support staff. If you are able to download the file but are unable to open it in MS Excel or get a message that the data has been truncated, we recommend trying alternative programs such as MS Access, Universal Viewer, Editpad or any other software your organization has available for large datasets."
|
|
819
|
-
}),
|
|
820
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
821
|
-
children: "Would you like to proceed?"
|
|
822
|
-
})
|
|
823
|
-
]
|
|
824
|
-
})
|
|
825
|
-
]
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDialog;
|
|
829
|
-
|
|
830
|
-
|
|
831
829
|
|
|
832
830
|
|
|
833
831
|
const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
|
|
@@ -1013,6 +1011,56 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
|
|
|
1013
1011
|
var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemIcon;
|
|
1014
1012
|
|
|
1015
1013
|
|
|
1014
|
+
const $b61856b23f5f58a2$var$LargeFileDialog = (props)=>{
|
|
1015
|
+
const [modalOpen, setModalOpen] = (0, $hgUW1$useState)(false);
|
|
1016
|
+
const { downloadUrl: downloadUrl } = props;
|
|
1017
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
1018
|
+
children: [
|
|
1019
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
|
|
1020
|
+
variation: "solid",
|
|
1021
|
+
size: "small",
|
|
1022
|
+
onClick: ()=>setModalOpen(true),
|
|
1023
|
+
children: [
|
|
1024
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1025
|
+
id: "download"
|
|
1026
|
+
}),
|
|
1027
|
+
"Download"
|
|
1028
|
+
]
|
|
1029
|
+
}),
|
|
1030
|
+
modalOpen && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
|
|
1031
|
+
onExit: ()=>setModalOpen(false),
|
|
1032
|
+
heading: "Notice: Large File Size",
|
|
1033
|
+
actions: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
1034
|
+
children: [
|
|
1035
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
|
|
1036
|
+
href: downloadUrl,
|
|
1037
|
+
className: "ds-u-margin-right--2 ",
|
|
1038
|
+
variation: "solid",
|
|
1039
|
+
children: "Yes, download"
|
|
1040
|
+
}),
|
|
1041
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
|
|
1042
|
+
variation: "ghost",
|
|
1043
|
+
onClick: ()=>setModalOpen(false),
|
|
1044
|
+
children: "No, cancel"
|
|
1045
|
+
})
|
|
1046
|
+
]
|
|
1047
|
+
}),
|
|
1048
|
+
children: [
|
|
1049
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
1050
|
+
children: "This is a very large file and, depending on your network characteristics and software, may take a long time to download or fail to download. Additionally, the number of rows in the file may larger than the maximum rows your version of Microsoft Excel supports. If you can't download the file, we recommend engaging your IT support staff. If you are able to download the file but are unable to open it in MS Excel or get a message that the data has been truncated, we recommend trying alternative programs such as MS Access, Universal Viewer, Editpad or any other software your organization has available for large datasets."
|
|
1051
|
+
}),
|
|
1052
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
1053
|
+
children: "Would you like to proceed?"
|
|
1054
|
+
})
|
|
1055
|
+
]
|
|
1056
|
+
})
|
|
1057
|
+
]
|
|
1058
|
+
});
|
|
1059
|
+
};
|
|
1060
|
+
var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDialog;
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1016
1064
|
|
|
1017
1065
|
|
|
1018
1066
|
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
|
|
@@ -1049,11 +1097,12 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
|
|
|
1049
1097
|
}
|
|
1050
1098
|
|
|
1051
1099
|
|
|
1100
|
+
|
|
1052
1101
|
const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
1053
1102
|
const desktop = (0, $hgUW1$useMediaQuery)({
|
|
1054
1103
|
minWidth: 1024
|
|
1055
1104
|
});
|
|
1056
|
-
const { title: title, modified: modified, description: description,
|
|
1105
|
+
const { title: title, modified: modified, description: description, identifier: identifier, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
|
|
1057
1106
|
let linkContainerClasses = "ds-l-col--12 ds-u-margin-bottom--2";
|
|
1058
1107
|
let linkClasses = "ds-c-button ds-u-display--block ds-u-text-align--left";
|
|
1059
1108
|
if (desktop) {
|
|
@@ -1095,20 +1144,41 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1095
1144
|
children: (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description)
|
|
1096
1145
|
})
|
|
1097
1146
|
}),
|
|
1147
|
+
downloadUrl ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1148
|
+
className: `${linkContainerClasses} ds-u-margin-top--3 ds-u-padding-left--0`,
|
|
1149
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1150
|
+
className: linkClasses,
|
|
1151
|
+
children: largeFile ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1152
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b61856b23f5f58a2$export$2e2bcd8739ae039), {
|
|
1153
|
+
downloadUrl: downloadUrl
|
|
1154
|
+
})
|
|
1155
|
+
}) : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
|
|
1156
|
+
href: downloadUrl,
|
|
1157
|
+
variation: "solid",
|
|
1158
|
+
size: "small",
|
|
1159
|
+
children: [
|
|
1160
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1161
|
+
id: "download"
|
|
1162
|
+
}),
|
|
1163
|
+
"Download"
|
|
1164
|
+
]
|
|
1165
|
+
})
|
|
1166
|
+
})
|
|
1167
|
+
}) : "",
|
|
1098
1168
|
/*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
|
|
1099
|
-
className: "ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-margin-top--
|
|
1169
|
+
className: "ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-margin-top--2",
|
|
1100
1170
|
children: [
|
|
1101
1171
|
/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1102
1172
|
className: linkContainerClasses,
|
|
1103
1173
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1104
1174
|
className: linkClasses,
|
|
1105
1175
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1106
|
-
to: `/dataset/${identifier}#
|
|
1176
|
+
to: `/dataset/${identifier}#data-table`,
|
|
1107
1177
|
children: [
|
|
1108
1178
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1109
|
-
id: "
|
|
1179
|
+
id: "data-table"
|
|
1110
1180
|
}),
|
|
1111
|
-
"
|
|
1181
|
+
"Data Table"
|
|
1112
1182
|
]
|
|
1113
1183
|
})
|
|
1114
1184
|
})
|
|
@@ -1118,55 +1188,46 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1118
1188
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1119
1189
|
className: linkClasses,
|
|
1120
1190
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1121
|
-
to: `/dataset/${identifier}#
|
|
1191
|
+
to: `/dataset/${identifier}#overview`,
|
|
1122
1192
|
children: [
|
|
1123
1193
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1124
|
-
id: "
|
|
1194
|
+
id: "overview"
|
|
1125
1195
|
}),
|
|
1126
|
-
"
|
|
1196
|
+
"Overview"
|
|
1127
1197
|
]
|
|
1128
1198
|
})
|
|
1129
1199
|
})
|
|
1130
1200
|
}),
|
|
1131
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1201
|
+
dataDictionaryLinks && /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1132
1202
|
className: linkContainerClasses,
|
|
1133
1203
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1134
1204
|
className: linkClasses,
|
|
1135
1205
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1136
|
-
to: `/dataset/${identifier}#
|
|
1206
|
+
to: `/dataset/${identifier}#data-dictionary`,
|
|
1137
1207
|
children: [
|
|
1138
1208
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1139
|
-
id: "
|
|
1209
|
+
id: "data-dictionary"
|
|
1140
1210
|
}),
|
|
1141
|
-
"
|
|
1211
|
+
"Data Dictionary"
|
|
1142
1212
|
]
|
|
1143
1213
|
})
|
|
1144
1214
|
})
|
|
1145
1215
|
}),
|
|
1146
|
-
|
|
1216
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1147
1217
|
className: linkContainerClasses,
|
|
1148
1218
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1149
1219
|
className: linkClasses,
|
|
1150
|
-
children:
|
|
1151
|
-
|
|
1152
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1153
|
-
id: "download"
|
|
1154
|
-
}),
|
|
1155
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b61856b23f5f58a2$export$2e2bcd8739ae039), {
|
|
1156
|
-
downloadUrl: downloadUrl
|
|
1157
|
-
})
|
|
1158
|
-
]
|
|
1159
|
-
}) : /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
|
|
1160
|
-
href: downloadUrl,
|
|
1220
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1221
|
+
to: `/dataset/${identifier}#api`,
|
|
1161
1222
|
children: [
|
|
1162
1223
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1163
|
-
id: "
|
|
1224
|
+
id: "api"
|
|
1164
1225
|
}),
|
|
1165
|
-
"
|
|
1226
|
+
"API"
|
|
1166
1227
|
]
|
|
1167
1228
|
})
|
|
1168
1229
|
})
|
|
1169
|
-
})
|
|
1230
|
+
})
|
|
1170
1231
|
]
|
|
1171
1232
|
})
|
|
1172
1233
|
]
|
|
@@ -1192,8 +1253,11 @@ const $e011250e8a3bd5e5$var$SearchFacets = (props)=>{
|
|
|
1192
1253
|
contentClassName: "ds-u-padding-left--1 ds-u-padding-right--0",
|
|
1193
1254
|
heading: title,
|
|
1194
1255
|
defaultOpen: true,
|
|
1195
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsx)("
|
|
1196
|
-
|
|
1256
|
+
children: !filteredFacets.length ? /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
1257
|
+
className: "ds-text-heading--md",
|
|
1258
|
+
children: "No matching facets found."
|
|
1259
|
+
}) : /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
|
|
1260
|
+
children: filteredFacets.map((f)=>{
|
|
1197
1261
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1198
1262
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Choice), {
|
|
1199
1263
|
className: "ds-u-margin-y--1",
|
|
@@ -1205,9 +1269,6 @@ const $e011250e8a3bd5e5$var$SearchFacets = (props)=>{
|
|
|
1205
1269
|
onClick: ()=>onClickFunction(f.type, f.name)
|
|
1206
1270
|
})
|
|
1207
1271
|
}, f.name);
|
|
1208
|
-
}) : /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
1209
|
-
className: "ds-text-heading--md",
|
|
1210
|
-
children: "No matching facets found."
|
|
1211
1272
|
})
|
|
1212
1273
|
})
|
|
1213
1274
|
})
|
|
@@ -1366,10 +1427,10 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
|
|
|
1366
1427
|
|
|
1367
1428
|
|
|
1368
1429
|
const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
1369
|
-
const { rootUrl: rootUrl,
|
|
1430
|
+
const { rootUrl: rootUrl, additionalParams: additionalParams, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
|
|
1370
1431
|
defaultSort: "modified",
|
|
1371
1432
|
defaultOrder: "desc"
|
|
1372
|
-
}, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton } = props;
|
|
1433
|
+
}, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
|
|
1373
1434
|
const sortOptions = [
|
|
1374
1435
|
{
|
|
1375
1436
|
label: "Newest",
|
|
@@ -1404,6 +1465,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1404
1465
|
endingNumber: 0
|
|
1405
1466
|
});
|
|
1406
1467
|
const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
|
|
1468
|
+
const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
|
|
1407
1469
|
let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
|
|
1408
1470
|
const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
|
|
1409
1471
|
const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
|
|
@@ -1474,7 +1536,10 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1474
1536
|
startingNumber: Number(totalItems) >= startingNumber ? startingNumber : 0,
|
|
1475
1537
|
endingNumber: Number(totalItems) < endingNumber ? Number(totalItems) : endingNumber
|
|
1476
1538
|
});
|
|
1477
|
-
|
|
1539
|
+
setTimeout(()=>{
|
|
1540
|
+
setAnnouncementText(`Showing ${startingNumber} to ${endingNumber} of ${totalItems} datasets`);
|
|
1541
|
+
}, 100);
|
|
1542
|
+
if (totalItems <= 0 && currentResultNumbers !== null) setNoResults(true);
|
|
1478
1543
|
else setNoResults(false);
|
|
1479
1544
|
}, [
|
|
1480
1545
|
totalItems,
|
|
@@ -1635,24 +1700,34 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1635
1700
|
/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1636
1701
|
className: "ds-u-display--flex ds-u-justify-content--between ds-u-align-items--end ds-u-flex-wrap--reverse ds-u-sm-flex-wrap--wrap",
|
|
1637
1702
|
children: [
|
|
1638
|
-
enablePagination && /*#__PURE__*/ (0, $hgUW1$
|
|
1703
|
+
enablePagination && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1639
1704
|
className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--8",
|
|
1640
|
-
children:
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1705
|
+
children: [
|
|
1706
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
1707
|
+
className: "ds-u-margin-y--0",
|
|
1708
|
+
"aria-hidden": "true",
|
|
1709
|
+
children: currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
1710
|
+
children: [
|
|
1711
|
+
"Showing ",
|
|
1712
|
+
currentResultNumbers.startingNumber,
|
|
1713
|
+
" -",
|
|
1714
|
+
" ",
|
|
1715
|
+
currentResultNumbers.endingNumber,
|
|
1716
|
+
" of ",
|
|
1717
|
+
data.data.total,
|
|
1718
|
+
" datasets"
|
|
1719
|
+
]
|
|
1720
|
+
})
|
|
1721
|
+
}),
|
|
1722
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
1723
|
+
className: "ds-u-visibility--screen-reader",
|
|
1724
|
+
role: "status",
|
|
1725
|
+
"aria-live": "assertive",
|
|
1726
|
+
"aria-atomic": "true",
|
|
1727
|
+
"data-testid": "currentResults",
|
|
1728
|
+
children: announcementText
|
|
1729
|
+
})
|
|
1730
|
+
]
|
|
1656
1731
|
}),
|
|
1657
1732
|
enableSort && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1658
1733
|
className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--4 ds-u-sm-padding-right--0",
|
|
@@ -1690,11 +1765,11 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1690
1765
|
title: item.title,
|
|
1691
1766
|
modified: item.modified,
|
|
1692
1767
|
description: item.description,
|
|
1693
|
-
theme: item.theme,
|
|
1694
1768
|
identifier: item.identifier,
|
|
1695
1769
|
downloadUrl: showDownloadIcon ? getDownloadUrl(item) : null,
|
|
1696
1770
|
largeFile: showLargeFile,
|
|
1697
|
-
paginationEnabled: enablePagination
|
|
1771
|
+
paginationEnabled: enablePagination,
|
|
1772
|
+
dataDictionaryLinks: dataDictionaryLinks
|
|
1698
1773
|
}, item.identifier);
|
|
1699
1774
|
}) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
|
|
1700
1775
|
variation: "error",
|
|
@@ -1799,6 +1874,9 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
|
|
|
1799
1874
|
const [limit, setLimit] = (0, $hgUW1$useState)(options.limit ? options.limit : 20);
|
|
1800
1875
|
const [count, setCount] = (0, $hgUW1$useState)(null);
|
|
1801
1876
|
const [columns, setColumns] = (0, $hgUW1$useState)([]);
|
|
1877
|
+
// unfiltered row / column count for overview tab
|
|
1878
|
+
const [totalRows, setTotalRows] = (0, $hgUW1$useState)(0);
|
|
1879
|
+
const [totalColumns, setTotalColumns] = (0, $hgUW1$useState)(0);
|
|
1802
1880
|
const [offset, setOffset] = (0, $hgUW1$useState)(options.offset ? options.offset : 0);
|
|
1803
1881
|
const [conditions, setConditions] = (0, $hgUW1$useState)(options.conditions ? options.conditions : undefined);
|
|
1804
1882
|
const requireConditions = options.requireConditions;
|
|
@@ -1833,6 +1911,19 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
|
|
|
1833
1911
|
},
|
|
1834
1912
|
enabled: enabled
|
|
1835
1913
|
});
|
|
1914
|
+
const { data: unfiltered } = (0, $hgUW1$useQuery)({
|
|
1915
|
+
queryKey: [
|
|
1916
|
+
"datastore" + id + "-unfilteredRowsAndCols"
|
|
1917
|
+
],
|
|
1918
|
+
queryFn: ()=>{
|
|
1919
|
+
const unfilteredParams = {
|
|
1920
|
+
results: false,
|
|
1921
|
+
count: true,
|
|
1922
|
+
schema: true
|
|
1923
|
+
};
|
|
1924
|
+
return fetch(`${rootUrl}/datastore/query/${id}?${(0, $hgUW1$qs).stringify(unfilteredParams)}`).then((res)=>res.json());
|
|
1925
|
+
}
|
|
1926
|
+
});
|
|
1836
1927
|
(0, $hgUW1$useEffect)(()=>{
|
|
1837
1928
|
if (data) {
|
|
1838
1929
|
const propertyKeys = data.schema && data.schema[id] && data.schema[id].fields ? Object.keys(data.schema[id].fields) : [];
|
|
@@ -1843,11 +1934,21 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
|
|
|
1843
1934
|
}, [
|
|
1844
1935
|
data
|
|
1845
1936
|
]);
|
|
1937
|
+
(0, $hgUW1$useEffect)(()=>{
|
|
1938
|
+
if (unfiltered) {
|
|
1939
|
+
if (unfiltered.count) setTotalRows(unfiltered.count);
|
|
1940
|
+
if (unfiltered.schema && unfiltered.schema[id] && unfiltered.schema[id].fields) setTotalColumns(Object.keys(unfiltered.schema[id].fields).length);
|
|
1941
|
+
}
|
|
1942
|
+
}, [
|
|
1943
|
+
unfiltered
|
|
1944
|
+
]);
|
|
1846
1945
|
return {
|
|
1847
1946
|
loading: enabled ? isPending : false,
|
|
1848
1947
|
values: values,
|
|
1849
1948
|
count: count,
|
|
1850
1949
|
columns: columns,
|
|
1950
|
+
totalRows: totalRows,
|
|
1951
|
+
totalColumns: totalColumns,
|
|
1851
1952
|
limit: limit,
|
|
1852
1953
|
offset: offset,
|
|
1853
1954
|
schema: schema,
|
|
@@ -2172,7 +2273,7 @@ var $5644ebd2c3dbfd7b$export$2e2bcd8739ae039 = $5644ebd2c3dbfd7b$var$DatasetAddi
|
|
|
2172
2273
|
|
|
2173
2274
|
|
|
2174
2275
|
const $0958733ee130fc44$var$ResourceInformation = ({ resource: resource })=>{
|
|
2175
|
-
const {
|
|
2276
|
+
const { totalRows: totalRows, totalColumns: totalColumns } = resource;
|
|
2176
2277
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
2177
2278
|
className: "dc-c-resource-info-table ds-l-col--12 ds-u-padding-left--0 ds-u-margin-y--2",
|
|
2178
2279
|
children: [
|
|
@@ -2192,7 +2293,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ resource: resource })=>{
|
|
|
2192
2293
|
}),
|
|
2193
2294
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
2194
2295
|
className: "ds-u-font-weight--bold",
|
|
2195
|
-
children:
|
|
2296
|
+
children: totalRows.toLocaleString()
|
|
2196
2297
|
})
|
|
2197
2298
|
]
|
|
2198
2299
|
}),
|
|
@@ -2206,7 +2307,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ resource: resource })=>{
|
|
|
2206
2307
|
}),
|
|
2207
2308
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
2208
2309
|
className: "ds-u-font-weight--bold",
|
|
2209
|
-
children:
|
|
2310
|
+
children: totalColumns.toLocaleString()
|
|
2210
2311
|
})
|
|
2211
2312
|
]
|
|
2212
2313
|
})
|
|
@@ -2408,17 +2509,23 @@ var $364dc44850cd8f7f$export$2e2bcd8739ae039 = $364dc44850cd8f7f$var$DatasetOver
|
|
|
2408
2509
|
|
|
2409
2510
|
|
|
2410
2511
|
|
|
2512
|
+
|
|
2411
2513
|
const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint })=>{
|
|
2412
2514
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
2413
2515
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
|
|
2414
|
-
url: endpoint
|
|
2516
|
+
url: endpoint,
|
|
2517
|
+
plugins: [
|
|
2518
|
+
(0, $hgUW1$SpanOpenAPIVersion),
|
|
2519
|
+
(0, $hgUW1$SpanVersionStamp)
|
|
2520
|
+
]
|
|
2415
2521
|
})
|
|
2416
2522
|
});
|
|
2417
2523
|
};
|
|
2418
2524
|
var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocumentation;
|
|
2419
2525
|
|
|
2420
2526
|
|
|
2421
|
-
|
|
2527
|
+
|
|
2528
|
+
const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: apiUrl, additionalParams: additionalParams, showRowLimitNotice: showRowLimitNotice = false })=>{
|
|
2422
2529
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
2423
2530
|
children: [
|
|
2424
2531
|
/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
@@ -2433,7 +2540,8 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
|
|
|
2433
2540
|
}),
|
|
2434
2541
|
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
2435
2542
|
children: "The Open Data API (ODA) provides programmatic access to this dataset including the ability to filter, query, and aggregate data."
|
|
2436
|
-
})
|
|
2543
|
+
}),
|
|
2544
|
+
showRowLimitNotice && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e49d4387bed21287$export$2e2bcd8739ae039), {})
|
|
2437
2545
|
]
|
|
2438
2546
|
}),
|
|
2439
2547
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
@@ -2843,7 +2951,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
|
|
|
2843
2951
|
})
|
|
2844
2952
|
]
|
|
2845
2953
|
}),
|
|
2846
|
-
size: 300
|
|
2954
|
+
size: 300,
|
|
2955
|
+
minSize: 132
|
|
2847
2956
|
}),
|
|
2848
2957
|
columnHelper.accessor("description", {
|
|
2849
2958
|
header: "Description",
|
|
@@ -4520,7 +4629,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl, additionalPa
|
|
|
4520
4629
|
dataDictionaryLoading: isPending
|
|
4521
4630
|
};
|
|
4522
4631
|
};
|
|
4523
|
-
const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalParams: additionalParams, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive })=>{
|
|
4632
|
+
const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalParams: additionalParams, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false })=>{
|
|
4524
4633
|
const options = location.search ? {
|
|
4525
4634
|
...(0, $hgUW1$qs).parse(location.search, {
|
|
4526
4635
|
ignoreQueryPrefix: true
|
|
@@ -4741,7 +4850,8 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4741
4850
|
id: id,
|
|
4742
4851
|
rootUrl: rootUrl,
|
|
4743
4852
|
apiUrl: apiPageUrl,
|
|
4744
|
-
additionalParams: additionalParams
|
|
4853
|
+
additionalParams: additionalParams,
|
|
4854
|
+
showRowLimitNotice: showRowLimitNotice
|
|
4745
4855
|
})
|
|
4746
4856
|
})
|
|
4747
4857
|
]
|
|
@@ -5965,6 +6075,7 @@ var $af099c546cb226c7$export$2e2bcd8739ae039 = $af099c546cb226c7$var$ResourceHea
|
|
|
5965
6075
|
|
|
5966
6076
|
|
|
5967
6077
|
|
|
6078
|
+
|
|
5968
6079
|
function $626282d9a03c51d5$export$1147582dfae658c6(columns, schema) {
|
|
5969
6080
|
return columns.map((column)=>({
|
|
5970
6081
|
header: schema && schema.fields[column].description ? schema.fields[column].description : column,
|
|
@@ -5984,7 +6095,9 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
|
|
|
5984
6095
|
}
|
|
5985
6096
|
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
|
|
5986
6097
|
const { resource: resource, customColumns: customColumns } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
|
|
5987
|
-
|
|
6098
|
+
const customColumnHeaders = (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[id]);
|
|
6099
|
+
const columns = customColumnHeaders ? customColumnHeaders : $626282d9a03c51d5$export$1147582dfae658c6(resource.columns, resource.schema[id]);
|
|
6100
|
+
if (Object.keys(resource).length && columns.length && resource.schema) return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
5988
6101
|
id: "resource-preview",
|
|
5989
6102
|
className: "ds-u-overflow--auto ds-u-border-x--1 ds-u-border-bottom--1",
|
|
5990
6103
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
|
|
@@ -5997,6 +6110,7 @@ const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id:
|
|
|
5997
6110
|
customColumnFilter: $626282d9a03c51d5$var$DefaultColumnFilter
|
|
5998
6111
|
})
|
|
5999
6112
|
});
|
|
6113
|
+
else return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {});
|
|
6000
6114
|
};
|
|
6001
6115
|
var $626282d9a03c51d5$export$2e2bcd8739ae039 = $626282d9a03c51d5$var$ResourcePreview;
|
|
6002
6116
|
|
|
@@ -6007,7 +6121,7 @@ var $626282d9a03c51d5$export$2e2bcd8739ae039 = $626282d9a03c51d5$var$ResourcePre
|
|
|
6007
6121
|
const $072291d44ce1834a$var$ResourceFooter = ({ resource: resource })=>{
|
|
6008
6122
|
const { limit: limit, values: values, offset: offset, count: count, setOffset: setOffset } = resource;
|
|
6009
6123
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
6010
|
-
children: values.length > 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
|
|
6124
|
+
children: values && values.length > 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
|
|
6011
6125
|
currentPage: Number(offset) / limit + 1,
|
|
6012
6126
|
totalPages: Math.ceil(Number(count) / limit),
|
|
6013
6127
|
onPageChange: (evt, page)=>{
|
|
@@ -6411,7 +6525,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
6411
6525
|
})
|
|
6412
6526
|
}),
|
|
6413
6527
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
6414
|
-
className: "ds-l-md-col--12 ds-u-
|
|
6528
|
+
className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
|
|
6415
6529
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
|
|
6416
6530
|
className: "ds-u-margin--0",
|
|
6417
6531
|
children: [
|
|
@@ -6432,14 +6546,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
6432
6546
|
updateAriaLive: updateAriaLive
|
|
6433
6547
|
})
|
|
6434
6548
|
}),
|
|
6435
|
-
|
|
6549
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
6436
6550
|
className: "ds-l-md-col--12",
|
|
6437
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
|
|
6551
|
+
children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
|
|
6438
6552
|
resource: resource,
|
|
6439
6553
|
id: distribution.identifier,
|
|
6440
6554
|
customColumns: customColumns,
|
|
6441
6555
|
setOffset: resource.setOffset
|
|
6442
|
-
})
|
|
6556
|
+
}) : ""
|
|
6443
6557
|
}),
|
|
6444
6558
|
Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
|
|
6445
6559
|
value: {
|
|
@@ -6471,9 +6585,12 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
6471
6585
|
})
|
|
6472
6586
|
]
|
|
6473
6587
|
})
|
|
6474
|
-
}) : /*#__PURE__*/ (0, $hgUW1$jsx)(
|
|
6475
|
-
|
|
6476
|
-
|
|
6588
|
+
}) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
6589
|
+
className: "ds-l-md-col--12",
|
|
6590
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
|
|
6591
|
+
role: "status",
|
|
6592
|
+
"aria-valuetext": "Resource loading"
|
|
6593
|
+
})
|
|
6477
6594
|
}),
|
|
6478
6595
|
dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
6479
6596
|
className: "ds-l-md-col--12",
|
|
@@ -6618,5 +6735,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
|
|
|
6618
6735
|
|
|
6619
6736
|
|
|
6620
6737
|
|
|
6621
|
-
export {$a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText};
|
|
6738
|
+
export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText};
|
|
6622
6739
|
//# sourceMappingURL=main.js.map
|