@civicactions/cmsds-open-data-components 3.0.0-alpha.5 → 3.0.0-alpha.7
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.css +17 -10
- package/dist/main.css.map +1 -1
- package/dist/main.js +282 -66
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +10 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -1
package/dist/main.css
CHANGED
|
@@ -2,22 +2,29 @@ nav.dc-c-site-menu .dc-c-header--links a.dc-c-active-link span {
|
|
|
2
2
|
border-bottom: 2px solid var(--color-primary-alt-light);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.dc-
|
|
6
|
-
|
|
5
|
+
.dc-c-search-list-item, .dc-c-search-list-item li {
|
|
6
|
+
list-style: none;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.dc-
|
|
10
|
-
text-decoration: underline;
|
|
9
|
+
.dc-c-search-list-item li a, .dc-c-search-list-item li button {
|
|
10
|
+
text-decoration: underline !important;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.dc-
|
|
14
|
-
|
|
13
|
+
.dc-c-search-list-item li a svg, .dc-c-search-list-item li span svg {
|
|
14
|
+
fill: var(--link__color);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.dc-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.dc-c-search-list-item svg {
|
|
18
|
+
margin-right: 8px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dc-c-search-list-item button {
|
|
22
|
+
padding: 0 !important;
|
|
23
|
+
font-weight: normal !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dc-c-search-list-item a:visited svg {
|
|
27
|
+
fill: var(--link__color--visited);
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
.dkan-dataset-search {
|
package/dist/main.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA;;;;ACCE;;;;AAEE;;;;AAKF;;;;AAIA;;;;;;ACZF;;;;AAEE;;;;AAEE;EAFF;;;;;AAMA;;;;;AAOA;;;;;AAMF;;;;AAIA;;;;AAKA;;;;AC9BA;;;;AAIA;;;;AAEE;;;;;;;;;AAUF;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAEE;;;;AAEE;EAFF;;;;;AAMA;;;;;ACpCF;;;;;AAGE;;;;;AAIA;;;;;;AAOF;;;;AAIA;;;;AAKE;;;;;;;;;;;;;;AAYE;;;;AAQF;;;;;;;AAQF;;;;AAIA;;;;;AAKE;;;;;;;;;AAUF;;;;AAGA;;;;AAGA;;;;AC5EA;;;;;ACCE;;;;AAKF;;;;AAIA;;;;;ACTE;;;;ACAA;;;;;;;;;AAUF;;;;;;;AAOA;;;;ACjBE;;;;AAGA;;;;;;;;ACHA;;;;;;;AAQF;;;;;AAGE;;;;;;;;;;;;;;;;AAiBF;;;;;;;AAKE;;;;;;;;;;;;;;;AAgBF;;;;;;;;;;;;;;AAcA;;;;;;;;AAME;;;;AAKF;;;;;AAME;;;;;;;;;;AASA;;;;;;AAKA;;;;;;;;AAUA;;;;AAKF;;;;;;;;;;;;;;;;AAeA;;;;AAIE;;;;;AAIA;;;;AAMA;;;;;AAIA;;;;AAOA;;;;;AAMF;;;;;;AAKE;;;;;;;AAOA;;;;;;;;;;;;;;;;AAeA;;;;;;;AAQF;;;;;;AAMA;;;;;AAGE;;;;AAGA;;;;;;;;AASA;;;;AAMF;EACE;;;;;AAMF;EACE;;;;;;;EAKE;;;;;EAIA;;;;;;;;EAOA;;;;;;;;;AAYF;;;;;AAGE;;;;;AAIA;;;;;;AAKE;;;;AAIF;;;;;AAGE;;;;AAIF;;;;AAYJ;;;;;;;;AASA;;;;AAIA;;;;AAGA;;;;AAIA;;;;;;;;;;AAQE;;;;;AAGE;;;;AAIF;;;;AAMF;;;;AAIA;;;;AAKE;;;;;;;;;;;;;;;;ACnVF;;;;AAEE;;;;;;AAOF;;;;AAIA;;;;;AAGE;;;;AAKF;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;AASA;;;;;;;;;AAQE;;;;;AAKA;;;;AAIA;;;;;;AAMF;;;;;;ACzEA;;;;;;;;AAKE;;;;;AAGE;;;;;;;;AAQE;;;;;AASN;;;;AAIA;;;;AC7BA;;;;AAIA;;;;AAMI;;;;AAMJ","sources":["src/components/NavLink/NavLink.scss","src/components/DatasetSearchListItem/dataset-search-list-item.scss","src/components/DatasetSearchFacets/dataset-search-facets.scss","src/templates/DatasetSearch/dataset-search.scss","src/components/Datatable/datatable.scss","src/components/DatasetTags/dataset-tags.scss","src/components/DatasetAdditionalInformation/additional-information-table.scss","src/components/ResourceInformation/resource-information-table.scss","src/templates/Dataset/dataset.scss","src/components/MobileHeader/mobile-header.scss","src/templates/Header/header.scss","src/templates/Footer/footer.scss","src/components/Breadcrumb/breadcrumb.scss","src/templates/FilteredResource/filtered-resource.scss"],"sourcesContent":["nav.dc-c-site-menu .dc-c-header--links a.dc-c-active-link span {\n border-bottom: 2px solid #{var(--color-primary-alt-light)};\n}",".dc-dataset-searchlist-item {\n h2 a {\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n }\n\n ul {\n list-style: none;\n }\n\n .dc-dataset-searchlist-item--keyword {\n background: #{var(--color-primary-alt-lightest)};\n border: none;\n color: #{var(--color-base)};\n }\n}\n",".dkan-dataset-search {\n position: relative;\n input {\n min-width: 100%;\n @media only screen and (min-width: 544px) {\n padding-left: 32px;\n }\n }\n .ds-c-field__before {\n left: 16px;\n top: 12px;\n }\n}\n\n.dkan-dataset-search--facet-container {\n ul {\n list-style: none;\n padding-left: 0px;\n }\n}\n\n.dkan-dataset-search--clear-all-filters {\n width: 100%;\n}\n\n.dc-c-search-list-item li a svg,\n.dc-c-search-list-item li span svg {\n fill: #{var(--link__color)};\n}\n\n.dc-c-search-list-item li a:visited svg {\n fill: #{var(--link__color--visited)};\n}\n",".dc-dataset-search-list {\n list-style: none;\n}\n\n.dc-search-header {\n display: relative;\n &::after {\n content: '';\n display: block;\n width: 48px;\n height: 4px;\n margin: 16px 0;\n background-color: #{var(--color-primary-alt-light)};\n }\n}\n\n.dataset-results-count {\n font-weight: bold;\n}\n\n.dkan-dataset-search--facet-container .ds-c-accordion__content {\n max-height: 32rem;\n}\n\n.dc-dataset-search--clear-all-filters {\n width: 100%;\n}\n\n.dkan-dataset-search {\n position: relative;\n input {\n min-width: 100%;\n @media only screen and (min-width: 544px) {\n padding-left: 32px;\n }\n }\n .ds-c-field__before {\n left: 16px;\n top: 12px;\n }\n}",".dc-c-datatable {\n width: 100%;\n border-spacing: 0px;\n th {\n position: relative;\n text-align: left;\n }\n thead th div {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n}\n\n.dc-thead--fixed-size th {\n border-left: 2px solid var(--color-border);\n}\n\n.dc-thead--fixed-size th:first-child {\n border-left: none;\n}\n\n.dc-thead--resizeable {\n .dc-c-resize-handle {\n top: 0;\n bottom: 0;\n right: 0;\n position: absolute;\n background-color: #{var(--color-gray-light)};\n width: 10px;\n cursor: col-resize;\n min-width: 10px;\n display: block;\n margin-left: -10px;\n z-index: 1;\n &.isResizing,\n &:hover {\n background-color: #{var(--color-primary)};\n }\n }\n}\n\n.dc-thead--truncated {\n th span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n display: inline-block;\n }\n}\n\n.dc-c-datatable--even-row td {\n background-color: #{var(--table-striped__background-color)};\n}\n\n.dc-c-sort--default,\n.dc-c-sort--asc,\n.dc-c-sort--desc {\n padding-left: 8px;\n padding-right: 16px;\n &::after {\n font-family: 'Font Awesome 5 Pro';\n display: inline;\n padding-left: 8px;\n line-height: 18px;\n height: 18px;\n width: 18px;\n }\n}\n\n.dc-c-sort--default::after {\n content: '\\f0dc';\n}\n.dc-c-sort--asc::after {\n content: '\\f0de';\n}\n.dc-c-sort--desc::after {\n content: '\\f0dd';\n}\n\n\n// @media (hover: hover) {\n// .resizer {\n// opacity: 0;\n// }\n\n// *:hover > .resizer {\n// opacity: 1;\n// }\n// }",".dc-c-dataset-tags--tag {\n display: inline-block;\n background: #{var(--color-primary-alt-lightest)};\n}\n",".dc-c-additional-info-table {\n table {\n width: 100%;\n }\n}\n\n.dc-c-additional-info-table a {\n word-break: break-all;\n}\n\n.ds-u-word-break-anywhere {\n word-break: break-word;\n overflow-wrap: anywhere;\n}\n",".dc-c-resource-info-table {\n table {\n width: 100%;\n }\n}\n",".dc-resource-header {\n &::before {\n content: '';\n display: block;\n width: 48px;\n height: 4px;\n margin: 8px 0;\n background-color: #{var(--color-primary-alt-light)};\n }\n}\n\n.dc-truncate {\n max-width: 85%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dc-c-metadata-description {\n white-space: pre-line;\n}\n",".dc-c-mobile-header--menu {\n :focus {\n box-shadow: 0 0 0 3px transparent,0 0 4px 6px transparent;\n }\n :focus-visible {\n // Copy styling from DS items with focus\n background-color: #0000;\n border-radius: var(--button__border-radius);\n box-shadow: 0 0 0 3px var(--color-focus-light),0 0 4px 6px var(--color-focus-dark);\n outline: 3px solid #0000;\n outline-offset: 3px;\n }\n}\n",".ds-c-usa-banner__button-text {\n &::after {\n width: 0 !important;\n height: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n}\n\n.dc-c-mobile-menu--open {\n color: #{var(--color-white)};\n text-decoration: none;\n &::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f0c9';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n}\n\n.dc-c-mobile-menu--close {\n color: #{var(--color-white)};\n text-decoration: none;\n padding-left: 0;\n padding-bottom: 16px;\n &::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f00d';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n}\n\n.dc-c-mobile-header--menu {\n position: fixed;\n background-color: #{var(--color-gray-dark)};\n top: 0;\n bottom: 0;\n left: -100%;\n z-index: 500;\n height: 100%;\n width: 100%;\n transition: left 0.7s;\n padding: 50px 0;\n visibility: hidden;\n}\n\n.dc-c-mobile-header .dc-c-site-menu--sub-menu {\n position: relative;\n background: transparent;\n top: -24px;\n width: auto;\n left: auto;\n a {\n padding: 8px;\n }\n}\n\n.dc-c-cmsheader {\n position: relative;\n background: #{var(--color-white)};\n}\n\n.dc-c-cms-mobile-header-menu {\n &::before {\n display: block;\n margin-left: 8px;\n margin-bottom: 16px;\n width: 48px;\n height: 2px;\n background: #{var(--color-primary-alt-light)};\n content: '';\n }\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n a,\n a:hover,\n a:focus,\n a:visited {\n background-color: transparent;\n display: inline-block;\n color: #{var(--color-white)};\n text-decoration: none;\n border-bottom: 2px solid transparent;\n }\n a:hover,\n a:active {\n border-bottom: 2px solid #{var(--color-primary-alt-light)};\n }\n}\n.has-submenu > button::after {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f105';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n}\n.has-submenu.open > button::after {\n content: '\\f107';\n}\n.dc-c-header--mobile-links {\n button {\n padding: 0;\n font-weight: 700;\n }\n a {\n display: block;\n }\n}\n\n.dc-c-mobile-header.menu-open {\n .dc-c-cmsheader {\n z-index: 501;\n background-color: transparent;\n }\n .dc-c-cmsheader-menu a,\n button {\n color: #{var(--color-white)};\n }\n .cms-link-container a::before {\n color: #{var(--color-white)};\n }\n .dc-c-mobile-header--menu {\n left: 0;\n visibility: visible;\n }\n}\n\n.cms-link-container {\n display: block;\n margin-right: 20px;\n // margin-top: -5px;\n border-right: none;\n a {\n text-decoration: none;\n border-bottom: none;\n\n margin-right: 20px;\n display: inline-block;\n }\n a::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f33e';\n color: #323a45;\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n img {\n height: auto;\n width: 90px;\n display: inline-block;\n vertical-align: middle;\n }\n}\n\n.cms-text-container {\n display: block;\n padding-top: 28px;\n color: #6f757c;\n}\n\n.dc-c-cmsheader-menu {\n padding: 0;\n margin: 0;\n li {\n list-style: none;\n }\n a {\n margin: 3px 7px;\n padding: 0;\n color: #323a45;\n text-decoration: none;\n border-bottom: 1px solid;\n border-bottom-color: #eee;\n border-bottom-color: rgba(255, 255, 255, 0.2);\n }\n a:hover,\n a:active {\n border-bottom: 2px solid #323a45;\n }\n}\n\n@media (min-width: 544px) {\n .dc-c-main-navigation--search,\n .dc-c-mobile-menu--search {\n border-left: 1px solid #{var(--color-white)};\n }\n}\n\n@media (min-width: 1024px) {\n .cms-link-container {\n height: 85px;\n width: 240px;\n float: left;\n border-right: 1px solid #d6d7d9;\n a {\n margin-top: 28px;\n margin-bottom: 20px;\n }\n img {\n height: auto;\n width: auto;\n display: inline-block;\n vertical-align: middle;\n max-width: 80%;\n }\n a::before {\n font-size: 28px;\n line-height: 28px;\n width: 28px;\n height: 28px;\n margin-left: 0;\n }\n }\n}\n\n\nnav.dc-c-site-menu {\n .dc-c-header--links {\n padding: 0;\n margin: 0;\n li {\n list-style: none;\n height: 100%;\n }\n button {\n // color: #{var(--color-white)};\n text-decoration: none;\n font-size: 16px;\n border: none;\n span {\n border-bottom: 2px solid transparent;\n }\n }\n a {\n text-decoration: none;\n padding: #{var(--space, 8px 24px)};\n span {\n border-bottom: 2px solid transparent;\n }\n }\n > li:hover > button span,\n > li button:focus span,\n > li button:hover span,\n > li:hover > a span,\n > li:focus > a span,\n > li a:hover span,\n > li a:focus span {\n border-bottom: 2px solid #{var(--color-primary-alt-lightest)};\n }\n }\n}\n\nnav.dc-c-site-menu .dc-c-header--links a:focus,\n.dc-c-site-title a:focus {\n background-color: transparent;\n outline: 3px solid transparent;\n box-shadow: 0 0 0 3px #{var(--color-focus-light)}, 0 0 4px 6px #{var(--color-focus-dark)};\n outline-offset: 3px;\n border-radius: #{var(--button__border-radius)};\n}\n\nnav > ul li ul {\n display: none;\n}\n\nnav > ul li.open ul {\n display: block;\n}\nli.has-submenu {\n position: relative;\n}\n\n.dc-c-site-menu--sub-menu {\n background: #{var(--color-primary)};\n position: absolute;\n left: 0;\n top: 48px;\n margin: 0;\n padding: 0;\n width: 300px;\n a {\n display: block;\n padding: 16px;\n span {\n border-bottom: 2px solid transparent;\n }\n }\n a:hover span,\n a:focus span {\n border-bottom: 2px solid #{var(--color-primary-alt-light)};\n }\n}\n\n.dc-c-site-title a {\n text-decoration: none;\n}\n\n.dc-c-mobile-menu--search {\n display: inherit;\n}\n\n.dc-c-search-modal--button {\n &::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f002';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n}\n",".dc-c-footer {\n background-color: white;\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n}\n\n.dc-c-footer--middle-container {\n background: linear-gradient(90deg, #f6f9fd 50%, #e8f0fa 50%);\n}\n\n.dc-c-footer__title {\n font-weight: 400;\n color: #{var(--color-gray)};\n span {\n font-weight: 700;\n }\n}\n\n.dc-c-footer__resources {\n background: #f6f9fd;\n}\n\n.dc-c-footer__utility {\n background: #{var(--color-white)};\n}\n\n.dc-c-footer__utility li {\n list-style: none;\n}\n\n.dc-c-footer__cms-information {\n background: #e8f0fa;\n}\n\n.dc-footer--heading {\n text-transform: uppercase;\n}\n\n.dc-c-emailupdates {\n background-image: linear-gradient(\n 35deg,\n #{var(--color-primary-darkest)},\n #{var(--color-primary-darker)},\n #{var(--color-primary)}\n );\n color: #{var(--color-white)};\n}\n.dc-c-footer--svg-icon {\n width: 40px;\n height: 40px;\n font-size: 42px;\n display: inline-block;\n text-align: center;\n position: relative;\n\n svg.svg-inline--fa {\n width: 1em;\n height: 1em;\n }\n\n .fa-circle {\n fill: #6f757c;\n }\n\n .fa-inverse {\n font-size: 25px;\n padding-left: 2px;\n fill: #{var(--color-white)};\n }\n}\n.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n",".dc-c-breadcrumb__list {\n margin-top: 0;\n margin-bottom: 0;\n list-style-type: none;\n padding-left: 0;\n > li {\n margin-bottom: 0;\n max-width: unset;\n &::after {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f054';\n margin: 0 10px;\n font-size: 10px;\n font-weight: 600;\n }\n &:last-child {\n &::after {\n content: '';\n margin: 0;\n }\n }\n }\n display: block;\n}\n\n.dc-c-breadcrumb__list-item {\n display: inline-block;\n}\n\n.dc-c-breadcrumb__link {\n display: inline;\n}\n",".dc-c-resource-action {\n min-height: 100%;\n}\n\n.dc-filtered-resource-toggle {\n align-self: center;\n}\n\n.dc-c-filterd-resouce-drawer {\n .ds-c-help-drawer__footer {\n h4 {\n display: none;\n }\n }\n}\n\n.dc-c-resource-header--buttons {\n display: flex;\n}\n"],"names":[],"version":3,"file":"main.css.map"}
|
|
1
|
+
{"mappings":"AAAA;;;;ACAA;;;;AAKI;;;;AAIA;;;;AAKF;;;;AAGA;;;;;AAIA;;;;ACrBF;;;;AAEE;;;;AAEE;EAFF;;;;;AAMA;;;;;AAOA;;;;;AAMF;;;;AAIA;;;;AAKA;;;;AC9BA;;;;AAIA;;;;AAEE;;;;;;;;;AAUF;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAEE;;;;AAEE;EAFF;;;;;AAMA;;;;;ACpCF;;;;;AAGE;;;;;AAIA;;;;;;AAOF;;;;AAIA;;;;AAKE;;;;;;;;;;;;;;AAYE;;;;AAQF;;;;;;;AAQF;;;;AAIA;;;;;AAKE;;;;;;;;;AAUF;;;;AAGA;;;;AAGA;;;;AC5EA;;;;;ACCE;;;;AAKF;;;;AAIA;;;;;ACTE;;;;ACAA;;;;;;;;;AAUF;;;;;;;AAOA;;;;ACjBE;;;;AAGA;;;;;;;;ACHA;;;;;;;AAQF;;;;;AAGE;;;;;;;;;;;;;;;;AAiBF;;;;;;;AAKE;;;;;;;;;;;;;;;AAgBF;;;;;;;;;;;;;;AAcA;;;;;;;;AAME;;;;AAKF;;;;;AAME;;;;;;;;;;AASA;;;;;;AAKA;;;;;;;;AAUA;;;;AAKF;;;;;;;;;;;;;;;;AAeA;;;;AAIE;;;;;AAIA;;;;AAMA;;;;;AAIA;;;;AAOA;;;;;AAMF;;;;;;AAKE;;;;;;;AAOA;;;;;;;;;;;;;;;;AAeA;;;;;;;AAQF;;;;;;AAMA;;;;;AAGE;;;;AAGA;;;;;;;;AASA;;;;AAMF;EACE;;;;;AAMF;EACE;;;;;;;EAKE;;;;;EAIA;;;;;;;;EAOA;;;;;;;;;AAYF;;;;;AAGE;;;;;AAIA;;;;;;AAKE;;;;AAIF;;;;;AAGE;;;;AAIF;;;;AAYJ;;;;;;;;AASA;;;;AAIA;;;;AAGA;;;;AAIA;;;;;;;;;;AAQE;;;;;AAGE;;;;AAIF;;;;AAMF;;;;AAIA;;;;AAKE;;;;;;;;;;;;;;;;ACnVF;;;;AAEE;;;;;;AAOF;;;;AAIA;;;;;AAGE;;;;AAKF;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;AASA;;;;;;;;;AAQE;;;;;AAKA;;;;AAIA;;;;;;AAMF;;;;;;ACzEA;;;;;;;;AAKE;;;;;AAGE;;;;;;;;AAQE;;;;;AASN;;;;AAIA;;;;AC7BA;;;;AAIA;;;;AAMI;;;;AAMJ","sources":["src/components/NavLink/NavLink.scss","src/components/DatasetSearchListItem/dataset-search-list-item.scss","src/components/DatasetSearchFacets/dataset-search-facets.scss","src/templates/DatasetSearch/dataset-search.scss","src/components/Datatable/datatable.scss","src/components/DatasetTags/dataset-tags.scss","src/components/DatasetAdditionalInformation/additional-information-table.scss","src/components/ResourceInformation/resource-information-table.scss","src/templates/Dataset/dataset.scss","src/components/MobileHeader/mobile-header.scss","src/templates/Header/header.scss","src/templates/Footer/footer.scss","src/components/Breadcrumb/breadcrumb.scss","src/templates/FilteredResource/filtered-resource.scss"],"sourcesContent":["nav.dc-c-site-menu .dc-c-header--links a.dc-c-active-link span {\n border-bottom: 2px solid #{var(--color-primary-alt-light)};\n}",".dc-c-search-list-item {\n list-style: none;\n li {\n list-style: none;\n\n a,\n button {\n text-decoration: underline !important;\n }\n a svg,\n span svg {\n fill: #{var(--link__color)};\n }\n }\n svg {\n margin-right: 8px;\n }\n button {\n font-weight: normal !important;\n padding: 0 !important;\n }\n a:visited svg {\n fill: #{var(--link__color--visited)};\n }\n}",".dkan-dataset-search {\n position: relative;\n input {\n min-width: 100%;\n @media only screen and (min-width: 544px) {\n padding-left: 32px;\n }\n }\n .ds-c-field__before {\n left: 16px;\n top: 12px;\n }\n}\n\n.dkan-dataset-search--facet-container {\n ul {\n list-style: none;\n padding-left: 0px;\n }\n}\n\n.dkan-dataset-search--clear-all-filters {\n width: 100%;\n}\n\n.dc-c-search-list-item li a svg,\n.dc-c-search-list-item li span svg {\n fill: #{var(--link__color)};\n}\n\n.dc-c-search-list-item li a:visited svg {\n fill: #{var(--link__color--visited)};\n}\n",".dc-dataset-search-list {\n list-style: none;\n}\n\n.dc-search-header {\n display: relative;\n &::after {\n content: '';\n display: block;\n width: 48px;\n height: 4px;\n margin: 16px 0;\n background-color: #{var(--color-primary-alt-light)};\n }\n}\n\n.dataset-results-count {\n font-weight: bold;\n}\n\n.dkan-dataset-search--facet-container .ds-c-accordion__content {\n max-height: 32rem;\n}\n\n.dc-dataset-search--clear-all-filters {\n width: 100%;\n}\n\n.dkan-dataset-search {\n position: relative;\n input {\n min-width: 100%;\n @media only screen and (min-width: 544px) {\n padding-left: 32px;\n }\n }\n .ds-c-field__before {\n left: 16px;\n top: 12px;\n }\n}",".dc-c-datatable {\n width: 100%;\n border-spacing: 0px;\n th {\n position: relative;\n text-align: left;\n }\n thead th div {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n}\n\n.dc-thead--fixed-size th {\n border-left: 2px solid var(--color-border);\n}\n\n.dc-thead--fixed-size th:first-child {\n border-left: none;\n}\n\n.dc-thead--resizeable {\n .dc-c-resize-handle {\n top: 0;\n bottom: 0;\n right: 0;\n position: absolute;\n background-color: #{var(--color-gray-light)};\n width: 10px;\n cursor: col-resize;\n min-width: 10px;\n display: block;\n margin-left: -10px;\n z-index: 1;\n &.isResizing,\n &:hover {\n background-color: #{var(--color-primary)};\n }\n }\n}\n\n.dc-thead--truncated {\n th span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n display: inline-block;\n }\n}\n\n.dc-c-datatable--even-row td {\n background-color: #{var(--table-striped__background-color)};\n}\n\n.dc-c-sort--default,\n.dc-c-sort--asc,\n.dc-c-sort--desc {\n padding-left: 8px;\n padding-right: 16px;\n &::after {\n font-family: 'Font Awesome 5 Pro';\n display: inline;\n padding-left: 8px;\n line-height: 18px;\n height: 18px;\n width: 18px;\n }\n}\n\n.dc-c-sort--default::after {\n content: '\\f0dc';\n}\n.dc-c-sort--asc::after {\n content: '\\f0de';\n}\n.dc-c-sort--desc::after {\n content: '\\f0dd';\n}\n\n\n// @media (hover: hover) {\n// .resizer {\n// opacity: 0;\n// }\n\n// *:hover > .resizer {\n// opacity: 1;\n// }\n// }",".dc-c-dataset-tags--tag {\n display: inline-block;\n background: #{var(--color-primary-alt-lightest)};\n}\n",".dc-c-additional-info-table {\n table {\n width: 100%;\n }\n}\n\n.dc-c-additional-info-table a {\n word-break: break-all;\n}\n\n.ds-u-word-break-anywhere {\n word-break: break-word;\n overflow-wrap: anywhere;\n}\n",".dc-c-resource-info-table {\n table {\n width: 100%;\n }\n}\n",".dc-resource-header {\n &::before {\n content: '';\n display: block;\n width: 48px;\n height: 4px;\n margin: 8px 0;\n background-color: #{var(--color-primary-alt-light)};\n }\n}\n\n.dc-truncate {\n max-width: 85%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dc-c-metadata-description {\n white-space: pre-line;\n}\n",".dc-c-mobile-header--menu {\n :focus {\n box-shadow: 0 0 0 3px transparent,0 0 4px 6px transparent;\n }\n :focus-visible {\n // Copy styling from DS items with focus\n background-color: #0000;\n border-radius: var(--button__border-radius);\n box-shadow: 0 0 0 3px var(--color-focus-light),0 0 4px 6px var(--color-focus-dark);\n outline: 3px solid #0000;\n outline-offset: 3px;\n }\n}\n",".ds-c-usa-banner__button-text {\n &::after {\n width: 0 !important;\n height: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n}\n\n.dc-c-mobile-menu--open {\n color: #{var(--color-white)};\n text-decoration: none;\n &::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f0c9';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n}\n\n.dc-c-mobile-menu--close {\n color: #{var(--color-white)};\n text-decoration: none;\n padding-left: 0;\n padding-bottom: 16px;\n &::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f00d';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n}\n\n.dc-c-mobile-header--menu {\n position: fixed;\n background-color: #{var(--color-gray-dark)};\n top: 0;\n bottom: 0;\n left: -100%;\n z-index: 500;\n height: 100%;\n width: 100%;\n transition: left 0.7s;\n padding: 50px 0;\n visibility: hidden;\n}\n\n.dc-c-mobile-header .dc-c-site-menu--sub-menu {\n position: relative;\n background: transparent;\n top: -24px;\n width: auto;\n left: auto;\n a {\n padding: 8px;\n }\n}\n\n.dc-c-cmsheader {\n position: relative;\n background: #{var(--color-white)};\n}\n\n.dc-c-cms-mobile-header-menu {\n &::before {\n display: block;\n margin-left: 8px;\n margin-bottom: 16px;\n width: 48px;\n height: 2px;\n background: #{var(--color-primary-alt-light)};\n content: '';\n }\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n a,\n a:hover,\n a:focus,\n a:visited {\n background-color: transparent;\n display: inline-block;\n color: #{var(--color-white)};\n text-decoration: none;\n border-bottom: 2px solid transparent;\n }\n a:hover,\n a:active {\n border-bottom: 2px solid #{var(--color-primary-alt-light)};\n }\n}\n.has-submenu > button::after {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f105';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n}\n.has-submenu.open > button::after {\n content: '\\f107';\n}\n.dc-c-header--mobile-links {\n button {\n padding: 0;\n font-weight: 700;\n }\n a {\n display: block;\n }\n}\n\n.dc-c-mobile-header.menu-open {\n .dc-c-cmsheader {\n z-index: 501;\n background-color: transparent;\n }\n .dc-c-cmsheader-menu a,\n button {\n color: #{var(--color-white)};\n }\n .cms-link-container a::before {\n color: #{var(--color-white)};\n }\n .dc-c-mobile-header--menu {\n left: 0;\n visibility: visible;\n }\n}\n\n.cms-link-container {\n display: block;\n margin-right: 20px;\n // margin-top: -5px;\n border-right: none;\n a {\n text-decoration: none;\n border-bottom: none;\n\n margin-right: 20px;\n display: inline-block;\n }\n a::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f33e';\n color: #323a45;\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n img {\n height: auto;\n width: 90px;\n display: inline-block;\n vertical-align: middle;\n }\n}\n\n.cms-text-container {\n display: block;\n padding-top: 28px;\n color: #6f757c;\n}\n\n.dc-c-cmsheader-menu {\n padding: 0;\n margin: 0;\n li {\n list-style: none;\n }\n a {\n margin: 3px 7px;\n padding: 0;\n color: #323a45;\n text-decoration: none;\n border-bottom: 1px solid;\n border-bottom-color: #eee;\n border-bottom-color: rgba(255, 255, 255, 0.2);\n }\n a:hover,\n a:active {\n border-bottom: 2px solid #323a45;\n }\n}\n\n@media (min-width: 544px) {\n .dc-c-main-navigation--search,\n .dc-c-mobile-menu--search {\n border-left: 1px solid #{var(--color-white)};\n }\n}\n\n@media (min-width: 1024px) {\n .cms-link-container {\n height: 85px;\n width: 240px;\n float: left;\n border-right: 1px solid #d6d7d9;\n a {\n margin-top: 28px;\n margin-bottom: 20px;\n }\n img {\n height: auto;\n width: auto;\n display: inline-block;\n vertical-align: middle;\n max-width: 80%;\n }\n a::before {\n font-size: 28px;\n line-height: 28px;\n width: 28px;\n height: 28px;\n margin-left: 0;\n }\n }\n}\n\n\nnav.dc-c-site-menu {\n .dc-c-header--links {\n padding: 0;\n margin: 0;\n li {\n list-style: none;\n height: 100%;\n }\n button {\n // color: #{var(--color-white)};\n text-decoration: none;\n font-size: 16px;\n border: none;\n span {\n border-bottom: 2px solid transparent;\n }\n }\n a {\n text-decoration: none;\n padding: #{var(--space, 8px 24px)};\n span {\n border-bottom: 2px solid transparent;\n }\n }\n > li:hover > button span,\n > li button:focus span,\n > li button:hover span,\n > li:hover > a span,\n > li:focus > a span,\n > li a:hover span,\n > li a:focus span {\n border-bottom: 2px solid #{var(--color-primary-alt-lightest)};\n }\n }\n}\n\nnav.dc-c-site-menu .dc-c-header--links a:focus,\n.dc-c-site-title a:focus {\n background-color: transparent;\n outline: 3px solid transparent;\n box-shadow: 0 0 0 3px #{var(--color-focus-light)}, 0 0 4px 6px #{var(--color-focus-dark)};\n outline-offset: 3px;\n border-radius: #{var(--button__border-radius)};\n}\n\nnav > ul li ul {\n display: none;\n}\n\nnav > ul li.open ul {\n display: block;\n}\nli.has-submenu {\n position: relative;\n}\n\n.dc-c-site-menu--sub-menu {\n background: #{var(--color-primary)};\n position: absolute;\n left: 0;\n top: 48px;\n margin: 0;\n padding: 0;\n width: 300px;\n a {\n display: block;\n padding: 16px;\n span {\n border-bottom: 2px solid transparent;\n }\n }\n a:hover span,\n a:focus span {\n border-bottom: 2px solid #{var(--color-primary-alt-light)};\n }\n}\n\n.dc-c-site-title a {\n text-decoration: none;\n}\n\n.dc-c-mobile-menu--search {\n display: inherit;\n}\n\n.dc-c-search-modal--button {\n &::before {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f002';\n color: #{var(--color-white)};\n font-size: 18px;\n padding-right: 10px;\n display: inline-block;\n line-height: 18px;\n height: 18px;\n width: 18px;\n margin-left: 10px;\n text-align: center;\n vertical-align: middle;\n font-weight: lighter;\n }\n}\n",".dc-c-footer {\n background-color: white;\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n}\n\n.dc-c-footer--middle-container {\n background: linear-gradient(90deg, #f6f9fd 50%, #e8f0fa 50%);\n}\n\n.dc-c-footer__title {\n font-weight: 400;\n color: #{var(--color-gray)};\n span {\n font-weight: 700;\n }\n}\n\n.dc-c-footer__resources {\n background: #f6f9fd;\n}\n\n.dc-c-footer__utility {\n background: #{var(--color-white)};\n}\n\n.dc-c-footer__utility li {\n list-style: none;\n}\n\n.dc-c-footer__cms-information {\n background: #e8f0fa;\n}\n\n.dc-footer--heading {\n text-transform: uppercase;\n}\n\n.dc-c-emailupdates {\n background-image: linear-gradient(\n 35deg,\n #{var(--color-primary-darkest)},\n #{var(--color-primary-darker)},\n #{var(--color-primary)}\n );\n color: #{var(--color-white)};\n}\n.dc-c-footer--svg-icon {\n width: 40px;\n height: 40px;\n font-size: 42px;\n display: inline-block;\n text-align: center;\n position: relative;\n\n svg.svg-inline--fa {\n width: 1em;\n height: 1em;\n }\n\n .fa-circle {\n fill: #6f757c;\n }\n\n .fa-inverse {\n font-size: 25px;\n padding-left: 2px;\n fill: #{var(--color-white)};\n }\n}\n.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n",".dc-c-breadcrumb__list {\n margin-top: 0;\n margin-bottom: 0;\n list-style-type: none;\n padding-left: 0;\n > li {\n margin-bottom: 0;\n max-width: unset;\n &::after {\n font-family: 'Font Awesome 5 Pro';\n content: '\\f054';\n margin: 0 10px;\n font-size: 10px;\n font-weight: 600;\n }\n &:last-child {\n &::after {\n content: '';\n margin: 0;\n }\n }\n }\n display: block;\n}\n\n.dc-c-breadcrumb__list-item {\n display: inline-block;\n}\n\n.dc-c-breadcrumb__link {\n display: inline;\n}\n",".dc-c-resource-action {\n min-height: 100%;\n}\n\n.dc-filtered-resource-toggle {\n align-self: center;\n}\n\n.dc-c-filterd-resouce-drawer {\n .ds-c-help-drawer__footer {\n h4 {\n display: none;\n }\n }\n}\n\n.dc-c-resource-header--buttons {\n display: flex;\n}\n"],"names":[],"version":3,"file":"main.css.map"}
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
2
|
import {jsxs as $hgUW1$jsxs, jsx as $hgUW1$jsx, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
|
|
3
3
|
import $hgUW1$react, {useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect} from "react";
|
|
4
|
-
import {Button as $hgUW1$Button, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination,
|
|
4
|
+
import {Button as $hgUW1$Button, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Choice as $hgUW1$Choice, Badge as $hgUW1$Badge, Tooltip as $hgUW1$Tooltip, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Dialog as $hgUW1$Dialog, HelpDrawer as $hgUW1$HelpDrawer} from "@cmsgov/design-system";
|
|
5
5
|
import $hgUW1$proptypes from "prop-types";
|
|
6
6
|
import {NavLink as $hgUW1$NavLink, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate} from "react-router-dom";
|
|
7
7
|
import $hgUW1$qs from "qs";
|
|
@@ -11,8 +11,8 @@ import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryCli
|
|
|
11
11
|
import $hgUW1$axios from "axios";
|
|
12
12
|
import $hgUW1$dompurify from "dompurify";
|
|
13
13
|
import $hgUW1$reacttexttruncate from "react-text-truncate";
|
|
14
|
-
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";
|
|
15
|
+
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";
|
|
16
16
|
import {usePopper as $hgUW1$usePopper} from "react-popper";
|
|
17
17
|
import $hgUW1$reactdatepicker from "react-datepicker";
|
|
18
18
|
import "react-datepicker/dist/react-datepicker.css";
|
|
@@ -270,6 +270,152 @@ var $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 = $61ff88fb3f6ee2c8$var$withQueryPr
|
|
|
270
270
|
|
|
271
271
|
|
|
272
272
|
|
|
273
|
+
const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
|
|
274
|
+
switch(props.id){
|
|
275
|
+
case "overview":
|
|
276
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
|
|
277
|
+
width: "16px",
|
|
278
|
+
height: "16px",
|
|
279
|
+
viewBox: "0 0 16 16",
|
|
280
|
+
version: "1.1",
|
|
281
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
282
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
283
|
+
children: [
|
|
284
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("title", {
|
|
285
|
+
children: "Overview Icon"
|
|
286
|
+
}),
|
|
287
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
288
|
+
stroke: "none",
|
|
289
|
+
strokeWidth: "1",
|
|
290
|
+
fillRule: "evenodd",
|
|
291
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
292
|
+
transform: "translate(0.000000, -4.000000)",
|
|
293
|
+
fillRule: "nonzero",
|
|
294
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
295
|
+
transform: "translate(0.000000, -1.000000)",
|
|
296
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("g", {
|
|
297
|
+
transform: "translate(0.000000, 5.000000)",
|
|
298
|
+
children: [
|
|
299
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
300
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
|
|
301
|
+
d: "M9.55610973,15.6404494 C9.31670823,15.8801498 9.02743142,16 8.6882793,16 C8.34912718,16 8.05985037,15.8801498 7.82044888,15.6404494 L0.33915212,8.14981273 C0.206151288,8.01664586 0.116375727,7.87682064 0.0698254364,7.73033708 C0.0232751455,7.58385352 0,7.43071161 0,7.27091136 L0,1.19850187 C0,0.852267998 0.113050707,0.565959218 0.33915212,0.339575531 C0.565253533,0.113191844 0.85120532,0 1.19700748,0 L7.26184539,0 C7.42144638,0 7.58104738,0.0233042031 7.74064838,0.0699126092 C7.90024938,0.116521015 8.04655029,0.206408656 8.17955112,0.339575531 L15.6209476,7.79026217 C15.8736492,8.04327923 16,8.33957553 16,8.67915106 C16,9.01872659 15.8736492,9.31502289 15.6209476,9.56803995 L9.55610973,15.6404494 Z M8.75953079,15 L15,8.75953079 L7.24046921,1 L1,1 L1,7.24046921 L8.75953079,15 Z M3,4 C3.26923077,4 3.50320513,3.90064103 3.70192308,3.70192308 C3.90064103,3.50320513 4,3.26923077 4,3 C4,2.73076923 3.90064103,2.49679487 3.70192308,2.29807692 C3.50320513,2.09935897 3.26923077,2 3,2 C2.73076923,2 2.49679487,2.09935897 2.29807692,2.29807692 C2.09935897,2.49679487 2,2.73076923 2,3 C2,3.26923077 2.09935897,3.50320513 2.29807692,3.70192308 C2.49679487,3.90064103 2.73076923,4 3,4 L3,4 Z"
|
|
302
|
+
})
|
|
303
|
+
}),
|
|
304
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
305
|
+
transform: "translate(7.890470, 8.890470) rotate(45.000000) translate(-7.890470, -8.890470) translate(3.543164, 6.321607)",
|
|
306
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
|
|
307
|
+
d: "M6.16557222,4.98656515 C6.09634145,5.05213515 6.01557222,5.08309876 5.92326452,5.07945598 C5.83095683,5.07581321 5.7501876,5.04120682 5.68095683,4.97563682 C5.61172606,4.91006682 5.57711068,4.8317471 5.57711068,4.74067766 C5.57711068,4.64960821 5.61172606,4.57128849 5.68095683,4.50571849 L7.72326452,2.57140353 L5.69249529,0.648016895 C5.62326452,0.582446896 5.59057222,0.504127176 5.59441837,0.413057733 C5.59826452,0.32198829 5.63480299,0.243668569 5.70403375,0.17809857 C5.77326452,0.112528571 5.85595683,0.0797435719 5.95211068,0.0797435719 C6.04826452,0.0797435719 6.13095683,0.112528571 6.2001876,0.17809857 L8.47326452,2.34190853 C8.54249529,2.40747853 8.57711068,2.48397686 8.57711068,2.57140353 C8.57711068,2.65883019 8.54249529,2.73532853 8.47326452,2.80089852 L6.16557222,4.98656515 Z M2.29670341,4.98413866 L0.0208413435,2.82877761 C-0.0481241737,2.7631321 -0.0826069324,2.68654566 -0.0826069324,2.59901831 C-0.0826069324,2.51149096 -0.0481241737,2.43490453 0.0208413435,2.36925901 L2.31969192,0.181075204 C2.38865744,0.115429689 2.47103291,0.0826069324 2.56681835,0.0826069324 C2.6626038,0.0826069324 2.74497927,0.115429689 2.81394479,0.181075204 C2.88291031,0.246720718 2.91739307,0.325130638 2.91739307,0.416304963 C2.91739307,0.507479288 2.88291031,0.585889208 2.81394479,0.651534722 L0.76796778,2.59901831 L2.79095629,4.52462006 C2.8599218,4.59026558 2.89440456,4.66685201 2.89440456,4.75437936 C2.89440456,4.84190671 2.8599218,4.91849315 2.79095629,4.98413866 C2.72199077,5.04978418 2.63961529,5.08260693 2.54382985,5.08260693 C2.44804441,5.08260693 2.36566893,5.04978418 2.29670341,4.98413866 L2.29670341,4.98413866 Z"
|
|
308
|
+
})
|
|
309
|
+
})
|
|
310
|
+
]
|
|
311
|
+
})
|
|
312
|
+
})
|
|
313
|
+
})
|
|
314
|
+
})
|
|
315
|
+
]
|
|
316
|
+
});
|
|
317
|
+
case "data-table":
|
|
318
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
|
|
319
|
+
width: "16px",
|
|
320
|
+
height: "12px",
|
|
321
|
+
viewBox: "0 0 16 12",
|
|
322
|
+
version: "1.1",
|
|
323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
325
|
+
children: [
|
|
326
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("title", {
|
|
327
|
+
children: "Data Table Icon"
|
|
328
|
+
}),
|
|
329
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
330
|
+
stroke: "none",
|
|
331
|
+
strokeWidth: "1",
|
|
332
|
+
fillRule: "evenodd",
|
|
333
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
334
|
+
transform: "translate(-132.000000, -6.000000)",
|
|
335
|
+
fillRule: "nonzero",
|
|
336
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
337
|
+
transform: "translate(132.000000, -1.000000)",
|
|
338
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
339
|
+
transform: "translate(8.000000, 13.000000) scale(1, -1) translate(-8.000000, -13.000000) translate(0.000000, 7.000000)",
|
|
340
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
|
|
341
|
+
d: "M0,12 L0,0 L16,0 L16,12 L0,12 Z M1,10 L5,10 L5,1 L1,1 L1,10 Z M6,10 L10,10 L10,1 L6,1 L6,10 Z M11,10 L15,10 L15,1 L11,1 L11,10 Z"
|
|
342
|
+
})
|
|
343
|
+
})
|
|
344
|
+
})
|
|
345
|
+
})
|
|
346
|
+
})
|
|
347
|
+
]
|
|
348
|
+
});
|
|
349
|
+
case "api":
|
|
350
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
|
|
351
|
+
width: "16px",
|
|
352
|
+
height: "13px",
|
|
353
|
+
viewBox: "0 0 16 13",
|
|
354
|
+
version: "1.1",
|
|
355
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
356
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
357
|
+
children: [
|
|
358
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("title", {
|
|
359
|
+
children: "API Icon"
|
|
360
|
+
}),
|
|
361
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
362
|
+
stroke: "none",
|
|
363
|
+
strokeWidth: "1",
|
|
364
|
+
fillRule: "evenodd",
|
|
365
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
366
|
+
transform: "translate(-279.000000, -6.000000)",
|
|
367
|
+
fillRule: "nonzero",
|
|
368
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
369
|
+
transform: "translate(279.000000, -1.000000)",
|
|
370
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
371
|
+
transform: "translate(0.000000, 7.000000)",
|
|
372
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
|
|
373
|
+
d: "M10.5806452,13 C10.4129032,13 10.2741935,12.9424479 10.1645161,12.8273438 C10.0548387,12.7122396 10,12.5666667 10,12.390625 C10,12.2145833 10.0548387,12.0690104 10.1645161,11.9539062 C10.2741935,11.8388021 10.4129032,11.78125 10.5806452,11.78125 L12.3225806,11.78125 C12.5935484,11.78125 12.8225806,11.6830729 13.0096774,11.4867188 C13.1967742,11.2903646 13.2903226,11.05 13.2903226,10.765625 L13.2903226,8.734375 C13.2903226,8.23333333 13.4354839,7.78645833 13.7258065,7.39375 C14.016129,7.00104167 14.3870968,6.73020833 14.8387097,6.58125 L14.8387097,6.41875 C14.3870968,6.28333333 14.016129,6.01588542 13.7258065,5.61640625 C13.4354839,5.21692708 13.2903226,4.76666667 13.2903226,4.265625 L13.2903226,2.234375 C13.2903226,1.95 13.1967742,1.70963542 13.0096774,1.51328125 C12.8225806,1.31692708 12.5935484,1.21875 12.3225806,1.21875 L10.5806452,1.21875 C10.4129032,1.21875 10.2741935,1.16119792 10.1645161,1.04609375 C10.0548387,0.930989583 10,0.785416667 10,0.609375 C10,0.433333333 10.0548387,0.287760417 10.1645161,0.17265625 C10.2741935,0.0575520833 10.4129032,8.8817842e-16 10.5806452,8.8817842e-16 L12.3225806,8.8817842e-16 C12.916129,8.8817842e-16 13.4193548,0.216666667 13.8322581,0.65 C14.2451613,1.08333333 14.4516129,1.61145833 14.4516129,2.234375 L14.4516129,4.265625 C14.4516129,4.55 14.5451613,4.79036458 14.7322581,4.98671875 C14.9193548,5.18307292 15.1483871,5.28125 15.4193548,5.28125 C15.5870968,5.28125 15.7258065,5.33880208 15.8354839,5.45390625 C15.9451613,5.56901042 16,5.71458333 16,5.890625 L16,7.109375 C16,7.271875 15.9451613,7.4140625 15.8354839,7.5359375 C15.7258065,7.6578125 15.5870968,7.71875 15.4193548,7.71875 C15.1483871,7.71875 14.9193548,7.81692708 14.7322581,8.01328125 C14.5451613,8.20963542 14.4516129,8.45 14.4516129,8.734375 L14.4516129,10.765625 C14.4516129,11.3885417 14.2451613,11.9166667 13.8322581,12.35 C13.4193548,12.7833333 12.916129,13 12.3225806,13 L10.5806452,13 Z M3.67741935,13 C3.08387097,13 2.58064516,12.7833333 2.16774194,12.35 C1.75483871,11.9166667 1.5483871,11.3885417 1.5483871,10.765625 L1.5483871,8.734375 C1.5483871,8.45 1.45483871,8.20963542 1.26774194,8.01328125 C1.08064516,7.81692708 0.851612903,7.71875 0.580645161,7.71875 C0.425806452,7.71875 0.290322581,7.6578125 0.174193548,7.5359375 C0.0580645161,7.4140625 3.52606833e-13,7.271875 3.52606833e-13,7.109375 L3.52606833e-13,5.890625 C3.52606833e-13,5.71458333 0.0580645161,5.56901042 0.174193548,5.45390625 C0.290322581,5.33880208 0.425806452,5.28125 0.580645161,5.28125 C0.851612903,5.28125 1.08064516,5.18307292 1.26774194,4.98671875 C1.45483871,4.79036458 1.5483871,4.55 1.5483871,4.265625 L1.5483871,2.234375 C1.5483871,1.61145833 1.75483871,1.08333333 2.16774194,0.65 C2.58064516,0.216666667 3.08387097,8.8817842e-16 3.67741935,8.8817842e-16 L5.41935484,8.8817842e-16 C5.58709677,8.8817842e-16 5.72580645,0.0575520833 5.83548387,0.17265625 C5.94516129,0.287760417 6,0.433333333 6,0.609375 C6,0.785416667 5.94516129,0.930989583 5.83548387,1.04609375 C5.72580645,1.16119792 5.58709677,1.21875 5.41935484,1.21875 L3.67741935,1.21875 C3.40645161,1.21875 3.17741935,1.31692708 2.99032258,1.51328125 C2.80322581,1.70963542 2.70967742,1.95 2.70967742,2.234375 L2.70967742,4.265625 C2.70967742,4.76666667 2.56451613,5.21692708 2.27419355,5.61640625 C1.98387097,6.01588542 1.61290323,6.28333333 1.16129032,6.41875 L1.16129032,6.58125 C1.61290323,6.73020833 1.98387097,7.00104167 2.27419355,7.39375 C2.56451613,7.78645833 2.70967742,8.23333333 2.70967742,8.734375 L2.70967742,10.765625 C2.70967742,11.05 2.80322581,11.2903646 2.99032258,11.4867188 C3.17741935,11.6830729 3.40645161,11.78125 3.67741935,11.78125 L5.41935484,11.78125 C5.58709677,11.78125 5.72580645,11.8388021 5.83548387,11.9539062 C5.94516129,12.0690104 6,12.2145833 6,12.390625 C6,12.5666667 5.94516129,12.7122396 5.83548387,12.8273438 C5.72580645,12.9424479 5.58709677,13 5.41935484,13 L3.67741935,13 Z"
|
|
374
|
+
})
|
|
375
|
+
})
|
|
376
|
+
})
|
|
377
|
+
})
|
|
378
|
+
})
|
|
379
|
+
]
|
|
380
|
+
});
|
|
381
|
+
case "download":
|
|
382
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
|
|
383
|
+
width: "16px",
|
|
384
|
+
height: "16px",
|
|
385
|
+
viewBox: "0 0 16 16",
|
|
386
|
+
version: "1.1",
|
|
387
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
388
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
389
|
+
children: [
|
|
390
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("title", {
|
|
391
|
+
children: "Download Icon"
|
|
392
|
+
}),
|
|
393
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
394
|
+
stroke: "none",
|
|
395
|
+
strokeWidth: "1",
|
|
396
|
+
fillRule: "evenodd",
|
|
397
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
398
|
+
transform: "translate(-370.000000, -4.000000)",
|
|
399
|
+
fillRule: "nonzero",
|
|
400
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
|
|
401
|
+
transform: "translate(370.000000, -1.000000)",
|
|
402
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
|
|
403
|
+
d: "M9,6 C9,5.446875 8.553125,5 8,5 C7.446875,5 7,5.446875 7,6 L7,13.584375 L4.70625,11.290625 C4.315625,10.9 3.68125,10.9 3.290625,11.290625 C2.9,11.68125 2.9,12.315625 3.290625,12.70625 L7.290625,16.70625 C7.68125,17.096875 8.315625,17.096875 8.70625,16.70625 L12.70625,12.70625 C13.096875,12.315625 13.096875,11.68125 12.70625,11.290625 C12.315625,10.9 11.68125,10.9 11.290625,11.290625 L9,13.584375 L9,6 Z M2,16 C0.896875,16 0,16.896875 0,18 L0,19 C0,20.103125 0.896875,21 2,21 L14,21 C15.103125,21 16,20.103125 16,19 L16,18 C16,16.896875 15.103125,16 14,16 L10.828125,16 L9.4125,17.415625 C8.63125,18.196875 7.365625,18.196875 6.584375,17.415625 L5.171875,16 L2,16 Z M13.5,19.25 C13.084375,19.25 12.75,18.915625 12.75,18.5 C12.75,18.084375 13.084375,17.75 13.5,17.75 C13.915625,17.75 14.25,18.084375 14.25,18.5 C14.25,18.915625 13.915625,19.25 13.5,19.25 Z"
|
|
404
|
+
})
|
|
405
|
+
})
|
|
406
|
+
})
|
|
407
|
+
})
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
default:
|
|
411
|
+
return null;
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemIcon;
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
273
419
|
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date , options: options })=>{
|
|
274
420
|
const rawDate = new Date(date);
|
|
275
421
|
let modifiedDate = "";
|
|
@@ -290,77 +436,138 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
|
|
|
290
436
|
|
|
291
437
|
|
|
292
438
|
|
|
293
|
-
const $
|
|
439
|
+
const $52c6454cae137465$var$dangerousDescriptionElement = ({ children: children })=>/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
294
440
|
dangerouslySetInnerHTML: {
|
|
295
441
|
__html: (0, $hgUW1$dompurify).sanitize(children)
|
|
296
442
|
}
|
|
297
443
|
});
|
|
298
|
-
const $
|
|
299
|
-
const
|
|
444
|
+
const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
445
|
+
const desktop = (0, $hgUW1$useMediaQuery)({
|
|
446
|
+
minWidth: 1024
|
|
447
|
+
});
|
|
448
|
+
const { title: title , modified: modified , description: description , theme: theme , identifier: identifier , downloadUrl: downloadUrl , largeFile: largeFile = false } = props;
|
|
449
|
+
let linkContainerClasses = "ds-l-col--12 ds-u-margin-bottom--2";
|
|
450
|
+
let linkClasses = "ds-c-button ds-u-display--block ds-u-text-align--left";
|
|
451
|
+
if (desktop) {
|
|
452
|
+
linkContainerClasses = "ds-l-col--auto";
|
|
453
|
+
linkClasses = "ds-u-display--block ds-u-text-align--left";
|
|
454
|
+
}
|
|
300
455
|
const truncatedDescription = /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$reacttexttruncate), {
|
|
301
456
|
line: 3,
|
|
302
457
|
element: "p",
|
|
303
458
|
containerClassName: "ds-u-margin-top--0",
|
|
304
459
|
truncateText: "…",
|
|
305
|
-
textElement: $
|
|
460
|
+
textElement: $52c6454cae137465$var$dangerousDescriptionElement,
|
|
306
461
|
text: description,
|
|
307
462
|
textTruncateChild: ""
|
|
308
463
|
});
|
|
309
|
-
return /*#__PURE__*/ (0, $hgUW1$
|
|
310
|
-
className: "dc-
|
|
311
|
-
children:
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
className: "ds-
|
|
319
|
-
children:
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"Updated ",
|
|
332
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
|
|
333
|
-
date: modified
|
|
464
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
465
|
+
className: "dc-c-search-list-item",
|
|
466
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
467
|
+
className: "dc-c-searchlist-item ds-u-border-top--1 ds-u-margin-bottom--4",
|
|
468
|
+
children: [
|
|
469
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
470
|
+
className: "ds-l-row ds-u-align-items--start",
|
|
471
|
+
children: [
|
|
472
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
473
|
+
className: "ds-l-col--12 ds-u-text-align--right ds-u-padding-top--2",
|
|
474
|
+
children: [
|
|
475
|
+
"Updated ",
|
|
476
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
|
|
477
|
+
date: modified
|
|
478
|
+
})
|
|
479
|
+
]
|
|
480
|
+
}),
|
|
481
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
482
|
+
className: "ds-l-col--12",
|
|
483
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
|
|
484
|
+
to: `/dataset/${identifier}`,
|
|
485
|
+
children: title
|
|
334
486
|
})
|
|
335
|
-
|
|
487
|
+
})
|
|
488
|
+
]
|
|
489
|
+
}),
|
|
490
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
491
|
+
className: "ds-l-row",
|
|
492
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
493
|
+
className: "ds-l-col--12 ds-l-md-col--12",
|
|
494
|
+
children: truncatedDescription
|
|
336
495
|
})
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
496
|
+
}),
|
|
497
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
|
|
498
|
+
className: "ds-l-row ds-u-padding--0",
|
|
499
|
+
children: [
|
|
500
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
501
|
+
className: linkContainerClasses,
|
|
502
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
503
|
+
className: linkClasses,
|
|
504
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
505
|
+
to: `/dataset/${identifier}#overview`,
|
|
506
|
+
children: [
|
|
507
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
508
|
+
id: "overview"
|
|
509
|
+
}),
|
|
510
|
+
"Overview"
|
|
511
|
+
]
|
|
512
|
+
})
|
|
513
|
+
})
|
|
514
|
+
}),
|
|
515
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
516
|
+
className: linkContainerClasses,
|
|
517
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
518
|
+
className: linkClasses,
|
|
519
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
520
|
+
to: `/dataset/${identifier}#data-table`,
|
|
521
|
+
children: [
|
|
522
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
523
|
+
id: "data-table"
|
|
524
|
+
}),
|
|
525
|
+
"Data Table"
|
|
526
|
+
]
|
|
527
|
+
})
|
|
528
|
+
})
|
|
529
|
+
}),
|
|
530
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
531
|
+
className: linkContainerClasses,
|
|
532
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
533
|
+
className: linkClasses,
|
|
534
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
535
|
+
to: `/dataset/${identifier}#api`,
|
|
536
|
+
children: [
|
|
537
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
538
|
+
id: "api"
|
|
539
|
+
}),
|
|
540
|
+
"API"
|
|
541
|
+
]
|
|
542
|
+
})
|
|
356
543
|
})
|
|
357
|
-
},
|
|
544
|
+
}),
|
|
545
|
+
downloadUrl ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
546
|
+
className: linkContainerClasses,
|
|
547
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
548
|
+
className: linkClasses,
|
|
549
|
+
children: largeFile ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
550
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
551
|
+
id: "download"
|
|
552
|
+
})
|
|
553
|
+
}) : /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
|
|
554
|
+
href: downloadUrl,
|
|
555
|
+
children: [
|
|
556
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
557
|
+
id: "download"
|
|
558
|
+
}),
|
|
559
|
+
"Download"
|
|
560
|
+
]
|
|
561
|
+
})
|
|
562
|
+
})
|
|
563
|
+
}) : ""
|
|
564
|
+
]
|
|
358
565
|
})
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
});
|
|
566
|
+
]
|
|
567
|
+
})
|
|
568
|
+
}, identifier);
|
|
362
569
|
};
|
|
363
|
-
var $
|
|
570
|
+
var $52c6454cae137465$export$2e2bcd8739ae039 = $52c6454cae137465$var$DatasetSearchListItem;
|
|
364
571
|
|
|
365
572
|
|
|
366
573
|
|
|
@@ -531,7 +738,7 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
|
|
|
531
738
|
|
|
532
739
|
|
|
533
740
|
const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
534
|
-
const { rootUrl: rootUrl , surveyLink: surveyLink , additionalParams: additionalParams , enableSort: enableSort , defaultSort: defaultSort , pageTitle: pageTitle , filterTitle: filterTitle , showLargeFileWarning: showLargeFileWarning , introText: introText } = props;
|
|
741
|
+
const { rootUrl: rootUrl , surveyLink: surveyLink , additionalParams: additionalParams , enableSort: enableSort , defaultSort: defaultSort , pageTitle: pageTitle , filterTitle: filterTitle , showLargeFileWarning: showLargeFileWarning , introText: introText , showDownloadIcon: showDownloadIcon } = props;
|
|
535
742
|
const sortOptions = [
|
|
536
743
|
{
|
|
537
744
|
label: "Newest",
|
|
@@ -818,13 +1025,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
818
1025
|
}),
|
|
819
1026
|
data && Object.keys(data.data.results).map((key)=>{
|
|
820
1027
|
return data.data.results[key];
|
|
821
|
-
}).map((item)
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
1028
|
+
}).map((item)=>{
|
|
1029
|
+
function getDownloadUrl(item) {
|
|
1030
|
+
let distribution_array = item.distribution ? item.distribution : [];
|
|
1031
|
+
return distribution_array.length ? item.distribution[0].downloadURL : null;
|
|
1032
|
+
}
|
|
1033
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $52c6454cae137465$export$2e2bcd8739ae039), {
|
|
1034
|
+
title: item.title,
|
|
1035
|
+
modified: item.modified,
|
|
1036
|
+
description: item.description,
|
|
1037
|
+
theme: item.theme,
|
|
1038
|
+
identifier: item.identifier,
|
|
1039
|
+
downloadUrl: showDownloadIcon ? getDownloadUrl(item) : null,
|
|
1040
|
+
largeFile: item.theme && item.theme.includes("General Payments")
|
|
1041
|
+
});
|
|
1042
|
+
})
|
|
828
1043
|
]
|
|
829
1044
|
}),
|
|
830
1045
|
data && data.data.total != 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
|
|
@@ -882,7 +1097,8 @@ $e873081a6e8f024e$var$DatasetSearch.defaultProps = {
|
|
|
882
1097
|
defaultSort: "modified",
|
|
883
1098
|
defaultOrder: "desc"
|
|
884
1099
|
},
|
|
885
|
-
showLargeFileWarning: false
|
|
1100
|
+
showLargeFileWarning: false,
|
|
1101
|
+
showDownloadIcon: false
|
|
886
1102
|
};
|
|
887
1103
|
var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($e873081a6e8f024e$var$DatasetSearch);
|
|
888
1104
|
|
|
@@ -4669,5 +4885,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
|
|
|
4669
4885
|
|
|
4670
4886
|
|
|
4671
4887
|
|
|
4672
|
-
export {$f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $6e7bdcbebdb4b794$export$2e2bcd8739ae039 as Dataset, $a5a6a06d249c33b8$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $
|
|
4888
|
+
export {$f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $6e7bdcbebdb4b794$export$2e2bcd8739ae039 as Dataset, $a5a6a06d249c33b8$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $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, $f29607dfa784d2bd$export$2e2bcd8739ae039 as ResourceFilter, $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, $68d79598b83f3382$export$2e2bcd8739ae039 as useMetastoreDataset, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults};
|
|
4673
4889
|
//# sourceMappingURL=main.js.map
|