@gen3/frontend 0.10.44 → 0.10.47
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/cjs/index.js +3404 -2839
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/api/auth/credentialsLogin.js +2 -2
- package/dist/dts/api/auth/credentialsLogout.js +2 -2
- package/dist/dts/api/auth/sessionLogout.js +2 -2
- package/dist/dts/api/auth/sessionToken.js +2 -2
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.js +6 -2
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.js.map +1 -1
- package/dist/dts/components/Details/DetailsModal.d.ts +1 -1
- package/dist/dts/components/Details/DetailsModal.d.ts.map +1 -1
- package/dist/dts/components/Details/DetailsModal.js +5 -4
- package/dist/dts/components/Details/DetailsModal.js.map +1 -1
- package/dist/dts/components/Details/types.d.ts +3 -0
- package/dist/dts/components/Details/types.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +2 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +2 -2
- package/dist/dts/components/Login/CredentialsLogin.js +2 -2
- package/dist/dts/components/Login/LoginAccountButton.js +2 -2
- package/dist/dts/components/Login/LoginButton.js +4 -3
- package/dist/dts/components/Login/LoginButton.js.map +1 -1
- package/dist/dts/components/Login/LoginPanel.js +2 -2
- package/dist/dts/components/Modals/FirstTimeModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/FirstTimeModal.js +5 -3
- package/dist/dts/components/Modals/FirstTimeModal.js.map +1 -1
- package/dist/dts/components/Modals/Gen3ModalsProvider.js +2 -1
- package/dist/dts/components/Modals/Gen3ModalsProvider.js.map +1 -1
- package/dist/dts/components/Profile/Credentials.js +2 -2
- package/dist/dts/components/Profile/ExternalProviderCard.js +2 -2
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +9 -0
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts +3 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +59 -11
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/tests/utils.unit.test.js +3 -3
- package/dist/dts/components/charts/tests/utils.unit.test.js.map +1 -1
- package/dist/dts/components/charts/types.d.ts +2 -1
- package/dist/dts/components/charts/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/ExplorerTableDetailsPanelFactory.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/ExplorerTableDetailsPanelFactory.js +4 -2
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/ExplorerTableDetailsPanelFactory.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/{TableDetailsPanel.js → QueryRowDetailsPanel.js} +5 -5
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.js +14 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +10 -8
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.js +2 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/downloadManifest.js +10 -6
- package/dist/dts/features/CohortBuilder/downloads/actions/downloadManifest.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/downloadToFile.js +8 -5
- package/dist/dts/features/CohortBuilder/downloads/actions/downloadToFile.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/registeredActions.js +2 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/registeredActions.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/tests/downloadManifest.unit.test.js +2 -2
- package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.js +11 -7
- package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.js.map +1 -1
- package/dist/dts/features/Discovery/Charts/ChartsPanel.d.ts +6 -0
- package/dist/dts/features/Discovery/Charts/ChartsPanel.d.ts.map +1 -0
- package/dist/dts/features/Discovery/Charts/ChartsPanel.js +124 -0
- package/dist/dts/features/Discovery/Charts/ChartsPanel.js.map +1 -0
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +14 -14
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts +1 -2
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +13 -0
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Navigation/Banner.d.ts +9 -0
- package/dist/dts/features/Navigation/Banner.d.ts.map +1 -0
- package/dist/dts/features/Navigation/Banner.js +54 -0
- package/dist/dts/features/Navigation/Banner.js.map +1 -0
- package/dist/dts/features/Navigation/Footer/Footer.d.ts +4 -0
- package/dist/dts/features/Navigation/Footer/Footer.d.ts.map +1 -0
- package/dist/dts/features/Navigation/Footer/Footer.js +26 -0
- package/dist/dts/features/Navigation/Footer/Footer.js.map +1 -0
- package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts +5 -0
- package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -0
- package/dist/dts/features/Navigation/Footer/FooterColumn.js +72 -0
- package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -0
- package/dist/dts/features/Navigation/Footer/types.d.ts +63 -0
- package/dist/dts/features/Navigation/Footer/types.d.ts.map +1 -0
- package/dist/dts/features/Navigation/Footer/types.js +2 -0
- package/dist/dts/features/Navigation/Footer/types.js.map +1 -0
- package/dist/dts/features/Navigation/Header.d.ts +1 -1
- package/dist/dts/features/Navigation/Header.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Header.js +4 -2
- package/dist/dts/features/Navigation/Header.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.d.ts +4 -3
- package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
- package/dist/dts/features/Navigation/NavigationBar.d.ts +3 -2
- package/dist/dts/features/Navigation/NavigationBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationBar.js +8 -7
- package/dist/dts/features/Navigation/NavigationBar.js.map +1 -1
- package/dist/dts/features/Navigation/NavigationBarButton.js +1 -1
- package/dist/dts/features/Navigation/NavigationBarButton.js.map +1 -1
- package/dist/dts/features/Navigation/NavigationLogo.d.ts +1 -1
- package/dist/dts/features/Navigation/NavigationLogo.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationLogo.js +8 -6
- package/dist/dts/features/Navigation/NavigationLogo.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar.d.ts +3 -2
- package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar.js +1 -1
- package/dist/dts/features/Navigation/TopBar.js.map +1 -1
- package/dist/dts/features/Navigation/index.d.ts +5 -3
- package/dist/dts/features/Navigation/index.d.ts.map +1 -1
- package/dist/dts/features/Navigation/index.js +1 -1
- package/dist/dts/features/Navigation/index.js.map +1 -1
- package/dist/dts/features/Navigation/types.d.ts +10 -32
- package/dist/dts/features/Navigation/types.d.ts.map +1 -1
- package/dist/dts/features/Query/GqlQueryEditor.d.ts.map +1 -1
- package/dist/dts/features/Query/GqlQueryEditor.js +5 -4
- package/dist/dts/features/Query/GqlQueryEditor.js.map +1 -1
- package/dist/dts/lib/common/staticProps.d.ts +1 -1
- package/dist/dts/lib/common/staticProps.d.ts.map +1 -1
- package/dist/dts/lib/common/staticProps.js +18 -4
- package/dist/dts/lib/common/staticProps.js.map +1 -1
- package/dist/dts/lib/content/ContentDatabase.js +2 -2
- package/dist/dts/lib/content/filesystem.js +2 -2
- package/dist/dts/lib/session/hooks.js +2 -2
- package/dist/dts/lib/session/session.js +2 -2
- package/dist/dts/pages/AiSearch/data.js +2 -2
- package/dist/dts/pages/Crosswalk/data.js +2 -2
- package/dist/dts/pages/DataDictionary/data.js +2 -2
- package/dist/dts/pages/Discovery/data.js +2 -2
- package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +0 -3
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.js +2 -2
- package/dist/dts/pages/Landing/about-us.js +2 -2
- package/dist/dts/pages/Landing/contact.js +2 -2
- package/dist/dts/pages/Landing/data.js +2 -2
- package/dist/dts/pages/Landing/resource.js +2 -2
- package/dist/dts/pages/Login/data.js +2 -2
- package/dist/dts/pages/Profile/data.js +2 -2
- package/dist/dts/pages/Query/data.js +2 -2
- package/dist/dts/pages/Submission/data.js +2 -2
- package/dist/dts/pages/Theme/data.js +2 -2
- package/dist/dts/pages/Workspace/data.js +2 -2
- package/dist/dts/pages/_document.js +2 -2
- package/dist/dts/pages/admin/authz/data.d.ts +2 -2
- package/dist/dts/pages/admin/authz/data.js +2 -2
- package/dist/dts/pages/api/content/content.js +2 -2
- package/dist/dts/pages/external/footer.js +3 -3
- package/dist/dts/pages/external/footer.js.map +1 -1
- package/dist/dts/pages/index.js +2 -2
- package/dist/dts/pages/utils/serverSideProps.js +2 -2
- package/dist/dts/types/index.d.ts +2 -0
- package/dist/dts/types/index.d.ts.map +1 -0
- package/dist/dts/types/index.js +2 -0
- package/dist/dts/types/index.js.map +1 -0
- package/dist/dts/types/styling.d.ts +4 -0
- package/dist/dts/types/styling.d.ts.map +1 -1
- package/dist/dts/utils/RendererFactory.d.ts +0 -8
- package/dist/dts/utils/RendererFactory.d.ts.map +1 -1
- package/dist/dts/utils/RendererFactory.js.map +1 -1
- package/dist/dts/utils/download.js +2 -2
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +1 -0
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/mergeDefaultTailwindClassnames.d.ts +3 -2
- package/dist/dts/utils/mergeDefaultTailwindClassnames.d.ts.map +1 -1
- package/dist/dts/utils/mergeDefaultTailwindClassnames.js +23 -5
- package/dist/dts/utils/mergeDefaultTailwindClassnames.js.map +1 -1
- package/dist/dts/utils/tailwindConfig.js +1 -1
- package/dist/dts/utils/tailwindConfig.js.map +1 -1
- package/dist/dts/utils/tests/mergeDefaultTailwindClassnames.test.d.ts +2 -0
- package/dist/dts/utils/tests/mergeDefaultTailwindClassnames.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/mergeDefaultTailwindClassnames.test.js +40 -0
- package/dist/dts/utils/tests/mergeDefaultTailwindClassnames.test.js.map +1 -0
- package/dist/dts/utils/tests/values.test.d.ts +2 -0
- package/dist/dts/utils/tests/values.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/values.test.js +24 -0
- package/dist/dts/utils/tests/values.test.js.map +1 -0
- package/dist/dts/utils/values.d.ts +1 -0
- package/dist/dts/utils/values.d.ts.map +1 -1
- package/dist/dts/utils/values.js +9 -1
- package/dist/dts/utils/values.js.map +1 -1
- package/dist/esm/index.js +3406 -2845
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +140 -70
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -17
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/TableDetailsPanel.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/TableDetailsPanel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/TableDetailsPanel.js.map +0 -1
- package/dist/dts/features/Navigation/Footer.d.ts +0 -4
- package/dist/dts/features/Navigation/Footer.d.ts.map +0 -1
- package/dist/dts/features/Navigation/Footer.js +0 -48
- package/dist/dts/features/Navigation/Footer.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,93 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { ReactElement, PropsWithChildren, ReactNode, CSSProperties } from 'react';
|
|
3
3
|
import { ButtonProps, TitleOrder } from '@mantine/core';
|
|
4
|
-
import {
|
|
4
|
+
import { HistogramDataArray, JSONObject, AggregationsData, EnumFilterValue, FacetDefinition } from '@gen3/core';
|
|
5
5
|
import { MRT_RowData, MRT_Cell, MRT_Row } from 'mantine-react-table';
|
|
6
6
|
import { EChartsOption, SetOptionOpts } from 'echarts';
|
|
7
7
|
import { GetServerSideProps, GetStaticProps, NextPage, NextApiRequest, NextApiResponse } from 'next';
|
|
8
8
|
import { IconType } from 'react-icons';
|
|
9
9
|
|
|
10
|
+
type StylingOverride = Record<string, Record<string, string> | string>;
|
|
11
|
+
type StylingMergeMode = 'merge' | 'replace';
|
|
12
|
+
type StylingOverrideWithMergeControl = Record<string, string> & {
|
|
13
|
+
mergeMode?: StylingMergeMode;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
interface ColumnLinks {
|
|
17
|
+
heading: string;
|
|
18
|
+
items: ReadonlyArray<{
|
|
19
|
+
text: string;
|
|
20
|
+
href?: string;
|
|
21
|
+
linkType?: 'gen3ff' | 'portal';
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
interface BottomLinks {
|
|
25
|
+
text: string;
|
|
26
|
+
href: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A Text items for the footer
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
interface FooterText {
|
|
33
|
+
text: string;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
interface FooterLinks {
|
|
37
|
+
links: Array<FooterLink>;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
interface FooterLink extends FooterText {
|
|
41
|
+
href: string;
|
|
42
|
+
linkType?: 'gen3ff' | 'portal';
|
|
43
|
+
}
|
|
44
|
+
interface FooterLink extends FooterText {
|
|
45
|
+
href: string;
|
|
46
|
+
linkType?: 'gen3ff' | 'portal';
|
|
47
|
+
}
|
|
48
|
+
interface FooterLogo extends FooterText {
|
|
49
|
+
logo: string;
|
|
50
|
+
description: string;
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
href: string;
|
|
54
|
+
}
|
|
55
|
+
type FooterRow = FooterLogo | FooterText | FooterLink | FooterLinks | FooterSectionProps;
|
|
56
|
+
interface FooterColumnProps {
|
|
57
|
+
heading?: string;
|
|
58
|
+
rows: Array<Record<string, FooterRow>>;
|
|
59
|
+
classNames?: StylingOverrideWithMergeControl;
|
|
60
|
+
}
|
|
61
|
+
interface FooterSectionProps {
|
|
62
|
+
columns: ReadonlyArray<FooterColumnProps>;
|
|
63
|
+
className?: string;
|
|
64
|
+
}
|
|
65
|
+
interface FooterProps {
|
|
66
|
+
bottomLinks?: ReadonlyArray<BottomLinks>;
|
|
67
|
+
columnLinks?: ReadonlyArray<ColumnLinks>;
|
|
68
|
+
footerLogos?: ReadonlyArray<FooterLogo>;
|
|
69
|
+
footerRightLogos?: ReadonlyArray<FooterLogo>;
|
|
70
|
+
rightSection?: FooterSectionProps;
|
|
71
|
+
leftSection?: FooterSectionProps;
|
|
72
|
+
classNames?: StylingOverrideWithMergeControl;
|
|
73
|
+
customFooter?: ReactElement;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare const Footer: ({ rightSection, leftSection, classNames, }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
77
|
+
//# sourceMappingURL=Footer.d.ts.map
|
|
78
|
+
|
|
79
|
+
interface ClassProps$1 {
|
|
80
|
+
readonly className?: string;
|
|
81
|
+
}
|
|
82
|
+
interface Gen3LinkProps extends ClassProps$1 {
|
|
83
|
+
readonly href: string;
|
|
84
|
+
readonly linkType?: string;
|
|
85
|
+
readonly text: string;
|
|
86
|
+
readonly showExternalIcon?: boolean;
|
|
87
|
+
}
|
|
88
|
+
declare const Gen3Link: ({ className, href, linkType, text, showExternalIcon, }: PropsWithChildren<Gen3LinkProps>) => react_jsx_runtime.JSX.Element;
|
|
89
|
+
//# sourceMappingURL=Gen3Link.d.ts.map
|
|
90
|
+
|
|
10
91
|
declare enum ContentType {
|
|
11
92
|
Text = "text",
|
|
12
93
|
TextArray = "textArray",
|
|
@@ -47,7 +128,7 @@ interface NameAndIcon {
|
|
|
47
128
|
readonly name: string;
|
|
48
129
|
readonly rightIcon?: string;
|
|
49
130
|
readonly leftIcon?: string;
|
|
50
|
-
readonly classNames:
|
|
131
|
+
readonly classNames: StylingOverrideWithMergeControl;
|
|
51
132
|
readonly drawBorder?: boolean;
|
|
52
133
|
}
|
|
53
134
|
interface TopIconButtonProps extends NameAndIcon {
|
|
@@ -57,41 +138,24 @@ interface TopIconButtonProps extends NameAndIcon {
|
|
|
57
138
|
interface TopBarProps {
|
|
58
139
|
readonly items: TopIconButtonProps[];
|
|
59
140
|
readonly loginButtonVisibility?: LoginButtonVisibility;
|
|
60
|
-
readonly classNames?:
|
|
141
|
+
readonly classNames?: StylingOverrideWithMergeControl;
|
|
61
142
|
}
|
|
62
143
|
|
|
63
|
-
interface
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
items: ReadonlyArray<{
|
|
70
|
-
text: string;
|
|
71
|
-
href?: string;
|
|
72
|
-
linkType?: 'gen3ff' | 'portal';
|
|
73
|
-
}>;
|
|
74
|
-
}
|
|
75
|
-
interface FooterLogo {
|
|
76
|
-
readonly logo: string;
|
|
77
|
-
readonly description: string;
|
|
78
|
-
readonly width: number;
|
|
79
|
-
readonly height: number;
|
|
80
|
-
}
|
|
81
|
-
interface FooterProps {
|
|
82
|
-
readonly bottomLinks?: ReadonlyArray<BottomLinks>;
|
|
83
|
-
readonly columnLinks?: ReadonlyArray<ColumnLinks>;
|
|
84
|
-
readonly footerLogos?: ReadonlyArray<ReadonlyArray<FooterLogo>>;
|
|
85
|
-
readonly footerRightLogos?: ReadonlyArray<ReadonlyArray<FooterLogo>>;
|
|
86
|
-
readonly classNames?: Record<string, string>;
|
|
144
|
+
interface BannerProps {
|
|
145
|
+
readonly message: string;
|
|
146
|
+
readonly level: 'INFO' | 'WARNING' | 'ERROR';
|
|
147
|
+
readonly dismissible: boolean;
|
|
148
|
+
readonly isExternalLink: boolean;
|
|
149
|
+
readonly id: number;
|
|
87
150
|
}
|
|
151
|
+
|
|
88
152
|
interface NavigationButtonProps$1 {
|
|
89
153
|
readonly icon: string;
|
|
90
154
|
readonly tooltip: string;
|
|
91
155
|
readonly href: string;
|
|
92
156
|
readonly name: string;
|
|
93
157
|
readonly iconHeight?: string;
|
|
94
|
-
readonly classNames?:
|
|
158
|
+
readonly classNames?: StylingOverrideWithMergeControl;
|
|
95
159
|
}
|
|
96
160
|
interface NavigationBarLogo {
|
|
97
161
|
readonly src: string;
|
|
@@ -100,14 +164,15 @@ interface NavigationBarLogo {
|
|
|
100
164
|
readonly width?: number;
|
|
101
165
|
readonly height?: number;
|
|
102
166
|
readonly basePath?: string;
|
|
103
|
-
readonly
|
|
167
|
+
readonly divider?: boolean;
|
|
168
|
+
readonly classNames?: StylingOverrideWithMergeControl;
|
|
104
169
|
}
|
|
105
170
|
interface NavigationProps {
|
|
106
171
|
readonly logo?: NavigationBarLogo;
|
|
107
172
|
readonly items?: NavigationButtonProps$1[];
|
|
108
173
|
readonly title?: string;
|
|
109
174
|
readonly loginIcon?: ReactElement | string;
|
|
110
|
-
readonly classNames?:
|
|
175
|
+
readonly classNames?: StylingOverrideWithMergeControl;
|
|
111
176
|
}
|
|
112
177
|
interface HeaderData {
|
|
113
178
|
title: string;
|
|
@@ -115,29 +180,15 @@ interface HeaderData {
|
|
|
115
180
|
key: string;
|
|
116
181
|
}
|
|
117
182
|
interface HeaderProps {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
183
|
+
top: TopBarProps;
|
|
184
|
+
navigation: NavigationProps;
|
|
185
|
+
banners?: Array<BannerProps>;
|
|
186
|
+
type?: 'horizontal' | 'vertical' | 'original';
|
|
121
187
|
}
|
|
122
188
|
interface MainContentProps {
|
|
123
189
|
fixed: boolean;
|
|
124
190
|
}
|
|
125
191
|
|
|
126
|
-
declare const Footer: ({ bottomLinks, columnLinks, footerLogos, footerRightLogos, classNames, }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
127
|
-
//# sourceMappingURL=Footer.d.ts.map
|
|
128
|
-
|
|
129
|
-
interface ClassProps$1 {
|
|
130
|
-
readonly className?: string;
|
|
131
|
-
}
|
|
132
|
-
interface Gen3LinkProps extends ClassProps$1 {
|
|
133
|
-
readonly href: string;
|
|
134
|
-
readonly linkType?: string;
|
|
135
|
-
readonly text: string;
|
|
136
|
-
readonly showExternalIcon?: boolean;
|
|
137
|
-
}
|
|
138
|
-
declare const Gen3Link: ({ className, href, linkType, text, showExternalIcon, }: PropsWithChildren<Gen3LinkProps>) => react_jsx_runtime.JSX.Element;
|
|
139
|
-
//# sourceMappingURL=Gen3Link.d.ts.map
|
|
140
|
-
|
|
141
192
|
/**
|
|
142
193
|
* Header component.
|
|
143
194
|
*
|
|
@@ -147,7 +198,7 @@ declare const Gen3Link: ({ className, href, linkType, text, showExternalIcon, }:
|
|
|
147
198
|
* @param {string} props.type - The type of header to render. Default value is 'original'.
|
|
148
199
|
* @returns {JSX.Element} - The rendered Header component.
|
|
149
200
|
*/
|
|
150
|
-
declare const Header: ({ top, navigation, type }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare const Header: ({ top, navigation, banners, type, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
151
202
|
//# sourceMappingURL=Header.d.ts.map
|
|
152
203
|
|
|
153
204
|
interface ClassProps {
|
|
@@ -175,9 +226,9 @@ declare const HoverLink: ({ className, href, children }: HoverLinkProps) => reac
|
|
|
175
226
|
* @param {Object} NavigationProps.logo - The logo object
|
|
176
227
|
* @param {Array} NavigationProps.items - The array of navigation items
|
|
177
228
|
* @param {Object} NavigationProps.classNames - The custom class names for different elements of the NavigationBar
|
|
178
|
-
* @returns {
|
|
229
|
+
* @returns {ReactElement} The rendered NavigationBar component
|
|
179
230
|
*/
|
|
180
|
-
declare const NavigationBar: ({ logo, items, classNames, }: NavigationProps) =>
|
|
231
|
+
declare const NavigationBar: ({ logo, title, items, classNames, }: NavigationProps) => ReactElement;
|
|
181
232
|
//# sourceMappingURL=NavigationBar.d.ts.map
|
|
182
233
|
|
|
183
234
|
type NavigationButtonProps = ButtonProps & React$1.ComponentPropsWithoutRef<'a'> & {
|
|
@@ -187,8 +238,8 @@ declare const NavigationButton: ({ $selected, ...props }: NavigationButtonProps)
|
|
|
187
238
|
//# sourceMappingURL=NavigationButton.d.ts.map
|
|
188
239
|
|
|
189
240
|
interface NavPageLayoutProps {
|
|
190
|
-
headerProps: HeaderProps
|
|
191
|
-
footerProps: FooterProps
|
|
241
|
+
headerProps: Readonly<HeaderProps>;
|
|
242
|
+
footerProps: Readonly<FooterProps>;
|
|
192
243
|
mainProps?: Partial<MainContentProps>;
|
|
193
244
|
headerData: HeaderData;
|
|
194
245
|
}
|
|
@@ -201,6 +252,18 @@ interface SummaryStatisticsConfig {
|
|
|
201
252
|
displayFunction?: string;
|
|
202
253
|
}
|
|
203
254
|
|
|
255
|
+
interface SummaryChart {
|
|
256
|
+
readonly title: string;
|
|
257
|
+
readonly chartType: 'bar' | 'horizontalStacked' | 'fullPie' | 'donut';
|
|
258
|
+
readonly valueType?: 'count' | 'percent';
|
|
259
|
+
readonly dataLabels?: Record<string, string>;
|
|
260
|
+
}
|
|
261
|
+
interface ChartProps {
|
|
262
|
+
data: HistogramDataArray;
|
|
263
|
+
total: number;
|
|
264
|
+
valueType?: 'count' | 'percent';
|
|
265
|
+
}
|
|
266
|
+
|
|
204
267
|
interface TagData {
|
|
205
268
|
name: string;
|
|
206
269
|
category: string;
|
|
@@ -352,6 +415,17 @@ interface TagsConfig {
|
|
|
352
415
|
tagCategories: TagCategory[];
|
|
353
416
|
showUnknownTags?: boolean;
|
|
354
417
|
}
|
|
418
|
+
interface ChartsSection {
|
|
419
|
+
enabled: boolean;
|
|
420
|
+
title?: string;
|
|
421
|
+
showLegends?: {
|
|
422
|
+
enabled: boolean;
|
|
423
|
+
showSwitch?: boolean;
|
|
424
|
+
};
|
|
425
|
+
charts?: Array<SummaryChart & {
|
|
426
|
+
data: string[];
|
|
427
|
+
}>;
|
|
428
|
+
}
|
|
355
429
|
interface DiscoveryIndexConfig {
|
|
356
430
|
guidType?: string;
|
|
357
431
|
studyField?: string;
|
|
@@ -364,6 +438,7 @@ interface DiscoveryIndexConfig {
|
|
|
364
438
|
search?: SearchConfig;
|
|
365
439
|
authorization: DataAuthorization;
|
|
366
440
|
dataLoader?: DataLoader;
|
|
441
|
+
chartsSection?: ChartsSection;
|
|
367
442
|
};
|
|
368
443
|
aggregations: SummaryStatisticsConfig[];
|
|
369
444
|
tags: TagsConfig;
|
|
@@ -613,17 +688,6 @@ interface Gen3StandardModalsProviderProps {
|
|
|
613
688
|
declare const Gen3ModalsProvider: ({ config, children, }: Gen3StandardModalsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
614
689
|
//# sourceMappingURL=Gen3ModalsProvider.d.ts.map
|
|
615
690
|
|
|
616
|
-
interface SummaryChart {
|
|
617
|
-
readonly title: string;
|
|
618
|
-
readonly chartType: string;
|
|
619
|
-
readonly valueType?: 'count' | 'percent';
|
|
620
|
-
}
|
|
621
|
-
interface ChartProps {
|
|
622
|
-
data: HistogramDataArray;
|
|
623
|
-
total: number;
|
|
624
|
-
valueType?: 'count' | 'percent';
|
|
625
|
-
}
|
|
626
|
-
|
|
627
691
|
declare const capitalize: (original: string) => string;
|
|
628
692
|
declare const truncateString: (str: string, n: number) => string;
|
|
629
693
|
declare const removeKey: (key: any, { [key]: _, ...rest }: {
|
|
@@ -650,8 +714,10 @@ interface ChartsProps {
|
|
|
650
714
|
isSuccess: boolean;
|
|
651
715
|
isError?: boolean;
|
|
652
716
|
numCols?: number;
|
|
717
|
+
style?: 'tile' | 'box';
|
|
718
|
+
showLegends?: boolean;
|
|
653
719
|
}
|
|
654
|
-
declare const Charts: ({ index, charts, data, counts, isSuccess, numCols, }: ChartsProps) => react_jsx_runtime.JSX.Element;
|
|
720
|
+
declare const Charts: ({ index, charts, data, counts, isSuccess, numCols, style, showLegends, }: ChartsProps) => react_jsx_runtime.JSX.Element;
|
|
655
721
|
|
|
656
722
|
interface ReactEChartsProps {
|
|
657
723
|
option: EChartsOption;
|
|
@@ -729,6 +795,7 @@ declare class RenderFactoryTypedInstance<T> implements RendererFactoryInterface<
|
|
|
729
795
|
interface DetailsPanelComponentProps extends Record<string, unknown> {
|
|
730
796
|
id?: string;
|
|
731
797
|
onClose?: (id?: string) => void;
|
|
798
|
+
row?: MRT_Row<Record<string, any>>;
|
|
732
799
|
}
|
|
733
800
|
|
|
734
801
|
interface TableDetailsPanelProps extends DetailsPanelComponentProps {
|
|
@@ -792,8 +859,6 @@ interface FieldToName {
|
|
|
792
859
|
readonly name: string;
|
|
793
860
|
}
|
|
794
861
|
|
|
795
|
-
type StylingOverride = Record<string, Record<string, string> | string>;
|
|
796
|
-
|
|
797
862
|
interface DownloadButtonProps {
|
|
798
863
|
enabled?: boolean;
|
|
799
864
|
type?: string;
|
|
@@ -922,6 +987,11 @@ declare const stripTrailingSlash: (str: string) => string;
|
|
|
922
987
|
declare const isArrayOfString: (value: any) => value is Array<string>;
|
|
923
988
|
declare const isTextTransform: (value: any) => value is CSSProperties["textTransform"];
|
|
924
989
|
|
|
990
|
+
declare const isPropertyKey: (value: unknown) => value is PropertyKey;
|
|
991
|
+
declare const hasOwnProperty: <X extends object, Y extends PropertyKey>(obj?: X, prop?: Y) => obj is X & Record<Y, unknown>;
|
|
992
|
+
declare const getParamsValueAsString: (params?: JSONObject, key?: string) => string | undefined;
|
|
993
|
+
declare const extractObjectKey: <T extends object>(obj: T) => keyof T | undefined;
|
|
994
|
+
|
|
925
995
|
/**
|
|
926
996
|
* Retrieves navigation page layout properties from configuration.
|
|
927
997
|
* Note: GEN3_COMMONS_NAME depends on siteConfig.json value in the data commons package
|
|
@@ -1193,8 +1263,8 @@ declare const AuthzPage: ({ headerProps, footerProps, authz }: Props) => react_j
|
|
|
1193
1263
|
declare const AdminAuthZPageGetServerSideProps: () => Promise<{
|
|
1194
1264
|
props: {
|
|
1195
1265
|
authz: Authz;
|
|
1196
|
-
headerProps: HeaderProps
|
|
1197
|
-
footerProps: FooterProps
|
|
1266
|
+
headerProps: Readonly<HeaderProps>;
|
|
1267
|
+
footerProps: Readonly<FooterProps>;
|
|
1198
1268
|
mainProps?: Partial<MainContentProps>;
|
|
1199
1269
|
headerData: HeaderData;
|
|
1200
1270
|
};
|
|
@@ -1333,4 +1403,4 @@ declare function export_default$1(req: NextApiRequest, res: NextApiResponse): Pr
|
|
|
1333
1403
|
|
|
1334
1404
|
declare function export_default(req: NextApiRequest, res: NextApiResponse): Promise<void>;
|
|
1335
1405
|
|
|
1336
|
-
export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AuthzPage, BaseModal, CellRenderFunctionProps, CellRendererFunctionProps, ChartProps, Charts, CohortBuilder, CohortBuilderConfiguration, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryConfig, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, Fonts, Footer, FooterProps, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, HeaderProps, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, LoginConfig, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, ModalsConfig, NavPageLayout, NavPageLayoutProps, NavigationBar, NavigationButton, NavigationProps, NoAccessModal, ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, QueryPage, QueryPageGetServerSideProps, ReactECharts, ReactEChartsProps, RegisteredIcons, ResourcesFilters, RowRenderFunctionParams, SessionConfiguration, SessionExpiredModal, StudyDetailsField, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, SummaryChart, TableDetailsPanelProps, TagCloud, TagData, TagsConfig, TailwindConfig, TenStringArray, TopBarProps, User$1 as User, WorkspaceConfiguration, WorkspacesPage, WorkspacesPageGetServerSideProps, WorkspacesPanel, capitalize, computeRowSpan, create10ColorAccessibleContrast, create10ColorPallet, export_default$1 as credentialsLogin, export_default as credentialsLogout, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getTagInfo, isArrayOfString, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
|
|
1406
|
+
export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AuthzPage, type BannerProps, BaseModal, type CellRenderFunctionProps, type CellRendererFunctionProps, type ChartProps, Charts, CohortBuilder, type CohortBuilderConfiguration, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, type DiscoveryConfig, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, type Fonts, Footer, type FooterProps, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, type HeaderProps, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, type LoginConfig, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, type ModalsConfig, NavPageLayout, type NavPageLayoutProps, NavigationBar, NavigationButton, type NavigationProps, NoAccessModal, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, type SessionConfiguration, SessionExpiredModal, type StudyDetailsField, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, type SummaryChart, type TableDetailsPanelProps, TagCloud, type TagData, type TagsConfig, TailwindConfig, type TenStringArray, type TopBarProps, User$1 as User, type WorkspaceConfiguration, WorkspacesPage, WorkspacesPageGetServerSideProps, WorkspacesPanel, capitalize, computeRowSpan, create10ColorAccessibleContrast, create10ColorPallet, export_default$1 as credentialsLogin, export_default as credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
|