@civicactions/cmsds-open-data-components 3.8.3 → 3.8.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./main.css";
2
2
  import {jsx as $hgUW1$jsx, jsxs as $hgUW1$jsxs, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
3
- import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Tooltip as $hgUW1$Tooltip, Dropdown as $hgUW1$Dropdown, Choice as $hgUW1$Choice, Pagination as $hgUW1$Pagination, Badge as $hgUW1$Badge, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, TooltipIcon as $hgUW1$TooltipIcon} from "@cmsgov/design-system";
3
+ import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, Dropdown as $hgUW1$Dropdown, Choice as $hgUW1$Choice, Pagination as $hgUW1$Pagination, Badge as $hgUW1$Badge, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel} from "@cmsgov/design-system";
4
4
  import $hgUW1$react, {createContext as $hgUW1$createContext, useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect, useContext as $hgUW1$useContext, useMemo as $hgUW1$useMemo, useCallback as $hgUW1$useCallback} from "react";
5
5
  import {NavLink as $hgUW1$NavLink, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate} from "react-router-dom";
6
6
  import $hgUW1$qs from "qs";
@@ -1101,6 +1101,99 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
1101
1101
 
1102
1102
 
1103
1103
 
1104
+ const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1105
+ year: "numeric",
1106
+ month: "long",
1107
+ day: "numeric",
1108
+ timeZone: "UTC"
1109
+ } })=>{
1110
+ const rawDate = new Date(date);
1111
+ let modifiedDate = "";
1112
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1113
+ return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1114
+ children: modifiedDate
1115
+ });
1116
+ };
1117
+ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$TransformedDate;
1118
+
1119
+
1120
+
1121
+ const $c068004d499082cc$var$DatasetListItem = (props)=>{
1122
+ const desktop = (0, $hgUW1$useMediaQuery)({
1123
+ minWidth: 1024
1124
+ });
1125
+ const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1126
+ let linkContainerClasses = "ds-u-margin-bottom--2";
1127
+ if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1128
+ else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1129
+ let linkClasses = "ds-u-display--block ds-u-text-align--left";
1130
+ if (desktop) {
1131
+ linkContainerClasses = "ds-u-padding-x--0";
1132
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1133
+ }
1134
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1135
+ className: "dc-c-list-item ds-u-padding-top--4",
1136
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1137
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1138
+ children: [
1139
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1140
+ className: "ds-l-row ds-u-align-items--start",
1141
+ children: [
1142
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1143
+ id: `dataset-${identifier}-updated-date`,
1144
+ className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? "ds-u-padding-top--3" : "ds-u-padding-top--0"}`,
1145
+ children: [
1146
+ "Updated ",
1147
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
1148
+ date: modified
1149
+ })
1150
+ ]
1151
+ }),
1152
+ /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
1153
+ className: "ds-l-col--12 ds-text-heading--2xl",
1154
+ children: title
1155
+ })
1156
+ ]
1157
+ }),
1158
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1159
+ className: "ds-l-row",
1160
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1161
+ className: "ds-l-col--12 ds-l-md-col--12 ds-u-margin-top--2",
1162
+ children: [
1163
+ "The ",
1164
+ title,
1165
+ " dataset was updated."
1166
+ ]
1167
+ })
1168
+ }),
1169
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1170
+ className: "ds-l-row",
1171
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1172
+ className: "ds-l-col--12",
1173
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
1174
+ "aria-describedby": `dataset-${identifier}-updated-date`,
1175
+ to: `/dataset/${identifier}`,
1176
+ children: [
1177
+ "View the Dataset for ",
1178
+ title,
1179
+ " "
1180
+ ]
1181
+ })
1182
+ })
1183
+ })
1184
+ ]
1185
+ })
1186
+ });
1187
+ };
1188
+ var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetListItem;
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1104
1197
 
1105
1198
 
1106
1199
 
@@ -1339,23 +1432,6 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1339
1432
 
1340
1433
 
1341
1434
 
1342
- const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1343
- year: "numeric",
1344
- month: "long",
1345
- day: "numeric",
1346
- timeZone: "UTC"
1347
- } })=>{
1348
- const rawDate = new Date(date);
1349
- let modifiedDate = "";
1350
- if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1351
- return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1352
- children: modifiedDate
1353
- });
1354
- };
1355
- var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$TransformedDate;
1356
-
1357
-
1358
-
1359
1435
 
1360
1436
 
1361
1437
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
@@ -1374,11 +1450,126 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
1374
1450
 
1375
1451
 
1376
1452
 
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1460
+ const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
1461
+ const dateText = {
1462
+ modified: "Last Modified",
1463
+ released: "Released",
1464
+ refresh: "Planned Update"
1465
+ };
1466
+ const tooltipContent = {
1467
+ modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1468
+ children: [
1469
+ /*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
1470
+ children: "Last Modified: "
1471
+ }),
1472
+ " The date the ",
1473
+ /*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
1474
+ "dataset was last updated."
1475
+ ]
1476
+ }),
1477
+ released: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1478
+ children: [
1479
+ /*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
1480
+ children: "Released: "
1481
+ }),
1482
+ " The date the most ",
1483
+ /*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
1484
+ "recent dataset was made available",
1485
+ /*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
1486
+ "to the public."
1487
+ ]
1488
+ }),
1489
+ refresh: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1490
+ children: [
1491
+ /*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
1492
+ children: "Planned Update:"
1493
+ }),
1494
+ " The date the ",
1495
+ /*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
1496
+ "dataset is scheduled to be updated."
1497
+ ]
1498
+ })
1499
+ };
1500
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1501
+ className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
1502
+ children: [
1503
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1504
+ className: "dataset-data-item-label",
1505
+ children: [
1506
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1507
+ children: dateText[type]
1508
+ }),
1509
+ ": ",
1510
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
1511
+ date: date
1512
+ })
1513
+ ]
1514
+ }),
1515
+ displayTooltips === true && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Tooltip), {
1516
+ "aria-label": dateText[type],
1517
+ className: "ds-c-tooltip__trigger-icon ds-u-display--inline ds-u-padding-left--0 ds-uw-padding-right--0",
1518
+ title: tooltipContent[type],
1519
+ placement: "top",
1520
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
1521
+ })
1522
+ ]
1523
+ });
1524
+ };
1525
+ var $17711e94d2ce0ee4$export$2e2bcd8739ae039 = $17711e94d2ce0ee4$var$DatasetDateItem;
1526
+
1527
+
1528
+ const $20de4fedf33d4f9a$var$DatasetDate = (props)=>{
1529
+ const { date: date, updatedBoldLabel: updatedBoldLabel = false, releasedBoldLabel: releasedBoldLabel = false, refreshBoldLabel: refreshBoldLabel = false, displayTooltips: displayTooltips = true } = props;
1530
+ const { modified: modified, released: released, refresh: refresh } = date;
1531
+ // Create an array of date items to render
1532
+ const dateItems = [];
1533
+ if (modified) dateItems.push(/*#__PURE__*/ (0, $hgUW1$jsx)((0, $17711e94d2ce0ee4$export$2e2bcd8739ae039), {
1534
+ displayTooltips: displayTooltips,
1535
+ type: "modified",
1536
+ date: modified,
1537
+ boldLabel: updatedBoldLabel
1538
+ }, "modified"));
1539
+ if (released) dateItems.push(/*#__PURE__*/ (0, $hgUW1$jsx)((0, $17711e94d2ce0ee4$export$2e2bcd8739ae039), {
1540
+ displayTooltips: displayTooltips,
1541
+ type: "released",
1542
+ date: released,
1543
+ boldLabel: releasedBoldLabel
1544
+ }, "released"));
1545
+ if (refresh) dateItems.push(/*#__PURE__*/ (0, $hgUW1$jsx)((0, $17711e94d2ce0ee4$export$2e2bcd8739ae039), {
1546
+ displayTooltips: displayTooltips,
1547
+ type: "refresh",
1548
+ date: refresh,
1549
+ boldLabel: refreshBoldLabel
1550
+ }, "refresh"));
1551
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1552
+ className: "dataset-date",
1553
+ children: dateItems.map((item, index)=>/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$react).Fragment, {
1554
+ children: [
1555
+ item,
1556
+ index < dateItems.length - 1 && /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1557
+ className: "bullet-point",
1558
+ children: "\u2022"
1559
+ })
1560
+ ]
1561
+ }, index))
1562
+ });
1563
+ };
1564
+ var $20de4fedf33d4f9a$export$2e2bcd8739ae039 = $20de4fedf33d4f9a$var$DatasetDate;
1565
+
1566
+
1377
1567
  const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1378
1568
  const desktop = (0, $hgUW1$useMediaQuery)({
1379
1569
  minWidth: 1024
1380
1570
  });
1381
- const { title: title, modified: modified, description: description, identifier: identifier, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1571
+ const { title: title, modified: modified, description: description, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, identifier: identifier, refresh: refresh, released: released, showDateDetails: showDateDetails = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs } = props;
1572
+ const location = (0, $hgUW1$useLocation)();
1382
1573
  let linkContainerClasses = "ds-u-margin-bottom--2";
1383
1574
  if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1384
1575
  else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
@@ -1387,19 +1578,53 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1387
1578
  linkContainerClasses = "ds-u-padding-x--0";
1388
1579
  linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1389
1580
  }
1581
+ let themes;
1582
+ if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
1583
+ className: "theme-list item-theme",
1584
+ children: theme.map((topic, index)=>{
1585
+ const title = topic || "Unknown Topic";
1586
+ const prefix = "topics";
1587
+ // Use the provided slug or fallback to a simple slug generation
1588
+ const slug = topicSlugs?.[title];
1589
+ const link = `/${prefix}/${slug}`;
1590
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1591
+ className: "ds-u-fill--primary ds-u-radius--pill",
1592
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1593
+ to: link,
1594
+ state: {
1595
+ fromUrl: location.pathname,
1596
+ fromTitle: false,
1597
+ fromSearchList: location.pathname.includes("search")
1598
+ },
1599
+ children: title
1600
+ })
1601
+ }, `dist-${title}-${index}`);
1602
+ })
1603
+ });
1604
+ const date = {
1605
+ modified: modified,
1606
+ released: released,
1607
+ refresh: refresh
1608
+ };
1609
+ const url = `/dataset/${identifier}`;
1390
1610
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1391
1611
  className: "dc-c-search-list-item ds-u-padding-top--3",
1392
1612
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1393
1613
  className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1394
1614
  children: [
1615
+ themes,
1395
1616
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1396
1617
  className: "ds-l-row ds-u-align-items--start",
1397
1618
  children: [
1398
- /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1619
+ !showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1399
1620
  id: `dataset-${identifier}-updated-date`,
1400
1621
  className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1401
1622
  children: [
1402
- "Updated ",
1623
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1624
+ className: "ds-u-font-weight--bold",
1625
+ children: "Updated:"
1626
+ }),
1627
+ " ",
1403
1628
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
1404
1629
  date: modified
1405
1630
  })
@@ -1409,7 +1634,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1409
1634
  className: "ds-l-col--12 ds-text-heading--2xl",
1410
1635
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1411
1636
  "aria-describedby": `dataset-${identifier}-updated-date`,
1412
- to: `/dataset/${identifier}`,
1637
+ to: `${url}`,
1413
1638
  children: title
1414
1639
  })
1415
1640
  })
@@ -1422,8 +1647,15 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1422
1647
  children: (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description)
1423
1648
  })
1424
1649
  }),
1650
+ showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1651
+ className: "dataset-dates",
1652
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $20de4fedf33d4f9a$export$2e2bcd8739ae039), {
1653
+ date: date,
1654
+ displayTooltips: false
1655
+ })
1656
+ }),
1425
1657
  downloadUrl ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1426
- className: `ds-u-margin-top--3 ds-u-padding-left--0`,
1658
+ className: `ds-u-margin-top--3 ds-u-padding-left--0 download-button`,
1427
1659
  children: largeFile ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1428
1660
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b61856b23f5f58a2$export$2e2bcd8739ae039), {
1429
1661
  downloadUrl: downloadUrl
@@ -1448,7 +1680,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1448
1680
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1449
1681
  className: linkClasses,
1450
1682
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
1451
- to: `/dataset/${identifier}#data-table`,
1683
+ to: `${url}#data-table`,
1452
1684
  children: [
1453
1685
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
1454
1686
  id: "data-table"
@@ -1463,7 +1695,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1463
1695
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1464
1696
  className: linkClasses,
1465
1697
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
1466
- to: `/dataset/${identifier}#overview`,
1698
+ to: `${url}#overview`,
1467
1699
  children: [
1468
1700
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
1469
1701
  id: "overview"
@@ -1478,7 +1710,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1478
1710
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1479
1711
  className: linkClasses,
1480
1712
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
1481
- to: `/dataset/${identifier}#data-dictionary`,
1713
+ to: `${url}#data-dictionary`,
1482
1714
  children: [
1483
1715
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
1484
1716
  id: "data-dictionary"
@@ -1493,7 +1725,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1493
1725
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1494
1726
  className: linkClasses,
1495
1727
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
1496
- to: `/dataset/${identifier}#api`,
1728
+ to: `${url}#api`,
1497
1729
  children: [
1498
1730
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
1499
1731
  id: "api"
@@ -1518,80 +1750,6 @@ var $52c6454cae137465$export$2e2bcd8739ae039 = $52c6454cae137465$var$DatasetSear
1518
1750
 
1519
1751
 
1520
1752
 
1521
- const $c068004d499082cc$var$DatasetListItem = (props)=>{
1522
- const desktop = (0, $hgUW1$useMediaQuery)({
1523
- minWidth: 1024
1524
- });
1525
- const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1526
- let linkContainerClasses = "ds-u-margin-bottom--2";
1527
- if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1528
- else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1529
- let linkClasses = "ds-u-display--block ds-u-text-align--left";
1530
- if (desktop) {
1531
- linkContainerClasses = "ds-u-padding-x--0";
1532
- linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1533
- }
1534
- return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1535
- className: "dc-c-list-item ds-u-padding-top--4",
1536
- children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1537
- className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1538
- children: [
1539
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1540
- className: "ds-l-row ds-u-align-items--start",
1541
- children: [
1542
- /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1543
- id: `dataset-${identifier}-updated-date`,
1544
- className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? "ds-u-padding-top--3" : "ds-u-padding-top--0"}`,
1545
- children: [
1546
- "Updated ",
1547
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
1548
- date: modified
1549
- })
1550
- ]
1551
- }),
1552
- /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
1553
- className: "ds-l-col--12 ds-text-heading--2xl",
1554
- children: title
1555
- })
1556
- ]
1557
- }),
1558
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1559
- className: "ds-l-row",
1560
- children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1561
- className: "ds-l-col--12 ds-l-md-col--12 ds-u-margin-top--2",
1562
- children: [
1563
- "The ",
1564
- title,
1565
- " dataset was updated."
1566
- ]
1567
- })
1568
- }),
1569
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1570
- className: "ds-l-row",
1571
- children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1572
- className: "ds-l-col--12",
1573
- children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
1574
- "aria-describedby": `dataset-${identifier}-updated-date`,
1575
- to: `/dataset/${identifier}`,
1576
- children: [
1577
- "View the Dataset for ",
1578
- title,
1579
- " "
1580
- ]
1581
- })
1582
- })
1583
- })
1584
- ]
1585
- })
1586
- });
1587
- };
1588
- var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetListItem;
1589
-
1590
-
1591
-
1592
-
1593
-
1594
-
1595
1753
 
1596
1754
 
1597
1755
  const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint })=>{
@@ -4229,6 +4387,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4229
4387
  if (item.theme.includes(theme)) showLargeFile = true;
4230
4388
  });
4231
4389
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $52c6454cae137465$export$2e2bcd8739ae039), {
4390
+ location: location,
4232
4391
  title: item.title,
4233
4392
  modified: item.modified,
4234
4393
  description: item.description,
@@ -7501,5 +7660,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
7501
7660
 
7502
7661
 
7503
7662
 
7504
- 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, $c068004d499082cc$export$2e2bcd8739ae039 as DatasetListItem, $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, $550bcc185f420ff5$export$2e2bcd8739ae039 as DatasetList, $9384a736d4d6f425$export$2e2bcd8739ae039 as DatasetListSubmenu, $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};
7663
+ export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $c068004d499082cc$export$2e2bcd8739ae039 as DatasetListItem, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $17711e94d2ce0ee4$export$2e2bcd8739ae039 as DatasetDateItem, $20de4fedf33d4f9a$export$2e2bcd8739ae039 as DatasetDate, $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, $550bcc185f420ff5$export$2e2bcd8739ae039 as DatasetList, $9384a736d4d6f425$export$2e2bcd8739ae039 as DatasetListSubmenu, $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};
7505
7664
  //# sourceMappingURL=main.js.map