@civicactions/cmsds-open-data-components 3.4.3-alpha.1 → 3.4.3
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 +186 -62
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +153 -33
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2,6 +2,7 @@ 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";
|
|
5
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";
|
|
6
7
|
import $hgUW1$qs from "qs";
|
|
7
8
|
import $hgUW1$swaggeruireact from "swagger-ui-react";
|
|
@@ -11,7 +12,6 @@ import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryCli
|
|
|
11
12
|
import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
|
|
12
13
|
import $hgUW1$dompurify from "dompurify";
|
|
13
14
|
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,7 +35,8 @@ function $parcel$interopDefault(a) {
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
const $24918217e48ac525$var$NavLink = ({ link: link, className: className, wrapLabel: wrapLabel, clickHandler: clickHandler })=>{
|
|
39
40
|
const innerHtml = wrapLabel ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
40
41
|
children: link.label
|
|
41
42
|
}) : link.label;
|
|
@@ -47,6 +48,21 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
|
|
|
47
48
|
});
|
|
48
49
|
// }
|
|
49
50
|
};
|
|
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
|
+
};
|
|
50
66
|
var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
|
|
51
67
|
|
|
52
68
|
|
|
@@ -106,7 +122,7 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
|
|
|
106
122
|
|
|
107
123
|
|
|
108
124
|
|
|
109
|
-
const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId: menuId, menuClasses: menuClasses, linkClasses: linkClasses, wrapLabel: wrapLabel
|
|
125
|
+
const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId: menuId, menuClasses: menuClasses, linkClasses: linkClasses, wrapLabel: wrapLabel, clickHandler: clickHandler })=>{
|
|
110
126
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
|
|
111
127
|
className: `dc-c-${menuId}-menu`,
|
|
112
128
|
"aria-labelledby": `dc-c-${menuId}-menu--heading`,
|
|
@@ -137,6 +153,9 @@ const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId
|
|
|
137
153
|
]
|
|
138
154
|
});
|
|
139
155
|
};
|
|
156
|
+
$f57121650539d8c5$var$NavBar.defaultProps = {
|
|
157
|
+
wrapLabel: false
|
|
158
|
+
};
|
|
140
159
|
var $f57121650539d8c5$export$2e2bcd8739ae039 = $f57121650539d8c5$var$NavBar;
|
|
141
160
|
|
|
142
161
|
|
|
@@ -200,7 +219,7 @@ var $c49454ea7d1c4579$export$2e2bcd8739ae039 = $c49454ea7d1c4579$var$ErrorBounda
|
|
|
200
219
|
|
|
201
220
|
|
|
202
221
|
|
|
203
|
-
const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth
|
|
222
|
+
const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth, additionalParams: additionalParams, rootUrl: rootUrl })=>{
|
|
204
223
|
const hasACA = additionalParams && additionalParams.ACA ? true : false;
|
|
205
224
|
let params = {
|
|
206
225
|
authentication: hideAuth ? false : undefined,
|
|
@@ -218,6 +237,9 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, additionalPa
|
|
|
218
237
|
})
|
|
219
238
|
});
|
|
220
239
|
};
|
|
240
|
+
$c96c4b9ef7203c1f$var$APIPage.defaultProps = {
|
|
241
|
+
hideAuth: true
|
|
242
|
+
};
|
|
221
243
|
var $c96c4b9ef7203c1f$export$2e2bcd8739ae039 = $c96c4b9ef7203c1f$var$APIPage;
|
|
222
244
|
|
|
223
245
|
|
|
@@ -536,12 +558,7 @@ var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemI
|
|
|
536
558
|
|
|
537
559
|
|
|
538
560
|
|
|
539
|
-
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options
|
|
540
|
-
year: "numeric",
|
|
541
|
-
month: "long",
|
|
542
|
-
day: "numeric",
|
|
543
|
-
timeZone: "UTC"
|
|
544
|
-
} })=>{
|
|
561
|
+
const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options })=>{
|
|
545
562
|
const rawDate = new Date(date);
|
|
546
563
|
let modifiedDate = "";
|
|
547
564
|
if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
|
|
@@ -549,6 +566,14 @@ const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options =
|
|
|
549
566
|
children: modifiedDate
|
|
550
567
|
});
|
|
551
568
|
};
|
|
569
|
+
$bd76a91923d7e8a7$var$TransformedDate.defaultProps = {
|
|
570
|
+
options: {
|
|
571
|
+
year: "numeric",
|
|
572
|
+
month: "long",
|
|
573
|
+
day: "numeric",
|
|
574
|
+
timeZone: "UTC"
|
|
575
|
+
}
|
|
576
|
+
};
|
|
552
577
|
var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$TransformedDate;
|
|
553
578
|
|
|
554
579
|
|
|
@@ -887,10 +912,7 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
|
|
|
887
912
|
|
|
888
913
|
|
|
889
914
|
const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
890
|
-
const { rootUrl: rootUrl, surveyLink: surveyLink, additionalParams: additionalParams, enableSort: enableSort
|
|
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;
|
|
915
|
+
const { rootUrl: rootUrl, surveyLink: surveyLink, additionalParams: additionalParams, enableSort: enableSort, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort, pageTitle: pageTitle, filterTitle: filterTitle, showLargeFileWarning: showLargeFileWarning, largeFileThemes: largeFileThemes, introText: introText, showDownloadIcon: showDownloadIcon, altMobileSearchButton: altMobileSearchButton } = props;
|
|
894
916
|
const sortOptions = [
|
|
895
917
|
{
|
|
896
918
|
label: "Newest",
|
|
@@ -994,7 +1016,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
994
1016
|
page
|
|
995
1017
|
]);
|
|
996
1018
|
(0, $hgUW1$useEffect)(()=>{
|
|
997
|
-
setPage(1);
|
|
1019
|
+
if (page !== 1 && (transformedParams.fulltext !== fulltext || transformedParams.selectedFacets !== selectedFacets)) setPage(1);
|
|
998
1020
|
}, [
|
|
999
1021
|
fulltext,
|
|
1000
1022
|
selectedFacets
|
|
@@ -1236,6 +1258,40 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1236
1258
|
]
|
|
1237
1259
|
});
|
|
1238
1260
|
};
|
|
1261
|
+
$e873081a6e8f024e$var$DatasetSearch.defaultProps = {
|
|
1262
|
+
pageTitle: "Dataset Explorer",
|
|
1263
|
+
introText: "",
|
|
1264
|
+
fulltextLabel: "Search term",
|
|
1265
|
+
fulltextLabelClassName: "ds-u-visibility--screen-reader",
|
|
1266
|
+
fulltextPlaceholder: "Search datasets",
|
|
1267
|
+
filterTitle: "Tags",
|
|
1268
|
+
formClassName: "ds-u-display--flex ds-u-justify-content--between ds-u-margin-bottom--2",
|
|
1269
|
+
enableSort: true,
|
|
1270
|
+
sortOptions: [
|
|
1271
|
+
{
|
|
1272
|
+
label: "Newest",
|
|
1273
|
+
value: "newest"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
label: "Oldest",
|
|
1277
|
+
value: "oldest"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
label: "Title A-Z",
|
|
1281
|
+
value: "titleAZ"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
label: "Title Z-A",
|
|
1285
|
+
value: "titleZA"
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
defaultSort: {
|
|
1289
|
+
defaultSort: "modified",
|
|
1290
|
+
defaultOrder: "desc"
|
|
1291
|
+
},
|
|
1292
|
+
showLargeFileWarning: false,
|
|
1293
|
+
showDownloadIcon: false
|
|
1294
|
+
};
|
|
1239
1295
|
var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($e873081a6e8f024e$var$DatasetSearch);
|
|
1240
1296
|
|
|
1241
1297
|
|
|
@@ -2216,9 +2272,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
|
|
|
2216
2272
|
evt.preventDefault();
|
|
2217
2273
|
table.setPageIndex(page - 1);
|
|
2218
2274
|
},
|
|
2219
|
-
renderHref: (page)
|
|
2220
|
-
return "";
|
|
2221
|
-
}
|
|
2275
|
+
renderHref: (page)=>`/page=${page}`
|
|
2222
2276
|
}) : ""
|
|
2223
2277
|
]
|
|
2224
2278
|
});
|
|
@@ -3247,7 +3301,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
|
|
|
3247
3301
|
|
|
3248
3302
|
|
|
3249
3303
|
|
|
3250
|
-
const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className
|
|
3304
|
+
const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className })=>{
|
|
3251
3305
|
const numTotalRows = totalRows;
|
|
3252
3306
|
if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
3253
3307
|
className: className,
|
|
@@ -3281,6 +3335,9 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
|
|
|
3281
3335
|
]
|
|
3282
3336
|
});
|
|
3283
3337
|
};
|
|
3338
|
+
$2ed0091f7e32d1e6$var$DataTablePageResults.defaultProps = {
|
|
3339
|
+
className: "data-table-results"
|
|
3340
|
+
};
|
|
3284
3341
|
$2ed0091f7e32d1e6$var$DataTablePageResults.propTypes = {
|
|
3285
3342
|
className: (0, $hgUW1$proptypes).string,
|
|
3286
3343
|
totalRows: (0, $hgUW1$proptypes).number.isRequired,
|
|
@@ -3652,7 +3709,7 @@ function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
|
|
|
3652
3709
|
if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
|
|
3653
3710
|
return cond;
|
|
3654
3711
|
}
|
|
3655
|
-
const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams
|
|
3712
|
+
const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams, customColumns: customColumns, isModal: isModal = false })=>{
|
|
3656
3713
|
const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
|
|
3657
3714
|
const fields = Object.keys(schema[id].fields);
|
|
3658
3715
|
const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
|
|
@@ -3813,6 +3870,9 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includ
|
|
|
3813
3870
|
})
|
|
3814
3871
|
});
|
|
3815
3872
|
};
|
|
3873
|
+
$ee4ad47aa483e5b5$var$QueryBuilder.defaultProps = {
|
|
3874
|
+
includeSearchParams: true
|
|
3875
|
+
};
|
|
3816
3876
|
var $ee4ad47aa483e5b5$export$2e2bcd8739ae039 = $ee4ad47aa483e5b5$var$QueryBuilder;
|
|
3817
3877
|
|
|
3818
3878
|
|
|
@@ -3872,15 +3932,13 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFul
|
|
|
3872
3932
|
className: "ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end ds-u-md-justify-content--between ds-u-margin-top--2 ds-u-align-items--center",
|
|
3873
3933
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
|
|
3874
3934
|
totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
|
|
3875
|
-
currentPage: page,
|
|
3935
|
+
currentPage: Number(page),
|
|
3876
3936
|
onPageChange: (evt, page)=>{
|
|
3877
3937
|
evt.preventDefault();
|
|
3878
3938
|
setOffset((page - 1) * limit);
|
|
3879
3939
|
setPage(page);
|
|
3880
3940
|
},
|
|
3881
|
-
renderHref: (page
|
|
3882
|
-
return "";
|
|
3883
|
-
},
|
|
3941
|
+
renderHref: (p)=>`?page=${p}`,
|
|
3884
3942
|
className: "ds-l-col--12 ds-u-padding-x--0"
|
|
3885
3943
|
})
|
|
3886
3944
|
})
|
|
@@ -4201,7 +4259,7 @@ var $a0f13962e513caa1$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
|
|
|
4201
4259
|
|
|
4202
4260
|
|
|
4203
4261
|
|
|
4204
|
-
const $e5bfafc6d4e6f207$var$SearchModal = ({ headingText: headingText
|
|
4262
|
+
const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc, appNodeId: appNodeId, headingText: headingText, searchModalText: searchModalText, buttonSize: buttonSize, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton })=>{
|
|
4205
4263
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
4206
4264
|
const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
|
|
4207
4265
|
const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
|
|
@@ -4274,6 +4332,13 @@ const $e5bfafc6d4e6f207$var$SearchModal = ({ headingText: headingText = "Dataset
|
|
|
4274
4332
|
]
|
|
4275
4333
|
});
|
|
4276
4334
|
};
|
|
4335
|
+
$e5bfafc6d4e6f207$var$SearchModal.defaultProps = {
|
|
4336
|
+
appNodeId: "App",
|
|
4337
|
+
buttonSize: null,
|
|
4338
|
+
inversedModalButton: true,
|
|
4339
|
+
inversedSearchButton: true,
|
|
4340
|
+
headingText: "Dataset Search"
|
|
4341
|
+
};
|
|
4277
4342
|
var $e5bfafc6d4e6f207$export$2e2bcd8739ae039 = $e5bfafc6d4e6f207$var$SearchModal;
|
|
4278
4343
|
|
|
4279
4344
|
|
|
@@ -4281,13 +4346,7 @@ var $52466563e0d69ea8$exports = {};
|
|
|
4281
4346
|
$52466563e0d69ea8$exports = new URL("CMSGovLogo-O.90ce815c.png", import.meta.url).toString();
|
|
4282
4347
|
|
|
4283
4348
|
|
|
4284
|
-
const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses: headerClasses, linkClasses: linkClasses
|
|
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 })=>{
|
|
4349
|
+
const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses: headerClasses, linkClasses: linkClasses, links: links, org: org, searchModalText: searchModalText, customSearch: customSearch, includeTopNav: includeTopNav, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton, includeSearch: includeSearch })=>{
|
|
4291
4350
|
const { url: url, tagline: tagline, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText } = org;
|
|
4292
4351
|
const headerClassString = headerClasses ?? "dc-c-header ds-base";
|
|
4293
4352
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
|
|
@@ -4371,6 +4430,19 @@ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses
|
|
|
4371
4430
|
]
|
|
4372
4431
|
});
|
|
4373
4432
|
};
|
|
4433
|
+
$2db98b8f69058a30$var$DesktopHeader.defaultProps = {
|
|
4434
|
+
org: {
|
|
4435
|
+
tagline: "The Centers for Medicare & Medicaid Services",
|
|
4436
|
+
url: "https://cms.gov",
|
|
4437
|
+
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4438
|
+
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4439
|
+
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services"
|
|
4440
|
+
},
|
|
4441
|
+
includeTopNav: true,
|
|
4442
|
+
customSearch: false,
|
|
4443
|
+
linkClasses: "ds-u-xl-margin-right--4 ds-u-margin-right--3 ds-u-padding-y--3",
|
|
4444
|
+
includeSearch: true
|
|
4445
|
+
};
|
|
4374
4446
|
$2db98b8f69058a30$var$DesktopHeader.propTypes = {
|
|
4375
4447
|
siteName: (0, $hgUW1$proptypes).node.isRequired,
|
|
4376
4448
|
includeTopNav: (0, $hgUW1$proptypes).bool,
|
|
@@ -4396,14 +4468,7 @@ $972485213997ff8b$exports = new URL("CMSgov@2x-white-O.78cd05d3.png", import.met
|
|
|
4396
4468
|
|
|
4397
4469
|
|
|
4398
4470
|
let $caaccb8ea608e518$var$mobileHeaderMenuClassName = "dc-c-mobile-header--menu";
|
|
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 })=>{
|
|
4471
|
+
const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links, org: org, searchModalText: searchModalText, customSearch: customSearch = false, includeTopNav: includeTopNav, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton, includeSearch: includeSearch })=>{
|
|
4407
4472
|
const { url: url, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText, inverseLogo: inverseLogo } = org;
|
|
4408
4473
|
const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
|
|
4409
4474
|
const mobile = (0, $hgUW1$useMediaQuery)({
|
|
@@ -4609,13 +4674,25 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links,
|
|
|
4609
4674
|
]
|
|
4610
4675
|
});
|
|
4611
4676
|
};
|
|
4677
|
+
$caaccb8ea608e518$var$MobileHeader.defaultProps = {
|
|
4678
|
+
org: {
|
|
4679
|
+
tagline: "The Centers for Medicare and Medicaid Services",
|
|
4680
|
+
url: "https://cms.gov",
|
|
4681
|
+
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4682
|
+
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4683
|
+
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4684
|
+
inverseLogo: (0, (/*@__PURE__*/$parcel$interopDefault($972485213997ff8b$exports)))
|
|
4685
|
+
},
|
|
4686
|
+
includeTopNav: true,
|
|
4687
|
+
includeSearch: true
|
|
4688
|
+
};
|
|
4612
4689
|
var $caaccb8ea608e518$export$2e2bcd8739ae039 = $caaccb8ea608e518$var$MobileHeader;
|
|
4613
4690
|
|
|
4614
4691
|
|
|
4615
4692
|
|
|
4616
4693
|
|
|
4617
4694
|
|
|
4618
|
-
const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth
|
|
4695
|
+
const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth, desktopMinWidth: desktopMinWidth, siteName: siteName, links: links, org: org, includeTopNav: includeTopNav })=>{
|
|
4619
4696
|
const mobile = (0, $hgUW1$useMediaQuery)({
|
|
4620
4697
|
minWidth: 0,
|
|
4621
4698
|
maxWidth: mobileMaxWidth
|
|
@@ -4640,6 +4717,11 @@ const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth = 1023, d
|
|
|
4640
4717
|
]
|
|
4641
4718
|
});
|
|
4642
4719
|
};
|
|
4720
|
+
$a5a6a06d249c33b8$var$Header.defaultProps = {
|
|
4721
|
+
mobileMaxWidth: 1023,
|
|
4722
|
+
desktopMinWidth: 1024,
|
|
4723
|
+
includeTopNav: true
|
|
4724
|
+
};
|
|
4643
4725
|
var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
|
|
4644
4726
|
|
|
4645
4727
|
|
|
@@ -4650,17 +4732,7 @@ var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
|
|
|
4650
4732
|
|
|
4651
4733
|
|
|
4652
4734
|
|
|
4653
|
-
const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail
|
|
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
|
-
}) })=>{
|
|
4735
|
+
const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail, emailTitle: emailTitle, emailBody: emailBody, emailLink: emailLink, emailButton: emailButton, socialMediaLinks: socialMediaLinks, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent })=>{
|
|
4664
4736
|
const { footerOpenDataToolLinks: footerOpenDataToolLinks, footerAdditionalResourcesLinks: footerAdditionalResourcesLinks, footerUtilityLinks: footerUtilityLinks } = links;
|
|
4665
4737
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("footer", {
|
|
4666
4738
|
className: "dc-c-footer",
|
|
@@ -5046,6 +5118,25 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
|
|
|
5046
5118
|
]
|
|
5047
5119
|
});
|
|
5048
5120
|
};
|
|
5121
|
+
$a6df0aa147323304$var$Footer.defaultProps = {
|
|
5122
|
+
showEmail: true,
|
|
5123
|
+
emailTitle: "Get Email Updates",
|
|
5124
|
+
emailBody: "Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.",
|
|
5125
|
+
emailLink: "",
|
|
5126
|
+
emailButton: "Sign up for email updates",
|
|
5127
|
+
socialMediaLinks: null,
|
|
5128
|
+
trademarkContent: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
5129
|
+
children: [
|
|
5130
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5131
|
+
children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
|
|
5132
|
+
}),
|
|
5133
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5134
|
+
className: "ds-u-padding-bottom--2",
|
|
5135
|
+
children: "7500 Security Boulevard, Baltimore, MD 21244"
|
|
5136
|
+
})
|
|
5137
|
+
]
|
|
5138
|
+
})
|
|
5139
|
+
};
|
|
5049
5140
|
$a6df0aa147323304$var$Footer.propTypes = {
|
|
5050
5141
|
showEmail: (0, $hgUW1$proptypes).bool,
|
|
5051
5142
|
emailTitle: (0, $hgUW1$proptypes).string,
|
|
@@ -5215,7 +5306,7 @@ const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
|
|
|
5215
5306
|
|
|
5216
5307
|
|
|
5217
5308
|
const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
|
|
5218
|
-
const { documentationList: documentationList
|
|
5309
|
+
const { documentationList: documentationList, children: children } = props;
|
|
5219
5310
|
const defaultContent = /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5220
5311
|
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."
|
|
5221
5312
|
});
|
|
@@ -5267,6 +5358,12 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
|
|
|
5267
5358
|
})
|
|
5268
5359
|
});
|
|
5269
5360
|
};
|
|
5361
|
+
$669d2782ec2e2250$var$SpecsAndLimits.defaultProps = {
|
|
5362
|
+
documentationList: (0, $c7bf75f7e8a68780$export$7850f4d545d994c6),
|
|
5363
|
+
content: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5364
|
+
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."
|
|
5365
|
+
})
|
|
5366
|
+
};
|
|
5270
5367
|
var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLimits;
|
|
5271
5368
|
|
|
5272
5369
|
|
|
@@ -5374,7 +5471,7 @@ var $efc410f5f7ac5ef3$export$2e2bcd8739ae039 = $efc410f5f7ac5ef3$var$useSearchAP
|
|
|
5374
5471
|
|
|
5375
5472
|
|
|
5376
5473
|
|
|
5377
|
-
const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl
|
|
5474
|
+
const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl, searchKey: searchKey, textfieldLabel: textfieldLabel, searchButtonText: searchButtonText })=>{
|
|
5378
5475
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
5379
5476
|
const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
|
|
5380
5477
|
function submitHero(e) {
|
|
@@ -5448,6 +5545,12 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
|
|
|
5448
5545
|
})
|
|
5449
5546
|
});
|
|
5450
5547
|
};
|
|
5548
|
+
$59a079354baa335c$var$Hero.defaultProps = {
|
|
5549
|
+
searchKey: "fulltext",
|
|
5550
|
+
searchUrl: "datasets",
|
|
5551
|
+
textfieldLabel: "Search for a dataset",
|
|
5552
|
+
searchButtonText: "Search"
|
|
5553
|
+
};
|
|
5451
5554
|
var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
|
|
5452
5555
|
|
|
5453
5556
|
|
|
@@ -5500,12 +5603,8 @@ var $1e012d1e3b534af0$export$2e2bcd8739ae039 = $1e012d1e3b534af0$var$DataTableDe
|
|
|
5500
5603
|
|
|
5501
5604
|
|
|
5502
5605
|
|
|
5503
|
-
const $7848c69a021266f7$var$DataTableRowChanger = ({
|
|
5504
|
-
|
|
5505
|
-
25,
|
|
5506
|
-
50,
|
|
5507
|
-
100
|
|
5508
|
-
], setLimit: setLimit })=>{
|
|
5606
|
+
const $7848c69a021266f7$var$DataTableRowChanger = (props)=>{
|
|
5607
|
+
const { limit: limit, rowOptions: rowOptions, setLimit: setLimit } = props;
|
|
5509
5608
|
const rowOptionsFormatted = rowOptions.map((row)=>({
|
|
5510
5609
|
label: row.toString(),
|
|
5511
5610
|
value: row.toString()
|
|
@@ -5522,6 +5621,14 @@ const $7848c69a021266f7$var$DataTableRowChanger = ({ limit: limit, rowOptions: r
|
|
|
5522
5621
|
})
|
|
5523
5622
|
});
|
|
5524
5623
|
};
|
|
5624
|
+
$7848c69a021266f7$var$DataTableRowChanger.defaultProps = {
|
|
5625
|
+
rowOptions: [
|
|
5626
|
+
10,
|
|
5627
|
+
25,
|
|
5628
|
+
50,
|
|
5629
|
+
100
|
|
5630
|
+
]
|
|
5631
|
+
};
|
|
5525
5632
|
$7848c69a021266f7$var$DataTableRowChanger.propTypes = {
|
|
5526
5633
|
rowOptions: (0, $hgUW1$proptypes).arrayOf((0, $hgUW1$proptypes).number),
|
|
5527
5634
|
setLimit: (0, $hgUW1$proptypes).func.isRequired,
|
|
@@ -5765,7 +5872,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
|
|
|
5765
5872
|
value: filterValue || ""
|
|
5766
5873
|
});
|
|
5767
5874
|
}
|
|
5768
|
-
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize
|
|
5875
|
+
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize })=>{
|
|
5769
5876
|
const { resource: resource, customColumns: customColumns } = (0, $hgUW1$useContext)((0, $a0f13962e513caa1$export$a7997ae78b143b));
|
|
5770
5877
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
5771
5878
|
id: "resource-preview",
|
|
@@ -5780,6 +5887,17 @@ const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id:
|
|
|
5780
5887
|
})
|
|
5781
5888
|
});
|
|
5782
5889
|
};
|
|
5890
|
+
$626282d9a03c51d5$var$ResourcePreview.defaultProps = {
|
|
5891
|
+
options: {
|
|
5892
|
+
layout: "flex",
|
|
5893
|
+
columnFilter: false,
|
|
5894
|
+
columnSort: true,
|
|
5895
|
+
columnResize: true
|
|
5896
|
+
},
|
|
5897
|
+
truncateCellHeader: true,
|
|
5898
|
+
defaultSort: [],
|
|
5899
|
+
canResize: true
|
|
5900
|
+
};
|
|
5783
5901
|
var $626282d9a03c51d5$export$2e2bcd8739ae039 = $626282d9a03c51d5$var$ResourcePreview;
|
|
5784
5902
|
|
|
5785
5903
|
|
|
@@ -6013,7 +6131,7 @@ function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
|
|
|
6013
6131
|
if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
|
|
6014
6132
|
return cond;
|
|
6015
6133
|
}
|
|
6016
|
-
const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams
|
|
6134
|
+
const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams, customColumns: customColumns })=>{
|
|
6017
6135
|
const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
|
|
6018
6136
|
const fields = Object.keys(schema[id].fields);
|
|
6019
6137
|
const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
|
|
@@ -6134,6 +6252,9 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includ
|
|
|
6134
6252
|
})
|
|
6135
6253
|
});
|
|
6136
6254
|
};
|
|
6255
|
+
$3b6ca952e79f0695$var$QueryBuilder.defaultProps = {
|
|
6256
|
+
includeSearchParams: true
|
|
6257
|
+
};
|
|
6137
6258
|
var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilder;
|
|
6138
6259
|
|
|
6139
6260
|
|
|
@@ -6308,6 +6429,9 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
6308
6429
|
})
|
|
6309
6430
|
});
|
|
6310
6431
|
};
|
|
6432
|
+
$dd6eb2b30d7ad75d$var$FilteredResourceBody.defaultProps = {
|
|
6433
|
+
apiDocPage: "/api"
|
|
6434
|
+
};
|
|
6311
6435
|
var $dd6eb2b30d7ad75d$export$2e2bcd8739ae039 = $dd6eb2b30d7ad75d$var$FilteredResourceBody;
|
|
6312
6436
|
|
|
6313
6437
|
|