@civicactions/cmsds-open-data-components 3.4.2 → 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 +70 -192
- 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
|
|
|
@@ -558,7 +536,12 @@ var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemI
|
|
|
558
536
|
|
|
559
537
|
|
|
560
538
|
|
|
561
|
-
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
|
+
} })=>{
|
|
562
545
|
const rawDate = new Date(date);
|
|
563
546
|
let modifiedDate = "";
|
|
564
547
|
if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
|
|
@@ -566,14 +549,6 @@ const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options })
|
|
|
566
549
|
children: modifiedDate
|
|
567
550
|
});
|
|
568
551
|
};
|
|
569
|
-
$bd76a91923d7e8a7$var$TransformedDate.defaultProps = {
|
|
570
|
-
options: {
|
|
571
|
-
year: "numeric",
|
|
572
|
-
month: "long",
|
|
573
|
-
day: "numeric",
|
|
574
|
-
timeZone: "UTC"
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
552
|
var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$TransformedDate;
|
|
578
553
|
|
|
579
554
|
|
|
@@ -912,7 +887,10 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
|
|
|
912
887
|
|
|
913
888
|
|
|
914
889
|
const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
915
|
-
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;
|
|
916
894
|
const sortOptions = [
|
|
917
895
|
{
|
|
918
896
|
label: "Newest",
|
|
@@ -1258,40 +1236,6 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
1258
1236
|
]
|
|
1259
1237
|
});
|
|
1260
1238
|
};
|
|
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
|
-
};
|
|
1295
1239
|
var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($e873081a6e8f024e$var$DatasetSearch);
|
|
1296
1240
|
|
|
1297
1241
|
|
|
@@ -2496,7 +2440,8 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
|
|
|
2496
2440
|
enabled: datasetDictionaryEndpoint !== undefined
|
|
2497
2441
|
});
|
|
2498
2442
|
const datasetDictionary = data && data.data && data.data.fields && data.data.fields.length ? data.data.fields : null;
|
|
2499
|
-
return /*#__PURE__*/ (0, $hgUW1$jsxs)(
|
|
2443
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
2444
|
+
"data-testid": "dataset-dictionary-tab",
|
|
2500
2445
|
children: [
|
|
2501
2446
|
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
2502
2447
|
className: "ds-text-heading--2xl ds-u-margin-y--3",
|
|
@@ -3302,7 +3247,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
|
|
|
3302
3247
|
|
|
3303
3248
|
|
|
3304
3249
|
|
|
3305
|
-
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" })=>{
|
|
3306
3251
|
const numTotalRows = totalRows;
|
|
3307
3252
|
if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
3308
3253
|
className: className,
|
|
@@ -3336,9 +3281,6 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
|
|
|
3336
3281
|
]
|
|
3337
3282
|
});
|
|
3338
3283
|
};
|
|
3339
|
-
$2ed0091f7e32d1e6$var$DataTablePageResults.defaultProps = {
|
|
3340
|
-
className: "data-table-results"
|
|
3341
|
-
};
|
|
3342
3284
|
$2ed0091f7e32d1e6$var$DataTablePageResults.propTypes = {
|
|
3343
3285
|
className: (0, $hgUW1$proptypes).string,
|
|
3344
3286
|
totalRows: (0, $hgUW1$proptypes).number.isRequired,
|
|
@@ -3710,7 +3652,7 @@ function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
|
|
|
3710
3652
|
if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
|
|
3711
3653
|
return cond;
|
|
3712
3654
|
}
|
|
3713
|
-
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 })=>{
|
|
3714
3656
|
const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
|
|
3715
3657
|
const fields = Object.keys(schema[id].fields);
|
|
3716
3658
|
const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
|
|
@@ -3871,9 +3813,6 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, includ
|
|
|
3871
3813
|
})
|
|
3872
3814
|
});
|
|
3873
3815
|
};
|
|
3874
|
-
$ee4ad47aa483e5b5$var$QueryBuilder.defaultProps = {
|
|
3875
|
-
includeSearchParams: true
|
|
3876
|
-
};
|
|
3877
3816
|
var $ee4ad47aa483e5b5$export$2e2bcd8739ae039 = $ee4ad47aa483e5b5$var$QueryBuilder;
|
|
3878
3817
|
|
|
3879
3818
|
|
|
@@ -4110,7 +4049,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4110
4049
|
})
|
|
4111
4050
|
}),
|
|
4112
4051
|
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
4113
|
-
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",
|
|
4114
4053
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
|
|
4115
4054
|
className: "ds-u-margin--0",
|
|
4116
4055
|
children: [
|
|
@@ -4189,7 +4128,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4189
4128
|
metadataMapping: metadataMapping
|
|
4190
4129
|
})
|
|
4191
4130
|
}),
|
|
4192
|
-
|
|
4131
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TabPanel), {
|
|
4193
4132
|
id: "data-dictionary",
|
|
4194
4133
|
tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
4195
4134
|
className: "ds-u-color--primary",
|
|
@@ -4201,13 +4140,18 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
4201
4140
|
]
|
|
4202
4141
|
}),
|
|
4203
4142
|
className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
|
|
4204
|
-
children:
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
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
|
+
]
|
|
4211
4155
|
}),
|
|
4212
4156
|
distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
|
|
4213
4157
|
id: "api",
|
|
@@ -4257,7 +4201,7 @@ var $a0f13962e513caa1$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
|
|
|
4257
4201
|
|
|
4258
4202
|
|
|
4259
4203
|
|
|
4260
|
-
const $e5bfafc6d4e6f207$var$SearchModal = ({
|
|
4204
|
+
const $e5bfafc6d4e6f207$var$SearchModal = ({ headingText: headingText = "Dataset Search", buttonSize: buttonSize = null, inversedSearchButton: inversedSearchButton = true })=>{
|
|
4261
4205
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
4262
4206
|
const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
|
|
4263
4207
|
const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
|
|
@@ -4330,13 +4274,6 @@ const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc, appNodeId:
|
|
|
4330
4274
|
]
|
|
4331
4275
|
});
|
|
4332
4276
|
};
|
|
4333
|
-
$e5bfafc6d4e6f207$var$SearchModal.defaultProps = {
|
|
4334
|
-
appNodeId: "App",
|
|
4335
|
-
buttonSize: null,
|
|
4336
|
-
inversedModalButton: true,
|
|
4337
|
-
inversedSearchButton: true,
|
|
4338
|
-
headingText: "Dataset Search"
|
|
4339
|
-
};
|
|
4340
4277
|
var $e5bfafc6d4e6f207$export$2e2bcd8739ae039 = $e5bfafc6d4e6f207$var$SearchModal;
|
|
4341
4278
|
|
|
4342
4279
|
|
|
@@ -4344,7 +4281,13 @@ var $52466563e0d69ea8$exports = {};
|
|
|
4344
4281
|
$52466563e0d69ea8$exports = new URL("CMSGovLogo-O.90ce815c.png", import.meta.url).toString();
|
|
4345
4282
|
|
|
4346
4283
|
|
|
4347
|
-
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 })=>{
|
|
4348
4291
|
const { url: url, tagline: tagline, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText } = org;
|
|
4349
4292
|
const headerClassString = headerClasses ?? "dc-c-header ds-base";
|
|
4350
4293
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
|
|
@@ -4428,19 +4371,6 @@ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses
|
|
|
4428
4371
|
]
|
|
4429
4372
|
});
|
|
4430
4373
|
};
|
|
4431
|
-
$2db98b8f69058a30$var$DesktopHeader.defaultProps = {
|
|
4432
|
-
org: {
|
|
4433
|
-
tagline: "The Centers for Medicare & Medicaid Services",
|
|
4434
|
-
url: "https://cms.gov",
|
|
4435
|
-
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4436
|
-
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4437
|
-
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services"
|
|
4438
|
-
},
|
|
4439
|
-
includeTopNav: true,
|
|
4440
|
-
customSearch: false,
|
|
4441
|
-
linkClasses: "ds-u-xl-margin-right--4 ds-u-margin-right--3 ds-u-padding-y--3",
|
|
4442
|
-
includeSearch: true
|
|
4443
|
-
};
|
|
4444
4374
|
$2db98b8f69058a30$var$DesktopHeader.propTypes = {
|
|
4445
4375
|
siteName: (0, $hgUW1$proptypes).node.isRequired,
|
|
4446
4376
|
includeTopNav: (0, $hgUW1$proptypes).bool,
|
|
@@ -4466,7 +4396,14 @@ $972485213997ff8b$exports = new URL("CMSgov@2x-white-O.78cd05d3.png", import.met
|
|
|
4466
4396
|
|
|
4467
4397
|
|
|
4468
4398
|
let $caaccb8ea608e518$var$mobileHeaderMenuClassName = "dc-c-mobile-header--menu";
|
|
4469
|
-
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 })=>{
|
|
4470
4407
|
const { url: url, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText, inverseLogo: inverseLogo } = org;
|
|
4471
4408
|
const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
|
|
4472
4409
|
const mobile = (0, $hgUW1$useMediaQuery)({
|
|
@@ -4672,25 +4609,13 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links,
|
|
|
4672
4609
|
]
|
|
4673
4610
|
});
|
|
4674
4611
|
};
|
|
4675
|
-
$caaccb8ea608e518$var$MobileHeader.defaultProps = {
|
|
4676
|
-
org: {
|
|
4677
|
-
tagline: "The Centers for Medicare and Medicaid Services",
|
|
4678
|
-
url: "https://cms.gov",
|
|
4679
|
-
urlTitle: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4680
|
-
logo: (0, (/*@__PURE__*/$parcel$interopDefault($52466563e0d69ea8$exports))),
|
|
4681
|
-
logoAltText: "CMS.gov Centers for Medicare & Medicaid Services",
|
|
4682
|
-
inverseLogo: (0, (/*@__PURE__*/$parcel$interopDefault($972485213997ff8b$exports)))
|
|
4683
|
-
},
|
|
4684
|
-
includeTopNav: true,
|
|
4685
|
-
includeSearch: true
|
|
4686
|
-
};
|
|
4687
4612
|
var $caaccb8ea608e518$export$2e2bcd8739ae039 = $caaccb8ea608e518$var$MobileHeader;
|
|
4688
4613
|
|
|
4689
4614
|
|
|
4690
4615
|
|
|
4691
4616
|
|
|
4692
4617
|
|
|
4693
|
-
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 })=>{
|
|
4694
4619
|
const mobile = (0, $hgUW1$useMediaQuery)({
|
|
4695
4620
|
minWidth: 0,
|
|
4696
4621
|
maxWidth: mobileMaxWidth
|
|
@@ -4715,11 +4640,6 @@ const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth, desktopM
|
|
|
4715
4640
|
]
|
|
4716
4641
|
});
|
|
4717
4642
|
};
|
|
4718
|
-
$a5a6a06d249c33b8$var$Header.defaultProps = {
|
|
4719
|
-
mobileMaxWidth: 1023,
|
|
4720
|
-
desktopMinWidth: 1024,
|
|
4721
|
-
includeTopNav: true
|
|
4722
|
-
};
|
|
4723
4643
|
var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
|
|
4724
4644
|
|
|
4725
4645
|
|
|
@@ -4730,7 +4650,17 @@ var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
|
|
|
4730
4650
|
|
|
4731
4651
|
|
|
4732
4652
|
|
|
4733
|
-
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
|
+
}) })=>{
|
|
4734
4664
|
const { footerOpenDataToolLinks: footerOpenDataToolLinks, footerAdditionalResourcesLinks: footerAdditionalResourcesLinks, footerUtilityLinks: footerUtilityLinks } = links;
|
|
4735
4665
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("footer", {
|
|
4736
4666
|
className: "dc-c-footer",
|
|
@@ -5116,25 +5046,6 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail, emai
|
|
|
5116
5046
|
]
|
|
5117
5047
|
});
|
|
5118
5048
|
};
|
|
5119
|
-
$a6df0aa147323304$var$Footer.defaultProps = {
|
|
5120
|
-
showEmail: true,
|
|
5121
|
-
emailTitle: "Get Email Updates",
|
|
5122
|
-
emailBody: "Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.",
|
|
5123
|
-
emailLink: "",
|
|
5124
|
-
emailButton: "Sign up for email updates",
|
|
5125
|
-
socialMediaLinks: null,
|
|
5126
|
-
trademarkContent: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
5127
|
-
children: [
|
|
5128
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5129
|
-
children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
|
|
5130
|
-
}),
|
|
5131
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5132
|
-
className: "ds-u-padding-bottom--2",
|
|
5133
|
-
children: "7500 Security Boulevard, Baltimore, MD 21244"
|
|
5134
|
-
})
|
|
5135
|
-
]
|
|
5136
|
-
})
|
|
5137
|
-
};
|
|
5138
5049
|
$a6df0aa147323304$var$Footer.propTypes = {
|
|
5139
5050
|
showEmail: (0, $hgUW1$proptypes).bool,
|
|
5140
5051
|
emailTitle: (0, $hgUW1$proptypes).string,
|
|
@@ -5304,7 +5215,7 @@ const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
|
|
|
5304
5215
|
|
|
5305
5216
|
|
|
5306
5217
|
const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
|
|
5307
|
-
const { documentationList: documentationList, children: children } = props;
|
|
5218
|
+
const { documentationList: documentationList = (0, $c7bf75f7e8a68780$export$7850f4d545d994c6), children: children } = props;
|
|
5308
5219
|
const defaultContent = /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5309
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."
|
|
5310
5221
|
});
|
|
@@ -5356,12 +5267,6 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
|
|
|
5356
5267
|
})
|
|
5357
5268
|
});
|
|
5358
5269
|
};
|
|
5359
|
-
$669d2782ec2e2250$var$SpecsAndLimits.defaultProps = {
|
|
5360
|
-
documentationList: (0, $c7bf75f7e8a68780$export$7850f4d545d994c6),
|
|
5361
|
-
content: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
|
|
5362
|
-
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."
|
|
5363
|
-
})
|
|
5364
|
-
};
|
|
5365
5270
|
var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLimits;
|
|
5366
5271
|
|
|
5367
5272
|
|
|
@@ -5469,7 +5374,7 @@ var $efc410f5f7ac5ef3$export$2e2bcd8739ae039 = $efc410f5f7ac5ef3$var$useSearchAP
|
|
|
5469
5374
|
|
|
5470
5375
|
|
|
5471
5376
|
|
|
5472
|
-
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" })=>{
|
|
5473
5378
|
const navigate = (0, $hgUW1$useNavigate)();
|
|
5474
5379
|
const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
|
|
5475
5380
|
function submitHero(e) {
|
|
@@ -5543,12 +5448,6 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
|
|
|
5543
5448
|
})
|
|
5544
5449
|
});
|
|
5545
5450
|
};
|
|
5546
|
-
$59a079354baa335c$var$Hero.defaultProps = {
|
|
5547
|
-
searchKey: "fulltext",
|
|
5548
|
-
searchUrl: "datasets",
|
|
5549
|
-
textfieldLabel: "Search for a dataset",
|
|
5550
|
-
searchButtonText: "Search"
|
|
5551
|
-
};
|
|
5552
5451
|
var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
|
|
5553
5452
|
|
|
5554
5453
|
|
|
@@ -5601,8 +5500,12 @@ var $1e012d1e3b534af0$export$2e2bcd8739ae039 = $1e012d1e3b534af0$var$DataTableDe
|
|
|
5601
5500
|
|
|
5602
5501
|
|
|
5603
5502
|
|
|
5604
|
-
const $7848c69a021266f7$var$DataTableRowChanger = (
|
|
5605
|
-
|
|
5503
|
+
const $7848c69a021266f7$var$DataTableRowChanger = ({ limit: limit, rowOptions: rowOptions = [
|
|
5504
|
+
10,
|
|
5505
|
+
25,
|
|
5506
|
+
50,
|
|
5507
|
+
100
|
|
5508
|
+
], setLimit: setLimit })=>{
|
|
5606
5509
|
const rowOptionsFormatted = rowOptions.map((row)=>({
|
|
5607
5510
|
label: row.toString(),
|
|
5608
5511
|
value: row.toString()
|
|
@@ -5619,14 +5522,6 @@ const $7848c69a021266f7$var$DataTableRowChanger = (props)=>{
|
|
|
5619
5522
|
})
|
|
5620
5523
|
});
|
|
5621
5524
|
};
|
|
5622
|
-
$7848c69a021266f7$var$DataTableRowChanger.defaultProps = {
|
|
5623
|
-
rowOptions: [
|
|
5624
|
-
10,
|
|
5625
|
-
25,
|
|
5626
|
-
50,
|
|
5627
|
-
100
|
|
5628
|
-
]
|
|
5629
|
-
};
|
|
5630
5525
|
$7848c69a021266f7$var$DataTableRowChanger.propTypes = {
|
|
5631
5526
|
rowOptions: (0, $hgUW1$proptypes).arrayOf((0, $hgUW1$proptypes).number),
|
|
5632
5527
|
setLimit: (0, $hgUW1$proptypes).func.isRequired,
|
|
@@ -5870,7 +5765,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
|
|
|
5870
5765
|
value: filterValue || ""
|
|
5871
5766
|
});
|
|
5872
5767
|
}
|
|
5873
|
-
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize })=>{
|
|
5768
|
+
const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
|
|
5874
5769
|
const { resource: resource, customColumns: customColumns } = (0, $hgUW1$useContext)((0, $a0f13962e513caa1$export$a7997ae78b143b));
|
|
5875
5770
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
5876
5771
|
id: "resource-preview",
|
|
@@ -5885,17 +5780,6 @@ const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id:
|
|
|
5885
5780
|
})
|
|
5886
5781
|
});
|
|
5887
5782
|
};
|
|
5888
|
-
$626282d9a03c51d5$var$ResourcePreview.defaultProps = {
|
|
5889
|
-
options: {
|
|
5890
|
-
layout: "flex",
|
|
5891
|
-
columnFilter: false,
|
|
5892
|
-
columnSort: true,
|
|
5893
|
-
columnResize: true
|
|
5894
|
-
},
|
|
5895
|
-
truncateCellHeader: true,
|
|
5896
|
-
defaultSort: [],
|
|
5897
|
-
canResize: true
|
|
5898
|
-
};
|
|
5899
5783
|
var $626282d9a03c51d5$export$2e2bcd8739ae039 = $626282d9a03c51d5$var$ResourcePreview;
|
|
5900
5784
|
|
|
5901
5785
|
|
|
@@ -6129,7 +6013,7 @@ function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
|
|
|
6129
6013
|
if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
|
|
6130
6014
|
return cond;
|
|
6131
6015
|
}
|
|
6132
|
-
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 })=>{
|
|
6133
6017
|
const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
|
|
6134
6018
|
const fields = Object.keys(schema[id].fields);
|
|
6135
6019
|
const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
|
|
@@ -6250,9 +6134,6 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includ
|
|
|
6250
6134
|
})
|
|
6251
6135
|
});
|
|
6252
6136
|
};
|
|
6253
|
-
$3b6ca952e79f0695$var$QueryBuilder.defaultProps = {
|
|
6254
|
-
includeSearchParams: true
|
|
6255
|
-
};
|
|
6256
6137
|
var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilder;
|
|
6257
6138
|
|
|
6258
6139
|
|
|
@@ -6427,9 +6308,6 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
|
|
|
6427
6308
|
})
|
|
6428
6309
|
});
|
|
6429
6310
|
};
|
|
6430
|
-
$dd6eb2b30d7ad75d$var$FilteredResourceBody.defaultProps = {
|
|
6431
|
-
apiDocPage: "/api"
|
|
6432
|
-
};
|
|
6433
6311
|
var $dd6eb2b30d7ad75d$export$2e2bcd8739ae039 = $dd6eb2b30d7ad75d$var$FilteredResourceBody;
|
|
6434
6312
|
|
|
6435
6313
|
|