@luzmo/embed 6.0.1 → 6.1.0-beta.0
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 +5 -1
- package/MIGRATIONS.md +1 -1
- package/README.md +121 -15
- package/index.cjs +52769 -28
- package/index.d.ts +4 -1
- package/index.js +52768 -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 +330 -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 +257 -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 +258 -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 +130 -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 +122 -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 +212 -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 +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +30 -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 +7 -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 +204 -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 +62579 -2650
- package/package.json +5 -2
package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { InteractivityBrushViewOptions } from '../shared';
|
|
2
|
+
import { AxisGridlinesStyle, AxisScaleType, AxisTicksDensity, ManualAxesRange, XAxisLabelPosition, YAxisLabelPosition } from '../shared/axes';
|
|
3
|
+
import { AxisObjectViewOptions } from '../shared/axis-view-options';
|
|
4
|
+
import { AxisTicksMode, AxisTicksStyle, Guidelines, LimitViewOptions, MissingValueViewOptions, NullBreakViewOptions, RankingViewOptions } from '../shared/common';
|
|
5
|
+
import { FilterableByViewOptions, FilterViewOptions } from '../shared/filters';
|
|
6
|
+
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
7
|
+
import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
|
|
8
|
+
import { InteractivityCustomTooltipViewOptions } from '../shared/interactivity-custom-tooltip';
|
|
9
|
+
import { InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
10
|
+
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
11
|
+
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
12
|
+
import { Interpolation } from '../shared/interpolation';
|
|
13
|
+
import { DisplayLegendViewOptions, LegendViewOptions } from '../shared/legend';
|
|
14
|
+
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
15
|
+
export interface CombinationChartViewOptions extends Omit<AxisObjectViewOptions, 'interactivity' | 'display'>, TitleViewOptions, FilterViewOptions, InfoTooltipViewOptions, NullBreakViewOptions, LegendViewOptions, RankingViewOptions, LimitViewOptions, FilterableByViewOptions, CombinationChartInteractivityOptions, CombinationChartDisplayOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Chart grid options
|
|
18
|
+
*/
|
|
19
|
+
grid?: {
|
|
20
|
+
/**
|
|
21
|
+
* X-axis grid options
|
|
22
|
+
*/
|
|
23
|
+
x?: {
|
|
24
|
+
/**
|
|
25
|
+
* Show or hide the X-axis grid
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
style?: AxisGridlinesStyle;
|
|
30
|
+
/**
|
|
31
|
+
* Opacity of the X-axis grid
|
|
32
|
+
*/
|
|
33
|
+
opacity?: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Y-axis grid options
|
|
37
|
+
*/
|
|
38
|
+
y?: {
|
|
39
|
+
/**
|
|
40
|
+
* Show or hide the Y-axis grid
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
style?: AxisGridlinesStyle;
|
|
45
|
+
/**
|
|
46
|
+
* Opacity of the Y-axis grid
|
|
47
|
+
*/
|
|
48
|
+
opacity?: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Y2-axis grid options
|
|
52
|
+
*/
|
|
53
|
+
y2?: {
|
|
54
|
+
/**
|
|
55
|
+
* Show or hide the Y2-axis grid
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
style?: AxisGridlinesStyle;
|
|
60
|
+
/**
|
|
61
|
+
* Opacity of the Y2-axis grid
|
|
62
|
+
*/
|
|
63
|
+
opacity?: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Axes labels options
|
|
68
|
+
*/
|
|
69
|
+
axislabels?: {
|
|
70
|
+
/**
|
|
71
|
+
* X-axis label options
|
|
72
|
+
*/
|
|
73
|
+
x?: {
|
|
74
|
+
/**
|
|
75
|
+
* Show or hide the X-axis labels
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
enabled: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @default "center"
|
|
81
|
+
*/
|
|
82
|
+
position: XAxisLabelPosition;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Y-axis label options
|
|
86
|
+
*/
|
|
87
|
+
y?: {
|
|
88
|
+
/**
|
|
89
|
+
* Show or hide the Y-axis labels
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
enabled: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @default "middle"
|
|
95
|
+
*/
|
|
96
|
+
position: YAxisLabelPosition;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Y2-axis label options
|
|
100
|
+
*/
|
|
101
|
+
y2?: {
|
|
102
|
+
/**
|
|
103
|
+
* Show or hide the Y2-axis labels
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* @default "middle"
|
|
109
|
+
*/
|
|
110
|
+
position: YAxisLabelPosition;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Axes options
|
|
115
|
+
*/
|
|
116
|
+
axis?: {
|
|
117
|
+
/**
|
|
118
|
+
* X-axis options
|
|
119
|
+
*/
|
|
120
|
+
x?: {
|
|
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
|
|
128
|
+
* @default "ticks"
|
|
129
|
+
*/
|
|
130
|
+
ticksMode?: AxisTicksMode;
|
|
131
|
+
ticksStyle?: AxisTicksStyle;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Y-axis options
|
|
135
|
+
*/
|
|
136
|
+
y?: {
|
|
137
|
+
/**
|
|
138
|
+
* Y-axis color
|
|
139
|
+
* @examples ["#000000", "black", "rgba(0,0,0,1)"]
|
|
140
|
+
*/
|
|
141
|
+
color?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Y-axis scale
|
|
144
|
+
* @default "linear"
|
|
145
|
+
*/
|
|
146
|
+
scale?: AxisScaleType;
|
|
147
|
+
/**
|
|
148
|
+
* Logarithmic base of the Y-axis. Only applies if the scale is logarithmic.
|
|
149
|
+
*/
|
|
150
|
+
scaleLogBase?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Ticks density of the Y-axis
|
|
153
|
+
*/
|
|
154
|
+
ticksDensity?: AxisTicksDensity;
|
|
155
|
+
/**
|
|
156
|
+
* Ticks mode of the Y-axis
|
|
157
|
+
*/
|
|
158
|
+
ticksMode?: AxisTicksMode;
|
|
159
|
+
/**
|
|
160
|
+
* Manual axes range
|
|
161
|
+
*/
|
|
162
|
+
manualAxesRange?: ManualAxesRange;
|
|
163
|
+
/**
|
|
164
|
+
* @default "default"
|
|
165
|
+
*/
|
|
166
|
+
type?: CombinationChartMeasureAxisType;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Y2-axis options
|
|
170
|
+
*/
|
|
171
|
+
y2?: {
|
|
172
|
+
/**
|
|
173
|
+
* Y-axis color
|
|
174
|
+
* @examples ["#000000", "black", "rgba(0,0,0,1)"]
|
|
175
|
+
*/
|
|
176
|
+
color?: string;
|
|
177
|
+
/**
|
|
178
|
+
* @default "linear"
|
|
179
|
+
*/
|
|
180
|
+
scale?: AxisScaleType;
|
|
181
|
+
/**
|
|
182
|
+
* Logarithmic base of the Y2-axis
|
|
183
|
+
*/
|
|
184
|
+
scaleLogBase?: number;
|
|
185
|
+
ticksDensity?: AxisTicksDensity;
|
|
186
|
+
/**
|
|
187
|
+
* @default "ticks"
|
|
188
|
+
*/
|
|
189
|
+
ticksMode?: AxisTicksMode;
|
|
190
|
+
manualAxesRange?: ManualAxesRange;
|
|
191
|
+
/**
|
|
192
|
+
* @default "default"
|
|
193
|
+
*/
|
|
194
|
+
type?: CombinationChartMeasureAxisType;
|
|
195
|
+
/**
|
|
196
|
+
* Show or hide the Y2-axis
|
|
197
|
+
* @default false
|
|
198
|
+
*/
|
|
199
|
+
active?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Measure indexes
|
|
202
|
+
* @default [1]
|
|
203
|
+
* @examples [[0, 1]]
|
|
204
|
+
*/
|
|
205
|
+
measureIndexes?: number[];
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* @default [[]]
|
|
210
|
+
*/
|
|
211
|
+
measures?: CombinationChartMeasure[];
|
|
212
|
+
guidelines?: Guidelines;
|
|
213
|
+
/**
|
|
214
|
+
* @default { active: false, direction: 'top', number: 10 }
|
|
215
|
+
*/
|
|
216
|
+
ranking: RankingViewOptions['ranking'];
|
|
217
|
+
/**
|
|
218
|
+
* @default {}
|
|
219
|
+
*/
|
|
220
|
+
filter?: FilterViewOptions['filter'];
|
|
221
|
+
}
|
|
222
|
+
interface CombinationChartDisplayOptions extends DisplayTitleViewOptions, DisplayLegendViewOptions {
|
|
223
|
+
display?: {
|
|
224
|
+
/**
|
|
225
|
+
* Show or hide the title
|
|
226
|
+
* @default true
|
|
227
|
+
*/
|
|
228
|
+
title?: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
229
|
+
/**
|
|
230
|
+
* Show or hide the legend
|
|
231
|
+
* @default false
|
|
232
|
+
*/
|
|
233
|
+
legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
interface CombinationChartInteractivityOptions extends InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions, InteractivityCustomEventsViewOptions, InteractivityExportViewOptions, InteractivityCustomTooltipViewOptions {
|
|
237
|
+
/**
|
|
238
|
+
* Interactivity options
|
|
239
|
+
*/
|
|
240
|
+
interactivity?: {
|
|
241
|
+
/**
|
|
242
|
+
* Available export types interactivity option
|
|
243
|
+
* @default ['xlsx', 'csv', 'png']
|
|
244
|
+
*/
|
|
245
|
+
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
246
|
+
/**
|
|
247
|
+
* Filter on brush interactivity option
|
|
248
|
+
* @default true
|
|
249
|
+
*/
|
|
250
|
+
brush?: NonNullable<NonNullable<InteractivityBrushViewOptions['interactivity']>['brush']>;
|
|
251
|
+
/**
|
|
252
|
+
* Custom events interactivity option
|
|
253
|
+
* @default null
|
|
254
|
+
*/
|
|
255
|
+
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
256
|
+
/**
|
|
257
|
+
* Custom tooltip interactivity option, in format {locale: "tooltip"}, for example, {en: "Total Revenue"}
|
|
258
|
+
* @default null
|
|
259
|
+
*/
|
|
260
|
+
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
261
|
+
/**
|
|
262
|
+
* Export types interactivity option
|
|
263
|
+
* @default ['xlsx', 'csv', 'png']
|
|
264
|
+
*/
|
|
265
|
+
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
266
|
+
/**
|
|
267
|
+
* An array of measure dimension picker configurations
|
|
268
|
+
* @default [[]]
|
|
269
|
+
*/
|
|
270
|
+
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
271
|
+
/**
|
|
272
|
+
* Go to URL interactivity option
|
|
273
|
+
* @default { target: '_blank', url: null }
|
|
274
|
+
*/
|
|
275
|
+
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Combination chart measure axis type
|
|
280
|
+
*/
|
|
281
|
+
export type CombinationChartMeasureAxisType = 'default' | 'manual' | 'variable';
|
|
282
|
+
/**
|
|
283
|
+
* Combination chart measure
|
|
284
|
+
*/
|
|
285
|
+
export interface CombinationChartMeasure extends MissingValueViewOptions {
|
|
286
|
+
/**
|
|
287
|
+
* Measure id
|
|
288
|
+
* @format uuid
|
|
289
|
+
*/
|
|
290
|
+
id?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Name in a key-value format. The key is the language code and the value is the content in that language.
|
|
293
|
+
* @examples [{"en": "Hello World", "de": "Hallo Welt"}]
|
|
294
|
+
* @TJS-type object
|
|
295
|
+
*/
|
|
296
|
+
name?: Record<string, string>;
|
|
297
|
+
/**
|
|
298
|
+
* Label in a key-value format. The key is the language code and the value is the content in that language.
|
|
299
|
+
* @examples [{"en": "Hello World", "de": "Hallo Welt"}]
|
|
300
|
+
* @TJS-type object
|
|
301
|
+
*/
|
|
302
|
+
label?: Record<string, string>;
|
|
303
|
+
/**
|
|
304
|
+
* Set id
|
|
305
|
+
* @format uuid
|
|
306
|
+
*/
|
|
307
|
+
set?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Column id
|
|
310
|
+
* @format uuid
|
|
311
|
+
*/
|
|
312
|
+
column?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Formula
|
|
315
|
+
*/
|
|
316
|
+
formula?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Index
|
|
319
|
+
*/
|
|
320
|
+
index?: number;
|
|
321
|
+
/**
|
|
322
|
+
* Color
|
|
323
|
+
* @examples ["#000000", "black", "rgba(0,0,0,1)"]
|
|
324
|
+
*/
|
|
325
|
+
color?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Type
|
|
328
|
+
*/
|
|
329
|
+
type?: 'bar' | 'area' | 'scatter' | 'line';
|
|
330
|
+
interpolation?: Interpolation;
|
|
331
|
+
/**
|
|
332
|
+
* Radius
|
|
333
|
+
*/
|
|
334
|
+
radius?: number;
|
|
335
|
+
/**
|
|
336
|
+
* Stroke width
|
|
337
|
+
*/
|
|
338
|
+
strokeWidth?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Rounded corners
|
|
341
|
+
*/
|
|
342
|
+
roundedCorners?: number;
|
|
343
|
+
}
|
|
344
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
+
/**
|
|
3
|
+
* Measure slot definition of the Combination chart
|
|
4
|
+
*/
|
|
5
|
+
interface MeasureSlot extends DashboardContentVizItemSlot {
|
|
6
|
+
name: 'measure';
|
|
7
|
+
/**
|
|
8
|
+
* Measure slot definition
|
|
9
|
+
*/
|
|
10
|
+
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Evolution slot definition of the Combination chart
|
|
14
|
+
*/
|
|
15
|
+
interface XAxisSlot extends DashboardContentVizItemSlot {
|
|
16
|
+
name: 'x-axis';
|
|
17
|
+
/**
|
|
18
|
+
* X-axis slot definition
|
|
19
|
+
* @maxItems 1
|
|
20
|
+
*/
|
|
21
|
+
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Data definition of the Combination chart
|
|
25
|
+
* @maxItems 2
|
|
26
|
+
*/
|
|
27
|
+
export type CombinationChartSlots = (MeasureSlot | XAxisSlot)[];
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VizItemType } from '../shared/common';
|
|
2
|
+
import { CombinationChartViewOptions } from './combination-chart-options';
|
|
3
|
+
import { CombinationChartSlots } from './combination-chart-slots';
|
|
4
|
+
/**
|
|
5
|
+
* Combination chart item
|
|
6
|
+
*/
|
|
7
|
+
export interface CombinationChart {
|
|
8
|
+
/**
|
|
9
|
+
* Type of the item
|
|
10
|
+
*/
|
|
11
|
+
type: Extract<VizItemType, 'combination-chart'>;
|
|
12
|
+
/**
|
|
13
|
+
* Options of the Combination chart item
|
|
14
|
+
* @$ref ./combination-chart-options.schema.json/
|
|
15
|
+
*/
|
|
16
|
+
options: CombinationChartViewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Data definition of the Combination chart
|
|
19
|
+
* @maxItems 2
|
|
20
|
+
* @$ref ./combination-chart-slots.schema.json
|
|
21
|
+
*/
|
|
22
|
+
slots: CombinationChartSlots;
|
|
23
|
+
}
|
package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { XAxisLabelPosition, YAxisLabelPosition } from '../shared/axes';
|
|
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 { 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 { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
10
|
+
export interface ConditionalNumberViewOptions extends Omit<DropObjectViewOptions, 'interactivity' | 'display'>, TitleViewOptions, InfoTooltipViewOptions, ConditionalNumberInteractivityViewOptions, ConditionalNumberDisplayViewOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Display mode
|
|
13
|
+
* @default 'normal'
|
|
14
|
+
*/
|
|
15
|
+
mode?: 'normal' | 'difference' | 'percentage';
|
|
16
|
+
/**
|
|
17
|
+
* Alignment options
|
|
18
|
+
*/
|
|
19
|
+
alignment?: {
|
|
20
|
+
/**
|
|
21
|
+
* Horizontal alignment
|
|
22
|
+
* @default 'center'
|
|
23
|
+
*/
|
|
24
|
+
horizontal?: XAxisLabelPosition;
|
|
25
|
+
/**
|
|
26
|
+
* Vertical alignment
|
|
27
|
+
* @default 'middle'
|
|
28
|
+
*/
|
|
29
|
+
vertical?: YAxisLabelPosition;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Conditional color manual values
|
|
33
|
+
*/
|
|
34
|
+
manualValues?: {
|
|
35
|
+
conditional?: ManualValuesRange[];
|
|
36
|
+
/**
|
|
37
|
+
* Display as background color
|
|
38
|
+
*/
|
|
39
|
+
asBackgroundColor?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Target
|
|
42
|
+
*/
|
|
43
|
+
target?: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
interface ConditionalNumberDisplayViewOptions extends DisplayTitleViewOptions {
|
|
47
|
+
/**
|
|
48
|
+
* Display options
|
|
49
|
+
*/
|
|
50
|
+
display?: {
|
|
51
|
+
/**
|
|
52
|
+
* Show or hide the title
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
title?: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
56
|
+
/**
|
|
57
|
+
* Is label displayed
|
|
58
|
+
*/
|
|
59
|
+
label?: boolean;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
interface ConditionalNumberInteractivityViewOptions extends InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions, InteractivityCustomEventsViewOptions, InteractivityExportViewOptions {
|
|
63
|
+
/**
|
|
64
|
+
* Interactivity options
|
|
65
|
+
*/
|
|
66
|
+
interactivity?: {
|
|
67
|
+
/**
|
|
68
|
+
* Go to URL interactivity option
|
|
69
|
+
* @default { target: '_blank', url: null }
|
|
70
|
+
*/
|
|
71
|
+
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
72
|
+
/**
|
|
73
|
+
* An array of measure dimension picker configurations
|
|
74
|
+
* @default [[]]
|
|
75
|
+
*/
|
|
76
|
+
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
77
|
+
/**
|
|
78
|
+
* Custom events interactivity option
|
|
79
|
+
* @default null
|
|
80
|
+
*/
|
|
81
|
+
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
82
|
+
/**
|
|
83
|
+
* Available export types interactivity option
|
|
84
|
+
* @default ['xlsx', 'csv', 'png']
|
|
85
|
+
*/
|
|
86
|
+
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
87
|
+
/**
|
|
88
|
+
* Export types interactivity option
|
|
89
|
+
* @default ['xlsx', 'csv', 'png']
|
|
90
|
+
*/
|
|
91
|
+
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export {};
|
package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
+
/**
|
|
3
|
+
* Measure slot definition of the Conditional number, This is a required slot
|
|
4
|
+
*/
|
|
5
|
+
interface MeasureSlot extends DashboardContentVizItemSlot {
|
|
6
|
+
name: 'measure';
|
|
7
|
+
/**
|
|
8
|
+
* Measure slot definition
|
|
9
|
+
* @maxItems 1
|
|
10
|
+
*/
|
|
11
|
+
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Target slot definition of the Conditional number
|
|
15
|
+
*/
|
|
16
|
+
interface TargetSlot extends DashboardContentVizItemSlot {
|
|
17
|
+
name: 'target';
|
|
18
|
+
/**
|
|
19
|
+
* Target slot definition
|
|
20
|
+
* @maxItems 1
|
|
21
|
+
*/
|
|
22
|
+
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Data definition of the Conditional number
|
|
26
|
+
* @maxItems 2
|
|
27
|
+
*/
|
|
28
|
+
export type ConditionalNumberSlots = (MeasureSlot | TargetSlot)[];
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VizItemType } from '../shared/common';
|
|
2
|
+
import { ConditionalNumberViewOptions } from './conditional-number-options';
|
|
3
|
+
import { ConditionalNumberSlots } from './conditional-number-slots';
|
|
4
|
+
/**
|
|
5
|
+
* Conditional number item
|
|
6
|
+
*/
|
|
7
|
+
export interface ConditionalNumber {
|
|
8
|
+
/**
|
|
9
|
+
* Type of the item
|
|
10
|
+
*/
|
|
11
|
+
type: Extract<VizItemType, 'conditional-number'>;
|
|
12
|
+
/**
|
|
13
|
+
* Options of the Conditional number item
|
|
14
|
+
* @$ref ./conditional-number-options.schema.json/
|
|
15
|
+
*/
|
|
16
|
+
options: ConditionalNumberViewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Data definition of the Conditional number
|
|
19
|
+
* @maxItems 2
|
|
20
|
+
* @$ref ./conditional-number-slots.schema.json
|
|
21
|
+
*/
|
|
22
|
+
slots: ConditionalNumberSlots;
|
|
23
|
+
}
|