@civicactions/cmsds-open-data-components 3.8.0-alpha.0 → 3.8.1-alpha.0

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
@@ -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), {
@@ -285,17 +285,17 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
285
285
  function handleFocusOut(event) {
286
286
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
287
287
  }
288
- document.addEventListener("mousedown", handleClickOutside);
289
- currentMenu?.addEventListener("focusout", handleFocusOut);
288
+ document.addEventListener('mousedown', handleClickOutside);
289
+ currentMenu?.addEventListener('focusout', handleFocusOut);
290
290
  return ()=>{
291
- document.removeEventListener("mousedown", handleClickOutside);
292
- if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
291
+ document.removeEventListener('mousedown', handleClickOutside);
292
+ if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
293
293
  };
294
294
  }, [
295
295
  isExpanded
296
296
  ]);
297
297
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
298
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
298
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
299
299
  ref: menu,
300
300
  children: [
301
301
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -355,12 +355,12 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
355
355
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
356
356
  const { headingText: headingText = "Dataset Search" } = props;
357
357
  const navigate = (0, $hgUW1$useNavigate)();
358
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
358
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
359
359
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
360
360
  function searchForDataset(e) {
361
361
  e.preventDefault();
362
362
  if (window) {
363
- if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
363
+ if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
364
364
  else {
365
365
  window.location.search = `fulltext=${modalSearchTerm}`;
366
366
  setModalSearch(false);
@@ -427,9 +427,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
427
427
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
428
428
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
429
429
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
430
- const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? "mobile" : "desktop"}`;
431
- const linkClasses = "dkan-c-header--link ds-c-button ds-c-button--ghost";
432
- const listClasses = "dkan-c-header--link-list ";
430
+ const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? 'mobile' : 'desktop'}`;
431
+ const linkClasses = 'dkan-c-header--link ds-c-button ds-c-button--ghost';
432
+ const listClasses = 'dkan-c-header--link-list ';
433
433
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
434
434
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
435
435
  ref: headerContext.menuRef,
@@ -599,8 +599,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
599
599
  const { title: title, links: links, mobileMax: mobileMax } = props;
600
600
  const active = (0, $hgUW1$useLocation)().pathname;
601
601
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
602
- const styleClasses = "dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2";
603
- const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? "mobile" : "desktop"}`;
602
+ const styleClasses = 'dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2';
603
+ const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? 'mobile' : 'desktop'}`;
604
604
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
605
605
  className: `dkan-c-sidebar-nav ${mobileClass}`,
606
606
  children: [
@@ -614,7 +614,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
614
614
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
615
615
  "aria-haspopup": "true",
616
616
  variation: "ghost",
617
- "aria-expanded": `${menuOpen ? "true" : "false"}`,
617
+ "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
618
618
  onDark: true,
619
619
  onClick: ()=>setMenuOpen(!menuOpen),
620
620
  children: [
@@ -623,7 +623,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
623
623
  children: "Toggle menu"
624
624
  }),
625
625
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
626
- direction: menuOpen ? "up" : "down"
626
+ direction: menuOpen ? 'up' : 'down'
627
627
  })
628
628
  ]
629
629
  })
@@ -632,7 +632,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
632
632
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
633
633
  className: ``,
634
634
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
635
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
635
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
636
636
  children: [
637
637
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
638
638
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -644,7 +644,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
644
644
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
645
645
  className: "ds-u-padding-bottom--2",
646
646
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
647
- className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? "active" : ""}`,
647
+ className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? 'active' : ''}`,
648
648
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
649
649
  className: "ds-u-display--flex ds-u-padding-y--1",
650
650
  children: [
@@ -679,12 +679,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
679
679
  query: `(max-width: ${mobileMaxWidth}px)`
680
680
  });
681
681
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
682
- className: `${mobileMax ? "a" : "ds-l-container"}`,
682
+ className: `${mobileMax ? "a" : 'ds-l-container'}`,
683
683
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
684
- className: `${mobileMax ? "a" : "ds-l-row"}`,
684
+ className: `${mobileMax ? "a" : 'ds-l-row'}`,
685
685
  children: [
686
686
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
687
- className: `${mobileMax ? "a" : "ds-l-col--4"}`,
687
+ className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
688
688
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
689
689
  links: links,
690
690
  title: menuTitle,
@@ -707,9 +707,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
707
707
 
708
708
 
709
709
 
710
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
710
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
711
711
  const navigate = (0, $hgUW1$useNavigate)();
712
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
712
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
713
713
  function submitHero(e) {
714
714
  e.preventDefault();
715
715
  navigate(`/${searchUrl}?${searchKey}=${searchValue}`);
@@ -736,24 +736,24 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
736
736
  onSubmit: (e)=>submitHero(e),
737
737
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
738
738
  style: {
739
- position: "relative"
739
+ position: 'relative'
740
740
  },
741
741
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
742
742
  children: [
743
743
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
744
744
  className: "ds-u-padding--0 ds-u-margin-right--1",
745
745
  style: {
746
- flex: "1 1 100%",
747
- maxWidth: "100%"
746
+ flex: '1 1 100%',
747
+ maxWidth: '100%'
748
748
  },
749
749
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
750
750
  label: textfieldLabel,
751
751
  labelClassName: "ds-u-visibility--screen-reader",
752
752
  name: "search_text_input",
753
753
  style: {
754
- maxWidth: "none",
755
- height: "61px",
756
- margin: "0 20px 0 0"
754
+ maxWidth: 'none',
755
+ height: '61px',
756
+ margin: '0 20px 0 0'
757
757
  },
758
758
  onChange: (e)=>setSearchValue(e.target.value)
759
759
  })
@@ -795,7 +795,7 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
795
795
 
796
796
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
797
797
  switch(props.id){
798
- case "overview":
798
+ case 'overview':
799
799
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
800
800
  width: "16px",
801
801
  height: "16px",
@@ -837,7 +837,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
837
837
  })
838
838
  ]
839
839
  });
840
- case "data-table":
840
+ case 'data-table':
841
841
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
842
842
  width: "16px",
843
843
  height: "12px",
@@ -869,7 +869,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
869
869
  })
870
870
  ]
871
871
  });
872
- case "api":
872
+ case 'api':
873
873
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
874
874
  width: "16px",
875
875
  height: "13px",
@@ -901,7 +901,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
901
901
  })
902
902
  ]
903
903
  });
904
- case "download":
904
+ case 'download':
905
905
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
906
906
  width: "16px",
907
907
  height: "16px",
@@ -930,7 +930,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
930
930
  })
931
931
  ]
932
932
  });
933
- case "data-dictionary":
933
+ case 'data-dictionary':
934
934
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
935
935
  width: "14px",
936
936
  height: "16px",
@@ -1029,14 +1029,14 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1029
1029
 
1030
1030
 
1031
1031
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1032
- year: "numeric",
1033
- month: "long",
1034
- day: "numeric",
1035
- timeZone: "UTC"
1032
+ year: 'numeric',
1033
+ month: 'long',
1034
+ day: 'numeric',
1035
+ timeZone: 'UTC'
1036
1036
  } })=>{
1037
1037
  const rawDate = new Date(date);
1038
- let modifiedDate = "";
1039
- if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1038
+ let modifiedDate = '';
1039
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
1040
1040
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1041
1041
  children: modifiedDate
1042
1042
  });
@@ -1048,13 +1048,13 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
1048
1048
 
1049
1049
 
1050
1050
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
1051
- if (!textString) return "";
1051
+ if (!textString) return '';
1052
1052
  let cleanedText = textString;
1053
- if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
1054
- if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
1053
+ if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
1054
+ if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
1055
1055
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
1056
- "length": textLength,
1057
- "separator": " "
1056
+ 'length': textLength,
1057
+ 'separator': ' '
1058
1058
  });
1059
1059
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
1060
1060
  ALLOWED_TAGS: []
@@ -1068,25 +1068,25 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1068
1068
  minWidth: 1024
1069
1069
  });
1070
1070
  const { title: title, modified: modified, description: description, identifier: identifier, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1071
- let linkContainerClasses = "ds-u-margin-bottom--2";
1072
- if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1073
- else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1074
- let linkClasses = "ds-u-display--block ds-u-text-align--left";
1071
+ let linkContainerClasses = 'ds-u-margin-bottom--2';
1072
+ if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1073
+ else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1074
+ let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1075
1075
  if (desktop) {
1076
- linkContainerClasses = "ds-u-padding-x--0";
1077
- linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1076
+ linkContainerClasses = 'ds-u-padding-x--0';
1077
+ linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1078
1078
  }
1079
1079
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1080
1080
  className: "dc-c-search-list-item ds-u-padding-top--3",
1081
1081
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1082
- className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1082
+ className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1083
1083
  children: [
1084
1084
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1085
1085
  className: "ds-l-row ds-u-align-items--start",
1086
1086
  children: [
1087
1087
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1088
1088
  id: `dataset-${identifier}-updated-date`,
1089
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1089
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1090
1090
  children: [
1091
1091
  "Updated ",
1092
1092
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -1128,9 +1128,9 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1128
1128
  "Download"
1129
1129
  ]
1130
1130
  })
1131
- }) : "",
1131
+ }) : '',
1132
1132
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
1133
- 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" : ""}`,
1133
+ 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' : ''}`,
1134
1134
  children: [
1135
1135
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1136
1136
  className: linkContainerClasses,
@@ -1176,7 +1176,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1176
1176
  ]
1177
1177
  })
1178
1178
  })
1179
- }) : "",
1179
+ }) : '',
1180
1180
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1181
1181
  className: linkContainerClasses,
1182
1182
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1228,7 +1228,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
1228
1228
 
1229
1229
 
1230
1230
 
1231
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
1231
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
1232
1232
  const numTotalRows = totalRows;
1233
1233
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
1234
1234
  className: className,
@@ -1246,18 +1246,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
1246
1246
  className: className,
1247
1247
  children: [
1248
1248
  "Displaying",
1249
- " ",
1249
+ ' ',
1250
1250
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1251
1251
  className: "ds-u-font-weight--bold",
1252
1252
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
1253
1253
  }),
1254
- " ",
1254
+ ' ',
1255
1255
  "of ",
1256
1256
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1257
1257
  className: "ds-u-font-weight--bold",
1258
1258
  children: `${numTotalRows.toLocaleString()}`
1259
1259
  }),
1260
- " ",
1260
+ ' ',
1261
1261
  "results"
1262
1262
  ]
1263
1263
  });
@@ -1283,16 +1283,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
1283
1283
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1284
1284
  options: [
1285
1285
  {
1286
- label: "Tight",
1287
- value: "ds-u-padding-y--0"
1286
+ label: 'Tight',
1287
+ value: 'ds-u-padding-y--0'
1288
1288
  },
1289
1289
  {
1290
- label: "Normal",
1291
- value: "ds-u-padding-y--1"
1290
+ label: 'Normal',
1291
+ value: 'ds-u-padding-y--1'
1292
1292
  },
1293
1293
  {
1294
- label: "Expanded",
1295
- value: "ds-u-padding-y--2"
1294
+ label: 'Expanded',
1295
+ value: 'ds-u-padding-y--2'
1296
1296
  }
1297
1297
  ],
1298
1298
  label: "Display density:",
@@ -1535,7 +1535,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
1535
1535
  sortArray.forEach((s)=>{
1536
1536
  return newQuery.push({
1537
1537
  property: s.id,
1538
- order: s.desc ? "desc" : "asc"
1538
+ order: s.desc ? 'desc' : 'asc'
1539
1539
  });
1540
1540
  });
1541
1541
  return newQuery;
@@ -1573,103 +1573,103 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
1573
1573
  }
1574
1574
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
1575
1575
  let newValue = value;
1576
- if (Array.isArray(newValue)) newValue = newValue.join(",");
1576
+ if (Array.isArray(newValue)) newValue = newValue.join(',');
1577
1577
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
1578
1578
  return newValue;
1579
1579
  }
1580
1580
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
1581
1581
  {
1582
- label: "Is",
1583
- value: "="
1582
+ label: 'Is',
1583
+ value: '='
1584
1584
  },
1585
1585
  {
1586
- label: "Starts With",
1587
- value: "starts with"
1586
+ label: 'Starts With',
1587
+ value: 'starts with'
1588
1588
  },
1589
1589
  {
1590
- label: "Contains",
1591
- value: "contains"
1590
+ label: 'Contains',
1591
+ value: 'contains'
1592
1592
  },
1593
1593
  {
1594
- label: "Is Not",
1595
- value: "<>"
1594
+ label: 'Is Not',
1595
+ value: '<>'
1596
1596
  },
1597
1597
  {
1598
- label: "Or",
1599
- value: "in"
1598
+ label: 'Or',
1599
+ value: 'in'
1600
1600
  },
1601
1601
  {
1602
- label: "Is",
1603
- value: "="
1602
+ label: 'Is',
1603
+ value: '='
1604
1604
  },
1605
1605
  {
1606
- label: "Is Not",
1607
- value: "<>"
1606
+ label: 'Is Not',
1607
+ value: '<>'
1608
1608
  },
1609
1609
  {
1610
- label: "Greater Than",
1611
- value: ">"
1610
+ label: 'Greater Than',
1611
+ value: '>'
1612
1612
  },
1613
1613
  {
1614
- label: "Less Than",
1615
- value: "<"
1614
+ label: 'Less Than',
1615
+ value: '<'
1616
1616
  }
1617
1617
  ];
1618
1618
  function $7264a673914aa746$export$2b9377795161999(type) {
1619
1619
  switch(type){
1620
- case "text":
1621
- case "string":
1620
+ case 'text':
1621
+ case 'string':
1622
1622
  return [
1623
1623
  {
1624
- label: "Is",
1625
- value: "="
1624
+ label: 'Is',
1625
+ value: '='
1626
1626
  },
1627
1627
  {
1628
- label: "Starts With",
1629
- value: "starts with"
1628
+ label: 'Starts With',
1629
+ value: 'starts with'
1630
1630
  },
1631
1631
  {
1632
- label: "Contains",
1633
- value: "contains"
1632
+ label: 'Contains',
1633
+ value: 'contains'
1634
1634
  },
1635
1635
  {
1636
- label: "Is Not",
1637
- value: "<>"
1636
+ label: 'Is Not',
1637
+ value: '<>'
1638
1638
  },
1639
1639
  {
1640
- label: "Or",
1641
- value: "in"
1640
+ label: 'Or',
1641
+ value: 'in'
1642
1642
  }
1643
1643
  ];
1644
- case "date":
1644
+ case 'date':
1645
1645
  return [
1646
1646
  {
1647
- label: "Is",
1648
- value: "="
1647
+ label: 'Is',
1648
+ value: '='
1649
1649
  },
1650
1650
  {
1651
- label: "Is Not",
1652
- value: "<>"
1651
+ label: 'Is Not',
1652
+ value: '<>'
1653
1653
  },
1654
1654
  {
1655
- label: "Greater Than",
1656
- value: ">"
1655
+ label: 'Greater Than',
1656
+ value: '>'
1657
1657
  },
1658
1658
  {
1659
- label: "Less Than",
1660
- value: "<"
1659
+ label: 'Less Than',
1660
+ value: '<'
1661
1661
  }
1662
1662
  ];
1663
1663
  default:
1664
1664
  // These 2 should be safe for all data types
1665
1665
  return [
1666
1666
  {
1667
- label: "Is",
1668
- value: "="
1667
+ label: 'Is',
1668
+ value: '='
1669
1669
  },
1670
1670
  {
1671
- label: "Is Not",
1672
- value: "<>"
1671
+ label: 'Is Not',
1672
+ value: '<>'
1673
1673
  }
1674
1674
  ];
1675
1675
  }
@@ -1686,7 +1686,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
1686
1686
 
1687
1687
 
1688
1688
  const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
1689
- const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
1689
+ const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)('');
1690
1690
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
1691
1691
  key: header.id,
1692
1692
  style: {
@@ -1699,13 +1699,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1699
1699
  children: [
1700
1700
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1701
1701
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1702
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
1702
+ title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : '',
1703
1703
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
1704
1704
  })
1705
1705
  }),
1706
1706
  sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
1707
1707
  onClick: header.column.getToggleSortingHandler(),
1708
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
1708
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
1709
1709
  "aria-label": `${header.column.columnDef.header} sort order`
1710
1710
  })
1711
1711
  ]
@@ -1713,18 +1713,18 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1713
1713
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
1714
1714
  onMouseDown: header.getResizeHandler(),
1715
1715
  onTouchStart: header.getResizeHandler(),
1716
- className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
1716
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? 'isResizing' : ''}`,
1717
1717
  "aria-label": `Resize ${header.column.columnDef.header} column`,
1718
1718
  onKeyDown: (e)=>{
1719
1719
  const columnSizingObject = table.getState().columnSizing;
1720
1720
  switch(e.key){
1721
- case "Enter":
1722
- case " ":
1721
+ case 'Enter':
1722
+ case ' ':
1723
1723
  e.preventDefault();
1724
1724
  e.stopPropagation();
1725
1725
  if (columnResizing) {
1726
1726
  // end resizing
1727
- setColumnResizing("");
1727
+ setColumnResizing('');
1728
1728
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
1729
1729
  } else {
1730
1730
  // start resizing
@@ -1732,13 +1732,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1732
1732
  setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
1733
1733
  }
1734
1734
  break;
1735
- case "Escape":
1735
+ case 'Escape':
1736
1736
  if (columnResizing) {
1737
- setColumnResizing("");
1737
+ setColumnResizing('');
1738
1738
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
1739
1739
  }
1740
1740
  break;
1741
- case "ArrowRight":
1741
+ case 'ArrowRight':
1742
1742
  e.preventDefault();
1743
1743
  e.stopPropagation();
1744
1744
  if (columnResizing) {
@@ -1747,7 +1747,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1747
1747
  setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
1748
1748
  }
1749
1749
  break;
1750
- case "ArrowLeft":
1750
+ case 'ArrowLeft':
1751
1751
  e.preventDefault();
1752
1752
  e.stopPropagation();
1753
1753
  if (columnResizing) {
@@ -1759,7 +1759,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1759
1759
  }
1760
1760
  },
1761
1761
  onBlur: ()=>{
1762
- setColumnResizing("");
1762
+ setColumnResizing('');
1763
1763
  }
1764
1764
  })
1765
1765
  ]
@@ -1808,7 +1808,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
1808
1808
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
1809
1809
  }),
1810
1810
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1811
- className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
1811
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ''
1812
1812
  })
1813
1813
  ]
1814
1814
  })
@@ -1844,9 +1844,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
1844
1844
  transition: transition,
1845
1845
  opacity: isDragging ? 0.7 : 1,
1846
1846
  zIndex: isDragging ? 1 : 0,
1847
- position: "relative",
1848
- background: "white",
1849
- touchAction: "none"
1847
+ position: 'relative',
1848
+ background: 'white',
1849
+ touchAction: 'none'
1850
1850
  };
1851
1851
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
1852
1852
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -1861,7 +1861,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
1861
1861
  // this code forces the repaint without user interaction
1862
1862
  const target = e.target;
1863
1863
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
1864
- target.parentNode.querySelector("input").checked = visible;
1864
+ target.parentNode.querySelector('input').checked = visible;
1865
1865
  }, 1);
1866
1866
  },
1867
1867
  children: [
@@ -1878,7 +1878,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
1878
1878
  }
1879
1879
  }),
1880
1880
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
1881
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
1881
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
1882
1882
  "aria-label": `Reorder ${id} column`,
1883
1883
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1884
1884
  className: "fa fa-sort"
@@ -1900,7 +1900,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
1900
1900
  // Custom function to exclude checkbox from keyboard dragging
1901
1901
  static activators = [
1902
1902
  {
1903
- eventName: "onKeyDown",
1903
+ eventName: 'onKeyDown',
1904
1904
  handler: ({ nativeEvent: event })=>{
1905
1905
  // prevent scrolling the list
1906
1906
  const isCheckbox = [
@@ -1923,7 +1923,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
1923
1923
  // Custom function to stop accidental checkbox clicks on pointer activation
1924
1924
  static activators = [
1925
1925
  {
1926
- eventName: "onPointerDown",
1926
+ eventName: 'onPointerDown',
1927
1927
  handler: ({ nativeEvent: event })=>{
1928
1928
  if (event.target.tagName.toLowerCase() === "input") return false;
1929
1929
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -1991,7 +1991,7 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
1991
1991
  }));
1992
1992
  };
1993
1993
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1994
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
1994
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
1995
1995
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
1996
1996
  heading: "Manage columns",
1997
1997
  isOpen: modalOpen,
@@ -2141,7 +2141,7 @@ var $5d9e2ce238d53d29$export$2e2bcd8739ae039 = $5d9e2ce238d53d29$var$ManageColum
2141
2141
 
2142
2142
 
2143
2143
 
2144
- const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL: downloadURL, unfilteredDownloadURL: unfilteredDownloadURL, setPage: setPage })=>{
2144
+ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL: downloadURL, unfilteredDownloadURL: unfilteredDownloadURL, setPage: setPage, showQueryBuilder: showQueryBuilder = true })=>{
2145
2145
  const { limit: limit, offset: offset, count: count, conditions: conditions, setLimit: setLimit, setOffset: setOffset } = resource;
2146
2146
  const intCount = count ? count : 0;
2147
2147
  const rowOptions = [
@@ -2153,7 +2153,7 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL
2153
2153
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2154
2154
  className: "ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--between",
2155
2155
  children: [
2156
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2156
+ showQueryBuilder && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2157
2157
  className: "dc-c-resource-header--buttons ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end ds-l-col--12 ds-u-margin-top--2 ds-u-padding-x--0",
2158
2158
  children: [
2159
2159
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -2324,12 +2324,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
2324
2324
  className: "ds-u-font-weight--bold",
2325
2325
  children: description
2326
2326
  }),
2327
- " ",
2327
+ ' ',
2328
2328
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2329
2329
  className: "ds-u-font-weight--normal",
2330
2330
  children: operator.label.toUpperCase()
2331
2331
  }),
2332
- " ",
2332
+ ' ',
2333
2333
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2334
2334
  className: "ds-u-color--success",
2335
2335
  children: formattedText
@@ -2359,7 +2359,7 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
2359
2359
 
2360
2360
 
2361
2361
  function $6369abf590ca298f$var$getStartDate(condition, schema, id) {
2362
- if (schema[id].fields[condition.property].mysql_type === "date") {
2362
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
2363
2363
  const newDate = new Date(condition.value.toString());
2364
2364
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2365
2365
  }
@@ -2375,9 +2375,9 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2375
2375
  });
2376
2376
  (0, $hgUW1$useEffect)(()=>{
2377
2377
  if (property !== condition.property) {
2378
- if (property) update(index, "property", property);
2379
- else update(index, "property", "");
2380
- if (schema[id].fields[condition.property].mysql_type === "date") {
2378
+ if (property) update(index, 'property', property);
2379
+ else update(index, 'property', '');
2380
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
2381
2381
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2382
2382
  }
2383
2383
  }
@@ -2391,16 +2391,16 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2391
2391
  ]);
2392
2392
  (0, $hgUW1$useEffect)(()=>{
2393
2393
  if (operator !== condition.operator) {
2394
- if (operator) update(index, "operator", operator);
2395
- else update(index, "operator", "");
2394
+ if (operator) update(index, 'operator', operator);
2395
+ else update(index, 'operator', '');
2396
2396
  }
2397
2397
  }, [
2398
2398
  operator
2399
2399
  ]);
2400
2400
  (0, $hgUW1$useEffect)(()=>{
2401
2401
  if (value !== condition.value) {
2402
- if (value) update(index, "value", value);
2403
- else update(index, "value", "");
2402
+ if (value) update(index, 'value', value);
2403
+ else update(index, 'value', '');
2404
2404
  }
2405
2405
  }, [
2406
2406
  value
@@ -2432,7 +2432,7 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2432
2432
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2433
2433
  className: "ds-l-col--12 ds-l-md-col--4 ds-u-padding-x--0 ds-u-md-padding-left--2 ds-u-display--flex ds-u-justify-content--between",
2434
2434
  children: [
2435
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2435
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2436
2436
  children: [
2437
2437
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
2438
2438
  className: "ds-c-label",
@@ -2493,9 +2493,9 @@ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false,
2493
2493
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2494
2494
  disabled: disabled,
2495
2495
  className: "ds-u-float--right ds-l-md-col--6 ds-l-col--5",
2496
- variation: small ? "ghost" : undefined,
2496
+ variation: small ? 'ghost' : undefined,
2497
2497
  onClick: ()=>clearFiltersFn(),
2498
- children: small ? "Clear all" : "Clear all filters"
2498
+ children: small ? 'Clear all' : 'Clear all filters'
2499
2499
  });
2500
2500
  };
2501
2501
  var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFiltersButton;
@@ -2504,19 +2504,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
2504
2504
  function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
2505
2505
  let cond = condition;
2506
2506
  delete cond.key;
2507
- if (cond.operator === "=" || cond.operator === "<>") {
2507
+ if (cond.operator === '=' || cond.operator === '<>') {
2508
2508
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
2509
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
2509
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
2510
2510
  }
2511
- if (cond.operator.toLowerCase() === "like") {
2511
+ if (cond.operator.toLowerCase() === 'like') {
2512
2512
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
2513
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
2513
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
2514
2514
  cond.value = `%${cleanedValue}%`;
2515
2515
  }
2516
- if (cond.operator.toLowerCase() === "in") {
2517
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
2516
+ if (cond.operator.toLowerCase() === 'in') {
2517
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
2518
2518
  }
2519
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
2519
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
2520
2520
  return cond;
2521
2521
  }
2522
2522
  const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, isModal: isModal = false, setPage: setPage, setOffset: setOffset })=>{
@@ -2535,7 +2535,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2535
2535
  } else setQueryConditions([
2536
2536
  {
2537
2537
  property: fields[0],
2538
- value: "",
2538
+ value: '',
2539
2539
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
2540
2540
  key: Date.now().toString()
2541
2541
  }
@@ -2552,7 +2552,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2552
2552
  ...queryConditions,
2553
2553
  {
2554
2554
  property: fields[0],
2555
- value: "",
2555
+ value: '',
2556
2556
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
2557
2557
  key: Date.now().toString()
2558
2558
  }
@@ -2583,7 +2583,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2583
2583
  encodeValuesOnly: true,
2584
2584
  addQueryPrefix: true
2585
2585
  });
2586
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
2586
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
2587
2587
  };
2588
2588
  const submitConditions = (e)=>{
2589
2589
  // only update the data conditions when "Apply filters" is pressed
@@ -2697,7 +2697,7 @@ function $a35cf16d1488f54e$export$1147582dfae658c6(columns, schema) {
2697
2697
  accessor: column
2698
2698
  }));
2699
2699
  }
2700
- const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFullScreenModal: closeFullScreenModal })=>{
2700
+ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFullScreenModal: closeFullScreenModal, showQueryBuilder: showQueryBuilder = false })=>{
2701
2701
  const { id: id, distribution: distribution, resource: resource, rootUrl: rootUrl, customColumns: customColumns = [], dataDictionaryBanner: dataDictionaryBanner } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
2702
2702
  const { page: page, setPage: setPage } = (0, $hgUW1$useContext)((0, $ebda441784d176a5$export$2e2bcd8739ae039));
2703
2703
  const defaultPageSize = 10;
@@ -2712,7 +2712,7 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFul
2712
2712
  })}&format=csv`;
2713
2713
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2714
2714
  children: [
2715
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $ee4ad47aa483e5b5$export$2e2bcd8739ae039), {
2715
+ showQueryBuilder && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $ee4ad47aa483e5b5$export$2e2bcd8739ae039), {
2716
2716
  resource: resource,
2717
2717
  id: distribution.identifier,
2718
2718
  customColumns: customColumnHeaders,
@@ -2729,15 +2729,16 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFul
2729
2729
  resource: resource,
2730
2730
  downloadURL: downloadURL,
2731
2731
  unfilteredDownloadURL: distribution.data.downloadURL,
2732
- setPage: setPage
2732
+ setPage: setPage,
2733
+ showQueryBuilder: showQueryBuilder
2733
2734
  }),
2734
2735
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2735
- className: `ds-u-border-x--1 ds-u-border-bottom--1 ${isModal && "dkan-datatable-fullscreen-mode"}`,
2736
+ className: `ds-u-border-x--1 ds-u-border-bottom--1 ${isModal && 'dkan-datatable-fullscreen-mode'}`,
2736
2737
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2737
2738
  canResize: true,
2738
2739
  columns: columns,
2739
2740
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2740
- tablePadding: "ds-u-padding-y--2",
2741
+ tablePadding: 'ds-u-padding-y--2',
2741
2742
  loading: resource.loading,
2742
2743
  isModal: isModal,
2743
2744
  closeFullScreenModal: closeFullScreenModal
@@ -2770,7 +2771,7 @@ var $a35cf16d1488f54e$export$2e2bcd8739ae039 = $a35cf16d1488f54e$var$DatasetTabl
2770
2771
 
2771
2772
  const $16bd41951b91f02d$var$FullScreenDataTable = ({ modalOpen: modalOpen, setModalOpen: setModalOpen })=>{
2772
2773
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2773
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2774
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2774
2775
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2775
2776
  heading: "Dataset Explorer",
2776
2777
  isOpen: modalOpen,
@@ -2820,7 +2821,7 @@ const $71b4324f265dec16$var$DataTableControls = ({ id: id, columns: columns, def
2820
2821
  ]
2821
2822
  }),
2822
2823
  /*#__PURE__*/ (0, $hgUW1$jsxs)("button", {
2823
- "aria-label": isModal ? "Close Full Screen dialog" : "Full Screen mode - Opens in a dialog",
2824
+ "aria-label": isModal ? 'Close Full Screen dialog' : 'Full Screen mode - Opens in a dialog',
2824
2825
  className: "ds-c-button ds-c-button--ghost ds-u-margin-y--1",
2825
2826
  onClick: ()=>{
2826
2827
  if (isModal) closeFullScreenModal();
@@ -2828,7 +2829,7 @@ const $71b4324f265dec16$var$DataTableControls = ({ id: id, columns: columns, def
2828
2829
  },
2829
2830
  children: [
2830
2831
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2831
- className: `fa ${isModal ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2832
+ className: `fa ${isModal ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2832
2833
  }),
2833
2834
  isModal ? "Exit Full Screen" : "Full Screen"
2834
2835
  ]
@@ -2865,7 +2866,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2865
2866
  const { columnOrder: columnOrder, setColumnOrder: setColumnOrder, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility } = (0, $hgUW1$useContext)((0, $ebda441784d176a5$export$2e2bcd8739ae039));
2866
2867
  const data = resource.values;
2867
2868
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
2868
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
2869
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
2869
2870
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
2870
2871
  const columnHelper = (0, $hgUW1$createColumnHelper)();
2871
2872
  const table_columns = columns.map((col)=>{
@@ -2884,9 +2885,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2884
2885
  columnOrder
2885
2886
  ]);
2886
2887
  const sortElement = (isSorted, onClickFn)=>{
2887
- if (isSorted === "asc") return "dc-c-sort--asc";
2888
- if (isSorted === "desc") return "dc-c-sort--desc";
2889
- return "dc-c-sort--default";
2888
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
2889
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
2890
+ return 'dc-c-sort--default';
2890
2891
  };
2891
2892
  const filters = [];
2892
2893
  const table = (0, $hgUW1$useReactTable)({
@@ -2898,7 +2899,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2898
2899
  columnVisibility: columnVisibility,
2899
2900
  sorting: sorting
2900
2901
  },
2901
- columnResizeMode: "onChange",
2902
+ columnResizeMode: 'onChange',
2902
2903
  onSortingChange: setSorting,
2903
2904
  onColumnOrderChange: setColumnOrder,
2904
2905
  onColumnVisibilityChange: setColumnVisibility,
@@ -2915,7 +2916,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2915
2916
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
2916
2917
  const tableWrapperWidth = ()=>{
2917
2918
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
2918
- return "auto";
2919
+ return 'auto';
2919
2920
  };
2920
2921
  (0, $hgUW1$useEffect)(()=>{
2921
2922
  setHighlightRow(null);
@@ -3017,7 +3018,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3017
3018
  },
3018
3019
  labelClassName: "ds-u-visibility--screen-reader",
3019
3020
  name: accessor,
3020
- value: filterValue || ""
3021
+ value: filterValue || ''
3021
3022
  });
3022
3023
  }
3023
3024
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -3093,7 +3094,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
3093
3094
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3094
3095
  children: currentPage
3095
3096
  })
3096
- }) : ""
3097
+ }) : ''
3097
3098
  ]
3098
3099
  })
3099
3100
  });
@@ -3150,11 +3151,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
3150
3151
 
3151
3152
 
3152
3153
 
3153
- const $56250439caa6b0ad$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", {
3154
+ 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", {
3154
3155
  className: "search-input-container",
3155
3156
  children: [
3156
3157
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
3157
- className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
3158
+ className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
3158
3159
  label: placeholder,
3159
3160
  labelClassName: "ds-u-visibility--screen-reader",
3160
3161
  placeholder: placeholder,
@@ -3169,7 +3170,7 @@ const $56250439caa6b0ad$var$SearchInput = ({ placeholder: placeholder = "Search
3169
3170
  }),
3170
3171
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
3171
3172
  variation: "solid",
3172
- className: onDark && "on-dark",
3173
+ className: onDark && 'on-dark',
3173
3174
  onClick: onSubmit,
3174
3175
  children: [
3175
3176
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -3191,7 +3192,7 @@ const $56250439caa6b0ad$var$SearchInput = ({ placeholder: placeholder = "Search
3191
3192
  })
3192
3193
  ]
3193
3194
  });
3194
- $56250439caa6b0ad$var$SearchInput.propTypes = {
3195
+ $bdb071ea3a6d3466$var$SearchInput.propTypes = {
3195
3196
  placeholder: (0, $hgUW1$proptypes).string,
3196
3197
  showMagnifyingGlass: (0, $hgUW1$proptypes).bool,
3197
3198
  showSearchButton: (0, $hgUW1$proptypes).bool,
@@ -3201,9 +3202,7 @@ $56250439caa6b0ad$var$SearchInput.propTypes = {
3201
3202
  onKeyDown: (0, $hgUW1$proptypes).func,
3202
3203
  defaultValue: (0, $hgUW1$proptypes).string
3203
3204
  };
3204
- var $56250439caa6b0ad$export$2e2bcd8739ae039 = $56250439caa6b0ad$var$SearchInput;
3205
-
3206
-
3205
+ var $bdb071ea3a6d3466$export$2e2bcd8739ae039 = $bdb071ea3a6d3466$var$SearchInput;
3207
3206
 
3208
3207
 
3209
3208
 
@@ -3303,7 +3302,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
3303
3302
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3304
3303
  addQueryPrefix: true
3305
3304
  })}`,
3306
- docExpansion: "list",
3305
+ docExpansion: 'list',
3307
3306
  defaultModelsExpandDepth: -1,
3308
3307
  plugins: [
3309
3308
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -3471,7 +3470,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
3471
3470
  size: "big",
3472
3471
  type: "submit",
3473
3472
  style: {
3474
- width: "70px"
3473
+ width: '70px'
3475
3474
  },
3476
3475
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3477
3476
  className: "fas fa-search small-text"
@@ -3488,7 +3487,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
3488
3487
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
3489
3488
  children: [
3490
3489
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3491
- children: text ? text : "Search"
3490
+ children: text ? text : 'Search'
3492
3491
  }),
3493
3492
  ` `,
3494
3493
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -3573,12 +3572,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
3573
3572
  fulltext: fulltext ? fulltext : undefined,
3574
3573
  ...selectedFacets,
3575
3574
  sort: sort ? sort : undefined,
3576
- ["sort-order"]: sortOrder ? sortOrder : undefined,
3575
+ ['sort-order']: sortOrder ? sortOrder : undefined,
3577
3576
  page: page !== 1 ? page : undefined,
3578
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
3577
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
3579
3578
  };
3580
3579
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3581
- arrayFormat: "comma",
3580
+ arrayFormat: 'comma',
3582
3581
  encode: false
3583
3582
  })}`);
3584
3583
  }
@@ -3589,26 +3588,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
3589
3588
 
3590
3589
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3591
3590
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
3592
- defaultSort: "modified",
3593
- defaultOrder: "desc"
3594
- }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
3591
+ defaultSort: 'modified',
3592
+ defaultOrder: 'desc'
3593
+ }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
3595
3594
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
3596
3595
  const sortOptions = [
3597
3596
  {
3598
- label: "Newest",
3599
- value: "newest"
3597
+ label: 'Newest',
3598
+ value: 'newest'
3600
3599
  },
3601
3600
  {
3602
- label: "Oldest",
3603
- value: "oldest"
3601
+ label: 'Oldest',
3602
+ value: 'oldest'
3604
3603
  },
3605
3604
  {
3606
- label: "Title A-Z",
3607
- value: "titleAZ"
3605
+ label: 'Title A-Z',
3606
+ value: 'titleAZ'
3608
3607
  },
3609
3608
  {
3610
- label: "Title Z-A",
3611
- value: "titleZA"
3609
+ label: 'Title Z-A',
3610
+ value: 'titleZA'
3612
3611
  }
3613
3612
  ];
3614
3613
  const defaultSortBy = "";
@@ -3627,7 +3626,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3627
3626
  endingNumber: 0
3628
3627
  });
3629
3628
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
3630
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
3629
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
3631
3630
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
3632
3631
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
3633
3632
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -3636,7 +3635,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3636
3635
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
3637
3636
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
3638
3637
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
3639
- return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
3638
+ return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
3640
3639
  });
3641
3640
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
3642
3641
  theme: [],
@@ -3645,21 +3644,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3645
3644
  const setSortOptions = (value)=>{
3646
3645
  setSortDisplay(value);
3647
3646
  switch(value){
3648
- case "newest":
3649
- setSort("modified");
3650
- setSortOrder("desc");
3647
+ case 'newest':
3648
+ setSort('modified');
3649
+ setSortOrder('desc');
3651
3650
  break;
3652
- case "oldest":
3653
- setSort("modified");
3654
- setSortOrder("asc");
3651
+ case 'oldest':
3652
+ setSort('modified');
3653
+ setSortOrder('asc');
3655
3654
  break;
3656
- case "titleAZ":
3657
- setSort("title");
3658
- setSortOrder("asc");
3655
+ case 'titleAZ':
3656
+ setSort('title');
3657
+ setSortOrder('asc');
3659
3658
  break;
3660
- case "titleZA":
3661
- setSort("title");
3662
- setSortOrder("desc");
3659
+ case 'titleZA':
3660
+ setSort('title');
3661
+ setSortOrder('desc');
3663
3662
  break;
3664
3663
  }
3665
3664
  };
@@ -3667,12 +3666,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3667
3666
  const newFacets = {
3668
3667
  ...selectedFacets
3669
3668
  };
3670
- if (key === "theme") {
3669
+ if (key === 'theme') {
3671
3670
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
3672
3671
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
3673
3672
  else newFacets.theme.push(value);
3674
3673
  }
3675
- if (key === "keyword") {
3674
+ if (key === 'keyword') {
3676
3675
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
3677
3676
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
3678
3677
  else newFacets.keyword.push(value);
@@ -3686,10 +3685,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3686
3685
  });
3687
3686
  setSelectedFacets(newFacets);
3688
3687
  const url = new URL(window.location.href);
3689
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3688
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3690
3689
  }
3691
3690
  const pageSize = defaultPageSize;
3692
3691
  (0, $hgUW1$useEffect)(()=>{
3692
+ // Update browser URL with current search params
3693
+ const params = buildSearchParams(true);
3694
+ const url = new URL(window.location.href);
3695
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
3693
3696
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
3694
3697
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
3695
3698
  const endingNumber = Number(pageSize) * Number(page);
@@ -3728,14 +3731,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3728
3731
  setSelectedFacets(defaultSelectedFacets);
3729
3732
  setPage(defaultPage);
3730
3733
  const url = new URL(window.location.href);
3731
- window.history.pushState({}, "", `${url.origin}${url.pathname}`);
3734
+ window.history.pushState({}, '', `${url.origin}${url.pathname}`);
3732
3735
  }
3733
3736
  function buildSearchParams(includePage) {
3734
3737
  let newParams = {};
3735
3738
  if (Number(page) !== 1 && includePage) newParams.page = page;
3736
3739
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
3737
3740
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
3738
- if (fulltext !== "") newParams.fulltext = fulltext;
3741
+ if (fulltext !== '') newParams.fulltext = fulltext;
3739
3742
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
3740
3743
  newParams[key] = selectedFacets[key];
3741
3744
  });
@@ -3748,9 +3751,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3748
3751
  fulltext: fulltext ? fulltext : undefined,
3749
3752
  ...selectedFacets,
3750
3753
  sort: sort ? sort : undefined,
3751
- ["sort-order"]: sortOrder ? sortOrder : undefined,
3754
+ ['sort-order']: sortOrder ? sortOrder : undefined,
3752
3755
  page: page !== 1 ? page : undefined,
3753
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
3756
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
3754
3757
  };
3755
3758
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
3756
3759
  queryKey: [
@@ -3759,7 +3762,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3759
3762
  ],
3760
3763
  queryFn: ()=>{
3761
3764
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3762
- arrayFormat: "comma",
3765
+ arrayFormat: 'comma',
3763
3766
  encode: false
3764
3767
  })}`);
3765
3768
  }
@@ -3810,7 +3813,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3810
3813
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
3811
3814
  fieldClassName: "ds-u-margin--0",
3812
3815
  value: filterText,
3813
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
3816
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
3814
3817
  label: "Search datasets",
3815
3818
  labelClassName: "ds-u-visibility--screen-reader",
3816
3819
  placeholder: "Search datasets",
@@ -3872,7 +3875,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3872
3875
  "Showing ",
3873
3876
  currentResultNumbers.startingNumber,
3874
3877
  " -",
3875
- " ",
3878
+ ' ',
3876
3879
  currentResultNumbers.endingNumber,
3877
3880
  " of ",
3878
3881
  data.data.total,
@@ -3948,7 +3951,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3948
3951
  },
3949
3952
  renderHref: (page)=>{
3950
3953
  const searchParams = buildSearchParams(false);
3951
- const includeAnd = searchParams ? "&" : "";
3954
+ const includeAnd = searchParams ? '&' : '';
3952
3955
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
3953
3956
  }
3954
3957
  })
@@ -3981,12 +3984,12 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
3981
3984
 
3982
3985
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
3983
3986
  const [dataset, setDataset] = (0, $hgUW1$useState)({
3984
- title: "",
3987
+ title: '',
3985
3988
  distribution: [],
3986
- error: "",
3987
- description: "",
3988
- identifier: "",
3989
- modified: ""
3989
+ error: '',
3990
+ description: '',
3991
+ identifier: '',
3992
+ modified: ''
3990
3993
  });
3991
3994
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
3992
3995
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -3996,7 +3999,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
3996
3999
  "metastore" + id
3997
4000
  ],
3998
4001
  queryFn: ()=>{
3999
- 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)=>{
4002
+ 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)=>{
4000
4003
  return {
4001
4004
  title: dataset.title,
4002
4005
  distribution: dataset.distribution,
@@ -4062,7 +4065,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
4062
4065
  ...additionalParams
4063
4066
  };
4064
4067
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
4065
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
4068
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
4066
4069
  let enabled = false;
4067
4070
  if (id) {
4068
4071
  if (!requireConditions) enabled = true;
@@ -4142,65 +4145,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
4142
4145
 
4143
4146
 
4144
4147
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
4145
- "R/P10Y": {
4146
- name: "Decennial"
4148
+ 'R/P10Y': {
4149
+ name: 'Decennial'
4147
4150
  },
4148
- "R/P4Y": {
4149
- name: "Quadrennial"
4151
+ 'R/P4Y': {
4152
+ name: 'Quadrennial'
4150
4153
  },
4151
- "R/P1Y": {
4152
- name: "Annual"
4154
+ 'R/P1Y': {
4155
+ name: 'Annual'
4153
4156
  },
4154
- "R/P2M": {
4155
- name: "Bimonthly"
4157
+ 'R/P2M': {
4158
+ name: 'Bimonthly'
4156
4159
  },
4157
- "R/P3.5D": {
4158
- name: "Semiweekly"
4160
+ 'R/P3.5D': {
4161
+ name: 'Semiweekly'
4159
4162
  },
4160
- "R/P1D": {
4161
- name: "Daily"
4163
+ 'R/P1D': {
4164
+ name: 'Daily'
4162
4165
  },
4163
- "R/P2W": {
4164
- name: "Biweekly"
4166
+ 'R/P2W': {
4167
+ name: 'Biweekly'
4165
4168
  },
4166
- "R/P6M": {
4167
- name: "Semiannual"
4169
+ 'R/P6M': {
4170
+ name: 'Semiannual'
4168
4171
  },
4169
- "R/P2Y": {
4170
- name: "Biennial"
4172
+ 'R/P2Y': {
4173
+ name: 'Biennial'
4171
4174
  },
4172
- "R/P3Y": {
4173
- name: "Triennial"
4175
+ 'R/P3Y': {
4176
+ name: 'Triennial'
4174
4177
  },
4175
- "R/P0.33W": {
4176
- name: "Three times a week"
4178
+ 'R/P0.33W': {
4179
+ name: 'Three times a week'
4177
4180
  },
4178
- "R/P0.33M": {
4179
- name: "Three times a month"
4181
+ 'R/P0.33M': {
4182
+ name: 'Three times a month'
4180
4183
  },
4181
- "R/PT1S": {
4182
- name: "Continuously updated"
4184
+ 'R/PT1S': {
4185
+ name: 'Continuously updated'
4183
4186
  },
4184
- "R/P1M": {
4185
- name: "Monthly"
4187
+ 'R/P1M': {
4188
+ name: 'Monthly'
4186
4189
  },
4187
- "R/P3M": {
4188
- name: "Quarterly"
4190
+ 'R/P3M': {
4191
+ name: 'Quarterly'
4189
4192
  },
4190
- "R/P0.5M": {
4191
- name: "Semimonthly"
4193
+ 'R/P0.5M': {
4194
+ name: 'Semimonthly'
4192
4195
  },
4193
- "R/P4M": {
4194
- name: "Three times a year"
4196
+ 'R/P4M': {
4197
+ name: 'Three times a year'
4195
4198
  },
4196
- "R/P1W": {
4197
- name: "Weekly"
4199
+ 'R/P1W': {
4200
+ name: 'Weekly'
4198
4201
  },
4199
- "R/PT1H": {
4200
- name: "Hourly"
4202
+ 'R/PT1H': {
4203
+ name: 'Hourly'
4201
4204
  },
4202
4205
  irregular: {
4203
- name: "Irregular"
4206
+ name: 'Irregular'
4204
4207
  }
4205
4208
  };
4206
4209
 
@@ -4209,7 +4212,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4209
4212
  modified: (data)=>{
4210
4213
  return [
4211
4214
  {
4212
- label: "Modified",
4215
+ label: 'Modified',
4213
4216
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
4214
4217
  date: data
4215
4218
  })
@@ -4219,7 +4222,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4219
4222
  issued: (data)=>{
4220
4223
  return [
4221
4224
  {
4222
- label: "Issued",
4225
+ label: 'Issued',
4223
4226
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
4224
4227
  date: data
4225
4228
  })
@@ -4229,7 +4232,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4229
4232
  accrualPeriodicity: (data)=>{
4230
4233
  return [
4231
4234
  {
4232
- label: "Frequency",
4235
+ label: 'Frequency',
4233
4236
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
4234
4237
  }
4235
4238
  ];
@@ -4237,7 +4240,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4237
4240
  publisher: (data)=>{
4238
4241
  if (data.data && data.data.name) return [
4239
4242
  {
4240
- label: "Publisher",
4243
+ label: 'Publisher',
4241
4244
  value: data.data.name
4242
4245
  }
4243
4246
  ];
@@ -4246,7 +4249,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4246
4249
  identifier: (data)=>{
4247
4250
  return [
4248
4251
  {
4249
- label: "Identifier",
4252
+ label: 'Identifier',
4250
4253
  value: data
4251
4254
  }
4252
4255
  ];
@@ -4254,11 +4257,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4254
4257
  contactPoint: (data)=>{
4255
4258
  let rows = [];
4256
4259
  if (data.fn) rows.push({
4257
- label: "Contact",
4260
+ label: 'Contact',
4258
4261
  value: data.fn
4259
4262
  });
4260
4263
  if (data.hasEmail) rows.push({
4261
- label: "Contact Email",
4264
+ label: 'Contact Email',
4262
4265
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
4263
4266
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
4264
4267
  children: data.hasEmail.replace("mailto:", "")
@@ -4269,7 +4272,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4269
4272
  bureauCode: (data)=>{
4270
4273
  if (data.length) return [
4271
4274
  {
4272
- label: "Bureau Code",
4275
+ label: 'Bureau Code',
4273
4276
  value: data[0]
4274
4277
  }
4275
4278
  ];
@@ -4277,7 +4280,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4277
4280
  programCode: (data)=>{
4278
4281
  if (data.length) return [
4279
4282
  {
4280
- label: "Program Code",
4283
+ label: 'Program Code',
4281
4284
  value: data[0]
4282
4285
  }
4283
4286
  ];
@@ -4285,13 +4288,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4285
4288
  theme: (data)=>{
4286
4289
  return [
4287
4290
  {
4288
- label: "Category",
4291
+ label: 'Category',
4289
4292
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
4290
4293
  to: `/datasets?theme[]=${theme.data}`,
4291
4294
  children: theme.data
4292
4295
  }, theme.data)).reduce((prev, curr)=>[
4293
4296
  prev,
4294
- ", ",
4297
+ ', ',
4295
4298
  curr
4296
4299
  ])
4297
4300
  }
@@ -4300,13 +4303,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4300
4303
  keyword: (data)=>{
4301
4304
  return [
4302
4305
  {
4303
- label: "Tags",
4306
+ label: 'Tags',
4304
4307
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
4305
4308
  to: `/datasets?keyword[]=${keyword.data}`,
4306
4309
  children: keyword.data
4307
4310
  }, keyword.data)).reduce((prev, curr)=>[
4308
4311
  prev,
4309
- ", ",
4312
+ ', ',
4310
4313
  curr
4311
4314
  ])
4312
4315
  }
@@ -4315,7 +4318,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4315
4318
  license: (data)=>{
4316
4319
  return [
4317
4320
  {
4318
- label: "License",
4321
+ label: 'License',
4319
4322
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
4320
4323
  href: data,
4321
4324
  children: data
@@ -4326,7 +4329,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4326
4329
  accessLevel: (data)=>{
4327
4330
  return [
4328
4331
  {
4329
- label: "Public Access Level",
4332
+ label: 'Public Access Level',
4330
4333
  value: data
4331
4334
  }
4332
4335
  ];
@@ -4334,7 +4337,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4334
4337
  temporal: (data)=>{
4335
4338
  return [
4336
4339
  {
4337
- label: "Temporal Coverage",
4340
+ label: 'Temporal Coverage',
4338
4341
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4339
4342
  className: "dc-c-word-break--all",
4340
4343
  children: data
@@ -4345,7 +4348,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4345
4348
  spatial: (data)=>{
4346
4349
  return [
4347
4350
  {
4348
- label: "Spacial/Geographical Coverage",
4351
+ label: 'Spacial/Geographical Coverage',
4349
4352
  value: data
4350
4353
  }
4351
4354
  ];
@@ -4353,7 +4356,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4353
4356
  references: (data)=>{
4354
4357
  return [
4355
4358
  {
4356
- label: "Related Documents",
4359
+ label: 'Related Documents',
4357
4360
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
4358
4361
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
4359
4362
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -4434,7 +4437,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
4434
4437
  if (dist && dist.data) {
4435
4438
  if (dist.data.format) return dist.data.format.toLowerCase();
4436
4439
  if (dist.data.mediaType) {
4437
- const mediaType = dist.data.mediaType.split("/");
4440
+ const mediaType = dist.data.mediaType.split('/');
4438
4441
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
4439
4442
  }
4440
4443
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -4444,7 +4447,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
4444
4447
  }
4445
4448
  }
4446
4449
  }
4447
- return "";
4450
+ return '';
4448
4451
  }
4449
4452
 
4450
4453
 
@@ -4488,21 +4491,21 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
4488
4491
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
4489
4492
  href: dist.data.downloadURL,
4490
4493
  style: {
4491
- order: sm ? "1" : "0",
4492
- width: sm ? "100%" : "auto"
4494
+ order: sm ? '1' : '0',
4495
+ width: sm ? '100%' : 'auto'
4493
4496
  },
4494
4497
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
4495
4498
  className: "ds-c-button",
4496
4499
  children: [
4497
4500
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
4498
- className: "fa fa-file-download ds-u-color--primary ds-u-padding-right--1"
4501
+ className: "fa fa-file-download ds-u-padding-right--1"
4499
4502
  }),
4500
4503
  "Download"
4501
4504
  ]
4502
4505
  })
4503
4506
  }),
4504
4507
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4505
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
4508
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
4506
4509
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4507
4510
  className: "dc-c-metadata-description ds-u-margin--0",
4508
4511
  dangerouslySetInnerHTML: {
@@ -4574,7 +4577,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
4574
4577
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
4575
4578
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
4576
4579
  children: [
4577
- md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4580
+ md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4578
4581
  component: "th",
4579
4582
  className: "ds-u-font-weight--bold",
4580
4583
  children: [
@@ -4585,8 +4588,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
4585
4588
  title: tooltip.title,
4586
4589
  // @ts-ignore
4587
4590
  style: {
4588
- border: "none",
4589
- background: "none"
4591
+ border: 'none',
4592
+ background: 'none'
4590
4593
  },
4591
4594
  maxWidth: "400px",
4592
4595
  placement: "auto",
@@ -4645,10 +4648,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
4645
4648
  href: apiUrl,
4646
4649
  children: [
4647
4650
  "View API",
4648
- " ",
4651
+ ' ',
4649
4652
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
4650
4653
  style: {
4651
- whiteSpace: "nowrap"
4654
+ whiteSpace: 'nowrap'
4652
4655
  },
4653
4656
  children: [
4654
4657
  "specification ",
@@ -4689,20 +4692,20 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
4689
4692
 
4690
4693
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
4691
4694
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
4692
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
4695
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
4693
4696
  const mobile = (0, $hgUW1$useMediaQuery)({
4694
4697
  minWidth: 0,
4695
4698
  maxWidth: 544
4696
4699
  });
4697
4700
  const sortElement = (isSorted)=>{
4698
- if (isSorted === "asc") return "dc-c-sort--asc";
4699
- if (isSorted === "desc") return "dc-c-sort--desc";
4700
- return "dc-c-sort--default";
4701
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
4702
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
4703
+ return 'dc-c-sort--default';
4701
4704
  };
4702
4705
  const table = (0, $hgUW1$useReactTable)({
4703
4706
  data: tableData,
4704
4707
  columns: tableColumns,
4705
- columnResizeMode: "onChange",
4708
+ columnResizeMode: 'onChange',
4706
4709
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
4707
4710
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
4708
4711
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -4721,49 +4724,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4721
4724
  });
4722
4725
  const sortOptions = [
4723
4726
  {
4724
- value: "default",
4725
- label: "No Sort"
4727
+ value: 'default',
4728
+ label: 'No Sort'
4726
4729
  },
4727
4730
  {
4728
- value: "titleasc",
4729
- label: "Title A-Z"
4731
+ value: 'titleasc',
4732
+ label: 'Title A-Z'
4730
4733
  },
4731
4734
  {
4732
- value: "titledesc",
4733
- label: "Title Z-A"
4735
+ value: 'titledesc',
4736
+ label: 'Title Z-A'
4734
4737
  },
4735
4738
  {
4736
- value: "typeasc",
4737
- label: "Type A-Z"
4739
+ value: 'typeasc',
4740
+ label: 'Type A-Z'
4738
4741
  },
4739
4742
  {
4740
- value: "typedesc",
4741
- label: "Type Z-A"
4743
+ value: 'typedesc',
4744
+ label: 'Type Z-A'
4742
4745
  }
4743
4746
  ];
4744
4747
  const sortStatesLookup = {
4745
4748
  default: [],
4746
4749
  titleasc: [
4747
4750
  {
4748
- id: "titleResizable",
4751
+ id: 'titleResizable',
4749
4752
  desc: false
4750
4753
  }
4751
4754
  ],
4752
4755
  titledesc: [
4753
4756
  {
4754
- id: "titleResizable",
4757
+ id: 'titleResizable',
4755
4758
  desc: true
4756
4759
  }
4757
4760
  ],
4758
4761
  typeasc: [
4759
4762
  {
4760
- id: "type",
4763
+ id: 'type',
4761
4764
  desc: false
4762
4765
  }
4763
4766
  ],
4764
4767
  typedesc: [
4765
4768
  {
4766
- id: "type",
4769
+ id: 'type',
4767
4770
  desc: true
4768
4771
  }
4769
4772
  ]
@@ -4791,7 +4794,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4791
4794
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
4792
4795
  className: "dc-c-datatable",
4793
4796
  style: {
4794
- width: "100%"
4797
+ width: '100%'
4795
4798
  },
4796
4799
  stackable: true,
4797
4800
  children: [
@@ -4807,12 +4810,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4807
4810
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4808
4811
  key: header.id,
4809
4812
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
4810
- id: "dataDictionary_" + header.id,
4813
+ id: 'dataDictionary_' + header.id,
4811
4814
  children: [
4812
4815
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
4813
- header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4816
+ header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4814
4817
  onClick: header.column.getToggleSortingHandler(),
4815
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
4818
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
4816
4819
  "aria-label": `${header.column.columnDef.header} sort order`
4817
4820
  })
4818
4821
  ]
@@ -4827,12 +4830,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4827
4830
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
4828
4831
  key: cell.id,
4829
4832
  style: {
4830
- maxWidth: mobile ? "100%" : cell.column.getSize(),
4831
- whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
4833
+ maxWidth: mobile ? '100%' : cell.column.getSize(),
4834
+ whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
4832
4835
  },
4833
- className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
4834
- headers: "dataDictionary_" + cell.column.id,
4835
- stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
4836
+ className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
4837
+ headers: 'dataDictionary_' + cell.column.id,
4838
+ stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
4836
4839
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
4837
4840
  });
4838
4841
  })
@@ -4861,7 +4864,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4861
4864
  table.setPageIndex(page - 1);
4862
4865
  },
4863
4866
  renderHref: (page)=>`/page=${page}`
4864
- }) : ""
4867
+ }) : ''
4865
4868
  ]
4866
4869
  });
4867
4870
  };
@@ -4871,17 +4874,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
4871
4874
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
4872
4875
  const columnHelper = (0, $hgUW1$createColumnHelper)();
4873
4876
  const tableColumns = [
4874
- columnHelper.accessor("name", {
4875
- header: "Name"
4877
+ columnHelper.accessor('name', {
4878
+ header: 'Name'
4876
4879
  }),
4877
- columnHelper.accessor("title", {
4878
- header: "Title"
4880
+ columnHelper.accessor('title', {
4881
+ header: 'Title'
4879
4882
  }),
4880
- columnHelper.accessor("type", {
4881
- header: "Type"
4883
+ columnHelper.accessor('type', {
4884
+ header: 'Type'
4882
4885
  }),
4883
- columnHelper.accessor("format", {
4884
- header: "Format"
4886
+ columnHelper.accessor('format', {
4887
+ header: 'Format'
4885
4888
  })
4886
4889
  ];
4887
4890
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -4925,7 +4928,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4925
4928
  });
4926
4929
  const columnHelper = (0, $hgUW1$createColumnHelper)();
4927
4930
  const tableColumns = [
4928
- columnHelper.accessor("titleResizable", {
4931
+ columnHelper.accessor('titleResizable', {
4929
4932
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4930
4933
  className: "dc-c-tooltip-width-override",
4931
4934
  children: [
@@ -4934,8 +4937,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4934
4937
  title: "Title represents the column headers of the data file",
4935
4938
  // @ts-ignore
4936
4939
  style: {
4937
- border: "none",
4938
- background: "none"
4940
+ border: 'none',
4941
+ background: 'none'
4939
4942
  },
4940
4943
  maxWidth: "400px",
4941
4944
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -4945,48 +4948,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4945
4948
  size: 300,
4946
4949
  minSize: 132
4947
4950
  }),
4948
- columnHelper.accessor("description", {
4949
- header: "Description",
4951
+ columnHelper.accessor('description', {
4952
+ header: 'Description',
4950
4953
  minSize: 600
4951
4954
  }),
4952
- columnHelper.accessor("type", {
4953
- header: "Type",
4955
+ columnHelper.accessor('type', {
4956
+ header: 'Type',
4954
4957
  size: 150,
4955
4958
  enableResizing: false
4956
4959
  })
4957
4960
  ];
4958
4961
  const typeOptions = [
4959
4962
  {
4960
- value: "all",
4961
- label: "All Types"
4963
+ value: 'all',
4964
+ label: 'All Types'
4962
4965
  },
4963
4966
  {
4964
- value: "string",
4965
- label: "String"
4967
+ value: 'string',
4968
+ label: 'String'
4966
4969
  },
4967
4970
  {
4968
- value: "date",
4969
- label: "Date"
4971
+ value: 'date',
4972
+ label: 'Date'
4970
4973
  },
4971
4974
  {
4972
- value: "datetime",
4973
- label: "Datetime"
4975
+ value: 'datetime',
4976
+ label: 'Datetime'
4974
4977
  },
4975
4978
  {
4976
- value: "year",
4977
- label: "Year"
4979
+ value: 'year',
4980
+ label: 'Year'
4978
4981
  },
4979
4982
  {
4980
- value: "integer",
4981
- label: "Integer"
4983
+ value: 'integer',
4984
+ label: 'Integer'
4982
4985
  },
4983
4986
  {
4984
- value: "number",
4985
- label: "Number"
4987
+ value: 'number',
4988
+ label: 'Number'
4986
4989
  },
4987
4990
  {
4988
- value: "boolean",
4989
- label: "Boolean"
4991
+ value: 'boolean',
4992
+ label: 'Boolean'
4990
4993
  }
4991
4994
  ];
4992
4995
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -5093,7 +5096,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
5093
5096
  href: datasetDictionaryEndpoint + "/csv",
5094
5097
  className: "ds-c-button",
5095
5098
  style: {
5096
- width: "100%"
5099
+ width: '100%'
5097
5100
  },
5098
5101
  children: [
5099
5102
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -5129,7 +5132,7 @@ var $6012b86ffcaf3f71$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5129
5132
 
5130
5133
 
5131
5134
 
5132
- const $39bc4d98030a5599$var$DataTableStateWrapper = ()=>{
5135
+ const $39bc4d98030a5599$var$DataTableStateWrapper = ({ showQueryBuilder: showQueryBuilder = true })=>{
5133
5136
  const { id: id, datasetTableControls: datasetTableControls } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
5134
5137
  // a wrapper component to keep column state synced between full screen and regular modes
5135
5138
  const localStorageData = id ? JSON.parse(localStorage.getItem(id)) : null;
@@ -5152,7 +5155,9 @@ const $39bc4d98030a5599$var$DataTableStateWrapper = ()=>{
5152
5155
  page: page,
5153
5156
  setPage: setPage
5154
5157
  },
5155
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $a35cf16d1488f54e$export$2e2bcd8739ae039), {})
5158
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $a35cf16d1488f54e$export$2e2bcd8739ae039), {
5159
+ showQueryBuilder: showQueryBuilder
5160
+ })
5156
5161
  });
5157
5162
  };
5158
5163
  var $39bc4d98030a5599$export$2e2bcd8739ae039 = $39bc4d98030a5599$var$DataTableStateWrapper;
@@ -5166,7 +5171,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
5166
5171
  const [description, setDescription] = (0, $hgUW1$useState)("");
5167
5172
  if (!distribution && !dataset?.identifier) return null;
5168
5173
  (0, $hgUW1$useEffect)(()=>{
5169
- let newDescription = "";
5174
+ let newDescription = '';
5170
5175
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
5171
5176
  else {
5172
5177
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -5181,7 +5186,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
5181
5186
  customDescription
5182
5187
  ]);
5183
5188
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5184
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
5189
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5185
5190
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5186
5191
  className: "ds-u-margin-top--0 dc-c-metadata-description",
5187
5192
  dangerouslySetInnerHTML: {
@@ -5203,7 +5208,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
5203
5208
  ],
5204
5209
  queryFn: ()=>{
5205
5210
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
5206
- arrayFormat: "comma",
5211
+ arrayFormat: 'comma',
5207
5212
  encode: false
5208
5213
  })}`).then((res)=>res.json());
5209
5214
  }
@@ -5222,7 +5227,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5222
5227
  conditions: []
5223
5228
  };
5224
5229
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
5225
- const title = dataset.title ? dataset.title : "";
5230
+ const title = dataset.title ? dataset.title : '';
5226
5231
  const metadataMapping = {
5227
5232
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
5228
5233
  ...customMetadataMapping
@@ -5230,7 +5235,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5230
5235
  let distribution = {};
5231
5236
  let distributions = dataset.distribution ? dataset.distribution : [];
5232
5237
  if (distributions.length) distribution = distributions[0];
5233
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
5238
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
5234
5239
  ...options,
5235
5240
  limit: defaultPageSize
5236
5241
  });
@@ -5242,7 +5247,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5242
5247
  }) : null;
5243
5248
  (0, $hgUW1$useEffect)(()=>{
5244
5249
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
5245
- if (localFileFormat === "csv") resource.setResource(distribution.identifier);
5250
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
5246
5251
  }, [
5247
5252
  distribution
5248
5253
  ]);
@@ -5297,26 +5302,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5297
5302
  distribution,
5298
5303
  window.location.hash
5299
5304
  ]);
5300
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
5305
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
5301
5306
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
5302
5307
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
5303
5308
  content: notFoundContent,
5304
5309
  siteUrl: rootUrl
5305
5310
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5306
- className: "ds-l-container",
5311
+ className: 'ds-l-container',
5307
5312
  children: [
5308
5313
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5309
- className: "ds-l-row",
5314
+ className: 'ds-l-row',
5310
5315
  children: [
5311
5316
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5312
- className: "ds-l-md-col--9",
5317
+ className: 'ds-l-md-col--9',
5313
5318
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
5314
5319
  className: "ds-text-heading--3xl",
5315
5320
  children: title
5316
5321
  })
5317
5322
  }),
5318
5323
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5319
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
5324
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
5320
5325
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
5321
5326
  className: "ds-u-margin--0",
5322
5327
  children: [
@@ -5328,7 +5333,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5328
5333
  })
5329
5334
  }),
5330
5335
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5331
- className: "ds-l-md-col--9",
5336
+ className: 'ds-l-md-col--9',
5332
5337
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
5333
5338
  distribution: distribution,
5334
5339
  dataset: dataset,
@@ -5340,9 +5345,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5340
5345
  ]
5341
5346
  }),
5342
5347
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5343
- className: "ds-l-row",
5348
+ className: 'ds-l-row',
5344
5349
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5345
- className: "ds-l-md-col--12 dc-dataset",
5350
+ className: 'ds-l-md-col--12 dc-dataset',
5346
5351
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
5347
5352
  onChange: (selectedId, prevSelectedId)=>{
5348
5353
  setSelectedTab(selectedId);
@@ -5350,7 +5355,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5350
5355
  selectedId: selectedTab,
5351
5356
  children: [
5352
5357
  (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5353
- id: "data-table",
5358
+ id: 'data-table',
5354
5359
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5355
5360
  className: "ds-u-color--primary",
5356
5361
  children: [
@@ -5360,7 +5365,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5360
5365
  "Data Table"
5361
5366
  ]
5362
5367
  }),
5363
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5368
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5364
5369
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
5365
5370
  value: {
5366
5371
  id: id,
@@ -5375,7 +5380,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5375
5380
  })
5376
5381
  }),
5377
5382
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5378
- id: "overview",
5383
+ id: 'overview',
5379
5384
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5380
5385
  className: "ds-u-color--primary",
5381
5386
  children: [
@@ -5385,7 +5390,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5385
5390
  "Overview"
5386
5391
  ]
5387
5392
  }),
5388
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5393
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5389
5394
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
5390
5395
  resource: resource,
5391
5396
  dataset: dataset,
@@ -5394,7 +5399,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5394
5399
  })
5395
5400
  }),
5396
5401
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TabPanel), {
5397
- id: "data-dictionary",
5402
+ id: 'data-dictionary',
5398
5403
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5399
5404
  className: "ds-u-color--primary",
5400
5405
  children: [
@@ -5404,7 +5409,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5404
5409
  "Data Dictionary"
5405
5410
  ]
5406
5411
  }),
5407
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5412
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5408
5413
  children: [
5409
5414
  displayDataDictionaryTab && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
5410
5415
  datasetSitewideDictionary: datasetSitewideDictionary,
@@ -5418,7 +5423,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5418
5423
  ]
5419
5424
  }),
5420
5425
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5421
- id: "api",
5426
+ id: 'api',
5422
5427
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5423
5428
  className: "ds-u-color--primary",
5424
5429
  children: [
@@ -5428,7 +5433,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5428
5433
  "API"
5429
5434
  ]
5430
5435
  }),
5431
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5436
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5432
5437
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
5433
5438
  id: id,
5434
5439
  rootUrl: rootUrl,
@@ -5465,13 +5470,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5465
5470
  });
5466
5471
  const menu = (0, $hgUW1$useRef)(null);
5467
5472
  function closeMobileMenu() {
5468
- const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
5473
+ const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
5469
5474
  if (!mobileMenuButtonElement) return;
5470
5475
  mobileMenuButtonElement.focus();
5471
5476
  }
5472
5477
  // Close mobile menu with escape.
5473
5478
  function handleMenuClose(event) {
5474
- if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
5479
+ if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
5475
5480
  }
5476
5481
  function handleClick(event) {
5477
5482
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -5506,7 +5511,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5506
5511
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
5507
5512
  const firstEl = focusableEls[0];
5508
5513
  const lastEl = focusableEls[focusableEls.length - 1];
5509
- if (event.key === "Tab") {
5514
+ if (event.key === 'Tab') {
5510
5515
  if (event.shiftKey && document.activeElement === firstEl) {
5511
5516
  lastEl?.focus();
5512
5517
  event.preventDefault();
@@ -5518,15 +5523,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5518
5523
  }
5519
5524
  };
5520
5525
  (0, $hgUW1$useEffect)(()=>{
5521
- document.addEventListener("keyup", handleMenuClose);
5522
- document.addEventListener("mousedown", handleClick);
5526
+ document.addEventListener('keyup', handleMenuClose);
5527
+ document.addEventListener('mousedown', handleClick);
5523
5528
  if (mobileMenuOpen) handleFocusIn();
5524
5529
  else closeMobileMenu();
5525
- if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
5530
+ if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
5526
5531
  return ()=>{
5527
- document.removeEventListener("keyup", handleMenuClose);
5528
- document.addEventListener("mousedown", handleClick);
5529
- if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
5532
+ document.removeEventListener('keyup', handleMenuClose);
5533
+ document.addEventListener('mousedown', handleClick);
5534
+ if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
5530
5535
  };
5531
5536
  }, [
5532
5537
  mobileMenuOpen
@@ -5541,7 +5546,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5541
5546
  },
5542
5547
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
5543
5548
  "aria-label": "Site header",
5544
- className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
5549
+ className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
5545
5550
  children: [
5546
5551
  topNav && topNav,
5547
5552
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -5584,7 +5589,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
5584
5589
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
5585
5590
 
5586
5591
 
5587
- 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", {
5592
+ 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", {
5588
5593
  children: [
5589
5594
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5590
5595
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -5672,14 +5677,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5672
5677
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5673
5678
  className: "ds-u-font-size--sm",
5674
5679
  children: footerAdditionalResourcesLinks.filter((link)=>{
5675
- const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
5680
+ const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
5676
5681
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
5677
5682
  }).map((link)=>{
5678
5683
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
5679
5684
  className: "ds-u-margin-bottom--1",
5680
5685
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5681
5686
  href: link.url,
5682
- ["data-" + link.dataTag.name]: link.dataTag.value,
5687
+ ['data-' + link.dataTag.name]: link.dataTag.value,
5683
5688
  onClick: link.onClick,
5684
5689
  children: link.label
5685
5690
  })
@@ -5779,7 +5784,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5779
5784
  children: [
5780
5785
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5781
5786
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
5782
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
5787
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
5783
5788
  }),
5784
5789
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5785
5790
  transform: "translate(160 256)",
@@ -5832,7 +5837,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5832
5837
  children: [
5833
5838
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5834
5839
  id: "svg-inline--fa-title-4z03ITiPPTVF",
5835
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
5840
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
5836
5841
  }),
5837
5842
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5838
5843
  transform: "translate(256 256)",
@@ -5885,7 +5890,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5885
5890
  children: [
5886
5891
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5887
5892
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
5888
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
5893
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
5889
5894
  }),
5890
5895
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5891
5896
  transform: "translate(224 256)",
@@ -5937,7 +5942,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5937
5942
  children: [
5938
5943
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5939
5944
  id: "svg-inline--fa-title-youtube",
5940
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
5945
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
5941
5946
  }),
5942
5947
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
5943
5948
  fill: "currentColor",
@@ -6037,26 +6042,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
6037
6042
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6038
6043
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
6039
6044
  stackable: true,
6040
- className: "ds-c-table",
6045
+ className: 'ds-c-table',
6041
6046
  children: [
6042
6047
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
6043
6048
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
6044
6049
  children: [
6045
6050
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6046
- id: "application",
6047
- headers: "Application",
6051
+ id: 'application',
6052
+ headers: 'Application',
6048
6053
  children: "Application"
6049
- }, "Application"),
6054
+ }, 'Application'),
6050
6055
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6051
- id: "notes",
6052
- headers: "Notes",
6056
+ id: 'notes',
6057
+ headers: 'Notes',
6053
6058
  children: "Notes"
6054
- }, "Notes"),
6059
+ }, 'Notes'),
6055
6060
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6056
- id: "links",
6057
- headers: "Links",
6061
+ id: 'links',
6062
+ headers: 'Links',
6058
6063
  children: "Links"
6059
- }, "Links")
6064
+ }, 'Links')
6060
6065
  ]
6061
6066
  })
6062
6067
  }),
@@ -6066,19 +6071,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
6066
6071
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6067
6072
  id: d.id,
6068
6073
  stackedTitle: "Application",
6069
- headers: "Application",
6074
+ headers: 'Application',
6070
6075
  children: d.application
6071
6076
  }, d.id),
6072
6077
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6073
6078
  id: d.id,
6074
6079
  stackedTitle: "Notes",
6075
- headers: "Notes",
6080
+ headers: 'Notes',
6076
6081
  children: d.notes
6077
6082
  }, `${d.id}-notes`),
6078
6083
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6079
6084
  id: d.id,
6080
6085
  stackedTitle: "Links",
6081
- headers: "Links",
6086
+ headers: 'Links',
6082
6087
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
6083
6088
  className: "dkan-newtab",
6084
6089
  href: d.link,
@@ -6106,44 +6111,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
6106
6111
 
6107
6112
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
6108
6113
  {
6109
- id: "excel",
6110
- application: "Microsoft Excel",
6111
- notes: "Official size limitations for Microsoft Excel",
6112
- 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",
6113
- linkText: "Excel Specifications and Limits",
6114
- screenReaderOnlyText: "on microsoft.com"
6114
+ id: 'excel',
6115
+ application: 'Microsoft Excel',
6116
+ notes: 'Official size limitations for Microsoft Excel',
6117
+ 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',
6118
+ linkText: 'Excel Specifications and Limits',
6119
+ screenReaderOnlyText: 'on microsoft.com'
6115
6120
  },
6116
6121
  {
6117
- id: "access",
6118
- application: "Microsoft Access",
6119
- notes: "Official size limitations for Microsoft Access",
6120
- link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
6121
- linkText: "Access 2016 Specifications",
6122
- screenReaderOnlyText: "on microsoft.com"
6122
+ id: 'access',
6123
+ application: 'Microsoft Access',
6124
+ notes: 'Official size limitations for Microsoft Access',
6125
+ link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
6126
+ linkText: 'Access 2016 Specifications',
6127
+ screenReaderOnlyText: 'on microsoft.com'
6123
6128
  },
6124
6129
  {
6125
- id: "oracle-sql-developer",
6126
- application: "Oracle SQL Developer",
6127
- notes: "Oracle SQL Developer tool",
6128
- link: "https://www.oracle.com/database/sqldeveloper/",
6129
- linkText: "Oracle SQL Developer Overview",
6130
- screenReaderOnlyText: "on oracle.com"
6130
+ id: 'oracle-sql-developer',
6131
+ application: 'Oracle SQL Developer',
6132
+ notes: 'Oracle SQL Developer tool',
6133
+ link: 'https://www.oracle.com/database/sqldeveloper/',
6134
+ linkText: 'Oracle SQL Developer Overview',
6135
+ screenReaderOnlyText: 'on oracle.com'
6131
6136
  },
6132
6137
  {
6133
- id: "oracle-database",
6134
- application: "Oracle Database",
6135
- notes: "Oracle Database official size limitations",
6136
- link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
6137
- linkText: "Oracle Physical Database Limits",
6138
- screenReaderOnlyText: "on oracle.com"
6138
+ id: 'oracle-database',
6139
+ application: 'Oracle Database',
6140
+ notes: 'Oracle Database official size limitations',
6141
+ link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
6142
+ linkText: 'Oracle Physical Database Limits',
6143
+ screenReaderOnlyText: 'on oracle.com'
6139
6144
  },
6140
6145
  {
6141
- id: "oracle-sql-client-tools",
6142
- application: "Oracle SQL Client Tools",
6143
- notes: "Oracle SQL Client Tools",
6144
- link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
6145
- linkText: "Oracle SQL Client",
6146
- screenReaderOnlyText: "on oracle.com"
6146
+ id: 'oracle-sql-client-tools',
6147
+ application: 'Oracle SQL Client Tools',
6148
+ notes: 'Oracle SQL Client Tools',
6149
+ link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
6150
+ linkText: 'Oracle SQL Client',
6151
+ screenReaderOnlyText: 'on oracle.com'
6147
6152
  }
6148
6153
  ];
6149
6154
 
@@ -6171,7 +6176,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
6171
6176
  }),
6172
6177
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
6173
6178
  heading: "Notice",
6174
- className: "ds-u-margin-top--6",
6179
+ className: 'ds-u-margin-top--6',
6175
6180
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6176
6181
  className: "ds-c-alert__text",
6177
6182
  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."
@@ -6180,16 +6185,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
6180
6185
  ]
6181
6186
  }),
6182
6187
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
6183
- className: "ds-u-margin-top--4 ds-l-row",
6188
+ className: 'ds-u-margin-top--4 ds-l-row',
6184
6189
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6185
- className: "ds-l-col--12",
6190
+ className: 'ds-l-col--12',
6186
6191
  children: [
6187
6192
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
6188
6193
  className: "ds-text-heading--2xl ds-text-heading--2xl",
6189
6194
  children: "Documentation by Application"
6190
6195
  }),
6191
6196
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6192
- className: "ds-u-margin-top--4",
6197
+ className: 'ds-u-margin-top--4',
6193
6198
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
6194
6199
  data: documentationList
6195
6200
  })
@@ -6212,6 +6217,49 @@ var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLim
6212
6217
 
6213
6218
 
6214
6219
 
6220
+ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, customColumns: customColumns, query: query, distributionIndex: distributionIndex = 0, defaultPageSize: defaultPageSize = 25, disableTableControls: disableTableControls = false }) {
6221
+ // TODO parse from stored filter
6222
+ const options = {
6223
+ conditions: query ? JSON.parse(query) : []
6224
+ };
6225
+ const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6226
+ let distribution = {};
6227
+ let distributions = dataset.distribution ? dataset.distribution : [];
6228
+ if (distributions.length) distribution = distributions[distributionIndex];
6229
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6230
+ ...options,
6231
+ limit: defaultPageSize
6232
+ });
6233
+ (0, $hgUW1$useEffect)(()=>{
6234
+ const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6235
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6236
+ }, [
6237
+ distribution
6238
+ ]);
6239
+ return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6240
+ value: {
6241
+ id: id,
6242
+ resource: resource,
6243
+ distribution: distribution,
6244
+ rootUrl: rootUrl,
6245
+ customColumns: customColumns,
6246
+ datasetTableControls: !disableTableControls
6247
+ },
6248
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $39bc4d98030a5599$export$2e2bcd8739ae039), {
6249
+ showQueryBuilder: false
6250
+ })
6251
+ });
6252
+ }
6253
+
6254
+
6255
+
6256
+
6257
+
6258
+
6259
+
6260
+
6261
+
6262
+
6215
6263
 
6216
6264
 
6217
6265
 
@@ -6231,7 +6279,7 @@ var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLim
6231
6279
 
6232
6280
 
6233
6281
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
6234
- if (schema[id].fields[condition.property].mysql_type === "date") {
6282
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
6235
6283
  const newDate = new Date(condition.value);
6236
6284
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
6237
6285
  }
@@ -6248,9 +6296,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6248
6296
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
6249
6297
  (0, $hgUW1$useEffect)(()=>{
6250
6298
  if (property !== condition.property) {
6251
- if (property) update(index, "property", property);
6252
- else update(index, "property", "");
6253
- if (schema[id].fields[condition.property].mysql_type === "date") {
6299
+ if (property) update(index, 'property', property);
6300
+ else update(index, 'property', '');
6301
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
6254
6302
  if (!value) setValue(startDate.toJSON().slice(0, 10));
6255
6303
  }
6256
6304
  }
@@ -6264,16 +6312,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6264
6312
  ]);
6265
6313
  (0, $hgUW1$useEffect)(()=>{
6266
6314
  if (operator !== condition.operator) {
6267
- if (operator) update(index, "operator", operator);
6268
- else update(index, "operator", "");
6315
+ if (operator) update(index, 'operator', operator);
6316
+ else update(index, 'operator', '');
6269
6317
  }
6270
6318
  }, [
6271
6319
  operator
6272
6320
  ]);
6273
6321
  (0, $hgUW1$useEffect)(()=>{
6274
6322
  if (value !== condition.value) {
6275
- if (value) update(index, "value", value);
6276
- else update(index, "value", "");
6323
+ if (value) update(index, 'value', value);
6324
+ else update(index, 'value', '');
6277
6325
  }
6278
6326
  }, [
6279
6327
  value
@@ -6297,7 +6345,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6297
6345
  onChange: (e)=>setOperator(e.target.value),
6298
6346
  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"
6299
6347
  }),
6300
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6348
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6301
6349
  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",
6302
6350
  children: [
6303
6351
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -6347,19 +6395,19 @@ var $374c4669b044ddf8$export$2e2bcd8739ae039 = $374c4669b044ddf8$var$QueryRow;
6347
6395
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
6348
6396
  let cond = condition;
6349
6397
  delete cond.key;
6350
- if (cond.operator === "=" || cond.operator === "<>") {
6398
+ if (cond.operator === '=' || cond.operator === '<>') {
6351
6399
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
6352
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
6400
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
6353
6401
  }
6354
- if (cond.operator.toLowerCase() === "like") {
6402
+ if (cond.operator.toLowerCase() === 'like') {
6355
6403
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
6356
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
6404
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
6357
6405
  cond.value = `%${cleanedValue}%`;
6358
6406
  }
6359
- if (cond.operator.toLowerCase() === "in") {
6360
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
6407
+ if (cond.operator.toLowerCase() === 'in') {
6408
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
6361
6409
  }
6362
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
6410
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
6363
6411
  return cond;
6364
6412
  }
6365
6413
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -6379,7 +6427,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
6379
6427
  ...queryConditions,
6380
6428
  {
6381
6429
  property: fields[0],
6382
- value: "",
6430
+ value: '',
6383
6431
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
6384
6432
  key: Date.now()
6385
6433
  }
@@ -6419,7 +6467,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
6419
6467
  encodeValuesOnly: true,
6420
6468
  addQueryPrefix: true
6421
6469
  });
6422
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
6470
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
6423
6471
  };
6424
6472
  const updateCondition = (index, key, value)=>{
6425
6473
  let newConditions = [
@@ -6492,7 +6540,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
6492
6540
 
6493
6541
 
6494
6542
  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 })=>{
6495
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
6543
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
6496
6544
  let apiDocs = (0, $hgUW1$useRef)();
6497
6545
  let distribution = {};
6498
6546
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -6504,7 +6552,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6504
6552
  } : {
6505
6553
  conditions: []
6506
6554
  };
6507
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6555
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6508
6556
  ...options,
6509
6557
  limit: 25
6510
6558
  });
@@ -6518,7 +6566,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6518
6566
  }, {
6519
6567
  encode: true
6520
6568
  })}&format=csv`;
6521
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
6569
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
6522
6570
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
6523
6571
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
6524
6572
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -6527,7 +6575,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6527
6575
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
6528
6576
  children: [
6529
6577
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6530
- className: "ds-l-md-col--9",
6578
+ className: 'ds-l-md-col--9',
6531
6579
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
6532
6580
  to: `/dataset/${id}`,
6533
6581
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -6538,14 +6586,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6538
6586
  })
6539
6587
  }),
6540
6588
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6541
- className: "ds-l-md-col--9",
6589
+ className: 'ds-l-md-col--9',
6542
6590
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6543
6591
  className: "ds-text-heading--3xl",
6544
6592
  children: customTitle ? customTitle : pageTitle
6545
6593
  })
6546
6594
  }),
6547
6595
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6548
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6596
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6549
6597
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6550
6598
  className: "ds-u-margin--0",
6551
6599
  children: [
@@ -6557,7 +6605,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6557
6605
  })
6558
6606
  }),
6559
6607
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6560
- className: "ds-l-md-col--9",
6608
+ className: 'ds-l-md-col--9',
6561
6609
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6562
6610
  distribution: distribution,
6563
6611
  dataset: dataset,
@@ -6567,13 +6615,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6567
6615
  })
6568
6616
  }),
6569
6617
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6570
- className: "ds-l-md-col--12",
6618
+ className: 'ds-l-md-col--12',
6571
6619
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
6572
6620
  resource: resource,
6573
6621
  id: distribution.identifier,
6574
6622
  customColumns: customColumns,
6575
6623
  setOffset: resource.setOffset
6576
- }) : ""
6624
+ }) : ''
6577
6625
  }),
6578
6626
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6579
6627
  value: {
@@ -6584,7 +6632,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6584
6632
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
6585
6633
  },
6586
6634
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6587
- className: "ds-l-md-col--12",
6635
+ className: 'ds-l-md-col--12',
6588
6636
  children: [
6589
6637
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
6590
6638
  includeDensity: true,
@@ -6606,14 +6654,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6606
6654
  ]
6607
6655
  })
6608
6656
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6609
- className: "ds-l-md-col--12",
6657
+ className: 'ds-l-md-col--12',
6610
6658
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
6611
6659
  role: "status",
6612
6660
  "aria-valuetext": "Resource loading"
6613
6661
  })
6614
6662
  }),
6615
6663
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6616
- className: "ds-l-md-col--12",
6664
+ className: 'ds-l-md-col--12',
6617
6665
  ref: apiDocs,
6618
6666
  children: [
6619
6667
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -6622,7 +6670,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6622
6670
  }),
6623
6671
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
6624
6672
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
6625
- docExpansion: "list",
6673
+ docExpansion: 'list',
6626
6674
  defaultModelsExpandDepth: -1
6627
6675
  })
6628
6676
  ]
@@ -6641,7 +6689,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
6641
6689
  const [ready, setReady] = (0, $hgUW1$useState)(false);
6642
6690
  const [error, setError] = (0, $hgUW1$useState)(false);
6643
6691
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6644
- const distIndex = dist_id === "data" ? 0 : dist_id;
6692
+ const distIndex = dist_id === 'data' ? 0 : dist_id;
6645
6693
  (0, $hgUW1$useEffect)(()=>{
6646
6694
  if (dataset.error) setError(true);
6647
6695
  if (dataset.distribution && dataset.distribution.length) {
@@ -6859,5 +6907,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
6859
6907
 
6860
6908
 
6861
6909
 
6862
- export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $56250439caa6b0ad$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
6910
+ export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $8b67b7ee3fcfb629$export$2e2bcd8739ae039 as StoredQueryPage, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
6863
6911
  //# sourceMappingURL=main.js.map