@genspectrum/dashboard-components 1.5.0 → 1.6.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 +37 -2
- package/dist/assets/{mutationOverTimeWorker-BJ_P2T8Y.js.map → mutationOverTimeWorker-BmB6BvVM.js.map} +1 -1
- package/dist/components.d.ts +48 -27
- package/dist/components.js +73 -26
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +27 -27
- package/package.json +1 -1
- package/src/preact/mutationFilter/mutation-filter-info.tsx +2 -2
- package/src/preact/mutationFilter/mutation-filter.stories.tsx +71 -1
- package/src/preact/mutationFilter/mutation-filter.tsx +65 -24
- package/src/query/queryMutationsOverTime.ts +1 -1
- package/src/utils/mutations.spec.ts +13 -0
- package/src/utils/mutations.ts +3 -3
- package/src/web-components/input/gs-mutation-filter.stories.ts +29 -1
- package/src/web-components/input/gs-mutation-filter.tsx +29 -2
- package/standalone-bundle/assets/{mutationOverTimeWorker-CkeGpKWp.js.map → mutationOverTimeWorker-B_xP8pIC.js.map} +1 -1
- package/standalone-bundle/dashboard-components.js +2622 -2592
- package/standalone-bundle/dashboard-components.js.map +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -537,6 +537,11 @@ export declare class MutationComparisonComponent extends PreactLitAdapterWithGri
|
|
|
537
537
|
*
|
|
538
538
|
* Examples: `ins_S:614:G`, `ins_614:G`
|
|
539
539
|
*
|
|
540
|
+
* ### Enabled mutation types
|
|
541
|
+
*
|
|
542
|
+
* After parsing, the entered mutation/insertion also has to match the enabled mutation types,
|
|
543
|
+
* which are configured with the `enabledMutationTypes` attribute.
|
|
544
|
+
*
|
|
540
545
|
* @fires {CustomEvent<{
|
|
541
546
|
* nucleotideMutations: string[],
|
|
542
547
|
* aminoAcidMutations: string[],
|
|
@@ -565,6 +570,18 @@ export declare class MutationFilterComponent extends PreactLitAdapter {
|
|
|
565
570
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
566
571
|
*/
|
|
567
572
|
width: string;
|
|
573
|
+
/**
|
|
574
|
+
* Which mutation types this input will accept.
|
|
575
|
+
* Any (or all) of the following can be given in a list:
|
|
576
|
+
*
|
|
577
|
+
* - `nucleotideMutations`
|
|
578
|
+
* - `nucleotideInsertions`
|
|
579
|
+
* - `aminoAcidMutations`
|
|
580
|
+
* - `aminoAcidInsertions`
|
|
581
|
+
*
|
|
582
|
+
* By default or if none are given, all types are accepted.
|
|
583
|
+
*/
|
|
584
|
+
enabledMutationTypes: MutationType[] | undefined;
|
|
568
585
|
render(): JSX_2.Element;
|
|
569
586
|
}
|
|
570
587
|
|
|
@@ -782,6 +799,10 @@ export declare class MutationsOverTimeComponent extends PreactLitAdapterWithGrid
|
|
|
782
799
|
render(): JSX_2.Element;
|
|
783
800
|
}
|
|
784
801
|
|
|
802
|
+
declare type MutationType = default_2.infer<typeof mutationTypeSchema>;
|
|
803
|
+
|
|
804
|
+
declare const mutationTypeSchema: default_2.ZodEnum<["nucleotideMutations", "aminoAcidMutations", "nucleotideInsertions", "aminoAcidInsertions"]>;
|
|
805
|
+
|
|
785
806
|
/**
|
|
786
807
|
*
|
|
787
808
|
* ## Context
|
|
@@ -1605,7 +1626,7 @@ declare global {
|
|
|
1605
1626
|
|
|
1606
1627
|
declare global {
|
|
1607
1628
|
interface HTMLElementTagNameMap {
|
|
1608
|
-
'gs-
|
|
1629
|
+
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1609
1630
|
}
|
|
1610
1631
|
}
|
|
1611
1632
|
|
|
@@ -1613,7 +1634,7 @@ declare global {
|
|
|
1613
1634
|
declare global {
|
|
1614
1635
|
namespace JSX {
|
|
1615
1636
|
interface IntrinsicElements {
|
|
1616
|
-
'gs-
|
|
1637
|
+
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1617
1638
|
}
|
|
1618
1639
|
}
|
|
1619
1640
|
}
|
|
@@ -1637,7 +1658,7 @@ declare global {
|
|
|
1637
1658
|
|
|
1638
1659
|
declare global {
|
|
1639
1660
|
interface HTMLElementTagNameMap {
|
|
1640
|
-
'gs-
|
|
1661
|
+
'gs-genome-data-viewer': GenomeDataViewerComponent;
|
|
1641
1662
|
}
|
|
1642
1663
|
}
|
|
1643
1664
|
|
|
@@ -1645,7 +1666,7 @@ declare global {
|
|
|
1645
1666
|
declare global {
|
|
1646
1667
|
namespace JSX {
|
|
1647
1668
|
interface IntrinsicElements {
|
|
1648
|
-
'gs-
|
|
1669
|
+
'gs-genome-data-viewer': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1649
1670
|
}
|
|
1650
1671
|
}
|
|
1651
1672
|
}
|
|
@@ -1653,7 +1674,7 @@ declare global {
|
|
|
1653
1674
|
|
|
1654
1675
|
declare global {
|
|
1655
1676
|
interface HTMLElementTagNameMap {
|
|
1656
|
-
'gs-
|
|
1677
|
+
'gs-mutations': MutationsComponent;
|
|
1657
1678
|
}
|
|
1658
1679
|
}
|
|
1659
1680
|
|
|
@@ -1661,7 +1682,7 @@ declare global {
|
|
|
1661
1682
|
declare global {
|
|
1662
1683
|
namespace JSX {
|
|
1663
1684
|
interface IntrinsicElements {
|
|
1664
|
-
'gs-
|
|
1685
|
+
'gs-mutations': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1665
1686
|
}
|
|
1666
1687
|
}
|
|
1667
1688
|
}
|
|
@@ -1685,7 +1706,7 @@ declare global {
|
|
|
1685
1706
|
|
|
1686
1707
|
declare global {
|
|
1687
1708
|
interface HTMLElementTagNameMap {
|
|
1688
|
-
'gs-
|
|
1709
|
+
'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
|
|
1689
1710
|
}
|
|
1690
1711
|
}
|
|
1691
1712
|
|
|
@@ -1693,7 +1714,7 @@ declare global {
|
|
|
1693
1714
|
declare global {
|
|
1694
1715
|
namespace JSX {
|
|
1695
1716
|
interface IntrinsicElements {
|
|
1696
|
-
'gs-
|
|
1717
|
+
'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1697
1718
|
}
|
|
1698
1719
|
}
|
|
1699
1720
|
}
|
|
@@ -1701,7 +1722,7 @@ declare global {
|
|
|
1701
1722
|
|
|
1702
1723
|
declare global {
|
|
1703
1724
|
interface HTMLElementTagNameMap {
|
|
1704
|
-
'gs-
|
|
1725
|
+
'gs-aggregate': AggregateComponent;
|
|
1705
1726
|
}
|
|
1706
1727
|
}
|
|
1707
1728
|
|
|
@@ -1709,7 +1730,7 @@ declare global {
|
|
|
1709
1730
|
declare global {
|
|
1710
1731
|
namespace JSX {
|
|
1711
1732
|
interface IntrinsicElements {
|
|
1712
|
-
'gs-
|
|
1733
|
+
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1713
1734
|
}
|
|
1714
1735
|
}
|
|
1715
1736
|
}
|
|
@@ -1717,7 +1738,7 @@ declare global {
|
|
|
1717
1738
|
|
|
1718
1739
|
declare global {
|
|
1719
1740
|
interface HTMLElementTagNameMap {
|
|
1720
|
-
'gs-sequences-
|
|
1741
|
+
'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
|
|
1721
1742
|
}
|
|
1722
1743
|
}
|
|
1723
1744
|
|
|
@@ -1725,7 +1746,7 @@ declare global {
|
|
|
1725
1746
|
declare global {
|
|
1726
1747
|
namespace JSX {
|
|
1727
1748
|
interface IntrinsicElements {
|
|
1728
|
-
'gs-sequences-
|
|
1749
|
+
'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1729
1750
|
}
|
|
1730
1751
|
}
|
|
1731
1752
|
}
|
|
@@ -1733,7 +1754,7 @@ declare global {
|
|
|
1733
1754
|
|
|
1734
1755
|
declare global {
|
|
1735
1756
|
interface HTMLElementTagNameMap {
|
|
1736
|
-
'gs-
|
|
1757
|
+
'gs-mutations-over-time': MutationsOverTimeComponent;
|
|
1737
1758
|
}
|
|
1738
1759
|
}
|
|
1739
1760
|
|
|
@@ -1741,7 +1762,7 @@ declare global {
|
|
|
1741
1762
|
declare global {
|
|
1742
1763
|
namespace JSX {
|
|
1743
1764
|
interface IntrinsicElements {
|
|
1744
|
-
'gs-
|
|
1765
|
+
'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1745
1766
|
}
|
|
1746
1767
|
}
|
|
1747
1768
|
}
|
|
@@ -1749,7 +1770,7 @@ declare global {
|
|
|
1749
1770
|
|
|
1750
1771
|
declare global {
|
|
1751
1772
|
interface HTMLElementTagNameMap {
|
|
1752
|
-
'gs-
|
|
1773
|
+
'gs-sequences-by-location': SequencesByLocationComponent;
|
|
1753
1774
|
}
|
|
1754
1775
|
}
|
|
1755
1776
|
|
|
@@ -1757,7 +1778,7 @@ declare global {
|
|
|
1757
1778
|
declare global {
|
|
1758
1779
|
namespace JSX {
|
|
1759
1780
|
interface IntrinsicElements {
|
|
1760
|
-
'gs-
|
|
1781
|
+
'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1761
1782
|
}
|
|
1762
1783
|
}
|
|
1763
1784
|
}
|
|
@@ -1765,10 +1786,7 @@ declare global {
|
|
|
1765
1786
|
|
|
1766
1787
|
declare global {
|
|
1767
1788
|
interface HTMLElementTagNameMap {
|
|
1768
|
-
'gs-
|
|
1769
|
-
}
|
|
1770
|
-
interface HTMLElementEventMap {
|
|
1771
|
-
[gsEventNames.locationChanged]: LocationChangedEvent;
|
|
1789
|
+
'gs-statistics': StatisticsComponent;
|
|
1772
1790
|
}
|
|
1773
1791
|
}
|
|
1774
1792
|
|
|
@@ -1776,7 +1794,7 @@ declare global {
|
|
|
1776
1794
|
declare global {
|
|
1777
1795
|
namespace JSX {
|
|
1778
1796
|
interface IntrinsicElements {
|
|
1779
|
-
'gs-
|
|
1797
|
+
'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1780
1798
|
}
|
|
1781
1799
|
}
|
|
1782
1800
|
}
|
|
@@ -1784,7 +1802,11 @@ declare global {
|
|
|
1784
1802
|
|
|
1785
1803
|
declare global {
|
|
1786
1804
|
interface HTMLElementTagNameMap {
|
|
1787
|
-
'gs-
|
|
1805
|
+
'gs-date-range-filter': DateRangeFilterComponent;
|
|
1806
|
+
}
|
|
1807
|
+
interface HTMLElementEventMap {
|
|
1808
|
+
[gsEventNames.dateRangeFilterChanged]: CustomEvent<Record<string, string>>;
|
|
1809
|
+
[gsEventNames.dateRangeOptionChanged]: DateRangeOptionChangedEvent;
|
|
1788
1810
|
}
|
|
1789
1811
|
}
|
|
1790
1812
|
|
|
@@ -1792,7 +1814,7 @@ declare global {
|
|
|
1792
1814
|
declare global {
|
|
1793
1815
|
namespace JSX {
|
|
1794
1816
|
interface IntrinsicElements {
|
|
1795
|
-
'gs-
|
|
1817
|
+
'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1796
1818
|
}
|
|
1797
1819
|
}
|
|
1798
1820
|
}
|
|
@@ -1800,11 +1822,10 @@ declare global {
|
|
|
1800
1822
|
|
|
1801
1823
|
declare global {
|
|
1802
1824
|
interface HTMLElementTagNameMap {
|
|
1803
|
-
'gs-
|
|
1825
|
+
'gs-location-filter': LocationFilterComponent;
|
|
1804
1826
|
}
|
|
1805
1827
|
interface HTMLElementEventMap {
|
|
1806
|
-
[gsEventNames.
|
|
1807
|
-
[gsEventNames.dateRangeOptionChanged]: DateRangeOptionChangedEvent;
|
|
1828
|
+
[gsEventNames.locationChanged]: LocationChangedEvent;
|
|
1808
1829
|
}
|
|
1809
1830
|
}
|
|
1810
1831
|
|
|
@@ -1812,7 +1833,7 @@ declare global {
|
|
|
1812
1833
|
declare global {
|
|
1813
1834
|
namespace JSX {
|
|
1814
1835
|
interface IntrinsicElements {
|
|
1815
|
-
'gs-
|
|
1836
|
+
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1816
1837
|
}
|
|
1817
1838
|
}
|
|
1818
1839
|
}
|