@civicactions/cmsds-open-data-components 3.4.1 → 3.4.3-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 +77 -193
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +33 -153
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2,7 +2,6 @@ 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, createContext as $hgUW1$createContext, useMemo as $hgUW1$useMemo, useContext as $hgUW1$useContext, useCallback as $hgUW1$useCallback} from "react";
|
|
4
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, Dialog as $hgUW1$Dialog, Choice as $hgUW1$Choice, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, Table as $hgUW1$Table, TableBody as $hgUW1$TableBody, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableHead as $hgUW1$TableHead, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, Badge as $hgUW1$Badge} from "@cmsgov/design-system";
|
|
5
|
-
import $hgUW1$proptypes from "prop-types";
|
|
6
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";
|
|
7
6
|
import $hgUW1$qs from "qs";
|
|
8
7
|
import $hgUW1$swaggeruireact from "swagger-ui-react";
|
|
@@ -12,6 +11,7 @@ import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryCli
|
|
|
12
11
|
import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
|
|
13
12
|
import $hgUW1$dompurify from "dompurify";
|
|
14
13
|
import $hgUW1$lodashtruncate from "lodash.truncate";
|
|
14
|
+
import $hgUW1$proptypes from "prop-types";
|
|
15
15
|
import {createColumnHelper as $hgUW1$createColumnHelper, useReactTable as $hgUW1$useReactTable, getCoreRowModel as $hgUW1$getCoreRowModel, getFilteredRowModel as $hgUW1$getFilteredRowModel, getPaginationRowModel as $hgUW1$getPaginationRowModel, getSortedRowModel as $hgUW1$getSortedRowModel, flexRender as $hgUW1$flexRender} from "@tanstack/react-table";
|
|
16
16
|
import {KeyboardSensor as $hgUW1$KeyboardSensor, PointerSensor as $hgUW1$PointerSensor, useSensors as $hgUW1$useSensors, useSensor as $hgUW1$useSensor, DndContext as $hgUW1$DndContext, closestCenter as $hgUW1$closestCenter} from "@dnd-kit/core";
|
|
17
17
|
import {sortableKeyboardCoordinates as $hgUW1$sortableKeyboardCoordinates, arrayMove as $hgUW1$arrayMove, SortableContext as $hgUW1$SortableContext, verticalListSortingStrategy as $hgUW1$verticalListSortingStrategy, useSortable as $hgUW1$useSortable} from "@dnd-kit/sortable";
|
|
@@ -35,8 +35,7 @@ function $parcel$interopDefault(a) {
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
const $24918217e48ac525$var$NavLink = ({ link: link, className: className, wrapLabel: wrapLabel, clickHandler: clickHandler })=>{
|
|
38
|
+
const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null, wrapLabel: wrapLabel = false, clickHandler: clickHandler })=>{
|
|
40
39
|
const innerHtml = wrapLabel ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
41
40
|
children: link.label
|
|
42
41
|
}) : link.label;
|
|
@@ -48,21 +47,6 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className, wrapL
|
|
|
48
47
|
});
|
|
49
48
|
// }
|
|
50
49
|
};
|
|
51
|
-
$24918217e48ac525$var$NavLink.defaultProps = {
|
|
52
|
-
wrapLabel: false,
|
|
53
|
-
className: null
|
|
54
|
-
};
|
|
55
|
-
$24918217e48ac525$var$NavLink.propTypes = {
|
|
56
|
-
link: (0, $hgUW1$proptypes).shape({
|
|
57
|
-
url: (0, $hgUW1$proptypes).string,
|
|
58
|
-
label: (0, $hgUW1$proptypes).string,
|
|
59
|
-
nonReactLink: (0, $hgUW1$proptypes).bool
|
|
60
|
-
}).isRequired,
|
|
61
|
-
className: (0, $hgUW1$proptypes).string,
|
|
62
|
-
/**
|
|
63
|
-
* Will wrap the link label in a span for help with styling.
|
|
64
|
-
*/ wrapLabel: (0, $hgUW1$proptypes).bool
|
|
65
|
-
};
|
|
66
50
|
var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
|
|
67
51
|
|
|
68
52
|
|
|
@@ -122,7 +106,7 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
|
|
|
122
106
|
|
|
123
107
|
|
|
124
108
|
|
|
125
|
-
const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId: menuId, menuClasses: menuClasses, linkClasses: linkClasses, wrapLabel: wrapLabel, clickHandler: clickHandler })=>{
|
|
109
|
+
const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId: menuId, menuClasses: menuClasses, linkClasses: linkClasses, wrapLabel: wrapLabel = false, clickHandler: clickHandler })=>{
|
|
126
110
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
|
|
127
111
|
className: `dc-c-${menuId}-menu`,
|
|
128
112
|
"aria-labelledby": `dc-c-${menuId}-menu--heading`,
|
|
@@ -153,9 +137,6 @@ const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId
|
|
|
153
137
|
]
|
|
154
138
|
});
|
|
155
139
|
};
|
|
156
|
-
$f57121650539d8c5$var$NavBar.defaultProps = {
|
|
157
|
-
wrapLabel: false
|
|
158
|
-
};
|
|
159
140
|
var $f57121650539d8c5$export$2e2bcd8739ae039 = $f57121650539d8c5$var$NavBar;
|
|
160
141
|
|
|
161
142
|
|
|
@@ -219,7 +200,7 @@ var $c49454ea7d1c4579$export$2e2bcd8739ae039 = $c49454ea7d1c4579$var$ErrorBounda
|
|
|
219
200
|
|
|
220
201
|
|
|
221
202
|
|
|
222
|
-
const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth, additionalParams: additionalParams, rootUrl: rootUrl })=>{
|
|
203
|
+
const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, additionalParams: additionalParams, rootUrl: rootUrl })=>{
|
|
223
204
|
const hasACA = additionalParams && additionalParams.ACA ? true : false;
|
|
224
205
|
let params = {
|
|
225
206
|
authentication: hideAuth ? false : undefined,
|
|
@@ -237,9 +218,6 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth, additionalParams: a
|
|
|
237
218
|
})
|
|
238
219
|
});
|
|
239
220
|
};
|
|
240
|
-
$c96c4b9ef7203c1f$var$APIPage.defaultProps = {
|
|
241
|
-
hideAuth: true
|
|
242
|
-
};
|
|
243
221
|
var $c96c4b9ef7203c1f$export$2e2bcd8739ae039 = $c96c4b9ef7203c1f$var$APIPage;
|
|
244
222
|
|
|
245
223
|
|
|
@@ -302,7 +280,13 @@ var $026cb986f9fea2b1$export$2e2bcd8739ae039 = $026cb986f9fea2b1$var$PageNotFoun
|
|
|
302
280
|
|
|
303
281
|
|
|
304
282
|
|
|
305
|
-
const $61ff88fb3f6ee2c8$var$queryClient = new (0, $hgUW1$QueryClient)(
|
|
283
|
+
const $61ff88fb3f6ee2c8$var$queryClient = new (0, $hgUW1$QueryClient)({
|
|
284
|
+
defaultOptions: {
|
|
285
|
+
queries: {
|
|
286
|
+
refetchOnWindowFocus: false
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
});
|
|
306
290
|
const $61ff88fb3f6ee2c8$var$withQueryProvider = (WrappedComponent)=>(props)=>{
|
|
307
291
|
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$QueryClientProvider), {
|
|
308
292
|
client: $61ff88fb3f6ee2c8$var$queryClient,
|
|
@@ -552,7 +536,12 @@ var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemI
|
|
|
552
536
|
|
|
553
537
|
|
|
554
538
|
|
|
555
|
-
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options
|
|
539
|
+
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
|
|
540
|
+
year: "numeric",
|
|
541
|
+
month: "long",
|
|
542
|
+
day: "numeric",
|
|
543
|
+
timeZone: "UTC"
|
|
544
|
+
} })=>{
|
|
556
545
|
const rawDate = new Date(date);
|
|
557
546
|
let modifiedDate = "";
|
|
558
547
|
if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
|
|
@@ -560,14 +549,6 @@ const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options })
|
|
|
560
549
|
children: modifiedDate
|
|
561
550
|
});
|
|
562
551
|
};
|
|
563
|
-
$bd76a91923d7e8a7$var$TransformedDate.defaultProps = {
|
|
564
|
-
options: {
|
|
565
|
-
year: "numeric",
|
|
566
|
-
month: "long",
|
|
567
|
-
day: "numeric",
|
|
568
|
-
timeZone: "UTC"
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
552
|
var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$TransformedDate;
|
|
572
553
|
|
|
573
554
|
|
|
@@ -906,7 +887,10 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
|
|
|
906
887
|
|
|
907
888
|
|
|
908
889
|
const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
909
|
-
const { rootUrl: rootUrl, surveyLink: surveyLink, additionalParams: additionalParams, enableSort: enableSort, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort
|
|
890
|
+
const { rootUrl: rootUrl, surveyLink: surveyLink, additionalParams: additionalParams, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
|
|
891
|
+
defaultSort: "modified",
|
|
892
|
+
defaultOrder: "desc"
|
|
893
|
+
}, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton } = props;
|
|
910
894
|
const sortOptions = [
|
|
911
895
|
{
|
|
912
896
|
label: "Newest",
|
|
@@ -1252,40 +1236,6 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1252
1236
|
]
|
|
1253
1237
|
});
|
|
1254
1238
|
};
|
|
1255
|
-
$e873081a6e8f024e$var$DatasetSearch.defaultProps = {
|
|
1256
|
-
pageTitle: "Dataset Explorer",
|
|
1257
|
-
introText: "",
|
|
1258
|
-
fulltextLabel: "Search term",
|
|
1259
|
-
fulltextLabelClassName: "ds-u-visibility--screen-reader",
|
|
1260
|
-
fulltextPlaceholder: "Search datasets",
|
|
1261
|
-
filterTitle: "Tags",
|
|
1262
|
-
formClassName: "ds-u-display--flex ds-u-justify-content--between ds-u-margin-bottom--2",
|
|
1263
|
-
enableSort: true,
|
|
1264
|
-
sortOptions: [
|
|
1265
|
-
{
|
|
1266
|
-
label: "Newest",
|
|
1267
|
-
value: "newest"
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
label: "Oldest",
|
|
1271
|
-
value: "oldest"
|
|
1272
|
-
},
|
|
1273
|
-
{
|
|
1274
|
-
label: "Title A-Z",
|
|
1275
|
-
value: "titleAZ"
|
|
1276
|
-
},
|
|
1277
|
-
{
|
|
1278
|
-
label: "Title Z-A",
|
|
1279
|
-
value: "titleZA"
|
|
1280
|
-
}
|
|
1281
|
-
],
|
|
1282
|
-
defaultSort: {
|
|
1283
|
-
defaultSort: "modified",
|
|
1284
|
-
defaultOrder: "desc"
|
|
1285
|
-
},
|
|
1286
|
-
showLargeFileWarning: false,
|
|
1287
|
-
showDownloadIcon: false
|
|
1288
|
-
};
|
|
1289
1239
|
var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($e873081a6e8f024e$var$DatasetSearch);
|
|
1290
1240
|
|
|
1291
1241
|
|
|
@@ -2490,7 +2440,8 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
|
|
|
2490
2440
|
enabled: datasetDictionaryEndpoint !== undefined
|
|
2491
2441
|
});
|
|
2492
2442
|
const datasetDictionary = data && data.data && data.data.fields && data.data.fields.length ? data.data.fields : null;
|
|
2493
|
-
return /*#__PURE__*/ (0, $hgUW1$jsxs)(
|
|
2443
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
2444
|
+
"data-testid": "dataset-dictionary-tab",
|
|
2494
2445
|
children: [
|
|
2495
2446
|
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
2496
2447
|
className: "ds-text-heading--2xl ds-u-margin-y--3",
|
|
@@ -3296,7 +3247,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
|
|
|
3296
3247
|
|
|
3297
3248
|
|
|
3298
3249
|
|
|
3299
|
-
const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className })=>{
|
|
3250
|
+
const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
|
|
3300
3251
|
const numTotalRows = totalRows;
|
|
3301
3252
|
if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
3302
3253
|
className: className,
|
|
@@ -3330,9 +3281,6 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
|
|
|
3330
3281
|
]
|
|
3331
3282
|
});
|
|
3332
3283
|
};
|
|
3333
|
-
$2ed0091f7e32d1e6$var$DataTablePageResults.defaultProps = {
|
|
3334
|
-
className: "data-table-results"
|
|
3335
|
-
};
|
|
3336
3284
|
$2ed0091f7e32d1e6$var$DataTablePageResults.propTypes = {
|
|
3337
3285
|
className: (0, $hgUW1$proptypes).string,
|
|
3338
3286
|
totalRows: (0, $hgUW1$proptypes).number.isRequired,
|
|
@@ -3704,7 +3652,7 @@ function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
|
|
|
3704
3652
|
if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
|
|
3705
3653
|
return cond;
|
|
3706
3654
|
}
|
|
3707
|
-
const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams, customColumns: customColumns, isModal: isModal = false })=>{
|
|
3655
|
+
const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams = false, customColumns: customColumns, isModal: isModal = false })=>{
|
|
3708
3656
|
const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
|
|
3709
3657
|
const fields = Object.keys(schema[id].fields);
|
|
3710
3658
|
const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
|
|
@@ -3865,9 +3813,6 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includ
|
|
|
3865
3813
|
})
|
|
3866
3814
|
});
|
|
3867
3815
|
};
|
|
3868
|
-
$ee4ad47aa483e5b5$var$QueryBuilder.defaultProps = {
|
|
3869
|
-
includeSearchParams: true
|
|
3870
|
-
};
|
|
3871
3816
|
var $ee4ad47aa483e5b5$export$2e2bcd8739ae039 = $ee4ad47aa483e5b5$var$QueryBuilder;
|
|
3872
3817
|
|
|
3873
3818
|
|
|
@@ -4104,7 +4049,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4104
4049
|
})
|
|
4105
4050
|
}),
|
|
4106
4051
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
4107
|
-
className: "ds-l-md-col--12 ds-u-
|
|
4052
|
+
className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
|
|
4108
4053
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
|
|
4109
4054
|
className: "ds-u-margin--0",
|
|
4110
4055
|
children: [
|
|
@@ -4183,7 +4128,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4183
4128
|
metadataMapping: metadataMapping
|
|
4184
4129
|
})
|
|
4185
4130
|
}),
|
|
4186
|
-
|
|
4131
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TabPanel), {
|
|
4187
4132
|
id: "data-dictionary",
|
|
4188
4133
|
tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
4189
4134
|
className: "ds-u-color--primary",
|
|
@@ -4195,13 +4140,18 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4195
4140
|
]
|
|
4196
4141
|
}),
|
|
4197
4142
|
className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
|
|
4198
|
-
children:
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4143
|
+
children: [
|
|
4144
|
+
displayDataDictionaryTab && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
|
|
4145
|
+
datasetSitewideDictionary: datasetSitewideDictionary,
|
|
4146
|
+
datasetDictionaryEndpoint: distribution.data.describedBy,
|
|
4147
|
+
title: "Data Dictionary",
|
|
4148
|
+
additionalParams: additionalParams,
|
|
4149
|
+
csvDownload: dataDictionaryCSV
|
|
4150
|
+
}),
|
|
4151
|
+
!displayDataDictionaryTab && /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
4152
|
+
children: "There is no Data Dictionary associated with this dataset."
|
|
4153
|
+
})
|
|
4154
|
+
]
|
|
4205
4155
|
}),
|
|
4206
4156
|
distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
|
|
4207
4157
|
id: "api",
|
|
@@ -4251,7 +4201,7 @@ var $a0f13962e513caa1$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
|
|
|
4251
4201
|
|
|
4252
4202
|
|
|
4253
4203
|
|
|
4254
|
-
const $e5bfafc6d4e6f207$var$SearchModal = ({
|
|
4204
|
+
const $e5bfafc6d4e6f207$var$SearchModal = ({ headingText: headingText = "Dataset Search", buttonSize: buttonSize = null, inversedSearchButton: inversedSearchButton = true })=>{
|
|
4255
4205
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
4256
4206
|
const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
|
|
4257
4207
|
const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
|
|
@@ -4324,13 +4274,6 @@ const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc, appNodeId:
|
|
|
4324
4274
|
]
|
|
4325
4275
|
});
|
|
4326
4276
|
};
|
|
4327
|
-
$e5bfafc6d4e6f207$var$SearchModal.defaultProps = {
|
|
4328
|
-
appNodeId: "App",
|
|
4329
|
-
buttonSize: null,
|
|
4330
|
-
inversedModalButton: true,
|
|
4331
|
-
inversedSearchButton: true,
|
|
4332
|
-
headingText: "Dataset Search"
|
|
4333
|
-
};
|
|
4334
4277
|
var $e5bfafc6d4e6f207$export$2e2bcd8739ae039 = $e5bfafc6d4e6f207$var$SearchModal;
|
|
4335
4278
|
|
|
4336
4279
|
|
|
@@ -4338,7 +4281,13 @@ var $52466563e0d69ea8$exports = {};
|
|
|
4338
4281
|
$52466563e0d69ea8$exports = new URL("CMSGovLogo-O.90ce815c.png", import.meta.url).toString();
|
|
4339
4282
|
|
|
4340
4283
|
|
|
4341
|
-
const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses: headerClasses, linkClasses: linkClasses, links: links, org: org
|
|
4284
|
+
const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses: headerClasses, linkClasses: linkClasses = "ds-u-xl-margin-right--4 ds-u-margin-right--3 ds-u-padding-y--3", links: links, org: org = {
|
|
4285
|
+
tagline: "The Centers for Medicare & Medicaid Services",
|
|
4286
|
+
url: "https://cms.gov",
|
|
4287
|
+
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4288
|
+
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4289
|
+
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services"
|
|
4290
|
+
}, searchModalText: searchModalText, customSearch: customSearch = false, includeTopNav: includeTopNav = true, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton })=>{
|
|
4342
4291
|
const { url: url, tagline: tagline, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText } = org;
|
|
4343
4292
|
const headerClassString = headerClasses ?? "dc-c-header ds-base";
|
|
4344
4293
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
|
|
@@ -4422,19 +4371,6 @@ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses
|
|
|
4422
4371
|
]
|
|
4423
4372
|
});
|
|
4424
4373
|
};
|
|
4425
|
-
$2db98b8f69058a30$var$DesktopHeader.defaultProps = {
|
|
4426
|
-
org: {
|
|
4427
|
-
tagline: "The Centers for Medicare & Medicaid Services",
|
|
4428
|
-
url: "https://cms.gov",
|
|
4429
|
-
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4430
|
-
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4431
|
-
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services"
|
|
4432
|
-
},
|
|
4433
|
-
includeTopNav: true,
|
|
4434
|
-
customSearch: false,
|
|
4435
|
-
linkClasses: "ds-u-xl-margin-right--4 ds-u-margin-right--3 ds-u-padding-y--3",
|
|
4436
|
-
includeSearch: true
|
|
4437
|
-
};
|
|
4438
4374
|
$2db98b8f69058a30$var$DesktopHeader.propTypes = {
|
|
4439
4375
|
siteName: (0, $hgUW1$proptypes).node.isRequired,
|
|
4440
4376
|
includeTopNav: (0, $hgUW1$proptypes).bool,
|
|
@@ -4460,7 +4396,14 @@ $972485213997ff8b$exports = new URL("CMSgov@2x-white-O.78cd05d3.png", import.met
|
|
|
4460
4396
|
|
|
4461
4397
|
|
|
4462
4398
|
let $caaccb8ea608e518$var$mobileHeaderMenuClassName = "dc-c-mobile-header--menu";
|
|
4463
|
-
const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links, org: org
|
|
4399
|
+
const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links, org: org = {
|
|
4400
|
+
tagline: "The Centers for Medicare and Medicaid Services",
|
|
4401
|
+
url: "https://cms.gov",
|
|
4402
|
+
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4403
|
+
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4404
|
+
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4405
|
+
inverseLogo: (0, (/*@__PURE__*/$parcel$interopDefault($972485213997ff8b$exports)))
|
|
4406
|
+
}, searchModalText: searchModalText, customSearch: customSearch = false, includeTopNav: includeTopNav = true, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton, includeSearch: includeSearch = true })=>{
|
|
4464
4407
|
const { url: url, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText, inverseLogo: inverseLogo } = org;
|
|
4465
4408
|
const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
|
|
4466
4409
|
const mobile = (0, $hgUW1$useMediaQuery)({
|
|
@@ -4666,25 +4609,13 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links,
|
|
|
4666
4609
|
]
|
|
4667
4610
|
});
|
|
4668
4611
|
};
|
|
4669
|
-
$caaccb8ea608e518$var$MobileHeader.defaultProps = {
|
|
4670
|
-
org: {
|
|
4671
|
-
tagline: "The Centers for Medicare and Medicaid Services",
|
|
4672
|
-
url: "https://cms.gov",
|
|
4673
|
-
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4674
|
-
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4675
|
-
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4676
|
-
inverseLogo: (0, (/*@__PURE__*/$parcel$interopDefault($972485213997ff8b$exports)))
|
|
4677
|
-
},
|
|
4678
|
-
includeTopNav: true,
|
|
4679
|
-
includeSearch: true
|
|
4680
|
-
};
|
|
4681
4612
|
var $caaccb8ea608e518$export$2e2bcd8739ae039 = $caaccb8ea608e518$var$MobileHeader;
|
|
4682
4613
|
|
|
4683
4614
|
|
|
4684
4615
|
|
|
4685
4616
|
|
|
4686
4617
|
|
|
4687
|
-
const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth, desktopMinWidth: desktopMinWidth, siteName: siteName, links: links, org: org, includeTopNav: includeTopNav })=>{
|
|
4618
|
+
const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth = 1023, desktopMinWidth: desktopMinWidth = 1024, siteName: siteName, links: links, org: org, includeTopNav: includeTopNav = true })=>{
|
|
4688
4619
|
const mobile = (0, $hgUW1$useMediaQuery)({
|
|
4689
4620
|
minWidth: 0,
|
|
4690
4621
|
maxWidth: mobileMaxWidth
|
|
@@ -4709,11 +4640,6 @@ const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth, desktopM
|
|
|
4709
4640
|
]
|
|
4710
4641
|
});
|
|
4711
4642
|
};
|
|
4712
|
-
$a5a6a06d249c33b8$var$Header.defaultProps = {
|
|
4713
|
-
mobileMaxWidth: 1023,
|
|
4714
|
-
desktopMinWidth: 1024,
|
|
4715
|
-
includeTopNav: true
|
|
4716
|
-
};
|
|
4717
4643
|
var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
|
|
4718
4644
|
|
|
4719
4645
|
|
|
@@ -4724,7 +4650,17 @@ var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
|
|
|
4724
4650
|
|
|
4725
4651
|
|
|
4726
4652
|
|
|
4727
|
-
const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail, emailTitle: emailTitle, emailBody: emailBody, emailLink: emailLink, emailButton: emailButton, socialMediaLinks: socialMediaLinks, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent
|
|
4653
|
+
const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = true, emailTitle: emailTitle = "Get Email Updates", emailBody: emailBody = "Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.", emailLink: emailLink = "", emailButton: emailButton = "Sign up for email updates", socialMediaLinks: socialMediaLinks = null, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent = /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
4654
|
+
children: [
|
|
4655
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
4656
|
+
children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
|
|
4657
|
+
}),
|
|
4658
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
4659
|
+
className: "ds-u-padding-bottom--2",
|
|
4660
|
+
children: "7500 Security Boulevard, Baltimore, MD 21244"
|
|
4661
|
+
})
|
|
4662
|
+
]
|
|
4663
|
+
}) })=>{
|
|
4728
4664
|
const { footerOpenDataToolLinks: footerOpenDataToolLinks, footerAdditionalResourcesLinks: footerAdditionalResourcesLinks, footerUtilityLinks: footerUtilityLinks } = links;
|
|
4729
4665
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("footer", {
|
|
4730
4666
|
className: "dc-c-footer",
|
|
@@ -5110,25 +5046,6 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail, emai
|
|
|
5110
5046
|
]
|
|
5111
5047
|
});
|
|
5112
5048
|
};
|
|
5113
|
-
$a6df0aa147323304$var$Footer.defaultProps = {
|
|
5114
|
-
showEmail: true,
|
|
5115
|
-
emailTitle: "Get Email Updates",
|
|
5116
|
-
emailBody: "Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.",
|
|
5117
|
-
emailLink: "",
|
|
5118
|
-
emailButton: "Sign up for email updates",
|
|
5119
|
-
socialMediaLinks: null,
|
|
5120
|
-
trademarkContent: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
5121
|
-
children: [
|
|
5122
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5123
|
-
children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
|
|
5124
|
-
}),
|
|
5125
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5126
|
-
className: "ds-u-padding-bottom--2",
|
|
5127
|
-
children: "7500 Security Boulevard, Baltimore, MD 21244"
|
|
5128
|
-
})
|
|
5129
|
-
]
|
|
5130
|
-
})
|
|
5131
|
-
};
|
|
5132
5049
|
$a6df0aa147323304$var$Footer.propTypes = {
|
|
5133
5050
|
showEmail: (0, $hgUW1$proptypes).bool,
|
|
5134
5051
|
emailTitle: (0, $hgUW1$proptypes).string,
|
|
@@ -5298,7 +5215,7 @@ const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
|
|
|
5298
5215
|
|
|
5299
5216
|
|
|
5300
5217
|
const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
|
|
5301
|
-
const { documentationList: documentationList, children: children } = props;
|
|
5218
|
+
const { documentationList: documentationList = (0, $c7bf75f7e8a68780$export$7850f4d545d994c6), children: children } = props;
|
|
5302
5219
|
const defaultContent = /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5303
5220
|
children: "Some datasets are extremely large and may be difficult to download and/or cause computer performance issues. The Centers for Medicare and Medicaid Services (CMS) recommends using WinZip, WinRAR, or 7-Zip for file decompression."
|
|
5304
5221
|
});
|
|
@@ -5350,12 +5267,6 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
|
|
|
5350
5267
|
})
|
|
5351
5268
|
});
|
|
5352
5269
|
};
|
|
5353
|
-
$669d2782ec2e2250$var$SpecsAndLimits.defaultProps = {
|
|
5354
|
-
documentationList: (0, $c7bf75f7e8a68780$export$7850f4d545d994c6),
|
|
5355
|
-
content: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5356
|
-
children: "Some datasets are extremely large and may be difficult to download and/or cause computer performance issues. The Centers for Medicare and Medicaid Services (CMS) recommends using WinZip, WinRAR, or 7-Zip for file decompression."
|
|
5357
|
-
})
|
|
5358
|
-
};
|
|
5359
5270
|
var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLimits;
|
|
5360
5271
|
|
|
5361
5272
|
|
|
@@ -5463,7 +5374,7 @@ var $efc410f5f7ac5ef3$export$2e2bcd8739ae039 = $efc410f5f7ac5ef3$var$useSearchAP
|
|
|
5463
5374
|
|
|
5464
5375
|
|
|
5465
5376
|
|
|
5466
|
-
const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl, searchKey: searchKey, textfieldLabel: textfieldLabel, searchButtonText: searchButtonText })=>{
|
|
5377
|
+
const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
|
|
5467
5378
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
5468
5379
|
const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
|
|
5469
5380
|
function submitHero(e) {
|
|
@@ -5537,12 +5448,6 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
|
|
|
5537
5448
|
})
|
|
5538
5449
|
});
|
|
5539
5450
|
};
|
|
5540
|
-
$59a079354baa335c$var$Hero.defaultProps = {
|
|
5541
|
-
searchKey: "fulltext",
|
|
5542
|
-
searchUrl: "datasets",
|
|
5543
|
-
textfieldLabel: "Search for a dataset",
|
|
5544
|
-
searchButtonText: "Search"
|
|
5545
|
-
};
|
|
5546
5451
|
var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
|
|
5547
5452
|
|
|
5548
5453
|
|
|
@@ -5595,8 +5500,12 @@ var $1e012d1e3b534af0$export$2e2bcd8739ae039 = $1e012d1e3b534af0$var$DataTableDe
|
|
|
5595
5500
|
|
|
5596
5501
|
|
|
5597
5502
|
|
|
5598
|
-
const $7848c69a021266f7$var$DataTableRowChanger = (
|
|
5599
|
-
|
|
5503
|
+
const $7848c69a021266f7$var$DataTableRowChanger = ({ limit: limit, rowOptions: rowOptions = [
|
|
5504
|
+
10,
|
|
5505
|
+
25,
|
|
5506
|
+
50,
|
|
5507
|
+
100
|
|
5508
|
+
], setLimit: setLimit })=>{
|
|
5600
5509
|
const rowOptionsFormatted = rowOptions.map((row)=>({
|
|
5601
5510
|
label: row.toString(),
|
|
5602
5511
|
value: row.toString()
|
|
@@ -5613,14 +5522,6 @@ const $7848c69a021266f7$var$DataTableRowChanger = (props)=>{
|
|
|
5613
5522
|
})
|
|
5614
5523
|
});
|
|
5615
5524
|
};
|
|
5616
|
-
$7848c69a021266f7$var$DataTableRowChanger.defaultProps = {
|
|
5617
|
-
rowOptions: [
|
|
5618
|
-
10,
|
|
5619
|
-
25,
|
|
5620
|
-
50,
|
|
5621
|
-
100
|
|
5622
|
-
]
|
|
5623
|
-
};
|
|
5624
5525
|
$7848c69a021266f7$var$DataTableRowChanger.propTypes = {
|
|
5625
5526
|
rowOptions: (0, $hgUW1$proptypes).arrayOf((0, $hgUW1$proptypes).number),
|
|
5626
5527
|
setLimit: (0, $hgUW1$proptypes).func.isRequired,
|
|
@@ -5864,7 +5765,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
|
|
|
5864
5765
|
value: filterValue || ""
|
|
5865
5766
|
});
|
|
5866
5767
|
}
|
|
5867
|
-
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize })=>{
|
|
5768
|
+
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
|
|
5868
5769
|
const { resource: resource, customColumns: customColumns } = (0, $hgUW1$useContext)((0, $a0f13962e513caa1$export$a7997ae78b143b));
|
|
5869
5770
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
5870
5771
|
id: "resource-preview",
|
|
@@ -5879,17 +5780,6 @@ const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id:
|
|
|
5879
5780
|
})
|
|
5880
5781
|
});
|
|
5881
5782
|
};
|
|
5882
|
-
$626282d9a03c51d5$var$ResourcePreview.defaultProps = {
|
|
5883
|
-
options: {
|
|
5884
|
-
layout: "flex",
|
|
5885
|
-
columnFilter: false,
|
|
5886
|
-
columnSort: true,
|
|
5887
|
-
columnResize: true
|
|
5888
|
-
},
|
|
5889
|
-
truncateCellHeader: true,
|
|
5890
|
-
defaultSort: [],
|
|
5891
|
-
canResize: true
|
|
5892
|
-
};
|
|
5893
5783
|
var $626282d9a03c51d5$export$2e2bcd8739ae039 = $626282d9a03c51d5$var$ResourcePreview;
|
|
5894
5784
|
|
|
5895
5785
|
|
|
@@ -6123,7 +6013,7 @@ function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
|
|
|
6123
6013
|
if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
|
|
6124
6014
|
return cond;
|
|
6125
6015
|
}
|
|
6126
|
-
const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams, customColumns: customColumns })=>{
|
|
6016
|
+
const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams = true, customColumns: customColumns })=>{
|
|
6127
6017
|
const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
|
|
6128
6018
|
const fields = Object.keys(schema[id].fields);
|
|
6129
6019
|
const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
|
|
@@ -6244,9 +6134,6 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includ
|
|
|
6244
6134
|
})
|
|
6245
6135
|
});
|
|
6246
6136
|
};
|
|
6247
|
-
$3b6ca952e79f0695$var$QueryBuilder.defaultProps = {
|
|
6248
|
-
includeSearchParams: true
|
|
6249
|
-
};
|
|
6250
6137
|
var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilder;
|
|
6251
6138
|
|
|
6252
6139
|
|
|
@@ -6421,9 +6308,6 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
6421
6308
|
})
|
|
6422
6309
|
});
|
|
6423
6310
|
};
|
|
6424
|
-
$dd6eb2b30d7ad75d$var$FilteredResourceBody.defaultProps = {
|
|
6425
|
-
apiDocPage: "/api"
|
|
6426
|
-
};
|
|
6427
6311
|
var $dd6eb2b30d7ad75d$export$2e2bcd8739ae039 = $dd6eb2b30d7ad75d$var$FilteredResourceBody;
|
|
6428
6312
|
|
|
6429
6313
|
|