@genspectrum/dashboard-components 0.13.3 → 0.13.4

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.
@@ -3961,17 +3961,17 @@
3961
3961
  "kind": "variable",
3962
3962
  "name": "meta",
3963
3963
  "type": {
3964
- "text": "Meta<Required<WastewaterMutationsOverTimeProps>>"
3964
+ "text": "Meta<WastewaterMutationsOverTimeProps & { infoText: string }>"
3965
3965
  },
3966
- "default": "{ title: 'Wastewater visualization/Wastewater mutations over time', component: 'gs-wastewater-mutations-over-time', argTypes: { lapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, width: { control: 'text' }, height: { control: 'text' }, }, args: { lapisFilter: { versionStatus: 'LATEST_VERSION', isRevocation: false }, sequenceType: 'nucleotide', width: '100%', height: '700px', }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, fetchMock: {}, }), tags: ['autodocs'], }"
3966
+ "default": "{ title: 'Wastewater visualization/Wastewater mutations over time', component: 'gs-wastewater-mutations-over-time', argTypes: { lapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, width: { control: 'text' }, height: { control: 'text' }, }, args: { lapisFilter: { versionStatus: 'LATEST_VERSION', isRevocation: false }, sequenceType: 'nucleotide', width: '100%', height: '700px', infoText: 'Some info text', }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, fetchMock: {}, }), tags: ['autodocs'], }"
3967
3967
  },
3968
3968
  {
3969
3969
  "kind": "variable",
3970
3970
  "name": "WastewaterMutationsOverTime",
3971
3971
  "type": {
3972
- "text": "StoryObj<Required<WastewaterMutationsOverTimeProps>>"
3972
+ "text": "StoryObj<WastewaterMutationsOverTimeProps & { infoText: string }>"
3973
3973
  },
3974
- "default": "{ render: (args) => html` <gs-app lapis=\"${WISE_LAPIS_URL}\"> <gs-wastewater-mutations-over-time .lapisFilter=${args.lapisFilter} .sequenceType=${args.sequenceType} .width=${args.width} .height=${args.height} ></gs-wastewater-mutations-over-time> </gs-app> `, parameters: { fetchMock: { mocks: [ { matcher: { name: 'details', url: WISE_DETAILS_ENDPOINT, body: { fields: ['date', 'location', 'nucleotideMutationFrequency', 'aminoAcidMutationFrequency'], versionStatus: 'LATEST_VERSION', isRevocation: false, }, }, response: { status: 200, body: details, }, }, ], }, }, }"
3974
+ "default": "{ render: (args) => html` <gs-app lapis=\"${WISE_LAPIS_URL}\"> <gs-wastewater-mutations-over-time .lapisFilter=${args.lapisFilter} .sequenceType=${args.sequenceType} .width=${args.width} .height=${args.height} > <span slot=\"infoText\">${args.infoText}</span> </gs-wastewater-mutations-over-time> </gs-app> `, parameters: { fetchMock: { mocks: [ { matcher: { name: 'details', url: WISE_DETAILS_ENDPOINT, body: { fields: ['date', 'location', 'nucleotideMutationFrequency', 'aminoAcidMutationFrequency'], versionStatus: 'LATEST_VERSION', isRevocation: false, }, }, response: { status: 200, body: details, }, }, ], }, }, }"
3975
3975
  }
3976
3976
  ],
3977
3977
  "exports": [
@@ -4001,6 +4001,12 @@
4001
4001
  "kind": "class",
4002
4002
  "description": "## Context\n\nThis component displays mutations for Swiss wastewater data generated within the WISE consortium. It is designed\nonly for this purpose and is not designed to be reused outside the WISE project.\n\nIt relies on a LAPIS instance that has the fields `nucleotideMutationFrequency` and `aminoAcidMutationFrequency`.\nThose fields are expected to be JSON strings of the format `{ [mutation]: frequency | null }`\n(e.g. `{ \"A123T\": 0.5, \"C456G\": 0.7, \"T789G\": null }`).\n\nThe component will stratify by `location`.\nEvery location will be rendered in a separate tab.\nThe content of the tab is a \"mutations over time\" grid, similar to the one used in the `gs-mutations-over-time` component.\n\nThis component also assumes that the LAPIS instance has the field `date` which can be used for the time axis.",
4003
4003
  "name": "WastewaterMutationsOverTimeComponent",
4004
+ "slots": [
4005
+ {
4006
+ "description": "Additional information text to be shown in the info modal (the \"?\" button).",
4007
+ "name": "infoText"
4008
+ }
4009
+ ],
4004
4010
  "members": [
4005
4011
  {
4006
4012
  "kind": "field",
@@ -1284,6 +1284,8 @@ export declare class UserFacingError extends Error {
1284
1284
  * The content of the tab is a "mutations over time" grid, similar to the one used in the `gs-mutations-over-time` component.
1285
1285
  *
1286
1286
  * This component also assumes that the LAPIS instance has the field `date` which can be used for the time axis.
1287
+ *
1288
+ * @slot infoText - Additional information text to be shown in the info modal (the "?" button).
1287
1289
  */
1288
1290
  export declare class WastewaterMutationsOverTimeComponent extends PreactLitAdapterWithGridJsStyles {
1289
1291
  /**
@@ -1362,7 +1364,7 @@ declare global {
1362
1364
 
1363
1365
  declare global {
1364
1366
  interface HTMLElementTagNameMap {
1365
- 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1367
+ 'gs-mutations-component': MutationsComponent;
1366
1368
  }
1367
1369
  }
1368
1370
 
@@ -1370,7 +1372,7 @@ declare global {
1370
1372
  declare global {
1371
1373
  namespace JSX {
1372
1374
  interface IntrinsicElements {
1373
- 'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1375
+ 'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1374
1376
  }
1375
1377
  }
1376
1378
  }
@@ -1378,7 +1380,7 @@ declare global {
1378
1380
 
1379
1381
  declare global {
1380
1382
  interface HTMLElementTagNameMap {
1381
- 'gs-mutations-component': MutationsComponent;
1383
+ 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1382
1384
  }
1383
1385
  }
1384
1386
 
@@ -1386,7 +1388,7 @@ declare global {
1386
1388
  declare global {
1387
1389
  namespace JSX {
1388
1390
  interface IntrinsicElements {
1389
- 'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1391
+ 'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1390
1392
  }
1391
1393
  }
1392
1394
  }
@@ -1394,7 +1396,7 @@ declare global {
1394
1396
 
1395
1397
  declare global {
1396
1398
  interface HTMLElementTagNameMap {
1397
- 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1399
+ 'gs-aggregate': AggregateComponent;
1398
1400
  }
1399
1401
  }
1400
1402
 
@@ -1402,7 +1404,7 @@ declare global {
1402
1404
  declare global {
1403
1405
  namespace JSX {
1404
1406
  interface IntrinsicElements {
1405
- 'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1407
+ 'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1406
1408
  }
1407
1409
  }
1408
1410
  }
@@ -1410,7 +1412,7 @@ declare global {
1410
1412
 
1411
1413
  declare global {
1412
1414
  interface HTMLElementTagNameMap {
1413
- 'gs-aggregate': AggregateComponent;
1415
+ 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
1414
1416
  }
1415
1417
  }
1416
1418
 
@@ -1418,7 +1420,7 @@ declare global {
1418
1420
  declare global {
1419
1421
  namespace JSX {
1420
1422
  interface IntrinsicElements {
1421
- 'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1423
+ 'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1422
1424
  }
1423
1425
  }
1424
1426
  }
@@ -1426,7 +1428,7 @@ declare global {
1426
1428
 
1427
1429
  declare global {
1428
1430
  interface HTMLElementTagNameMap {
1429
- 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
1431
+ 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1430
1432
  }
1431
1433
  }
1432
1434
 
@@ -1434,7 +1436,7 @@ declare global {
1434
1436
  declare global {
1435
1437
  namespace JSX {
1436
1438
  interface IntrinsicElements {
1437
- 'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1439
+ 'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1438
1440
  }
1439
1441
  }
1440
1442
  }
@@ -1526,10 +1528,10 @@ declare global {
1526
1528
 
1527
1529
  declare global {
1528
1530
  interface HTMLElementTagNameMap {
1529
- 'gs-location-filter': LocationFilterComponent;
1531
+ 'gs-text-input': TextInputComponent;
1530
1532
  }
1531
1533
  interface HTMLElementEventMap {
1532
- 'gs-location-changed': LocationChangedEvent;
1534
+ 'gs-text-input-changed': TextInputChangedEvent;
1533
1535
  }
1534
1536
  }
1535
1537
 
@@ -1537,7 +1539,7 @@ declare global {
1537
1539
  declare global {
1538
1540
  namespace JSX {
1539
1541
  interface IntrinsicElements {
1540
- 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1542
+ 'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1541
1543
  }
1542
1544
  }
1543
1545
  }
@@ -1545,10 +1547,10 @@ declare global {
1545
1547
 
1546
1548
  declare global {
1547
1549
  interface HTMLElementTagNameMap {
1548
- 'gs-lineage-filter': LineageFilterComponent;
1550
+ 'gs-mutation-filter': MutationFilterComponent;
1549
1551
  }
1550
1552
  interface HTMLElementEventMap {
1551
- 'gs-lineage-filter-changed': LineageFilterChangedEvent;
1553
+ 'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
1552
1554
  }
1553
1555
  }
1554
1556
 
@@ -1556,7 +1558,7 @@ declare global {
1556
1558
  declare global {
1557
1559
  namespace JSX {
1558
1560
  interface IntrinsicElements {
1559
- 'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1561
+ 'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1560
1562
  }
1561
1563
  }
1562
1564
  }
@@ -1564,10 +1566,10 @@ declare global {
1564
1566
 
1565
1567
  declare global {
1566
1568
  interface HTMLElementTagNameMap {
1567
- 'gs-text-input': TextInputComponent;
1569
+ 'gs-lineage-filter': LineageFilterComponent;
1568
1570
  }
1569
1571
  interface HTMLElementEventMap {
1570
- 'gs-text-input-changed': TextInputChangedEvent;
1572
+ 'gs-lineage-filter-changed': LineageFilterChangedEvent;
1571
1573
  }
1572
1574
  }
1573
1575
 
@@ -1575,7 +1577,7 @@ declare global {
1575
1577
  declare global {
1576
1578
  namespace JSX {
1577
1579
  interface IntrinsicElements {
1578
- 'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1580
+ 'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1579
1581
  }
1580
1582
  }
1581
1583
  }
@@ -1583,10 +1585,10 @@ declare global {
1583
1585
 
1584
1586
  declare global {
1585
1587
  interface HTMLElementTagNameMap {
1586
- 'gs-mutation-filter': MutationFilterComponent;
1588
+ 'gs-location-filter': LocationFilterComponent;
1587
1589
  }
1588
1590
  interface HTMLElementEventMap {
1589
- 'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
1591
+ 'gs-location-changed': LocationChangedEvent;
1590
1592
  }
1591
1593
  }
1592
1594
 
@@ -1594,7 +1596,7 @@ declare global {
1594
1596
  declare global {
1595
1597
  namespace JSX {
1596
1598
  interface IntrinsicElements {
1597
- 'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1599
+ 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1598
1600
  }
1599
1601
  }
1600
1602
  }
@@ -11257,7 +11257,7 @@ const WastewaterMutationsOverTimeInfo = ({
11257
11257
  const lapis = x$1(LapisUrlContext);
11258
11258
  return /* @__PURE__ */ u$1(Info, { children: [
11259
11259
  /* @__PURE__ */ u$1(InfoHeadline1, { children: "Info for mutations over time" }),
11260
- /* @__PURE__ */ u$1(InfoParagraph, { children: " " }),
11260
+ /* @__PURE__ */ u$1(InfoParagraph, { children: /* @__PURE__ */ u$1("slot", { name: "infoText" }) }),
11261
11261
  /* @__PURE__ */ u$1(
11262
11262
  InfoComponentCode,
11263
11263
  {