@genspectrum/dashboard-components 0.10.0 → 0.10.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/custom-elements.json +163 -0
- package/dist/assets/mutationOverTimeWorker-CvZg52rf.js.map +1 -1
- package/dist/components.d.ts +48 -0
- package/dist/components.js +251 -120
- package/dist/components.js.map +1 -1
- package/dist/style.css +41 -0
- package/dist/util.d.ts +16 -0
- package/package.json +2 -2
- package/src/preact/components/min-max-range-slider.tsx +4 -4
- package/src/preact/components/percent-intput.tsx +2 -2
- package/src/preact/mutationFilter/mutation-filter.tsx +0 -1
- package/src/preact/statistic/__mockData__/denominator.json +13 -0
- package/src/preact/statistic/__mockData__/numerator.json +13 -0
- package/src/preact/statistic/statistics.stories.tsx +81 -0
- package/src/preact/statistic/statistics.tsx +78 -0
- package/src/query/queryGeneralStatistics.ts +18 -0
- package/src/web-components/visualization/gs-statistics.stories.ts +95 -0
- package/src/web-components/visualization/gs-statistics.tsx +83 -0
- package/src/web-components/visualization/index.ts +1 -0
- package/standalone-bundle/assets/mutationOverTimeWorker-CypX_PYM.js.map +1 -1
- package/standalone-bundle/dashboard-components.js +4209 -4142
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -919,6 +919,38 @@ export declare class RelativeGrowthAdvantageComponent extends PreactLitAdapter {
|
|
|
919
919
|
render(): JSX_2.Element;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
+
/**
|
|
923
|
+
* ## Context
|
|
924
|
+
*
|
|
925
|
+
* This component displays general statistics (number of sequences, overall proportion)
|
|
926
|
+
* for a given numerator and denominator filter.
|
|
927
|
+
*/
|
|
928
|
+
export declare class StatisticsComponent extends PreactLitAdapterWithGridJsStyles {
|
|
929
|
+
/**
|
|
930
|
+
* The filter to apply to the data for the overall number of sequences and as the numerator for the proportion.
|
|
931
|
+
* It must be a valid LAPIS filter object.
|
|
932
|
+
*/
|
|
933
|
+
numeratorFilter: LapisFilter;
|
|
934
|
+
/**
|
|
935
|
+
* The filter to apply to the data for the denominator of the proportion.
|
|
936
|
+
* It must be a valid LAPIS filter object.
|
|
937
|
+
*/
|
|
938
|
+
denominatorFilter: LapisFilter;
|
|
939
|
+
/**
|
|
940
|
+
* The width of the component.
|
|
941
|
+
*
|
|
942
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
943
|
+
*/
|
|
944
|
+
width: string;
|
|
945
|
+
/**
|
|
946
|
+
* The height of the component.
|
|
947
|
+
*
|
|
948
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
949
|
+
*/
|
|
950
|
+
height: string;
|
|
951
|
+
render(): JSX_2.Element;
|
|
952
|
+
}
|
|
953
|
+
|
|
922
954
|
/**
|
|
923
955
|
*
|
|
924
956
|
* ## Context
|
|
@@ -1105,6 +1137,22 @@ declare global {
|
|
|
1105
1137
|
}
|
|
1106
1138
|
|
|
1107
1139
|
|
|
1140
|
+
declare global {
|
|
1141
|
+
interface HTMLElementTagNameMap {
|
|
1142
|
+
'gs-statistics': StatisticsComponent;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
declare global {
|
|
1148
|
+
namespace JSX {
|
|
1149
|
+
interface IntrinsicElements {
|
|
1150
|
+
'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
|
|
1108
1156
|
declare global {
|
|
1109
1157
|
interface HTMLElementTagNameMap {
|
|
1110
1158
|
'gs-date-range-selector': DateRangeSelectorComponent;
|