@genspectrum/dashboard-components 0.18.5 → 0.19.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/README.md +12 -2
- package/custom-elements.json +3 -3
- package/dist/assets/{mutationOverTimeWorker--b8ZHlji.js.map → mutationOverTimeWorker-ChQTFL68.js.map} +1 -1
- package/dist/components.d.ts +15 -14
- package/dist/components.js +1602 -332
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +14 -14
- package/package.json +3 -4
- package/src/preact/MutationAnnotationsContext.tsx +34 -27
- package/src/preact/components/dropdown.tsx +1 -1
- package/src/preact/components/info.tsx +1 -2
- package/src/preact/components/min-max-range-slider.tsx +0 -2
- package/src/preact/components/mutations-over-time-text-filter.stories.tsx +57 -0
- package/src/preact/components/mutations-over-time-text-filter.tsx +63 -0
- package/src/preact/components/segment-selector.tsx +1 -1
- package/src/preact/components/table.tsx +0 -2
- package/src/preact/dateRangeFilter/date-picker.tsx +15 -10
- package/src/preact/mutationFilter/mutation-filter.stories.tsx +169 -50
- package/src/preact/mutationFilter/mutation-filter.tsx +239 -234
- package/src/preact/mutationFilter/parseAndValidateMutation.ts +62 -10
- package/src/preact/mutationFilter/parseMutation.spec.ts +62 -47
- package/src/preact/mutationsOverTime/getFilteredMutationsOverTime.spec.ts +128 -0
- package/src/preact/mutationsOverTime/getFilteredMutationsOverTimeData.ts +39 -2
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +8 -11
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +27 -0
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +26 -5
- package/src/preact/shared/tanstackTable/pagination-context.tsx +30 -0
- package/src/preact/shared/tanstackTable/pagination.tsx +19 -6
- package/src/preact/shared/tanstackTable/tanstackTable.tsx +17 -3
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.stories.tsx +19 -1
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.tsx +6 -1
- package/src/styles/replaceCssProperties.stories.tsx +49 -0
- package/src/styles/replaceCssProperties.ts +25 -0
- package/src/styles/tailwind.css +1 -0
- package/src/web-components/PreactLitAdapter.tsx +6 -3
- package/src/web-components/PreactLitAdapterWithGridJsStyles.tsx +0 -2
- package/src/web-components/gs-app.stories.ts +6 -2
- package/src/web-components/gs-app.ts +4 -1
- package/src/web-components/input/gs-date-range-filter.tsx +6 -0
- package/src/web-components/input/gs-mutation-filter.stories.ts +4 -4
- package/src/web-components/visualization/gs-prevalence-over-time.stories.ts +1 -1
- package/standalone-bundle/assets/mutationOverTimeWorker-jChgWnwp.js.map +1 -1
- package/standalone-bundle/dashboard-components.js +10836 -11289
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/dist/style.css +0 -392
- package/standalone-bundle/style.css +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ export declare class AppComponent extends LitElement {
|
|
|
178
178
|
* You can supply the `detail` of this event to the `value` attribute of this component.
|
|
179
179
|
*/
|
|
180
180
|
export declare class DateRangeFilterComponent extends PreactLitAdapter {
|
|
181
|
+
static styles: CSSResult[];
|
|
181
182
|
/**
|
|
182
183
|
* An array of date range options that the select field should provide.
|
|
183
184
|
* The `label` will be shown to the user, and it will be available as `value`.
|
|
@@ -1440,7 +1441,7 @@ declare global {
|
|
|
1440
1441
|
|
|
1441
1442
|
declare global {
|
|
1442
1443
|
interface HTMLElementTagNameMap {
|
|
1443
|
-
'gs-
|
|
1444
|
+
'gs-prevalence-over-time': PrevalenceOverTimeComponent;
|
|
1444
1445
|
}
|
|
1445
1446
|
}
|
|
1446
1447
|
|
|
@@ -1448,7 +1449,7 @@ declare global {
|
|
|
1448
1449
|
declare global {
|
|
1449
1450
|
namespace JSX {
|
|
1450
1451
|
interface IntrinsicElements {
|
|
1451
|
-
'gs-
|
|
1452
|
+
'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1452
1453
|
}
|
|
1453
1454
|
}
|
|
1454
1455
|
}
|
|
@@ -1456,7 +1457,7 @@ declare global {
|
|
|
1456
1457
|
|
|
1457
1458
|
declare global {
|
|
1458
1459
|
interface HTMLElementTagNameMap {
|
|
1459
|
-
'gs-
|
|
1460
|
+
'gs-mutations-component': MutationsComponent;
|
|
1460
1461
|
}
|
|
1461
1462
|
}
|
|
1462
1463
|
|
|
@@ -1464,7 +1465,7 @@ declare global {
|
|
|
1464
1465
|
declare global {
|
|
1465
1466
|
namespace JSX {
|
|
1466
1467
|
interface IntrinsicElements {
|
|
1467
|
-
'gs-
|
|
1468
|
+
'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1468
1469
|
}
|
|
1469
1470
|
}
|
|
1470
1471
|
}
|
|
@@ -1584,11 +1585,10 @@ declare global {
|
|
|
1584
1585
|
|
|
1585
1586
|
declare global {
|
|
1586
1587
|
interface HTMLElementTagNameMap {
|
|
1587
|
-
'gs-
|
|
1588
|
+
'gs-location-filter': LocationFilterComponent;
|
|
1588
1589
|
}
|
|
1589
1590
|
interface HTMLElementEventMap {
|
|
1590
|
-
'gs-
|
|
1591
|
-
'gs-date-range-option-changed': DateRangeOptionChangedEvent;
|
|
1591
|
+
'gs-location-changed': LocationChangedEvent;
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
|
|
@@ -1596,7 +1596,7 @@ declare global {
|
|
|
1596
1596
|
declare global {
|
|
1597
1597
|
namespace JSX {
|
|
1598
1598
|
interface IntrinsicElements {
|
|
1599
|
-
'gs-
|
|
1599
|
+
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
@@ -1604,10 +1604,10 @@ declare global {
|
|
|
1604
1604
|
|
|
1605
1605
|
declare global {
|
|
1606
1606
|
interface HTMLElementTagNameMap {
|
|
1607
|
-
'gs-
|
|
1607
|
+
'gs-text-filter': TextFilterComponent;
|
|
1608
1608
|
}
|
|
1609
1609
|
interface HTMLElementEventMap {
|
|
1610
|
-
'gs-
|
|
1610
|
+
'gs-text-filter-changed': TextFilterChangedEvent;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
@@ -1615,7 +1615,7 @@ declare global {
|
|
|
1615
1615
|
declare global {
|
|
1616
1616
|
namespace JSX {
|
|
1617
1617
|
interface IntrinsicElements {
|
|
1618
|
-
'gs-
|
|
1618
|
+
'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
@@ -1623,10 +1623,11 @@ declare global {
|
|
|
1623
1623
|
|
|
1624
1624
|
declare global {
|
|
1625
1625
|
interface HTMLElementTagNameMap {
|
|
1626
|
-
'gs-
|
|
1626
|
+
'gs-date-range-filter': DateRangeFilterComponent;
|
|
1627
1627
|
}
|
|
1628
1628
|
interface HTMLElementEventMap {
|
|
1629
|
-
'gs-
|
|
1629
|
+
'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
|
|
1630
|
+
'gs-date-range-option-changed': DateRangeOptionChangedEvent;
|
|
1630
1631
|
}
|
|
1631
1632
|
}
|
|
1632
1633
|
|
|
@@ -1634,7 +1635,7 @@ declare global {
|
|
|
1634
1635
|
declare global {
|
|
1635
1636
|
namespace JSX {
|
|
1636
1637
|
interface IntrinsicElements {
|
|
1637
|
-
'gs-
|
|
1638
|
+
'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1638
1639
|
}
|
|
1639
1640
|
}
|
|
1640
1641
|
}
|