@genspectrum/dashboard-components 0.14.2 → 0.15.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 +81 -49
- package/dist/{LineageFilterChangedEvent-C9dXOxt6.js → LineageFilterChangedEvent-COWV-Y0k.js} +6 -6
- package/dist/LineageFilterChangedEvent-COWV-Y0k.js.map +1 -0
- package/dist/assets/{mutationOverTimeWorker-Dxnxrfe0.js.map → mutationOverTimeWorker-BL50C-yi.js.map} +1 -1
- package/dist/components.d.ts +31 -31
- package/dist/components.js +62 -51
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +29 -29
- package/dist/util.js +2 -2
- package/package.json +1 -1
- package/src/preact/{dateRangeSelector/date-range-selector.stories.tsx → dateRangeFilter/date-range-filter.stories.tsx} +15 -15
- package/src/preact/{dateRangeSelector/date-range-selector.tsx → dateRangeFilter/date-range-filter.tsx} +9 -9
- package/src/preact/{dateRangeSelector → dateRangeFilter}/dateRangeOption.ts +2 -2
- package/src/preact/{textInput/TextInputChangedEvent.ts → textFilter/TextFilterChangedEvent.ts} +2 -2
- package/src/preact/{textInput/text-input.stories.tsx → textFilter/text-filter.stories.tsx} +10 -10
- package/src/preact/{textInput/text-input.tsx → textFilter/text-filter.tsx} +10 -10
- package/src/utilEntrypoint.ts +2 -2
- package/src/web-components/input/{gs-date-range-selector.stories.ts → gs-date-range-filter.stories.ts} +59 -14
- package/src/web-components/input/{gs-date-range-selector.tsx → gs-date-range-filter.tsx} +28 -13
- package/src/web-components/input/{gs-text-input.stories.ts → gs-text-filter.stories.ts} +15 -15
- package/src/web-components/input/{gs-text-input.tsx → gs-text-filter.tsx} +16 -16
- package/src/web-components/input/index.ts +2 -2
- package/standalone-bundle/assets/{mutationOverTimeWorker-CmSrq4SZ.js.map → mutationOverTimeWorker-CFB5-Mdk.js.map} +1 -1
- package/standalone-bundle/dashboard-components.js +2167 -2161
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/dist/LineageFilterChangedEvent-C9dXOxt6.js.map +0 -1
- /package/src/preact/{dateRangeSelector → dateRangeFilter}/computeInitialValues.spec.ts +0 -0
- /package/src/preact/{dateRangeSelector → dateRangeFilter}/computeInitialValues.ts +0 -0
- /package/src/preact/{dateRangeSelector → dateRangeFilter}/dateConversion.ts +0 -0
- /package/src/preact/{dateRangeSelector → dateRangeFilter}/selectableOptions.ts +0 -0
- /package/src/preact/{textInput → textFilter}/__mockData__/aggregated_hosts.json +0 -0
- /package/src/preact/{textInput → textFilter}/fetchStringAutocompleteList.spec.ts +0 -0
- /package/src/preact/{textInput → textFilter}/fetchStringAutocompleteList.ts +0 -0
package/dist/components.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ export declare class AppComponent extends LitElement {
|
|
|
160
160
|
* Use this event, when you want to control this component in your JS application.
|
|
161
161
|
* You can supply the `detail` of this event to the `value` attribute of this component.
|
|
162
162
|
*/
|
|
163
|
-
export declare class
|
|
163
|
+
export declare class DateRangeFilterComponent extends PreactLitAdapter {
|
|
164
164
|
/**
|
|
165
165
|
* An array of date range options that the select field should provide.
|
|
166
166
|
* The `label` will be shown to the user, and it will be available as `value`.
|
|
@@ -1208,7 +1208,7 @@ export declare class StatisticsComponent extends PreactLitAdapterWithGridJsStyle
|
|
|
1208
1208
|
*
|
|
1209
1209
|
* This component provides a text input field to specify filters for arbitrary fields of this LAPIS instance.
|
|
1210
1210
|
*
|
|
1211
|
-
* @fires {CustomEvent<Record<string, string | undefined>>} gs-text-
|
|
1211
|
+
* @fires {CustomEvent<Record<string, string | undefined>>} gs-text-filter-changed
|
|
1212
1212
|
* Fired when the input field is changed.
|
|
1213
1213
|
* The `details` of this event contain an object with the `lapisField` as key and the input value as value.
|
|
1214
1214
|
* Example:
|
|
@@ -1218,15 +1218,15 @@ export declare class StatisticsComponent extends PreactLitAdapterWithGridJsStyle
|
|
|
1218
1218
|
* }
|
|
1219
1219
|
* ```
|
|
1220
1220
|
*/
|
|
1221
|
-
export declare class
|
|
1221
|
+
export declare class TextFilterComponent extends PreactLitAdapter {
|
|
1222
1222
|
/**
|
|
1223
|
-
* The initial value to use for this text
|
|
1223
|
+
* The initial value to use for this text filter.
|
|
1224
1224
|
*/
|
|
1225
1225
|
value: string | undefined;
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Required.
|
|
1228
1228
|
*
|
|
1229
|
-
* The LAPIS field name to use for this text
|
|
1229
|
+
* The LAPIS field name to use for this text filter.
|
|
1230
1230
|
* The field must exist on this LAPIS instance.
|
|
1231
1231
|
*/
|
|
1232
1232
|
lapisField: string;
|
|
@@ -1342,7 +1342,7 @@ declare global {
|
|
|
1342
1342
|
|
|
1343
1343
|
declare global {
|
|
1344
1344
|
interface HTMLElementTagNameMap {
|
|
1345
|
-
'gs-mutations-
|
|
1345
|
+
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
|
|
@@ -1350,7 +1350,7 @@ declare global {
|
|
|
1350
1350
|
declare global {
|
|
1351
1351
|
namespace JSX {
|
|
1352
1352
|
interface IntrinsicElements {
|
|
1353
|
-
'gs-mutations-
|
|
1353
|
+
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
@@ -1374,7 +1374,7 @@ declare global {
|
|
|
1374
1374
|
|
|
1375
1375
|
declare global {
|
|
1376
1376
|
interface HTMLElementTagNameMap {
|
|
1377
|
-
'gs-
|
|
1377
|
+
'gs-mutations-component': MutationsComponent;
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
@@ -1382,7 +1382,7 @@ declare global {
|
|
|
1382
1382
|
declare global {
|
|
1383
1383
|
namespace JSX {
|
|
1384
1384
|
interface IntrinsicElements {
|
|
1385
|
-
'gs-
|
|
1385
|
+
'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
@@ -1390,7 +1390,7 @@ declare global {
|
|
|
1390
1390
|
|
|
1391
1391
|
declare global {
|
|
1392
1392
|
interface HTMLElementTagNameMap {
|
|
1393
|
-
'gs-
|
|
1393
|
+
'gs-prevalence-over-time': PrevalenceOverTimeComponent;
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
@@ -1398,7 +1398,7 @@ declare global {
|
|
|
1398
1398
|
declare global {
|
|
1399
1399
|
namespace JSX {
|
|
1400
1400
|
interface IntrinsicElements {
|
|
1401
|
-
'gs-
|
|
1401
|
+
'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
@@ -1406,7 +1406,7 @@ declare global {
|
|
|
1406
1406
|
|
|
1407
1407
|
declare global {
|
|
1408
1408
|
interface HTMLElementTagNameMap {
|
|
1409
|
-
'gs-
|
|
1409
|
+
'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
@@ -1414,7 +1414,7 @@ declare global {
|
|
|
1414
1414
|
declare global {
|
|
1415
1415
|
namespace JSX {
|
|
1416
1416
|
interface IntrinsicElements {
|
|
1417
|
-
'gs-
|
|
1417
|
+
'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
@@ -1422,7 +1422,7 @@ declare global {
|
|
|
1422
1422
|
|
|
1423
1423
|
declare global {
|
|
1424
1424
|
interface HTMLElementTagNameMap {
|
|
1425
|
-
'gs-
|
|
1425
|
+
'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
|
|
@@ -1430,7 +1430,7 @@ declare global {
|
|
|
1430
1430
|
declare global {
|
|
1431
1431
|
namespace JSX {
|
|
1432
1432
|
interface IntrinsicElements {
|
|
1433
|
-
'gs-
|
|
1433
|
+
'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
@@ -1438,7 +1438,7 @@ declare global {
|
|
|
1438
1438
|
|
|
1439
1439
|
declare global {
|
|
1440
1440
|
interface HTMLElementTagNameMap {
|
|
1441
|
-
'gs-
|
|
1441
|
+
'gs-aggregate': AggregateComponent;
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
@@ -1446,7 +1446,7 @@ declare global {
|
|
|
1446
1446
|
declare global {
|
|
1447
1447
|
namespace JSX {
|
|
1448
1448
|
interface IntrinsicElements {
|
|
1449
|
-
'gs-
|
|
1449
|
+
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
@@ -1454,7 +1454,7 @@ declare global {
|
|
|
1454
1454
|
|
|
1455
1455
|
declare global {
|
|
1456
1456
|
interface HTMLElementTagNameMap {
|
|
1457
|
-
'gs-
|
|
1457
|
+
'gs-mutations-over-time': MutationsOverTimeComponent;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
@@ -1462,7 +1462,7 @@ declare global {
|
|
|
1462
1462
|
declare global {
|
|
1463
1463
|
namespace JSX {
|
|
1464
1464
|
interface IntrinsicElements {
|
|
1465
|
-
'gs-
|
|
1465
|
+
'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
@@ -1470,7 +1470,7 @@ declare global {
|
|
|
1470
1470
|
|
|
1471
1471
|
declare global {
|
|
1472
1472
|
interface HTMLElementTagNameMap {
|
|
1473
|
-
'gs-
|
|
1473
|
+
'gs-sequences-by-location': SequencesByLocationComponent;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
@@ -1478,7 +1478,7 @@ declare global {
|
|
|
1478
1478
|
declare global {
|
|
1479
1479
|
namespace JSX {
|
|
1480
1480
|
interface IntrinsicElements {
|
|
1481
|
-
'gs-
|
|
1481
|
+
'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
@@ -1486,7 +1486,7 @@ declare global {
|
|
|
1486
1486
|
|
|
1487
1487
|
declare global {
|
|
1488
1488
|
interface HTMLElementTagNameMap {
|
|
1489
|
-
'gs-
|
|
1489
|
+
'gs-statistics': StatisticsComponent;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
@@ -1494,7 +1494,7 @@ declare global {
|
|
|
1494
1494
|
declare global {
|
|
1495
1495
|
namespace JSX {
|
|
1496
1496
|
interface IntrinsicElements {
|
|
1497
|
-
'gs-
|
|
1497
|
+
'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
@@ -1502,7 +1502,7 @@ declare global {
|
|
|
1502
1502
|
|
|
1503
1503
|
declare global {
|
|
1504
1504
|
interface HTMLElementTagNameMap {
|
|
1505
|
-
'gs-date-range-
|
|
1505
|
+
'gs-date-range-filter': DateRangeFilterComponent;
|
|
1506
1506
|
}
|
|
1507
1507
|
interface HTMLElementEventMap {
|
|
1508
1508
|
'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
|
|
@@ -1514,7 +1514,7 @@ declare global {
|
|
|
1514
1514
|
declare global {
|
|
1515
1515
|
namespace JSX {
|
|
1516
1516
|
interface IntrinsicElements {
|
|
1517
|
-
'gs-date-range-
|
|
1517
|
+
'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
@@ -1522,10 +1522,10 @@ declare global {
|
|
|
1522
1522
|
|
|
1523
1523
|
declare global {
|
|
1524
1524
|
interface HTMLElementTagNameMap {
|
|
1525
|
-
'gs-
|
|
1525
|
+
'gs-location-filter': LocationFilterComponent;
|
|
1526
1526
|
}
|
|
1527
1527
|
interface HTMLElementEventMap {
|
|
1528
|
-
'gs-
|
|
1528
|
+
'gs-location-changed': LocationChangedEvent;
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
@@ -1533,7 +1533,7 @@ declare global {
|
|
|
1533
1533
|
declare global {
|
|
1534
1534
|
namespace JSX {
|
|
1535
1535
|
interface IntrinsicElements {
|
|
1536
|
-
'gs-
|
|
1536
|
+
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
@@ -1541,10 +1541,10 @@ declare global {
|
|
|
1541
1541
|
|
|
1542
1542
|
declare global {
|
|
1543
1543
|
interface HTMLElementTagNameMap {
|
|
1544
|
-
'gs-
|
|
1544
|
+
'gs-text-filter': TextFilterComponent;
|
|
1545
1545
|
}
|
|
1546
1546
|
interface HTMLElementEventMap {
|
|
1547
|
-
'gs-
|
|
1547
|
+
'gs-text-filter-changed': TextFilterChangedEvent;
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
@@ -1552,7 +1552,7 @@ declare global {
|
|
|
1552
1552
|
declare global {
|
|
1553
1553
|
namespace JSX {
|
|
1554
1554
|
interface IntrinsicElements {
|
|
1555
|
-
'gs-
|
|
1555
|
+
'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|