@civicactions/cmsds-open-data-components 4.1.1 → 4.1.2-alpha.1
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 +30 -15
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +5 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -828,7 +828,7 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
|
|
|
828
828
|
|
|
829
829
|
|
|
830
830
|
|
|
831
|
-
const $
|
|
831
|
+
const $727b038175bac6f5$var$TransformedDate = ({ date: date, options: options = {
|
|
832
832
|
year: 'numeric',
|
|
833
833
|
month: 'long',
|
|
834
834
|
day: 'numeric',
|
|
@@ -841,7 +841,7 @@ const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options =
|
|
|
841
841
|
children: modifiedDate
|
|
842
842
|
});
|
|
843
843
|
};
|
|
844
|
-
var $
|
|
844
|
+
var $727b038175bac6f5$export$2e2bcd8739ae039 = $727b038175bac6f5$var$TransformedDate;
|
|
845
845
|
|
|
846
846
|
|
|
847
847
|
|
|
@@ -920,7 +920,7 @@ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
|
|
|
920
920
|
children: dateText[type]
|
|
921
921
|
}),
|
|
922
922
|
": ",
|
|
923
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
923
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
924
924
|
date: date
|
|
925
925
|
})
|
|
926
926
|
]
|
|
@@ -992,7 +992,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
992
992
|
const desktop = (0, $hgUW1$useMediaQuery)({
|
|
993
993
|
minWidth: 1024
|
|
994
994
|
});
|
|
995
|
-
const { title: title, modified: modified, description: description, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, identifier: identifier, refresh: refresh, released: released, showDateDetails: showDateDetails = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs, distribution: distribution } = props;
|
|
995
|
+
const { title: title, modified: modified, description: description, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, identifier: identifier, refresh: refresh, released: released, showDateDetails: showDateDetails = false, updateDateMonthYearOnly: updateDateMonthYearOnly = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs, distribution: distribution } = props;
|
|
996
996
|
const location = (0, $hgUW1$useLocation)();
|
|
997
997
|
let linkContainerClasses = 'ds-u-margin-bottom--2';
|
|
998
998
|
if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
|
|
@@ -1096,6 +1096,12 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1096
1096
|
]
|
|
1097
1097
|
});
|
|
1098
1098
|
};
|
|
1099
|
+
const dateOptions = updateDateMonthYearOnly ? {
|
|
1100
|
+
year: 'numeric',
|
|
1101
|
+
month: 'long',
|
|
1102
|
+
day: undefined,
|
|
1103
|
+
timeZone: 'UTC'
|
|
1104
|
+
} : undefined;
|
|
1099
1105
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1100
1106
|
className: "dc-c-search-list-item ds-u-padding-top--3",
|
|
1101
1107
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
@@ -1112,8 +1118,9 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1112
1118
|
children: "Updated:"
|
|
1113
1119
|
}),
|
|
1114
1120
|
" ",
|
|
1115
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
1116
|
-
date: modified
|
|
1121
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
1122
|
+
date: modified,
|
|
1123
|
+
options: dateOptions
|
|
1117
1124
|
})
|
|
1118
1125
|
]
|
|
1119
1126
|
}),
|
|
@@ -1443,7 +1450,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1443
1450
|
const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
|
|
1444
1451
|
defaultSort: 'modified',
|
|
1445
1452
|
defaultOrder: 'desc'
|
|
1446
|
-
}, pageTitle: pageTitle = 'Dataset Explorer', categoriesTitle: categoriesTitle = 'Categories', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false, showDateDetails: showDateDetails = false, showTopics: showTopics = false, topicSlugFunction: topicSlugFunction, children: children } = props;
|
|
1453
|
+
}, pageTitle: pageTitle = 'Dataset Explorer', categoriesTitle: categoriesTitle = 'Categories', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false, showDateDetails: showDateDetails = false, updateDateMonthYearOnly: updateDateMonthYearOnly = false, showTopics: showTopics = false, topicSlugFunction: topicSlugFunction, children: children } = props;
|
|
1447
1454
|
const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
|
|
1448
1455
|
const [searchParams] = (0, $hgUW1$useSearchParams)();
|
|
1449
1456
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
@@ -1795,6 +1802,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1795
1802
|
paginationEnabled: enablePagination,
|
|
1796
1803
|
dataDictionaryLinks: dataDictionaryLinks,
|
|
1797
1804
|
distribution: "%Ref:distribution" in item && item["%Ref:distribution"] ? item["%Ref:distribution"][0] : {},
|
|
1805
|
+
updateDateMonthYearOnly: updateDateMonthYearOnly,
|
|
1798
1806
|
...dateDetailProps,
|
|
1799
1807
|
...topicProps
|
|
1800
1808
|
}, item.identifier);
|
|
@@ -2321,7 +2329,7 @@ const $c068004d499082cc$var$DatasetListItem = (props)=>{
|
|
|
2321
2329
|
className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? 'ds-u-padding-top--3' : 'ds-u-padding-top--0'}`,
|
|
2322
2330
|
children: [
|
|
2323
2331
|
"Updated ",
|
|
2324
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
2332
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
2325
2333
|
date: modified
|
|
2326
2334
|
})
|
|
2327
2335
|
]
|
|
@@ -6145,7 +6153,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
|
|
|
6145
6153
|
return [
|
|
6146
6154
|
{
|
|
6147
6155
|
label: 'Modified',
|
|
6148
|
-
value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
6156
|
+
value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
6149
6157
|
date: data
|
|
6150
6158
|
})
|
|
6151
6159
|
}
|
|
@@ -6155,7 +6163,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
|
|
|
6155
6163
|
return [
|
|
6156
6164
|
{
|
|
6157
6165
|
label: 'Issued',
|
|
6158
|
-
value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
6166
|
+
value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
6159
6167
|
date: data
|
|
6160
6168
|
})
|
|
6161
6169
|
}
|
|
@@ -7205,7 +7213,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
|
|
|
7205
7213
|
dataDictionaryLoading: isPending
|
|
7206
7214
|
};
|
|
7207
7215
|
};
|
|
7208
|
-
const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, 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, enableEmptyFilters: enableEmptyFilters = false, tabHrefPrepend: tabHrefPrepend = '', showDateDetails: showDateDetails = false, topicDetails: topicDetails = [], showTagsOnOverview: showTagsOnOverview = false, swaggerButtonClassNames: swaggerButtonClassNames = {} })=>{
|
|
7216
|
+
const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, 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, enableEmptyFilters: enableEmptyFilters = false, tabHrefPrepend: tabHrefPrepend = '', showDateDetails: showDateDetails = false, updateDateMonthYearOnly: updateDateMonthYearOnly = false, topicDetails: topicDetails = [], showTagsOnOverview: showTagsOnOverview = false, swaggerButtonClassNames: swaggerButtonClassNames = {} })=>{
|
|
7209
7217
|
const tabHref = `/dataset/${id}`;
|
|
7210
7218
|
const options = location.search ? {
|
|
7211
7219
|
...(0, $hgUW1$qs).parse(location.search, {
|
|
@@ -7302,6 +7310,12 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
|
|
|
7302
7310
|
released: dataset.released,
|
|
7303
7311
|
refresh: dataset.nextUpdateDate
|
|
7304
7312
|
};
|
|
7313
|
+
const dateOptions = updateDateMonthYearOnly ? {
|
|
7314
|
+
year: 'numeric',
|
|
7315
|
+
month: 'long',
|
|
7316
|
+
day: undefined,
|
|
7317
|
+
timeZone: 'UTC'
|
|
7318
|
+
} : undefined;
|
|
7305
7319
|
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
|
|
7306
7320
|
children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
|
|
7307
7321
|
content: notFoundContent,
|
|
@@ -7333,8 +7347,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
|
|
|
7333
7347
|
className: "ds-u-margin--0 ds-u-font-weight--bold",
|
|
7334
7348
|
children: [
|
|
7335
7349
|
"Updated ",
|
|
7336
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
7337
|
-
date: date.modified
|
|
7350
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
7351
|
+
date: date.modified,
|
|
7352
|
+
options: dateOptions
|
|
7338
7353
|
})
|
|
7339
7354
|
]
|
|
7340
7355
|
})
|
|
@@ -8705,7 +8720,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
8705
8720
|
className: "ds-u-margin--0",
|
|
8706
8721
|
children: [
|
|
8707
8722
|
"Updated ",
|
|
8708
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
8723
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $727b038175bac6f5$export$2e2bcd8739ae039), {
|
|
8709
8724
|
date: dataset.modified
|
|
8710
8725
|
})
|
|
8711
8726
|
]
|
|
@@ -9014,5 +9029,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
|
|
|
9014
9029
|
|
|
9015
9030
|
|
|
9016
9031
|
|
|
9017
|
-
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, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $c068004d499082cc$export$2e2bcd8739ae039 as DatasetListItem, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $17711e94d2ce0ee4$export$2e2bcd8739ae039 as DatasetDateItem, $20de4fedf33d4f9a$export$2e2bcd8739ae039 as DatasetDate, $85f8ff1ff89899c7$export$2e2bcd8739ae039 as DataTableToolbar, $10bc3aae21fc1572$export$2e2bcd8739ae039 as DatasetListSubmenu, $e011250e8a3bd5e5$export$2e2bcd8739ae039 as DatasetSearchFacets, $2276c8c929d6a6d3$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $
|
|
9032
|
+
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, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $c068004d499082cc$export$2e2bcd8739ae039 as DatasetListItem, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $17711e94d2ce0ee4$export$2e2bcd8739ae039 as DatasetDateItem, $20de4fedf33d4f9a$export$2e2bcd8739ae039 as DatasetDate, $85f8ff1ff89899c7$export$2e2bcd8739ae039 as DataTableToolbar, $10bc3aae21fc1572$export$2e2bcd8739ae039 as DatasetListSubmenu, $e011250e8a3bd5e5$export$2e2bcd8739ae039 as DatasetSearchFacets, $2276c8c929d6a6d3$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $727b038175bac6f5$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $6fd40f23575fa7f0$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $550bcc185f420ff5$export$2e2bcd8739ae039 as DatasetList, $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, $8b67b7ee3fcfb629$export$2e2bcd8739ae039 as StoredQueryPage, $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, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ee0d4d4f34048447$export$2e2bcd8739ae039 as DataTableActionsProvider, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
|
|
9018
9033
|
//# sourceMappingURL=main.js.map
|