@genspectrum/dashboard-components 1.18.0 → 1.18.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.
@@ -1876,7 +1876,7 @@ declare global {
1876
1876
 
1877
1877
  declare global {
1878
1878
  interface HTMLElementTagNameMap {
1879
- 'gs-genome-data-viewer': GenomeDataViewerComponent;
1879
+ 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
1880
1880
  }
1881
1881
  }
1882
1882
 
@@ -1884,7 +1884,7 @@ declare global {
1884
1884
  declare global {
1885
1885
  namespace React.JSX {
1886
1886
  interface IntrinsicElements {
1887
- 'gs-genome-data-viewer': GenomeDataViewerComponent;
1887
+ 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
1888
1888
  }
1889
1889
  }
1890
1890
  }
@@ -1892,7 +1892,11 @@ declare global {
1892
1892
 
1893
1893
  declare global {
1894
1894
  interface HTMLElementTagNameMap {
1895
- 'gs-mutation-comparison': MutationComparisonComponent;
1895
+ 'gs-date-range-filter': DateRangeFilterComponent;
1896
+ }
1897
+ interface HTMLElementEventMap {
1898
+ [gsEventNames.dateRangeFilterChanged]: CustomEvent<Record<string, string>>;
1899
+ [gsEventNames.dateRangeOptionChanged]: DateRangeOptionChangedEvent;
1896
1900
  }
1897
1901
  }
1898
1902
 
@@ -1900,7 +1904,7 @@ declare global {
1900
1904
  declare global {
1901
1905
  namespace React.JSX {
1902
1906
  interface IntrinsicElements {
1903
- 'gs-mutation-comparison': MutationComparisonComponent;
1907
+ 'gs-date-range-filter': DateRangeFilterComponent;
1904
1908
  }
1905
1909
  }
1906
1910
  }
@@ -1908,7 +1912,10 @@ declare global {
1908
1912
 
1909
1913
  declare global {
1910
1914
  interface HTMLElementTagNameMap {
1911
- 'gs-mutations': MutationsComponent;
1915
+ 'gs-text-filter': TextFilterComponent;
1916
+ }
1917
+ interface HTMLElementEventMap {
1918
+ [gsEventNames.textFilterChanged]: TextFilterChangedEvent;
1912
1919
  }
1913
1920
  }
1914
1921
 
@@ -1916,7 +1923,7 @@ declare global {
1916
1923
  declare global {
1917
1924
  namespace React.JSX {
1918
1925
  interface IntrinsicElements {
1919
- 'gs-mutations': MutationsComponent;
1926
+ 'gs-text-filter': TextFilterComponent;
1920
1927
  }
1921
1928
  }
1922
1929
  }
@@ -1924,7 +1931,10 @@ declare global {
1924
1931
 
1925
1932
  declare global {
1926
1933
  interface HTMLElementTagNameMap {
1927
- 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1934
+ 'gs-location-filter': LocationFilterComponent;
1935
+ }
1936
+ interface HTMLElementEventMap {
1937
+ [gsEventNames.locationChanged]: LocationChangedEvent;
1928
1938
  }
1929
1939
  }
1930
1940
 
@@ -1932,7 +1942,7 @@ declare global {
1932
1942
  declare global {
1933
1943
  namespace React.JSX {
1934
1944
  interface IntrinsicElements {
1935
- 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1945
+ 'gs-location-filter': LocationFilterComponent;
1936
1946
  }
1937
1947
  }
1938
1948
  }
@@ -1940,7 +1950,10 @@ declare global {
1940
1950
 
1941
1951
  declare global {
1942
1952
  interface HTMLElementTagNameMap {
1943
- 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1953
+ 'gs-mutation-filter': MutationFilterComponent;
1954
+ }
1955
+ interface HTMLElementEventMap {
1956
+ [gsEventNames.mutationFilterChanged]: CustomEvent<MutationsFilter>;
1944
1957
  }
1945
1958
  }
1946
1959
 
@@ -1948,7 +1961,7 @@ declare global {
1948
1961
  declare global {
1949
1962
  namespace React.JSX {
1950
1963
  interface IntrinsicElements {
1951
- 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1964
+ 'gs-mutation-filter': MutationFilterComponent;
1952
1965
  }
1953
1966
  }
1954
1967
  }
@@ -1956,7 +1969,11 @@ declare global {
1956
1969
 
1957
1970
  declare global {
1958
1971
  interface HTMLElementTagNameMap {
1959
- 'gs-aggregate': AggregateComponent;
1972
+ 'gs-lineage-filter': LineageFilterComponent;
1973
+ }
1974
+ interface HTMLElementEventMap {
1975
+ [gsEventNames.lineageFilterChanged]: LineageFilterChangedEvent;
1976
+ [gsEventNames.lineageFilterMultiChanged]: LineageMultiFilterChangedEvent;
1960
1977
  }
1961
1978
  }
1962
1979
 
@@ -1964,7 +1981,7 @@ declare global {
1964
1981
  declare global {
1965
1982
  namespace React.JSX {
1966
1983
  interface IntrinsicElements {
1967
- 'gs-aggregate': AggregateComponent;
1984
+ 'gs-lineage-filter': LineageFilterComponent;
1968
1985
  }
1969
1986
  }
1970
1987
  }
@@ -1972,7 +1989,11 @@ declare global {
1972
1989
 
1973
1990
  declare global {
1974
1991
  interface HTMLElementTagNameMap {
1975
- 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
1992
+ 'gs-number-range-filter': NumberRangeFilterComponent;
1993
+ }
1994
+ interface HTMLElementEventMap {
1995
+ [gsEventNames.numberRangeFilterChanged]: NumberRangeFilterChangedEvent;
1996
+ [gsEventNames.numberRangeValueChanged]: NumberRangeValueChangedEvent;
1976
1997
  }
1977
1998
  }
1978
1999
 
@@ -1980,7 +2001,7 @@ declare global {
1980
2001
  declare global {
1981
2002
  namespace React.JSX {
1982
2003
  interface IntrinsicElements {
1983
- 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
2004
+ 'gs-number-range-filter': NumberRangeFilterComponent;
1984
2005
  }
1985
2006
  }
1986
2007
  }
@@ -1988,7 +2009,7 @@ declare global {
1988
2009
 
1989
2010
  declare global {
1990
2011
  interface HTMLElementTagNameMap {
1991
- 'gs-mutations-over-time': MutationsOverTimeComponent;
2012
+ 'gs-genome-data-viewer': GenomeDataViewerComponent;
1992
2013
  }
1993
2014
  }
1994
2015
 
@@ -1996,7 +2017,7 @@ declare global {
1996
2017
  declare global {
1997
2018
  namespace React.JSX {
1998
2019
  interface IntrinsicElements {
1999
- 'gs-mutations-over-time': MutationsOverTimeComponent;
2020
+ 'gs-genome-data-viewer': GenomeDataViewerComponent;
2000
2021
  }
2001
2022
  }
2002
2023
  }
@@ -2004,7 +2025,7 @@ declare global {
2004
2025
 
2005
2026
  declare global {
2006
2027
  interface HTMLElementTagNameMap {
2007
- 'gs-queries-over-time': QueriesOverTimeComponent;
2028
+ 'gs-mutations': MutationsComponent;
2008
2029
  }
2009
2030
  }
2010
2031
 
@@ -2012,7 +2033,7 @@ declare global {
2012
2033
  declare global {
2013
2034
  namespace React.JSX {
2014
2035
  interface IntrinsicElements {
2015
- 'gs-queries-over-time': QueriesOverTimeComponent;
2036
+ 'gs-mutations': MutationsComponent;
2016
2037
  }
2017
2038
  }
2018
2039
  }
@@ -2020,7 +2041,7 @@ declare global {
2020
2041
 
2021
2042
  declare global {
2022
2043
  interface HTMLElementTagNameMap {
2023
- 'gs-sequences-by-location': SequencesByLocationComponent;
2044
+ 'gs-mutation-comparison': MutationComparisonComponent;
2024
2045
  }
2025
2046
  }
2026
2047
 
@@ -2028,7 +2049,7 @@ declare global {
2028
2049
  declare global {
2029
2050
  namespace React.JSX {
2030
2051
  interface IntrinsicElements {
2031
- 'gs-sequences-by-location': SequencesByLocationComponent;
2052
+ 'gs-mutation-comparison': MutationComparisonComponent;
2032
2053
  }
2033
2054
  }
2034
2055
  }
@@ -2036,7 +2057,7 @@ declare global {
2036
2057
 
2037
2058
  declare global {
2038
2059
  interface HTMLElementTagNameMap {
2039
- 'gs-statistics': StatisticsComponent;
2060
+ 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
2040
2061
  }
2041
2062
  }
2042
2063
 
@@ -2044,7 +2065,7 @@ declare global {
2044
2065
  declare global {
2045
2066
  namespace React.JSX {
2046
2067
  interface IntrinsicElements {
2047
- 'gs-statistics': StatisticsComponent;
2068
+ 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
2048
2069
  }
2049
2070
  }
2050
2071
  }
@@ -2052,10 +2073,7 @@ declare global {
2052
2073
 
2053
2074
  declare global {
2054
2075
  interface HTMLElementTagNameMap {
2055
- 'gs-location-filter': LocationFilterComponent;
2056
- }
2057
- interface HTMLElementEventMap {
2058
- [gsEventNames.locationChanged]: LocationChangedEvent;
2076
+ 'gs-aggregate': AggregateComponent;
2059
2077
  }
2060
2078
  }
2061
2079
 
@@ -2063,7 +2081,7 @@ declare global {
2063
2081
  declare global {
2064
2082
  namespace React.JSX {
2065
2083
  interface IntrinsicElements {
2066
- 'gs-location-filter': LocationFilterComponent;
2084
+ 'gs-aggregate': AggregateComponent;
2067
2085
  }
2068
2086
  }
2069
2087
  }
@@ -2071,10 +2089,7 @@ declare global {
2071
2089
 
2072
2090
  declare global {
2073
2091
  interface HTMLElementTagNameMap {
2074
- 'gs-text-filter': TextFilterComponent;
2075
- }
2076
- interface HTMLElementEventMap {
2077
- [gsEventNames.textFilterChanged]: TextFilterChangedEvent;
2092
+ 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
2078
2093
  }
2079
2094
  }
2080
2095
 
@@ -2082,7 +2097,7 @@ declare global {
2082
2097
  declare global {
2083
2098
  namespace React.JSX {
2084
2099
  interface IntrinsicElements {
2085
- 'gs-text-filter': TextFilterComponent;
2100
+ 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
2086
2101
  }
2087
2102
  }
2088
2103
  }
@@ -2090,11 +2105,7 @@ declare global {
2090
2105
 
2091
2106
  declare global {
2092
2107
  interface HTMLElementTagNameMap {
2093
- 'gs-date-range-filter': DateRangeFilterComponent;
2094
- }
2095
- interface HTMLElementEventMap {
2096
- [gsEventNames.dateRangeFilterChanged]: CustomEvent<Record<string, string>>;
2097
- [gsEventNames.dateRangeOptionChanged]: DateRangeOptionChangedEvent;
2108
+ 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
2098
2109
  }
2099
2110
  }
2100
2111
 
@@ -2102,7 +2113,7 @@ declare global {
2102
2113
  declare global {
2103
2114
  namespace React.JSX {
2104
2115
  interface IntrinsicElements {
2105
- 'gs-date-range-filter': DateRangeFilterComponent;
2116
+ 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
2106
2117
  }
2107
2118
  }
2108
2119
  }
@@ -2110,10 +2121,7 @@ declare global {
2110
2121
 
2111
2122
  declare global {
2112
2123
  interface HTMLElementTagNameMap {
2113
- 'gs-mutation-filter': MutationFilterComponent;
2114
- }
2115
- interface HTMLElementEventMap {
2116
- [gsEventNames.mutationFilterChanged]: CustomEvent<MutationsFilter>;
2124
+ 'gs-mutations-over-time': MutationsOverTimeComponent;
2117
2125
  }
2118
2126
  }
2119
2127
 
@@ -2121,7 +2129,7 @@ declare global {
2121
2129
  declare global {
2122
2130
  namespace React.JSX {
2123
2131
  interface IntrinsicElements {
2124
- 'gs-mutation-filter': MutationFilterComponent;
2132
+ 'gs-mutations-over-time': MutationsOverTimeComponent;
2125
2133
  }
2126
2134
  }
2127
2135
  }
@@ -2129,11 +2137,7 @@ declare global {
2129
2137
 
2130
2138
  declare global {
2131
2139
  interface HTMLElementTagNameMap {
2132
- 'gs-number-range-filter': NumberRangeFilterComponent;
2133
- }
2134
- interface HTMLElementEventMap {
2135
- [gsEventNames.numberRangeFilterChanged]: NumberRangeFilterChangedEvent;
2136
- [gsEventNames.numberRangeValueChanged]: NumberRangeValueChangedEvent;
2140
+ 'gs-queries-over-time': QueriesOverTimeComponent;
2137
2141
  }
2138
2142
  }
2139
2143
 
@@ -2141,7 +2145,7 @@ declare global {
2141
2145
  declare global {
2142
2146
  namespace React.JSX {
2143
2147
  interface IntrinsicElements {
2144
- 'gs-number-range-filter': NumberRangeFilterComponent;
2148
+ 'gs-queries-over-time': QueriesOverTimeComponent;
2145
2149
  }
2146
2150
  }
2147
2151
  }
@@ -2149,11 +2153,7 @@ declare global {
2149
2153
 
2150
2154
  declare global {
2151
2155
  interface HTMLElementTagNameMap {
2152
- 'gs-lineage-filter': LineageFilterComponent;
2153
- }
2154
- interface HTMLElementEventMap {
2155
- [gsEventNames.lineageFilterChanged]: LineageFilterChangedEvent;
2156
- [gsEventNames.lineageFilterMultiChanged]: LineageMultiFilterChangedEvent;
2156
+ 'gs-statistics': StatisticsComponent;
2157
2157
  }
2158
2158
  }
2159
2159
 
@@ -2161,7 +2161,7 @@ declare global {
2161
2161
  declare global {
2162
2162
  namespace React.JSX {
2163
2163
  interface IntrinsicElements {
2164
- 'gs-lineage-filter': LineageFilterComponent;
2164
+ 'gs-statistics': StatisticsComponent;
2165
2165
  }
2166
2166
  }
2167
2167
  }
@@ -2169,7 +2169,7 @@ declare global {
2169
2169
 
2170
2170
  declare global {
2171
2171
  interface HTMLElementTagNameMap {
2172
- 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
2172
+ 'gs-sequences-by-location': SequencesByLocationComponent;
2173
2173
  }
2174
2174
  }
2175
2175
 
@@ -2177,7 +2177,7 @@ declare global {
2177
2177
  declare global {
2178
2178
  namespace React.JSX {
2179
2179
  interface IntrinsicElements {
2180
- 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
2180
+ 'gs-sequences-by-location': SequencesByLocationComponent;
2181
2181
  }
2182
2182
  }
2183
2183
  }
@@ -15424,7 +15424,16 @@ function DownshiftMultiCombobox({
15424
15424
  },
15425
15425
  environment
15426
15426
  });
15427
- const { isOpen, getToggleButtonProps, getMenuProps, getInputProps, highlightedIndex, getItemProps, closeMenu } = useCombobox({
15427
+ const {
15428
+ isOpen,
15429
+ getToggleButtonProps,
15430
+ getMenuProps,
15431
+ getInputProps,
15432
+ highlightedIndex,
15433
+ getItemProps,
15434
+ closeMenu,
15435
+ selectItem
15436
+ } = useCombobox({
15428
15437
  items: availableItems,
15429
15438
  itemToString(item) {
15430
15439
  return itemToString2(item);
@@ -15464,6 +15473,7 @@ function DownshiftMultiCombobox({
15464
15473
  const clearAll = () => {
15465
15474
  dispatchEvent([]);
15466
15475
  setItemsFilter("");
15476
+ selectItem(null);
15467
15477
  };
15468
15478
  const buttonRef = A$1(null);
15469
15479
  return /* @__PURE__ */ u$1("div", { ref: divRef, className: "relative w-full", children: [
@@ -15489,7 +15499,10 @@ function DownshiftMultiCombobox({
15489
15499
  "aria-label": `remove ${itemToString2(selectedItem)}`,
15490
15500
  className: "cursor-pointer hover:text-red-600",
15491
15501
  type: "button",
15492
- onClick: () => removeSelectedItem(selectedItem),
15502
+ onClick: () => {
15503
+ removeSelectedItem(selectedItem);
15504
+ selectItem(null);
15505
+ },
15493
15506
  tabIndex: -1,
15494
15507
  children: "×"
15495
15508
  }