@civicactions/cmsds-open-data-components 4.1.0-rc → 4.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./main.css";
2
2
  import {jsx as $hgUW1$jsx, jsxs as $hgUW1$jsxs, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
3
3
  import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Dropdown as $hgUW1$Dropdown, Pagination as $hgUW1$Pagination, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, Choice as $hgUW1$Choice, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, ExternalLinkIcon as $hgUW1$ExternalLinkIcon, Badge as $hgUW1$Badge} from "@cmsgov/design-system";
4
- import $hgUW1$react, {createContext as $hgUW1$createContext, useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect, useContext as $hgUW1$useContext, useMemo as $hgUW1$useMemo, useCallback as $hgUW1$useCallback} from "react";
4
+ import $hgUW1$react, {createContext as $hgUW1$createContext, useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect, useContext as $hgUW1$useContext, useCallback as $hgUW1$useCallback, useMemo as $hgUW1$useMemo} from "react";
5
5
  import {NavLink as $hgUW1$NavLink, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams} from "react-router-dom";
6
6
  import $hgUW1$qs from "qs";
7
7
  import $hgUW1$axios from "axios";
@@ -10,8 +10,8 @@ import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
10
10
  import $hgUW1$dompurify from "dompurify";
11
11
  import $hgUW1$lodashtruncate from "lodash.truncate";
12
12
  import $hgUW1$swaggeruireact from "swagger-ui-react";
13
- import {SpanOpenAPIVersion as $hgUW1$SpanOpenAPIVersion, SpanVersionStamp as $hgUW1$SpanVersionStamp} from "@civicactions/swagger-ui-layout";
14
13
  import "swagger-ui-react/swagger-ui.css";
14
+ import {List as $hgUW1$List, Map as $hgUW1$Map} from "immutable";
15
15
  import $hgUW1$proptypes from "prop-types";
16
16
  import {createColumnHelper as $hgUW1$createColumnHelper, useReactTable as $hgUW1$useReactTable, getCoreRowModel as $hgUW1$getCoreRowModel, getSortedRowModel as $hgUW1$getSortedRowModel, flexRender as $hgUW1$flexRender, getFilteredRowModel as $hgUW1$getFilteredRowModel, getPaginationRowModel as $hgUW1$getPaginationRowModel} from "@tanstack/react-table";
17
17
  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";
@@ -1427,7 +1427,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1427
1427
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
1428
1428
  defaultSort: 'modified',
1429
1429
  defaultOrder: 'desc'
1430
- }, pageTitle: pageTitle = 'Dataset Explorer', categoriesTitle: categoriesTitle = 'Categories', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false, showDateDetails: showDateDetails = false, showTopics: showTopics = false, topicSlugFunction: topicSlugFunction } = props;
1430
+ }, pageTitle: pageTitle = 'Dataset Explorer', categoriesTitle: categoriesTitle = 'Categories', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false, showDateDetails: showDateDetails = false, showTopics: showTopics = false, topicSlugFunction: topicSlugFunction, children: children } = props;
1431
1431
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
1432
1432
  const sortOptions = [
1433
1433
  {
@@ -1645,6 +1645,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1645
1645
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1646
1646
  className: "ds-l-col--12",
1647
1647
  children: [
1648
+ children,
1648
1649
  introText ? introText : null,
1649
1650
  showLargeFileWarning && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1650
1651
  className: "ds-l-row ds-u-margin-bottom--2 ds-u-margin-top--4",
@@ -2389,9 +2390,57 @@ var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetList
2389
2390
 
2390
2391
 
2391
2392
 
2393
+ const $5b656f0283afa250$var$SpanOpenAPIVersion = function(system) {
2394
+ return {
2395
+ wrapComponents: {
2396
+ OpenAPIVersion: (Original, system)=>(props)=>{
2397
+ const classList = "version version-stamp version-stamp--openapi version-stamp--span";
2398
+ let { oasVersion: oasVersion } = props;
2399
+ if (typeof system.specSelectors?.isOAS31 === "function") {
2400
+ if (system.specSelectors.isOAS31()) return /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2401
+ className: classList,
2402
+ children: "OAS 3.1"
2403
+ });
2404
+ }
2405
+ if (typeof system.specSelectors?.isOAS30 === "function") {
2406
+ if (system.specSelectors.isOAS30()) return /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2407
+ className: classList,
2408
+ children: "OAS 3.0"
2409
+ });
2410
+ }
2411
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2412
+ className: classList,
2413
+ children: oasVersion
2414
+ });
2415
+ }
2416
+ }
2417
+ };
2418
+ };
2419
+ var $5b656f0283afa250$export$2e2bcd8739ae039 = $5b656f0283afa250$var$SpanOpenAPIVersion;
2420
+
2392
2421
 
2393
2422
 
2394
- const $55899d0a5264c10b$var$ApiDocsInfo = ({ url: url, getComponent: getComponent, isDatasetDocs: isDatasetDocs, showRowLimitNotice: showRowLimitNotice, docsURL: docsURL })=>{
2423
+ const $ffd9c403a1c2fc39$var$SpanVersionStamp = function(system) {
2424
+ return {
2425
+ wrapComponents: {
2426
+ VersionStamp: (Original, system)=>(props)=>{
2427
+ const classList = "version version-stamp version-stamp--span";
2428
+ const { version: version } = props;
2429
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2430
+ className: classList,
2431
+ children: version
2432
+ });
2433
+ }
2434
+ }
2435
+ };
2436
+ };
2437
+ var $ffd9c403a1c2fc39$export$2e2bcd8739ae039 = $ffd9c403a1c2fc39$var$SpanVersionStamp;
2438
+
2439
+
2440
+
2441
+
2442
+
2443
+ const $d42ff6af4a8dee64$var$ApiDocsInfo = ({ url: url, getComponent: getComponent, isDatasetDocs: isDatasetDocs, showRowLimitNotice: showRowLimitNotice, docsURL: docsURL })=>{
2395
2444
  const VersionStamp = getComponent("VersionStamp");
2396
2445
  const OpenAPIVersion = getComponent("OpenAPIVersion");
2397
2446
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -2419,20 +2468,26 @@ const $55899d0a5264c10b$var$ApiDocsInfo = ({ url: url, getComponent: getComponen
2419
2468
  className: "ds-l-col--12 ds-l-md-col--3 ds-u-font-weight--bold ds-u-margin-top--2 ds-u-md-text-align--right",
2420
2469
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
2421
2470
  href: docsURL,
2422
- className: "ds-u-margin-bottom--1",
2471
+ className: "ds-u-display--flex ds-u-align-items--center ds-u-margin-bottom--1 ds-u-color--primary",
2472
+ style: {
2473
+ whiteSpace: 'nowrap'
2474
+ },
2423
2475
  children: [
2424
- "View API",
2425
- ' ',
2426
- /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
2427
- style: {
2428
- whiteSpace: 'nowrap'
2429
- },
2430
- children: [
2431
- "documentation ",
2432
- /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2433
- className: "fa fa-arrow-right ds-u-font-weight--bold"
2434
- })
2435
- ]
2476
+ "View API documentation",
2477
+ /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
2478
+ xmlns: "http://www.w3.org/2000/svg",
2479
+ viewBox: "0 0 11 16",
2480
+ width: "11",
2481
+ height: "16",
2482
+ "aria-hidden": "true",
2483
+ role: "presentation",
2484
+ className: "ds-u-margin-left--1",
2485
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
2486
+ fill: "currentColor",
2487
+ "fill-rule": "evenodd",
2488
+ "clip-rule": "evenodd",
2489
+ d: "M9.70403 7.07623L3.01151 0.388634C2.76291 0.130188 2.4577 0.000349045 2.08664 0.000349045C1.91391 -0.00377464 1.74226 0.0286551 1.58296 0.0956049C1.42367 0.162493 1.28034 0.262364 1.16239 0.388634L0.381515 1.15905C0.129223 1.41134 0 1.72025 0 2.0833C0 2.4402 0.126146 2.7528 0.381515 3.01863L5.37014 8.00048L0.381515 12.9891C0.129223 13.2414 0 13.5509 0 13.914C0 14.2696 0.126146 14.5829 0.381515 14.8493L1.16178 15.6185C1.41407 15.8708 1.72297 16 2.08603 16C2.44908 16 2.7586 15.8739 3.0109 15.6185L9.70403 8.93581C9.95571 8.66936 10.0855 8.35677 10.0855 8.00048C10.0855 7.63743 9.9594 7.32791 9.70403 7.07623Z"
2490
+ })
2436
2491
  })
2437
2492
  ]
2438
2493
  })
@@ -2441,63 +2496,515 @@ const $55899d0a5264c10b$var$ApiDocsInfo = ({ url: url, getComponent: getComponen
2441
2496
  className: "ds-l-col--12 ds-u-margin-y--1",
2442
2497
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
2443
2498
  href: url,
2499
+ className: "ds-u-color--primary",
2444
2500
  children: "OpenAPI Specification (JSON)"
2445
2501
  })
2446
2502
  })
2447
2503
  ]
2448
2504
  });
2449
2505
  };
2450
- var $55899d0a5264c10b$export$2e2bcd8739ae039 = $55899d0a5264c10b$var$ApiDocsInfo;
2506
+ var $d42ff6af4a8dee64$export$2e2bcd8739ae039 = $d42ff6af4a8dee64$var$ApiDocsInfo;
2507
+
2508
+
2509
+
2510
+
2511
+ const $eb1276da361453f7$var$OperationCompWrapperInner = (props)=>{
2512
+ const { Original: Original, onTryoutClick: onTryoutClick } = props;
2513
+ (0, $hgUW1$useEffect)(()=>{
2514
+ if (!onTryoutClick) return;
2515
+ const timer = setTimeout(()=>onTryoutClick(), 2000);
2516
+ return ()=>clearTimeout(timer);
2517
+ }, [
2518
+ onTryoutClick
2519
+ ]);
2520
+ return /*#__PURE__*/ (0, $hgUW1$jsx)(Original, {
2521
+ ...props
2522
+ });
2523
+ };
2524
+ var $eb1276da361453f7$export$2e2bcd8739ae039 = $eb1276da361453f7$var$OperationCompWrapperInner;
2525
+
2526
+
2527
+
2528
+
2529
+ const $c9215d4ba59490d9$var$OperationTag = ({ children: children, tag: tag, tagObj: tagObj })=>{
2530
+ const [show, toggleShow] = (0, $hgUW1$useState)(true);
2531
+ const tagDescription = tagObj.getIn([
2532
+ "tagDetails",
2533
+ "description"
2534
+ ], null);
2535
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2536
+ className: "OperationTag",
2537
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2538
+ className: `
2539
+ toggle-block toggle-block-container
2540
+ ${show ? ' open' : ' closed'}
2541
+ ${show ? ' ds-u-padding-bottom--0 ds-u-margin-bottom--4' : ''}
2542
+ `,
2543
+ children: [
2544
+ /*#__PURE__*/ (0, $hgUW1$jsx)("h3", {
2545
+ className: "toggle-block-title ds-u-margin-y--1 ds-u-display--flex ds-u-justify-content--start ds-u-font-size--lg",
2546
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("button", {
2547
+ type: "button",
2548
+ onClick: ()=>{
2549
+ toggleShow(!show);
2550
+ },
2551
+ "aria-expanded": show,
2552
+ className: "toggle-block-title-button ds-u-display--flex ds-u-align-items--center ds-u-text-align--left ds-u-fill--transparent ds-u-border--0 ds-u-padding--0",
2553
+ children: [
2554
+ show ? /* Chevron down */ /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
2555
+ xmlns: "http://www.w3.org/2000/svg",
2556
+ viewBox: "0 0 512 512",
2557
+ width: "20",
2558
+ height: "20",
2559
+ "aria-hidden": "true",
2560
+ role: "presentation",
2561
+ className: "OperationTag__chevron-down",
2562
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
2563
+ fill: "currentColor",
2564
+ d: "M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"
2565
+ })
2566
+ }) : /* Chevron up */ /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
2567
+ xmlns: "http://www.w3.org/2000/svg",
2568
+ viewBox: "0 0 512 512",
2569
+ width: "20",
2570
+ height: "20",
2571
+ "aria-hidden": "true",
2572
+ role: "presentation",
2573
+ className: "OperationTag__chevron-up",
2574
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
2575
+ fill: "currentColor",
2576
+ d: "M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"
2577
+ })
2578
+ }),
2579
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2580
+ className: "toggle-block-title-text ds-u-display--flex ds-u-align-items--center ds-u-padding-left--4",
2581
+ children: tag
2582
+ }),
2583
+ tagDescription ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2584
+ className: "toggle-block-title-description ds-u-font-size--sm ds-u-font-weight--normal ds-u-margin-left--2",
2585
+ children: tagDescription
2586
+ }) : null
2587
+ ]
2588
+ })
2589
+ }),
2590
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2591
+ className: `
2592
+ toggle-block-panel ds-u-padding-left--4
2593
+ ${show ? ' open' : ' closed'}
2594
+ ${show ? ' ds-u-display--block' : 'ds-u-display--none'}
2595
+ `,
2596
+ children: children
2597
+ })
2598
+ ]
2599
+ })
2600
+ });
2601
+ };
2602
+ var $c9215d4ba59490d9$export$2e2bcd8739ae039 = $c9215d4ba59490d9$var$OperationTag;
2603
+
2604
+
2605
+
2606
+ const $6724506e656710f6$var$OperationSummary = ({ toggleShown: toggleShown, operationProps: operationProps, tryItOutButtonClassNames: tryItOutButtonClassNames = '', copyToClipboardButtonClassNames: copyToClipboardButtonClassNames = '' })=>{
2607
+ const { path: path, isShown: isShown, operationId: operationId, tag: tag, method: method, summary: summary } = operationProps.toJS();
2608
+ const readablePath = path.replace(/\//g, '\u200b/');
2609
+ const handleCopyToClipboard = ()=>{
2610
+ navigator.clipboard.writeText(readablePath);
2611
+ };
2612
+ const handleTryItOutOnClick = (e)=>{
2613
+ toggleShown(e);
2614
+ };
2615
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2616
+ className: "OperationSummary ds-u-display--flex ds-u-flex-direction--column ds-u-lg-flex-direction--row",
2617
+ children: [
2618
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2619
+ className: "OperationSummary__path-container ds-u-display--flex ds-u-align-items--center ds-u-flex-direction--column ds-u-md-flex-direction--row ds-u-fill--white ds-u-radius",
2620
+ children: [
2621
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2622
+ className: "OperationSummary__method ds-u-display--flex ds-u-align-items--center ds-u-justify-content--center ds-u-color--white ds-u-radius ds-u-text-transform--uppercase ds-u-font-weight--bold ds-u-font-size--md ds-u-padding--1 ds-u-margin--05",
2623
+ children: method
2624
+ }),
2625
+ /*#__PURE__*/ (0, $hgUW1$jsx)("input", {
2626
+ "aria-label": `${tag} ${operationId}`,
2627
+ className: "OperationSummary__path-container_path-input ds-u-border--0 ds-u-padding-y--1 ds-u-padding-x--2 ds-u-font-size--sm ds-u-md-margin-y--0 ds-u-margin-y--1",
2628
+ readOnly: true,
2629
+ value: readablePath
2630
+ }),
2631
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2632
+ className: "OperationSummary__summary ds-u-font-size--sm ds-u-padding-x--1 ds-u-text-align--left ds-u-md-text-align--right ds-u-md-margin-bottom--0 ds-u-margin-bottom--1",
2633
+ children: summary
2634
+ }),
2635
+ /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2636
+ onClick: handleCopyToClipboard,
2637
+ className: copyToClipboardButtonClassNames ? `${copyToClipboardButtonClassNames}` : 'ds-u-display--flex ds-u-align-items--center ds-u-justify-content--center ds-u-padding--0 ds-u-margin--05 ds-u-radius OperationSummary__path-container_copy-btn ds-u-color--primary',
2638
+ "aria-label": `Copy ${tag} ${operationId} to clipboard`,
2639
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
2640
+ xmlns: "http://www.w3.org/2000/svg",
2641
+ viewBox: "0 0 448 512",
2642
+ width: "16",
2643
+ height: "16",
2644
+ "aria-hidden": "true",
2645
+ role: "presentation",
2646
+ className: "OperationSummary__copy-icon",
2647
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
2648
+ fill: "currentColor",
2649
+ d: "M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"
2650
+ })
2651
+ })
2652
+ })
2653
+ ]
2654
+ }),
2655
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("button", {
2656
+ className: tryItOutButtonClassNames ? `${tryItOutButtonClassNames}` : 'ds-c-button ds-u-lg-margin-left--2 ds-u-margin-top--2 ds-u-lg-margin-top--0 OperationSummary__try-it-out-btn ds-u-display--flex ds-u-align-items--center',
2657
+ onClick: handleTryItOutOnClick,
2658
+ "aria-label": `Try it out - ${tag} ${operationId}`,
2659
+ "aria-expanded": isShown,
2660
+ children: [
2661
+ /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
2662
+ xmlns: "http://www.w3.org/2000/svg",
2663
+ viewBox: "0 0 16 11",
2664
+ width: "16",
2665
+ height: "11",
2666
+ "aria-hidden": "true",
2667
+ role: "presentation",
2668
+ style: {
2669
+ transform: isShown ? 'rotate(180deg)' : 'none',
2670
+ top: '0px'
2671
+ },
2672
+ className: "ds-u-margin-right--05",
2673
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
2674
+ fill: "currentColor",
2675
+ "fill-rule": "evenodd",
2676
+ "clip-rule": "evenodd",
2677
+ d: "M8.92377 9.70403L15.6114 3.01151C15.8698 2.76291 15.9997 2.4577 15.9997 2.08664C16.0038 1.91391 15.9713 1.74226 15.9044 1.58296C15.8375 1.42367 15.7376 1.28034 15.6114 1.16239L14.841 0.381515C14.5887 0.129223 14.2798 0 13.9167 0C13.5598 0 13.2472 0.126146 12.9814 0.381515L7.99952 5.37014L3.0109 0.381515C2.7586 0.129223 2.44908 0 2.08603 0C1.73036 0 1.41715 0.126146 1.1507 0.381515L0.381515 1.16178C0.129223 1.41407 0 1.72297 0 2.08603C0 2.44908 0.126146 2.7586 0.381515 3.0109L7.06419 9.70403C7.33063 9.95571 7.64323 10.0855 7.99952 10.0855C8.36257 10.0855 8.67209 9.9594 8.92377 9.70403Z"
2678
+ })
2679
+ }),
2680
+ "Try it out"
2681
+ ]
2682
+ })
2683
+ ]
2684
+ });
2685
+ };
2686
+ var $6724506e656710f6$export$2e2bcd8739ae039 = $6724506e656710f6$var$OperationSummary;
2451
2687
 
2452
2688
 
2453
2689
 
2454
2690
 
2455
- const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint, docsURL: docsURL, showRowLimitNotice: showRowLimitNotice })=>{
2456
- // this plugin is defined here rather than in swagger-ui-layout so that it can have docsURL and
2457
- // showRowLimitNotice easily in scope. I couldn't figure out how to pass the plugin these values
2458
- // another way.
2459
- const ApiDocsSwaggerUIPlugin = (props)=>{
2691
+ const $103b83f479373ff7$var$ExecuteButton = (props)=>{
2692
+ const { specSelectors: specSelectors, specActions: specActions, oas3Selectors: oas3Selectors, oas3Actions: oas3Actions, operation: operation, path: path, method: method, onExecute: onExecute, disabled: disabled, className: className = '' } = props;
2693
+ const pathMethod = [
2694
+ path,
2695
+ method
2696
+ ];
2697
+ const handleValidateParameters = ()=>{
2698
+ specActions.validateParams(pathMethod);
2699
+ return specSelectors.validateBeforeExecute(pathMethod);
2700
+ };
2701
+ const handleValidateRequestBody = ()=>{
2702
+ const validationErrors = {
2703
+ missingBodyValue: false,
2704
+ missingRequiredKeys: []
2705
+ };
2706
+ oas3Actions.clearRequestBodyValidateError({
2707
+ path: path,
2708
+ method: method
2709
+ });
2710
+ const oas3RequiredRequestBodyContentType = specSelectors.getOAS3RequiredRequestBodyContentType(pathMethod);
2711
+ const oas3RequestBodyValue = oas3Selectors.requestBodyValue(path, method);
2712
+ const oas3ValidateBeforeExecuteSuccess = oas3Selectors.validateBeforeExecute(path, method);
2713
+ const oas3RequestContentType = oas3Selectors.requestContentType(path, method);
2714
+ if (!oas3ValidateBeforeExecuteSuccess) {
2715
+ validationErrors.missingBodyValue = true;
2716
+ oas3Actions.setRequestBodyValidateError({
2717
+ path: path,
2718
+ method: method,
2719
+ validationErrors: validationErrors
2720
+ });
2721
+ return false;
2722
+ }
2723
+ if (!oas3RequiredRequestBodyContentType) return true;
2724
+ const missingRequiredKeys = oas3Selectors.validateShallowRequired({
2725
+ oas3RequiredRequestBodyContentType: oas3RequiredRequestBodyContentType,
2726
+ oas3RequestContentType: oas3RequestContentType,
2727
+ oas3RequestBodyValue: oas3RequestBodyValue
2728
+ });
2729
+ if (!missingRequiredKeys || missingRequiredKeys.length < 1) return true;
2730
+ missingRequiredKeys.forEach((key)=>validationErrors.missingRequiredKeys.push(key));
2731
+ oas3Actions.setRequestBodyValidateError({
2732
+ path: path,
2733
+ method: method,
2734
+ validationErrors: validationErrors
2735
+ });
2736
+ return false;
2737
+ };
2738
+ const handleClick = ()=>{
2739
+ const paramsResult = handleValidateParameters();
2740
+ const requestBodyResult = handleValidateRequestBody();
2741
+ const isPass = paramsResult && requestBodyResult;
2742
+ if (isPass) {
2743
+ onExecute?.();
2744
+ specActions.execute({
2745
+ operation: operation,
2746
+ path: path,
2747
+ method: method
2748
+ });
2749
+ } else {
2750
+ specActions.clearValidateParams(pathMethod);
2751
+ setTimeout(()=>{
2752
+ specActions.validateParams(pathMethod);
2753
+ }, 40);
2754
+ }
2755
+ };
2756
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2757
+ type: "button",
2758
+ className: className.trim() || 'btn execute opblock-control__btn',
2759
+ onClick: handleClick,
2760
+ disabled: disabled,
2761
+ children: "Execute"
2762
+ });
2763
+ };
2764
+ var $103b83f479373ff7$export$2e2bcd8739ae039 = $103b83f479373ff7$var$ExecuteButton;
2765
+
2766
+
2767
+
2768
+
2769
+ const $cebc70517f6ef693$var$ClearButton = (props)=>{
2770
+ const { specActions: specActions, path: path, method: method, className: className = '' } = props;
2771
+ const handleClick = ()=>{
2772
+ specActions.clearResponse(path, method);
2773
+ specActions.clearRequest(path, method);
2774
+ };
2775
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2776
+ type: "button",
2777
+ className: className.trim() || 'btn btn-clear opblock-control__btn',
2778
+ onClick: handleClick,
2779
+ children: "Clear"
2780
+ });
2781
+ };
2782
+ var $cebc70517f6ef693$export$2e2bcd8739ae039 = $cebc70517f6ef693$var$ClearButton;
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+ const $decc8bd0f6e8880f$var$Models = ({ specSelectors: specSelectors, getComponent: getComponent, layoutSelectors: layoutSelectors, layoutActions: layoutActions, specActions: specActions, getConfigs: getConfigs })=>{
2789
+ const getSchemaBasePath = (0, $hgUW1$useCallback)(()=>{
2790
+ const isOAS3 = specSelectors.isOAS3();
2791
+ return isOAS3 ? [
2792
+ 'components',
2793
+ 'schemas'
2794
+ ] : [
2795
+ 'definitions'
2796
+ ];
2797
+ }, [
2798
+ specSelectors
2799
+ ]);
2800
+ const getCollapsedContent = (0, $hgUW1$useCallback)((_name)=>' ', []);
2801
+ const handleToggle = (0, $hgUW1$useCallback)((name, isExpanded)=>{
2802
+ const specPathBase = getSchemaBasePath();
2803
+ layoutActions.show([
2804
+ ...specPathBase,
2805
+ name
2806
+ ], isExpanded);
2807
+ if (isExpanded) specActions.requestResolvedSubtree([
2808
+ ...specPathBase,
2809
+ name
2810
+ ]);
2811
+ }, [
2812
+ getSchemaBasePath,
2813
+ layoutActions,
2814
+ specActions
2815
+ ]);
2816
+ const onLoadModels = (0, $hgUW1$useCallback)((ref)=>{
2817
+ if (ref) layoutActions.readyToScroll(getSchemaBasePath(), ref);
2818
+ }, [
2819
+ getSchemaBasePath,
2820
+ layoutActions
2821
+ ]);
2822
+ const onLoadModel = (0, $hgUW1$useCallback)((ref)=>{
2823
+ if (ref) {
2824
+ const name = ref.getAttribute('data-name');
2825
+ if (name) layoutActions.readyToScroll([
2826
+ ...getSchemaBasePath(),
2827
+ name
2828
+ ], ref);
2829
+ }
2830
+ }, [
2831
+ getSchemaBasePath,
2832
+ layoutActions
2833
+ ]);
2834
+ const definitions = specSelectors.definitions();
2835
+ const { docExpansion: docExpansion, defaultModelsExpandDepth: defaultModelsExpandDepth = 0 } = getConfigs();
2836
+ if (!definitions.size || defaultModelsExpandDepth < 0) return null;
2837
+ const specPathBase = getSchemaBasePath();
2838
+ const showModels = layoutSelectors.isShown(specPathBase, defaultModelsExpandDepth > 0 && docExpansion !== 'none');
2839
+ const isOAS3 = specSelectors.isOAS3();
2840
+ const ModelWrapper = getComponent('ModelWrapper');
2841
+ const Collapse = getComponent('Collapse');
2842
+ const ModelCollapse = getComponent('ModelCollapse');
2843
+ const JumpToPath = getComponent('JumpToPath');
2844
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("section", {
2845
+ className: "ApiDocsModels",
2846
+ ref: onLoadModels,
2847
+ children: [
2848
+ /*#__PURE__*/ (0, $hgUW1$jsx)("h3", {
2849
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2850
+ children: isOAS3 ? 'Schemas' : 'Models'
2851
+ })
2852
+ }),
2853
+ /*#__PURE__*/ (0, $hgUW1$jsx)(Collapse, {
2854
+ isOpened: showModels,
2855
+ children: definitions.entrySeq().map(([name])=>{
2856
+ const fullPath = [
2857
+ ...specPathBase,
2858
+ name
2859
+ ];
2860
+ const specPath = (0, $hgUW1$List)(fullPath);
2861
+ const schemaValue = specSelectors.specResolvedSubtree(fullPath);
2862
+ const rawSchemaValue = specSelectors.specJson().getIn(fullPath);
2863
+ const schema = (0, $hgUW1$Map).isMap(schemaValue) ? schemaValue : (0, $hgUW1$Map)();
2864
+ const rawSchema = (0, $hgUW1$Map).isMap(rawSchemaValue) ? rawSchemaValue : (0, $hgUW1$Map)();
2865
+ const displayName = String(schema.get('title') ?? rawSchema.get('title') ?? name);
2866
+ const isShown = layoutSelectors.isShown(fullPath, false);
2867
+ if (isShown && schema.size === 0 && rawSchema.size > 0) specActions.requestResolvedSubtree(fullPath);
2868
+ const content = /*#__PURE__*/ (0, $hgUW1$jsx)(ModelWrapper, {
2869
+ name: name,
2870
+ expandDepth: defaultModelsExpandDepth,
2871
+ schema: schema || (0, $hgUW1$Map)(),
2872
+ displayName: displayName,
2873
+ fullPath: fullPath,
2874
+ specPath: specPath,
2875
+ getComponent: getComponent,
2876
+ specSelectors: specSelectors,
2877
+ getConfigs: getConfigs,
2878
+ layoutSelectors: layoutSelectors,
2879
+ layoutActions: layoutActions,
2880
+ includeReadOnly: true,
2881
+ includeWriteOnly: true
2882
+ });
2883
+ const title = /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2884
+ className: "model-box",
2885
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2886
+ className: "model model-title",
2887
+ children: displayName
2888
+ })
2889
+ });
2890
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2891
+ id: `model-${name}`,
2892
+ className: "model-container",
2893
+ "data-name": name,
2894
+ ref: onLoadModel,
2895
+ children: [
2896
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2897
+ className: "models-jump-to-path",
2898
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)(JumpToPath, {
2899
+ specPath: specPath
2900
+ })
2901
+ }),
2902
+ /*#__PURE__*/ (0, $hgUW1$jsx)(ModelCollapse, {
2903
+ classes: "model-box",
2904
+ collapsedContent: getCollapsedContent(name),
2905
+ onToggle: handleToggle,
2906
+ title: title,
2907
+ displayName: displayName,
2908
+ modelName: name,
2909
+ specPath: specPath,
2910
+ layoutSelectors: layoutSelectors,
2911
+ layoutActions: layoutActions,
2912
+ hideSelfOnExpand: true,
2913
+ expanded: defaultModelsExpandDepth > 0 && isShown,
2914
+ children: content
2915
+ })
2916
+ ]
2917
+ }, `models-section-${name}`);
2918
+ }).toArray()
2919
+ })
2920
+ ]
2921
+ });
2922
+ };
2923
+ var $decc8bd0f6e8880f$export$2e2bcd8739ae039 = $decc8bd0f6e8880f$var$Models;
2924
+
2925
+
2926
+ const $30bfb3d671300bcd$var$ApiDocsSwaggerUIPlugin = ({ docsURL: docsURL = '', showRowLimitNotice: showRowLimitNotice = false, isDatasetDocs: isDatasetDocs = false, buttonClassNames: buttonClassNames = {} })=>(system)=>{
2460
2927
  return {
2461
2928
  wrapComponents: {
2929
+ App: (Original)=>(props)=>/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2930
+ id: "api-docs-swagger-ui-plugin",
2931
+ className: "ds-l-container",
2932
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)(Original, {
2933
+ ...props
2934
+ })
2935
+ }),
2936
+ parameters: (Original)=>(props)=>/*#__PURE__*/ (0, $hgUW1$jsx)(Original, {
2937
+ ...props,
2938
+ allowTryItOut: true,
2939
+ tryItOutEnabled: true
2940
+ }),
2941
+ operation: (Original)=>(props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $eb1276da361453f7$export$2e2bcd8739ae039), {
2942
+ ...props,
2943
+ Original: Original
2944
+ }),
2945
+ execute: (Original)=>(props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $103b83f479373ff7$export$2e2bcd8739ae039), {
2946
+ ...props,
2947
+ className: buttonClassNames.executeButton ?? 'ds-c-button ds-c-button--solid execute-button'
2948
+ }),
2949
+ clear: (Original)=>(props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $cebc70517f6ef693$export$2e2bcd8739ae039), {
2950
+ ...props,
2951
+ className: buttonClassNames.clearButton ?? 'ds-c-button ds-u-margin-left--2 clear-button'
2952
+ }),
2462
2953
  VersionStamp: (Original, system)=>()=>{
2463
2954
  const version = system.specSelectors.version();
2464
- const classList = "version version-stamp version-stamp--span";
2465
2955
  return /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2466
- className: classList,
2956
+ className: "version version-stamp version-stamp--span",
2467
2957
  children: version
2468
2958
  });
2469
2959
  }
2470
2960
  },
2471
2961
  components: {
2472
- info: (props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $55899d0a5264c10b$export$2e2bcd8739ae039), {
2962
+ info: (props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $d42ff6af4a8dee64$export$2e2bcd8739ae039), {
2473
2963
  ...props,
2474
- isDatasetDocs: true,
2964
+ isDatasetDocs: isDatasetDocs,
2475
2965
  docsURL: docsURL,
2476
- showRowLimitNotice: showRowLimitNotice
2477
- })
2478
- },
2479
- statePlugins: {
2480
- docs: {
2481
- selectors: {
2482
- docsUrl: (state)=>state.get('docsUrl')
2483
- }
2484
- }
2966
+ showRowLimitNotice: showRowLimitNotice,
2967
+ buttonClassNames: buttonClassNames
2968
+ }),
2969
+ OperationTag: (props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $c9215d4ba59490d9$export$2e2bcd8739ae039), {
2970
+ ...props
2971
+ }),
2972
+ OperationSummary: (props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $6724506e656710f6$export$2e2bcd8739ae039), {
2973
+ ...props,
2974
+ tryItOutButtonClassNames: buttonClassNames.tryItOutButton ?? '',
2975
+ copyToClipboardButtonClassNames: buttonClassNames.copyToClipboardButton ?? ''
2976
+ }),
2977
+ Models: (props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $decc8bd0f6e8880f$export$2e2bcd8739ae039), {
2978
+ ...props
2979
+ }),
2980
+ OperationSummaryMethod: ()=>null,
2981
+ TryItOutButton: ()=>null
2485
2982
  }
2486
2983
  };
2487
2984
  };
2985
+ var $30bfb3d671300bcd$export$2e2bcd8739ae039 = $30bfb3d671300bcd$var$ApiDocsSwaggerUIPlugin;
2986
+
2987
+
2988
+
2989
+
2990
+ const $2276c8c929d6a6d3$var$ApiDocumentation = ({ endpoint: endpoint, docsURL: docsURL, showRowLimitNotice: showRowLimitNotice, swaggerButtonClassNames: swaggerButtonClassNames = {} })=>{
2488
2991
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2489
2992
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
2490
2993
  url: endpoint,
2491
2994
  plugins: [
2492
- (0, $hgUW1$SpanOpenAPIVersion),
2493
- (0, $hgUW1$SpanVersionStamp),
2494
- ApiDocsSwaggerUIPlugin
2495
- ],
2496
- docsURL: docsURL
2995
+ (0, $5b656f0283afa250$export$2e2bcd8739ae039),
2996
+ (0, $ffd9c403a1c2fc39$export$2e2bcd8739ae039),
2997
+ (0, $30bfb3d671300bcd$export$2e2bcd8739ae039)({
2998
+ docsURL: docsURL,
2999
+ showRowLimitNotice: showRowLimitNotice,
3000
+ isDatasetDocs: true,
3001
+ buttonClassNames: swaggerButtonClassNames
3002
+ })
3003
+ ]
2497
3004
  })
2498
3005
  });
2499
3006
  };
2500
- var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocumentation;
3007
+ var $2276c8c929d6a6d3$export$2e2bcd8739ae039 = $2276c8c929d6a6d3$var$ApiDocumentation;
2501
3008
 
2502
3009
 
2503
3010
 
@@ -4967,32 +5474,12 @@ var $5644ebd2c3dbfd7b$export$2e2bcd8739ae039 = $5644ebd2c3dbfd7b$var$DatasetAddi
4967
5474
 
4968
5475
 
4969
5476
 
4970
- const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: rootUrl, showRowLimitNotice: showRowLimitNotice = false })=>{
5477
+
5478
+ const $6fd40f23575fa7f0$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: rootUrl, showRowLimitNotice: showRowLimitNotice = false, swaggerButtonClassNames: swaggerButtonClassNames = {} })=>{
4971
5479
  let params = {
4972
5480
  authentication: hideAuth ? false : undefined
4973
5481
  };
4974
5482
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4975
- // this plugin is defined here rather than in swagger-ui-layout so that it can easily re-use
4976
- // the ApiDocsInfo component.
4977
- const ApiDocsSwaggerUIPlugin = (props)=>{
4978
- return {
4979
- wrapComponents: {
4980
- VersionStamp: (Original, system)=>()=>{
4981
- const version = system.specSelectors.version();
4982
- const classList = "version version-stamp version-stamp--span";
4983
- return /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4984
- className: classList,
4985
- children: version
4986
- });
4987
- }
4988
- },
4989
- components: {
4990
- info: (props)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $55899d0a5264c10b$export$2e2bcd8739ae039), {
4991
- ...props
4992
- })
4993
- }
4994
- };
4995
- };
4996
5483
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
4997
5484
  children: [
4998
5485
  showRowLimitNotice && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e49d4387bed21287$export$2e2bcd8739ae039), {}),
@@ -5005,16 +5492,19 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
5005
5492
  docExpansion: 'list',
5006
5493
  defaultModelsExpandDepth: -1,
5007
5494
  plugins: [
5008
- (0, $hgUW1$SpanOpenAPIVersion),
5009
- (0, $hgUW1$SpanVersionStamp),
5010
- ApiDocsSwaggerUIPlugin
5495
+ (0, $5b656f0283afa250$export$2e2bcd8739ae039),
5496
+ (0, $ffd9c403a1c2fc39$export$2e2bcd8739ae039),
5497
+ (0, $30bfb3d671300bcd$export$2e2bcd8739ae039)({
5498
+ showRowLimitNotice: showRowLimitNotice,
5499
+ buttonClassNames: swaggerButtonClassNames
5500
+ })
5011
5501
  ]
5012
5502
  })
5013
5503
  })
5014
5504
  ]
5015
5505
  });
5016
5506
  };
5017
- var $c96c4b9ef7203c1f$export$2e2bcd8739ae039 = $c96c4b9ef7203c1f$var$APIPage;
5507
+ var $6fd40f23575fa7f0$export$2e2bcd8739ae039 = $6fd40f23575fa7f0$var$APIPage;
5018
5508
 
5019
5509
 
5020
5510
 
@@ -6065,13 +6555,14 @@ var $364dc44850cd8f7f$export$2e2bcd8739ae039 = $364dc44850cd8f7f$var$DatasetOver
6065
6555
 
6066
6556
 
6067
6557
 
6068
- const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: apiUrl, showRowLimitNotice: showRowLimitNotice = false })=>{
6558
+ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: apiUrl, showRowLimitNotice: showRowLimitNotice = false, swaggerButtonClassNames: swaggerButtonClassNames = {} })=>{
6069
6559
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
6070
6560
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6071
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $789279954d8eff7f$export$2e2bcd8739ae039), {
6561
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2276c8c929d6a6d3$export$2e2bcd8739ae039), {
6072
6562
  endpoint: `${rootUrl}/metastore/schemas/dataset/items/${id}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
6073
6563
  docsURL: apiUrl,
6074
- showRowLimitNotice: showRowLimitNotice
6564
+ showRowLimitNotice: showRowLimitNotice,
6565
+ swaggerButtonClassNames: swaggerButtonClassNames
6075
6566
  })
6076
6567
  });
6077
6568
  };
@@ -6689,7 +7180,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6689
7180
  dataDictionaryLoading: isPending
6690
7181
  };
6691
7182
  };
6692
- const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false, enableEmptyFilters: enableEmptyFilters = false, tabHrefPrepend: tabHrefPrepend = '', showDateDetails: showDateDetails = false, topicDetails: topicDetails = [], showTagsOnOverview: showTagsOnOverview = false })=>{
7183
+ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false, enableEmptyFilters: enableEmptyFilters = false, tabHrefPrepend: tabHrefPrepend = '', showDateDetails: showDateDetails = false, topicDetails: topicDetails = [], showTagsOnOverview: showTagsOnOverview = false, swaggerButtonClassNames: swaggerButtonClassNames = {} })=>{
6693
7184
  const tabHref = `/dataset/${id}`;
6694
7185
  const options = location.search ? {
6695
7186
  ...(0, $hgUW1$qs).parse(location.search, {
@@ -6936,7 +7427,8 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6936
7427
  id: id,
6937
7428
  rootUrl: rootUrl,
6938
7429
  apiUrl: apiPageUrl,
6939
- showRowLimitNotice: showRowLimitNotice
7430
+ showRowLimitNotice: showRowLimitNotice,
7431
+ swaggerButtonClassNames: swaggerButtonClassNames
6940
7432
  })
6941
7433
  })
6942
7434
  ]
@@ -8497,5 +8989,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
8497
8989
 
8498
8990
 
8499
8991
 
8500
- export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $c068004d499082cc$export$2e2bcd8739ae039 as DatasetListItem, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $17711e94d2ce0ee4$export$2e2bcd8739ae039 as DatasetDateItem, $20de4fedf33d4f9a$export$2e2bcd8739ae039 as DatasetDate, $10bc3aae21fc1572$export$2e2bcd8739ae039 as DatasetListSubmenu, $e011250e8a3bd5e5$export$2e2bcd8739ae039 as DatasetSearchFacets, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $550bcc185f420ff5$export$2e2bcd8739ae039 as DatasetList, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $8b67b7ee3fcfb629$export$2e2bcd8739ae039 as StoredQueryPage, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ee0d4d4f34048447$export$2e2bcd8739ae039 as DataTableActionsProvider, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
8992
+ export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $c068004d499082cc$export$2e2bcd8739ae039 as DatasetListItem, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $17711e94d2ce0ee4$export$2e2bcd8739ae039 as DatasetDateItem, $20de4fedf33d4f9a$export$2e2bcd8739ae039 as DatasetDate, $10bc3aae21fc1572$export$2e2bcd8739ae039 as DatasetListSubmenu, $e011250e8a3bd5e5$export$2e2bcd8739ae039 as DatasetSearchFacets, $2276c8c929d6a6d3$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $6fd40f23575fa7f0$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $550bcc185f420ff5$export$2e2bcd8739ae039 as DatasetList, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $8b67b7ee3fcfb629$export$2e2bcd8739ae039 as StoredQueryPage, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ee0d4d4f34048447$export$2e2bcd8739ae039 as DataTableActionsProvider, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
8501
8993
  //# sourceMappingURL=main.js.map