@genspectrum/dashboard-components 0.6.0 → 0.6.2

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.
@@ -490,14 +490,14 @@ const substitutionsOrDeletionsEndpoint = (lapisUrl, sequenceType) => {
490
490
  return sequenceType === "amino acid" ? `${lapisUrl}/sample/aminoAcidMutations` : `${lapisUrl}/sample/nucleotideMutations`;
491
491
  };
492
492
  const referenceGenomeEndpoint = (lapisUrl) => `${lapisUrl}/sample/referenceGenome`;
493
- var __defProp$b = Object.defineProperty;
494
- var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
495
- var __decorateClass$b = (decorators, target, key, kind) => {
496
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
493
+ var __defProp$c = Object.defineProperty;
494
+ var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
495
+ var __decorateClass$c = (decorators, target, key, kind) => {
496
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
497
497
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
498
498
  if (decorator = decorators[i2])
499
499
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
500
- if (kind && result) __defProp$b(target, key, result);
500
+ if (kind && result) __defProp$c(target, key, result);
501
501
  return result;
502
502
  };
503
503
  let App = class extends LitElement {
@@ -528,14 +528,14 @@ let App = class extends LitElement {
528
528
  return this;
529
529
  }
530
530
  };
531
- __decorateClass$b([
531
+ __decorateClass$c([
532
532
  provide({ context: lapisContext }),
533
533
  n2()
534
534
  ], App.prototype, "lapis", 2);
535
- __decorateClass$b([
535
+ __decorateClass$c([
536
536
  provide({ context: referenceGenomeContext })
537
537
  ], App.prototype, "referenceGenome", 2);
538
- App = __decorateClass$b([
538
+ App = __decorateClass$c([
539
539
  t$2("gs-app")
540
540
  ], App);
541
541
  var f$1 = 0;
@@ -4576,14 +4576,14 @@ input.tab:checked + .tab-content,
4576
4576
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
4577
4577
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
4578
4578
  }`;
4579
- var __defProp$a = Object.defineProperty;
4580
- var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
4581
- var __decorateClass$a = (decorators, target, key, kind) => {
4582
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
4579
+ var __defProp$b = Object.defineProperty;
4580
+ var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
4581
+ var __decorateClass$b = (decorators, target, key, kind) => {
4582
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
4583
4583
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4584
4584
  if (decorator = decorators[i2])
4585
4585
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4586
- if (kind && result) __defProp$a(target, key, result);
4586
+ if (kind && result) __defProp$b(target, key, result);
4587
4587
  return result;
4588
4588
  };
4589
4589
  const tailwindElementCss = unsafeCSS(tailwindStyle);
@@ -4605,10 +4605,10 @@ const _PreactLitAdapter = class _PreactLitAdapter extends ReactiveElement {
4605
4605
  };
4606
4606
  _PreactLitAdapter.styles = [tailwindElementCss, minMaxPercentSliderElementCss];
4607
4607
  let PreactLitAdapter = _PreactLitAdapter;
4608
- __decorateClass$a([
4608
+ __decorateClass$b([
4609
4609
  consume({ context: lapisContext })
4610
4610
  ], PreactLitAdapter.prototype, "lapis", 2);
4611
- __decorateClass$a([
4611
+ __decorateClass$b([
4612
4612
  consume({ context: referenceGenomeContext, subscribe: true })
4613
4613
  ], PreactLitAdapter.prototype, "referenceGenome", 2);
4614
4614
  const gridJsElementCss = unsafeCSS(gridJsStyle);
@@ -4616,14 +4616,14 @@ const _PreactLitAdapterWithGridJsStyles = class _PreactLitAdapterWithGridJsStyle
4616
4616
  };
4617
4617
  _PreactLitAdapterWithGridJsStyles.styles = [...PreactLitAdapter.styles, gridJsElementCss];
4618
4618
  let PreactLitAdapterWithGridJsStyles = _PreactLitAdapterWithGridJsStyles;
4619
- var __defProp$9 = Object.defineProperty;
4620
- var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
4621
- var __decorateClass$9 = (decorators, target, key, kind) => {
4622
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
4619
+ var __defProp$a = Object.defineProperty;
4620
+ var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
4621
+ var __decorateClass$a = (decorators, target, key, kind) => {
4622
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
4623
4623
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4624
4624
  if (decorator = decorators[i2])
4625
4625
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4626
- if (kind && result) __defProp$9(target, key, result);
4626
+ if (kind && result) __defProp$a(target, key, result);
4627
4627
  return result;
4628
4628
  };
4629
4629
  let MutationComparisonComponent = class extends PreactLitAdapterWithGridJsStyles {
@@ -4650,25 +4650,25 @@ let MutationComparisonComponent = class extends PreactLitAdapterWithGridJsStyles
4650
4650
  );
4651
4651
  }
4652
4652
  };
4653
- __decorateClass$9([
4653
+ __decorateClass$a([
4654
4654
  n2({ type: Array })
4655
4655
  ], MutationComparisonComponent.prototype, "lapisFilters", 2);
4656
- __decorateClass$9([
4656
+ __decorateClass$a([
4657
4657
  n2({ type: String })
4658
4658
  ], MutationComparisonComponent.prototype, "sequenceType", 2);
4659
- __decorateClass$9([
4659
+ __decorateClass$a([
4660
4660
  n2({ type: Array })
4661
4661
  ], MutationComparisonComponent.prototype, "views", 2);
4662
- __decorateClass$9([
4662
+ __decorateClass$a([
4663
4663
  n2({ type: String })
4664
4664
  ], MutationComparisonComponent.prototype, "width", 2);
4665
- __decorateClass$9([
4665
+ __decorateClass$a([
4666
4666
  n2({ type: String })
4667
4667
  ], MutationComparisonComponent.prototype, "height", 2);
4668
- __decorateClass$9([
4668
+ __decorateClass$a([
4669
4669
  n2({ type: Object })
4670
4670
  ], MutationComparisonComponent.prototype, "pageSize", 2);
4671
- MutationComparisonComponent = __decorateClass$9([
4671
+ MutationComparisonComponent = __decorateClass$a([
4672
4672
  t$2("gs-mutation-comparison")
4673
4673
  ], MutationComparisonComponent);
4674
4674
  function getInsertionsTableData(data) {
@@ -5070,14 +5070,14 @@ const Toolbar$3 = ({
5070
5070
  /* @__PURE__ */ u$1(Info, { height: "100px", children: "Info for mutations" })
5071
5071
  ] });
5072
5072
  };
5073
- var __defProp$8 = Object.defineProperty;
5074
- var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
5075
- var __decorateClass$8 = (decorators, target, key, kind) => {
5076
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
5073
+ var __defProp$9 = Object.defineProperty;
5074
+ var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
5075
+ var __decorateClass$9 = (decorators, target, key, kind) => {
5076
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
5077
5077
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5078
5078
  if (decorator = decorators[i2])
5079
5079
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5080
- if (kind && result) __defProp$8(target, key, result);
5080
+ if (kind && result) __defProp$9(target, key, result);
5081
5081
  return result;
5082
5082
  };
5083
5083
  let MutationsComponent = class extends PreactLitAdapterWithGridJsStyles {
@@ -5104,25 +5104,25 @@ let MutationsComponent = class extends PreactLitAdapterWithGridJsStyles {
5104
5104
  );
5105
5105
  }
5106
5106
  };
5107
- __decorateClass$8([
5107
+ __decorateClass$9([
5108
5108
  n2({ type: Object })
5109
5109
  ], MutationsComponent.prototype, "lapisFilter", 2);
5110
- __decorateClass$8([
5110
+ __decorateClass$9([
5111
5111
  n2({ type: String })
5112
5112
  ], MutationsComponent.prototype, "sequenceType", 2);
5113
- __decorateClass$8([
5113
+ __decorateClass$9([
5114
5114
  n2({ type: Array })
5115
5115
  ], MutationsComponent.prototype, "views", 2);
5116
- __decorateClass$8([
5116
+ __decorateClass$9([
5117
5117
  n2({ type: String })
5118
5118
  ], MutationsComponent.prototype, "width", 2);
5119
- __decorateClass$8([
5119
+ __decorateClass$9([
5120
5120
  n2({ type: String })
5121
5121
  ], MutationsComponent.prototype, "height", 2);
5122
- __decorateClass$8([
5122
+ __decorateClass$9([
5123
5123
  n2({ type: Object })
5124
5124
  ], MutationsComponent.prototype, "pageSize", 2);
5125
- MutationsComponent = __decorateClass$8([
5125
+ MutationsComponent = __decorateClass$9([
5126
5126
  t$2("gs-mutations")
5127
5127
  ], MutationsComponent);
5128
5128
  function getPrevalenceOverTimeTableData(data, granularity) {
@@ -6878,14 +6878,14 @@ const PrevalenceOverTimeInfo = () => {
6878
6878
  ] });
6879
6879
  };
6880
6880
  const maxInData = (data) => Math.max(...data.flatMap((variant) => variant.content.map((dataPoint) => dataPoint.prevalence)));
6881
- var __defProp$7 = Object.defineProperty;
6882
- var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
6883
- var __decorateClass$7 = (decorators, target, key, kind) => {
6884
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
6881
+ var __defProp$8 = Object.defineProperty;
6882
+ var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
6883
+ var __decorateClass$8 = (decorators, target, key, kind) => {
6884
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
6885
6885
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6886
6886
  if (decorator = decorators[i2])
6887
6887
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6888
- if (kind && result) __defProp$7(target, key, result);
6888
+ if (kind && result) __defProp$8(target, key, result);
6889
6889
  return result;
6890
6890
  };
6891
6891
  let PrevalenceOverTimeComponent = class extends PreactLitAdapterWithGridJsStyles {
@@ -6926,43 +6926,43 @@ let PrevalenceOverTimeComponent = class extends PreactLitAdapterWithGridJsStyles
6926
6926
  );
6927
6927
  }
6928
6928
  };
6929
- __decorateClass$7([
6929
+ __decorateClass$8([
6930
6930
  n2({ type: Object })
6931
6931
  ], PrevalenceOverTimeComponent.prototype, "numeratorFilter", 2);
6932
- __decorateClass$7([
6932
+ __decorateClass$8([
6933
6933
  n2({ type: Object })
6934
6934
  ], PrevalenceOverTimeComponent.prototype, "denominatorFilter", 2);
6935
- __decorateClass$7([
6935
+ __decorateClass$8([
6936
6936
  n2({ type: String })
6937
6937
  ], PrevalenceOverTimeComponent.prototype, "granularity", 2);
6938
- __decorateClass$7([
6938
+ __decorateClass$8([
6939
6939
  n2({ type: Number })
6940
6940
  ], PrevalenceOverTimeComponent.prototype, "smoothingWindow", 2);
6941
- __decorateClass$7([
6941
+ __decorateClass$8([
6942
6942
  n2({ type: Array })
6943
6943
  ], PrevalenceOverTimeComponent.prototype, "views", 2);
6944
- __decorateClass$7([
6944
+ __decorateClass$8([
6945
6945
  n2({ type: Array })
6946
6946
  ], PrevalenceOverTimeComponent.prototype, "confidenceIntervalMethods", 2);
6947
- __decorateClass$7([
6947
+ __decorateClass$8([
6948
6948
  n2({ type: String })
6949
6949
  ], PrevalenceOverTimeComponent.prototype, "width", 2);
6950
- __decorateClass$7([
6950
+ __decorateClass$8([
6951
6951
  n2({ type: String })
6952
6952
  ], PrevalenceOverTimeComponent.prototype, "height", 2);
6953
- __decorateClass$7([
6953
+ __decorateClass$8([
6954
6954
  n2({ type: String })
6955
6955
  ], PrevalenceOverTimeComponent.prototype, "lapisDateField", 2);
6956
- __decorateClass$7([
6956
+ __decorateClass$8([
6957
6957
  n2({ type: Object })
6958
6958
  ], PrevalenceOverTimeComponent.prototype, "pageSize", 2);
6959
- __decorateClass$7([
6959
+ __decorateClass$8([
6960
6960
  n2({ type: String })
6961
6961
  ], PrevalenceOverTimeComponent.prototype, "yAxisMaxLinear", 2);
6962
- __decorateClass$7([
6962
+ __decorateClass$8([
6963
6963
  n2({ type: String })
6964
6964
  ], PrevalenceOverTimeComponent.prototype, "yAxisMaxLogarithmic", 2);
6965
- PrevalenceOverTimeComponent = __decorateClass$7([
6965
+ PrevalenceOverTimeComponent = __decorateClass$8([
6966
6966
  t$2("gs-prevalence-over-time")
6967
6967
  ], PrevalenceOverTimeComponent);
6968
6968
  Chart.register(...registerables, LogitScale);
@@ -7287,14 +7287,14 @@ const RelativeGrowthAdvantageInfo = ({ generationTime }) => {
7287
7287
  ] })
7288
7288
  ] });
7289
7289
  };
7290
- var __defProp$6 = Object.defineProperty;
7291
- var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
7292
- var __decorateClass$6 = (decorators, target, key, kind) => {
7293
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
7290
+ var __defProp$7 = Object.defineProperty;
7291
+ var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
7292
+ var __decorateClass$7 = (decorators, target, key, kind) => {
7293
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
7294
7294
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7295
7295
  if (decorator = decorators[i2])
7296
7296
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7297
- if (kind && result) __defProp$6(target, key, result);
7297
+ if (kind && result) __defProp$7(target, key, result);
7298
7298
  return result;
7299
7299
  };
7300
7300
  let RelativeGrowthAdvantageComponent = class extends PreactLitAdapter {
@@ -7329,34 +7329,34 @@ let RelativeGrowthAdvantageComponent = class extends PreactLitAdapter {
7329
7329
  );
7330
7330
  }
7331
7331
  };
7332
- __decorateClass$6([
7332
+ __decorateClass$7([
7333
7333
  n2({ type: Object })
7334
7334
  ], RelativeGrowthAdvantageComponent.prototype, "numeratorFilter", 2);
7335
- __decorateClass$6([
7335
+ __decorateClass$7([
7336
7336
  n2({ type: Object })
7337
7337
  ], RelativeGrowthAdvantageComponent.prototype, "denominatorFilter", 2);
7338
- __decorateClass$6([
7338
+ __decorateClass$7([
7339
7339
  n2({ type: Number })
7340
7340
  ], RelativeGrowthAdvantageComponent.prototype, "generationTime", 2);
7341
- __decorateClass$6([
7341
+ __decorateClass$7([
7342
7342
  n2({ type: Array })
7343
7343
  ], RelativeGrowthAdvantageComponent.prototype, "views", 2);
7344
- __decorateClass$6([
7344
+ __decorateClass$7([
7345
7345
  n2({ type: String })
7346
7346
  ], RelativeGrowthAdvantageComponent.prototype, "width", 2);
7347
- __decorateClass$6([
7347
+ __decorateClass$7([
7348
7348
  n2({ type: String })
7349
7349
  ], RelativeGrowthAdvantageComponent.prototype, "height", 2);
7350
- __decorateClass$6([
7350
+ __decorateClass$7([
7351
7351
  n2({ type: String })
7352
7352
  ], RelativeGrowthAdvantageComponent.prototype, "lapisDateField", 2);
7353
- __decorateClass$6([
7353
+ __decorateClass$7([
7354
7354
  n2({ type: String })
7355
7355
  ], RelativeGrowthAdvantageComponent.prototype, "yAxisMaxLinear", 2);
7356
- __decorateClass$6([
7356
+ __decorateClass$7([
7357
7357
  n2({ type: String })
7358
7358
  ], RelativeGrowthAdvantageComponent.prototype, "yAxisMaxLogarithmic", 2);
7359
- RelativeGrowthAdvantageComponent = __decorateClass$6([
7359
+ RelativeGrowthAdvantageComponent = __decorateClass$7([
7360
7360
  t$2("gs-relative-growth-advantage")
7361
7361
  ], RelativeGrowthAdvantageComponent);
7362
7362
  const compareAscending = (a2, b3) => {
@@ -7453,14 +7453,14 @@ const Toolbar$1 = ({ data }) => {
7453
7453
  /* @__PURE__ */ u$1(Info, { height: "100px", children: "Info for aggregate" })
7454
7454
  ] });
7455
7455
  };
7456
- var __defProp$5 = Object.defineProperty;
7457
- var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
7458
- var __decorateClass$5 = (decorators, target, key, kind) => {
7459
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
7456
+ var __defProp$6 = Object.defineProperty;
7457
+ var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
7458
+ var __decorateClass$6 = (decorators, target, key, kind) => {
7459
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
7460
7460
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7461
7461
  if (decorator = decorators[i2])
7462
7462
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7463
- if (kind && result) __defProp$5(target, key, result);
7463
+ if (kind && result) __defProp$6(target, key, result);
7464
7464
  return result;
7465
7465
  };
7466
7466
  let AggregateComponent = class extends PreactLitAdapterWithGridJsStyles {
@@ -7491,31 +7491,31 @@ let AggregateComponent = class extends PreactLitAdapterWithGridJsStyles {
7491
7491
  );
7492
7492
  }
7493
7493
  };
7494
- __decorateClass$5([
7494
+ __decorateClass$6([
7495
7495
  n2({ type: Array })
7496
7496
  ], AggregateComponent.prototype, "fields", 2);
7497
- __decorateClass$5([
7497
+ __decorateClass$6([
7498
7498
  n2({ type: Array })
7499
7499
  ], AggregateComponent.prototype, "views", 2);
7500
- __decorateClass$5([
7500
+ __decorateClass$6([
7501
7501
  n2({ type: Object })
7502
7502
  ], AggregateComponent.prototype, "filter", 2);
7503
- __decorateClass$5([
7503
+ __decorateClass$6([
7504
7504
  n2({ type: String })
7505
7505
  ], AggregateComponent.prototype, "width", 2);
7506
- __decorateClass$5([
7506
+ __decorateClass$6([
7507
7507
  n2({ type: String })
7508
7508
  ], AggregateComponent.prototype, "height", 2);
7509
- __decorateClass$5([
7509
+ __decorateClass$6([
7510
7510
  n2({ type: String })
7511
7511
  ], AggregateComponent.prototype, "initialSortField", 2);
7512
- __decorateClass$5([
7512
+ __decorateClass$6([
7513
7513
  n2({ type: String })
7514
7514
  ], AggregateComponent.prototype, "initialSortDirection", 2);
7515
- __decorateClass$5([
7515
+ __decorateClass$6([
7516
7516
  n2({ type: Object })
7517
7517
  ], AggregateComponent.prototype, "pageSize", 2);
7518
- AggregateComponent = __decorateClass$5([
7518
+ AggregateComponent = __decorateClass$6([
7519
7519
  t$2("gs-aggregate")
7520
7520
  ], AggregateComponent);
7521
7521
  const getNumberOfSequencesOverTimeTableData = (data, dateRangeKey) => {
@@ -7766,14 +7766,14 @@ const NumberSequencesOverTimeInfo = () => /* @__PURE__ */ u$1(Info, { height: "1
7766
7766
  /* @__PURE__ */ u$1(InfoHeadline1, { children: "Number of sequences over time" }),
7767
7767
  /* @__PURE__ */ u$1(InfoParagraph, { children: /* @__PURE__ */ u$1("a", { href: "https://github.com/GenSpectrum/dashboard-components/issues/315", children: "TODO" }) })
7768
7768
  ] });
7769
- var __defProp$4 = Object.defineProperty;
7770
- var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
7771
- var __decorateClass$4 = (decorators, target, key, kind) => {
7772
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
7769
+ var __defProp$5 = Object.defineProperty;
7770
+ var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
7771
+ var __decorateClass$5 = (decorators, target, key, kind) => {
7772
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
7773
7773
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7774
7774
  if (decorator = decorators[i2])
7775
7775
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7776
- if (kind && result) __defProp$4(target, key, result);
7776
+ if (kind && result) __defProp$5(target, key, result);
7777
7777
  return result;
7778
7778
  };
7779
7779
  let NumberSequencesOverTimeComponent = class extends PreactLitAdapterWithGridJsStyles {
@@ -7804,31 +7804,31 @@ let NumberSequencesOverTimeComponent = class extends PreactLitAdapterWithGridJsS
7804
7804
  );
7805
7805
  }
7806
7806
  };
7807
- __decorateClass$4([
7807
+ __decorateClass$5([
7808
7808
  n2({ type: Object })
7809
7809
  ], NumberSequencesOverTimeComponent.prototype, "lapisFilter", 2);
7810
- __decorateClass$4([
7810
+ __decorateClass$5([
7811
7811
  n2({ type: String })
7812
7812
  ], NumberSequencesOverTimeComponent.prototype, "lapisDateField", 2);
7813
- __decorateClass$4([
7813
+ __decorateClass$5([
7814
7814
  n2({ type: Array })
7815
7815
  ], NumberSequencesOverTimeComponent.prototype, "views", 2);
7816
- __decorateClass$4([
7816
+ __decorateClass$5([
7817
7817
  n2({ type: String })
7818
7818
  ], NumberSequencesOverTimeComponent.prototype, "width", 2);
7819
- __decorateClass$4([
7819
+ __decorateClass$5([
7820
7820
  n2({ type: String })
7821
7821
  ], NumberSequencesOverTimeComponent.prototype, "height", 2);
7822
- __decorateClass$4([
7822
+ __decorateClass$5([
7823
7823
  n2({ type: String })
7824
7824
  ], NumberSequencesOverTimeComponent.prototype, "granularity", 2);
7825
- __decorateClass$4([
7825
+ __decorateClass$5([
7826
7826
  n2({ type: Number })
7827
7827
  ], NumberSequencesOverTimeComponent.prototype, "smoothingWindow", 2);
7828
- __decorateClass$4([
7828
+ __decorateClass$5([
7829
7829
  n2({ type: Object })
7830
7830
  ], NumberSequencesOverTimeComponent.prototype, "pageSize", 2);
7831
- NumberSequencesOverTimeComponent = __decorateClass$4([
7831
+ NumberSequencesOverTimeComponent = __decorateClass$5([
7832
7832
  t$2("gs-number-sequences-over-time")
7833
7833
  ], NumberSequencesOverTimeComponent);
7834
7834
  const PRESET_VALUE_CUSTOM = "custom";
@@ -8091,14 +8091,14 @@ const DateRangeSelectorInner = ({
8091
8091
  ] })
8092
8092
  ] });
8093
8093
  };
8094
- var __defProp$3 = Object.defineProperty;
8095
- var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
8096
- var __decorateClass$3 = (decorators, target, key, kind) => {
8097
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
8094
+ var __defProp$4 = Object.defineProperty;
8095
+ var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
8096
+ var __decorateClass$4 = (decorators, target, key, kind) => {
8097
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
8098
8098
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
8099
8099
  if (decorator = decorators[i2])
8100
8100
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8101
- if (kind && result) __defProp$3(target, key, result);
8101
+ if (kind && result) __defProp$4(target, key, result);
8102
8102
  return result;
8103
8103
  };
8104
8104
  let DateRangeSelectorComponent = class extends PreactLitAdapter {
@@ -8127,28 +8127,28 @@ let DateRangeSelectorComponent = class extends PreactLitAdapter {
8127
8127
  );
8128
8128
  }
8129
8129
  };
8130
- __decorateClass$3([
8130
+ __decorateClass$4([
8131
8131
  n2({ type: Array })
8132
8132
  ], DateRangeSelectorComponent.prototype, "customSelectOptions", 2);
8133
- __decorateClass$3([
8133
+ __decorateClass$4([
8134
8134
  n2({ type: String })
8135
8135
  ], DateRangeSelectorComponent.prototype, "earliestDate", 2);
8136
- __decorateClass$3([
8136
+ __decorateClass$4([
8137
8137
  n2()
8138
8138
  ], DateRangeSelectorComponent.prototype, "initialValue", 2);
8139
- __decorateClass$3([
8139
+ __decorateClass$4([
8140
8140
  n2()
8141
8141
  ], DateRangeSelectorComponent.prototype, "initialDateFrom", 2);
8142
- __decorateClass$3([
8142
+ __decorateClass$4([
8143
8143
  n2()
8144
8144
  ], DateRangeSelectorComponent.prototype, "initialDateTo", 2);
8145
- __decorateClass$3([
8145
+ __decorateClass$4([
8146
8146
  n2({ type: String })
8147
8147
  ], DateRangeSelectorComponent.prototype, "width", 2);
8148
- __decorateClass$3([
8148
+ __decorateClass$4([
8149
8149
  n2({ type: String })
8150
8150
  ], DateRangeSelectorComponent.prototype, "dateColumn", 2);
8151
- DateRangeSelectorComponent = __decorateClass$3([
8151
+ DateRangeSelectorComponent = __decorateClass$4([
8152
8152
  t$2("gs-date-range-selector")
8153
8153
  ], DateRangeSelectorComponent);
8154
8154
  async function fetchAutocompletionList(fields, lapis, signal) {
@@ -8264,14 +8264,14 @@ const hasMatchingEntry = (data, eventDetail) => {
8264
8264
  const matchingEntries = Object.entries(eventDetail).filter(([, value]) => value !== void 0).reduce((filteredData, [key, value]) => filteredData.filter((it) => it[key] === value), data);
8265
8265
  return matchingEntries.length > 0;
8266
8266
  };
8267
- var __defProp$2 = Object.defineProperty;
8268
- var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
8269
- var __decorateClass$2 = (decorators, target, key, kind) => {
8270
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
8267
+ var __defProp$3 = Object.defineProperty;
8268
+ var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
8269
+ var __decorateClass$3 = (decorators, target, key, kind) => {
8270
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
8271
8271
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
8272
8272
  if (decorator = decorators[i2])
8273
8273
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8274
- if (kind && result) __defProp$2(target, key, result);
8274
+ if (kind && result) __defProp$3(target, key, result);
8275
8275
  return result;
8276
8276
  };
8277
8277
  let LocationFilterComponent = class extends PreactLitAdapter {
@@ -8294,19 +8294,19 @@ let LocationFilterComponent = class extends PreactLitAdapter {
8294
8294
  );
8295
8295
  }
8296
8296
  };
8297
- __decorateClass$2([
8297
+ __decorateClass$3([
8298
8298
  n2()
8299
8299
  ], LocationFilterComponent.prototype, "initialValue", 2);
8300
- __decorateClass$2([
8300
+ __decorateClass$3([
8301
8301
  n2({ type: Array })
8302
8302
  ], LocationFilterComponent.prototype, "fields", 2);
8303
- __decorateClass$2([
8303
+ __decorateClass$3([
8304
8304
  n2({ type: String })
8305
8305
  ], LocationFilterComponent.prototype, "width", 2);
8306
- __decorateClass$2([
8306
+ __decorateClass$3([
8307
8307
  n2()
8308
8308
  ], LocationFilterComponent.prototype, "placeholderText", 2);
8309
- LocationFilterComponent = __decorateClass$2([
8309
+ LocationFilterComponent = __decorateClass$3([
8310
8310
  t$2("gs-location-filter")
8311
8311
  ], LocationFilterComponent);
8312
8312
  async function fetchAutocompleteList(lapis, field, signal) {
@@ -8318,11 +8318,7 @@ const TextInput = ({ width, ...innerProps }) => {
8318
8318
  const size2 = { width, height: "3rem" };
8319
8319
  return /* @__PURE__ */ u$1(ErrorBoundary, { size: size2, children: /* @__PURE__ */ u$1(ResizeContainer, { size: size2, children: /* @__PURE__ */ u$1(TextInputInner, { ...innerProps }) }) });
8320
8320
  };
8321
- const TextInputInner = ({
8322
- lapisField,
8323
- placeholderText,
8324
- initialValue
8325
- }) => {
8321
+ const TextInputInner = ({ lapisField, placeholderText, initialValue }) => {
8326
8322
  const lapis = x(LapisUrlContext);
8327
8323
  const inputRef = A(null);
8328
8324
  const { data, error, isLoading } = useQuery(() => fetchAutocompleteList(lapis, lapisField), [lapisField, lapis]);
@@ -8370,14 +8366,14 @@ const TextInputInner = ({
8370
8366
  /* @__PURE__ */ u$1("datalist", { id: lapisField, children: data.map((item) => /* @__PURE__ */ u$1("option", { value: item }, item)) })
8371
8367
  ] });
8372
8368
  };
8373
- var __defProp$1 = Object.defineProperty;
8374
- var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
8375
- var __decorateClass$1 = (decorators, target, key, kind) => {
8376
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
8369
+ var __defProp$2 = Object.defineProperty;
8370
+ var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
8371
+ var __decorateClass$2 = (decorators, target, key, kind) => {
8372
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
8377
8373
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
8378
8374
  if (decorator = decorators[i2])
8379
8375
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8380
- if (kind && result) __defProp$1(target, key, result);
8376
+ if (kind && result) __defProp$2(target, key, result);
8381
8377
  return result;
8382
8378
  };
8383
8379
  let TextInputComponent = class extends PreactLitAdapter {
@@ -8400,19 +8396,19 @@ let TextInputComponent = class extends PreactLitAdapter {
8400
8396
  );
8401
8397
  }
8402
8398
  };
8403
- __decorateClass$1([
8399
+ __decorateClass$2([
8404
8400
  n2()
8405
8401
  ], TextInputComponent.prototype, "initialValue", 2);
8406
- __decorateClass$1([
8402
+ __decorateClass$2([
8407
8403
  n2()
8408
8404
  ], TextInputComponent.prototype, "lapisField", 2);
8409
- __decorateClass$1([
8405
+ __decorateClass$2([
8410
8406
  n2()
8411
8407
  ], TextInputComponent.prototype, "placeholderText", 2);
8412
- __decorateClass$1([
8408
+ __decorateClass$2([
8413
8409
  n2({ type: String })
8414
8410
  ], TextInputComponent.prototype, "width", 2);
8415
- TextInputComponent = __decorateClass$1([
8411
+ TextInputComponent = __decorateClass$2([
8416
8412
  t$2("gs-text-input")
8417
8413
  ], TextInputComponent);
8418
8414
  const ReferenceGenomesAwaiter = ({ children }) => {
@@ -8948,14 +8944,14 @@ function mapToMutationFilterStrings(selectedFilters) {
8948
8944
  nucleotideInsertions: selectedFilters.nucleotideInsertions.map((insertion) => insertion.toString())
8949
8945
  };
8950
8946
  }
8951
- var __defProp = Object.defineProperty;
8952
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8953
- var __decorateClass = (decorators, target, key, kind) => {
8954
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
8947
+ var __defProp$1 = Object.defineProperty;
8948
+ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
8949
+ var __decorateClass$1 = (decorators, target, key, kind) => {
8950
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
8955
8951
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
8956
8952
  if (decorator = decorators[i2])
8957
8953
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8958
- if (kind && result) __defProp(target, key, result);
8954
+ if (kind && result) __defProp$1(target, key, result);
8959
8955
  return result;
8960
8956
  };
8961
8957
  let MutationFilterComponent = class extends PreactLitAdapter {
@@ -8968,19 +8964,129 @@ let MutationFilterComponent = class extends PreactLitAdapter {
8968
8964
  return /* @__PURE__ */ u$1(ReferenceGenomesAwaiter, { children: /* @__PURE__ */ u$1(MutationFilter, { initialValue: this.initialValue, width: this.width }) });
8969
8965
  }
8970
8966
  };
8971
- __decorateClass([
8967
+ __decorateClass$1([
8972
8968
  n2({ type: Object })
8973
8969
  ], MutationFilterComponent.prototype, "initialValue", 2);
8974
- __decorateClass([
8970
+ __decorateClass$1([
8975
8971
  n2({ type: String })
8976
8972
  ], MutationFilterComponent.prototype, "width", 2);
8977
- MutationFilterComponent = __decorateClass([
8973
+ MutationFilterComponent = __decorateClass$1([
8978
8974
  t$2("gs-mutation-filter")
8979
8975
  ], MutationFilterComponent);
8976
+ async function fetchLineageAutocompleteList(lapis, field, signal) {
8977
+ const fetchAggregatedOperator = new FetchAggregatedOperator({}, [field]);
8978
+ const data = (await fetchAggregatedOperator.evaluate(lapis, signal)).content;
8979
+ return data.flatMap((item) => [item[field], `${item[field]}*`]).sort();
8980
+ }
8981
+ const LineageFilter = ({ width, ...innerProps }) => {
8982
+ const size2 = { width, height: "3rem" };
8983
+ return /* @__PURE__ */ u$1(ErrorBoundary, { size: size2, children: /* @__PURE__ */ u$1(ResizeContainer, { size: size2, children: /* @__PURE__ */ u$1(LineageFilterInner, { ...innerProps }) }) });
8984
+ };
8985
+ const LineageFilterInner = ({
8986
+ lapisField,
8987
+ placeholderText,
8988
+ initialValue
8989
+ }) => {
8990
+ const lapis = x(LapisUrlContext);
8991
+ const inputRef = A(null);
8992
+ const { data, error, isLoading } = useQuery(
8993
+ () => fetchLineageAutocompleteList(lapis, lapisField),
8994
+ [lapisField, lapis]
8995
+ );
8996
+ if (isLoading) {
8997
+ return /* @__PURE__ */ u$1(LoadingDisplay, {});
8998
+ }
8999
+ if (error !== null) {
9000
+ return /* @__PURE__ */ u$1(ErrorDisplay, { error });
9001
+ }
9002
+ if (data === null) {
9003
+ return /* @__PURE__ */ u$1(NoDataDisplay, {});
9004
+ }
9005
+ const onInput = () => {
9006
+ var _a, _b, _c;
9007
+ const value = ((_a = inputRef.current) == null ? void 0 : _a.value) === "" ? void 0 : (_b = inputRef.current) == null ? void 0 : _b.value;
9008
+ if (isValidValue(value)) {
9009
+ (_c = inputRef.current) == null ? void 0 : _c.dispatchEvent(
9010
+ new CustomEvent("gs-lineage-filter-changed", {
9011
+ detail: { [lapisField]: value },
9012
+ bubbles: true,
9013
+ composed: true
9014
+ })
9015
+ );
9016
+ }
9017
+ };
9018
+ const isValidValue = (value) => {
9019
+ if (value === void 0) {
9020
+ return true;
9021
+ }
9022
+ return data.includes(value);
9023
+ };
9024
+ return /* @__PURE__ */ u$1(Fragment, { children: [
9025
+ /* @__PURE__ */ u$1(
9026
+ "input",
9027
+ {
9028
+ type: "text",
9029
+ class: "input input-bordered w-full",
9030
+ placeholder: placeholderText !== void 0 ? placeholderText : lapisField,
9031
+ onInput,
9032
+ ref: inputRef,
9033
+ list: lapisField,
9034
+ value: initialValue
9035
+ }
9036
+ ),
9037
+ /* @__PURE__ */ u$1("datalist", { id: lapisField, children: data.map((item) => /* @__PURE__ */ u$1("option", { value: item }, item)) })
9038
+ ] });
9039
+ };
9040
+ var __defProp = Object.defineProperty;
9041
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9042
+ var __decorateClass = (decorators, target, key, kind) => {
9043
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9044
+ for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
9045
+ if (decorator = decorators[i2])
9046
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9047
+ if (kind && result) __defProp(target, key, result);
9048
+ return result;
9049
+ };
9050
+ let LineageFilterComponent = class extends PreactLitAdapter {
9051
+ constructor() {
9052
+ super(...arguments);
9053
+ this.initialValue = "";
9054
+ this.lapisField = "";
9055
+ this.placeholderText = "";
9056
+ this.width = "100%";
9057
+ }
9058
+ render() {
9059
+ return /* @__PURE__ */ u$1(
9060
+ LineageFilter,
9061
+ {
9062
+ lapisField: this.lapisField,
9063
+ placeholderText: this.placeholderText,
9064
+ initialValue: this.initialValue,
9065
+ width: this.width
9066
+ }
9067
+ );
9068
+ }
9069
+ };
9070
+ __decorateClass([
9071
+ n2()
9072
+ ], LineageFilterComponent.prototype, "initialValue", 2);
9073
+ __decorateClass([
9074
+ n2()
9075
+ ], LineageFilterComponent.prototype, "lapisField", 2);
9076
+ __decorateClass([
9077
+ n2()
9078
+ ], LineageFilterComponent.prototype, "placeholderText", 2);
9079
+ __decorateClass([
9080
+ n2({ type: String })
9081
+ ], LineageFilterComponent.prototype, "width", 2);
9082
+ LineageFilterComponent = __decorateClass([
9083
+ t$2("gs-lineage-filter")
9084
+ ], LineageFilterComponent);
8980
9085
  export {
8981
9086
  AggregateComponent,
8982
9087
  App,
8983
9088
  DateRangeSelectorComponent,
9089
+ LineageFilterComponent,
8984
9090
  LocationFilterComponent,
8985
9091
  MutationComparisonComponent,
8986
9092
  MutationFilterComponent,