@gen3/frontend 0.10.51 → 0.10.52
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 +5775 -5687
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Content/ContactWithEmailContent.d.ts.map +1 -1
- package/dist/dts/components/Content/ContactWithEmailContent.js +8 -2
- package/dist/dts/components/Content/ContactWithEmailContent.js.map +1 -1
- package/dist/dts/components/Login/LoginButton.js +1 -1
- package/dist/dts/components/Login/LoginButton.js.map +1 -1
- package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginPanel.js +1 -1
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Protected/index.d.ts +3 -0
- package/dist/dts/components/Protected/index.d.ts.map +1 -0
- package/dist/dts/components/Protected/index.js +3 -0
- package/dist/dts/components/Protected/index.js.map +1 -0
- package/dist/dts/components/charts/ChartRendererFactory.d.ts.map +1 -1
- package/dist/dts/components/charts/ChartRendererFactory.js +2 -0
- package/dist/dts/components/charts/ChartRendererFactory.js.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js +17 -7
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js.map +1 -1
- package/dist/dts/components/charts/echarts/VerticalBarChart.d.ts +4 -0
- package/dist/dts/components/charts/echarts/VerticalBarChart.d.ts.map +1 -0
- package/dist/dts/components/charts/echarts/VerticalBarChart.js +79 -0
- package/dist/dts/components/charts/echarts/VerticalBarChart.js.map +1 -0
- package/dist/dts/components/counts/DataSummaryCardGroup.d.ts +15 -0
- package/dist/dts/components/counts/DataSummaryCardGroup.d.ts.map +1 -0
- package/dist/dts/components/counts/DataSummaryCardGroup.js +8 -0
- package/dist/dts/components/counts/DataSummaryCardGroup.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/utils.js +1 -0
- package/dist/dts/features/CohortBuilder/downloads/actions/utils.js.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
- package/dist/dts/index.d.ts +3 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +4 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.js +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.js.map +1 -1
- package/dist/esm/index.js +5779 -5692
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +251 -244
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,204 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, {
|
|
3
|
+
import React__default, { ReactNode, CSSProperties, ReactElement, PropsWithChildren, RefObject } from 'react';
|
|
4
|
+
import { HistogramDataArray, AggregationsData, EnumFilterValue, JSONObject, FacetDefinition } from '@gen3/core';
|
|
5
|
+
import { EChartsOption, SetOptionOpts } from 'echarts';
|
|
4
6
|
import { ButtonProps, TitleOrder } from '@mantine/core';
|
|
5
|
-
import { HistogramDataArray, JSONObject, AggregationsData, EnumFilterValue, FacetDefinition } from '@gen3/core';
|
|
6
7
|
import { MRT_RowData, MRT_Cell, MRT_Row, MRT_Column, MRT_TableInstance } from 'mantine-react-table';
|
|
7
|
-
import { EChartsOption, SetOptionOpts } from 'echarts';
|
|
8
8
|
import { GetServerSideProps, GetStaticProps, NextPage, NextApiRequest, NextApiResponse } from 'next';
|
|
9
9
|
import { IconType } from 'react-icons';
|
|
10
10
|
|
|
11
|
+
declare const User$1: () => react_jsx_runtime.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=User.d.ts.map
|
|
13
|
+
|
|
14
|
+
interface ServiceColorAndLabel {
|
|
15
|
+
serviceName: string;
|
|
16
|
+
color: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
}
|
|
19
|
+
interface ResourceTableConfig {
|
|
20
|
+
title?: string;
|
|
21
|
+
serviceColors?: Record<string, ServiceColorAndLabel>;
|
|
22
|
+
}
|
|
23
|
+
interface ProfileConfig {
|
|
24
|
+
resourceTable?: ResourceTableConfig;
|
|
25
|
+
hasExternalLogins?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface APICredentials {
|
|
28
|
+
api_key: string;
|
|
29
|
+
key_id: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare const ProfileProvider: ({ children, profileConfig, }: {
|
|
33
|
+
children: React__default.ReactNode;
|
|
34
|
+
profileConfig: ProfileConfig;
|
|
35
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
36
|
+
//# sourceMappingURL=ProfileProvider.d.ts.map
|
|
37
|
+
|
|
38
|
+
interface ResourcesFiltersProps {
|
|
39
|
+
setFilters: (filters: string[]) => void;
|
|
40
|
+
selectedFilters: string[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* ResourcesFilters creates a checkbox filter component from cached arborist data
|
|
44
|
+
* and servicesAndMethods, useProfileContext context hooks.
|
|
45
|
+
* @returns: A resourceFilter component for sorting permissions
|
|
46
|
+
* chart on profile page by relevant microservices
|
|
47
|
+
*/
|
|
48
|
+
declare const ResourcesFilters: ({ selectedFilters, setFilters, }: ResourcesFiltersProps) => react_jsx_runtime.JSX.Element;
|
|
49
|
+
//# sourceMappingURL=ResourcesFilters.d.ts.map
|
|
50
|
+
|
|
51
|
+
declare enum ContentType {
|
|
52
|
+
Text = "text",
|
|
53
|
+
TextArray = "textArray",
|
|
54
|
+
Html = "html",
|
|
55
|
+
Markdown = "markdown"
|
|
56
|
+
}
|
|
57
|
+
interface TextContentProps {
|
|
58
|
+
readonly text: string | string[];
|
|
59
|
+
readonly className?: string;
|
|
60
|
+
readonly type?: ContentType;
|
|
61
|
+
readonly email?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface Gen3LoginPanelConfig {
|
|
65
|
+
title: string;
|
|
66
|
+
subtitle: string;
|
|
67
|
+
text: string;
|
|
68
|
+
contact: string;
|
|
69
|
+
email: string;
|
|
70
|
+
image: string;
|
|
71
|
+
className: string;
|
|
72
|
+
}
|
|
73
|
+
interface LoginConfig extends Partial<Gen3LoginPanelConfig> {
|
|
74
|
+
topContent?: ReadonlyArray<TextContentProps>;
|
|
75
|
+
bottomContent?: ReadonlyArray<TextContentProps>;
|
|
76
|
+
showCredentialsLogin?: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface LoginSelectedProps {
|
|
79
|
+
readonly handleLoginSelected: (_url: string) => void;
|
|
80
|
+
}
|
|
81
|
+
declare enum LoginButtonVisibility {
|
|
82
|
+
Hidden = "hide",
|
|
83
|
+
Visible = "visible",
|
|
84
|
+
LogoutOnly = "logoutOnly"
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface LoginButtonProps {
|
|
88
|
+
readonly icon?: React__default.ReactElement | string;
|
|
89
|
+
readonly hideText?: boolean;
|
|
90
|
+
className?: string;
|
|
91
|
+
tooltip?: string;
|
|
92
|
+
visibility: LoginButtonVisibility;
|
|
93
|
+
}
|
|
94
|
+
declare const LoginButton: ({ icon, hideText, className, tooltip, visibility, }: LoginButtonProps) => react_jsx_runtime.JSX.Element | null;
|
|
95
|
+
//# sourceMappingURL=LoginButton.d.ts.map
|
|
96
|
+
|
|
97
|
+
declare const LoginProvidersPanel: ({ handleLoginSelected }: LoginSelectedProps) => react_jsx_runtime.JSX.Element;
|
|
98
|
+
//# sourceMappingURL=LoginProvidersPanel.d.ts.map
|
|
99
|
+
|
|
100
|
+
declare const LoginPanel: (loginConfig: LoginConfig) => react_jsx_runtime.JSX.Element;
|
|
101
|
+
//# sourceMappingURL=LoginPanel.d.ts.map
|
|
102
|
+
|
|
103
|
+
interface ButtonOptions {
|
|
104
|
+
onClick?: () => void;
|
|
105
|
+
hideModalOnClick?: boolean;
|
|
106
|
+
title: string;
|
|
107
|
+
dataTestId: string;
|
|
108
|
+
}
|
|
109
|
+
interface Props$4 {
|
|
110
|
+
openModal: boolean;
|
|
111
|
+
title: ReactNode;
|
|
112
|
+
size?: string | number;
|
|
113
|
+
children: ReactNode;
|
|
114
|
+
leftButtons?: Array<ButtonOptions | JSX.Element>;
|
|
115
|
+
buttons?: Array<ButtonOptions | JSX.Element>;
|
|
116
|
+
withCloseButton?: boolean;
|
|
117
|
+
onClose?: () => void;
|
|
118
|
+
closeOnClickOutside?: boolean;
|
|
119
|
+
closeOnEscape?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Creates a generalized modal that can be used for a wide variety of purposes.
|
|
123
|
+
* @param openModal - Determines whether modal/drawer is opened
|
|
124
|
+
* @param title - Modal title
|
|
125
|
+
* @param size - Controls width of the content area, 'md' by default
|
|
126
|
+
* @param children - Modal content
|
|
127
|
+
* @param leftButtons - Mantine button component args for renderButtons component
|
|
128
|
+
* @param buttons - Mantine button component args for renderButtons component
|
|
129
|
+
* @param withCloseButton - Determines whether the close button should be rendered, true by default
|
|
130
|
+
* @param onClose - Called when modal/drawer is closed
|
|
131
|
+
* @param closeOnClickOutside - Determines whether the modal/drawer should be closed when user clicks on the overlay, true by default
|
|
132
|
+
* @param closeOnEscape - Determines whether onClose should be called when user presses the escape key, true by default
|
|
133
|
+
* @see https://mantine.dev/core/modal/
|
|
134
|
+
* @returns a mantine modal with a built in button for closing the modal
|
|
135
|
+
*/
|
|
136
|
+
declare const BaseModal: ({ openModal, title, size, children, leftButtons, buttons, withCloseButton, onClose, closeOnClickOutside, closeOnEscape, }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
137
|
+
|
|
138
|
+
interface BaseModalConfig {
|
|
139
|
+
title?: string;
|
|
140
|
+
}
|
|
141
|
+
interface FirstTimeModalConfig extends BaseModalConfig {
|
|
142
|
+
enabled?: boolean;
|
|
143
|
+
content: TextContentProps;
|
|
144
|
+
scrollToEnableAccept?: boolean;
|
|
145
|
+
showOnlyOnLogin?: boolean;
|
|
146
|
+
expireDays?: number;
|
|
147
|
+
}
|
|
148
|
+
interface ModalsConfig {
|
|
149
|
+
systemUseModal?: FirstTimeModalConfig;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface FirstTimeModalProps {
|
|
153
|
+
readonly openModal: boolean;
|
|
154
|
+
config: FirstTimeModalConfig;
|
|
155
|
+
}
|
|
156
|
+
declare const FirstTimeModal: ({ openModal, config, }: FirstTimeModalProps) => JSX.Element;
|
|
157
|
+
|
|
158
|
+
declare const SessionExpiredModal: ({ openModal, }: {
|
|
159
|
+
openModal: boolean;
|
|
160
|
+
}) => JSX.Element;
|
|
161
|
+
|
|
162
|
+
interface CreateCredentialsAPIKeyModalProps {
|
|
163
|
+
openModal: boolean;
|
|
164
|
+
credentials: APICredentials;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Creates a specialized modal that is a parto of the Credentials component on the profile page
|
|
168
|
+
* @param openModal - State tracking to keep track of wether the modal should be shown or hidden
|
|
169
|
+
* @param credentials - The new fence credential that is to be shown in the modal
|
|
170
|
+
*/
|
|
171
|
+
declare const CreateCredentialsAPIKeyModal: ({ openModal, credentials, }: CreateCredentialsAPIKeyModalProps) => JSX.Element;
|
|
172
|
+
|
|
173
|
+
declare const NoAccessModal: ({ openModal, }: {
|
|
174
|
+
openModal: boolean;
|
|
175
|
+
}) => JSX.Element;
|
|
176
|
+
|
|
177
|
+
interface Gen3StandardModalsProviderProps {
|
|
178
|
+
config: ModalsConfig;
|
|
179
|
+
children: React__default.ReactNode;
|
|
180
|
+
}
|
|
181
|
+
declare const Gen3ModalsProvider: ({ config, children, }: Gen3StandardModalsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
182
|
+
//# sourceMappingURL=Gen3ModalsProvider.d.ts.map
|
|
183
|
+
|
|
184
|
+
declare const capitalize: (original: string) => string;
|
|
185
|
+
declare const truncateString: (str: string, n: number) => string;
|
|
186
|
+
declare const removeKey: (key: any, { [key]: _, ...rest }: {
|
|
187
|
+
[x: string]: any;
|
|
188
|
+
}) => {
|
|
189
|
+
[x: string]: any;
|
|
190
|
+
};
|
|
191
|
+
declare const processLabel: (label: string) => string;
|
|
192
|
+
declare const processRangeKeyLabel: (key: [number, number]) => string;
|
|
193
|
+
/**
|
|
194
|
+
* Computes the row span for each item in the charts object.
|
|
195
|
+
*
|
|
196
|
+
* @param { number } numItems - The charts object containing summary charts.
|
|
197
|
+
* @param {number} [numCols=3] - The number of columns per row.
|
|
198
|
+
* @returns {number[]} - An array of row spans for each item in the charts object.
|
|
199
|
+
*/
|
|
200
|
+
declare const computeRowSpan: (numItems: number, numCols?: number) => Array<number>;
|
|
201
|
+
|
|
11
202
|
type StylingOverride = Record<string, Record<string, string> | string>;
|
|
12
203
|
type StylingMergeMode = 'merge' | 'replace';
|
|
13
204
|
type StylingOverrideWithMergeControl = Record<string, string> & {
|
|
@@ -19,6 +210,62 @@ interface TitleAndDescription {
|
|
|
19
210
|
description?: string;
|
|
20
211
|
}
|
|
21
212
|
|
|
213
|
+
interface SummaryChart extends Partial<TitleAndDescription> {
|
|
214
|
+
readonly chartType: string;
|
|
215
|
+
readonly valueType?: 'count' | 'percent';
|
|
216
|
+
readonly dataLabels?: Record<string, string>;
|
|
217
|
+
}
|
|
218
|
+
interface ChartProps {
|
|
219
|
+
data: HistogramDataArray;
|
|
220
|
+
total: number;
|
|
221
|
+
valueType?: 'count' | 'percent';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface ChartsProps {
|
|
225
|
+
charts: Record<string, SummaryChart>;
|
|
226
|
+
counts?: number;
|
|
227
|
+
data: AggregationsData;
|
|
228
|
+
isSuccess: boolean;
|
|
229
|
+
isError?: boolean;
|
|
230
|
+
numCols?: number;
|
|
231
|
+
style?: 'tile' | 'box';
|
|
232
|
+
showLegends?: boolean;
|
|
233
|
+
}
|
|
234
|
+
declare const Charts: ({ charts, data, counts, isSuccess, numCols, style, showLegends, }: ChartsProps) => react_jsx_runtime.JSX.Element;
|
|
235
|
+
|
|
236
|
+
interface ReactEChartsProps {
|
|
237
|
+
option: EChartsOption;
|
|
238
|
+
style?: CSSProperties;
|
|
239
|
+
settings?: SetOptionOpts;
|
|
240
|
+
loading?: boolean;
|
|
241
|
+
theme?: 'light' | 'dark';
|
|
242
|
+
}
|
|
243
|
+
declare const ReactECharts: ({ option, style, settings, loading, theme, }: ReactEChartsProps) => JSX.Element;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* A BarChart for Enumerated Facets. The as the chart is wrapped from EnumFacet it does not
|
|
247
|
+
* require the Core Data hooks.
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
interface FacetChartProps {
|
|
251
|
+
readonly field: string;
|
|
252
|
+
readonly data: Record<string, number>;
|
|
253
|
+
readonly selectedEnums: EnumFilterValue;
|
|
254
|
+
readonly isSuccess: boolean;
|
|
255
|
+
readonly height?: number;
|
|
256
|
+
readonly showTitle?: boolean;
|
|
257
|
+
readonly maxBins?: number;
|
|
258
|
+
readonly valueLabel?: string;
|
|
259
|
+
}
|
|
260
|
+
declare const EnumFacetChart: React__default.FC<FacetChartProps>;
|
|
261
|
+
|
|
262
|
+
interface ProtectedContentProps {
|
|
263
|
+
children?: ReactNode;
|
|
264
|
+
referer?: string;
|
|
265
|
+
}
|
|
266
|
+
declare const ProtectedContent: ({ children, referer }: ProtectedContentProps) => react_jsx_runtime.JSX.Element;
|
|
267
|
+
//# sourceMappingURL=ProtectedContent.d.ts.map
|
|
268
|
+
|
|
22
269
|
interface ColumnLinks {
|
|
23
270
|
heading: string;
|
|
24
271
|
items: ReadonlyArray<{
|
|
@@ -94,42 +341,6 @@ interface Gen3LinkProps extends ClassProps$1 {
|
|
|
94
341
|
declare const Gen3Link: ({ className, href, linkType, text, showExternalIcon, }: PropsWithChildren<Gen3LinkProps>) => react_jsx_runtime.JSX.Element;
|
|
95
342
|
//# sourceMappingURL=Gen3Link.d.ts.map
|
|
96
343
|
|
|
97
|
-
declare enum ContentType {
|
|
98
|
-
Text = "text",
|
|
99
|
-
TextArray = "textArray",
|
|
100
|
-
Html = "html",
|
|
101
|
-
Markdown = "markdown"
|
|
102
|
-
}
|
|
103
|
-
interface TextContentProps {
|
|
104
|
-
readonly text: string | string[];
|
|
105
|
-
readonly className?: string;
|
|
106
|
-
readonly type?: ContentType;
|
|
107
|
-
readonly email?: string;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface Gen3LoginPanelConfig {
|
|
111
|
-
title: string;
|
|
112
|
-
subtitle: string;
|
|
113
|
-
text: string;
|
|
114
|
-
contact: string;
|
|
115
|
-
email: string;
|
|
116
|
-
image: string;
|
|
117
|
-
className: string;
|
|
118
|
-
}
|
|
119
|
-
interface LoginConfig extends Partial<Gen3LoginPanelConfig> {
|
|
120
|
-
topContent?: ReadonlyArray<TextContentProps>;
|
|
121
|
-
bottomContent?: ReadonlyArray<TextContentProps>;
|
|
122
|
-
showCredentialsLogin?: boolean;
|
|
123
|
-
}
|
|
124
|
-
interface LoginSelectedProps {
|
|
125
|
-
readonly handleLoginSelected: (_url: string) => void;
|
|
126
|
-
}
|
|
127
|
-
declare enum LoginButtonVisibility {
|
|
128
|
-
Hidden = "hide",
|
|
129
|
-
Visible = "visible",
|
|
130
|
-
LogoutOnly = "logoutOnly"
|
|
131
|
-
}
|
|
132
|
-
|
|
133
344
|
interface NameAndIcon {
|
|
134
345
|
readonly name: string;
|
|
135
346
|
readonly rightIcon?: string;
|
|
@@ -265,17 +476,6 @@ interface SummaryStatisticsConfig {
|
|
|
265
476
|
displayFunction?: string;
|
|
266
477
|
}
|
|
267
478
|
|
|
268
|
-
interface SummaryChart extends Partial<TitleAndDescription> {
|
|
269
|
-
readonly chartType: string;
|
|
270
|
-
readonly valueType?: 'count' | 'percent';
|
|
271
|
-
readonly dataLabels?: Record<string, string>;
|
|
272
|
-
}
|
|
273
|
-
interface ChartProps {
|
|
274
|
-
data: HistogramDataArray;
|
|
275
|
-
total: number;
|
|
276
|
-
valueType?: 'count' | 'percent';
|
|
277
|
-
}
|
|
278
|
-
|
|
279
479
|
interface TagData {
|
|
280
480
|
name: string;
|
|
281
481
|
category: string;
|
|
@@ -563,199 +763,6 @@ declare const getTagInfo: (tagData: TagData, tagsConfig: TagsConfig) => TagInfo;
|
|
|
563
763
|
|
|
564
764
|
declare const registerDefaultDiscoveryDataLoaders: () => void;
|
|
565
765
|
|
|
566
|
-
declare const User$1: () => react_jsx_runtime.JSX.Element;
|
|
567
|
-
//# sourceMappingURL=User.d.ts.map
|
|
568
|
-
|
|
569
|
-
interface ServiceColorAndLabel {
|
|
570
|
-
serviceName: string;
|
|
571
|
-
color: string;
|
|
572
|
-
label?: string;
|
|
573
|
-
}
|
|
574
|
-
interface ResourceTableConfig {
|
|
575
|
-
title?: string;
|
|
576
|
-
serviceColors?: Record<string, ServiceColorAndLabel>;
|
|
577
|
-
}
|
|
578
|
-
interface ProfileConfig {
|
|
579
|
-
resourceTable?: ResourceTableConfig;
|
|
580
|
-
hasExternalLogins?: boolean;
|
|
581
|
-
}
|
|
582
|
-
interface APICredentials {
|
|
583
|
-
api_key: string;
|
|
584
|
-
key_id: string;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
declare const ProfileProvider: ({ children, profileConfig, }: {
|
|
588
|
-
children: React__default.ReactNode;
|
|
589
|
-
profileConfig: ProfileConfig;
|
|
590
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
591
|
-
//# sourceMappingURL=ProfileProvider.d.ts.map
|
|
592
|
-
|
|
593
|
-
interface ResourcesFiltersProps {
|
|
594
|
-
setFilters: (filters: string[]) => void;
|
|
595
|
-
selectedFilters: string[];
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* ResourcesFilters creates a checkbox filter component from cached arborist data
|
|
599
|
-
* and servicesAndMethods, useProfileContext context hooks.
|
|
600
|
-
* @returns: A resourceFilter component for sorting permissions
|
|
601
|
-
* chart on profile page by relevant microservices
|
|
602
|
-
*/
|
|
603
|
-
declare const ResourcesFilters: ({ selectedFilters, setFilters, }: ResourcesFiltersProps) => react_jsx_runtime.JSX.Element;
|
|
604
|
-
//# sourceMappingURL=ResourcesFilters.d.ts.map
|
|
605
|
-
|
|
606
|
-
interface LoginButtonProps {
|
|
607
|
-
readonly icon?: React__default.ReactElement | string;
|
|
608
|
-
readonly hideText?: boolean;
|
|
609
|
-
className?: string;
|
|
610
|
-
tooltip?: string;
|
|
611
|
-
visibility: LoginButtonVisibility;
|
|
612
|
-
}
|
|
613
|
-
declare const LoginButton: ({ icon, hideText, className, tooltip, visibility, }: LoginButtonProps) => react_jsx_runtime.JSX.Element | null;
|
|
614
|
-
//# sourceMappingURL=LoginButton.d.ts.map
|
|
615
|
-
|
|
616
|
-
declare const LoginProvidersPanel: ({ handleLoginSelected }: LoginSelectedProps) => react_jsx_runtime.JSX.Element;
|
|
617
|
-
//# sourceMappingURL=LoginProvidersPanel.d.ts.map
|
|
618
|
-
|
|
619
|
-
declare const LoginPanel: (loginConfig: LoginConfig) => react_jsx_runtime.JSX.Element;
|
|
620
|
-
//# sourceMappingURL=LoginPanel.d.ts.map
|
|
621
|
-
|
|
622
|
-
interface ButtonOptions {
|
|
623
|
-
onClick?: () => void;
|
|
624
|
-
hideModalOnClick?: boolean;
|
|
625
|
-
title: string;
|
|
626
|
-
dataTestId: string;
|
|
627
|
-
}
|
|
628
|
-
interface Props$4 {
|
|
629
|
-
openModal: boolean;
|
|
630
|
-
title: ReactNode;
|
|
631
|
-
size?: string | number;
|
|
632
|
-
children: ReactNode;
|
|
633
|
-
leftButtons?: Array<ButtonOptions | JSX.Element>;
|
|
634
|
-
buttons?: Array<ButtonOptions | JSX.Element>;
|
|
635
|
-
withCloseButton?: boolean;
|
|
636
|
-
onClose?: () => void;
|
|
637
|
-
closeOnClickOutside?: boolean;
|
|
638
|
-
closeOnEscape?: boolean;
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* Creates a generalized modal that can be used for a wide variety of purposes.
|
|
642
|
-
* @param openModal - Determines whether modal/drawer is opened
|
|
643
|
-
* @param title - Modal title
|
|
644
|
-
* @param size - Controls width of the content area, 'md' by default
|
|
645
|
-
* @param children - Modal content
|
|
646
|
-
* @param leftButtons - Mantine button component args for renderButtons component
|
|
647
|
-
* @param buttons - Mantine button component args for renderButtons component
|
|
648
|
-
* @param withCloseButton - Determines whether the close button should be rendered, true by default
|
|
649
|
-
* @param onClose - Called when modal/drawer is closed
|
|
650
|
-
* @param closeOnClickOutside - Determines whether the modal/drawer should be closed when user clicks on the overlay, true by default
|
|
651
|
-
* @param closeOnEscape - Determines whether onClose should be called when user presses the escape key, true by default
|
|
652
|
-
* @see https://mantine.dev/core/modal/
|
|
653
|
-
* @returns a mantine modal with a built in button for closing the modal
|
|
654
|
-
*/
|
|
655
|
-
declare const BaseModal: ({ openModal, title, size, children, leftButtons, buttons, withCloseButton, onClose, closeOnClickOutside, closeOnEscape, }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
656
|
-
|
|
657
|
-
interface BaseModalConfig {
|
|
658
|
-
title?: string;
|
|
659
|
-
}
|
|
660
|
-
interface FirstTimeModalConfig extends BaseModalConfig {
|
|
661
|
-
enabled?: boolean;
|
|
662
|
-
content: TextContentProps;
|
|
663
|
-
scrollToEnableAccept?: boolean;
|
|
664
|
-
showOnlyOnLogin?: boolean;
|
|
665
|
-
expireDays?: number;
|
|
666
|
-
}
|
|
667
|
-
interface ModalsConfig {
|
|
668
|
-
systemUseModal?: FirstTimeModalConfig;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
interface FirstTimeModalProps {
|
|
672
|
-
readonly openModal: boolean;
|
|
673
|
-
config: FirstTimeModalConfig;
|
|
674
|
-
}
|
|
675
|
-
declare const FirstTimeModal: ({ openModal, config, }: FirstTimeModalProps) => JSX.Element;
|
|
676
|
-
|
|
677
|
-
declare const SessionExpiredModal: ({ openModal, }: {
|
|
678
|
-
openModal: boolean;
|
|
679
|
-
}) => JSX.Element;
|
|
680
|
-
|
|
681
|
-
interface CreateCredentialsAPIKeyModalProps {
|
|
682
|
-
openModal: boolean;
|
|
683
|
-
credentials: APICredentials;
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* Creates a specialized modal that is a parto of the Credentials component on the profile page
|
|
687
|
-
* @param openModal - State tracking to keep track of wether the modal should be shown or hidden
|
|
688
|
-
* @param credentials - The new fence credential that is to be shown in the modal
|
|
689
|
-
*/
|
|
690
|
-
declare const CreateCredentialsAPIKeyModal: ({ openModal, credentials, }: CreateCredentialsAPIKeyModalProps) => JSX.Element;
|
|
691
|
-
|
|
692
|
-
declare const NoAccessModal: ({ openModal, }: {
|
|
693
|
-
openModal: boolean;
|
|
694
|
-
}) => JSX.Element;
|
|
695
|
-
|
|
696
|
-
interface Gen3StandardModalsProviderProps {
|
|
697
|
-
config: ModalsConfig;
|
|
698
|
-
children: React__default.ReactNode;
|
|
699
|
-
}
|
|
700
|
-
declare const Gen3ModalsProvider: ({ config, children, }: Gen3StandardModalsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
701
|
-
//# sourceMappingURL=Gen3ModalsProvider.d.ts.map
|
|
702
|
-
|
|
703
|
-
declare const capitalize: (original: string) => string;
|
|
704
|
-
declare const truncateString: (str: string, n: number) => string;
|
|
705
|
-
declare const removeKey: (key: any, { [key]: _, ...rest }: {
|
|
706
|
-
[x: string]: any;
|
|
707
|
-
}) => {
|
|
708
|
-
[x: string]: any;
|
|
709
|
-
};
|
|
710
|
-
declare const processLabel: (label: string) => string;
|
|
711
|
-
declare const processRangeKeyLabel: (key: [number, number]) => string;
|
|
712
|
-
/**
|
|
713
|
-
* Computes the row span for each item in the charts object.
|
|
714
|
-
*
|
|
715
|
-
* @param { number } numItems - The charts object containing summary charts.
|
|
716
|
-
* @param {number} [numCols=3] - The number of columns per row.
|
|
717
|
-
* @returns {number[]} - An array of row spans for each item in the charts object.
|
|
718
|
-
*/
|
|
719
|
-
declare const computeRowSpan: (numItems: number, numCols?: number) => Array<number>;
|
|
720
|
-
|
|
721
|
-
interface ChartsProps {
|
|
722
|
-
charts: Record<string, SummaryChart>;
|
|
723
|
-
counts?: number;
|
|
724
|
-
data: AggregationsData;
|
|
725
|
-
isSuccess: boolean;
|
|
726
|
-
isError?: boolean;
|
|
727
|
-
numCols?: number;
|
|
728
|
-
style?: 'tile' | 'box';
|
|
729
|
-
showLegends?: boolean;
|
|
730
|
-
}
|
|
731
|
-
declare const Charts: ({ charts, data, counts, isSuccess, numCols, style, showLegends, }: ChartsProps) => react_jsx_runtime.JSX.Element;
|
|
732
|
-
|
|
733
|
-
interface ReactEChartsProps {
|
|
734
|
-
option: EChartsOption;
|
|
735
|
-
style?: CSSProperties;
|
|
736
|
-
settings?: SetOptionOpts;
|
|
737
|
-
loading?: boolean;
|
|
738
|
-
theme?: 'light' | 'dark';
|
|
739
|
-
}
|
|
740
|
-
declare const ReactECharts: ({ option, style, settings, loading, theme, }: ReactEChartsProps) => JSX.Element;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* A BarChart for Enumerated Facets. The as the chart is wrapped from EnumFacet it does not
|
|
744
|
-
* require the Core Data hooks.
|
|
745
|
-
*/
|
|
746
|
-
|
|
747
|
-
interface FacetChartProps {
|
|
748
|
-
readonly field: string;
|
|
749
|
-
readonly data: Record<string, number>;
|
|
750
|
-
readonly selectedEnums: EnumFilterValue;
|
|
751
|
-
readonly isSuccess: boolean;
|
|
752
|
-
readonly height?: number;
|
|
753
|
-
readonly showTitle?: boolean;
|
|
754
|
-
readonly maxBins?: number;
|
|
755
|
-
readonly valueLabel?: string;
|
|
756
|
-
}
|
|
757
|
-
declare const EnumFacetChart: React__default.FC<FacetChartProps>;
|
|
758
|
-
|
|
759
766
|
type RendererFunction<T> = (props: T, ...params: any[]) => ReactNode;
|
|
760
767
|
interface RendererFunctionCatalogEntry<T> {
|
|
761
768
|
[key: string]: RendererFunction<T>;
|
|
@@ -1499,4 +1506,4 @@ declare function export_default$1(req: NextApiRequest, res: NextApiResponse): Pr
|
|
|
1499
1506
|
|
|
1500
1507
|
declare function export_default(req: NextApiRequest, res: NextApiResponse): Promise<void>;
|
|
1501
1508
|
|
|
1502
|
-
export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, 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, type ExplorerPageProps, 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, NotebookLitePage, NotebookLitePageGetStaticProps, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, SPECIAL_CASE_FIELDS, 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, Workspace, type WorkspaceConfig, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, 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, registerCohortDiscoveryApp, registerCohortDiversityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
|
|
1509
|
+
export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, 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, type ExplorerPageProps, 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, NotebookLitePage, NotebookLitePageGetStaticProps, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, SPECIAL_CASE_FIELDS, 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, Workspace, type WorkspaceConfig, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, 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, registerCohortDiscoveryApp, registerCohortDiversityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
|