@civicactions/cmsds-open-data-components 4.0.6-alpha.0 → 4.0.6-oe

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./main.css";
2
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, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, Choice as $hgUW1$Choice, Dropdown as $hgUW1$Dropdown, Pagination as $hgUW1$Pagination, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, ExternalLinkIcon as $hgUW1$ExternalLinkIcon, Badge as $hgUW1$Badge} from "@cmsgov/design-system";
3
+ import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, Choice as $hgUW1$Choice, Dropdown as $hgUW1$Dropdown, Pagination as $hgUW1$Pagination, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, Badge as $hgUW1$Badge} from "@cmsgov/design-system";
4
4
  import $hgUW1$react, {createContext as $hgUW1$createContext, useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect, useContext as $hgUW1$useContext, useMemo as $hgUW1$useMemo, useCallback as $hgUW1$useCallback} from "react";
5
5
  import {NavLink as $hgUW1$NavLink, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams} from "react-router-dom";
6
6
  import $hgUW1$qs from "qs";
@@ -41,7 +41,7 @@ function $e49d4387bed21287$export$2e2bcd8739ae039() {
41
41
  /*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
42
42
  children: "offset"
43
43
  }),
44
- ' ',
44
+ " ",
45
45
  "parameters to iterate through result sets that are larger than the row limit when running queries against the datastore API."
46
46
  ]
47
47
  })
@@ -72,7 +72,7 @@ var $3c72c298c3a7f21f$export$2e2bcd8739ae039 = $3c72c298c3a7f21f$var$HeaderTagli
72
72
  const $1555e1cb3eb7b3e3$var$HeaderNavIconLink = (props)=>{
73
73
  const { url: url, urlTitle: urlTitle, logoFilePath: logoFilePath, logoAltText: logoAltText, backArrow: backArrow } = props;
74
74
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
75
- className: `dkan-c-header-nav-icon-link ${backArrow ? 'show-back-arrow' : ''} ds-u-valign--middle `,
75
+ className: `dkan-c-header-nav-icon-link ${backArrow ? "show-back-arrow" : ""} ds-u-valign--middle `,
76
76
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
77
77
  href: url,
78
78
  title: urlTitle,
@@ -232,7 +232,7 @@ const $046ded0064bd0a3d$var$FAQAccordion = (props)=>{
232
232
  type: "button",
233
233
  variation: "ghost",
234
234
  onClick: ()=>toggleAll(),
235
- children: `${expanded ? 'Collapse' : 'Expand'} all FAQs`
235
+ children: `${expanded ? "Collapse" : "Expand"} all FAQs`
236
236
  }),
237
237
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Accordion), {
238
238
  children: faqItems.map((faq)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$AccordionItem), {
@@ -333,8 +333,8 @@ const $844981eac9b63865$export$eccc29c8d0ff408 = (0, $hgUW1$createContext)({
333
333
 
334
334
 
335
335
  const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 4, defaultSort: defaultSort = {
336
- defaultSort: 'modified',
337
- defaultOrder: 'desc'
336
+ defaultSort: "modified",
337
+ defaultOrder: "desc"
338
338
  }, subLinkClasses: subLinkClasses })=>{
339
339
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
340
340
  const [currentResultNumbers, setCurrentResultNumbers] = (0, $hgUW1$useState)({
@@ -354,8 +354,8 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
354
354
  ]);
355
355
  let params = {
356
356
  sort: defaultSort.defaultSort,
357
- ['sort-order']: defaultSort.defaultOrder,
358
- ['page-size']: defaultPageSize
357
+ ["sort-order"]: defaultSort.defaultOrder,
358
+ ["page-size"]: defaultPageSize
359
359
  };
360
360
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
361
361
  queryKey: [
@@ -364,7 +364,7 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
364
364
  ],
365
365
  queryFn: ()=>{
366
366
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
367
- arrayFormat: 'comma',
367
+ arrayFormat: "comma",
368
368
  encode: false
369
369
  })}`);
370
370
  }
@@ -507,11 +507,11 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
507
507
  function handleFocusOut(event) {
508
508
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
509
509
  }
510
- document.addEventListener('mousedown', handleClickOutside);
511
- currentMenu?.addEventListener('focusout', handleFocusOut);
510
+ document.addEventListener("mousedown", handleClickOutside);
511
+ currentMenu?.addEventListener("focusout", handleFocusOut);
512
512
  return ()=>{
513
- document.removeEventListener('mousedown', handleClickOutside);
514
- if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
513
+ document.removeEventListener("mousedown", handleClickOutside);
514
+ if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
515
515
  };
516
516
  }, [
517
517
  isExpanded
@@ -533,7 +533,7 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
533
533
  }
534
534
  }
535
535
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
536
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
536
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
537
537
  ref: menu,
538
538
  children: [
539
539
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -569,12 +569,12 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
569
569
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
570
570
  const { headingText: headingText = "Dataset Search" } = props;
571
571
  const navigate = (0, $hgUW1$useNavigate)();
572
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
572
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
573
573
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
574
574
  function searchForDataset(e) {
575
575
  e.preventDefault();
576
576
  if (window) {
577
- if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
577
+ if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
578
578
  else {
579
579
  window.location.search = `fulltext=${modalSearchTerm}`;
580
580
  setModalSearch(false);
@@ -642,9 +642,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
642
642
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
643
643
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
644
644
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
645
- const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? 'mobile' : 'desktop'}`;
646
- const linkClasses = 'dkan-c-header--link ds-c-button ds-c-button--ghost';
647
- const listClasses = 'dkan-c-header--link-list ';
645
+ const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? "mobile" : "desktop"}`;
646
+ const linkClasses = "dkan-c-header--link ds-c-button ds-c-button--ghost";
647
+ const listClasses = "dkan-c-header--link-list ";
648
648
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
649
649
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
650
650
  ref: headerContext.menuRef,
@@ -814,8 +814,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
814
814
  const { title: title, links: links, mobileMax: mobileMax } = props;
815
815
  const active = (0, $hgUW1$useLocation)().pathname;
816
816
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
817
- const styleClasses = 'dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2';
818
- const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? 'mobile' : 'desktop'}`;
817
+ const styleClasses = "dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2";
818
+ const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? "mobile" : "desktop"}`;
819
819
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
820
820
  className: `dkan-c-sidebar-nav ${mobileClass}`,
821
821
  children: [
@@ -829,7 +829,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
829
829
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
830
830
  "aria-haspopup": "true",
831
831
  variation: "ghost",
832
- "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
832
+ "aria-expanded": `${menuOpen ? "true" : "false"}`,
833
833
  onDark: true,
834
834
  onClick: ()=>setMenuOpen(!menuOpen),
835
835
  children: [
@@ -838,7 +838,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
838
838
  children: "Toggle menu"
839
839
  }),
840
840
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
841
- direction: menuOpen ? 'up' : 'down'
841
+ direction: menuOpen ? "up" : "down"
842
842
  })
843
843
  ]
844
844
  })
@@ -847,7 +847,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
847
847
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
848
848
  className: ``,
849
849
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
850
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
850
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
851
851
  children: [
852
852
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
853
853
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -859,7 +859,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
859
859
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
860
860
  className: "ds-u-padding-bottom--2",
861
861
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
862
- className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? 'active' : ''}`,
862
+ className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? "active" : ""}`,
863
863
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
864
864
  className: "ds-u-display--flex ds-u-padding-y--1",
865
865
  children: [
@@ -894,12 +894,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
894
894
  query: `(max-width: ${mobileMaxWidth}px)`
895
895
  });
896
896
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
897
- className: `${mobileMax ? "a" : 'ds-l-container'}`,
897
+ className: `${mobileMax ? "a" : "ds-l-container"}`,
898
898
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
899
- className: `${mobileMax ? "a" : 'ds-l-row'}`,
899
+ className: `${mobileMax ? "a" : "ds-l-row"}`,
900
900
  children: [
901
901
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
902
- className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
902
+ className: `${mobileMax ? "a" : "ds-l-col--4"}`,
903
903
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
904
904
  links: links,
905
905
  title: menuTitle,
@@ -922,9 +922,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
922
922
 
923
923
 
924
924
 
925
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
925
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
926
926
  const navigate = (0, $hgUW1$useNavigate)();
927
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
927
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
928
928
  function submitHero(e) {
929
929
  e.preventDefault();
930
930
  navigate(`/${searchUrl}?${searchKey}=${searchValue}`);
@@ -951,24 +951,24 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
951
951
  onSubmit: (e)=>submitHero(e),
952
952
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
953
953
  style: {
954
- position: 'relative'
954
+ position: "relative"
955
955
  },
956
956
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
957
957
  children: [
958
958
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
959
959
  className: "ds-u-padding--0 ds-u-margin-right--1",
960
960
  style: {
961
- flex: '1 1 100%',
962
- maxWidth: '100%'
961
+ flex: "1 1 100%",
962
+ maxWidth: "100%"
963
963
  },
964
964
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
965
965
  label: textfieldLabel,
966
966
  labelClassName: "ds-u-visibility--screen-reader",
967
967
  name: "search_text_input",
968
968
  style: {
969
- maxWidth: 'none',
970
- height: '61px',
971
- margin: '0 20px 0 0'
969
+ maxWidth: "none",
970
+ height: "61px",
971
+ margin: "0 20px 0 0"
972
972
  },
973
973
  onChange: (e)=>setSearchValue(e.target.value)
974
974
  })
@@ -1006,14 +1006,14 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
1006
1006
 
1007
1007
 
1008
1008
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1009
- year: 'numeric',
1010
- month: 'long',
1011
- day: 'numeric',
1012
- timeZone: 'UTC'
1009
+ year: "numeric",
1010
+ month: "long",
1011
+ day: "numeric",
1012
+ timeZone: "UTC"
1013
1013
  } })=>{
1014
1014
  const rawDate = new Date(date);
1015
- let modifiedDate = '';
1016
- if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
1015
+ let modifiedDate = "";
1016
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1017
1017
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1018
1018
  children: modifiedDate
1019
1019
  });
@@ -1027,25 +1027,25 @@ const $c068004d499082cc$var$DatasetListItem = (props)=>{
1027
1027
  minWidth: 1024
1028
1028
  });
1029
1029
  const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1030
- let linkContainerClasses = 'ds-u-margin-bottom--2';
1031
- if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1032
- else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1033
- let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1030
+ let linkContainerClasses = "ds-u-margin-bottom--2";
1031
+ if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1032
+ else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1033
+ let linkClasses = "ds-u-display--block ds-u-text-align--left";
1034
1034
  if (desktop) {
1035
- linkContainerClasses = 'ds-u-padding-x--0';
1036
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1035
+ linkContainerClasses = "ds-u-padding-x--0";
1036
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1037
1037
  }
1038
1038
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1039
1039
  className: "dc-c-list-item ds-u-padding-top--4",
1040
1040
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1041
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1041
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1042
1042
  children: [
1043
1043
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1044
1044
  className: "ds-l-row ds-u-align-items--start",
1045
1045
  children: [
1046
1046
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1047
1047
  id: `dataset-${identifier}-updated-date`,
1048
- 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'}`,
1048
+ 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"}`,
1049
1049
  children: [
1050
1050
  "Updated ",
1051
1051
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -1103,7 +1103,7 @@ var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetList
1103
1103
 
1104
1104
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1105
1105
  switch(props.id){
1106
- case 'overview':
1106
+ case "overview":
1107
1107
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1108
1108
  width: "16px",
1109
1109
  height: "16px",
@@ -1146,7 +1146,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1146
1146
  })
1147
1147
  ]
1148
1148
  });
1149
- case 'data-table':
1149
+ case "data-table":
1150
1150
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1151
1151
  width: "16px",
1152
1152
  height: "12px",
@@ -1179,7 +1179,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1179
1179
  })
1180
1180
  ]
1181
1181
  });
1182
- case 'api':
1182
+ case "api":
1183
1183
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1184
1184
  width: "16px",
1185
1185
  height: "13px",
@@ -1212,7 +1212,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1212
1212
  })
1213
1213
  ]
1214
1214
  });
1215
- case 'download':
1215
+ case "download":
1216
1216
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1217
1217
  width: "16px",
1218
1218
  height: "16px",
@@ -1242,7 +1242,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1242
1242
  })
1243
1243
  ]
1244
1244
  });
1245
- case 'data-dictionary':
1245
+ case "data-dictionary":
1246
1246
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1247
1247
  width: "14px",
1248
1248
  height: "16px",
@@ -1345,13 +1345,13 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1345
1345
 
1346
1346
 
1347
1347
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
1348
- if (!textString) return '';
1348
+ if (!textString) return "";
1349
1349
  let cleanedText = textString;
1350
- if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
1351
- if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
1350
+ if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
1351
+ if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
1352
1352
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
1353
- 'length': textLength,
1354
- 'separator': ' '
1353
+ "length": textLength,
1354
+ "separator": " "
1355
1355
  });
1356
1356
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
1357
1357
  ALLOWED_TAGS: []
@@ -1369,9 +1369,9 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
1369
1369
  const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1370
1370
  const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
1371
1371
  const dateText = {
1372
- modified: 'Last Modified',
1373
- released: 'Released',
1374
- refresh: 'Planned Update'
1372
+ modified: "Last Modified",
1373
+ released: "Released",
1374
+ refresh: "Planned Update"
1375
1375
  };
1376
1376
  const tooltipContent = {
1377
1377
  modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -1408,7 +1408,7 @@ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1408
1408
  })
1409
1409
  };
1410
1410
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1411
- className: `dataset-date-item${boldLabel ? ' bold-label' : ''}`,
1411
+ className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
1412
1412
  children: [
1413
1413
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1414
1414
  className: "dataset-data-item-label",
@@ -1478,7 +1478,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1478
1478
  if (dist && dist.data) {
1479
1479
  if (dist.data.format) return dist.data.format.toLowerCase();
1480
1480
  if (dist.data.mediaType) {
1481
- const mediaType = dist.data.mediaType.split('/');
1481
+ const mediaType = dist.data.mediaType.split("/");
1482
1482
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
1483
1483
  }
1484
1484
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -1488,7 +1488,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1488
1488
  }
1489
1489
  }
1490
1490
  }
1491
- return '';
1491
+ return "";
1492
1492
  }
1493
1493
 
1494
1494
 
@@ -1498,20 +1498,20 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1498
1498
  });
1499
1499
  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;
1500
1500
  const location = (0, $hgUW1$useLocation)();
1501
- let linkContainerClasses = 'ds-u-margin-bottom--2';
1502
- if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1503
- else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1504
- let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1501
+ let linkContainerClasses = "ds-u-margin-bottom--2";
1502
+ if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1503
+ else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1504
+ let linkClasses = "ds-u-display--block ds-u-text-align--left";
1505
1505
  if (desktop) {
1506
- linkContainerClasses = 'ds-u-padding-x--0';
1507
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1506
+ linkContainerClasses = "ds-u-padding-x--0";
1507
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1508
1508
  }
1509
1509
  let themes;
1510
1510
  if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
1511
1511
  className: "theme-list item-theme",
1512
1512
  children: theme.map((topic, index)=>{
1513
- const title = topic || 'Unknown Topic';
1514
- const prefix = 'topics';
1513
+ const title = topic || "Unknown Topic";
1514
+ const prefix = "topics";
1515
1515
  // Use the provided slug or fallback to a simple slug generation
1516
1516
  const slug = topicSlugs?.[title];
1517
1517
  const link = `/${prefix}/${slug}`;
@@ -1522,7 +1522,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1522
1522
  state: {
1523
1523
  fromUrl: location.pathname,
1524
1524
  fromTitle: false,
1525
- fromSearchList: location.pathname.includes('search')
1525
+ fromSearchList: location.pathname.includes("search")
1526
1526
  },
1527
1527
  children: title
1528
1528
  })
@@ -1564,7 +1564,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1564
1564
  };
1565
1565
  const dataDictionaryExists = ()=>{
1566
1566
  if (distribution && "data" in distribution) {
1567
- if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === 'application/vnd.tableschema+json';
1567
+ if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === "application/vnd.tableschema+json";
1568
1568
  }
1569
1569
  return false;
1570
1570
  };
@@ -1598,7 +1598,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1598
1598
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1599
1599
  className: "dc-c-search-list-item ds-u-padding-top--3",
1600
1600
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1601
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1601
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1602
1602
  children: [
1603
1603
  themes,
1604
1604
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -1606,7 +1606,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1606
1606
  children: [
1607
1607
  !showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1608
1608
  id: `dataset-${identifier}-updated-date`,
1609
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1609
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1610
1610
  children: [
1611
1611
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1612
1612
  children: "Updated:"
@@ -1635,13 +1635,13 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1635
1635
  (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description),
1636
1636
  description.length > 240 ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1637
1637
  children: [
1638
- ' ',
1638
+ " ",
1639
1639
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1640
1640
  to: `/dataset/${identifier}`,
1641
1641
  children: "See more"
1642
1642
  })
1643
1643
  ]
1644
- }) : ''
1644
+ }) : ""
1645
1645
  ]
1646
1646
  })
1647
1647
  }),
@@ -1669,14 +1669,14 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1669
1669
  "Download"
1670
1670
  ]
1671
1671
  })
1672
- }) : '',
1672
+ }) : "",
1673
1673
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
1674
- className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? 'ds-u-justify-content--center ds-u-md-justify-content--start' : ''}`,
1674
+ className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? "ds-u-justify-content--center ds-u-md-justify-content--start" : ""}`,
1675
1675
  children: [
1676
1676
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1677
1677
  className: linkContainerClasses,
1678
1678
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1679
- className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? '' : ' dkan-disabled-link-wrapper'}`,
1679
+ className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? "" : " dkan-disabled-link-wrapper"}`,
1680
1680
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataTableLink, {})
1681
1681
  })
1682
1682
  }),
@@ -1698,10 +1698,10 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1698
1698
  dataDictionaryLinks ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1699
1699
  className: linkContainerClasses,
1700
1700
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1701
- className: `${linkClasses}${dataDictionaryExists() ? '' : ' dkan-disabled-link-wrapper'}`,
1701
+ className: `${linkClasses}${dataDictionaryExists() ? "" : " dkan-disabled-link-wrapper"}`,
1702
1702
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataDictionaryLink, {})
1703
1703
  })
1704
- }) : '',
1704
+ }) : "",
1705
1705
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1706
1706
  className: linkContainerClasses,
1707
1707
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1797,7 +1797,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
1797
1797
 
1798
1798
 
1799
1799
 
1800
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
1800
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
1801
1801
  const numTotalRows = totalRows;
1802
1802
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
1803
1803
  className: className,
@@ -1815,18 +1815,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
1815
1815
  className: className,
1816
1816
  children: [
1817
1817
  "Displaying",
1818
- ' ',
1818
+ " ",
1819
1819
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1820
1820
  className: "ds-u-font-weight--bold",
1821
1821
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
1822
1822
  }),
1823
- ' ',
1823
+ " ",
1824
1824
  "of ",
1825
1825
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1826
1826
  className: "ds-u-font-weight--bold",
1827
1827
  children: `${numTotalRows.toLocaleString()}`
1828
1828
  }),
1829
- ' ',
1829
+ " ",
1830
1830
  "rows"
1831
1831
  ]
1832
1832
  });
@@ -1852,16 +1852,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
1852
1852
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1853
1853
  options: [
1854
1854
  {
1855
- label: 'Tight',
1856
- value: 'ds-u-padding-y--0'
1855
+ label: "Tight",
1856
+ value: "ds-u-padding-y--0"
1857
1857
  },
1858
1858
  {
1859
- label: 'Normal',
1860
- value: 'ds-u-padding-y--1'
1859
+ label: "Normal",
1860
+ value: "ds-u-padding-y--1"
1861
1861
  },
1862
1862
  {
1863
- label: 'Expanded',
1864
- value: 'ds-u-padding-y--2'
1863
+ label: "Expanded",
1864
+ value: "ds-u-padding-y--2"
1865
1865
  }
1866
1866
  ],
1867
1867
  label: "Display density:",
@@ -2104,7 +2104,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
2104
2104
  sortArray.forEach((s)=>{
2105
2105
  return newQuery.push({
2106
2106
  property: s.id,
2107
- order: s.desc ? 'desc' : 'asc'
2107
+ order: s.desc ? "desc" : "asc"
2108
2108
  });
2109
2109
  });
2110
2110
  return newQuery;
@@ -2142,46 +2142,46 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
2142
2142
  }
2143
2143
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
2144
2144
  let newValue = value;
2145
- if (Array.isArray(newValue)) newValue = newValue.join(',');
2145
+ if (Array.isArray(newValue)) newValue = newValue.join(",");
2146
2146
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
2147
2147
  return newValue;
2148
2148
  }
2149
2149
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
2150
2150
  {
2151
- label: 'Is',
2152
- value: '='
2151
+ label: "Is",
2152
+ value: "="
2153
2153
  },
2154
2154
  {
2155
- label: 'Starts With',
2156
- value: 'starts with'
2155
+ label: "Starts With",
2156
+ value: "starts with"
2157
2157
  },
2158
2158
  {
2159
- label: 'Contains',
2160
- value: 'contains'
2159
+ label: "Contains",
2160
+ value: "contains"
2161
2161
  },
2162
2162
  {
2163
- label: 'Is Not',
2164
- value: '<>'
2163
+ label: "Is Not",
2164
+ value: "<>"
2165
2165
  },
2166
2166
  {
2167
- label: 'Or',
2168
- value: 'in'
2167
+ label: "Or",
2168
+ value: "in"
2169
2169
  },
2170
2170
  {
2171
- label: 'Is',
2172
- value: '='
2171
+ label: "Is",
2172
+ value: "="
2173
2173
  },
2174
2174
  {
2175
- label: 'Is Not',
2176
- value: '<>'
2175
+ label: "Is Not",
2176
+ value: "<>"
2177
2177
  },
2178
2178
  {
2179
- label: 'Greater Than',
2180
- value: '>'
2179
+ label: "Greater Than",
2180
+ value: ">"
2181
2181
  },
2182
2182
  {
2183
- label: 'Less Than',
2184
- value: '<'
2183
+ label: "Less Than",
2184
+ value: "<"
2185
2185
  }
2186
2186
  ];
2187
2187
  function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
@@ -2190,59 +2190,59 @@ function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
2190
2190
  }
2191
2191
  function $7264a673914aa746$export$2b9377795161999(type) {
2192
2192
  switch(type){
2193
- case 'text':
2194
- case 'string':
2193
+ case "text":
2194
+ case "string":
2195
2195
  return [
2196
2196
  {
2197
- label: 'Is',
2198
- value: '='
2197
+ label: "Is",
2198
+ value: "="
2199
2199
  },
2200
2200
  {
2201
- label: 'Starts With',
2202
- value: 'starts with'
2201
+ label: "Starts With",
2202
+ value: "starts with"
2203
2203
  },
2204
2204
  {
2205
- label: 'Contains',
2206
- value: 'contains'
2205
+ label: "Contains",
2206
+ value: "contains"
2207
2207
  },
2208
2208
  {
2209
- label: 'Is Not',
2210
- value: '<>'
2209
+ label: "Is Not",
2210
+ value: "<>"
2211
2211
  },
2212
2212
  {
2213
- label: 'Or',
2214
- value: 'in'
2213
+ label: "Or",
2214
+ value: "in"
2215
2215
  }
2216
2216
  ];
2217
- case 'date':
2217
+ case "date":
2218
2218
  return [
2219
2219
  {
2220
- label: 'Is',
2221
- value: '='
2220
+ label: "Is",
2221
+ value: "="
2222
2222
  },
2223
2223
  {
2224
- label: 'Is Not',
2225
- value: '<>'
2224
+ label: "Is Not",
2225
+ value: "<>"
2226
2226
  },
2227
2227
  {
2228
- label: 'Greater Than',
2229
- value: '>'
2228
+ label: "Greater Than",
2229
+ value: ">"
2230
2230
  },
2231
2231
  {
2232
- label: 'Less Than',
2233
- value: '<'
2232
+ label: "Less Than",
2233
+ value: "<"
2234
2234
  }
2235
2235
  ];
2236
2236
  default:
2237
2237
  // These 2 should be safe for all data types
2238
2238
  return [
2239
2239
  {
2240
- label: 'Is',
2241
- value: '='
2240
+ label: "Is",
2241
+ value: "="
2242
2242
  },
2243
2243
  {
2244
- label: 'Is Not',
2245
- value: '<>'
2244
+ label: "Is Not",
2245
+ value: "<>"
2246
2246
  }
2247
2247
  ];
2248
2248
  }
@@ -2258,29 +2258,19 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2258
2258
 
2259
2259
 
2260
2260
 
2261
- const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
2261
+ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, id: id })=>{
2262
2262
  const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
2263
- const handleSortClick = ()=>{
2264
- header.column.getToggleSortingHandler()?.();
2265
- setTimeout(()=>{
2266
- const s = header.column.getIsSorted();
2267
- if (s === "asc") setAriaLiveFeedback(`Sorted by ${header.column.id} ascending`);
2268
- else if (s === "desc") setAriaLiveFeedback(`Sorted by ${header.column.id} descending`);
2269
- else setAriaLiveFeedback(`Sorting cleared on ${header.column.id}`);
2270
- }, 0);
2271
- };
2272
- const canSort = header.column.getCanSort();
2273
- const sortState = header.column.getIsSorted();
2263
+ // Fix for JSX in Data Dictionary Title header cell
2264
+ const ariaLabel = header.id === "titleResizable" ? "Title" : header.column.columnDef.header;
2274
2265
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
2275
2266
  key: header.id,
2276
2267
  style: {
2277
2268
  width: header.getSize()
2278
2269
  },
2279
- ...canSort && {
2280
- "aria-sort": sortState === "asc" ? "ascending" : sortState === "desc" ? "descending" : "none"
2281
- },
2270
+ id: id,
2282
2271
  title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2283
- className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2272
+ className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2273
+ "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2284
2274
  children: [
2285
2275
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2286
2276
  className: "ds-u-display--flex",
@@ -2290,20 +2280,18 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2290
2280
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2291
2281
  })
2292
2282
  }),
2293
- sortElement && canSort && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2294
- type: "button",
2295
- onClick: handleSortClick,
2296
- className: "cursor-pointer select-none ds-u-focus-visible " + sortElement(sortState),
2297
- "aria-label": `${header.column.columnDef.header} sort order`
2283
+ sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2284
+ onClick: header.column.getToggleSortingHandler(),
2285
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
2286
+ "aria-label": `${ariaLabel} sort order`
2298
2287
  })
2299
2288
  ]
2300
2289
  }),
2301
2290
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2302
- type: "button",
2303
2291
  onMouseDown: header.getResizeHandler(),
2304
2292
  onTouchStart: header.getResizeHandler(),
2305
- className: "dc-c-resize-handle ds-u-focus-visible " + (header.column.getIsResizing() || header.column.id === columnResizing ? "isResizing" : ""),
2306
- "aria-label": `Resize ${header.column.columnDef.header} column`,
2293
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
2294
+ "aria-label": `Resize ${ariaLabel} column`,
2307
2295
  onKeyDown: (e)=>{
2308
2296
  const columnSizingObject = table.getState().columnSizing;
2309
2297
  switch(e.key){
@@ -2311,19 +2299,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2311
2299
  case " ":
2312
2300
  e.preventDefault();
2313
2301
  e.stopPropagation();
2314
- if (columnResizing) {
2315
- setColumnResizing("");
2316
- setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2317
- } else {
2318
- setColumnResizing(header.column.id);
2319
- setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
2320
- }
2302
+ if (columnResizing) // end resizing
2303
+ setColumnResizing("");
2304
+ else // start resizing
2305
+ setColumnResizing(header.column.id);
2321
2306
  break;
2322
2307
  case "Escape":
2323
- if (columnResizing) {
2324
- setColumnResizing("");
2325
- setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2326
- }
2308
+ if (columnResizing) setColumnResizing("");
2327
2309
  break;
2328
2310
  case "ArrowRight":
2329
2311
  e.preventDefault();
@@ -2331,7 +2313,6 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2331
2313
  if (columnResizing) {
2332
2314
  columnSizingObject[header.column.id] = header.getSize() + 10;
2333
2315
  table.setColumnSizing(columnSizingObject);
2334
- setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
2335
2316
  }
2336
2317
  break;
2337
2318
  case "ArrowLeft":
@@ -2340,12 +2321,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2340
2321
  if (columnResizing) {
2341
2322
  columnSizingObject[header.column.id] = header.getSize() - 10;
2342
2323
  table.setColumnSizing(columnSizingObject);
2343
- setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
2344
2324
  }
2345
2325
  break;
2346
2326
  }
2347
2327
  },
2348
- onBlur: ()=>setColumnResizing("")
2328
+ onBlur: ()=>{
2329
+ setColumnResizing("");
2330
+ }
2349
2331
  })
2350
2332
  ]
2351
2333
  });
@@ -2353,7 +2335,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2353
2335
  var $64a351d3fd8413c3$export$2e2bcd8739ae039 = $64a351d3fd8413c3$var$HeaderResizeElement;
2354
2336
 
2355
2337
 
2356
- const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElement: sortElement = null, setAriaLiveFeedback: setAriaLiveFeedback })=>{
2338
+ const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElement: sortElement = null })=>{
2357
2339
  return /*#__PURE__*/ (0, $hgUW1$jsx)("thead", {
2358
2340
  className: "dc-thead--truncated dc-thead--resizeable",
2359
2341
  children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
@@ -2361,8 +2343,7 @@ const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElem
2361
2343
  children: headerGroup.headers.map((header)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $64a351d3fd8413c3$export$2e2bcd8739ae039), {
2362
2344
  table: table,
2363
2345
  header: header,
2364
- sortElement: sortElement,
2365
- setAriaLiveFeedback: setAriaLiveFeedback
2346
+ sortElement: sortElement
2366
2347
  }, header.id + "_dataTableResize"))
2367
2348
  }, headerGroup.id))
2368
2349
  });
@@ -2378,32 +2359,27 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2378
2359
  className: "dc-thead--fixed-size",
2379
2360
  children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
2380
2361
  children: headerGroup.headers.map((header)=>{
2381
- const canSort = header.column.getCanSort();
2382
- const sortState = header.column.getIsSorted();
2383
2362
  return /*#__PURE__*/ (0, $hgUW1$jsx)("th", {
2363
+ key: header.id,
2384
2364
  style: {
2385
2365
  width: header.getSize()
2386
2366
  },
2387
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2388
- className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2389
- ...canSort && {
2390
- "aria-sort": sortState === "asc" ? "ascending" : sortState === "desc" ? "descending" : "none"
2391
- },
2367
+ title: header.column.columnDef.header,
2368
+ className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2369
+ "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2392
2370
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2393
- className: "ds-u-display--flex ds-u-align-items--center ds-u-gap--1",
2371
+ onClick: header.column.getToggleSortingHandler(),
2372
+ className: "ds-u-display--flex",
2394
2373
  children: [
2395
2374
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2396
2375
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2397
2376
  }),
2398
- canSort && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2399
- type: "button",
2400
- onClick: header.column.getToggleSortingHandler(),
2401
- className: "cursor-pointer select-none ds-u-focus-visible " + (sortElement ? sortElement(sortState) : ""),
2402
- "aria-label": `${typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : header.column.id} sort order`
2377
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2378
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
2403
2379
  })
2404
2380
  ]
2405
2381
  })
2406
- }, header.id);
2382
+ });
2407
2383
  })
2408
2384
  }, headerGroup.id))
2409
2385
  });
@@ -2430,7 +2406,7 @@ const $ee0d4d4f34048447$var$DataTableActionsContextDefaults = {
2430
2406
  setColumnVisibility: ()=>{},
2431
2407
  page: 1,
2432
2408
  setPage: ()=>{},
2433
- tableDensity: 'normal',
2409
+ tableDensity: "normal",
2434
2410
  setTableDensity: ()=>{}
2435
2411
  };
2436
2412
  const $ee0d4d4f34048447$export$f814ea079e65d8fe = /*#__PURE__*/ (0, $hgUW1$createContext)($ee0d4d4f34048447$var$DataTableActionsContextDefaults);
@@ -2449,7 +2425,7 @@ const $ee0d4d4f34048447$var$DataTableActionsProvider = ({ children: children })=
2449
2425
  if (datasetTableControls && localStorageData) return localStorageData.tableColumnVisibility;
2450
2426
  else return {};
2451
2427
  });
2452
- const [tableDensity, setTableDensity] = (0, $hgUW1$useState)('normal');
2428
+ const [tableDensity, setTableDensity] = (0, $hgUW1$useState)("normal");
2453
2429
  const providerValue = {
2454
2430
  columnOrder: columnOrder,
2455
2431
  setColumnOrder: setColumnOrder,
@@ -2496,9 +2472,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2496
2472
  transition: transition,
2497
2473
  opacity: isDragging ? 0.7 : 1,
2498
2474
  zIndex: isDragging ? 1 : 0,
2499
- position: 'relative',
2500
- background: 'white',
2501
- touchAction: 'none'
2475
+ position: "relative",
2476
+ background: "white",
2477
+ touchAction: "none"
2502
2478
  };
2503
2479
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
2504
2480
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -2514,7 +2490,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2514
2490
  // this code forces the repaint without user interaction
2515
2491
  const target = e.target;
2516
2492
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
2517
- target.parentNode.querySelector('input').checked = visible;
2493
+ target.parentNode.querySelector("input").checked = visible;
2518
2494
  }, 1);
2519
2495
  },
2520
2496
  children: [
@@ -2531,7 +2507,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2531
2507
  }
2532
2508
  }),
2533
2509
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2534
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
2510
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
2535
2511
  "aria-label": `Reorder ${id} column`,
2536
2512
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2537
2513
  className: "fa fa-sort"
@@ -2549,7 +2525,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
2549
2525
  // Custom function to exclude checkbox from keyboard dragging
2550
2526
  static activators = [
2551
2527
  {
2552
- eventName: 'onKeyDown',
2528
+ eventName: "onKeyDown",
2553
2529
  handler: ({ nativeEvent: event })=>{
2554
2530
  // prevent scrolling the list
2555
2531
  const isCheckbox = [
@@ -2572,7 +2548,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
2572
2548
  // Custom function to stop accidental checkbox clicks on pointer activation
2573
2549
  static activators = [
2574
2550
  {
2575
- eventName: 'onPointerDown',
2551
+ eventName: "onPointerDown",
2576
2552
  handler: ({ nativeEvent: event })=>{
2577
2553
  if (event.target.tagName.toLowerCase() === "input") return false;
2578
2554
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -2670,13 +2646,13 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
2670
2646
  className: "dkan-dataset-toolbar-button-label",
2671
2647
  children: "Manage Columns"
2672
2648
  }),
2673
- hiddenColumns ? ` (${hiddenColumns})` : ''
2649
+ hiddenColumns ? ` (${hiddenColumns})` : ""
2674
2650
  ]
2675
2651
  })
2676
2652
  ]
2677
2653
  }),
2678
2654
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2679
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2655
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2680
2656
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
2681
2657
  heading: "Manage columns",
2682
2658
  isOpen: modalOpen,
@@ -2849,12 +2825,12 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2849
2825
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2850
2826
  children: [
2851
2827
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2852
- className: isModal ? 'dkan-datatable-fullscreen-mode' : '',
2828
+ className: isModal ? "dkan-datatable-fullscreen-mode" : "",
2853
2829
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2854
2830
  canResize: true,
2855
2831
  columns: columns,
2856
2832
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2857
- tablePadding: tableDensity === 'normal' ? 'ds-u-padding-y--2' : tableDensity === 'compact' ? 'ds-u-padding-y--1' : 'ds-u-padding-y--3',
2833
+ tablePadding: tableDensity === "normal" ? "ds-u-padding-y--2" : tableDensity === "compact" ? "ds-u-padding-y--1" : "ds-u-padding-y--3",
2858
2834
  loading: resource.loading,
2859
2835
  isModal: isModal,
2860
2836
  downloadURL: downloadURL,
@@ -2869,14 +2845,14 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2869
2845
  }),
2870
2846
  !resource.loading && resource.count !== null && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2871
2847
  className: [
2872
- 'ds-u-display--flex',
2873
- 'ds-u-flex-wrap--wrap',
2874
- 'ds-u-justify-content--end',
2875
- 'ds-u-md-justify-content--between',
2876
- 'ds-u-margin-top--2',
2877
- 'ds-u-align-items--center',
2878
- isModal && 'ds-u-margin-bottom--2'
2879
- ].filter(Boolean).join(' '),
2848
+ "ds-u-display--flex",
2849
+ "ds-u-flex-wrap--wrap",
2850
+ "ds-u-justify-content--end",
2851
+ "ds-u-md-justify-content--between",
2852
+ "ds-u-margin-top--2",
2853
+ "ds-u-align-items--center",
2854
+ isModal && "ds-u-margin-bottom--2"
2855
+ ].filter(Boolean).join(" "),
2880
2856
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
2881
2857
  totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
2882
2858
  currentPage: Number(page),
@@ -2915,7 +2891,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2915
2891
  },
2916
2892
  children: [
2917
2893
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2918
- className: `far ${modalOpen ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2894
+ className: `far ${modalOpen ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2919
2895
  }),
2920
2896
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2921
2897
  className: "dkan-dataset-toolbar-button-label",
@@ -2924,7 +2900,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2924
2900
  ]
2925
2901
  }),
2926
2902
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2927
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2903
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2928
2904
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2929
2905
  heading: "Dataset Explorer",
2930
2906
  isOpen: modalOpen,
@@ -2959,13 +2935,13 @@ var $16bd41951b91f02d$export$2e2bcd8739ae039 = $16bd41951b91f02d$var$FullScreenD
2959
2935
 
2960
2936
 
2961
2937
  function $eadd6431fddf4b6c$var$getStartDate(condition, schema, id) {
2962
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2938
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2963
2939
  const newDate = new Date(condition.value.toString());
2964
2940
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2965
2941
  }
2966
2942
  return new Date();
2967
2943
  }
2968
- const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = '' })=>{
2944
+ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = "" })=>{
2969
2945
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
2970
2946
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
2971
2947
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -2975,9 +2951,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2975
2951
  });
2976
2952
  (0, $hgUW1$useEffect)(()=>{
2977
2953
  if (property !== condition.property) {
2978
- if (property) update(index, 'property', property);
2979
- else update(index, 'property', '');
2980
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2954
+ if (property) update(index, "property", property);
2955
+ else update(index, "property", "");
2956
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2981
2957
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2982
2958
  }
2983
2959
  }
@@ -2991,22 +2967,22 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2991
2967
  ]);
2992
2968
  (0, $hgUW1$useEffect)(()=>{
2993
2969
  if (operator !== condition.operator) {
2994
- if (operator) update(index, 'operator', operator);
2995
- else update(index, 'operator', '');
2970
+ if (operator) update(index, "operator", operator);
2971
+ else update(index, "operator", "");
2996
2972
  }
2997
2973
  }, [
2998
2974
  operator
2999
2975
  ]);
3000
2976
  (0, $hgUW1$useEffect)(()=>{
3001
2977
  if (value !== condition.value) {
3002
- if (value) update(index, 'value', value);
3003
- else update(index, 'value', '');
2978
+ if (value) update(index, "value", value);
2979
+ else update(index, "value", "");
3004
2980
  }
3005
2981
  }, [
3006
2982
  value
3007
2983
  ]);
3008
2984
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
3009
- className: `dkan-filter-dataset-control ds-u-padding-x--2 ds-u-md-padding-x--3 ds-u-padding-y--1 ds-u-margin-top--05${className !== '' ? ` ${className}` : ''}`,
2985
+ className: `dkan-filter-dataset-control ds-u-padding-x--2 ds-u-md-padding-x--3 ds-u-padding-y--1 ds-u-margin-top--05${className !== "" ? ` ${className}` : ""}`,
3010
2986
  children: [
3011
2987
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3012
2988
  options: propertyOptions,
@@ -3024,7 +3000,7 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3024
3000
  name: `${condition.key}_operator`,
3025
3001
  onChange: (e)=>setOperator(e.target.value)
3026
3002
  }),
3027
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3003
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3028
3004
  children: [
3029
3005
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
3030
3006
  className: "ds-c-label",
@@ -3077,15 +3053,15 @@ var $eadd6431fddf4b6c$export$2e2bcd8739ae039 = $eadd6431fddf4b6c$var$FilterItem;
3077
3053
 
3078
3054
 
3079
3055
 
3080
- const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = '' })=>{
3056
+ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = "" })=>{
3081
3057
  const small = (0, $hgUW1$useMediaQuery)({
3082
3058
  minWidth: 0,
3083
3059
  maxWidth: 544
3084
3060
  });
3085
3061
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
3086
3062
  disabled: disabled,
3087
- className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? '' : ' ds-u-float--right ds-l-md-col--6 ds-l-col--5'}${className !== '' ? ` ${className}` : ''}`,
3088
- variation: small ? 'ghost' : undefined,
3063
+ className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? "" : " ds-u-float--right ds-l-md-col--6 ds-l-col--5"}${className !== "" ? ` ${className}` : ""}`,
3064
+ variation: small ? "ghost" : undefined,
3089
3065
  onClick: ()=>clearFiltersFn(),
3090
3066
  children: "Reset"
3091
3067
  });
@@ -3097,19 +3073,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
3097
3073
  function $6f4318b1e14124e5$var$updateQueryForDatastore(condition) {
3098
3074
  let cond = condition;
3099
3075
  delete cond.key;
3100
- if (cond.operator === '=' || cond.operator === '<>') {
3076
+ if (cond.operator === "=" || cond.operator === "<>") {
3101
3077
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3102
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
3078
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
3103
3079
  }
3104
- if (cond.operator.toLowerCase() === 'like') {
3080
+ if (cond.operator.toLowerCase() === "like") {
3105
3081
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3106
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
3082
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
3107
3083
  cond.value = `%${cleanedValue}%`;
3108
3084
  }
3109
- if (cond.operator.toLowerCase() === 'in') {
3110
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
3085
+ if (cond.operator.toLowerCase() === "in") {
3086
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
3111
3087
  }
3112
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
3088
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
3113
3089
  return cond;
3114
3090
  }
3115
3091
  const $6f4318b1e14124e5$var$FilterDataset = ()=>{
@@ -3135,7 +3111,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3135
3111
  } else setQueryConditions([
3136
3112
  {
3137
3113
  property: fields[0],
3138
- value: '',
3114
+ value: "",
3139
3115
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3140
3116
  key: Date.now().toString()
3141
3117
  }
@@ -3152,7 +3128,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3152
3128
  ...queryConditions,
3153
3129
  {
3154
3130
  property: fields[0],
3155
- value: '',
3131
+ value: "",
3156
3132
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3157
3133
  key: Date.now().toString()
3158
3134
  }
@@ -3183,7 +3159,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3183
3159
  encodeValuesOnly: true,
3184
3160
  addQueryPrefix: true
3185
3161
  });
3186
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3162
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3187
3163
  };
3188
3164
  const submitConditions = ()=>{
3189
3165
  // only update the data conditions when "Apply filters" is pressed
@@ -3257,7 +3233,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3257
3233
  children: [
3258
3234
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3259
3235
  className: "dkan-dataset-toolbar-button-label",
3260
- children: conditions.length > 0 ? `Edit Filters` : 'Filter Dataset'
3236
+ children: conditions.length > 0 ? `Edit Filters` : "Filter Dataset"
3261
3237
  }),
3262
3238
  conditions.length > 0 && ` (${conditions.length})`
3263
3239
  ]
@@ -3265,7 +3241,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3265
3241
  ]
3266
3242
  }),
3267
3243
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3268
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3244
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3269
3245
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3270
3246
  heading: "Filter Dataset",
3271
3247
  isOpen: modalOpen,
@@ -3291,7 +3267,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3291
3267
  className: "dkan-apply-dataset-filters-button ds-u-float--right ds-l-md-col--auto ds-l-col--auto",
3292
3268
  onClick: submitConditions,
3293
3269
  variation: "solid",
3294
- children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ''} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? '' : 's'}`
3270
+ children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ""} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? "" : "s"}`
3295
3271
  })
3296
3272
  ]
3297
3273
  })
@@ -3430,9 +3406,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3430
3406
  className: "ds-u-display--flex ds-u-align-items--start",
3431
3407
  children: [
3432
3408
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3433
- onClick: ()=>setTableDensity('expanded'),
3409
+ onClick: ()=>setTableDensity("expanded"),
3434
3410
  "aria-label": "Row height, Expanded",
3435
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'expanded' ? 'active ds-u-fill--primary-lightest' : ''}`,
3411
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "expanded" ? "active ds-u-fill--primary-lightest" : ""}`,
3436
3412
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3437
3413
  className: "ds-u-display--block",
3438
3414
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3451,9 +3427,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3451
3427
  })
3452
3428
  }),
3453
3429
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3454
- onClick: ()=>setTableDensity('normal'),
3430
+ onClick: ()=>setTableDensity("normal"),
3455
3431
  "aria-label": "Row height, Normal",
3456
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'normal' ? 'active ds-u-fill--primary-lightest' : ''}`,
3432
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "normal" ? "active ds-u-fill--primary-lightest" : ""}`,
3457
3433
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3458
3434
  className: "ds-u-display--block",
3459
3435
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3472,9 +3448,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3472
3448
  })
3473
3449
  }),
3474
3450
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3475
- onClick: ()=>setTableDensity('compact'),
3451
+ onClick: ()=>setTableDensity("compact"),
3476
3452
  "aria-label": "Row height, Compact",
3477
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'compact' ? 'active ds-u-fill--primary-lightest ' : ''}`,
3453
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "compact" ? "active ds-u-fill--primary-lightest " : ""}`,
3478
3454
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3479
3455
  className: "ds-u-display--block",
3480
3456
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3559,7 +3535,7 @@ const $85f8ff1ff89899c7$var$updateBrowserURL = (newConditions)=>{
3559
3535
  encodeValuesOnly: true,
3560
3536
  addQueryPrefix: true
3561
3537
  });
3562
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3538
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3563
3539
  };
3564
3540
  const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, columns: columns, defaultColumnOrder: defaultColumnOrder, isModal: isModal, datasetTableControls: datasetTableControls, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility })=>{
3565
3541
  const { limit: limit, offset: offset, count: count, conditions: conditions, setConditions: setConditions } = resource;
@@ -3645,7 +3621,7 @@ const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, co
3645
3621
  }, index)) : null,
3646
3622
  hiddenColumns > 0 ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
3647
3623
  iconClass: "fa fa-columns",
3648
- text: `${hiddenColumns} Column${hiddenColumns === 1 ? '' : 's'} Hidden`,
3624
+ text: `${hiddenColumns} Column${hiddenColumns === 1 ? "" : "s"} Hidden`,
3649
3625
  onClick: ()=>{
3650
3626
  resetColumnVisibility();
3651
3627
  }
@@ -3680,7 +3656,6 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3680
3656
  const { conditions: conditions } = resource;
3681
3657
  const data = resource.values;
3682
3658
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
3683
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
3684
3659
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
3685
3660
  const columnHelper = (0, $hgUW1$createColumnHelper)();
3686
3661
  const table_columns = columns.map((col)=>{
@@ -3699,9 +3674,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3699
3674
  columnOrder
3700
3675
  ]);
3701
3676
  const sortElement = (isSorted, onClickFn)=>{
3702
- if (isSorted === 'asc') return 'dc-c-sort--asc';
3703
- if (isSorted === 'desc') return 'dc-c-sort--desc';
3704
- return 'dc-c-sort--default';
3677
+ if (isSorted === "asc") return "dc-c-sort--asc";
3678
+ if (isSorted === "desc") return "dc-c-sort--desc";
3679
+ return "dc-c-sort--default";
3705
3680
  };
3706
3681
  const filters = [];
3707
3682
  const table = (0, $hgUW1$useReactTable)({
@@ -3713,7 +3688,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3713
3688
  columnVisibility: columnVisibility,
3714
3689
  sorting: sorting
3715
3690
  },
3716
- columnResizeMode: 'onChange',
3691
+ columnResizeMode: "onChange",
3717
3692
  onSortingChange: setSorting,
3718
3693
  onColumnOrderChange: setColumnOrder,
3719
3694
  onColumnVisibilityChange: setColumnVisibility,
@@ -3730,7 +3705,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3730
3705
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
3731
3706
  const tableWrapperWidth = ()=>{
3732
3707
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
3733
- return 'auto';
3708
+ return "auto";
3734
3709
  };
3735
3710
  (0, $hgUW1$useEffect)(()=>{
3736
3711
  setHighlightRow(null);
@@ -3876,57 +3851,48 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3876
3851
  })
3877
3852
  ]
3878
3853
  }),
3879
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3854
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3880
3855
  className: "dc-c-datatable-wrapper ds-u-border-x--1 ds-u-border-bottom--1",
3881
3856
  tabIndex: 0,
3882
3857
  ref: dataTableWrapperElement,
3883
- children: [
3884
- /*#__PURE__*/ (0, $hgUW1$jsxs)("table", {
3885
- style: {
3886
- width: canResize ? table.getCenterTotalSize() : "100%",
3887
- minWidth: tableWrapperWidth()
3888
- },
3889
- className: "dc-c-datatable",
3890
- children: [
3891
- canResize ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $96d341d082bffec5$export$2e2bcd8739ae039), {
3892
- table: table,
3893
- sortElement: sortElement,
3894
- setAriaLiveFeedback: setAriaLiveFeedback
3895
- }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $23763e27eda0e8d7$export$2e2bcd8739ae039), {
3896
- table: table,
3897
- sortElement: sortElement
3898
- }),
3899
- loading ? /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {}) : /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {
3900
- children: table.getRowModel().rows.map((row, index)=>{
3901
- const even = (index + 1) % 2 === 0;
3902
- const highlight = highlightRow === row.id;
3903
- return /*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
3904
- className: `${highlight ? "dc-c-datatable--highlight-row" : even && "dc-c-datatable--even-row"}`,
3905
- onClick: ()=>setHighlightRow(row.id),
3906
- children: row.getVisibleCells().map((cell)=>{
3907
- let classList = "dc-truncate ds-u-padding-x--1";
3908
- return /*#__PURE__*/ (0, $hgUW1$jsx)("td", {
3909
- key: cell.id,
3910
- style: {
3911
- maxWidth: cell.column.getSize()
3912
- },
3913
- className: `${classList} ${tablePadding}`,
3914
- title: cell.getValue(),
3915
- children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
3916
- });
3917
- })
3918
- }, row.id);
3919
- })
3858
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("table", {
3859
+ style: {
3860
+ width: canResize ? table.getCenterTotalSize() : "100%",
3861
+ minWidth: tableWrapperWidth()
3862
+ },
3863
+ className: "dc-c-datatable",
3864
+ children: [
3865
+ canResize ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $96d341d082bffec5$export$2e2bcd8739ae039), {
3866
+ table: table,
3867
+ sortElement: sortElement
3868
+ }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $23763e27eda0e8d7$export$2e2bcd8739ae039), {
3869
+ table: table,
3870
+ sortElement: sortElement
3871
+ }),
3872
+ loading ? /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {}) : /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {
3873
+ children: table.getRowModel().rows.map((row, index)=>{
3874
+ const even = (index + 1) % 2 === 0;
3875
+ const highlight = highlightRow === row.id;
3876
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
3877
+ className: `${highlight ? "dc-c-datatable--highlight-row" : even && "dc-c-datatable--even-row"}`,
3878
+ onClick: ()=>setHighlightRow(row.id),
3879
+ children: row.getVisibleCells().map((cell)=>{
3880
+ let classList = "dc-truncate ds-u-padding-x--1";
3881
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("td", {
3882
+ key: cell.id,
3883
+ style: {
3884
+ maxWidth: cell.column.getSize()
3885
+ },
3886
+ className: `${classList} ${tablePadding}`,
3887
+ title: cell.getValue(),
3888
+ children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
3889
+ });
3890
+ })
3891
+ }, row.id);
3920
3892
  })
3921
- ]
3922
- }),
3923
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3924
- className: "sr-only",
3925
- "aria-live": "assertive",
3926
- "aria-atomic": "true",
3927
- children: ariaLiveFeedback
3928
- })
3929
- ]
3893
+ })
3894
+ ]
3895
+ })
3930
3896
  }),
3931
3897
  loading && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
3932
3898
  "aria-valuetext": "Dataset loading",
@@ -3960,7 +3926,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3960
3926
  },
3961
3927
  labelClassName: "ds-u-visibility--screen-reader",
3962
3928
  name: accessor,
3963
- value: filterValue || ''
3929
+ value: filterValue || ""
3964
3930
  });
3965
3931
  }
3966
3932
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -4036,7 +4002,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
4036
4002
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4037
4003
  children: currentPage
4038
4004
  })
4039
- }) : ''
4005
+ }) : ""
4040
4006
  ]
4041
4007
  })
4042
4008
  });
@@ -4093,11 +4059,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
4093
4059
 
4094
4060
 
4095
4061
 
4096
- const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search the Data', showMagnifyingGlass: showMagnifyingGlass, showSearchButton: showSearchButton, onDark: onDark, onChange: onChange, onSubmit: onSubmit, onKeyDown: onKeyDown, defaultValue: defaultValue = '' })=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4062
+ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = "Search the Data", showMagnifyingGlass: showMagnifyingGlass, showSearchButton: showSearchButton, onDark: onDark, onChange: onChange, onSubmit: onSubmit, onKeyDown: onKeyDown, defaultValue: defaultValue = "" })=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4097
4063
  className: "search-input-container",
4098
4064
  children: [
4099
4065
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4100
- className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
4066
+ className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
4101
4067
  label: placeholder,
4102
4068
  labelClassName: "ds-u-visibility--screen-reader",
4103
4069
  placeholder: placeholder,
@@ -4112,7 +4078,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search
4112
4078
  }),
4113
4079
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
4114
4080
  variation: "solid",
4115
- className: onDark && 'on-dark',
4081
+ className: onDark && "on-dark",
4116
4082
  onClick: onSubmit,
4117
4083
  children: [
4118
4084
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4231,7 +4197,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
4231
4197
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4232
4198
  addQueryPrefix: true
4233
4199
  })}`,
4234
- docExpansion: 'list',
4200
+ docExpansion: "list",
4235
4201
  defaultModelsExpandDepth: -1,
4236
4202
  plugins: [
4237
4203
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -4339,7 +4305,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4339
4305
  size: "big",
4340
4306
  type: "submit",
4341
4307
  style: {
4342
- width: '70px'
4308
+ width: "70px"
4343
4309
  },
4344
4310
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4345
4311
  className: "fas fa-search small-text"
@@ -4356,7 +4322,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4356
4322
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
4357
4323
  children: [
4358
4324
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4359
- children: text ? text : 'Search'
4325
+ children: text ? text : "Search"
4360
4326
  }),
4361
4327
  ` `,
4362
4328
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4441,12 +4407,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4441
4407
  fulltext: fulltext ? fulltext : undefined,
4442
4408
  ...selectedFacets,
4443
4409
  sort: sort ? sort : undefined,
4444
- ['sort-order']: sortOrder ? sortOrder : undefined,
4410
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4445
4411
  page: page !== 1 ? page : undefined,
4446
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4412
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4447
4413
  };
4448
4414
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4449
- arrayFormat: 'comma',
4415
+ arrayFormat: "comma",
4450
4416
  encode: false
4451
4417
  })}`);
4452
4418
  }
@@ -4457,26 +4423,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4457
4423
 
4458
4424
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4459
4425
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4460
- defaultSort: 'modified',
4461
- defaultOrder: 'desc'
4462
- }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4426
+ defaultSort: "modified",
4427
+ defaultOrder: "desc"
4428
+ }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4463
4429
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4464
4430
  const sortOptions = [
4465
4431
  {
4466
- label: 'Newest',
4467
- value: 'newest'
4432
+ label: "Newest",
4433
+ value: "newest"
4468
4434
  },
4469
4435
  {
4470
- label: 'Oldest',
4471
- value: 'oldest'
4436
+ label: "Oldest",
4437
+ value: "oldest"
4472
4438
  },
4473
4439
  {
4474
- label: 'Title A-Z',
4475
- value: 'titleAZ'
4440
+ label: "Title A-Z",
4441
+ value: "titleAZ"
4476
4442
  },
4477
4443
  {
4478
- label: 'Title Z-A',
4479
- value: 'titleZA'
4444
+ label: "Title Z-A",
4445
+ value: "titleZA"
4480
4446
  }
4481
4447
  ];
4482
4448
  const defaultSortBy = "";
@@ -4495,7 +4461,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4495
4461
  endingNumber: 0
4496
4462
  });
4497
4463
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4498
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4464
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4499
4465
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4500
4466
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
4501
4467
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -4504,7 +4470,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4504
4470
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4505
4471
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4506
4472
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4507
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4473
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4508
4474
  });
4509
4475
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
4510
4476
  theme: [],
@@ -4513,21 +4479,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4513
4479
  const setSortOptions = (value)=>{
4514
4480
  setSortDisplay(value);
4515
4481
  switch(value){
4516
- case 'newest':
4517
- setSort('modified');
4518
- setSortOrder('desc');
4482
+ case "newest":
4483
+ setSort("modified");
4484
+ setSortOrder("desc");
4519
4485
  break;
4520
- case 'oldest':
4521
- setSort('modified');
4522
- setSortOrder('asc');
4486
+ case "oldest":
4487
+ setSort("modified");
4488
+ setSortOrder("asc");
4523
4489
  break;
4524
- case 'titleAZ':
4525
- setSort('title');
4526
- setSortOrder('asc');
4490
+ case "titleAZ":
4491
+ setSort("title");
4492
+ setSortOrder("asc");
4527
4493
  break;
4528
- case 'titleZA':
4529
- setSort('title');
4530
- setSortOrder('desc');
4494
+ case "titleZA":
4495
+ setSort("title");
4496
+ setSortOrder("desc");
4531
4497
  break;
4532
4498
  }
4533
4499
  };
@@ -4535,12 +4501,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4535
4501
  const newFacets = {
4536
4502
  ...selectedFacets
4537
4503
  };
4538
- if (key === 'theme') {
4504
+ if (key === "theme") {
4539
4505
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
4540
4506
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
4541
4507
  else newFacets.theme.push(value);
4542
4508
  }
4543
- if (key === 'keyword') {
4509
+ if (key === "keyword") {
4544
4510
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
4545
4511
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
4546
4512
  else newFacets.keyword.push(value);
@@ -4554,59 +4520,23 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4554
4520
  });
4555
4521
  setSelectedFacets(newFacets);
4556
4522
  const url = new URL(window.location.href);
4557
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
4523
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
4558
4524
  }
4559
4525
  const pageSize = defaultPageSize;
4560
- (0, $hgUW1$useEffect)(()=>{
4561
- const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4562
- const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4563
- const endingNumber = Number(pageSize) * Number(page);
4564
- setCurrentResultNumbers({
4565
- total: Number(totalItems),
4566
- startingNumber: Number(totalItems) >= startingNumber ? startingNumber : 0,
4567
- endingNumber: Number(totalItems) < endingNumber ? Number(totalItems) : endingNumber
4568
- });
4569
- setTimeout(()=>{
4570
- setAnnouncementText(`Showing ${startingNumber} to ${endingNumber} of ${totalItems} datasets`);
4571
- }, 100);
4572
- if (totalItems <= 0 && currentResultNumbers !== null) setNoResults(true);
4573
- else setNoResults(false);
4574
- }, [
4575
- totalItems,
4576
- pageSize,
4577
- page
4578
- ]);
4579
- (0, $hgUW1$useEffect)(()=>{
4580
- if (page !== 1 && (transformedParams.fulltext !== fulltext || transformedParams.selectedFacets !== selectedFacets)) setPage(1);
4581
- }, [
4582
- fulltext,
4583
- selectedFacets
4584
- ]);
4585
- (0, $hgUW1$useEffect)(()=>{
4586
- if (totalItems !== null && totalItems !== undefined && totalItems > 0) {
4587
- var params = buildSearchParams(true);
4588
- if (params !== location.search) setSearchParams(params);
4589
- }
4590
- }, [
4591
- page,
4592
- sort,
4593
- sortOrder,
4594
- totalItems
4595
- ]);
4596
4526
  function resetFilters() {
4597
4527
  setFullText(defaultFulltext);
4598
4528
  setFilterText(defaultFulltext);
4599
4529
  setSelectedFacets(defaultSelectedFacets);
4600
4530
  setPage(defaultPage);
4601
4531
  const url = new URL(window.location.href);
4602
- window.history.pushState({}, '', `${url.origin}${url.pathname}`);
4532
+ window.history.pushState({}, "", `${url.origin}${url.pathname}`);
4603
4533
  }
4604
4534
  function buildSearchParams(includePage) {
4605
4535
  let newParams = {};
4606
4536
  if (Number(page) !== 1 && includePage) newParams.page = page;
4607
4537
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4608
4538
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4609
- if (fulltext !== '') newParams.fulltext = fulltext;
4539
+ if (fulltext !== "") newParams.fulltext = fulltext;
4610
4540
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
4611
4541
  newParams[key] = selectedFacets[key];
4612
4542
  });
@@ -4619,9 +4549,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4619
4549
  fulltext: fulltext ? fulltext : undefined,
4620
4550
  ...selectedFacets,
4621
4551
  sort: sort ? sort : undefined,
4622
- ['sort-order']: sortOrder ? sortOrder : undefined,
4552
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4623
4553
  page: page !== 1 ? page : undefined,
4624
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4554
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4625
4555
  };
4626
4556
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4627
4557
  queryKey: [
@@ -4630,7 +4560,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4630
4560
  ],
4631
4561
  queryFn: ()=>{
4632
4562
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4633
- arrayFormat: 'comma',
4563
+ arrayFormat: "comma",
4634
4564
  encode: false
4635
4565
  })}`);
4636
4566
  }
@@ -4640,6 +4570,50 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4640
4570
  theme: null,
4641
4571
  keyword: null
4642
4572
  };
4573
+ (0, $hgUW1$useEffect)(()=>{
4574
+ const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4575
+ const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4576
+ const endingNumber = Number(pageSize) * Number(page);
4577
+ setCurrentResultNumbers({
4578
+ total: Number(totalItems),
4579
+ startingNumber: Number(totalItems) >= startingNumber ? startingNumber : 0,
4580
+ endingNumber: Number(totalItems) < endingNumber ? Number(totalItems) : endingNumber
4581
+ });
4582
+ if (totalItems <= 0 && currentResultNumbers !== null) setNoResults(true);
4583
+ else setNoResults(false);
4584
+ }, [
4585
+ totalItems,
4586
+ pageSize,
4587
+ page
4588
+ ]);
4589
+ (0, $hgUW1$useEffect)(()=>{
4590
+ if (page !== 1 && (transformedParams.fulltext !== fulltext || transformedParams.selectedFacets !== selectedFacets)) setPage(1);
4591
+ }, [
4592
+ fulltext,
4593
+ selectedFacets
4594
+ ]);
4595
+ (0, $hgUW1$useEffect)(()=>{
4596
+ if (totalItems !== null && totalItems !== undefined && totalItems > 0) {
4597
+ var params = buildSearchParams(true);
4598
+ if (params !== location.search) setSearchParams(params);
4599
+ }
4600
+ }, [
4601
+ page,
4602
+ sort,
4603
+ sortOrder,
4604
+ totalItems
4605
+ ]);
4606
+ (0, $hgUW1$useEffect)(()=>{
4607
+ // No results found
4608
+ if (noResults) setAnnouncementText("No results found.");
4609
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
4610
+ else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
4611
+ }, [
4612
+ data,
4613
+ isPending,
4614
+ noResults,
4615
+ currentResultNumbers
4616
+ ]);
4643
4617
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
4644
4618
  children: [
4645
4619
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5723016a5461c1ca$export$2e2bcd8739ae039), {
@@ -4648,6 +4622,15 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4648
4622
  /*#__PURE__*/ (0, $hgUW1$jsxs)("section", {
4649
4623
  className: "ds-l-container",
4650
4624
  children: [
4625
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4626
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
4627
+ className: "ds-u-visibility--screen-reader",
4628
+ "aria-live": "assertive",
4629
+ "aria-atomic": "true",
4630
+ "data-testid": "currentResults",
4631
+ children: announcementText
4632
+ })
4633
+ }),
4651
4634
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4652
4635
  className: "ds-l-row",
4653
4636
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -4681,7 +4664,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4681
4664
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4682
4665
  fieldClassName: "ds-u-margin--0",
4683
4666
  value: filterText,
4684
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
4667
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
4685
4668
  label: "Search datasets",
4686
4669
  labelClassName: "ds-u-visibility--screen-reader",
4687
4670
  placeholder: "Search datasets",
@@ -4732,34 +4715,23 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4732
4715
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4733
4716
  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",
4734
4717
  children: [
4735
- enablePagination && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4718
+ enablePagination && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4736
4719
  className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--8 ds-u-sm-padding-left--0",
4737
- children: [
4738
- /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
4739
- className: "ds-u-margin-y--0",
4740
- "aria-hidden": "true",
4741
- children: currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
4742
- children: [
4743
- "Showing ",
4744
- currentResultNumbers.startingNumber,
4745
- " -",
4746
- ' ',
4747
- currentResultNumbers.endingNumber,
4748
- " of ",
4749
- data.data.total,
4750
- " datasets"
4751
- ]
4752
- })
4753
- }),
4754
- /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
4755
- className: "ds-u-visibility--screen-reader",
4756
- role: "status",
4757
- "aria-live": "assertive",
4758
- "aria-atomic": "true",
4759
- "data-testid": "currentResults",
4760
- children: announcementText
4720
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
4721
+ className: "ds-u-margin-y--0",
4722
+ children: currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
4723
+ children: [
4724
+ "Showing ",
4725
+ currentResultNumbers.startingNumber,
4726
+ " -",
4727
+ " ",
4728
+ currentResultNumbers.endingNumber,
4729
+ " of ",
4730
+ data.data.total,
4731
+ " datasets"
4732
+ ]
4761
4733
  })
4762
- ]
4734
+ })
4763
4735
  }),
4764
4736
  enableSort && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4765
4737
  className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--4 ds-u-sm-padding-right--0",
@@ -4780,6 +4752,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4780
4752
  children: [
4781
4753
  noResults && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
4782
4754
  variation: "error",
4755
+ role: "region",
4783
4756
  heading: "No results found."
4784
4757
  }),
4785
4758
  data && data.data.results ? Object.keys(data.data.results).map((key)=>{
@@ -4807,6 +4780,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4807
4780
  }, item.identifier);
4808
4781
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
4809
4782
  variation: "error",
4783
+ role: "region",
4810
4784
  heading: "Could not connect to the API."
4811
4785
  })
4812
4786
  ]
@@ -4821,7 +4795,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4821
4795
  },
4822
4796
  renderHref: (page)=>{
4823
4797
  const searchParams = buildSearchParams(false);
4824
- const includeAnd = searchParams ? '&' : '';
4798
+ const includeAnd = searchParams ? "&" : "";
4825
4799
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
4826
4800
  }
4827
4801
  })
@@ -4855,26 +4829,26 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
4855
4829
 
4856
4830
 
4857
4831
  const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4858
- defaultSort: 'modified',
4859
- defaultOrder: 'desc'
4860
- }, pageTitle: pageTitle = 'What\'s New ', showLargeFileWarning: showLargeFileWarning = false, introText: introText = '', dataDictionaryLinks: dataDictionaryLinks = false })=>{
4832
+ defaultSort: "modified",
4833
+ defaultOrder: "desc"
4834
+ }, pageTitle: pageTitle = "What's New ", showLargeFileWarning: showLargeFileWarning = false, introText: introText = "", dataDictionaryLinks: dataDictionaryLinks = false })=>{
4861
4835
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4862
4836
  const sortOptions = [
4863
4837
  {
4864
- label: 'Newest',
4865
- value: 'newest'
4838
+ label: "Newest",
4839
+ value: "newest"
4866
4840
  },
4867
4841
  {
4868
- label: 'Oldest',
4869
- value: 'oldest'
4842
+ label: "Oldest",
4843
+ value: "oldest"
4870
4844
  },
4871
4845
  {
4872
- label: 'Title A-Z',
4873
- value: 'titleAZ'
4846
+ label: "Title A-Z",
4847
+ value: "titleAZ"
4874
4848
  },
4875
4849
  {
4876
- label: 'Title Z-A',
4877
- value: 'titleZA'
4850
+ label: "Title Z-A",
4851
+ value: "titleZA"
4878
4852
  }
4879
4853
  ];
4880
4854
  const defaultSortBy = "";
@@ -4888,42 +4862,71 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4888
4862
  endingNumber: 0
4889
4863
  });
4890
4864
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4891
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4865
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4892
4866
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4893
4867
  const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
4894
4868
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
4895
4869
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4896
4870
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4897
4871
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4898
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4872
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4899
4873
  });
4900
4874
  const setSortOptions = (value)=>{
4901
4875
  setSortDisplay(value);
4902
4876
  switch(value){
4903
- case 'newest':
4904
- setSort('modified');
4905
- setSortOrder('desc');
4877
+ case "newest":
4878
+ setSort("modified");
4879
+ setSortOrder("desc");
4906
4880
  break;
4907
- case 'oldest':
4908
- setSort('modified');
4909
- setSortOrder('asc');
4881
+ case "oldest":
4882
+ setSort("modified");
4883
+ setSortOrder("asc");
4910
4884
  break;
4911
- case 'titleAZ':
4912
- setSort('title');
4913
- setSortOrder('asc');
4885
+ case "titleAZ":
4886
+ setSort("title");
4887
+ setSortOrder("asc");
4914
4888
  break;
4915
- case 'titleZA':
4916
- setSort('title');
4917
- setSortOrder('desc');
4889
+ case "titleZA":
4890
+ setSort("title");
4891
+ setSortOrder("desc");
4918
4892
  break;
4919
4893
  }
4920
4894
  };
4921
4895
  const pageSize = defaultPageSize;
4896
+ function buildSearchParams(includePage) {
4897
+ let newParams = {};
4898
+ if (Number(page) !== 1 && includePage) newParams.page = page;
4899
+ if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4900
+ if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4901
+ return (0, $hgUW1$qs).stringify(newParams, {
4902
+ addQueryPrefix: includePage,
4903
+ encode: true
4904
+ });
4905
+ }
4906
+ let params = {
4907
+ sort: sort ? sort : undefined,
4908
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4909
+ page: page !== 1 ? page : undefined,
4910
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4911
+ };
4912
+ const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4913
+ queryKey: [
4914
+ "datasets",
4915
+ params
4916
+ ],
4917
+ queryFn: ()=>{
4918
+ return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4919
+ arrayFormat: "comma",
4920
+ encode: false
4921
+ })}`);
4922
+ }
4923
+ });
4924
+ if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
4922
4925
  (0, $hgUW1$useEffect)(()=>{
4923
4926
  // Update browser URL with current search params
4924
4927
  const params = buildSearchParams(true);
4925
4928
  const url = new URL(window.location.href);
4926
- window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
4929
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
4927
4930
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4928
4931
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4929
4932
  const endingNumber = Number(pageSize) * Number(page);
@@ -4932,9 +4935,6 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4932
4935
  startingNumber: Number(totalItems) >= startingNumber ? startingNumber : 0,
4933
4936
  endingNumber: Number(totalItems) < endingNumber ? Number(totalItems) : endingNumber
4934
4937
  });
4935
- setTimeout(()=>{
4936
- setAnnouncementText(`Showing ${startingNumber} to ${endingNumber} of ${totalItems} datasets`);
4937
- }, 100);
4938
4938
  if (totalItems <= 0 && currentResultNumbers !== null) setNoResults(true);
4939
4939
  else setNoResults(false);
4940
4940
  }, [
@@ -4950,35 +4950,17 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4950
4950
  sort,
4951
4951
  sortOrder
4952
4952
  ]);
4953
- function buildSearchParams(includePage) {
4954
- let newParams = {};
4955
- if (Number(page) !== 1 && includePage) newParams.page = page;
4956
- if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4957
- if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4958
- return (0, $hgUW1$qs).stringify(newParams, {
4959
- addQueryPrefix: includePage,
4960
- encode: true
4961
- });
4962
- }
4963
- let params = {
4964
- sort: sort ? sort : undefined,
4965
- ['sort-order']: sortOrder ? sortOrder : undefined,
4966
- page: page !== 1 ? page : undefined,
4967
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4968
- };
4969
- const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4970
- queryKey: [
4971
- "datasets",
4972
- params
4973
- ],
4974
- queryFn: ()=>{
4975
- return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4976
- arrayFormat: 'comma',
4977
- encode: false
4978
- })}`);
4979
- }
4980
- });
4981
- if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
4953
+ (0, $hgUW1$useEffect)(()=>{
4954
+ // No results found
4955
+ if (noResults) setAnnouncementText("No results found.");
4956
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
4957
+ else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
4958
+ }, [
4959
+ data,
4960
+ isPending,
4961
+ noResults,
4962
+ currentResultNumbers
4963
+ ]);
4982
4964
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
4983
4965
  children: [
4984
4966
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5723016a5461c1ca$export$2e2bcd8739ae039), {
@@ -4987,6 +4969,15 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4987
4969
  /*#__PURE__*/ (0, $hgUW1$jsxs)("section", {
4988
4970
  className: "ds-l-container",
4989
4971
  children: [
4972
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4973
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
4974
+ className: "ds-u-visibility--screen-reader",
4975
+ "aria-live": "assertive",
4976
+ "aria-atomic": "true",
4977
+ "data-testid": "currentResults",
4978
+ children: announcementText
4979
+ })
4980
+ }),
4990
4981
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4991
4982
  className: "ds-l-row",
4992
4983
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -5027,33 +5018,22 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5027
5018
  className: "ds-u-margin-bottom--3",
5028
5019
  children: introText ? introText : null
5029
5020
  }),
5030
- enablePagination && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5031
- children: [
5032
- /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5033
- className: "ds-u-margin-y--0",
5034
- "aria-hidden": "true",
5035
- children: currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
5036
- children: [
5037
- "Showing ",
5038
- currentResultNumbers.startingNumber,
5039
- " -",
5040
- ' ',
5041
- currentResultNumbers.endingNumber,
5042
- " of ",
5043
- data.data.total,
5044
- " datasets"
5045
- ]
5046
- })
5047
- }),
5048
- /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5049
- className: "ds-u-visibility--screen-reader",
5050
- role: "status",
5051
- "aria-live": "assertive",
5052
- "aria-atomic": "true",
5053
- "data-testid": "currentResults",
5054
- children: announcementText
5021
+ enablePagination && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5022
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5023
+ className: "ds-u-margin-y--0",
5024
+ children: currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
5025
+ children: [
5026
+ "Showing ",
5027
+ currentResultNumbers.startingNumber,
5028
+ " -",
5029
+ " ",
5030
+ currentResultNumbers.endingNumber,
5031
+ " of ",
5032
+ data.data.total,
5033
+ " datasets"
5034
+ ]
5055
5035
  })
5056
- ]
5036
+ })
5057
5037
  })
5058
5038
  ]
5059
5039
  }),
@@ -5076,6 +5056,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5076
5056
  children: [
5077
5057
  noResults && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
5078
5058
  variation: "error",
5059
+ role: "region",
5079
5060
  heading: "No results found."
5080
5061
  }),
5081
5062
  data && data.data.results ? Object.keys(data.data.results).map((key)=>{
@@ -5090,6 +5071,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5090
5071
  }, item.identifier);
5091
5072
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
5092
5073
  variation: "error",
5074
+ role: "region",
5093
5075
  heading: "Could not connect to the API."
5094
5076
  })
5095
5077
  ]
@@ -5104,7 +5086,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5104
5086
  },
5105
5087
  renderHref: (page)=>{
5106
5088
  const searchParams = buildSearchParams(false);
5107
- const includeAnd = searchParams ? '&' : '';
5089
+ const includeAnd = searchParams ? "&" : "";
5108
5090
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
5109
5091
  }
5110
5092
  })
@@ -5136,12 +5118,12 @@ var $550bcc185f420ff5$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5136
5118
 
5137
5119
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5138
5120
  const [dataset, setDataset] = (0, $hgUW1$useState)({
5139
- title: '',
5121
+ title: "",
5140
5122
  distribution: [],
5141
- error: '',
5142
- description: '',
5143
- identifier: '',
5144
- modified: ''
5123
+ error: "",
5124
+ description: "",
5125
+ identifier: "",
5126
+ modified: ""
5145
5127
  });
5146
5128
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
5147
5129
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -5151,7 +5133,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5151
5133
  "metastore" + id
5152
5134
  ],
5153
5135
  queryFn: ()=>{
5154
- return (0, $hgUW1$axios).get(`${rootUrl}/metastore/schemas/dataset/items/${id}?show-reference-ids${ACA ? '&' : ''}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`).then((res)=>res.data).catch((error)=>{
5136
+ return (0, $hgUW1$axios).get(`${rootUrl}/metastore/schemas/dataset/items/${id}?show-reference-ids${ACA ? "&" : ""}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`).then((res)=>res.data).catch((error)=>{
5155
5137
  return {
5156
5138
  title: dataset.title,
5157
5139
  distribution: dataset.distribution,
@@ -5206,6 +5188,11 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5206
5188
  const [schema, setSchema] = (0, $hgUW1$useState)({});
5207
5189
  // const [joins, setJoins] = useState()
5208
5190
  const [properties, setProperties] = (0, $hgUW1$useState)(options.properties ? options.properties : undefined);
5191
+ // Check drupalSettings for datastore_query_api
5192
+ const useDatasetAPI = typeof window !== "undefined" && window.drupalSettings?.datastore_query_api === true;
5193
+ const datasetID = additionalParams.datasetID;
5194
+ // Remove datasetID from params to avoid sending it to the API
5195
+ const { datasetID: _, ...restAdditionalParams } = additionalParams;
5209
5196
  let params = {
5210
5197
  keys: keys,
5211
5198
  limit: limit,
@@ -5214,22 +5201,24 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5214
5201
  sorts: sort,
5215
5202
  properties: properties,
5216
5203
  groupings: groupings,
5217
- ...additionalParams
5204
+ ...restAdditionalParams
5218
5205
  };
5219
5206
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
5220
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
5207
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
5221
5208
  let enabled = false;
5222
5209
  if (id) {
5223
5210
  if (!requireConditions) enabled = true;
5224
5211
  if (conditions && conditions.length) enabled = true;
5225
5212
  }
5213
+ // Change whether distribution API or dataset API is used based on option
5214
+ const queryID = useDatasetAPI && datasetID ? `${datasetID}/0` : id;
5226
5215
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
5227
5216
  queryKey: [
5228
5217
  "datastore" + id + paramsString
5229
5218
  ],
5230
5219
  queryFn: ()=>{
5231
5220
  setCount(null);
5232
- return fetch(`${rootUrl}/datastore/query/${id}?${paramsString}`).then((res)=>res.json());
5221
+ return fetch(`${rootUrl}/datastore/query/${queryID}?${paramsString}`).then((res)=>res.json());
5233
5222
  },
5234
5223
  enabled: enabled
5235
5224
  });
@@ -5243,7 +5232,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5243
5232
  count: true,
5244
5233
  schema: true
5245
5234
  };
5246
- return fetch(`${rootUrl}/datastore/query/${id}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(unfilteredParams, ACA))}`).then((res)=>res.json());
5235
+ return fetch(`${rootUrl}/datastore/query/${queryID}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(unfilteredParams, ACA))}`).then((res)=>res.json());
5247
5236
  }
5248
5237
  });
5249
5238
  (0, $hgUW1$useEffect)(()=>{
@@ -5297,65 +5286,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
5297
5286
 
5298
5287
 
5299
5288
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
5300
- 'R/P10Y': {
5301
- name: 'Decennial'
5289
+ "R/P10Y": {
5290
+ name: "Decennial"
5302
5291
  },
5303
- 'R/P4Y': {
5304
- name: 'Quadrennial'
5292
+ "R/P4Y": {
5293
+ name: "Quadrennial"
5305
5294
  },
5306
- 'R/P1Y': {
5307
- name: 'Annual'
5295
+ "R/P1Y": {
5296
+ name: "Annual"
5308
5297
  },
5309
- 'R/P2M': {
5310
- name: 'Bimonthly'
5298
+ "R/P2M": {
5299
+ name: "Bimonthly"
5311
5300
  },
5312
- 'R/P3.5D': {
5313
- name: 'Semiweekly'
5301
+ "R/P3.5D": {
5302
+ name: "Semiweekly"
5314
5303
  },
5315
- 'R/P1D': {
5316
- name: 'Daily'
5304
+ "R/P1D": {
5305
+ name: "Daily"
5317
5306
  },
5318
- 'R/P2W': {
5319
- name: 'Biweekly'
5307
+ "R/P2W": {
5308
+ name: "Biweekly"
5320
5309
  },
5321
- 'R/P6M': {
5322
- name: 'Semiannual'
5310
+ "R/P6M": {
5311
+ name: "Semiannual"
5323
5312
  },
5324
- 'R/P2Y': {
5325
- name: 'Biennial'
5313
+ "R/P2Y": {
5314
+ name: "Biennial"
5326
5315
  },
5327
- 'R/P3Y': {
5328
- name: 'Triennial'
5316
+ "R/P3Y": {
5317
+ name: "Triennial"
5329
5318
  },
5330
- 'R/P0.33W': {
5331
- name: 'Three times a week'
5319
+ "R/P0.33W": {
5320
+ name: "Three times a week"
5332
5321
  },
5333
- 'R/P0.33M': {
5334
- name: 'Three times a month'
5322
+ "R/P0.33M": {
5323
+ name: "Three times a month"
5335
5324
  },
5336
- 'R/PT1S': {
5337
- name: 'Continuously updated'
5325
+ "R/PT1S": {
5326
+ name: "Continuously updated"
5338
5327
  },
5339
- 'R/P1M': {
5340
- name: 'Monthly'
5328
+ "R/P1M": {
5329
+ name: "Monthly"
5341
5330
  },
5342
- 'R/P3M': {
5343
- name: 'Quarterly'
5331
+ "R/P3M": {
5332
+ name: "Quarterly"
5344
5333
  },
5345
- 'R/P0.5M': {
5346
- name: 'Semimonthly'
5334
+ "R/P0.5M": {
5335
+ name: "Semimonthly"
5347
5336
  },
5348
- 'R/P4M': {
5349
- name: 'Three times a year'
5337
+ "R/P4M": {
5338
+ name: "Three times a year"
5350
5339
  },
5351
- 'R/P1W': {
5352
- name: 'Weekly'
5340
+ "R/P1W": {
5341
+ name: "Weekly"
5353
5342
  },
5354
- 'R/PT1H': {
5355
- name: 'Hourly'
5343
+ "R/PT1H": {
5344
+ name: "Hourly"
5356
5345
  },
5357
5346
  irregular: {
5358
- name: 'Irregular'
5347
+ name: "Irregular"
5359
5348
  }
5360
5349
  };
5361
5350
 
@@ -5364,7 +5353,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5364
5353
  modified: (data)=>{
5365
5354
  return [
5366
5355
  {
5367
- label: 'Modified',
5356
+ label: "Modified",
5368
5357
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5369
5358
  date: data
5370
5359
  })
@@ -5374,7 +5363,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5374
5363
  issued: (data)=>{
5375
5364
  return [
5376
5365
  {
5377
- label: 'Issued',
5366
+ label: "Issued",
5378
5367
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5379
5368
  date: data
5380
5369
  })
@@ -5384,7 +5373,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5384
5373
  accrualPeriodicity: (data)=>{
5385
5374
  return [
5386
5375
  {
5387
- label: 'Frequency',
5376
+ label: "Frequency",
5388
5377
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
5389
5378
  }
5390
5379
  ];
@@ -5392,7 +5381,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5392
5381
  publisher: (data)=>{
5393
5382
  if (data.data && data.data.name) return [
5394
5383
  {
5395
- label: 'Publisher',
5384
+ label: "Publisher",
5396
5385
  value: data.data.name
5397
5386
  }
5398
5387
  ];
@@ -5401,7 +5390,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5401
5390
  identifier: (data)=>{
5402
5391
  return [
5403
5392
  {
5404
- label: 'Identifier',
5393
+ label: "Identifier",
5405
5394
  value: data
5406
5395
  }
5407
5396
  ];
@@ -5409,11 +5398,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5409
5398
  contactPoint: (data)=>{
5410
5399
  let rows = [];
5411
5400
  if (data.fn) rows.push({
5412
- label: 'Contact',
5401
+ label: "Contact",
5413
5402
  value: data.fn
5414
5403
  });
5415
5404
  if (data.hasEmail) rows.push({
5416
- label: 'Contact Email',
5405
+ label: "Contact Email",
5417
5406
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5418
5407
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
5419
5408
  children: data.hasEmail.replace("mailto:", "")
@@ -5424,7 +5413,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5424
5413
  bureauCode: (data)=>{
5425
5414
  if (data.length) return [
5426
5415
  {
5427
- label: 'Bureau Code',
5416
+ label: "Bureau Code",
5428
5417
  value: data[0]
5429
5418
  }
5430
5419
  ];
@@ -5432,7 +5421,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5432
5421
  programCode: (data)=>{
5433
5422
  if (data.length) return [
5434
5423
  {
5435
- label: 'Program Code',
5424
+ label: "Program Code",
5436
5425
  value: data[0]
5437
5426
  }
5438
5427
  ];
@@ -5440,13 +5429,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5440
5429
  theme: (data)=>{
5441
5430
  return [
5442
5431
  {
5443
- label: 'Category',
5432
+ label: "Category",
5444
5433
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5445
5434
  to: `/datasets?theme[]=${theme.data}`,
5446
5435
  children: theme.data
5447
5436
  }, theme.data)).reduce((prev, curr)=>[
5448
5437
  prev,
5449
- ', ',
5438
+ ", ",
5450
5439
  curr
5451
5440
  ])
5452
5441
  }
@@ -5455,13 +5444,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5455
5444
  keyword: (data)=>{
5456
5445
  return [
5457
5446
  {
5458
- label: 'Tags',
5447
+ label: "Tags",
5459
5448
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5460
5449
  to: `/datasets?keyword[]=${keyword.data}`,
5461
5450
  children: keyword.data
5462
5451
  }, keyword.data)).reduce((prev, curr)=>[
5463
5452
  prev,
5464
- ', ',
5453
+ ", ",
5465
5454
  curr
5466
5455
  ])
5467
5456
  }
@@ -5470,7 +5459,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5470
5459
  license: (data)=>{
5471
5460
  return [
5472
5461
  {
5473
- label: 'License',
5462
+ label: "License",
5474
5463
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5475
5464
  href: data,
5476
5465
  children: data
@@ -5481,7 +5470,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5481
5470
  accessLevel: (data)=>{
5482
5471
  return [
5483
5472
  {
5484
- label: 'Public Access Level',
5473
+ label: "Public Access Level",
5485
5474
  value: data
5486
5475
  }
5487
5476
  ];
@@ -5489,7 +5478,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5489
5478
  temporal: (data)=>{
5490
5479
  return [
5491
5480
  {
5492
- label: 'Temporal Coverage',
5481
+ label: "Temporal Coverage",
5493
5482
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
5494
5483
  className: "dc-c-word-break--all",
5495
5484
  children: data
@@ -5500,7 +5489,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5500
5489
  spatial: (data)=>{
5501
5490
  return [
5502
5491
  {
5503
- label: 'Spacial/Geographical Coverage',
5492
+ label: "Spacial/Geographical Coverage",
5504
5493
  value: data
5505
5494
  }
5506
5495
  ];
@@ -5508,7 +5497,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5508
5497
  references: (data)=>{
5509
5498
  return [
5510
5499
  {
5511
- label: 'Related Documents',
5500
+ label: "Related Documents",
5512
5501
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5513
5502
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
5514
5503
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -5546,7 +5535,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5546
5535
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
5547
5536
  const { data: resource } = (0, $hgUW1$useQuery)({
5548
5537
  queryKey: [
5549
- 'resource-information',
5538
+ "resource-information",
5550
5539
  distribution.identifier
5551
5540
  ],
5552
5541
  queryFn: ()=>(0, $hgUW1$axios).get(`${rootUrl}/datastore/query/${distribution.identifier}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({
@@ -5573,7 +5562,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5573
5562
  }),
5574
5563
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5575
5564
  className: "ds-u-font-weight--bold",
5576
- children: resource?.count ? Number(resource.count).toLocaleString() : ''
5565
+ children: resource?.count ? Number(resource.count).toLocaleString() : ""
5577
5566
  })
5578
5567
  ]
5579
5568
  }),
@@ -5641,8 +5630,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5641
5630
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
5642
5631
  href: dist.data.downloadURL,
5643
5632
  style: {
5644
- order: sm ? '1' : '0',
5645
- width: sm ? '100%' : 'auto'
5633
+ order: sm ? "1" : "0",
5634
+ width: sm ? "100%" : "auto"
5646
5635
  },
5647
5636
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
5648
5637
  className: "ds-c-button",
@@ -5655,7 +5644,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5655
5644
  })
5656
5645
  }),
5657
5646
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5658
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5647
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
5659
5648
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5660
5649
  className: "dc-c-metadata-description ds-u-margin--0",
5661
5650
  dangerouslySetInnerHTML: {
@@ -5729,7 +5718,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5729
5718
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
5730
5719
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
5731
5720
  children: [
5732
- md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5721
+ md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5733
5722
  component: "th",
5734
5723
  className: "ds-u-font-weight--bold",
5735
5724
  children: [
@@ -5741,8 +5730,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5741
5730
  ariaLabel: r.label,
5742
5731
  // @ts-ignore
5743
5732
  style: {
5744
- border: 'none',
5745
- background: 'none'
5733
+ border: "none",
5734
+ background: "none"
5746
5735
  },
5747
5736
  maxWidth: "400px",
5748
5737
  placement: "auto",
@@ -5801,10 +5790,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
5801
5790
  href: apiUrl,
5802
5791
  children: [
5803
5792
  "View API",
5804
- ' ',
5793
+ " ",
5805
5794
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5806
5795
  style: {
5807
- whiteSpace: 'nowrap'
5796
+ whiteSpace: "nowrap"
5808
5797
  },
5809
5798
  children: [
5810
5799
  "specification ",
@@ -5845,20 +5834,19 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
5845
5834
 
5846
5835
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
5847
5836
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
5848
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
5849
5837
  const mobile = (0, $hgUW1$useMediaQuery)({
5850
5838
  minWidth: 0,
5851
5839
  maxWidth: 544
5852
5840
  });
5853
5841
  const sortElement = (isSorted)=>{
5854
- if (isSorted === 'asc') return 'dc-c-sort--asc';
5855
- if (isSorted === 'desc') return 'dc-c-sort--desc';
5856
- return 'dc-c-sort--default';
5842
+ if (isSorted === "asc") return "dc-c-sort--asc";
5843
+ if (isSorted === "desc") return "dc-c-sort--desc";
5844
+ return "dc-c-sort--default";
5857
5845
  };
5858
5846
  const table = (0, $hgUW1$useReactTable)({
5859
5847
  data: tableData,
5860
5848
  columns: tableColumns,
5861
- columnResizeMode: 'onChange',
5849
+ columnResizeMode: "onChange",
5862
5850
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
5863
5851
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
5864
5852
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -5877,49 +5865,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5877
5865
  });
5878
5866
  const sortOptions = [
5879
5867
  {
5880
- value: 'default',
5881
- label: 'No Sort'
5868
+ value: "default",
5869
+ label: "No Sort"
5882
5870
  },
5883
5871
  {
5884
- value: 'titleasc',
5885
- label: 'Title A-Z'
5872
+ value: "titleasc",
5873
+ label: "Title A-Z"
5886
5874
  },
5887
5875
  {
5888
- value: 'titledesc',
5889
- label: 'Title Z-A'
5876
+ value: "titledesc",
5877
+ label: "Title Z-A"
5890
5878
  },
5891
5879
  {
5892
- value: 'typeasc',
5893
- label: 'Type A-Z'
5880
+ value: "typeasc",
5881
+ label: "Type A-Z"
5894
5882
  },
5895
5883
  {
5896
- value: 'typedesc',
5897
- label: 'Type Z-A'
5884
+ value: "typedesc",
5885
+ label: "Type Z-A"
5898
5886
  }
5899
5887
  ];
5900
5888
  const sortStatesLookup = {
5901
5889
  default: [],
5902
5890
  titleasc: [
5903
5891
  {
5904
- id: 'titleResizable',
5892
+ id: "titleResizable",
5905
5893
  desc: false
5906
5894
  }
5907
5895
  ],
5908
5896
  titledesc: [
5909
5897
  {
5910
- id: 'titleResizable',
5898
+ id: "titleResizable",
5911
5899
  desc: true
5912
5900
  }
5913
5901
  ],
5914
5902
  typeasc: [
5915
5903
  {
5916
- id: 'type',
5904
+ id: "type",
5917
5905
  desc: false
5918
5906
  }
5919
5907
  ],
5920
5908
  typedesc: [
5921
5909
  {
5922
- id: 'type',
5910
+ id: "type",
5923
5911
  desc: true
5924
5912
  }
5925
5913
  ]
@@ -5947,7 +5935,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5947
5935
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
5948
5936
  className: "dc-c-datatable",
5949
5937
  style: {
5950
- width: '100%'
5938
+ width: "100%"
5951
5939
  },
5952
5940
  stackable: true,
5953
5941
  children: [
@@ -5958,17 +5946,17 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5958
5946
  return header.id === "titleResizable" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $64a351d3fd8413c3$export$2e2bcd8739ae039), {
5959
5947
  table: table,
5960
5948
  header: header,
5961
- setAriaLiveFeedback: setAriaLiveFeedback,
5962
- sortElement: sortElement
5949
+ sortElement: sortElement,
5950
+ id: "dataDictionary_" + header.id
5963
5951
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5964
5952
  key: header.id,
5965
5953
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
5966
- id: 'dataDictionary_' + header.id,
5954
+ id: "dataDictionary_" + header.id,
5967
5955
  children: [
5968
5956
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
5969
- header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5957
+ header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5970
5958
  onClick: header.column.getToggleSortingHandler(),
5971
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
5959
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
5972
5960
  "aria-label": `${header.column.columnDef.header} sort order`
5973
5961
  })
5974
5962
  ]
@@ -5983,12 +5971,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5983
5971
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
5984
5972
  key: cell.id,
5985
5973
  style: {
5986
- maxWidth: mobile ? '100%' : cell.column.getSize(),
5987
- whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
5974
+ maxWidth: mobile ? "100%" : cell.column.getSize(),
5975
+ whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
5988
5976
  },
5989
- className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
5990
- headers: 'dataDictionary_' + cell.column.id,
5991
- stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
5977
+ className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
5978
+ headers: "dataDictionary_" + cell.column.id,
5979
+ stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
5992
5980
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
5993
5981
  });
5994
5982
  })
@@ -5997,12 +5985,6 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5997
5985
  })
5998
5986
  ]
5999
5987
  }),
6000
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6001
- className: "sr-only",
6002
- "aria-live": "assertive",
6003
- "aria-atomic": "true",
6004
- children: ariaLiveFeedback
6005
- }),
6006
5988
  table.getRowModel().rows.length === 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
6007
5989
  variation: "warn",
6008
5990
  children: "No results found for the current filters"
@@ -6017,7 +5999,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6017
5999
  table.setPageIndex(page - 1);
6018
6000
  },
6019
6001
  renderHref: (page)=>`/page=${page}`
6020
- }) : ''
6002
+ }) : ""
6021
6003
  ]
6022
6004
  });
6023
6005
  };
@@ -6027,17 +6009,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
6027
6009
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
6028
6010
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6029
6011
  const tableColumns = [
6030
- columnHelper.accessor('name', {
6031
- header: 'Name'
6012
+ columnHelper.accessor("name", {
6013
+ header: "Name"
6032
6014
  }),
6033
- columnHelper.accessor('title', {
6034
- header: 'Title'
6015
+ columnHelper.accessor("title", {
6016
+ header: "Title"
6035
6017
  }),
6036
- columnHelper.accessor('type', {
6037
- header: 'Type'
6018
+ columnHelper.accessor("type", {
6019
+ header: "Type"
6038
6020
  }),
6039
- columnHelper.accessor('format', {
6040
- header: 'Format'
6021
+ columnHelper.accessor("format", {
6022
+ header: "Format"
6041
6023
  })
6042
6024
  ];
6043
6025
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -6081,7 +6063,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6081
6063
  });
6082
6064
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6083
6065
  const tableColumns = [
6084
- columnHelper.accessor('titleResizable', {
6066
+ columnHelper.accessor("titleResizable", {
6085
6067
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6086
6068
  className: "dc-c-tooltip-width-override",
6087
6069
  children: [
@@ -6090,8 +6072,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6090
6072
  title: "Title represents the column headers of the data file",
6091
6073
  // @ts-ignore
6092
6074
  style: {
6093
- border: 'none',
6094
- background: 'none'
6075
+ border: "none",
6076
+ background: "none"
6095
6077
  },
6096
6078
  maxWidth: "400px",
6097
6079
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -6101,48 +6083,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6101
6083
  size: 300,
6102
6084
  minSize: 132
6103
6085
  }),
6104
- columnHelper.accessor('description', {
6105
- header: 'Description',
6086
+ columnHelper.accessor("description", {
6087
+ header: "Description",
6106
6088
  minSize: 600
6107
6089
  }),
6108
- columnHelper.accessor('type', {
6109
- header: 'Type',
6090
+ columnHelper.accessor("type", {
6091
+ header: "Type",
6110
6092
  size: 150,
6111
6093
  enableResizing: false
6112
6094
  })
6113
6095
  ];
6114
6096
  const typeOptions = [
6115
6097
  {
6116
- value: 'all',
6117
- label: 'All Types'
6098
+ value: "all",
6099
+ label: "All Types"
6118
6100
  },
6119
6101
  {
6120
- value: 'string',
6121
- label: 'String'
6102
+ value: "string",
6103
+ label: "String"
6122
6104
  },
6123
6105
  {
6124
- value: 'date',
6125
- label: 'Date'
6106
+ value: "date",
6107
+ label: "Date"
6126
6108
  },
6127
6109
  {
6128
- value: 'datetime',
6129
- label: 'Datetime'
6110
+ value: "datetime",
6111
+ label: "Datetime"
6130
6112
  },
6131
6113
  {
6132
- value: 'year',
6133
- label: 'Year'
6114
+ value: "year",
6115
+ label: "Year"
6134
6116
  },
6135
6117
  {
6136
- value: 'integer',
6137
- label: 'Integer'
6118
+ value: "integer",
6119
+ label: "Integer"
6138
6120
  },
6139
6121
  {
6140
- value: 'number',
6141
- label: 'Number'
6122
+ value: "number",
6123
+ label: "Number"
6142
6124
  },
6143
6125
  {
6144
- value: 'boolean',
6145
- label: 'Boolean'
6126
+ value: "boolean",
6127
+ label: "Boolean"
6146
6128
  }
6147
6129
  ];
6148
6130
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -6249,7 +6231,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
6249
6231
  href: datasetDictionaryEndpoint + "/csv",
6250
6232
  className: "ds-c-button",
6251
6233
  style: {
6252
- width: '100%'
6234
+ width: "100%"
6253
6235
  },
6254
6236
  children: [
6255
6237
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -6306,13 +6288,13 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6306
6288
  const [description, setDescription] = (0, $hgUW1$useState)("");
6307
6289
  if (!distribution && !dataset?.identifier) return null;
6308
6290
  (0, $hgUW1$useEffect)(()=>{
6309
- let newDescription = '';
6291
+ let newDescription = "";
6310
6292
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
6311
6293
  else {
6312
6294
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
6313
6295
  else if (dataset.description) newDescription = dataset.description;
6314
6296
  }
6315
- if (typeof newDescription === "string" && description !== newDescription && updateAriaLive) updateAriaLive(newDescription);
6297
+ if (description !== newDescription && updateAriaLive) updateAriaLive(newDescription);
6316
6298
  setDescription(newDescription);
6317
6299
  }, [
6318
6300
  resource,
@@ -6321,14 +6303,12 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6321
6303
  customDescription
6322
6304
  ]);
6323
6305
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6324
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
6306
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
6325
6307
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6326
6308
  className: "ds-u-margin-top--0 dc-c-metadata-description",
6327
- children: typeof description === "string" ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6328
- dangerouslySetInnerHTML: {
6329
- __html: (0, $hgUW1$dompurify).sanitize(description)
6330
- }
6331
- }) : description
6309
+ dangerouslySetInnerHTML: {
6310
+ __html: (0, $hgUW1$dompurify).sanitize(description)
6311
+ }
6332
6312
  })
6333
6313
  });
6334
6314
  };
@@ -6345,7 +6325,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6345
6325
  ],
6346
6326
  queryFn: ()=>{
6347
6327
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
6348
- arrayFormat: 'comma',
6328
+ arrayFormat: "comma",
6349
6329
  encode: false
6350
6330
  })}`).then((res)=>res.json());
6351
6331
  }
@@ -6364,7 +6344,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6364
6344
  conditions: []
6365
6345
  };
6366
6346
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6367
- const title = dataset.title ? dataset.title : '';
6347
+ const title = dataset.title ? dataset.title : "";
6368
6348
  const metadataMapping = {
6369
6349
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
6370
6350
  ...customMetadataMapping
@@ -6372,9 +6352,11 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6372
6352
  let distribution = {};
6373
6353
  let distributions = dataset.distribution ? dataset.distribution : [];
6374
6354
  if (distributions.length) distribution = distributions[0];
6375
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6355
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6376
6356
  ...options,
6377
6357
  limit: defaultPageSize
6358
+ }, {
6359
+ datasetID: id // pass datasetID into additional params to enable dataset API option in useDatastore
6378
6360
  });
6379
6361
  const siteWideDataDictionary = dataDictionaryUrl ? $a0f13962e513caa1$var$getDataDictionary(rootUrl + dataDictionaryUrl).dataDictionary : null;
6380
6362
  // compare schema fields with siteWideDataDictionary to display commonalities for now
@@ -6384,7 +6366,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6384
6366
  }) : null;
6385
6367
  (0, $hgUW1$useEffect)(()=>{
6386
6368
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6387
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6369
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6388
6370
  }, [
6389
6371
  distribution
6390
6372
  ]);
@@ -6439,27 +6421,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6439
6421
  distribution,
6440
6422
  window.location.hash
6441
6423
  ]);
6442
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6443
- const formatType = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6424
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6444
6425
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6445
6426
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6446
6427
  content: notFoundContent,
6447
6428
  siteUrl: rootUrl
6448
6429
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6449
- className: 'ds-l-container',
6430
+ className: "ds-l-container",
6450
6431
  children: [
6451
6432
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6452
- className: 'ds-l-row',
6433
+ className: "ds-l-row",
6453
6434
  children: [
6454
6435
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6455
- className: 'ds-l-md-col--9',
6436
+ className: "ds-l-md-col--9",
6456
6437
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6457
6438
  className: "ds-text-heading--3xl",
6458
6439
  children: title
6459
6440
  })
6460
6441
  }),
6461
6442
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6462
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6443
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6463
6444
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6464
6445
  className: "ds-u-margin--0",
6465
6446
  children: [
@@ -6471,7 +6452,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6471
6452
  })
6472
6453
  }),
6473
6454
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6474
- className: 'ds-l-md-col--9',
6455
+ className: "ds-l-md-col--9",
6475
6456
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6476
6457
  distribution: distribution,
6477
6458
  dataset: dataset,
@@ -6483,9 +6464,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6483
6464
  ]
6484
6465
  }),
6485
6466
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6486
- className: 'ds-l-row',
6467
+ className: "ds-l-row",
6487
6468
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6488
- className: 'ds-l-md-col--12 dc-dataset',
6469
+ className: "ds-l-md-col--12 dc-dataset",
6489
6470
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
6490
6471
  onChange: (selectedId, prevSelectedId)=>{
6491
6472
  setSelectedTab(selectedId);
@@ -6493,7 +6474,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6493
6474
  selectedId: selectedTab,
6494
6475
  children: [
6495
6476
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6496
- id: 'data-table',
6477
+ id: "data-table",
6497
6478
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6498
6479
  className: "ds-u-color--primary",
6499
6480
  children: [
@@ -6503,7 +6484,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6503
6484
  "Data Table"
6504
6485
  ]
6505
6486
  }),
6506
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6487
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6507
6488
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6508
6489
  value: {
6509
6490
  id: id,
@@ -6520,7 +6501,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6520
6501
  })
6521
6502
  }),
6522
6503
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6523
- id: 'overview',
6504
+ id: "overview",
6524
6505
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6525
6506
  className: "ds-u-color--primary",
6526
6507
  children: [
@@ -6530,7 +6511,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6530
6511
  "Overview"
6531
6512
  ]
6532
6513
  }),
6533
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6514
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6534
6515
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6535
6516
  resource: resource,
6536
6517
  dataset: dataset,
@@ -6540,7 +6521,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6540
6521
  })
6541
6522
  }),
6542
6523
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6543
- id: 'data-dictionary',
6524
+ id: "data-dictionary",
6544
6525
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6545
6526
  className: "ds-u-color--primary",
6546
6527
  children: [
@@ -6550,7 +6531,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6550
6531
  "Data Dictionary"
6551
6532
  ]
6552
6533
  }),
6553
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6534
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6554
6535
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6555
6536
  datasetSitewideDictionary: datasetSitewideDictionary,
6556
6537
  datasetDictionaryEndpoint: distribution.data.describedBy,
@@ -6561,7 +6542,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6561
6542
  })
6562
6543
  }),
6563
6544
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6564
- id: 'api',
6545
+ id: "api",
6565
6546
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6566
6547
  className: "ds-u-color--primary",
6567
6548
  children: [
@@ -6571,7 +6552,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6571
6552
  "API"
6572
6553
  ]
6573
6554
  }),
6574
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6555
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6575
6556
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6576
6557
  id: id,
6577
6558
  rootUrl: rootUrl,
@@ -6608,13 +6589,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6608
6589
  });
6609
6590
  const menu = (0, $hgUW1$useRef)(null);
6610
6591
  function closeMobileMenu() {
6611
- const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
6592
+ const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
6612
6593
  if (!mobileMenuButtonElement) return;
6613
6594
  mobileMenuButtonElement.focus();
6614
6595
  }
6615
6596
  // Close mobile menu with escape.
6616
6597
  function handleMenuClose(event) {
6617
- if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
6598
+ if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
6618
6599
  }
6619
6600
  function handleClick(event) {
6620
6601
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -6649,7 +6630,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6649
6630
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
6650
6631
  const firstEl = focusableEls[0];
6651
6632
  const lastEl = focusableEls[focusableEls.length - 1];
6652
- if (event.key === 'Tab') {
6633
+ if (event.key === "Tab") {
6653
6634
  if (event.shiftKey && document.activeElement === firstEl) {
6654
6635
  lastEl?.focus();
6655
6636
  event.preventDefault();
@@ -6661,15 +6642,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6661
6642
  }
6662
6643
  };
6663
6644
  (0, $hgUW1$useEffect)(()=>{
6664
- document.addEventListener('keyup', handleMenuClose);
6665
- document.addEventListener('mousedown', handleClick);
6645
+ document.addEventListener("keyup", handleMenuClose);
6646
+ document.addEventListener("mousedown", handleClick);
6666
6647
  if (mobileMenuOpen) handleFocusIn();
6667
6648
  else closeMobileMenu();
6668
- if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
6649
+ if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
6669
6650
  return ()=>{
6670
- document.removeEventListener('keyup', handleMenuClose);
6671
- document.addEventListener('mousedown', handleClick);
6672
- if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
6651
+ document.removeEventListener("keyup", handleMenuClose);
6652
+ document.addEventListener("mousedown", handleClick);
6653
+ if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
6673
6654
  };
6674
6655
  }, [
6675
6656
  mobileMenuOpen
@@ -6684,7 +6665,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6684
6665
  },
6685
6666
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
6686
6667
  "aria-label": "Site header",
6687
- className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
6668
+ className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
6688
6669
  children: [
6689
6670
  topNav && topNav,
6690
6671
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6712,28 +6693,22 @@ var $b9af6ce5e2c06331$export$2e2bcd8739ae039 = $b9af6ce5e2c06331$var$Header;
6712
6693
 
6713
6694
 
6714
6695
 
6715
-
6716
6696
  const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null, wrapLabel: wrapLabel = false, clickHandler: clickHandler })=>{
6717
6697
  const innerHtml = wrapLabel ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
6718
6698
  children: link.label
6719
6699
  }) : link.label;
6720
- return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$NavLink), {
6700
+ return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$NavLink), {
6721
6701
  className: ({ isActive: isActive })=>isActive ? `dc-c-active-link ${className}` : `${className}`,
6722
6702
  to: link.url,
6723
6703
  onClick: clickHandler ? clickHandler : undefined,
6724
- children: [
6725
- innerHtml,
6726
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6727
- className: "ds-u-margin-left--05 ds-c-external-link-icon"
6728
- })
6729
- ]
6704
+ children: innerHtml
6730
6705
  });
6731
6706
  // }
6732
6707
  };
6733
6708
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
6734
6709
 
6735
6710
 
6736
- const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = true, emailTitle: emailTitle = 'Get Email Updates', emailBody: emailBody = 'Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.', emailLink: emailLink = '', emailButton: emailButton = 'Sign up for email updates', socialMediaLinks: socialMediaLinks = null, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent = /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6711
+ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = true, emailTitle: emailTitle = "Get Email Updates", emailBody: emailBody = "Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.", emailLink: emailLink = "", emailButton: emailButton = "Sign up for email updates", socialMediaLinks: socialMediaLinks = null, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent = /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6737
6712
  children: [
6738
6713
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6739
6714
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -6821,14 +6796,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6821
6796
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
6822
6797
  className: "ds-u-font-size--sm",
6823
6798
  children: footerAdditionalResourcesLinks.filter((link)=>{
6824
- const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
6799
+ const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
6825
6800
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
6826
6801
  }).map((link)=>{
6827
6802
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
6828
6803
  className: "ds-u-margin-bottom--1",
6829
6804
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
6830
6805
  href: link.url,
6831
- ['data-' + link.dataTag.name]: link.dataTag.value,
6806
+ ["data-" + link.dataTag.name]: link.dataTag.value,
6832
6807
  onClick: link.onClick,
6833
6808
  children: link.label
6834
6809
  })
@@ -6928,7 +6903,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6928
6903
  children: [
6929
6904
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6930
6905
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
6931
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
6906
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
6932
6907
  }),
6933
6908
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6934
6909
  transform: "translate(160 256)",
@@ -6981,7 +6956,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6981
6956
  children: [
6982
6957
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6983
6958
  id: "svg-inline--fa-title-4z03ITiPPTVF",
6984
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
6959
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
6985
6960
  }),
6986
6961
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6987
6962
  transform: "translate(256 256)",
@@ -7034,7 +7009,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7034
7009
  children: [
7035
7010
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7036
7011
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
7037
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
7012
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
7038
7013
  }),
7039
7014
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7040
7015
  transform: "translate(224 256)",
@@ -7086,7 +7061,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7086
7061
  children: [
7087
7062
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7088
7063
  id: "svg-inline--fa-title-youtube",
7089
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
7064
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
7090
7065
  }),
7091
7066
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
7092
7067
  fill: "currentColor",
@@ -7116,15 +7091,10 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7116
7091
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
7117
7092
  className: "ds-u-padding--0 ds-u-display--flex ds-u-lg-flex-direction--row ds-u-flex-direction--column",
7118
7093
  children: footerUtilityLinks.map((link)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
7119
- children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7094
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
7120
7095
  href: link.url,
7121
7096
  className: "ds-u-margin-right--2",
7122
- children: [
7123
- link.label,
7124
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7125
- className: "ds-u-margin-left--05 ds-c-external-link-icon"
7126
- })
7127
- ]
7097
+ children: link.label
7128
7098
  })
7129
7099
  }, link.id))
7130
7100
  })
@@ -7191,26 +7161,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7191
7161
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
7192
7162
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
7193
7163
  stackable: true,
7194
- className: 'ds-c-table',
7164
+ className: "ds-c-table",
7195
7165
  children: [
7196
7166
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
7197
7167
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
7198
7168
  children: [
7199
7169
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7200
- id: 'application',
7201
- headers: 'Application',
7170
+ id: "application",
7171
+ headers: "Application",
7202
7172
  children: "Application"
7203
- }, 'Application'),
7173
+ }, "Application"),
7204
7174
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7205
- id: 'notes',
7206
- headers: 'Notes',
7175
+ id: "notes",
7176
+ headers: "Notes",
7207
7177
  children: "Notes"
7208
- }, 'Notes'),
7178
+ }, "Notes"),
7209
7179
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7210
- id: 'links',
7211
- headers: 'Links',
7180
+ id: "links",
7181
+ headers: "Links",
7212
7182
  children: "Links"
7213
- }, 'Links')
7183
+ }, "Links")
7214
7184
  ]
7215
7185
  })
7216
7186
  }),
@@ -7220,19 +7190,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7220
7190
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7221
7191
  id: d.id,
7222
7192
  stackedTitle: "Application",
7223
- headers: 'Application',
7193
+ headers: "Application",
7224
7194
  children: d.application
7225
7195
  }, d.id),
7226
7196
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7227
7197
  id: d.id,
7228
7198
  stackedTitle: "Notes",
7229
- headers: 'Notes',
7199
+ headers: "Notes",
7230
7200
  children: d.notes
7231
7201
  }, `${d.id}-notes`),
7232
7202
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7233
7203
  id: d.id,
7234
7204
  stackedTitle: "Links",
7235
- headers: 'Links',
7205
+ headers: "Links",
7236
7206
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7237
7207
  className: "dkan-newtab",
7238
7208
  href: d.link,
@@ -7260,44 +7230,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
7260
7230
 
7261
7231
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
7262
7232
  {
7263
- id: 'excel',
7264
- application: 'Microsoft Excel',
7265
- notes: 'Official size limitations for Microsoft Excel',
7266
- link: 'https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3?redirectSourcePath=%252fen-us%252farticle%252fExcel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f',
7267
- linkText: 'Excel Specifications and Limits',
7268
- screenReaderOnlyText: 'on microsoft.com'
7233
+ id: "excel",
7234
+ application: "Microsoft Excel",
7235
+ notes: "Official size limitations for Microsoft Excel",
7236
+ link: "https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3?redirectSourcePath=%252fen-us%252farticle%252fExcel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f",
7237
+ linkText: "Excel Specifications and Limits",
7238
+ screenReaderOnlyText: "on microsoft.com"
7269
7239
  },
7270
7240
  {
7271
- id: 'access',
7272
- application: 'Microsoft Access',
7273
- notes: 'Official size limitations for Microsoft Access',
7274
- link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
7275
- linkText: 'Access 2016 Specifications',
7276
- screenReaderOnlyText: 'on microsoft.com'
7241
+ id: "access",
7242
+ application: "Microsoft Access",
7243
+ notes: "Official size limitations for Microsoft Access",
7244
+ link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
7245
+ linkText: "Access 2016 Specifications",
7246
+ screenReaderOnlyText: "on microsoft.com"
7277
7247
  },
7278
7248
  {
7279
- id: 'oracle-sql-developer',
7280
- application: 'Oracle SQL Developer',
7281
- notes: 'Oracle SQL Developer tool',
7282
- link: 'https://www.oracle.com/database/sqldeveloper/',
7283
- linkText: 'Oracle SQL Developer Overview',
7284
- screenReaderOnlyText: 'on oracle.com'
7249
+ id: "oracle-sql-developer",
7250
+ application: "Oracle SQL Developer",
7251
+ notes: "Oracle SQL Developer tool",
7252
+ link: "https://www.oracle.com/database/sqldeveloper/",
7253
+ linkText: "Oracle SQL Developer Overview",
7254
+ screenReaderOnlyText: "on oracle.com"
7285
7255
  },
7286
7256
  {
7287
- id: 'oracle-database',
7288
- application: 'Oracle Database',
7289
- notes: 'Oracle Database official size limitations',
7290
- link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
7291
- linkText: 'Oracle Physical Database Limits',
7292
- screenReaderOnlyText: 'on oracle.com'
7257
+ id: "oracle-database",
7258
+ application: "Oracle Database",
7259
+ notes: "Oracle Database official size limitations",
7260
+ link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
7261
+ linkText: "Oracle Physical Database Limits",
7262
+ screenReaderOnlyText: "on oracle.com"
7293
7263
  },
7294
7264
  {
7295
- id: 'oracle-sql-client-tools',
7296
- application: 'Oracle SQL Client Tools',
7297
- notes: 'Oracle SQL Client Tools',
7298
- link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
7299
- linkText: 'Oracle SQL Client',
7300
- screenReaderOnlyText: 'on oracle.com'
7265
+ id: "oracle-sql-client-tools",
7266
+ application: "Oracle SQL Client Tools",
7267
+ notes: "Oracle SQL Client Tools",
7268
+ link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
7269
+ linkText: "Oracle SQL Client",
7270
+ screenReaderOnlyText: "on oracle.com"
7301
7271
  }
7302
7272
  ];
7303
7273
 
@@ -7325,7 +7295,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7325
7295
  }),
7326
7296
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
7327
7297
  heading: "Notice",
7328
- className: 'ds-u-margin-top--6',
7298
+ className: "ds-u-margin-top--6",
7329
7299
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
7330
7300
  className: "ds-c-alert__text",
7331
7301
  children: "Be aware of the file size and row limitations of the software you are attempting to import the files into. For information on limitations, look at the software's official documentation."
@@ -7334,16 +7304,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7334
7304
  ]
7335
7305
  }),
7336
7306
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7337
- className: 'ds-u-margin-top--4 ds-l-row',
7307
+ className: "ds-u-margin-top--4 ds-l-row",
7338
7308
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7339
- className: 'ds-l-col--12',
7309
+ className: "ds-l-col--12",
7340
7310
  children: [
7341
7311
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
7342
7312
  className: "ds-text-heading--2xl ds-text-heading--2xl",
7343
7313
  children: "Documentation by Application"
7344
7314
  }),
7345
7315
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7346
- className: 'ds-u-margin-top--4',
7316
+ className: "ds-u-margin-top--4",
7347
7317
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
7348
7318
  data: documentationList
7349
7319
  })
@@ -7371,7 +7341,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7371
7341
  const options = {
7372
7342
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
7373
7343
  property: column,
7374
- operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
7344
+ operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
7375
7345
  ...rest
7376
7346
  })) : []
7377
7347
  };
@@ -7379,13 +7349,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7379
7349
  let distribution = {};
7380
7350
  let distributions = dataset.distribution ? dataset.distribution : [];
7381
7351
  if (distributions.length) distribution = distributions[distributionIndex];
7382
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7352
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7383
7353
  ...options,
7384
7354
  limit: defaultPageSize
7385
7355
  });
7386
7356
  (0, $hgUW1$useEffect)(()=>{
7387
7357
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
7388
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
7358
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
7389
7359
  }, [
7390
7360
  distribution
7391
7361
  ]);
@@ -7435,7 +7405,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7435
7405
 
7436
7406
 
7437
7407
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
7438
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7408
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7439
7409
  const newDate = new Date(condition.value);
7440
7410
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
7441
7411
  }
@@ -7452,9 +7422,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7452
7422
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
7453
7423
  (0, $hgUW1$useEffect)(()=>{
7454
7424
  if (property !== condition.property) {
7455
- if (property) update(index, 'property', property);
7456
- else update(index, 'property', '');
7457
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7425
+ if (property) update(index, "property", property);
7426
+ else update(index, "property", "");
7427
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7458
7428
  if (!value) setValue(startDate.toJSON().slice(0, 10));
7459
7429
  }
7460
7430
  }
@@ -7468,16 +7438,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7468
7438
  ]);
7469
7439
  (0, $hgUW1$useEffect)(()=>{
7470
7440
  if (operator !== condition.operator) {
7471
- if (operator) update(index, 'operator', operator);
7472
- else update(index, 'operator', '');
7441
+ if (operator) update(index, "operator", operator);
7442
+ else update(index, "operator", "");
7473
7443
  }
7474
7444
  }, [
7475
7445
  operator
7476
7446
  ]);
7477
7447
  (0, $hgUW1$useEffect)(()=>{
7478
7448
  if (value !== condition.value) {
7479
- if (value) update(index, 'value', value);
7480
- else update(index, 'value', '');
7449
+ if (value) update(index, "value", value);
7450
+ else update(index, "value", "");
7481
7451
  }
7482
7452
  }, [
7483
7453
  value
@@ -7501,7 +7471,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7501
7471
  onChange: (e)=>setOperator(e.target.value),
7502
7472
  className: "ds-l-sm-col--3 ds-l-md-col--2 ds-l-col--12 ds-u-padding--0 ds-u-md-padding-right--2 ds-u-margin-bottom--0 ds-u-md-margin-bottom--2"
7503
7473
  }),
7504
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7474
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7505
7475
  className: "ds-l-md-col--5 ds-l-lg-col--4 ds-l-sm-col--8 ds-l-col--12 ds-u-padding--0 ds-u-sm-padding-right--2 ds-u-md-padding-right--0 ds-u-lg-padding-right--2 ds-u-margin-bottom--2",
7506
7476
  children: [
7507
7477
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -7591,12 +7561,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
7591
7561
  className: "ds-u-font-weight--bold",
7592
7562
  children: description
7593
7563
  }),
7594
- ' ',
7564
+ " ",
7595
7565
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7596
7566
  className: "ds-u-font-weight--normal",
7597
7567
  children: operator.label.toUpperCase()
7598
7568
  }),
7599
- ' ',
7569
+ " ",
7600
7570
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7601
7571
  className: "ds-u-color--success",
7602
7572
  children: formattedText
@@ -7623,19 +7593,19 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
7623
7593
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
7624
7594
  let cond = condition;
7625
7595
  delete cond.key;
7626
- if (cond.operator === '=' || cond.operator === '<>') {
7596
+ if (cond.operator === "=" || cond.operator === "<>") {
7627
7597
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7628
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
7598
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
7629
7599
  }
7630
- if (cond.operator.toLowerCase() === 'like') {
7600
+ if (cond.operator.toLowerCase() === "like") {
7631
7601
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7632
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
7602
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
7633
7603
  cond.value = `%${cleanedValue}%`;
7634
7604
  }
7635
- if (cond.operator.toLowerCase() === 'in') {
7636
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
7605
+ if (cond.operator.toLowerCase() === "in") {
7606
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
7637
7607
  }
7638
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
7608
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
7639
7609
  return cond;
7640
7610
  }
7641
7611
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -7655,7 +7625,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7655
7625
  ...queryConditions,
7656
7626
  {
7657
7627
  property: fields[0],
7658
- value: '',
7628
+ value: "",
7659
7629
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
7660
7630
  key: Date.now()
7661
7631
  }
@@ -7695,7 +7665,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7695
7665
  encodeValuesOnly: true,
7696
7666
  addQueryPrefix: true
7697
7667
  });
7698
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
7668
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
7699
7669
  };
7700
7670
  const updateCondition = (index, key, value)=>{
7701
7671
  let newConditions = [
@@ -7768,7 +7738,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
7768
7738
 
7769
7739
 
7770
7740
  const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset, distIndex: distIndex, location: location, customColumns: customColumns, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, customDescription: customDescription, rootUrl: rootUrl, updateAriaLive: updateAriaLive })=>{
7771
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
7741
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
7772
7742
  let apiDocs = (0, $hgUW1$useRef)();
7773
7743
  let distribution = {};
7774
7744
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -7780,9 +7750,11 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7780
7750
  } : {
7781
7751
  conditions: []
7782
7752
  };
7783
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7753
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7784
7754
  ...options,
7785
7755
  limit: 25
7756
+ }, {
7757
+ datasetID: id
7786
7758
  });
7787
7759
  (0, $hgUW1$useEffect)(()=>{
7788
7760
  if (distribution.identifier) resource.setResource(distribution.identifier);
@@ -7794,7 +7766,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7794
7766
  }, {
7795
7767
  encode: true
7796
7768
  })}&format=csv`;
7797
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
7769
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
7798
7770
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
7799
7771
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7800
7772
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -7803,7 +7775,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7803
7775
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
7804
7776
  children: [
7805
7777
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7806
- className: 'ds-l-md-col--9',
7778
+ className: "ds-l-md-col--9",
7807
7779
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
7808
7780
  to: `/dataset/${id}`,
7809
7781
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -7814,14 +7786,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7814
7786
  })
7815
7787
  }),
7816
7788
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7817
- className: 'ds-l-md-col--9',
7789
+ className: "ds-l-md-col--9",
7818
7790
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
7819
7791
  className: "ds-text-heading--3xl",
7820
7792
  children: customTitle ? customTitle : pageTitle
7821
7793
  })
7822
7794
  }),
7823
7795
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7824
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
7796
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
7825
7797
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
7826
7798
  className: "ds-u-margin--0",
7827
7799
  children: [
@@ -7833,7 +7805,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7833
7805
  })
7834
7806
  }),
7835
7807
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7836
- className: 'ds-l-md-col--9',
7808
+ className: "ds-l-md-col--9",
7837
7809
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
7838
7810
  distribution: distribution,
7839
7811
  dataset: dataset,
@@ -7843,13 +7815,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7843
7815
  })
7844
7816
  }),
7845
7817
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7846
- className: 'ds-l-md-col--12',
7818
+ className: "ds-l-md-col--12",
7847
7819
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
7848
7820
  resource: resource,
7849
7821
  id: distribution.identifier,
7850
7822
  customColumns: customColumns,
7851
7823
  setOffset: resource.setOffset
7852
- }) : ''
7824
+ }) : ""
7853
7825
  }),
7854
7826
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
7855
7827
  value: {
@@ -7860,7 +7832,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7860
7832
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
7861
7833
  },
7862
7834
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7863
- className: 'ds-l-md-col--12',
7835
+ className: "ds-l-md-col--12",
7864
7836
  children: [
7865
7837
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
7866
7838
  includeDensity: true,
@@ -7882,14 +7854,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7882
7854
  ]
7883
7855
  })
7884
7856
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7885
- className: 'ds-l-md-col--12',
7857
+ className: "ds-l-md-col--12",
7886
7858
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
7887
7859
  role: "status",
7888
7860
  "aria-valuetext": "Resource loading"
7889
7861
  })
7890
7862
  }),
7891
7863
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7892
- className: 'ds-l-md-col--12',
7864
+ className: "ds-l-md-col--12",
7893
7865
  ref: apiDocs,
7894
7866
  children: [
7895
7867
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -7898,7 +7870,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7898
7870
  }),
7899
7871
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
7900
7872
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
7901
- docExpansion: 'list',
7873
+ docExpansion: "list",
7902
7874
  defaultModelsExpandDepth: -1
7903
7875
  })
7904
7876
  ]
@@ -7917,7 +7889,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
7917
7889
  const [ready, setReady] = (0, $hgUW1$useState)(false);
7918
7890
  const [error, setError] = (0, $hgUW1$useState)(false);
7919
7891
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
7920
- const distIndex = dist_id === 'data' ? 0 : dist_id;
7892
+ const distIndex = dist_id === "data" ? 0 : dist_id;
7921
7893
  (0, $hgUW1$useEffect)(()=>{
7922
7894
  if (dataset.error) setError(true);
7923
7895
  if (dataset.distribution && dataset.distribution.length) {