@genspectrum/dashboard-components 0.10.1 → 0.10.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.
- package/custom-elements.json +23 -23
- package/dist/assets/{mutationOverTimeWorker-CvZg52rf.js.map → mutationOverTimeWorker-Di6yP1e6.js.map} +1 -1
- package/dist/components.d.ts +50 -48
- package/dist/components.js +151 -62
- package/dist/components.js.map +1 -1
- package/dist/{utilEntrypoint-g4DsyhU7.js → dateRangeOption-du8H7LWu.js} +33 -2
- package/dist/dateRangeOption-du8H7LWu.js.map +1 -0
- package/dist/util.d.ts +101 -59
- package/dist/util.js +3 -2
- package/package.json +1 -1
- package/src/preact/components/color-scale-selector.tsx +7 -3
- package/src/preact/components/error-boundary.tsx +39 -5
- package/src/preact/components/error-display.tsx +40 -5
- package/src/preact/dateRangeSelector/computeInitialValues.spec.ts +8 -2
- package/src/preact/dateRangeSelector/computeInitialValues.ts +6 -0
- package/src/preact/dateRangeSelector/date-range-selector.stories.tsx +16 -2
- package/src/preact/dateRangeSelector/date-range-selector.tsx +20 -15
- package/src/preact/dateRangeSelector/dateRangeOption.ts +10 -5
- package/src/preact/lineageFilter/lineage-filter.stories.tsx +18 -4
- package/src/preact/lineageFilter/lineage-filter.tsx +15 -10
- package/src/preact/locationFilter/location-filter.stories.tsx +14 -0
- package/src/preact/locationFilter/location-filter.tsx +15 -10
- package/src/preact/mutationComparison/mutation-comparison-venn.tsx +17 -18
- package/src/preact/mutationComparison/mutation-comparison.tsx +18 -12
- package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutationsByDay.ts +1326 -9341
- package/src/preact/mutationsOverTime/__mockData__/byWeek.ts +615 -4920
- package/src/preact/mutationsOverTime/__mockData__/defaultMockData.ts +2203 -17624
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +16 -8
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +1 -3
- package/src/preact/shared/stories/expectInvalidAttributesErrorMessage.ts +13 -0
- package/src/preact/webWorkers/useWebWorker.ts +8 -4
- package/src/query/queryMutationsOverTime.spec.ts +12 -27
- package/src/query/queryMutationsOverTime.ts +2 -6
- package/src/types.ts +19 -6
- package/src/utilEntrypoint.ts +8 -0
- package/src/utils/map2d.spec.ts +10 -10
- package/src/utils/map2d.ts +10 -10
- package/src/web-components/input/gs-date-range-selector.stories.ts +2 -2
- package/src/web-components/input/gs-date-range-selector.tsx +3 -3
- package/src/web-components/input/gs-lineage-filter.tsx +1 -1
- package/src/web-components/input/gs-location-filter.tsx +2 -2
- package/src/web-components/visualization/gs-aggregate.tsx +2 -2
- package/standalone-bundle/assets/{mutationOverTimeWorker-CypX_PYM.js.map → mutationOverTimeWorker-cIyshfj_.js.map} +1 -1
- package/standalone-bundle/dashboard-components.js +6668 -6580
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/dist/utilEntrypoint-g4DsyhU7.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"type": {
|
|
275
275
|
"text": "Meta<Required<DateRangeSelectorProps>>"
|
|
276
276
|
},
|
|
277
|
-
"default": "{ title: 'Input/DateRangeSelector', component: 'gs-date-range-selector', parameters: withComponentDocs({ actions: { handles: ['gs-date-range-filter-changed', 'gs-date-range-option-changed', ...previewHandles], }, fetchMock: {}, componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), argTypes: { initialValue: { control: { type: 'select', }, options: [dateRangeOptionPresets.lastMonth.label, dateRangeOptionPresets.allTimes.label, 'CustomDateRange'], }, dateColumn: { control: { type: 'text' } }, dateRangeOptions: { control: { type: 'object', }, }, earliestDate: { control: { type: 'text', }, }, width: { control: { type: 'text', }, }, }, args: { dateRangeOptions: [ dateRangeOptionPresets.lastMonth, dateRangeOptionPresets.last3Months, dateRangeOptionPresets.allTimes, customDateRange, ], earliestDate: '1970-01-01', initialValue: dateRangeOptionPresets.lastMonth.label, dateColumn: 'aDateColumn', width: '100%', initialDateFrom:
|
|
277
|
+
"default": "{ title: 'Input/DateRangeSelector', component: 'gs-date-range-selector', parameters: withComponentDocs({ actions: { handles: ['gs-date-range-filter-changed', 'gs-date-range-option-changed', ...previewHandles], }, fetchMock: {}, componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), argTypes: { initialValue: { control: { type: 'select', }, options: [dateRangeOptionPresets.lastMonth.label, dateRangeOptionPresets.allTimes.label, 'CustomDateRange'], }, dateColumn: { control: { type: 'text' } }, dateRangeOptions: { control: { type: 'object', }, }, earliestDate: { control: { type: 'text', }, }, width: { control: { type: 'text', }, }, }, args: { dateRangeOptions: [ dateRangeOptionPresets.lastMonth, dateRangeOptionPresets.last3Months, dateRangeOptionPresets.allTimes, customDateRange, ], earliestDate: '1970-01-01', initialValue: dateRangeOptionPresets.lastMonth.label, dateColumn: 'aDateColumn', width: '100%', initialDateFrom: undefined, initialDateTo: undefined, }, tags: ['autodocs'], }"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"kind": "variable",
|
|
@@ -363,9 +363,9 @@
|
|
|
363
363
|
"kind": "field",
|
|
364
364
|
"name": "initialDateFrom",
|
|
365
365
|
"type": {
|
|
366
|
-
"text": "string"
|
|
366
|
+
"text": "string | undefined"
|
|
367
367
|
},
|
|
368
|
-
"default": "
|
|
368
|
+
"default": "undefined",
|
|
369
369
|
"description": "A date string in the format `YYYY-MM-DD`.\nIf set, the date range selector will be initialized with the given date (overwriting `initialValue` to `custom`).\nIf `initialDateTo` is set, but this is unset, it will default to `earliestDate`.",
|
|
370
370
|
"attribute": "initialDateFrom"
|
|
371
371
|
},
|
|
@@ -373,9 +373,9 @@
|
|
|
373
373
|
"kind": "field",
|
|
374
374
|
"name": "initialDateTo",
|
|
375
375
|
"type": {
|
|
376
|
-
"text": "string"
|
|
376
|
+
"text": "string | undefined"
|
|
377
377
|
},
|
|
378
|
-
"default": "
|
|
378
|
+
"default": "undefined",
|
|
379
379
|
"description": "A date string in the format `YYYY-MM-DD`.\nIf set, the date range selector will be initialized with the given date (overwriting `initialValue` to `custom`).\nIf `initialDateFrom` is set, but this is unset, it will default to the current date.",
|
|
380
380
|
"attribute": "initialDateTo"
|
|
381
381
|
},
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
"type": {
|
|
396
396
|
"text": "string"
|
|
397
397
|
},
|
|
398
|
-
"default": "'
|
|
398
|
+
"default": "''",
|
|
399
399
|
"description": "The name of the column in LAPIS that contains the date information.",
|
|
400
400
|
"attribute": "dateColumn"
|
|
401
401
|
}
|
|
@@ -447,18 +447,18 @@
|
|
|
447
447
|
{
|
|
448
448
|
"name": "initialDateFrom",
|
|
449
449
|
"type": {
|
|
450
|
-
"text": "string"
|
|
450
|
+
"text": "string | undefined"
|
|
451
451
|
},
|
|
452
|
-
"default": "
|
|
452
|
+
"default": "undefined",
|
|
453
453
|
"description": "A date string in the format `YYYY-MM-DD`.\nIf set, the date range selector will be initialized with the given date (overwriting `initialValue` to `custom`).\nIf `initialDateTo` is set, but this is unset, it will default to `earliestDate`.",
|
|
454
454
|
"fieldName": "initialDateFrom"
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
457
|
"name": "initialDateTo",
|
|
458
458
|
"type": {
|
|
459
|
-
"text": "string"
|
|
459
|
+
"text": "string | undefined"
|
|
460
460
|
},
|
|
461
|
-
"default": "
|
|
461
|
+
"default": "undefined",
|
|
462
462
|
"description": "A date string in the format `YYYY-MM-DD`.\nIf set, the date range selector will be initialized with the given date (overwriting `initialValue` to `custom`).\nIf `initialDateFrom` is set, but this is unset, it will default to the current date.",
|
|
463
463
|
"fieldName": "initialDateTo"
|
|
464
464
|
},
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
"type": {
|
|
477
477
|
"text": "string"
|
|
478
478
|
},
|
|
479
|
-
"default": "'
|
|
479
|
+
"default": "''",
|
|
480
480
|
"description": "The name of the column in LAPIS that contains the date information.",
|
|
481
481
|
"fieldName": "dateColumn"
|
|
482
482
|
}
|
|
@@ -597,9 +597,9 @@
|
|
|
597
597
|
"kind": "field",
|
|
598
598
|
"name": "placeholderText",
|
|
599
599
|
"type": {
|
|
600
|
-
"text": "string"
|
|
600
|
+
"text": "string | undefined"
|
|
601
601
|
},
|
|
602
|
-
"default": "
|
|
602
|
+
"default": "undefined",
|
|
603
603
|
"description": "The placeholder text to display in the input field.",
|
|
604
604
|
"attribute": "placeholderText"
|
|
605
605
|
},
|
|
@@ -645,9 +645,9 @@
|
|
|
645
645
|
{
|
|
646
646
|
"name": "placeholderText",
|
|
647
647
|
"type": {
|
|
648
|
-
"text": "string"
|
|
648
|
+
"text": "string | undefined"
|
|
649
649
|
},
|
|
650
|
-
"default": "
|
|
650
|
+
"default": "undefined",
|
|
651
651
|
"description": "The placeholder text to display in the input field.",
|
|
652
652
|
"fieldName": "placeholderText"
|
|
653
653
|
},
|
|
@@ -789,9 +789,9 @@
|
|
|
789
789
|
"kind": "field",
|
|
790
790
|
"name": "initialValue",
|
|
791
791
|
"type": {
|
|
792
|
-
"text": "string"
|
|
792
|
+
"text": "string | undefined"
|
|
793
793
|
},
|
|
794
|
-
"default": "
|
|
794
|
+
"default": "undefined",
|
|
795
795
|
"description": "The initial value to use for this location filter.\nMust be of the form `valueForField1 / valueForField2 / ... / valueForFieldN`.",
|
|
796
796
|
"attribute": "initialValue"
|
|
797
797
|
},
|
|
@@ -819,9 +819,9 @@
|
|
|
819
819
|
"kind": "field",
|
|
820
820
|
"name": "placeholderText",
|
|
821
821
|
"type": {
|
|
822
|
-
"text": "string"
|
|
822
|
+
"text": "string | undefined"
|
|
823
823
|
},
|
|
824
|
-
"default": "
|
|
824
|
+
"default": "undefined",
|
|
825
825
|
"description": "The placeholder text to display in the input field, if it is empty.",
|
|
826
826
|
"attribute": "placeholderText"
|
|
827
827
|
}
|
|
@@ -839,9 +839,9 @@
|
|
|
839
839
|
{
|
|
840
840
|
"name": "initialValue",
|
|
841
841
|
"type": {
|
|
842
|
-
"text": "string"
|
|
842
|
+
"text": "string | undefined"
|
|
843
843
|
},
|
|
844
|
-
"default": "
|
|
844
|
+
"default": "undefined",
|
|
845
845
|
"description": "The initial value to use for this location filter.\nMust be of the form `valueForField1 / valueForField2 / ... / valueForFieldN`.",
|
|
846
846
|
"fieldName": "initialValue"
|
|
847
847
|
},
|
|
@@ -866,9 +866,9 @@
|
|
|
866
866
|
{
|
|
867
867
|
"name": "placeholderText",
|
|
868
868
|
"type": {
|
|
869
|
-
"text": "string"
|
|
869
|
+
"text": "string | undefined"
|
|
870
870
|
},
|
|
871
|
-
"default": "
|
|
871
|
+
"default": "undefined",
|
|
872
872
|
"description": "The placeholder text to display in the input field, if it is empty.",
|
|
873
873
|
"fieldName": "placeholderText"
|
|
874
874
|
}
|