@civicactions/cmsds-open-data-components 2.0.5 → 2.0.6
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 +3 -7
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/lib/assets/icons/close.js +4 -0
- package/lib/assets/icons/copy.js +4 -0
- package/lib/assets/icons/download.js +4 -0
- package/lib/assets/icons/settings.js +5 -2
- package/lib/assets/metadataMapping.js +9 -0
- package/lib/commands/index.js +2 -0
- package/lib/commands/templates/footer.js +2 -0
- package/lib/components/ApiDocumentation/index.js +6 -0
- package/lib/components/Breadcrumb/index.js +8 -2
- package/lib/components/DataTableDensity/datatabledensity.test.js +5 -0
- package/lib/components/DataTableDensity/index.js +7 -1
- package/lib/components/DataTableRowChanger/datatablerowchanger.test.js +5 -0
- package/lib/components/DataTableRowChanger/index.js +8 -2
- package/lib/components/DatasetAdditionalInformation/index.js +17 -4
- package/lib/components/DatasetDownloads/datasetdownloads.test.js +5 -0
- package/lib/components/DatasetDownloads/index.js +6 -1
- package/lib/components/DatasetSearchFacets/dataset_search_facets.test.js +14 -0
- package/lib/components/DatasetSearchFacets/index.js +26 -10
- package/lib/components/DatasetSearchListItem/datasetsearchlistitem.test.js +9 -1
- package/lib/components/DatasetSearchListItem/index.js +17 -6
- package/lib/components/DatasetTags/datasettags.test.js +5 -0
- package/lib/components/DatasetTags/index.js +6 -0
- package/lib/components/Hero/index.js +18 -8
- package/lib/components/ManageColumns/index.js +13 -3
- package/lib/components/NavBar/index.js +55 -0
- package/lib/components/NavLink/index.js +11 -2
- package/lib/components/NavLink/navlink.test.js +6 -0
- package/lib/components/Pagination/index.js +46 -4
- package/lib/components/Pagination/pagination.test.js +478 -367
- package/lib/components/ResourceConditionField/ResourceConditionalField.test.js +5 -1
- package/lib/components/ResourceConditionField/index.js +62 -30
- package/lib/components/ResourceFilter/index.js +39 -10
- package/lib/components/ResourceFilter/resourcefilter.test.js +297 -234
- package/lib/components/ResourceFooter/index.js +11 -4
- package/lib/components/ResourceHeader/index.js +54 -30
- package/lib/components/ResourceInformation/index.js +6 -1
- package/lib/components/ResourcePreview/index.js +30 -13
- package/lib/components/SearchModal/index.js +28 -11
- package/lib/components/SubMenu/index.js +20 -5
- package/lib/components/TransformedDate/index.js +7 -1
- package/lib/components/useAddLoginLink/index.js +13 -3
- package/lib/components/useScrollToTop/index.js +6 -1
- package/lib/index.js +247 -0
- package/lib/templates/APIPage/index.js +6 -1
- package/lib/templates/Dataset/DatasetBody.js +42 -12
- package/lib/templates/Dataset/index.js +26 -7
- package/lib/templates/DatasetSearch/datasetsearch.test.js +70 -50
- package/lib/templates/DatasetSearch/index.js +83 -43
- package/lib/templates/DrupalPage/index.js +13 -6
- package/lib/templates/FilteredResource/FilteredResourceBody.js +43 -15
- package/lib/templates/FilteredResource/QueryBuilder.js +59 -17
- package/lib/templates/FilteredResource/QueryRow.js +43 -20
- package/lib/templates/FilteredResource/QueryTitle.js +18 -2
- package/lib/templates/FilteredResource/functions.js +17 -5
- package/lib/templates/FilteredResource/index.js +36 -16
- package/lib/templates/Footer/footer.test.js +7 -2
- package/lib/templates/Footer/index.js +23 -11
- package/lib/templates/PageNotFound/index.js +5 -1
- package/lib/templates/header/index.js +26 -17
- package/lib/templates/mobile_header/index.js +42 -22
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -9,7 +9,6 @@ import "swagger-ui-react/swagger-ui.css";
|
|
|
9
9
|
import $hgUW1$qs from "qs";
|
|
10
10
|
import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryClientProvider as $hgUW1$QueryClientProvider} from "@tanstack/react-query";
|
|
11
11
|
import $hgUW1$axios from "axios";
|
|
12
|
-
import $hgUW1$dompurify from "dompurify";
|
|
13
12
|
import $hgUW1$reacttexttruncate from "react-text-truncate";
|
|
14
13
|
import {createColumnHelper as $hgUW1$createColumnHelper, useReactTable as $hgUW1$useReactTable, getCoreRowModel as $hgUW1$getCoreRowModel, getSortedRowModel as $hgUW1$getSortedRowModel, flexRender as $hgUW1$flexRender} from "@tanstack/react-table";
|
|
15
14
|
import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
|
|
@@ -258,7 +257,6 @@ var $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 = $61ff88fb3f6ee2c8$var$withQueryPr
|
|
|
258
257
|
|
|
259
258
|
|
|
260
259
|
|
|
261
|
-
|
|
262
260
|
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date , options: options })=>{
|
|
263
261
|
const rawDate = new Date(date);
|
|
264
262
|
let modifiedDate = "";
|
|
@@ -281,7 +279,7 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
|
|
|
281
279
|
|
|
282
280
|
const $dc6d3aaf3e07417b$var$dangerousDescriptionElement = ({ children: children })=>/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
283
281
|
dangerouslySetInnerHTML: {
|
|
284
|
-
__html:
|
|
282
|
+
__html: children
|
|
285
283
|
}
|
|
286
284
|
});
|
|
287
285
|
const $dc6d3aaf3e07417b$var$DatasetSearchListItem = ({ item: item , updateFacets: updateFacets })=>{
|
|
@@ -876,7 +874,6 @@ var $68d79598b83f3382$export$2e2bcd8739ae039 = $68d79598b83f3382$var$useMetastor
|
|
|
876
874
|
|
|
877
875
|
|
|
878
876
|
|
|
879
|
-
|
|
880
877
|
async function $0e7628cf73c71646$export$55f990b5477765d6(id, rootUrl, options, additionalParams) {
|
|
881
878
|
const { keys: keys , limit: limit , offset: offset , conditions: conditions , sort: sort , groupings: groupings , prepareColumns: prepareColumns , properties: properties , setValues: setValues , setCount: setCount , setColumns: setColumns , setLoading: setLoading , setSchema: setSchema } = options;
|
|
882
879
|
if (!id) // TODO: Throw error
|
|
@@ -2030,7 +2027,7 @@ const $766b8e351dd607f5$var$DatasetBody = ({ rootUrl: rootUrl , id: id , dataset
|
|
|
2030
2027
|
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
2031
2028
|
className: "dc-c-metadata-description",
|
|
2032
2029
|
dangerouslySetInnerHTML: {
|
|
2033
|
-
__html:
|
|
2030
|
+
__html: dataset.description
|
|
2034
2031
|
}
|
|
2035
2032
|
}),
|
|
2036
2033
|
resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
@@ -4019,7 +4016,6 @@ var $ec3e23baa005dc03$export$2e2bcd8739ae039 = $ec3e23baa005dc03$var$Breadcrumb;
|
|
|
4019
4016
|
|
|
4020
4017
|
|
|
4021
4018
|
|
|
4022
|
-
|
|
4023
4019
|
|
|
4024
4020
|
|
|
4025
4021
|
function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
|
|
@@ -4410,7 +4406,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id , dataset: dataset
|
|
|
4410
4406
|
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
4411
4407
|
className: "ds-u-margin-top--0 dc-c-metadata-description",
|
|
4412
4408
|
dangerouslySetInnerHTML: {
|
|
4413
|
-
__html:
|
|
4409
|
+
__html: distribution.data.description
|
|
4414
4410
|
}
|
|
4415
4411
|
}),
|
|
4416
4412
|
resource.columns && Object.keys(resource.schema).length && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
|