@genspectrum/dashboard-components 1.2.0 → 1.3.0
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 +20 -1
- package/dist/assets/mutationOverTimeWorker-C7saVShx.js.map +1 -0
- package/dist/components.d.ts +20 -14
- package/dist/components.js +46 -8
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +14 -14
- package/package.json +1 -1
- package/src/lapisApi/lapisApi.ts +29 -0
- package/src/lapisApi/lapisTypes.ts +35 -1
- package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutationsByDay.ts +1 -0
- package/src/preact/mutationsOverTime/__mockData__/byWeek.ts +1 -0
- package/src/preact/mutationsOverTime/__mockData__/defaultMockData.ts +1 -0
- package/src/preact/mutationsOverTime/__mockData__/noDataWhenNoMutationsAreInFilter.ts +1 -0
- package/src/preact/mutationsOverTime/__mockData__/noDataWhenThereAreNoDatesInFilter.ts +1 -0
- package/src/preact/mutationsOverTime/__mockData__/showsMessageWhenTooManyMutations.ts +1 -0
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +2 -0
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +9 -3
- package/src/query/queryMutationsOverTime.ts +101 -23
- package/src/query/queryMutationsOverTimeNewEndpoint.spec.ts +935 -0
- package/src/web-components/visualization/gs-mutations-over-time.spec-d.ts +3 -0
- package/src/web-components/visualization/gs-mutations-over-time.stories.ts +3 -0
- package/src/web-components/visualization/gs-mutations-over-time.tsx +9 -0
- package/standalone-bundle/assets/mutationOverTimeWorker-DRRi3aMG.js.map +1 -0
- package/standalone-bundle/dashboard-components.js +3619 -3583
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/dist/assets/mutationOverTimeWorker-DpW4YOGl.js.map +0 -1
- package/standalone-bundle/assets/mutationOverTimeWorker-CZVvQBze.js.map +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -753,6 +753,12 @@ export declare class MutationsOverTimeComponent extends PreactLitAdapterWithGrid
|
|
|
753
753
|
min: number;
|
|
754
754
|
max: number;
|
|
755
755
|
};
|
|
756
|
+
/**
|
|
757
|
+
* Whether to use the mutationsOverTime endpoint from LAPIS.
|
|
758
|
+
* If true, use the endpoint, if false, compute component data as before.
|
|
759
|
+
* Eventually, the new endpoint will become the default.
|
|
760
|
+
*/
|
|
761
|
+
useNewEndpoint?: boolean;
|
|
756
762
|
/**
|
|
757
763
|
* The number of rows per page, which can be selected by the user.
|
|
758
764
|
*/
|
|
@@ -1579,7 +1585,7 @@ declare global {
|
|
|
1579
1585
|
|
|
1580
1586
|
declare global {
|
|
1581
1587
|
interface HTMLElementTagNameMap {
|
|
1582
|
-
'gs-
|
|
1588
|
+
'gs-genome-data-viewer': GenomeDataViewerComponent;
|
|
1583
1589
|
}
|
|
1584
1590
|
}
|
|
1585
1591
|
|
|
@@ -1587,7 +1593,7 @@ declare global {
|
|
|
1587
1593
|
declare global {
|
|
1588
1594
|
namespace JSX {
|
|
1589
1595
|
interface IntrinsicElements {
|
|
1590
|
-
'gs-
|
|
1596
|
+
'gs-genome-data-viewer': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1591
1597
|
}
|
|
1592
1598
|
}
|
|
1593
1599
|
}
|
|
@@ -1595,7 +1601,7 @@ declare global {
|
|
|
1595
1601
|
|
|
1596
1602
|
declare global {
|
|
1597
1603
|
interface HTMLElementTagNameMap {
|
|
1598
|
-
'gs-
|
|
1604
|
+
'gs-mutation-comparison-component': MutationComparisonComponent;
|
|
1599
1605
|
}
|
|
1600
1606
|
}
|
|
1601
1607
|
|
|
@@ -1603,7 +1609,7 @@ declare global {
|
|
|
1603
1609
|
declare global {
|
|
1604
1610
|
namespace JSX {
|
|
1605
1611
|
interface IntrinsicElements {
|
|
1606
|
-
'gs-
|
|
1612
|
+
'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1607
1613
|
}
|
|
1608
1614
|
}
|
|
1609
1615
|
}
|
|
@@ -1643,7 +1649,7 @@ declare global {
|
|
|
1643
1649
|
|
|
1644
1650
|
declare global {
|
|
1645
1651
|
interface HTMLElementTagNameMap {
|
|
1646
|
-
'gs-
|
|
1652
|
+
'gs-aggregate': AggregateComponent;
|
|
1647
1653
|
}
|
|
1648
1654
|
}
|
|
1649
1655
|
|
|
@@ -1651,7 +1657,7 @@ declare global {
|
|
|
1651
1657
|
declare global {
|
|
1652
1658
|
namespace JSX {
|
|
1653
1659
|
interface IntrinsicElements {
|
|
1654
|
-
'gs-
|
|
1660
|
+
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1655
1661
|
}
|
|
1656
1662
|
}
|
|
1657
1663
|
}
|
|
@@ -1659,7 +1665,7 @@ declare global {
|
|
|
1659
1665
|
|
|
1660
1666
|
declare global {
|
|
1661
1667
|
interface HTMLElementTagNameMap {
|
|
1662
|
-
'gs-
|
|
1668
|
+
'gs-prevalence-over-time': PrevalenceOverTimeComponent;
|
|
1663
1669
|
}
|
|
1664
1670
|
}
|
|
1665
1671
|
|
|
@@ -1667,7 +1673,7 @@ declare global {
|
|
|
1667
1673
|
declare global {
|
|
1668
1674
|
namespace JSX {
|
|
1669
1675
|
interface IntrinsicElements {
|
|
1670
|
-
'gs-
|
|
1676
|
+
'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1671
1677
|
}
|
|
1672
1678
|
}
|
|
1673
1679
|
}
|
|
@@ -1675,7 +1681,7 @@ declare global {
|
|
|
1675
1681
|
|
|
1676
1682
|
declare global {
|
|
1677
1683
|
interface HTMLElementTagNameMap {
|
|
1678
|
-
'gs-
|
|
1684
|
+
'gs-mutations-over-time': MutationsOverTimeComponent;
|
|
1679
1685
|
}
|
|
1680
1686
|
}
|
|
1681
1687
|
|
|
@@ -1683,7 +1689,7 @@ declare global {
|
|
|
1683
1689
|
declare global {
|
|
1684
1690
|
namespace JSX {
|
|
1685
1691
|
interface IntrinsicElements {
|
|
1686
|
-
'gs-
|
|
1692
|
+
'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1687
1693
|
}
|
|
1688
1694
|
}
|
|
1689
1695
|
}
|
|
@@ -1707,7 +1713,7 @@ declare global {
|
|
|
1707
1713
|
|
|
1708
1714
|
declare global {
|
|
1709
1715
|
interface HTMLElementTagNameMap {
|
|
1710
|
-
'gs-
|
|
1716
|
+
'gs-sequences-by-location': SequencesByLocationComponent;
|
|
1711
1717
|
}
|
|
1712
1718
|
}
|
|
1713
1719
|
|
|
@@ -1715,7 +1721,7 @@ declare global {
|
|
|
1715
1721
|
declare global {
|
|
1716
1722
|
namespace JSX {
|
|
1717
1723
|
interface IntrinsicElements {
|
|
1718
|
-
'gs-
|
|
1724
|
+
'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1719
1725
|
}
|
|
1720
1726
|
}
|
|
1721
1727
|
}
|
|
@@ -1723,7 +1729,7 @@ declare global {
|
|
|
1723
1729
|
|
|
1724
1730
|
declare global {
|
|
1725
1731
|
interface HTMLElementTagNameMap {
|
|
1726
|
-
'gs-
|
|
1732
|
+
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1727
1733
|
}
|
|
1728
1734
|
}
|
|
1729
1735
|
|
|
@@ -1731,7 +1737,7 @@ declare global {
|
|
|
1731
1737
|
declare global {
|
|
1732
1738
|
namespace JSX {
|
|
1733
1739
|
interface IntrinsicElements {
|
|
1734
|
-
'gs-
|
|
1740
|
+
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1735
1741
|
}
|
|
1736
1742
|
}
|
|
1737
1743
|
}
|