@luzmo/embed 6.1.2-beta.2 → 6.1.2-beta.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.
- package/CHANGELOG.md +31 -0
- package/index.cjs +6420 -5112
- package/index.d.ts +3 -3
- package/index.js +6418 -5110
- package/lib/{ai-component/luzmo-ai-answer.d.ts → luzmo-iq-components/luzmo-iq-answer.d.ts} +3 -3
- package/{src/lib/ai-component/luzmo-ai-chat.d.ts → lib/luzmo-iq-components/luzmo-iq-chat.d.ts} +2 -2
- package/lib/viz-item/viz-item.base.d.ts +3 -4
- package/luzmo-embed.min.js +32177 -37610
- package/package.json +3 -5
- package/src/index.d.ts +3 -3
- package/src/lib/{ai-component/luzmo-ai-answer.d.ts → luzmo-iq-components/luzmo-iq-answer.d.ts} +3 -3
- package/{lib/ai-component/luzmo-ai-chat.d.ts → src/lib/luzmo-iq-components/luzmo-iq-chat.d.ts} +2 -2
- package/src/lib/viz-item/viz-item.base.d.ts +3 -4
- package/libs/dashboard-contents-types/index.d.ts +0 -2
- package/libs/dashboard-contents-types/json-schemas.d.ts +0 -42178
- package/libs/dashboard-contents-types/src/index.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +0 -331
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +0 -258
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +0 -310
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +0 -30
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +0 -98
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +0 -41
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +0 -99
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +0 -40
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +0 -138
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +0 -41
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +0 -122
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +0 -259
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +0 -344
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +0 -94
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +0 -147
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +0 -18
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +0 -131
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +0 -84
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +0 -200
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +0 -110
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +0 -63
- package/libs/dashboard-contents-types/src/lib/image/image.d.ts +0 -16
- package/libs/dashboard-contents-types/src/lib/image/index.d.ts +0 -2
- package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +0 -354
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +0 -206
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +0 -37
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +0 -124
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +0 -123
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +0 -50
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +0 -213
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +0 -61
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/search-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-options.d.ts +0 -56
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +0 -35
- package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +0 -103
- package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +0 -14
- package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +0 -32
- package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +0 -24
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +0 -11
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +0 -61
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +0 -13
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +0 -81
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +0 -24
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +0 -11
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +0 -66
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +0 -1
- package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +0 -4
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +0 -122
- package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +0 -31
- package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +0 -37
- package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +0 -5
- package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +0 -10
- package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +0 -25
- package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +0 -316
- package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +0 -64
- package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +0 -271
- package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +0 -18
- package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +0 -205
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +0 -22
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/text/index.d.ts +0 -2
- package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +0 -53
- package/libs/dashboard-contents-types/src/lib/text/text.d.ts +0 -16
- package/libs/dashboard-contents-types/src/options.d.ts +0 -25
- package/libs/dashboard-contents-types/src/slots.d.ts +0 -24
- package/libs/embed-libs/embed/src/index.d.ts +0 -7
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-answer.d.ts +0 -23
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-chat.d.ts +0 -24
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +0 -6
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +0 -4
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +0 -73
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +0 -34
- package/libs/embed-libs/shared-embed/src/index.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +0 -5
- package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +0 -7
- package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +0 -5
- package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +0 -16
- package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +0 -7
- package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +0 -8
- package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +0 -18
- package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +0 -27
- package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +0 -4
- package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +0 -4
- package/libs/embed-libs/shared-embed/src/lib/models/ai-components.model.d.ts +0 -135
- package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +0 -103
- package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +0 -45
- package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +0 -73
- package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +0 -17
- package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +0 -32
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +0 -45
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +0 -22
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +0 -36
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +0 -36
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +0 -14
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +0 -15
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +0 -14
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +0 -2
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import type { LimitViewOptions, ScreenMode, SortDirection } from '../shared/common';
|
|
2
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
3
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
4
|
-
import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
|
|
5
|
-
import { ExportType, InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
6
|
-
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
7
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
8
|
-
import { ManualValuesRange } from '../shared/ranges';
|
|
9
|
-
import { DashboardContentVizItemSort } from '../shared/sort';
|
|
10
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
11
|
-
export interface RegularTableViewOptions extends Omit<DropObjectViewOptions, 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, LimitViewOptions, RegularTableSortViewOptions, RegularTableInteractivityViewOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Border around the table
|
|
14
|
-
* @default { "type": "none", "width": 1, "color": "#ededed" }
|
|
15
|
-
*/
|
|
16
|
-
tableBorders?: RegularTableBorders;
|
|
17
|
-
/**
|
|
18
|
-
* Table headers options with background and color of the header
|
|
19
|
-
* @default {}
|
|
20
|
-
*/
|
|
21
|
-
headers?: {
|
|
22
|
-
background?: string;
|
|
23
|
-
color?: string;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Toggle alternate row coloring
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
|
-
alternateRowColor?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Row height
|
|
32
|
-
* @default 28
|
|
33
|
-
*/
|
|
34
|
-
rowHeight?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Columns configuration
|
|
37
|
-
*/
|
|
38
|
-
columns?: RegularTableColumn[];
|
|
39
|
-
hiddenColumns?: {
|
|
40
|
-
slotContentId?: string;
|
|
41
|
-
}[];
|
|
42
|
-
/**
|
|
43
|
-
* Toggle infinite scrolling
|
|
44
|
-
* @default true
|
|
45
|
-
*/
|
|
46
|
-
infiniteScrolling?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Sorting mode
|
|
49
|
-
* @default "multiColumn"
|
|
50
|
-
*/
|
|
51
|
-
sortingMode?: RegularTableSortingMode;
|
|
52
|
-
}
|
|
53
|
-
interface RegularTableInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
54
|
-
/**
|
|
55
|
-
* Interactivity options
|
|
56
|
-
*/
|
|
57
|
-
interactivity?: {
|
|
58
|
-
/**
|
|
59
|
-
* Go to URL interactivity option
|
|
60
|
-
* @default { "target": "_blank", "url": null }
|
|
61
|
-
*/
|
|
62
|
-
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
63
|
-
/**
|
|
64
|
-
* An array of measure dimension picker configurations
|
|
65
|
-
* @default [[]]
|
|
66
|
-
*/
|
|
67
|
-
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
68
|
-
/**
|
|
69
|
-
* Custom events interactivity option
|
|
70
|
-
* @default null
|
|
71
|
-
*/
|
|
72
|
-
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
73
|
-
/**
|
|
74
|
-
* Available export types interactivity option
|
|
75
|
-
* @default ["xlsx", "csv", "png"]
|
|
76
|
-
*/
|
|
77
|
-
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
78
|
-
/**
|
|
79
|
-
* Export types interactivity option
|
|
80
|
-
* @default ["xlsx", "csv", "png"]
|
|
81
|
-
*/
|
|
82
|
-
exportTypes?: ExportType[];
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export type RegularTableCellMode = 'normal' | 'conditionalText' | 'conditionalBackground' | 'conditionalBadge' | 'bar' | 'categoryBadge' | 'categoryBackground';
|
|
86
|
-
export type RegularTableTextAlign = 'left' | 'center' | 'right';
|
|
87
|
-
export interface RegularTableColumn {
|
|
88
|
-
slotContentId?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Width in a key-value object format. Where key is a screen mode "desktop", "tablet", "mobile", "largeScreen" or "fixed", value - number.
|
|
91
|
-
*
|
|
92
|
-
* @TJS-type object
|
|
93
|
-
*/
|
|
94
|
-
width?: Partial<Record<ScreenMode, number>>;
|
|
95
|
-
sortOrder?: SortDirection;
|
|
96
|
-
sortIndex?: number;
|
|
97
|
-
barColor?: string;
|
|
98
|
-
manualTarget?: number;
|
|
99
|
-
conditional?: ManualValuesRange[];
|
|
100
|
-
wrapText?: boolean;
|
|
101
|
-
value?: 'none' | 'normal' | 'percentage';
|
|
102
|
-
mode?: RegularTableCellMode;
|
|
103
|
-
target?: 'manual' | 'max' | 'total';
|
|
104
|
-
textAlign?: RegularTableTextAlign;
|
|
105
|
-
colorEmpty?: boolean;
|
|
106
|
-
emptyValueColor?: string;
|
|
107
|
-
hideDataValues?: boolean;
|
|
108
|
-
}
|
|
109
|
-
export declare enum RegularTableSortingMode {
|
|
110
|
-
SingleColumn = "singleColumn",
|
|
111
|
-
MultiColumn = "multiColumn"
|
|
112
|
-
}
|
|
113
|
-
export interface RegularTableBorders {
|
|
114
|
-
type: 'all' | 'rows' | 'columns' | 'none';
|
|
115
|
-
width: number;
|
|
116
|
-
color: string;
|
|
117
|
-
}
|
|
118
|
-
export type RegularTableSort = DashboardContentVizItemSort & {
|
|
119
|
-
level?: number;
|
|
120
|
-
};
|
|
121
|
-
export interface RegularTableSortViewOptions {
|
|
122
|
-
sort: RegularTableSort[];
|
|
123
|
-
}
|
|
124
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Columns slot of the regular table. This defines the columns of the regular table. A regular table can contain any number of columns.
|
|
4
|
-
*/
|
|
5
|
-
interface ColumnsSlot extends DashboardContentVizItemSlot {
|
|
6
|
-
name: 'columns';
|
|
7
|
-
/**
|
|
8
|
-
* Columns slot definition
|
|
9
|
-
*/
|
|
10
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Data definition of the Regular table
|
|
14
|
-
* @maxItems 1
|
|
15
|
-
*/
|
|
16
|
-
export type RegularTableSlots = (ColumnsSlot)[];
|
|
17
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { RegularTableViewOptions } from './regular-table-options';
|
|
3
|
-
import { RegularTableSlots } from './regular-table-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Regular table item
|
|
6
|
-
*/
|
|
7
|
-
export interface RegularTable {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'regular-table'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the Regular table item
|
|
14
|
-
* @$ref ./regular-table-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: RegularTableViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Regular table chart
|
|
19
|
-
* @maxItems 1
|
|
20
|
-
* @$ref ./regular-table-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: RegularTableSlots;
|
|
23
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { InteractivityFilterOnSelectViewOptions } from '../shared';
|
|
2
|
-
import type { LimitViewOptions } from '../shared/common';
|
|
3
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
5
|
-
import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
|
|
6
|
-
import { InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
7
|
-
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
8
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
9
|
-
import { OrderDirection } from '../shared/sort';
|
|
10
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
11
|
-
export interface SankeyDiagramViewOptions extends Omit<DropObjectViewOptions, 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, LimitViewOptions, SankeyDiagramInteractivityViewOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Sankey diagram type: alluvial or sankey
|
|
14
|
-
*/
|
|
15
|
-
type?: 'alluvial' | 'sankey';
|
|
16
|
-
/**
|
|
17
|
-
* This option fine-tunes the 'type' option. When it's 'alluvial' the 'type' will become 'alluvial', if it's sankey the 'type' will become 'sankey'.
|
|
18
|
-
* @TJS-ignore
|
|
19
|
-
*/
|
|
20
|
-
startWithSubType?: SankeySubtype;
|
|
21
|
-
/**
|
|
22
|
-
* Configure labels
|
|
23
|
-
*/
|
|
24
|
-
labels?: {
|
|
25
|
-
/**
|
|
26
|
-
* Show or hide the labels
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
|
-
display?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Show or hide the values
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
value?: boolean;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Configure Sankey diagram nodes
|
|
38
|
-
*/
|
|
39
|
-
nodes?: {
|
|
40
|
-
/**
|
|
41
|
-
* Show or hide the colored node
|
|
42
|
-
* @default true
|
|
43
|
-
*/
|
|
44
|
-
colored?: boolean;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Configure links
|
|
48
|
-
*/
|
|
49
|
-
links?: {
|
|
50
|
-
/**
|
|
51
|
-
* Show or hide the values of the link
|
|
52
|
-
* @default false
|
|
53
|
-
*/
|
|
54
|
-
value?: boolean;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Set alignment
|
|
58
|
-
* @default "justify"
|
|
59
|
-
*/
|
|
60
|
-
alignment?: 'justify' | 'left' | 'right' | 'center';
|
|
61
|
-
/**
|
|
62
|
-
* Set colors
|
|
63
|
-
*/
|
|
64
|
-
colors?: {
|
|
65
|
-
/**
|
|
66
|
-
* Toggle colors by category
|
|
67
|
-
*/
|
|
68
|
-
byCategory?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Set link color: gradient, none, target or source
|
|
71
|
-
* @default "gradient"
|
|
72
|
-
*/
|
|
73
|
-
linkColor?: 'gradient' | 'none' | 'target' | 'source';
|
|
74
|
-
/**
|
|
75
|
-
* Set node colors
|
|
76
|
-
* @examples ["#000000"]
|
|
77
|
-
*/
|
|
78
|
-
nodeColor?: string;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Set node sorting, ascending or descending (asc, dsc)
|
|
82
|
-
*/
|
|
83
|
-
nodeSorting?: OrderDirection;
|
|
84
|
-
}
|
|
85
|
-
interface SankeyDiagramInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions, InteractivityFilterOnSelectViewOptions {
|
|
86
|
-
/**
|
|
87
|
-
* Interactivity options
|
|
88
|
-
*/
|
|
89
|
-
interactivity?: {
|
|
90
|
-
/**
|
|
91
|
-
* Go to URL interactivity option
|
|
92
|
-
* @default { "target": "_blank", "url": null }
|
|
93
|
-
*/
|
|
94
|
-
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
95
|
-
/**
|
|
96
|
-
* Filter on select interactivity option
|
|
97
|
-
* @default true
|
|
98
|
-
*/
|
|
99
|
-
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
100
|
-
/**
|
|
101
|
-
* An array of measure dimension picker configurations
|
|
102
|
-
* @default [[]]
|
|
103
|
-
*/
|
|
104
|
-
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
105
|
-
/**
|
|
106
|
-
* Custom events interactivity option
|
|
107
|
-
* @default null
|
|
108
|
-
*/
|
|
109
|
-
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
110
|
-
/**
|
|
111
|
-
* Available export types interactivity option
|
|
112
|
-
* @default ["xlsx", "csv", "png"]
|
|
113
|
-
*/
|
|
114
|
-
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
115
|
-
/**
|
|
116
|
-
* Export types interactivity option
|
|
117
|
-
* @default ["xlsx", "csv", "png"]
|
|
118
|
-
*/
|
|
119
|
-
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
export type SankeySubtype = 'alluvial' | 'sankey';
|
|
123
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Source slot definition of the Sankey diagram. This is a required slot.
|
|
4
|
-
*/
|
|
5
|
-
interface SourceSlot extends DashboardContentVizItemSlot {
|
|
6
|
-
name: 'source';
|
|
7
|
-
/**
|
|
8
|
-
* Source slot definition
|
|
9
|
-
* @maxItems 1
|
|
10
|
-
*/
|
|
11
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Category slot definition of the Sankey diagram
|
|
15
|
-
*/
|
|
16
|
-
interface CategorySlot extends DashboardContentVizItemSlot {
|
|
17
|
-
name: 'category';
|
|
18
|
-
/**
|
|
19
|
-
* Category slot definition
|
|
20
|
-
*/
|
|
21
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Measure slot definition of the Sankey diagram
|
|
25
|
-
*/
|
|
26
|
-
interface MeasureSlot extends DashboardContentVizItemSlot {
|
|
27
|
-
name: 'measure';
|
|
28
|
-
/**
|
|
29
|
-
* Measure slot definition
|
|
30
|
-
* @maxItems 1
|
|
31
|
-
*/
|
|
32
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Destination slot definition of the Sankey diagram
|
|
36
|
-
*/
|
|
37
|
-
interface DestinationSlot extends DashboardContentVizItemSlot {
|
|
38
|
-
name: 'destination';
|
|
39
|
-
/**
|
|
40
|
-
* Destination slot definition
|
|
41
|
-
* @maxItems 1
|
|
42
|
-
*/
|
|
43
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Data definition of the Sankey diagram
|
|
47
|
-
* @maxItems 4
|
|
48
|
-
*/
|
|
49
|
-
export type SankeyDiagramSlots = (SourceSlot | MeasureSlot | CategorySlot | DestinationSlot)[];
|
|
50
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { SankeyDiagramViewOptions } from './sankey-diagram-options';
|
|
3
|
-
import { SankeyDiagramSlots } from './sankey-diagram-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Sankey diagram item
|
|
6
|
-
*/
|
|
7
|
-
export interface SankeyDiagram {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'sankey-diagram'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the sankey diagram item
|
|
14
|
-
* @$ref ./sankey-diagram-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: SankeyDiagramViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Sankey diagram
|
|
19
|
-
* @maxItems 4
|
|
20
|
-
* @$ref ./sankey-diagram-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: SankeyDiagramSlots;
|
|
23
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { InteractivityBrushViewOptions } from '../shared';
|
|
2
|
-
import { AxisGridlinesStyle, ManualAxesRange, XAxisLabelPosition, YAxisLabelPosition } from '../shared/axes';
|
|
3
|
-
import { AxisObjectViewOptions } from '../shared/axis-view-options';
|
|
4
|
-
import type { AxisTicksMode, Guidelines, LimitViewOptions } from '../shared/common';
|
|
5
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
6
|
-
import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
|
|
7
|
-
import { InteractivityCustomTooltipViewOptions } from '../shared/interactivity-custom-tooltip';
|
|
8
|
-
import { InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
9
|
-
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
10
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
11
|
-
import { DisplayLegendViewOptions, LegendViewOptions } from '../shared/legend';
|
|
12
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
13
|
-
export interface ScatterPlotViewOptions extends Omit<AxisObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, LegendViewOptions, TitleViewOptions, LimitViewOptions, ScatterPlotDisplayViewOptions, ScatterPlotInteractivityViewOptions {
|
|
14
|
-
/**
|
|
15
|
-
* Change the default mode of scatter-plot: scatter, scatter-group, bubble or bubble-group
|
|
16
|
-
* @TJS-ignore
|
|
17
|
-
*/
|
|
18
|
-
startWithSubType?: ScatterPlotSubtype;
|
|
19
|
-
/**
|
|
20
|
-
* Chart grid options
|
|
21
|
-
*/
|
|
22
|
-
grid?: {
|
|
23
|
-
/**
|
|
24
|
-
* X-axis grid options
|
|
25
|
-
*/
|
|
26
|
-
x?: {
|
|
27
|
-
/**
|
|
28
|
-
* Show or hide the X-axis grid
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Style of the X-axis grid
|
|
34
|
-
*/
|
|
35
|
-
style?: AxisGridlinesStyle;
|
|
36
|
-
/**
|
|
37
|
-
* Opacity of the X-axis grid
|
|
38
|
-
* @examples [1, 0.5, 0.1]
|
|
39
|
-
*/
|
|
40
|
-
opacity?: number;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Y-axis grid options
|
|
44
|
-
*/
|
|
45
|
-
y?: {
|
|
46
|
-
/**
|
|
47
|
-
* Show or hide the Y-axis grid
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
enabled: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Style of the Y-axis grid
|
|
53
|
-
*/
|
|
54
|
-
style?: AxisGridlinesStyle;
|
|
55
|
-
/**
|
|
56
|
-
* Opacity of the Y-axis grid
|
|
57
|
-
* @examples [1, 0.5, 0.1]
|
|
58
|
-
*/
|
|
59
|
-
opacity?: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Axes labels options
|
|
64
|
-
*/
|
|
65
|
-
axislabels?: {
|
|
66
|
-
/**
|
|
67
|
-
* X-axis label options
|
|
68
|
-
*/
|
|
69
|
-
x?: {
|
|
70
|
-
/**
|
|
71
|
-
* Show or hide the X-axis labels
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
enabled: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Position of the X-axis labels
|
|
77
|
-
* @default "center"
|
|
78
|
-
*/
|
|
79
|
-
position: XAxisLabelPosition;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Y-axis label options
|
|
83
|
-
*/
|
|
84
|
-
y?: {
|
|
85
|
-
/**
|
|
86
|
-
* Show or hide the Y-axis labels
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
enabled: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Position of the Y-axis labels
|
|
92
|
-
* @default "middle"
|
|
93
|
-
*/
|
|
94
|
-
position: YAxisLabelPosition;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Axes options
|
|
99
|
-
*/
|
|
100
|
-
axis?: {
|
|
101
|
-
/**
|
|
102
|
-
* X-axis options
|
|
103
|
-
*/
|
|
104
|
-
x?: {
|
|
105
|
-
/**
|
|
106
|
-
* X-axis color
|
|
107
|
-
* @examples ["#000000", "black", "rgba(0,0,0,1)"]
|
|
108
|
-
*/
|
|
109
|
-
color?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Ticks mode of the X-axis: hide, ticks, or gridlines
|
|
112
|
-
* @default "ticks"
|
|
113
|
-
*/
|
|
114
|
-
ticksMode?: AxisTicksMode;
|
|
115
|
-
/**
|
|
116
|
-
* Guideline options
|
|
117
|
-
*/
|
|
118
|
-
guidelines?: Guidelines;
|
|
119
|
-
};
|
|
120
|
-
y?: {
|
|
121
|
-
/**
|
|
122
|
-
* X-axis color
|
|
123
|
-
* @examples ["#000000", "black", "rgba(0,0,0,1)"]
|
|
124
|
-
*/
|
|
125
|
-
color?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Ticks mode of the X-axis: hide, ticks, or gridlines
|
|
128
|
-
* @default "ticks"
|
|
129
|
-
*/
|
|
130
|
-
ticksMode?: AxisTicksMode;
|
|
131
|
-
/**
|
|
132
|
-
* Guideline options
|
|
133
|
-
*/
|
|
134
|
-
guidelines?: Guidelines;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Set manual axes range
|
|
139
|
-
*/
|
|
140
|
-
manualAxesRange?: {
|
|
141
|
-
/**
|
|
142
|
-
* Manual axes range for X axis
|
|
143
|
-
* @examples [[0, 100]]
|
|
144
|
-
*/
|
|
145
|
-
x?: ManualAxesRange;
|
|
146
|
-
/**
|
|
147
|
-
* Manual axes range for Y axis
|
|
148
|
-
* @examples [[0, 100]]
|
|
149
|
-
*/
|
|
150
|
-
y?: ManualAxesRange;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
interface ScatterPlotDisplayViewOptions extends DisplayLegendViewOptions, DisplayTitleViewOptions {
|
|
154
|
-
/**
|
|
155
|
-
* General display options of the Scatter plot: title, legend and mode option
|
|
156
|
-
*/
|
|
157
|
-
display?: {
|
|
158
|
-
/**
|
|
159
|
-
* Show or hide the title
|
|
160
|
-
* @default true
|
|
161
|
-
*/
|
|
162
|
-
title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
163
|
-
/**
|
|
164
|
-
* Show or hide the legend
|
|
165
|
-
* @default true
|
|
166
|
-
*/
|
|
167
|
-
legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
interface ScatterPlotInteractivityViewOptions extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
171
|
-
/**
|
|
172
|
-
* Interactivity options
|
|
173
|
-
*/
|
|
174
|
-
interactivity?: {
|
|
175
|
-
/**
|
|
176
|
-
* Go to URL interactivity option
|
|
177
|
-
* @default { "target": "_blank", "url": null }
|
|
178
|
-
*/
|
|
179
|
-
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
180
|
-
/**
|
|
181
|
-
* Custom tooltip interactivity option, in format {locale: "tooltip"}, for example, {en: "Total Revenue"}
|
|
182
|
-
* @default null
|
|
183
|
-
*/
|
|
184
|
-
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
185
|
-
/**
|
|
186
|
-
* Filter on brush interactivity option
|
|
187
|
-
* @default true
|
|
188
|
-
*/
|
|
189
|
-
brush?: NonNullable<NonNullable<InteractivityBrushViewOptions['interactivity']>['brush']>;
|
|
190
|
-
/**
|
|
191
|
-
* An array of measure dimension picker configurations
|
|
192
|
-
* @default [[]]
|
|
193
|
-
*/
|
|
194
|
-
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
195
|
-
/**
|
|
196
|
-
* Custom events interactivity option
|
|
197
|
-
* @default null
|
|
198
|
-
*/
|
|
199
|
-
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
200
|
-
/**
|
|
201
|
-
* Available export types interactivity option
|
|
202
|
-
* @default ["xlsx", "csv", "png"]
|
|
203
|
-
*/
|
|
204
|
-
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
205
|
-
/**
|
|
206
|
-
* Export types interactivity option
|
|
207
|
-
* @default ["xlsx", "csv", "png"]
|
|
208
|
-
*/
|
|
209
|
-
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
export type ScatterPlotSubtype = 'scatter' | 'scatter-group' | 'bubble' | 'bubble-group';
|
|
213
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Y axis slot definition for the scatter plot. This is a required slot.
|
|
4
|
-
*/
|
|
5
|
-
interface YAxisSlot extends DashboardContentVizItemSlot {
|
|
6
|
-
name: 'y-axis';
|
|
7
|
-
/**
|
|
8
|
-
* y-axis slot definition
|
|
9
|
-
* @maxItems 1
|
|
10
|
-
*/
|
|
11
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Name slot definition for the scatter plot
|
|
15
|
-
*/
|
|
16
|
-
interface NameSlot extends DashboardContentVizItemSlot {
|
|
17
|
-
name: 'name';
|
|
18
|
-
/**
|
|
19
|
-
* Name slot definition
|
|
20
|
-
*/
|
|
21
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Size slot definition for the scatter plot
|
|
25
|
-
*/
|
|
26
|
-
interface SizeSlot extends DashboardContentVizItemSlot {
|
|
27
|
-
name: 'size';
|
|
28
|
-
/**
|
|
29
|
-
* Size slot definition
|
|
30
|
-
* @maxItems 1
|
|
31
|
-
*/
|
|
32
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* X-Axis slot definition of the Scatter plot. This is a required slot.
|
|
36
|
-
*/
|
|
37
|
-
interface XAxisSlot extends DashboardContentVizItemSlot {
|
|
38
|
-
name: 'x-axis';
|
|
39
|
-
/**
|
|
40
|
-
* X-axis slot definition
|
|
41
|
-
* @maxItems 1
|
|
42
|
-
*/
|
|
43
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Color slot definition of the scatter plot
|
|
47
|
-
*/
|
|
48
|
-
interface ColorSlot extends DashboardContentVizItemSlot {
|
|
49
|
-
name: 'color';
|
|
50
|
-
/**
|
|
51
|
-
* Color slot definition
|
|
52
|
-
* @maxItems 1
|
|
53
|
-
*/
|
|
54
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Data definition of the Scatter plot
|
|
58
|
-
* @maxItems 5
|
|
59
|
-
*/
|
|
60
|
-
export type ScatterPlotSlots = (YAxisSlot | NameSlot | SizeSlot | XAxisSlot | ColorSlot)[];
|
|
61
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { ScatterPlotViewOptions } from './scatter-plot-options';
|
|
3
|
-
import { ScatterPlotSlots } from './scatter-plot-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Scatter plot item
|
|
6
|
-
*/
|
|
7
|
-
export interface ScatterPlot {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'scatter-plot'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the scatter plot item
|
|
14
|
-
* @$ref ./scatter-plot-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: ScatterPlotViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Scatter plot
|
|
19
|
-
* @maxItems 5
|
|
20
|
-
* @$ref ./scatter-plot-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: ScatterPlotSlots;
|
|
23
|
-
}
|