@gen3/frontend 0.10.46 → 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 +2980 -2636
- package/dist/cjs/index.js.map +1 -1
- 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/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/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/esm/index.js +2983 -2639
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +28 -13
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
@@ -252,6 +252,18 @@ interface SummaryStatisticsConfig {
|
|
|
252
252
|
displayFunction?: string;
|
|
253
253
|
}
|
|
254
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
|
+
|
|
255
267
|
interface TagData {
|
|
256
268
|
name: string;
|
|
257
269
|
category: string;
|
|
@@ -403,6 +415,17 @@ interface TagsConfig {
|
|
|
403
415
|
tagCategories: TagCategory[];
|
|
404
416
|
showUnknownTags?: boolean;
|
|
405
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
|
+
}
|
|
406
429
|
interface DiscoveryIndexConfig {
|
|
407
430
|
guidType?: string;
|
|
408
431
|
studyField?: string;
|
|
@@ -415,6 +438,7 @@ interface DiscoveryIndexConfig {
|
|
|
415
438
|
search?: SearchConfig;
|
|
416
439
|
authorization: DataAuthorization;
|
|
417
440
|
dataLoader?: DataLoader;
|
|
441
|
+
chartsSection?: ChartsSection;
|
|
418
442
|
};
|
|
419
443
|
aggregations: SummaryStatisticsConfig[];
|
|
420
444
|
tags: TagsConfig;
|
|
@@ -664,17 +688,6 @@ interface Gen3StandardModalsProviderProps {
|
|
|
664
688
|
declare const Gen3ModalsProvider: ({ config, children, }: Gen3StandardModalsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
665
689
|
//# sourceMappingURL=Gen3ModalsProvider.d.ts.map
|
|
666
690
|
|
|
667
|
-
interface SummaryChart {
|
|
668
|
-
readonly title: string;
|
|
669
|
-
readonly chartType: string;
|
|
670
|
-
readonly valueType?: 'count' | 'percent';
|
|
671
|
-
}
|
|
672
|
-
interface ChartProps {
|
|
673
|
-
data: HistogramDataArray;
|
|
674
|
-
total: number;
|
|
675
|
-
valueType?: 'count' | 'percent';
|
|
676
|
-
}
|
|
677
|
-
|
|
678
691
|
declare const capitalize: (original: string) => string;
|
|
679
692
|
declare const truncateString: (str: string, n: number) => string;
|
|
680
693
|
declare const removeKey: (key: any, { [key]: _, ...rest }: {
|
|
@@ -701,8 +714,10 @@ interface ChartsProps {
|
|
|
701
714
|
isSuccess: boolean;
|
|
702
715
|
isError?: boolean;
|
|
703
716
|
numCols?: number;
|
|
717
|
+
style?: 'tile' | 'box';
|
|
718
|
+
showLegends?: boolean;
|
|
704
719
|
}
|
|
705
|
-
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;
|
|
706
721
|
|
|
707
722
|
interface ReactEChartsProps {
|
|
708
723
|
option: EChartsOption;
|