@civicactions/cmsds-open-data-components 4.0.11 → 4.1.0-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
@@ -6359,7 +6359,8 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6359
6359
  dataDictionaryLoading: isPending
6360
6360
  };
6361
6361
  };
6362
- const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false })=>{
6362
+ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false, tabHrefPrepend: tabHrefPrepend = "" })=>{
6363
+ const tabHref = `/dataset/${id}`;
6363
6364
  const options = location.search ? {
6364
6365
  ...(0, $hgUW1$qs).parse(location.search, {
6365
6366
  ignoreQueryPrefix: true
@@ -6444,7 +6445,6 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6444
6445
  window.location.hash
6445
6446
  ]);
6446
6447
  const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6447
- const formatType = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6448
6448
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6449
6449
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6450
6450
  content: notFoundContent,
@@ -6507,6 +6507,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6507
6507
  "Data Table"
6508
6508
  ]
6509
6509
  }),
6510
+ tabHref: `${tabHrefPrepend}${tabHref}#data-table`,
6510
6511
  className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6511
6512
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6512
6513
  value: {
@@ -6534,6 +6535,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6534
6535
  "Overview"
6535
6536
  ]
6536
6537
  }),
6538
+ tabHref: `${tabHrefPrepend}${tabHref}#overview`,
6537
6539
  className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6538
6540
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6539
6541
  resource: resource,
@@ -6554,6 +6556,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6554
6556
  "Data Dictionary"
6555
6557
  ]
6556
6558
  }),
6559
+ tabHref: `${tabHrefPrepend}${tabHref}#data-dictionary`,
6557
6560
  className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6558
6561
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6559
6562
  datasetSitewideDictionary: datasetSitewideDictionary,
@@ -6575,6 +6578,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6575
6578
  "API"
6576
6579
  ]
6577
6580
  }),
6581
+ tabHref: `${tabHrefPrepend}${tabHref}#api`,
6578
6582
  className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6579
6583
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6580
6584
  id: id,