@luzmo/embed 6.0.1 → 6.1.0-beta.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/CHANGELOG.md +2 -135
- package/MIGRATIONS.md +1 -1
- package/README.md +121 -15
- package/index.cjs +54463 -28
- package/index.d.ts +4 -1
- package/index.js +54462 -30
- package/lib/dashboard-component/dashboard-base.d.ts +7 -7
- package/lib/viz-item/viz-item-component.d.ts +4 -0
- package/lib/viz-item/viz-item.base.d.ts +73 -0
- package/libs/dashboard-contents-types/index.d.ts +2 -0
- package/libs/dashboard-contents-types/json-schemas.d.ts +1 -0
- package/libs/dashboard-contents-types/src/index.d.ts +27 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +331 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +258 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +310 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +30 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +98 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +41 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +99 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +40 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +138 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +41 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +259 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +344 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +94 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +147 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +18 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +131 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +84 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +185 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +110 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +63 -0
- package/libs/dashboard-contents-types/src/lib/image/image.d.ts +16 -0
- package/libs/dashboard-contents-types/src/lib/image/index.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +354 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +206 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +37 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +124 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +123 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +50 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +213 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +61 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +35 -0
- package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +102 -0
- package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +12 -0
- package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +32 -0
- package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +24 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +61 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +13 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +81 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +24 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +66 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +1 -0
- package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +4 -0
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +31 -0
- package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +37 -0
- package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +5 -0
- package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +10 -0
- package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +25 -0
- package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +316 -0
- package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +64 -0
- package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +267 -0
- package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +18 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +205 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +22 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/text/index.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +53 -0
- package/libs/dashboard-contents-types/src/lib/text/text.d.ts +16 -0
- package/libs/dashboard-contents-types/src/options.d.ts +26 -0
- package/libs/dashboard-contents-types/src/slots.d.ts +24 -0
- package/libs/embed-libs/embed/src/index.d.ts +5 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +98 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +8 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
- package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +1 -0
- package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +6 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +4 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
- package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
- package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
- package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +17 -0
- package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +15 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
- package/luzmo-embed.min.js +64279 -2656
- package/package.json +5 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { FilterGroup, FilterOrigin } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { DashboardDimensions, ScreenMode } from './common.model';
|
|
3
|
+
interface EventDataBase {
|
|
4
|
+
dashboardId?: string;
|
|
5
|
+
dashboardSlug?: string;
|
|
6
|
+
integrationId?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
screenMode?: ScreenMode;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
interface LoadEventData extends EventDataBase {
|
|
13
|
+
type: 'load';
|
|
14
|
+
dimensions: DashboardDimensions;
|
|
15
|
+
}
|
|
16
|
+
interface ChangedFiltersEventData extends EventDataBase {
|
|
17
|
+
type: 'changedFilters';
|
|
18
|
+
changed: FilterGroup[];
|
|
19
|
+
filters: FilterGroup[];
|
|
20
|
+
itemId: string;
|
|
21
|
+
origin: FilterOrigin;
|
|
22
|
+
}
|
|
23
|
+
interface ItemsRenderedEventData extends EventDataBase {
|
|
24
|
+
type: 'chartsRendered';
|
|
25
|
+
}
|
|
26
|
+
interface CustomEventData extends EventDataBase {
|
|
27
|
+
itemId: string;
|
|
28
|
+
data: {
|
|
29
|
+
event: string;
|
|
30
|
+
language: string;
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface LoadEvent {
|
|
35
|
+
data: LoadEventData;
|
|
36
|
+
}
|
|
37
|
+
export interface ChangedFiltersEvent {
|
|
38
|
+
data: ChangedFiltersEventData;
|
|
39
|
+
}
|
|
40
|
+
export interface CustomEvent {
|
|
41
|
+
data: CustomEventData;
|
|
42
|
+
}
|
|
43
|
+
export interface ItemsRenderedEvent {
|
|
44
|
+
data: ItemsRenderedEventData;
|
|
45
|
+
}
|
|
46
|
+
interface ExportedEventData extends EventDataBase {
|
|
47
|
+
type: 'exported';
|
|
48
|
+
}
|
|
49
|
+
export interface ExportedEvent {
|
|
50
|
+
data: ExportedEventData;
|
|
51
|
+
}
|
|
52
|
+
type DashboardAction = 'addColumnToSlot' | 'addFormulaToSlot' | 'removeColumnFromSlot' | 'removeItem' | 'addItem' | 'cloneItem' | 'addItemFilter' | 'updateItemFilter' | 'removeItemFilter' | 'addDashboardFilter' | 'removeDashboardFilter' | 'updateDashboardFilter' | 'addParameter' | 'updateParameter' | 'removeParameter' | 'openDatasetDetail' | 'linkDatasets' | 'authorizationExpired';
|
|
53
|
+
interface DashboardActionEventData extends EventDataBase {
|
|
54
|
+
type: 'dashboardAction';
|
|
55
|
+
action: DashboardAction;
|
|
56
|
+
dropType?: 'add' | 'replace';
|
|
57
|
+
item?: {
|
|
58
|
+
id: string;
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
column?: {
|
|
62
|
+
id: string;
|
|
63
|
+
name: {
|
|
64
|
+
[k: string]: string | void;
|
|
65
|
+
};
|
|
66
|
+
type: string;
|
|
67
|
+
datasetId: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface DashboardActionEvent {
|
|
71
|
+
data: DashboardActionEventData;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
export type AvailableSlots = 'category' | 'x-axis' | 'y-axis' | 'dimension' | 'slidermetric' | 'time' | 'levels' | 'geo' | 'coordinates';
|
|
3
|
+
export type StringOrNumber = string | number;
|
|
4
|
+
export type ParametersInput = StringOrNumber[] | StringOrNumber;
|
|
5
|
+
export type SelectedDataIn = {
|
|
6
|
+
expression?: FilterExpression;
|
|
7
|
+
parameters?: [
|
|
8
|
+
{
|
|
9
|
+
slot?: AvailableSlots;
|
|
10
|
+
level?: number;
|
|
11
|
+
decimals?: number;
|
|
12
|
+
},
|
|
13
|
+
ParametersInput
|
|
14
|
+
];
|
|
15
|
+
properties?: Record<string, StringOrNumber | unknown>;
|
|
16
|
+
};
|
|
17
|
+
export type SelectedDataInput = Partial<Record<FilterOperators, (SelectedDataIn | SelectedDataInput)[]>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IframeStyles {
|
|
2
|
+
width?: string;
|
|
3
|
+
opacity?: number;
|
|
4
|
+
height?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ContainerLoaderStyles {
|
|
7
|
+
display?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PlStyles {
|
|
11
|
+
'border-top'?: string;
|
|
12
|
+
'border-right'?: string;
|
|
13
|
+
'border-left'?: string;
|
|
14
|
+
'border-bottom'?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
height?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface LcStyles {
|
|
19
|
+
padding?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface LoaderStyles {
|
|
22
|
+
background?: string;
|
|
23
|
+
width?: string;
|
|
24
|
+
height?: string;
|
|
25
|
+
'min-height'?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ContainerStyles {
|
|
28
|
+
background?: string;
|
|
29
|
+
width?: string;
|
|
30
|
+
height?: string;
|
|
31
|
+
display?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { VizItemOptions, FilterGroup, FilterOrigin } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { ExportType } from '../methods/export-dashboard';
|
|
3
|
+
type VizItemPostMessageMetadata = {
|
|
4
|
+
dashboardId?: string;
|
|
5
|
+
itemId?: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
type: VizItemPostMessageType;
|
|
8
|
+
contextId?: string;
|
|
9
|
+
options?: VizItemOptions;
|
|
10
|
+
};
|
|
11
|
+
export type VizItemPostMessageLoadEvent = VizItemPostMessageMetadata & {
|
|
12
|
+
type: 'load';
|
|
13
|
+
};
|
|
14
|
+
export type VizItemPostMessageRenderedEvent = VizItemPostMessageMetadata & {
|
|
15
|
+
type: 'rendered';
|
|
16
|
+
};
|
|
17
|
+
export type VizItemPostMessageExportedEvent = VizItemPostMessageMetadata & {
|
|
18
|
+
type: 'exported';
|
|
19
|
+
exportType: ExportType;
|
|
20
|
+
};
|
|
21
|
+
export type VizItemPostMessageChangedFiltersEvent = VizItemPostMessageMetadata & {
|
|
22
|
+
type: 'changedFilters';
|
|
23
|
+
changed: FilterGroup[];
|
|
24
|
+
filters: FilterGroup[];
|
|
25
|
+
item: string;
|
|
26
|
+
origin: FilterOrigin;
|
|
27
|
+
};
|
|
28
|
+
export type VizItemPostMessageCustomEventEvent = VizItemPostMessageMetadata & {
|
|
29
|
+
type: 'customEvent';
|
|
30
|
+
data?: {
|
|
31
|
+
event: string;
|
|
32
|
+
language: string;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type VizItemPostMessageEventMap = {
|
|
37
|
+
'load': VizItemPostMessageLoadEvent;
|
|
38
|
+
'rendered': VizItemPostMessageRenderedEvent;
|
|
39
|
+
'exported': VizItemPostMessageExportedEvent;
|
|
40
|
+
'changedFilters': VizItemPostMessageChangedFiltersEvent;
|
|
41
|
+
'customEvent': VizItemPostMessageCustomEventEvent;
|
|
42
|
+
};
|
|
43
|
+
type VizItemPostMessageType = keyof VizItemPostMessageEventMap;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput } from '../filters.model';
|
|
3
|
+
type AreaChartFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? in ?' | '? >= ?' | '? <= ?' | '? < ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
8
|
+
},
|
|
9
|
+
ParametersInput
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type AreaChartSelectedDataInput = Partial<Record<FilterOperators, (AreaChartFilterIn | AreaChartSelectedDataInput)[]>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput } from '../filters.model';
|
|
3
|
+
type BarchartFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
8
|
+
},
|
|
9
|
+
ParametersInput
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
type BarchartFilterIn2 = SelectedDataIn & {
|
|
13
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
14
|
+
parameters: [
|
|
15
|
+
{
|
|
16
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
17
|
+
},
|
|
18
|
+
string[]
|
|
19
|
+
];
|
|
20
|
+
};
|
|
21
|
+
type BarchartFilterInput1 = Partial<Record<FilterOperators, (BarchartFilterIn | BarchartFilterInput1)[]>>;
|
|
22
|
+
type BarchartFilterInput2 = Partial<Record<FilterOperators, (BarchartFilterIn2 | BarchartFilterInput2)[]>>;
|
|
23
|
+
export type BarChartSelectedDataInput = BarchartFilterInput1 | BarchartFilterInput2;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, StringOrNumber } from '../filters.model';
|
|
3
|
+
type ChoroplethFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'geo'>;
|
|
8
|
+
},
|
|
9
|
+
StringOrNumber[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type ChoroplethSelectedDataInput = Partial<Record<FilterOperators, (ChoroplethFilterIn | ChoroplethSelectedDataInput)[]>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput } from '../filters.model';
|
|
3
|
+
type ColumnchartFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
8
|
+
},
|
|
9
|
+
ParametersInput
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
type ColumnchartFilterIn2 = SelectedDataIn & {
|
|
13
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
14
|
+
parameters: [
|
|
15
|
+
{
|
|
16
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
17
|
+
},
|
|
18
|
+
string[]
|
|
19
|
+
];
|
|
20
|
+
};
|
|
21
|
+
type ColumnchartFilterInput1 = Partial<Record<FilterOperators, (ColumnchartFilterIn | ColumnchartFilterInput1)[]>>;
|
|
22
|
+
type ColumnchartFilterInput2 = Partial<Record<FilterOperators, (ColumnchartFilterIn2 | ColumnchartFilterInput2)[]>>;
|
|
23
|
+
export type ColumnChartSelectedDataInput = ColumnchartFilterInput1 | ColumnchartFilterInput2;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn } from '../filters.model';
|
|
3
|
+
type DatetimeFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'time'>;
|
|
8
|
+
},
|
|
9
|
+
string[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type DatetimeSelectedDataInput = Partial<Record<FilterOperators, (DatetimeFilterIn | DatetimeSelectedDataInput)[]>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput } from '../filters.model';
|
|
3
|
+
type DropdownFilterFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? between ?' | '? in ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'dimension'>;
|
|
8
|
+
},
|
|
9
|
+
ParametersInput
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type DropdownFilterSelectedDataInput = Partial<Record<FilterOperators, (DropdownFilterFilterIn | DropdownFilterSelectedDataInput)[]>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SelectedDataInput } from '../filters.model';
|
|
2
|
+
import { AreaChartSelectedDataInput } from './areachart.model';
|
|
3
|
+
import { BarChartSelectedDataInput } from './barchart.model';
|
|
4
|
+
import { ChoroplethSelectedDataInput } from './choroplethmap.model';
|
|
5
|
+
import { CirclepackSelectedDataInput } from './circlepack.model';
|
|
6
|
+
import { ColumnChartSelectedDataInput } from './columnchart.model';
|
|
7
|
+
import { DatetimeSelectedDataInput } from './datetime.model';
|
|
8
|
+
import { DonutChartSelectedDataInput } from './donutchart.model';
|
|
9
|
+
import { DropdownFilterSelectedDataInput } from './dropdownfilter.model';
|
|
10
|
+
import { LinechartSelectedDataInput } from './linechart.model';
|
|
11
|
+
import { ParallelCoordinatesPlotSelectedDataInput } from './parallelcoordinatesplot.model';
|
|
12
|
+
import { PieChartSelectedDataInput } from './piechart.model';
|
|
13
|
+
import { ScatterplotSelectedDataInput } from './scatterplot.model';
|
|
14
|
+
import { SlicerSelectedDataInput } from './slicer.model';
|
|
15
|
+
import { SliderSelectedDataInput } from './slider.model';
|
|
16
|
+
import { StripPlotSelectedDataInput } from './stripplot.model';
|
|
17
|
+
import { SunburstSelectedDataInput } from './sunburst.model';
|
|
18
|
+
import { TreemapSelectedDataInput } from './treemap.model';
|
|
19
|
+
export * from './barchart.model';
|
|
20
|
+
export * from './columnchart.model';
|
|
21
|
+
export * from './datetime.model';
|
|
22
|
+
export * from './slider.model';
|
|
23
|
+
export * from './dropdownfilter.model';
|
|
24
|
+
export * from './areachart.model';
|
|
25
|
+
export * from './slicer.model';
|
|
26
|
+
export * from './scatterplot.model';
|
|
27
|
+
export * from './piechart.model';
|
|
28
|
+
export * from './linechart.model';
|
|
29
|
+
export * from './choroplethmap.model';
|
|
30
|
+
export * from './treemap.model';
|
|
31
|
+
export * from './donutchart.model';
|
|
32
|
+
export * from './sunburst.model';
|
|
33
|
+
export * from './circlepack.model';
|
|
34
|
+
export * from './parallelcoordinatesplot.model';
|
|
35
|
+
export * from './stripplot.model';
|
|
36
|
+
export type CombinedSelectedDataInput = SelectedDataInput | BarChartSelectedDataInput | ColumnChartSelectedDataInput | SliderSelectedDataInput | DropdownFilterSelectedDataInput | DatetimeSelectedDataInput | AreaChartSelectedDataInput | SlicerSelectedDataInput | LinechartSelectedDataInput | ScatterplotSelectedDataInput | PieChartSelectedDataInput | ChoroplethSelectedDataInput | TreemapSelectedDataInput | DonutChartSelectedDataInput | SunburstSelectedDataInput | CirclepackSelectedDataInput | ParallelCoordinatesPlotSelectedDataInput | StripPlotSelectedDataInput;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, StringOrNumber } from '../filters.model';
|
|
3
|
+
type LinechartFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?' | '? in ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
8
|
+
},
|
|
9
|
+
StringOrNumber[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
type LinechartFilterIn2 = SelectedDataIn & {
|
|
13
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?'>;
|
|
14
|
+
parameters: [
|
|
15
|
+
{
|
|
16
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
17
|
+
},
|
|
18
|
+
[
|
|
19
|
+
StringOrNumber
|
|
20
|
+
]
|
|
21
|
+
];
|
|
22
|
+
};
|
|
23
|
+
type LinechartFilterIn3 = SelectedDataIn & {
|
|
24
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
25
|
+
parameters: [
|
|
26
|
+
{
|
|
27
|
+
slot: Extract<AvailableSlots, 'x-axis'>;
|
|
28
|
+
},
|
|
29
|
+
string[]
|
|
30
|
+
];
|
|
31
|
+
};
|
|
32
|
+
type LinechartFilterInput1 = Partial<Record<FilterOperators, (LinechartFilterIn | LinechartFilterInput1)[]>>;
|
|
33
|
+
type LinechartFilterInput2 = Partial<Record<FilterOperators, (LinechartFilterIn2 | LinechartFilterInput2)[]>>;
|
|
34
|
+
type LinechartFilterInput3 = Partial<Record<FilterOperators, (LinechartFilterIn3 | LinechartFilterInput3)[]>>;
|
|
35
|
+
export type LinechartSelectedDataInput = LinechartFilterInput1 | LinechartFilterInput2 | LinechartFilterInput3;
|
|
36
|
+
export {};
|
package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, StringOrNumber } from '../filters.model';
|
|
3
|
+
type ParallelCoordinatesPlotFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?' | '? in ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'coordinates'>;
|
|
8
|
+
level: number;
|
|
9
|
+
},
|
|
10
|
+
StringOrNumber[]
|
|
11
|
+
];
|
|
12
|
+
};
|
|
13
|
+
export type ParallelCoordinatesPlotSelectedDataInput = Partial<Record<FilterOperators, (ParallelCoordinatesPlotFilterIn | ParallelCoordinatesPlotSelectedDataInput)[]>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput, StringOrNumber } from '../filters.model';
|
|
3
|
+
type PiechartFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'category'>;
|
|
8
|
+
},
|
|
9
|
+
ParametersInput
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
type PiechartFilterIn2 = SelectedDataIn & {
|
|
13
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
14
|
+
parameters: [
|
|
15
|
+
{
|
|
16
|
+
slot: Extract<AvailableSlots, 'category'>;
|
|
17
|
+
},
|
|
18
|
+
StringOrNumber[]
|
|
19
|
+
];
|
|
20
|
+
};
|
|
21
|
+
type PiechartFilterInput1 = Partial<Record<FilterOperators, (PiechartFilterIn | PiechartFilterInput1)[]>>;
|
|
22
|
+
type PiechartFilterInput2 = Partial<Record<FilterOperators, (PiechartFilterIn2 | PiechartFilterInput2)[]>>;
|
|
23
|
+
export type PieChartSelectedDataInput = PiechartFilterInput1 | PiechartFilterInput2;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, StringOrNumber } from '../filters.model';
|
|
3
|
+
type ScatterplotFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?' | '? in ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'x-axis' | 'y-axis'>;
|
|
8
|
+
},
|
|
9
|
+
StringOrNumber[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type ScatterplotSelectedDataInput = Partial<Record<FilterOperators, (ScatterplotFilterIn | ScatterplotSelectedDataInput)[]>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput, StringOrNumber } from '../filters.model';
|
|
3
|
+
type SlicerFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'dimension'>;
|
|
8
|
+
},
|
|
9
|
+
StringOrNumber[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
type SlicerFilterIn2 = SelectedDataIn & {
|
|
13
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
14
|
+
parameters: [
|
|
15
|
+
{
|
|
16
|
+
slot: Extract<AvailableSlots, 'dimension'>;
|
|
17
|
+
},
|
|
18
|
+
ParametersInput
|
|
19
|
+
];
|
|
20
|
+
};
|
|
21
|
+
type SlicerFilterInput1 = Partial<Record<FilterOperators, (SlicerFilterIn | SlicerFilterInput1)[]>>;
|
|
22
|
+
type SlicerFilterInput2 = Partial<Record<FilterOperators, (SlicerFilterIn2 | SlicerFilterInput2)[]>>;
|
|
23
|
+
export type SlicerSelectedDataInput = SlicerFilterInput1 | SlicerFilterInput2;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, StringOrNumber } from '../filters.model';
|
|
3
|
+
type SliderFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? >= ?' | '? < ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'slidermetric'>;
|
|
8
|
+
},
|
|
9
|
+
StringOrNumber[]
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
export type SliderSelectedDataInput = Partial<Record<FilterOperators, (SliderFilterIn | SliderSelectedDataInput)[]>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn } from '../filters.model';
|
|
3
|
+
type StripPlotFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? = ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'y-axis'>;
|
|
8
|
+
},
|
|
9
|
+
[
|
|
10
|
+
string
|
|
11
|
+
]
|
|
12
|
+
];
|
|
13
|
+
};
|
|
14
|
+
export type StripPlotSelectedDataInput = Partial<Record<FilterOperators, (StripPlotFilterIn | StripPlotSelectedDataInput)[]>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput } from '../filters.model';
|
|
3
|
+
type SunburstFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? in ?' | '? between ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'levels'>;
|
|
8
|
+
level: number;
|
|
9
|
+
},
|
|
10
|
+
ParametersInput
|
|
11
|
+
];
|
|
12
|
+
};
|
|
13
|
+
export type SunburstSelectedDataInput = Partial<Record<FilterOperators, (SunburstFilterIn | SunburstSelectedDataInput)[]>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterExpression, FilterOperators } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { AvailableSlots, SelectedDataIn, ParametersInput } from '../filters.model';
|
|
3
|
+
type TreemapFilterIn = SelectedDataIn & {
|
|
4
|
+
expression: Extract<FilterExpression, '? between ?'>;
|
|
5
|
+
parameters: [
|
|
6
|
+
{
|
|
7
|
+
slot: Extract<AvailableSlots, 'category'>;
|
|
8
|
+
},
|
|
9
|
+
ParametersInput
|
|
10
|
+
];
|
|
11
|
+
};
|
|
12
|
+
type TreemapFilterIn2 = SelectedDataIn & {
|
|
13
|
+
expression: Extract<FilterExpression, '? in ?'>;
|
|
14
|
+
parameters: [
|
|
15
|
+
{
|
|
16
|
+
slot: Extract<AvailableSlots, 'category'>;
|
|
17
|
+
},
|
|
18
|
+
string[]
|
|
19
|
+
];
|
|
20
|
+
};
|
|
21
|
+
type TreemapFilterInput1 = Partial<Record<FilterOperators, (TreemapFilterIn | TreemapFilterInput1)[]>>;
|
|
22
|
+
type TreemapFilterInput2 = Partial<Record<FilterOperators, (TreemapFilterIn2 | TreemapFilterInput2)[]>>;
|
|
23
|
+
export type TreemapSelectedDataInput = TreemapFilterInput1 | TreemapFilterInput2;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const _setCalculatedDimensions: (dashboardComponent: any) => void;
|