@civicactions/cmsds-open-data-components 2.1.2 → 2.1.4

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,7 +1,7 @@
1
1
  import "./main.css";
2
2
  import {jsxs as $hgUW1$jsxs, jsx as $hgUW1$jsx, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
3
3
  import $hgUW1$react, {useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect} from "react";
4
- import {Button as $hgUW1$Button, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Dropdown as $hgUW1$Dropdown, Badge as $hgUW1$Badge, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Choice as $hgUW1$Choice, Tooltip as $hgUW1$Tooltip, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Dialog as $hgUW1$Dialog, HelpDrawer as $hgUW1$HelpDrawer} from "@cmsgov/design-system";
4
+ import {Button as $hgUW1$Button, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Choice as $hgUW1$Choice, Badge as $hgUW1$Badge, Tooltip as $hgUW1$Tooltip, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Dialog as $hgUW1$Dialog, HelpDrawer as $hgUW1$HelpDrawer} from "@cmsgov/design-system";
5
5
  import $hgUW1$proptypes from "prop-types";
6
6
  import {NavLink as $hgUW1$NavLink, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate} from "react-router-dom";
7
7
  import $hgUW1$qs from "qs";
@@ -11,8 +11,8 @@ import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryCli
11
11
  import $hgUW1$axios from "axios";
12
12
  import $hgUW1$dompurify from "dompurify";
13
13
  import $hgUW1$reacttexttruncate from "react-text-truncate";
14
- import {createColumnHelper as $hgUW1$createColumnHelper, useReactTable as $hgUW1$useReactTable, getCoreRowModel as $hgUW1$getCoreRowModel, getSortedRowModel as $hgUW1$getSortedRowModel, flexRender as $hgUW1$flexRender} from "@tanstack/react-table";
15
14
  import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
15
+ import {createColumnHelper as $hgUW1$createColumnHelper, useReactTable as $hgUW1$useReactTable, getCoreRowModel as $hgUW1$getCoreRowModel, getSortedRowModel as $hgUW1$getSortedRowModel, flexRender as $hgUW1$flexRender} from "@tanstack/react-table";
16
16
  import {usePopper as $hgUW1$usePopper} from "react-popper";
17
17
  import $hgUW1$reactdatepicker from "react-datepicker";
18
18
  import "react-datepicker/dist/react-datepicker.css";
@@ -167,6 +167,7 @@ var $f57121650539d8c5$export$2e2bcd8739ae039 = $f57121650539d8c5$var$NavBar;
167
167
 
168
168
 
169
169
 
170
+
170
171
  const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth , additionalParams: additionalParams , rootUrl: rootUrl })=>{
171
172
  const hasACA = additionalParams && additionalParams.ACA ? true : false;
172
173
  let params = {
@@ -270,6 +271,152 @@ var $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 = $61ff88fb3f6ee2c8$var$withQueryPr
270
271
 
271
272
 
272
273
 
274
+ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
275
+ switch(props.id){
276
+ case "overview":
277
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
278
+ width: "16px",
279
+ height: "16px",
280
+ viewBox: "0 0 16 16",
281
+ version: "1.1",
282
+ xmlns: "http://www.w3.org/2000/svg",
283
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
284
+ children: [
285
+ /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
286
+ children: "Overview Icon"
287
+ }),
288
+ /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
289
+ stroke: "none",
290
+ strokeWidth: "1",
291
+ fillRule: "evenodd",
292
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
293
+ transform: "translate(0.000000, -4.000000)",
294
+ fillRule: "nonzero",
295
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
296
+ transform: "translate(0.000000, -1.000000)",
297
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("g", {
298
+ transform: "translate(0.000000, 5.000000)",
299
+ children: [
300
+ /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
301
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
302
+ d: "M9.55610973,15.6404494 C9.31670823,15.8801498 9.02743142,16 8.6882793,16 C8.34912718,16 8.05985037,15.8801498 7.82044888,15.6404494 L0.33915212,8.14981273 C0.206151288,8.01664586 0.116375727,7.87682064 0.0698254364,7.73033708 C0.0232751455,7.58385352 0,7.43071161 0,7.27091136 L0,1.19850187 C0,0.852267998 0.113050707,0.565959218 0.33915212,0.339575531 C0.565253533,0.113191844 0.85120532,0 1.19700748,0 L7.26184539,0 C7.42144638,0 7.58104738,0.0233042031 7.74064838,0.0699126092 C7.90024938,0.116521015 8.04655029,0.206408656 8.17955112,0.339575531 L15.6209476,7.79026217 C15.8736492,8.04327923 16,8.33957553 16,8.67915106 C16,9.01872659 15.8736492,9.31502289 15.6209476,9.56803995 L9.55610973,15.6404494 Z M8.75953079,15 L15,8.75953079 L7.24046921,1 L1,1 L1,7.24046921 L8.75953079,15 Z M3,4 C3.26923077,4 3.50320513,3.90064103 3.70192308,3.70192308 C3.90064103,3.50320513 4,3.26923077 4,3 C4,2.73076923 3.90064103,2.49679487 3.70192308,2.29807692 C3.50320513,2.09935897 3.26923077,2 3,2 C2.73076923,2 2.49679487,2.09935897 2.29807692,2.29807692 C2.09935897,2.49679487 2,2.73076923 2,3 C2,3.26923077 2.09935897,3.50320513 2.29807692,3.70192308 C2.49679487,3.90064103 2.73076923,4 3,4 L3,4 Z"
303
+ })
304
+ }),
305
+ /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
306
+ transform: "translate(7.890470, 8.890470) rotate(45.000000) translate(-7.890470, -8.890470) translate(3.543164, 6.321607)",
307
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
308
+ d: "M6.16557222,4.98656515 C6.09634145,5.05213515 6.01557222,5.08309876 5.92326452,5.07945598 C5.83095683,5.07581321 5.7501876,5.04120682 5.68095683,4.97563682 C5.61172606,4.91006682 5.57711068,4.8317471 5.57711068,4.74067766 C5.57711068,4.64960821 5.61172606,4.57128849 5.68095683,4.50571849 L7.72326452,2.57140353 L5.69249529,0.648016895 C5.62326452,0.582446896 5.59057222,0.504127176 5.59441837,0.413057733 C5.59826452,0.32198829 5.63480299,0.243668569 5.70403375,0.17809857 C5.77326452,0.112528571 5.85595683,0.0797435719 5.95211068,0.0797435719 C6.04826452,0.0797435719 6.13095683,0.112528571 6.2001876,0.17809857 L8.47326452,2.34190853 C8.54249529,2.40747853 8.57711068,2.48397686 8.57711068,2.57140353 C8.57711068,2.65883019 8.54249529,2.73532853 8.47326452,2.80089852 L6.16557222,4.98656515 Z M2.29670341,4.98413866 L0.0208413435,2.82877761 C-0.0481241737,2.7631321 -0.0826069324,2.68654566 -0.0826069324,2.59901831 C-0.0826069324,2.51149096 -0.0481241737,2.43490453 0.0208413435,2.36925901 L2.31969192,0.181075204 C2.38865744,0.115429689 2.47103291,0.0826069324 2.56681835,0.0826069324 C2.6626038,0.0826069324 2.74497927,0.115429689 2.81394479,0.181075204 C2.88291031,0.246720718 2.91739307,0.325130638 2.91739307,0.416304963 C2.91739307,0.507479288 2.88291031,0.585889208 2.81394479,0.651534722 L0.76796778,2.59901831 L2.79095629,4.52462006 C2.8599218,4.59026558 2.89440456,4.66685201 2.89440456,4.75437936 C2.89440456,4.84190671 2.8599218,4.91849315 2.79095629,4.98413866 C2.72199077,5.04978418 2.63961529,5.08260693 2.54382985,5.08260693 C2.44804441,5.08260693 2.36566893,5.04978418 2.29670341,4.98413866 L2.29670341,4.98413866 Z"
309
+ })
310
+ })
311
+ ]
312
+ })
313
+ })
314
+ })
315
+ })
316
+ ]
317
+ });
318
+ case "data-table":
319
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
320
+ width: "16px",
321
+ height: "12px",
322
+ viewBox: "0 0 16 12",
323
+ version: "1.1",
324
+ xmlns: "http://www.w3.org/2000/svg",
325
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
326
+ children: [
327
+ /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
328
+ children: "Data Table Icon"
329
+ }),
330
+ /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
331
+ stroke: "none",
332
+ strokeWidth: "1",
333
+ fillRule: "evenodd",
334
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
335
+ transform: "translate(-132.000000, -6.000000)",
336
+ fillRule: "nonzero",
337
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
338
+ transform: "translate(132.000000, -1.000000)",
339
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
340
+ transform: "translate(8.000000, 13.000000) scale(1, -1) translate(-8.000000, -13.000000) translate(0.000000, 7.000000)",
341
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
342
+ d: "M0,12 L0,0 L16,0 L16,12 L0,12 Z M1,10 L5,10 L5,1 L1,1 L1,10 Z M6,10 L10,10 L10,1 L6,1 L6,10 Z M11,10 L15,10 L15,1 L11,1 L11,10 Z"
343
+ })
344
+ })
345
+ })
346
+ })
347
+ })
348
+ ]
349
+ });
350
+ case "api":
351
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
352
+ width: "16px",
353
+ height: "13px",
354
+ viewBox: "0 0 16 13",
355
+ version: "1.1",
356
+ xmlns: "http://www.w3.org/2000/svg",
357
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
358
+ children: [
359
+ /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
360
+ children: "API Icon"
361
+ }),
362
+ /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
363
+ stroke: "none",
364
+ strokeWidth: "1",
365
+ fillRule: "evenodd",
366
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
367
+ transform: "translate(-279.000000, -6.000000)",
368
+ fillRule: "nonzero",
369
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
370
+ transform: "translate(279.000000, -1.000000)",
371
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
372
+ transform: "translate(0.000000, 7.000000)",
373
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
374
+ d: "M10.5806452,13 C10.4129032,13 10.2741935,12.9424479 10.1645161,12.8273438 C10.0548387,12.7122396 10,12.5666667 10,12.390625 C10,12.2145833 10.0548387,12.0690104 10.1645161,11.9539062 C10.2741935,11.8388021 10.4129032,11.78125 10.5806452,11.78125 L12.3225806,11.78125 C12.5935484,11.78125 12.8225806,11.6830729 13.0096774,11.4867188 C13.1967742,11.2903646 13.2903226,11.05 13.2903226,10.765625 L13.2903226,8.734375 C13.2903226,8.23333333 13.4354839,7.78645833 13.7258065,7.39375 C14.016129,7.00104167 14.3870968,6.73020833 14.8387097,6.58125 L14.8387097,6.41875 C14.3870968,6.28333333 14.016129,6.01588542 13.7258065,5.61640625 C13.4354839,5.21692708 13.2903226,4.76666667 13.2903226,4.265625 L13.2903226,2.234375 C13.2903226,1.95 13.1967742,1.70963542 13.0096774,1.51328125 C12.8225806,1.31692708 12.5935484,1.21875 12.3225806,1.21875 L10.5806452,1.21875 C10.4129032,1.21875 10.2741935,1.16119792 10.1645161,1.04609375 C10.0548387,0.930989583 10,0.785416667 10,0.609375 C10,0.433333333 10.0548387,0.287760417 10.1645161,0.17265625 C10.2741935,0.0575520833 10.4129032,8.8817842e-16 10.5806452,8.8817842e-16 L12.3225806,8.8817842e-16 C12.916129,8.8817842e-16 13.4193548,0.216666667 13.8322581,0.65 C14.2451613,1.08333333 14.4516129,1.61145833 14.4516129,2.234375 L14.4516129,4.265625 C14.4516129,4.55 14.5451613,4.79036458 14.7322581,4.98671875 C14.9193548,5.18307292 15.1483871,5.28125 15.4193548,5.28125 C15.5870968,5.28125 15.7258065,5.33880208 15.8354839,5.45390625 C15.9451613,5.56901042 16,5.71458333 16,5.890625 L16,7.109375 C16,7.271875 15.9451613,7.4140625 15.8354839,7.5359375 C15.7258065,7.6578125 15.5870968,7.71875 15.4193548,7.71875 C15.1483871,7.71875 14.9193548,7.81692708 14.7322581,8.01328125 C14.5451613,8.20963542 14.4516129,8.45 14.4516129,8.734375 L14.4516129,10.765625 C14.4516129,11.3885417 14.2451613,11.9166667 13.8322581,12.35 C13.4193548,12.7833333 12.916129,13 12.3225806,13 L10.5806452,13 Z M3.67741935,13 C3.08387097,13 2.58064516,12.7833333 2.16774194,12.35 C1.75483871,11.9166667 1.5483871,11.3885417 1.5483871,10.765625 L1.5483871,8.734375 C1.5483871,8.45 1.45483871,8.20963542 1.26774194,8.01328125 C1.08064516,7.81692708 0.851612903,7.71875 0.580645161,7.71875 C0.425806452,7.71875 0.290322581,7.6578125 0.174193548,7.5359375 C0.0580645161,7.4140625 3.52606833e-13,7.271875 3.52606833e-13,7.109375 L3.52606833e-13,5.890625 C3.52606833e-13,5.71458333 0.0580645161,5.56901042 0.174193548,5.45390625 C0.290322581,5.33880208 0.425806452,5.28125 0.580645161,5.28125 C0.851612903,5.28125 1.08064516,5.18307292 1.26774194,4.98671875 C1.45483871,4.79036458 1.5483871,4.55 1.5483871,4.265625 L1.5483871,2.234375 C1.5483871,1.61145833 1.75483871,1.08333333 2.16774194,0.65 C2.58064516,0.216666667 3.08387097,8.8817842e-16 3.67741935,8.8817842e-16 L5.41935484,8.8817842e-16 C5.58709677,8.8817842e-16 5.72580645,0.0575520833 5.83548387,0.17265625 C5.94516129,0.287760417 6,0.433333333 6,0.609375 C6,0.785416667 5.94516129,0.930989583 5.83548387,1.04609375 C5.72580645,1.16119792 5.58709677,1.21875 5.41935484,1.21875 L3.67741935,1.21875 C3.40645161,1.21875 3.17741935,1.31692708 2.99032258,1.51328125 C2.80322581,1.70963542 2.70967742,1.95 2.70967742,2.234375 L2.70967742,4.265625 C2.70967742,4.76666667 2.56451613,5.21692708 2.27419355,5.61640625 C1.98387097,6.01588542 1.61290323,6.28333333 1.16129032,6.41875 L1.16129032,6.58125 C1.61290323,6.73020833 1.98387097,7.00104167 2.27419355,7.39375 C2.56451613,7.78645833 2.70967742,8.23333333 2.70967742,8.734375 L2.70967742,10.765625 C2.70967742,11.05 2.80322581,11.2903646 2.99032258,11.4867188 C3.17741935,11.6830729 3.40645161,11.78125 3.67741935,11.78125 L5.41935484,11.78125 C5.58709677,11.78125 5.72580645,11.8388021 5.83548387,11.9539062 C5.94516129,12.0690104 6,12.2145833 6,12.390625 C6,12.5666667 5.94516129,12.7122396 5.83548387,12.8273438 C5.72580645,12.9424479 5.58709677,13 5.41935484,13 L3.67741935,13 Z"
375
+ })
376
+ })
377
+ })
378
+ })
379
+ })
380
+ ]
381
+ });
382
+ case "download":
383
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
384
+ width: "16px",
385
+ height: "16px",
386
+ viewBox: "0 0 16 16",
387
+ version: "1.1",
388
+ xmlns: "http://www.w3.org/2000/svg",
389
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
390
+ children: [
391
+ /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
392
+ children: "Download Icon"
393
+ }),
394
+ /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
395
+ stroke: "none",
396
+ strokeWidth: "1",
397
+ fillRule: "evenodd",
398
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
399
+ transform: "translate(-370.000000, -4.000000)",
400
+ fillRule: "nonzero",
401
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
402
+ transform: "translate(370.000000, -1.000000)",
403
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
404
+ d: "M9,6 C9,5.446875 8.553125,5 8,5 C7.446875,5 7,5.446875 7,6 L7,13.584375 L4.70625,11.290625 C4.315625,10.9 3.68125,10.9 3.290625,11.290625 C2.9,11.68125 2.9,12.315625 3.290625,12.70625 L7.290625,16.70625 C7.68125,17.096875 8.315625,17.096875 8.70625,16.70625 L12.70625,12.70625 C13.096875,12.315625 13.096875,11.68125 12.70625,11.290625 C12.315625,10.9 11.68125,10.9 11.290625,11.290625 L9,13.584375 L9,6 Z M2,16 C0.896875,16 0,16.896875 0,18 L0,19 C0,20.103125 0.896875,21 2,21 L14,21 C15.103125,21 16,20.103125 16,19 L16,18 C16,16.896875 15.103125,16 14,16 L10.828125,16 L9.4125,17.415625 C8.63125,18.196875 7.365625,18.196875 6.584375,17.415625 L5.171875,16 L2,16 Z M13.5,19.25 C13.084375,19.25 12.75,18.915625 12.75,18.5 C12.75,18.084375 13.084375,17.75 13.5,17.75 C13.915625,17.75 14.25,18.084375 14.25,18.5 C14.25,18.915625 13.915625,19.25 13.5,19.25 Z"
405
+ })
406
+ })
407
+ })
408
+ })
409
+ ]
410
+ });
411
+ default:
412
+ return null;
413
+ }
414
+ };
415
+ var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemIcon;
416
+
417
+
418
+
419
+
273
420
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date , options: options })=>{
274
421
  const rawDate = new Date(date);
275
422
  let modifiedDate = "";
@@ -290,155 +437,256 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
290
437
 
291
438
 
292
439
 
293
- const $dc6d3aaf3e07417b$var$dangerousDescriptionElement = ({ children: children })=>/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
440
+ const $52c6454cae137465$var$dangerousDescriptionElement = ({ children: children })=>/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
294
441
  dangerouslySetInnerHTML: {
295
442
  __html: (0, $hgUW1$dompurify).sanitize(children)
296
443
  }
297
444
  });
298
- const $dc6d3aaf3e07417b$var$DatasetSearchListItem = ({ item: item , updateFacets: updateFacets })=>{
299
- const { title: title , modified: modified , description: description , theme: theme , keyword: keyword , identifier: identifier } = item;
445
+ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
446
+ const desktop = (0, $hgUW1$useMediaQuery)({
447
+ minWidth: 1024
448
+ });
449
+ const { title: title , modified: modified , description: description , theme: theme , identifier: identifier , downloadUrl: downloadUrl , largeFile: largeFile = false } = props;
450
+ let linkContainerClasses = "ds-l-col--12 ds-u-margin-bottom--2";
451
+ let linkClasses = "ds-c-button ds-u-display--block ds-u-text-align--left";
452
+ if (desktop) {
453
+ linkContainerClasses = "ds-l-col--auto";
454
+ linkClasses = "ds-u-display--block ds-u-text-align--left";
455
+ }
300
456
  const truncatedDescription = /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$reacttexttruncate), {
301
457
  line: 3,
302
458
  element: "p",
303
459
  containerClassName: "ds-u-margin-top--0",
304
460
  truncateText: "…",
305
- textElement: $dc6d3aaf3e07417b$var$dangerousDescriptionElement,
461
+ textElement: $52c6454cae137465$var$dangerousDescriptionElement,
306
462
  text: description,
307
463
  textTruncateChild: ""
308
464
  });
309
- return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
310
- className: "dc-dataset-searchlist-item ds-u-border-top--1 ds-u-margin-bottom--5",
311
- children: [
312
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
313
- className: "ds-l-row ds-u-padding-top--5",
314
- children: [
315
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
316
- className: "ds-l-sm-col--7 ds-l-col--12",
317
- children: theme && /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
318
- className: "ds-u-padding--0 ds-u-display--flex ds-u-flex-direction--row ds-u-flex-wrap--wrap",
319
- children: theme.map((t)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
320
- className: "ds-u-margin-right--1 ds-u-margin-bottom--1",
321
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Badge), {
322
- variation: "info",
323
- children: t
324
- })
325
- }, t))
326
- })
327
- }),
328
- /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
329
- className: "ds-l-sm-col--5 ds-l-col--12 ds-u-color--gray ds-u-sm-text-align--right",
330
- children: [
331
- "Updated ",
332
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
333
- date: modified
465
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
466
+ className: "dc-c-search-list-item",
467
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
468
+ className: "dc-c-searchlist-item ds-u-border-top--1 ds-u-margin-bottom--4",
469
+ children: [
470
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
471
+ className: "ds-l-row ds-u-align-items--start",
472
+ children: [
473
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
474
+ className: "ds-l-col--12 ds-u-text-align--right ds-u-padding-top--2",
475
+ children: [
476
+ "Updated ",
477
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
478
+ date: modified
479
+ })
480
+ ]
481
+ }),
482
+ /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
483
+ className: "ds-l-col--12 ds-text-heading--2xl",
484
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
485
+ to: `/dataset/${identifier}`,
486
+ children: title
334
487
  })
335
- ]
488
+ })
489
+ ]
490
+ }),
491
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
492
+ className: "ds-l-row",
493
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
494
+ className: "ds-l-col--12 ds-l-md-col--12",
495
+ children: truncatedDescription
336
496
  })
337
- ]
338
- }),
339
- /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
340
- className: "ds-u-margin-y--1 ds-text-heading--xl",
341
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
342
- className: "ds-u-color--base",
343
- to: `/dataset/${identifier}`,
344
- children: title
345
- })
346
- }),
347
- truncatedDescription,
348
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
349
- children: keyword && /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
350
- className: "ds-u-padding--0 ds-u-display--flex ds-u-flex-wrap--wrap",
351
- children: keyword.map((k)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
352
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Badge), {
353
- className: "ds-u-radius ds-u-fill--primary-alt-lightest ds-u-color--base ds-u-margin-right--1 ds-u-margin-bottom--2",
354
- variation: "info",
355
- children: k
497
+ }),
498
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
499
+ className: "ds-l-row ds-u-padding--0 ds-u-flex-direction--row",
500
+ children: [
501
+ /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
502
+ className: linkContainerClasses,
503
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
504
+ className: linkClasses,
505
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
506
+ to: `/dataset/${identifier}#overview`,
507
+ children: [
508
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
509
+ id: "overview"
510
+ }),
511
+ "Overview"
512
+ ]
513
+ })
356
514
  })
357
- }, k))
515
+ }),
516
+ /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
517
+ className: linkContainerClasses,
518
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
519
+ className: linkClasses,
520
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
521
+ to: `/dataset/${identifier}#data-table`,
522
+ children: [
523
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
524
+ id: "data-table"
525
+ }),
526
+ "Data Table"
527
+ ]
528
+ })
529
+ })
530
+ }),
531
+ /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
532
+ className: linkContainerClasses,
533
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
534
+ className: linkClasses,
535
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
536
+ to: `/dataset/${identifier}#api`,
537
+ children: [
538
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
539
+ id: "api"
540
+ }),
541
+ "API"
542
+ ]
543
+ })
544
+ })
545
+ }),
546
+ downloadUrl ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
547
+ className: linkContainerClasses,
548
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
549
+ className: linkClasses,
550
+ children: largeFile ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
551
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
552
+ id: "download"
553
+ })
554
+ }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
555
+ href: downloadUrl,
556
+ children: [
557
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
558
+ id: "download"
559
+ }),
560
+ "Download"
561
+ ]
562
+ })
563
+ })
564
+ }) : ""
565
+ ]
358
566
  })
359
- })
360
- ]
361
- });
567
+ ]
568
+ })
569
+ }, identifier);
362
570
  };
363
- var $dc6d3aaf3e07417b$export$2e2bcd8739ae039 = $dc6d3aaf3e07417b$var$DatasetSearchListItem;
364
-
571
+ var $52c6454cae137465$export$2e2bcd8739ae039 = $52c6454cae137465$var$DatasetSearchListItem;
365
572
 
366
573
 
367
574
 
368
575
 
369
576
 
370
577
 
371
- function $19c005961efdef1a$export$e4d153b3e021fb47(currentFacet, selectedFacets) {
372
- let isSelected = -1;
373
- if (selectedFacets) isSelected = selectedFacets.findIndex((s)=>s === currentFacet);
374
- return isSelected;
375
- }
376
- const $19c005961efdef1a$var$DatasetSearchFacets = ({ title: title , facets: facets , onclickFunction: onclickFunction , selectedFacets: selectedFacets , loading: loading })=>{
377
- const showLimit = 25;
378
- const [isOpen, setIsOpen] = (0, $hgUW1$useState)(true);
379
- const [showMore, setShowMore] = (0, $hgUW1$useState)(false);
380
- const filteredFacets = facets.filter((f)=>{
381
- const selectedIndex = selectedFacets.findIndex((item)=>item === f.name);
382
- return f.total > 0 || selectedIndex !== -1;
383
- });
578
+ const $e011250e8a3bd5e5$var$SearchFacets = (props)=>{
579
+ const { facets: facets , title: title , onClickFunction: onClickFunction , selectedFacets: selectedFacets = [] } = props;
384
580
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
385
- className: "ds-u-margin-bottom--4 dc-dataset-search--facets-container",
581
+ className: "dkan-dataset-search--facet-container ds-u-margin-bottom--4",
386
582
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Accordion), {
387
583
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$AccordionItem), {
388
584
  contentClassName: "ds-u-padding-left--1 ds-u-padding-right--0",
389
- heading: `${title} (${filteredFacets.length})`,
585
+ heading: title,
390
586
  defaultOpen: true,
391
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
392
- children: filteredFacets.length ? /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
393
- className: "dc-dataset-search--facets ds-u-padding--0 ds-u-margin--0",
394
- children: filteredFacets.map((f)=>{
395
- return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
396
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Choice), {
397
- className: "ds-u-margin-y--1",
398
- checked: $19c005961efdef1a$export$e4d153b3e021fb47(f.name, selectedFacets) > -1 ? true : false,
399
- name: `facet_theme_${f.name}`,
400
- type: "checkbox",
401
- label: `${f.name} (${f.total})`,
402
- value: f.name,
403
- onClick: (e)=>onclickFunction({
404
- key: f.type,
405
- value: e.target.value
406
- })
407
- })
408
- }, f.name);
409
- })
410
- }) : /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
411
- className: "ds-h5",
412
- children: "No matching facets found."
587
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
588
+ children: facets.filter((f)=>{
589
+ return Number(f.total) > 0;
590
+ }).map((f)=>{
591
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
592
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Choice), {
593
+ className: "ds-u-margin-y--1",
594
+ checked: selectedFacets.findIndex((s)=>s === f.name) > -1 ? true : false,
595
+ name: `facet_theme_${f.name}`,
596
+ type: "checkbox",
597
+ label: `${f.name} (${f.total})`,
598
+ value: f.name,
599
+ onClick: ()=>onClickFunction(f.type, f.name)
600
+ })
601
+ }, f.name);
413
602
  })
414
603
  })
415
604
  })
416
605
  })
417
606
  });
418
607
  };
419
- $19c005961efdef1a$var$DatasetSearchFacets.defaultProps = {
420
- selectedFacets: []
421
- };
422
- $19c005961efdef1a$var$DatasetSearchFacets.propTypes = {
423
- title: (0, $hgUW1$proptypes).string.isRequired,
424
- facets: (0, $hgUW1$proptypes).arrayOf((0, $hgUW1$proptypes).shape({
425
- type: (0, $hgUW1$proptypes).string.isRequired,
426
- name: (0, $hgUW1$proptypes).string.isRequired,
427
- total: (0, $hgUW1$proptypes).oneOfType([
428
- (0, $hgUW1$proptypes).number,
429
- (0, $hgUW1$proptypes).string
430
- ]).isRequired
431
- })).isRequired,
432
- onclickFunction: (0, $hgUW1$proptypes).func.isRequired
608
+ var $e011250e8a3bd5e5$export$2e2bcd8739ae039 = $e011250e8a3bd5e5$var$SearchFacets;
609
+
610
+
611
+
612
+
613
+ const $3b2d31a9c6cd2284$var$LargeFileInfo = (props)=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
614
+ className: props.className,
615
+ children: [
616
+ /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
617
+ children: "Some datasets contain very large files and, depending on your network characteristics and software, may take a long time to download or fail to download. Additionally, the number of rows in the file may be larger than the maximum rows your version of Microsoft Excel supports. If you can't download the file, we recommend engaging your IT support staff. If you are able to download the file but are unable to open it in MS Excel or get a message that the data has been truncated, we recommend trying alternative programs such as MS Access, Universal Viewer, Editpad or any other software your organization has available for large datasets."
618
+ }),
619
+ /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
620
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
621
+ to: "/about/software-specs-and-limits",
622
+ children: "Click here to learn more about software specifications and limits."
623
+ })
624
+ })
625
+ ]
626
+ });
627
+ var $3b2d31a9c6cd2284$export$2e2bcd8739ae039 = $3b2d31a9c6cd2284$var$LargeFileInfo;
628
+
629
+
630
+
631
+
632
+
633
+ const $0a551147dc92a718$var$SearchButton = (props)=>{
634
+ const { text: text } = props;
635
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
636
+ type: "submit",
637
+ variation: "solid",
638
+ className: "ds-l-col--2",
639
+ children: [
640
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
641
+ className: "fas fa-search small-text ds-u-sm-display--none"
642
+ }),
643
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
644
+ className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
645
+ children: [
646
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
647
+ children: text ? text : "Search"
648
+ }),
649
+ ` `,
650
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
651
+ className: "fas fa-arrow-right"
652
+ })
653
+ ]
654
+ })
655
+ ]
656
+ });
433
657
  };
434
- var $19c005961efdef1a$export$2e2bcd8739ae039 = $19c005961efdef1a$var$DatasetSearchFacets;
658
+ var $0a551147dc92a718$export$2e2bcd8739ae039 = $0a551147dc92a718$var$SearchButton;
435
659
 
436
660
 
437
661
 
438
662
 
663
+ const $5723016a5461c1ca$var$PageHeader = (props)=>{
664
+ const { headerText: headerText } = props;
665
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
666
+ className: "ds-l-container ds-u-padding-top--4",
667
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
668
+ className: "ds-l-row",
669
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
670
+ className: "ds-l-md-col--8",
671
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
672
+ className: "dc-c-entity__name ds-text-heading--3xl ds-u-margin-bottom--6",
673
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
674
+ className: "ds-u-margin-right--2",
675
+ "data-testid": "profile-full-name",
676
+ children: headerText
677
+ })
678
+ })
679
+ })
680
+ })
681
+ });
682
+ };
683
+ var $5723016a5461c1ca$export$2e2bcd8739ae039 = $5723016a5461c1ca$var$PageHeader;
684
+
685
+
686
+
439
687
 
440
688
 
441
- function $116bd29db288848e$export$959638e8dca60ce6(facets) {
689
+ function $eff7d34c30f5a0fc$export$959638e8dca60ce6(facets) {
442
690
  let facetObj = {};
443
691
  if (facets) {
444
692
  facets.forEach((f)=>{
@@ -453,52 +701,24 @@ function $116bd29db288848e$export$959638e8dca60ce6(facets) {
453
701
  return facetObj;
454
702
  }
455
703
  }
456
- function $116bd29db288848e$export$b638ec7c7eac7f18(facets, alternateTitles) {
457
- let message = [];
458
- const keys = Object.keys(facets);
459
- keys.forEach((k)=>{
460
- if (facets[k].length) message.push(`${alternateTitles[k]}: ${facets[k].join(", ")}`);
461
- });
462
- return message.join(" & ");
463
- }
464
- function $116bd29db288848e$export$60ec7cc1d341a524(searchParams, facetList, defaultSortOptions) {
704
+ function $eff7d34c30f5a0fc$export$60ec7cc1d341a524(searchParams, facetList, defaultSortOptions) {
465
705
  const params = (0, $hgUW1$qs).parse(searchParams, {
466
706
  ignoreQueryPrefix: true
467
707
  });
468
- const selectedFacets = {};
469
- facetList.forEach((facet)=>{
470
- selectedFacets[facet] = params[facet] ? params[facet] : [];
471
- });
708
+ let themes = params.theme;
709
+ let keywords = params.keyword;
472
710
  return {
473
711
  page: params.page,
474
712
  sort: !params.sort ? defaultSortOptions.defaultSort : params.sort,
475
713
  sortOrder: !params.sortOrder ? defaultSortOptions.defaultOrder : params.sortOrder,
476
714
  fulltext: params.fulltext,
477
- selectedFacets: selectedFacets
478
- };
479
- }
480
- function $116bd29db288848e$export$73b41a3a66d60730(currentFacet, selectedFacets) {
481
- const isInSelectedFacets = selectedFacets[currentFacet.key] ? selectedFacets[currentFacet.key].indexOf(currentFacet.value) : -1;
482
- return isInSelectedFacets;
483
- }
484
- function $116bd29db288848e$export$9ef1e909a5e43470(currentFacet, selectedFacets) {
485
- const key = currentFacet["key"];
486
- let newFacetList = {
487
- ...selectedFacets
715
+ selectedFacets: {
716
+ theme: themes ? themes : [],
717
+ keyword: keywords ? keywords : []
718
+ }
488
719
  };
489
- if (newFacetList[key]) {
490
- const existingFacet = $116bd29db288848e$export$73b41a3a66d60730(currentFacet, newFacetList);
491
- if (existingFacet > -1) newFacetList[key].splice(existingFacet, 1);
492
- else newFacetList[key] = [
493
- ...newFacetList[key],
494
- currentFacet.value
495
- ];
496
- } else newFacetList[key] = [
497
- currentFacet.value
498
- ];
499
- return newFacetList;
500
720
  }
501
- async function $116bd29db288848e$export$2d2256cb46e92ff7(rootUrl, options, additionalParams) {
721
+ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, additionalParams) {
502
722
  const { fulltext: fulltext , selectedFacets: selectedFacets , sort: sort , sortOrder: sortOrder , page: page , pageSize: pageSize } = options;
503
723
  let params = {
504
724
  fulltext: fulltext ? fulltext : undefined,
@@ -511,54 +731,105 @@ async function $116bd29db288848e$export$2d2256cb46e92ff7(rootUrl, options, addit
511
731
  };
512
732
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify(params, {
513
733
  arrayFormat: "comma",
514
- encode: false,
515
- skipEmptyString: true
734
+ encode: false
516
735
  })}`);
517
736
  }
518
- function $116bd29db288848e$export$28fa7926a3fa4176(selectedFacets, fulltext, sort) {
519
- let newParams = {
520
- ...selectedFacets
521
- };
522
- if (fulltext) newParams.fulltext = fulltext;
523
- if (sort) newParams.sort = sort;
524
- return (0, $hgUW1$qs).stringify(newParams, {
525
- addQueryPrefix: true,
526
- encode: false,
527
- arrayFormat: "brackets"
528
- });
529
- }
530
737
 
531
738
 
532
739
 
533
740
 
534
- const $007dd6bfbe0f2956$var$DatasetSearch = ({ rootUrl: rootUrl , pageTitle: pageTitle , introText: introText , fulltextLabel: fulltextLabel , fulltextLabelClassName: fulltextLabelClassName , fulltextPlaceholder: fulltextPlaceholder , formClassName: formClassName , additionalParams: additionalParams , sortOptions: sortOptions , defaultSort: defaultSort , showSort: showSort })=>{
741
+ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
742
+ const { rootUrl: rootUrl , surveyLink: surveyLink , additionalParams: additionalParams , enableSort: enableSort , defaultSort: defaultSort , pageTitle: pageTitle , filterTitle: filterTitle , showLargeFileWarning: showLargeFileWarning , introText: introText , showDownloadIcon: showDownloadIcon } = props;
743
+ const sortOptions = [
744
+ {
745
+ label: "Newest",
746
+ value: "newest"
747
+ },
748
+ {
749
+ label: "Oldest",
750
+ value: "oldest"
751
+ },
752
+ {
753
+ label: "Title A-Z",
754
+ value: "titleAZ"
755
+ },
756
+ {
757
+ label: "Title Z-A",
758
+ value: "titleZA"
759
+ }
760
+ ];
535
761
  const defaultSortBy = "";
536
762
  const defaultFulltext = "";
537
- const defaultSelectedFacets = {};
763
+ const defaultSelectedFacets = {
764
+ theme: [],
765
+ keyword: []
766
+ };
538
767
  const defaultSortOrder = "";
539
768
  const defaultPage = 1;
540
769
  const defaultPageSize = 10;
541
770
  const location = (0, $hgUW1$useLocation)();
542
- const transformedParams = (0, $116bd29db288848e$export$60ec7cc1d341a524)(location.search, [
771
+ const transformedParams = (0, $eff7d34c30f5a0fc$export$60ec7cc1d341a524)(location.search, [
543
772
  "theme",
544
773
  "keyword"
545
774
  ], defaultSort);
546
- const [currentResultNumbers, setCurrentResultNumbers] = (0, $hgUW1$useState)(null);
775
+ const [currentResultNumbers, setCurrentResultNumbers] = (0, $hgUW1$useState)({
776
+ total: 0,
777
+ startingNumber: 0,
778
+ endingNumber: 0
779
+ });
547
780
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
548
781
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
549
782
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
550
783
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
551
- const [totalItems, setTotalItems] = (0, $hgUW1$useState)(null);
784
+ const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
552
785
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
553
786
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
554
787
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
555
- const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : defaultSelectedFacets);
556
- function updateSelectedFacets(currentFacet) {
557
- const facets = (0, $116bd29db288848e$export$9ef1e909a5e43470)(currentFacet, selectedFacets);
558
- setPage(1);
559
- setSelectedFacets(facets);
788
+ const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
789
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
790
+ });
791
+ const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
792
+ theme: [],
793
+ keyword: []
794
+ });
795
+ const setSortOptions = (value)=>{
796
+ setSortDisplay(value);
797
+ switch(value){
798
+ case "newest":
799
+ setSort("modified");
800
+ setSortOrder("desc");
801
+ break;
802
+ case "oldest":
803
+ setSort("modified");
804
+ setSortOrder("asc");
805
+ break;
806
+ case "titleAZ":
807
+ setSort("title");
808
+ setSortOrder("asc");
809
+ break;
810
+ case "titleZA":
811
+ setSort("title");
812
+ setSortOrder("desc");
813
+ break;
814
+ }
815
+ };
816
+ function updateSelectedFacets(key, value) {
817
+ const newFacets = {
818
+ ...selectedFacets
819
+ };
820
+ if (key === "theme") {
821
+ const existingFacet = newFacets.theme.findIndex((s)=>s === value);
822
+ if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
823
+ else newFacets.theme.push(value);
824
+ }
825
+ if (key === "keyword") {
826
+ const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
827
+ if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
828
+ else newFacets.keyword.push(value);
829
+ }
830
+ setSelectedFacets(newFacets);
560
831
  }
561
- const pageSize = location.search.pageSize ? location.search.pageSize : defaultPageSize;
832
+ const pageSize = defaultPageSize;
562
833
  (0, $hgUW1$useEffect)(()=>{
563
834
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
564
835
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
@@ -568,7 +839,7 @@ const $007dd6bfbe0f2956$var$DatasetSearch = ({ rootUrl: rootUrl , pageTitle: pag
568
839
  startingNumber: Number(totalItems) >= startingNumber ? startingNumber : 0,
569
840
  endingNumber: Number(totalItems) < endingNumber ? Number(totalItems) : endingNumber
570
841
  });
571
- if (totalItems <= 0 && currentResultNumbers !== null) setNoResults(true);
842
+ if (totalItems && totalItems <= 0 && currentResultNumbers !== null) setNoResults(true);
572
843
  else setNoResults(false);
573
844
  }, [
574
845
  totalItems,
@@ -619,69 +890,106 @@ const $007dd6bfbe0f2956$var$DatasetSearch = ({ rootUrl: rootUrl , pageTitle: pag
619
890
  params
620
891
  ], ()=>(0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify(params, {
621
892
  arrayFormat: "comma",
622
- encode: false,
623
- skipEmptyString: true
893
+ encode: false
624
894
  })}`));
625
- if (data && totalItems != data.data.total) setTotalItems(data.data.total);
626
- const { theme: theme , keyword: keyword } = (0, $116bd29db288848e$export$959638e8dca60ce6)(data ? data.data.facets : []);
627
- return /*#__PURE__*/ (0, $hgUW1$jsxs)("section", {
628
- className: "ds-l-container",
895
+ if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
896
+ const facets = data && data.data.facets ? (0, $eff7d34c30f5a0fc$export$959638e8dca60ce6)(data ? data.data.facets : []) : {
897
+ theme: null,
898
+ keyword: null
899
+ };
900
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
629
901
  children: [
630
- /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
631
- className: "dc-search-header ds-title ds-u-margin-y--3",
632
- children: pageTitle
902
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5723016a5461c1ca$export$2e2bcd8739ae039), {
903
+ headerText: pageTitle
633
904
  }),
634
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
635
- className: "ds-l-row",
905
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("section", {
906
+ className: "ds-l-container",
636
907
  children: [
908
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
909
+ className: "ds-l-row",
910
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
911
+ className: "ds-l-col--12 ds-u-margin-bottom--3",
912
+ children: [
913
+ introText ? introText : null,
914
+ showLargeFileWarning && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
915
+ className: "ds-l-row ds-u-margin-bottom--6",
916
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
917
+ className: "ds-l-md-col--12",
918
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Accordion), {
919
+ bordered: true,
920
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$AccordionItem), {
921
+ contentClassName: "downloading-datasets",
922
+ heading: "Please read before downloading datasets",
923
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b2d31a9c6cd2284$export$2e2bcd8739ae039), {})
924
+ })
925
+ })
926
+ })
927
+ }),
928
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("form", {
929
+ onSubmit: (e)=>{
930
+ e.preventDefault();
931
+ setFullText(filterText);
932
+ },
933
+ className: "dkan-dataset-search ds-l-form-row ds-u-padding-bottom--6 ds-u-border-bottom--1",
934
+ children: [
935
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
936
+ className: "ds-c-field__before fas fa-search ds-u-display--none ds-u-sm-display--inline-block"
937
+ }),
938
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
939
+ fieldClassName: "ds-u-margin--0",
940
+ value: filterText,
941
+ className: "ds-u-padding-right--2 ds-l-col--10",
942
+ label: "Search datasets",
943
+ labelClassName: "ds-u-visibility--screen-reader",
944
+ placeholder: "Search datasets",
945
+ name: "dataset_fulltext_search",
946
+ onChange: (e)=>setFilterText(e.target.value)
947
+ }),
948
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $0a551147dc92a718$export$2e2bcd8739ae039), {})
949
+ ]
950
+ })
951
+ ]
952
+ })
953
+ }),
637
954
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
638
- className: "ds-l-md-col--8 ds-l-sm-col--12ds-u-margin-bottom--3",
955
+ className: "ds-l-row ds-u-padding-top--6",
639
956
  children: [
640
- introText ? introText : null,
641
- /*#__PURE__*/ (0, $hgUW1$jsxs)("form", {
642
- onSubmit: (e)=>{
643
- e.preventDefault();
644
- ()=>{
645
- setFullText(filterText);
646
- setPage(defaultPage);
647
- };
648
- },
649
- className: formClassName,
957
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
958
+ className: "ds-l-col--12 ds-l-sm-col--4",
650
959
  children: [
651
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
652
- fieldClassName: "ds-u-margin--0",
653
- value: filterText,
654
- className: "dc-fulltext--input-container ds-u-padding-right--2",
655
- label: fulltextLabel,
656
- labelClassName: fulltextLabelClassName,
657
- placeholder: fulltextPlaceholder,
658
- name: "dataset_fulltext_search",
659
- onChange: (e)=>setFilterText(e.target.value)
660
- }),
661
960
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
662
- type: "submit",
663
- variation: "solid",
664
- htmlFor: "dataset_fulltext_search",
665
- onClick: ()=>{
666
- setFullText(filterText);
667
- setPage(defaultPage);
668
- },
669
- children: "Search"
961
+ className: "dc-dataset-search--clear-all-filters ds-u-margin-bottom--2",
962
+ onClick: ()=>resetFilters(),
963
+ children: "Clear all filters"
964
+ }),
965
+ facets.theme && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e011250e8a3bd5e5$export$2e2bcd8739ae039), {
966
+ facets: facets.theme,
967
+ title: "Categories",
968
+ onClickFunction: updateSelectedFacets,
969
+ selectedFacets: selectedFacets.theme
970
+ }),
971
+ facets.keyword && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e011250e8a3bd5e5$export$2e2bcd8739ae039), {
972
+ facets: facets.keyword,
973
+ title: filterTitle,
974
+ onClickFunction: updateSelectedFacets,
975
+ selectedFacets: selectedFacets.keyword
670
976
  })
671
977
  ]
672
978
  }),
673
- status === "loading" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
674
- className: "ds-u-valign--middle",
675
- "aria-valuetext": "Dataset Search loading",
676
- role: "status"
677
- }) : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
678
- children: [
679
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
680
- className: "ds-u-display--flex ds-u-justify-content--between ds-u-align-items--end",
681
- children: [
682
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
683
- children: [
684
- currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
979
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
980
+ className: "ds-l-col--12 ds-l-sm-col--8",
981
+ children: status === "loading" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
982
+ className: "ds-u-valign--middle",
983
+ "aria-valuetext": "Dataset Search loading",
984
+ role: "status"
985
+ }) : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
986
+ children: [
987
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
988
+ className: "ds-u-display--flex ds-u-justify-content--between ds-u-align-items--end ds-u-flex-wrap--reverse ds-u-sm-flex-wrap--wrap",
989
+ children: [
990
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
991
+ className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--8",
992
+ children: currentResultNumbers && data && /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
685
993
  className: "ds-u-margin-y--0",
686
994
  role: "region",
687
995
  "aria-live": "polite",
@@ -693,123 +1001,70 @@ const $007dd6bfbe0f2956$var$DatasetSearch = ({ rootUrl: rootUrl , pageTitle: pag
693
1001
  " ",
694
1002
  currentResultNumbers.endingNumber,
695
1003
  " of ",
696
- data.data.total,
1004
+ data ? data.data.total : "",
697
1005
  " datasets"
698
1006
  ]
699
- }),
700
- /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
701
- className: "ds-u-margin-y--0",
702
- children: (0, $116bd29db288848e$export$b638ec7c7eac7f18)(selectedFacets, {
703
- theme: "Categories",
704
- keyword: "Tags"
705
- })
706
1007
  })
707
- ]
708
- }),
709
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
710
- className: "ds-u-padding--0 dc-c-clear-filters",
711
- variation: "ghost",
712
- onClick: ()=>resetFilters(),
713
- children: "Clear all filters"
714
- })
715
- ]
716
- }),
717
- /*#__PURE__*/ (0, $hgUW1$jsxs)("ol", {
718
- className: "dc-dataset-search-list ds-u-padding--0",
719
- children: [
720
- noResults && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
721
- variation: "error",
722
- heading: "No results found."
723
- }),
724
- data && Object.keys(data.data.results).map((key)=>{
725
- return data.data.results[key];
726
- }).map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
727
- className: "ds-u-padding--0",
728
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $dc6d3aaf3e07417b$export$2e2bcd8739ae039), {
729
- item: item,
730
- updateFacets: updateSelectedFacets
1008
+ }),
1009
+ enableSort && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1010
+ className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--4 ds-u-sm-padding-right--0",
1011
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1012
+ options: sortOptions,
1013
+ value: sortDisplay,
1014
+ label: "Sort",
1015
+ labelClassName: "ds-u-margin-top--0",
1016
+ name: "dataset_search_sort",
1017
+ onChange: (e)=>setSortOptions(e.target.value)
731
1018
  })
732
- }, item.identifier))
733
- ]
734
- }),
735
- data && data.data.total != 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
736
- id: "test-default",
737
- currentPage: Number(page),
738
- totalPages: Math.ceil(Number(data.data.total) / pageSize),
739
- onPageChange: (evt, page)=>{
740
- evt.preventDefault();
741
- window.scroll(0, 0);
742
- setPage(page);
743
- },
744
- renderHref: (page)=>{
745
- const searchParams = buildSearchParams(false);
746
- const includeAnd = searchParams ? "&" : "";
747
- return `/datasets?page=${page}${includeAnd}${searchParams}`;
748
- }
749
- })
750
- ]
751
- })
752
- ]
753
- }),
754
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
755
- className: "ds-l-md-col--4 ds-l-sm-col--12",
756
- children: [
757
- showSort && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
758
- className: "ds-u-padding--2 ds-u-margin-bottom--4 ds-u-border--1",
759
- children: [
760
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
761
- options: sortOptions,
762
- value: sort,
763
- label: "Sort by",
764
- labelClassName: "ds-u-margin-top--0",
765
- name: "dataset_search_sort",
766
- onChange: (e)=>setSort(e.target.value)
767
- }),
768
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
769
- options: [
770
- {
771
- label: "Ascending",
772
- value: "asc"
1019
+ })
1020
+ ]
1021
+ }),
1022
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("ol", {
1023
+ className: "dc-dataset-search-list ds-u-padding--0",
1024
+ "data-testid": "results-list",
1025
+ children: [
1026
+ noResults && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
1027
+ variation: "error",
1028
+ heading: "No results found."
1029
+ }),
1030
+ data && data.data.results ? Object.keys(data.data.results).map((key)=>{
1031
+ return data.data.results[key];
1032
+ }).map((item)=>{
1033
+ function getDownloadUrl(item) {
1034
+ let distribution_array = item.distribution ? item.distribution : [];
1035
+ return distribution_array.length ? item.distribution[0].downloadURL : null;
1036
+ }
1037
+ return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $52c6454cae137465$export$2e2bcd8739ae039), {
1038
+ title: item.title,
1039
+ modified: item.modified,
1040
+ description: item.description,
1041
+ theme: item.theme,
1042
+ identifier: item.identifier,
1043
+ downloadUrl: showDownloadIcon ? getDownloadUrl(item) : null,
1044
+ largeFile: item.theme && item.theme.includes("General Payments")
1045
+ });
1046
+ }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
1047
+ variation: "error",
1048
+ heading: "Could not connect to the API."
1049
+ })
1050
+ ]
1051
+ }),
1052
+ data && data.data.total && data.data.total != 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
1053
+ currentPage: Number(page),
1054
+ totalPages: Math.ceil(Number(data.data.total) / pageSize),
1055
+ onPageChange: (evt, page)=>{
1056
+ evt.preventDefault();
1057
+ window.scroll(0, 0);
1058
+ setPage(page);
773
1059
  },
774
- {
775
- label: "Descending",
776
- value: "desc"
1060
+ renderHref: (page)=>{
1061
+ const searchParams = buildSearchParams(false);
1062
+ const includeAnd = searchParams ? "&" : "";
1063
+ return `/datasets?page=${page}${includeAnd}${searchParams}`;
777
1064
  }
778
- ],
779
- value: sortOrder,
780
- label: "Sort order",
781
- labelClassName: "ds-u-margin-top--0",
782
- name: "dataset_search_sort_order",
783
- onChange: (e)=>setSortOrder(e.target.value)
784
- })
785
- ]
786
- }),
787
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
788
- className: "ds-u-padding--2 ds-u-margin-bottom--4 ds-u-border--1",
789
- children: [
790
- theme ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $19c005961efdef1a$export$2e2bcd8739ae039), {
791
- title: "Categories",
792
- facets: theme,
793
- onclickFunction: updateSelectedFacets,
794
- selectedFacets: selectedFacets.theme,
795
- loading: status === "loading"
796
- }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
797
- className: "ds-u-valign--middle",
798
- "aria-valuetext": "Categories loading",
799
- role: "status"
800
- }),
801
- keyword ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $19c005961efdef1a$export$2e2bcd8739ae039), {
802
- title: "Tags",
803
- facets: keyword,
804
- onclickFunction: updateSelectedFacets,
805
- selectedFacets: selectedFacets.keyword,
806
- loading: status === "loading"
807
- }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
808
- className: "ds-u-valign--middle",
809
- "aria-valuetext": "Tags loading",
810
- role: "status"
811
- })
812
- ]
1065
+ })
1066
+ ]
1067
+ })
813
1068
  })
814
1069
  ]
815
1070
  })
@@ -818,30 +1073,41 @@ const $007dd6bfbe0f2956$var$DatasetSearch = ({ rootUrl: rootUrl , pageTitle: pag
818
1073
  ]
819
1074
  });
820
1075
  };
821
- $007dd6bfbe0f2956$var$DatasetSearch.defaultProps = {
822
- pageTitle: "Datasets",
1076
+ $e873081a6e8f024e$var$DatasetSearch.defaultProps = {
1077
+ pageTitle: "Dataset Explorer",
823
1078
  introText: "",
824
1079
  fulltextLabel: "Search term",
825
1080
  fulltextLabelClassName: "ds-u-visibility--screen-reader",
826
- fulltextPlaceholder: "Type search term here",
1081
+ fulltextPlaceholder: "Search datasets",
1082
+ filterTitle: "Tags",
827
1083
  formClassName: "ds-u-display--flex ds-u-justify-content--between ds-u-margin-bottom--2",
828
- showSort: true,
1084
+ enableSort: true,
829
1085
  sortOptions: [
830
1086
  {
831
- label: "Recently Updated",
832
- value: "modified"
1087
+ label: "Newest",
1088
+ value: "newest"
1089
+ },
1090
+ {
1091
+ label: "Oldest",
1092
+ value: "oldest"
1093
+ },
1094
+ {
1095
+ label: "Title A-Z",
1096
+ value: "titleAZ"
833
1097
  },
834
1098
  {
835
- label: "Title",
836
- value: "title"
1099
+ label: "Title Z-A",
1100
+ value: "titleZA"
837
1101
  }
838
1102
  ],
839
1103
  defaultSort: {
840
1104
  defaultSort: "modified",
841
1105
  defaultOrder: "desc"
842
- }
1106
+ },
1107
+ showLargeFileWarning: false,
1108
+ showDownloadIcon: false
843
1109
  };
844
- var $007dd6bfbe0f2956$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($007dd6bfbe0f2956$var$DatasetSearch);
1110
+ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($e873081a6e8f024e$var$DatasetSearch);
845
1111
 
846
1112
 
847
1113
 
@@ -1340,7 +1606,7 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows , lim
1340
1606
  });
1341
1607
  };
1342
1608
  $2ed0091f7e32d1e6$var$DataTablePageResults.defaultProps = {
1343
- className: "data-table-results"
1609
+ className: "data-table-results ds-u-margin-bottom--2"
1344
1610
  };
1345
1611
  $2ed0091f7e32d1e6$var$DataTablePageResults.propTypes = {
1346
1612
  className: (0, $hgUW1$proptypes).string,
@@ -1411,7 +1677,7 @@ const $4def8e29c2039eb8$var$DataTableRowChanger = ({ setLimit: setLimit , rowOpt
1411
1677
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1412
1678
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1413
1679
  options: rowOptions.map((row)=>({
1414
- label: row,
1680
+ label: row.toString(),
1415
1681
  value: row
1416
1682
  })),
1417
1683
  size: "small",
@@ -1526,6 +1792,7 @@ const $ec9e1550b0b034d0$var$SettingsIcon = ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("s
1526
1792
  var $ec9e1550b0b034d0$export$2e2bcd8739ae039 = $ec9e1550b0b034d0$var$SettingsIcon;
1527
1793
 
1528
1794
 
1795
+
1529
1796
  const $af099c546cb226c7$var$ResourceHeader = ({ setTablePadding: setTablePadding , id: id , distribution: distribution , includeFiltered: includeFiltered , includeDensity: includeDensity , includeDownload: includeDownload , resource: resource , tablePadding: tablePadding , downloadUrl: downloadUrl })=>{
1530
1797
  const md = (0, $hgUW1$useMediaQuery)({
1531
1798
  minWidth: 0,
@@ -1611,7 +1878,7 @@ const $af099c546cb226c7$var$ResourceHeader = ({ setTablePadding: setTablePadding
1611
1878
  ]
1612
1879
  }),
1613
1880
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tooltip), {
1614
- className: "ds-c-button ds-c-button--small ds-u-text-align--left",
1881
+ className: "ds-c-button ds-c-button--small ds-u-text-align--left display-settings-font",
1615
1882
  placement: "bottom",
1616
1883
  dialog: true,
1617
1884
  ariaLabel: "Display settings",
@@ -1658,12 +1925,12 @@ const $17193a17e26a72da$var$DatasetTags = ({ keywords: keywords })=>{
1658
1925
  className: "dc-c-dataset-tags ds-u-margin-bottom--3 ds-u-padding--2 ds-u-border ds-u-border--1",
1659
1926
  children: [
1660
1927
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
1661
- className: "ds-u-color--primary ds-u-font-size--h3 ds-u-margin-top--0 ds-u-margin-bottom--2",
1928
+ className: "ds-u-color--primary ds-u-font-size--xl ds-u-margin-top--0 ds-u-margin-bottom--2",
1662
1929
  children: "Tags"
1663
1930
  }),
1664
1931
  keywords && keywords.map((k)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1665
1932
  to: `/datasets?keyword[]=${k.data}`,
1666
- className: "dc-c-dataset-tags--tag ds-u-color--base ds-u-font-size--small ds-u-text-decoration--none ds-u-margin-right--1 ds-u-margin-bottom--1 ds-u-padding-x--2 ds-u-padding-y--1 ds-u-radius",
1933
+ className: "dc-c-dataset-tags--tag ds-u-color--base ds-u-font-size--sm ds-u-text-decoration--none ds-u-margin-right--1 ds-u-margin-bottom--1 ds-u-padding-x--2 ds-u-padding-y--1 ds-u-radius",
1667
1934
  children: k.data
1668
1935
  }, k.identifier))
1669
1936
  ]
@@ -1705,7 +1972,7 @@ const $f341c2fd9bc53390$var$DatasetDownloads = ({ dataDictionaryURL: dataDiction
1705
1972
  className: "ds-u-margin-bottom--3 ds-u-padding--2 ds-u-border ds-u-border--1 dc-c-dataset-downloads",
1706
1973
  children: [
1707
1974
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
1708
- className: "ds-u-color--primary ds-u-font-size--h3 ds-u-margin-top--0 ds-u-margin-bottom--2 ds-u-padding-bottom--2 ds-u-border ds-u-border-bottom--1",
1975
+ className: "ds-u-color--primary ds-u-font-size--xl ds-u-margin-top--0 ds-u-margin-bottom--2 ds-u-padding-bottom--2 ds-u-border ds-u-border-bottom--1",
1709
1976
  children: "Downloads"
1710
1977
  }),
1711
1978
  (distributions.length || dataDictionaryURL && dataDictionaryType) && /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
@@ -1759,6 +2026,7 @@ const $5644ebd2c3dbfd7b$var$DatasetAdditionalInformation = ({ datasetInfo: datas
1759
2026
  className: "dc-c-additional-info-table ds-u-margin-bottom--6",
1760
2027
  children: [
1761
2028
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
2029
+ className: "ds-text-heading--2xl ds-u-margin-y--3",
1762
2030
  children: "Additional Information"
1763
2031
  }),
1764
2032
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
@@ -1832,6 +2100,7 @@ const $68eacd619bee0da7$var$ResourceInformation = ({ resource: resource })=>{
1832
2100
  className: "dc-c-resource-info-table",
1833
2101
  children: [
1834
2102
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
2103
+ className: "ds-text-heading--2xl ds-u-margin-y--3",
1835
2104
  children: "About this Resource"
1836
2105
  }),
1837
2106
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
@@ -2051,7 +2320,7 @@ const $766b8e351dd607f5$var$DatasetBody = ({ rootUrl: rootUrl , id: id , dataset
2051
2320
  className: "ds-l-row",
2052
2321
  children: [
2053
2322
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2054
- className: "ds-l-col--6",
2323
+ className: "ds-l-col--6 ds-u-margin-bottom--2",
2055
2324
  children: dataset.theme ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Badge), {
2056
2325
  variation: "info",
2057
2326
  children: dataset.theme[0].data
@@ -2077,7 +2346,7 @@ const $766b8e351dd607f5$var$DatasetBody = ({ rootUrl: rootUrl , id: id , dataset
2077
2346
  resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2078
2347
  children: [
2079
2348
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
2080
- className: "dc-resource-header",
2349
+ className: "dc-resource-header ds-text-heading--2xl ds-u-margin-y--3",
2081
2350
  children: "Resource Preview"
2082
2351
  }),
2083
2352
  resource.columns ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -2127,6 +2396,7 @@ const $766b8e351dd607f5$var$DatasetBody = ({ rootUrl: rootUrl , id: id , dataset
2127
2396
  ref: apiDocs,
2128
2397
  children: [
2129
2398
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
2399
+ className: "ds-text-heading--2xl ds-u-margin-y--2",
2130
2400
  children: "Try the API"
2131
2401
  }),
2132
2402
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
@@ -2153,7 +2423,7 @@ const $766b8e351dd607f5$var$DatasetBody = ({ rootUrl: rootUrl , id: id , dataset
2153
2423
  className: "dc-c-dataset-tags ds-u-margin-bottom--3 ds-u-padding--2 ds-u-border ds-u-border--1",
2154
2424
  children: [
2155
2425
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
2156
- className: "ds-u-color--primary ds-u-font-size--h3 ds-u-margin-top--0 ds-u-margin-bottom--2 ds-u-padding-bottom--2",
2426
+ className: "ds-u-color--primary ds-u-font-size--xl ds-u-margin-top--0 ds-u-margin-bottom--2 ds-u-padding-bottom--2",
2157
2427
  children: "API"
2158
2428
  }),
2159
2429
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
@@ -2526,19 +2796,12 @@ const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc , appNodeId:
2526
2796
  children: "Search"
2527
2797
  })
2528
2798
  }),
2529
- modalSearch && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
2799
+ modalSearch && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2530
2800
  className: "dc-c-search-dialog",
2531
2801
  onExit: ()=>setModalSearch(false),
2532
- getApplicationNode: ()=>document.getElementById(appNodeId),
2533
- closeButtonText: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
2534
- children: "Close"
2535
- }),
2536
2802
  heading: `${headingText}`,
2537
- children: [
2538
- searchModalText && /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2539
- children: searchModalText
2540
- }),
2541
- /*#__PURE__*/ (0, $hgUW1$jsxs)("form", {
2803
+ actions: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
2804
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("form", {
2542
2805
  className: "ds-u-display--flex ds-u-align-items--stretch ds-u-flex-wrap--nowrap",
2543
2806
  onSubmit: (e)=>{
2544
2807
  searchForDataset(e);
@@ -2568,7 +2831,7 @@ const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc , appNodeId:
2568
2831
  })
2569
2832
  ]
2570
2833
  })
2571
- ]
2834
+ })
2572
2835
  })
2573
2836
  ]
2574
2837
  });
@@ -2625,7 +2888,7 @@ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName , headerClasse
2625
2888
  links: links.topnav,
2626
2889
  menuName: "CMS Main Header",
2627
2890
  menuId: "cmsheader",
2628
- menuClasses: "ds-u-display--flex dc-c-header--links ds-u-font-size--small"
2891
+ menuClasses: "ds-u-display--flex ds-u-flex-direction--row dc-c-header--links ds-u-font-size--sm"
2629
2892
  })
2630
2893
  })
2631
2894
  ]
@@ -2640,7 +2903,7 @@ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName , headerClasse
2640
2903
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2641
2904
  className: "ds-u-margin-right--5 ds-u-padding-y--3 dc-c-site-title",
2642
2905
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$NavLink), {
2643
- className: "ds-c-link--inverse ds-h1",
2906
+ className: "ds-c-link--inverse ds-text-heading--3xl",
2644
2907
  to: "/",
2645
2908
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2646
2909
  className: "",
@@ -2653,7 +2916,7 @@ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName , headerClasse
2653
2916
  wrapLabel: true,
2654
2917
  menuName: "CMS Site Main Nav",
2655
2918
  menuId: "site",
2656
- menuClasses: "ds-u-display--flex dc-c-header--links ds-u-align-items--center",
2919
+ menuClasses: "ds-u-display--flex ds-u-flex-direction--row dc-c-header--links ds-u-align-items--center",
2657
2920
  linkClasses: linkClasses
2658
2921
  }),
2659
2922
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -2786,7 +3049,7 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName , links: links
2786
3049
  links: links.topnav,
2787
3050
  menuName: "CMS Main Header",
2788
3051
  menuId: "cmsheader",
2789
- menuClasses: "ds-u-display--flex dc-c-header--links ds-u-font-size--small"
3052
+ menuClasses: "ds-u-display--flex ds-u-flex-direction--row dc-c-header--links ds-u-font-size--sm ds-u-margin-bottom--2"
2790
3053
  })
2791
3054
  })
2792
3055
  ]
@@ -2809,10 +3072,11 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName , links: links
2809
3072
  }),
2810
3073
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2811
3074
  className: "ds-u-padding-y--3 dc-c-site-title",
2812
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
3075
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$NavLink), {
3076
+ className: "ds-c-link--inverse ds-text-heading--3xl",
2813
3077
  to: "/",
2814
3078
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2815
- className: "ds-h1",
3079
+ className: "",
2816
3080
  children: siteName
2817
3081
  })
2818
3082
  })
@@ -2864,7 +3128,7 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName , links: links
2864
3128
  menuName: "Main Nav",
2865
3129
  menuId: "site",
2866
3130
  menuClasses: "dc-c-header--links dc-c-header--mobile-links",
2867
- linkClasses: "ds-u-margin-left--1 ds-u-padding-bottom--2 ds-h5"
3131
+ linkClasses: "ds-u-margin-left--1 ds-u-padding-bottom--2 ds-text-heading--md"
2868
3132
  }),
2869
3133
  mobile && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2870
3134
  className: "cms-mobile-header--container",
@@ -2875,7 +3139,7 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName , links: links
2875
3139
  menuName: "CMS Main Header",
2876
3140
  menuId: "cms-mobile-header",
2877
3141
  linkClasses: "ds-u-margin-left--1 ds-u-margin-bottom--2",
2878
- menuClasses: "dc-c-header--links ds-u-font-size--small"
3142
+ menuClasses: "dc-c-header--links ds-u-font-size--sm ds-u-margin-bottom--2"
2879
3143
  })
2880
3144
  ]
2881
3145
  })
@@ -2971,10 +3235,11 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
2971
3235
  className: "ds-l-md-col--8",
2972
3236
  children: [
2973
3237
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
2974
- className: "ds-h4",
3238
+ className: "ds-text-heading--lg",
2975
3239
  children: emailTitle
2976
3240
  }),
2977
3241
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
3242
+ className: "ds-u-padding-bottom--2",
2978
3243
  children: emailBody
2979
3244
  })
2980
3245
  ]
@@ -3000,9 +3265,10 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3000
3265
  className: "ds-l-row ds-u-margin--0",
3001
3266
  children: [
3002
3267
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3003
- className: `dc-c-footer__resources ds-l-md-col--7 ds-l-sm-col--12 ds-u-padding-top--7 ds-u-padding-bottom--4 ${md ? "ds-u-padding-x--0" : ""} ${sm ? "ds-u-padding-x--4" : ""}`,
3268
+ className: `dc-c-footer__resources ds-l-md-col--7 ds-l-sm-col--12 ds-u-padding-top--7 ds-u-padding-bottom--4
3269
+ ${xs ? "ds-u-padding-x--0" : ""}`,
3004
3270
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3005
- className: "ds-l-lg-col--9 ds-l-md-col--11 ds-u-padding-x--0",
3271
+ className: "ds-l-lg-col--9 ds-l-md-col--11",
3006
3272
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3007
3273
  className: `ds-u-display--flex ${xs ? "ds-u-flex-direction--column" : "ds-u-flex-direction--row"}`,
3008
3274
  children: [
@@ -3010,11 +3276,11 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3010
3276
  className: "ds-u-margin-right--6 ds-u-margin-bottom--2",
3011
3277
  children: [
3012
3278
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
3013
- className: "ds-h6 dc-footer--heading ds-u-margin-bottom--2",
3279
+ className: "ds-text-heading--sm dc-footer--heading ds-u-margin-bottom--2",
3014
3280
  children: "Open data tools"
3015
3281
  }),
3016
3282
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
3017
- className: "ds-u-font-size--small ds-u-margin-bottom--3",
3283
+ className: "ds-u-font-size--sm ds-u-margin-bottom--3",
3018
3284
  children: footerOpenDataToolLinks.map((link)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
3019
3285
  className: "ds-u-margin-bottom--1",
3020
3286
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf8eeac354b9dd32$export$2e2bcd8739ae039), {
@@ -3028,11 +3294,11 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3028
3294
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3029
3295
  children: [
3030
3296
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
3031
- className: "ds-h6 dc-footer--heading ds-u-margin-bottom--2",
3297
+ className: "ds-text-heading--sm dc-footer--heading ds-u-margin-bottom--2",
3032
3298
  children: "Additional resources"
3033
3299
  }),
3034
3300
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
3035
- className: "ds-u-font-size--small",
3301
+ className: "ds-u-font-size--sm",
3036
3302
  children: footerAdditionalResourcesLinks.filter((link)=>{
3037
3303
  const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
3038
3304
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
@@ -3064,7 +3330,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3064
3330
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3065
3331
  className: `dc-c-footer__cms-information ds-l-md-col--5 ds-l-sm-col--12 ${md ? "ds-u-padding-left--7" : ""} ${sm ? " ds-u-padding-left--4" : ""} ds-u-padding-y--7`,
3066
3332
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3067
- className: "ds-u-font-size--small",
3333
+ className: "ds-u-font-size--sm",
3068
3334
  children: [
3069
3335
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3070
3336
  children: [
@@ -3105,7 +3371,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3105
3371
  }),
3106
3372
  trademarkContent,
3107
3373
  socialMediaLinks && /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
3108
- className: "ds-u-display--flex",
3374
+ className: "ds-u-display--flex ds-u-flex-direction--row",
3109
3375
  children: [
3110
3376
  socialMediaLinks.facebook && socialMediaLinks.facebook.url && /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
3111
3377
  className: "ds-u-margin-right--1",
@@ -3322,7 +3588,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3322
3588
  })
3323
3589
  }),
3324
3590
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3325
- className: "dc-c-footer__utility ds-l-container ds-u-padding-y--2 ds-u-font-size--small",
3591
+ className: "dc-c-footer__utility ds-l-container ds-u-padding-y--2 ds-u-font-size--sm",
3326
3592
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3327
3593
  className: "ds-l-row ",
3328
3594
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -3356,6 +3622,7 @@ $a6df0aa147323304$var$Footer.defaultProps = {
3356
3622
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
3357
3623
  }),
3358
3624
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
3625
+ className: "ds-u-padding-bottom--2",
3359
3626
  children: "7500 Security Boulevard, Baltimore, MD 21244"
3360
3627
  })
3361
3628
  ]
@@ -3443,7 +3710,7 @@ const $efc410f5f7ac5ef3$var$useSearchAPI = (rootUrl, initialSearchParams = {}, a
3443
3710
  page: Number(page),
3444
3711
  pageSize: pageSize
3445
3712
  };
3446
- const results = await (0, $116bd29db288848e$export$2d2256cb46e92ff7)(rootUrl, options, additionalParams);
3713
+ const results = await (0, $eff7d34c30f5a0fc$export$2d2256cb46e92ff7)(rootUrl, options, additionalParams);
3447
3714
  const itemKeys = Object.keys(results.data.results);
3448
3715
  const itemsArray = itemKeys.map((key)=>{
3449
3716
  return results.data.results[key];
@@ -3458,10 +3725,6 @@ const $efc410f5f7ac5ef3$var$useSearchAPI = (rootUrl, initialSearchParams = {}, a
3458
3725
  setSelectedFacets(defaultSelectedFacets);
3459
3726
  setPage(defaultPage);
3460
3727
  }
3461
- function updateSelectedFacets(currentFacet) {
3462
- const facets = (0, $116bd29db288848e$export$9ef1e909a5e43470)(currentFacet, selectedFacets);
3463
- setSelectedFacets(facets);
3464
- }
3465
3728
  (0, $hgUW1$useEffect)(()=>{
3466
3729
  if (totalItems !== null) setPage(1);
3467
3730
  }, [
@@ -3500,7 +3763,6 @@ const $efc410f5f7ac5ef3$var$useSearchAPI = (rootUrl, initialSearchParams = {}, a
3500
3763
  setPageSize: setPageSize,
3501
3764
  setSort: setSort,
3502
3765
  setSortOrder: setSortOrder,
3503
- updateSelectedFacets: updateSelectedFacets,
3504
3766
  setFulltext: setFulltext,
3505
3767
  resetFilters: resetFilters
3506
3768
  };
@@ -4061,7 +4323,6 @@ var $ec3e23baa005dc03$export$2e2bcd8739ae039 = $ec3e23baa005dc03$var$Breadcrumb;
4061
4323
 
4062
4324
 
4063
4325
 
4064
-
4065
4326
 
4066
4327
 
4067
4328
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
@@ -4072,9 +4333,9 @@ function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
4072
4333
  return new Date();
4073
4334
  }
4074
4335
  const $374c4669b044ddf8$var$QueryRow = ({ id: id , condition: condition , index: index , update: update , remove: remove , propertyOptions: propertyOptions , schema: schema })=>{
4075
- const md = (0, $hgUW1$useMediaQuery)({
4336
+ const sm = (0, $hgUW1$useMediaQuery)({
4076
4337
  minWidth: 0,
4077
- maxWidth: 768
4338
+ maxWidth: 544
4078
4339
  });
4079
4340
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
4080
4341
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
@@ -4113,24 +4374,26 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id , condition: condition , index:
4113
4374
  value
4114
4375
  ]);
4115
4376
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
4116
- className: "ds-u-display--flex ds-u-justify-content--between ds-u-align-items--center",
4377
+ className: "ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--between ds-u-md-justify-content--end ds-u-align-items--center",
4117
4378
  children: [
4118
4379
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
4119
4380
  options: propertyOptions,
4120
4381
  value: property,
4121
4382
  label: "Property",
4122
4383
  name: `${condition.key}_property`,
4123
- onChange: (e)=>setProperty(e.target.value)
4384
+ onChange: (e)=>setProperty(e.target.value),
4385
+ 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-md-padding-right--2 ds-u-margin-bottom--0 ds-u-md-margin-bottom--2"
4124
4386
  }),
4125
4387
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
4126
4388
  options: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[property].mysql_type),
4127
4389
  value: operator,
4128
- size: "small",
4129
4390
  label: "Operator",
4130
4391
  name: `${condition.key}_operator`,
4131
- onChange: (e)=>setOperator(e.target.value)
4392
+ onChange: (e)=>setOperator(e.target.value),
4393
+ 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"
4132
4394
  }),
4133
4395
  schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4396
+ 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",
4134
4397
  children: [
4135
4398
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
4136
4399
  className: "ds-c-label",
@@ -4140,7 +4403,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id , condition: condition , index:
4140
4403
  children: "Value"
4141
4404
  })
4142
4405
  }),
4143
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$reactdatepicker).default, {
4406
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$reactdatepicker), {
4144
4407
  name: `${condition.key}_date_value`,
4145
4408
  selected: (0, $7264a673914aa746$export$e284ae5d89467c8f)(startDate),
4146
4409
  onChange: (date)=>{
@@ -4158,22 +4421,14 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id , condition: condition , index:
4158
4421
  label: "Value",
4159
4422
  name: `${condition.key}_value`,
4160
4423
  value: (0, $7264a673914aa746$export$6b5e57d20078142b)(value, operator),
4161
- onChange: (e)=>setValue(e.target.value)
4424
+ onChange: (e)=>setValue(e.target.value),
4425
+ 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"
4162
4426
  }),
4163
4427
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
4164
- variation: md ? "transparent" : null,
4165
- size: "small",
4166
- className: "ds-u-margin-top--3",
4428
+ className: "ds-u-margin-top--2 ds-u-sm-margin-top--4 ds-u-lg-margin-top--4 ds-u-md-margin-top--2 ds-l-col--12 ds-l-md-col--4 ds-l-lg-col--2 ds-l-sm-col--4",
4167
4429
  "aria-label": "Delete filter",
4168
4430
  onClick: ()=>remove(index),
4169
- children: !md ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
4170
- children: "Delete filter"
4171
- }) : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
4172
- children: [
4173
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $847b0964185837b2$export$2e2bcd8739ae039), {}),
4174
- " "
4175
- ]
4176
- })
4431
+ children: "Delete filter"
4177
4432
  })
4178
4433
  ]
4179
4434
  });
@@ -4497,6 +4752,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id , dataset: dataset
4497
4752
  ref: apiDocs,
4498
4753
  children: [
4499
4754
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
4755
+ className: "ds-text-heading--2xl ds-u-margin-y--2",
4500
4756
  children: "Try the API"
4501
4757
  }),
4502
4758
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
@@ -4631,5 +4887,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
4631
4887
 
4632
4888
 
4633
4889
 
4634
- export {$f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $007dd6bfbe0f2956$export$2e2bcd8739ae039 as DatasetSearch, $6e7bdcbebdb4b794$export$2e2bcd8739ae039 as Dataset, $a5a6a06d249c33b8$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $dc6d3aaf3e07417b$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $f29607dfa784d2bd$export$2e2bcd8739ae039 as ResourceFilter, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $68d79598b83f3382$export$2e2bcd8739ae039 as useMetastoreDataset, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults};
4890
+ export {$f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $6e7bdcbebdb4b794$export$2e2bcd8739ae039 as Dataset, $a5a6a06d249c33b8$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $f29607dfa784d2bd$export$2e2bcd8739ae039 as ResourceFilter, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $68d79598b83f3382$export$2e2bcd8739ae039 as useMetastoreDataset, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults};
4635
4891
  //# sourceMappingURL=main.js.map