@luzmo/embed 6.0.0 → 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/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/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-base.d.ts +7 -7
- 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/src/index.d.ts +0 -2
- /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-component.d.ts +0 -0
- /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-styles.d.ts +0 -0
- /package/{src → libs/embed-libs/embed/src}/lib/helper/event-bus-handler.d.ts +0 -0
- /package/{src → libs/embed-libs/embed/src}/lib/luzmo-service.d.ts +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
export interface Theme {
|
|
2
|
+
created_at: string;
|
|
3
|
+
deleted_at: string;
|
|
4
|
+
id: string;
|
|
5
|
+
name: Record<string, string>;
|
|
6
|
+
organization_id: string;
|
|
7
|
+
theme: ThemeConfig;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
}
|
|
10
|
+
export type DarkOrLightTheme = 'dark' | 'light';
|
|
11
|
+
/**
|
|
12
|
+
* Theme configuration
|
|
13
|
+
*/
|
|
14
|
+
export interface ThemeConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Id of the theme, like "seasonal", "urban", etc.
|
|
17
|
+
* @examples ["seasonal", "urban"]
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Edit background
|
|
22
|
+
* @examples ["rgb(228, 228, 228)", "rgb(245, 245, 245)", "rgb(61, 61, 61)"]
|
|
23
|
+
*/
|
|
24
|
+
editBackground?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Theme type
|
|
27
|
+
* @examples ["custom"]
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Theme name
|
|
32
|
+
* @examples ["manual"]
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Background color
|
|
37
|
+
* @examples ["dark", "light", "rgb(245, 245, 245)", "rgb(61, 61, 61)"]
|
|
38
|
+
*/
|
|
39
|
+
background?: DarkOrLightTheme | string;
|
|
40
|
+
/**
|
|
41
|
+
* Item background color
|
|
42
|
+
* @examples ["rgb(255, 255, 255)", "rgb(71, 69, 69)", "rgb(195, 191, 191)"]
|
|
43
|
+
*/
|
|
44
|
+
itemsBackground?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Shadow styling
|
|
47
|
+
*/
|
|
48
|
+
boxShadow?: {
|
|
49
|
+
/**
|
|
50
|
+
* Shadow size
|
|
51
|
+
* @examples ["none", "S", "M", "L"]
|
|
52
|
+
*/
|
|
53
|
+
size?: 'S' | 'M' | 'L' | 'none';
|
|
54
|
+
/**
|
|
55
|
+
* Shadow color
|
|
56
|
+
* @examples ["rgb(0, 0, 0)", "rgb(100, 100, 103)"]
|
|
57
|
+
*/
|
|
58
|
+
color?: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Title styling
|
|
62
|
+
*/
|
|
63
|
+
title?: {
|
|
64
|
+
/**
|
|
65
|
+
* Title align
|
|
66
|
+
* @examples ["left", "center", "right"]
|
|
67
|
+
*/
|
|
68
|
+
align?: 'left' | 'center' | 'right';
|
|
69
|
+
/**
|
|
70
|
+
* Is title bold
|
|
71
|
+
* @examples [true, false]
|
|
72
|
+
*/
|
|
73
|
+
bold?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Is title a border
|
|
76
|
+
* @examples [true, false]
|
|
77
|
+
*/
|
|
78
|
+
border?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Title's font size in px
|
|
81
|
+
* @examples [16, 20]
|
|
82
|
+
*/
|
|
83
|
+
fontSize?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Is title italic
|
|
86
|
+
* @examples [true, false]
|
|
87
|
+
*/
|
|
88
|
+
italic?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Title's line height in px
|
|
91
|
+
* @examples [30, 42, 50]
|
|
92
|
+
*/
|
|
93
|
+
lineHeight?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Is title underline
|
|
96
|
+
* @examples [true, false]
|
|
97
|
+
*/
|
|
98
|
+
underline?: boolean;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Edit mode background
|
|
102
|
+
* @examples ["rgb(245, 245, 245)"]
|
|
103
|
+
*/
|
|
104
|
+
editModeBackground?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Border styling
|
|
107
|
+
*/
|
|
108
|
+
borders?: {
|
|
109
|
+
/**
|
|
110
|
+
* Border color
|
|
111
|
+
* @examples ["rgba(216, 216, 216, 1)", "rgb(147, 146, 148)"]
|
|
112
|
+
*/
|
|
113
|
+
'border-color'?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Border radius
|
|
116
|
+
* @examples ["0", "12px", "20px"]
|
|
117
|
+
*/
|
|
118
|
+
'border-radius'?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Border style
|
|
121
|
+
* @examples ["none", "solid", "dotted", "dashed"]
|
|
122
|
+
*/
|
|
123
|
+
'border-style'?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Border top width
|
|
126
|
+
* @examples ["0px", "1px", "3px"]
|
|
127
|
+
*/
|
|
128
|
+
'border-top-width'?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Border right width
|
|
131
|
+
* @examples ["0px", "1px", "3px"]
|
|
132
|
+
*/
|
|
133
|
+
'border-right-width'?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Border bottom width
|
|
136
|
+
* @examples ["0px", "1px", "3px"]
|
|
137
|
+
*/
|
|
138
|
+
'border-bottom-width'?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Border left width
|
|
141
|
+
* @examples ["0px", "1px", "3px"]
|
|
142
|
+
*/
|
|
143
|
+
'border-left-width'?: string;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Dashboard vertical and horizontal margins
|
|
147
|
+
* @examples [[16, 16], [20, 20]]
|
|
148
|
+
*/
|
|
149
|
+
margins?: [number, number];
|
|
150
|
+
/**
|
|
151
|
+
* Theme main color
|
|
152
|
+
* @examples ["rgb(123, 144, 255)", "rgb(255, 174, 52)", "rgb(123, 144, 255)"]
|
|
153
|
+
*/
|
|
154
|
+
mainColor?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Axis styling
|
|
157
|
+
* @TJS-type object
|
|
158
|
+
* @examples [{ "fontSize": 12 }, { "fontSize": 10 }]
|
|
159
|
+
*/
|
|
160
|
+
axis?: Record<string, number>;
|
|
161
|
+
/**
|
|
162
|
+
* Item specific styling
|
|
163
|
+
*/
|
|
164
|
+
itemSpecific?: {
|
|
165
|
+
/**
|
|
166
|
+
* Rounding of the item
|
|
167
|
+
* @examples [0, 8, 12]
|
|
168
|
+
*/
|
|
169
|
+
rounding?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Padding of the item
|
|
172
|
+
* @examples [0, 4, 8, 10]
|
|
173
|
+
*/
|
|
174
|
+
padding?: number;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Legend styling
|
|
178
|
+
*/
|
|
179
|
+
legend?: {
|
|
180
|
+
/**
|
|
181
|
+
* Legend type
|
|
182
|
+
* @examples ["normal", "line", "circle"]
|
|
183
|
+
*/
|
|
184
|
+
type?: 'normal' | 'line' | 'circle';
|
|
185
|
+
/**
|
|
186
|
+
* Legend font size in px
|
|
187
|
+
* @examples [12, 16]
|
|
188
|
+
*/
|
|
189
|
+
fontSize?: number;
|
|
190
|
+
/**
|
|
191
|
+
* Legend line height in px
|
|
192
|
+
* @examples [12, 16, 20]
|
|
193
|
+
*/
|
|
194
|
+
lineHeight?: number;
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Tooltip styling
|
|
198
|
+
*/
|
|
199
|
+
tooltip?: {
|
|
200
|
+
/**
|
|
201
|
+
* Tooltip's font size in px
|
|
202
|
+
* @examples [12, 16, 20]
|
|
203
|
+
*/
|
|
204
|
+
fontSize?: number;
|
|
205
|
+
/**
|
|
206
|
+
* Tooltip's background
|
|
207
|
+
* @examples ["rgb(248, 248, 248)", "rgb(248, 248, 248)", "rgb(130, 128, 128)", "rgb(61, 61, 61)"]
|
|
208
|
+
*/
|
|
209
|
+
background?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Tooltip's line height in px
|
|
212
|
+
* @examples [12, 16, 20]
|
|
213
|
+
*/
|
|
214
|
+
lineHeight?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Tooltip's opacity
|
|
217
|
+
* @examples [0.5, 0.8, 1]
|
|
218
|
+
*/
|
|
219
|
+
opacity?: number;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* A list of theme colors
|
|
223
|
+
* @examples [["rgb(122, 112, 112)", "rgb(175, 169, 169)", "rgb(228, 226, 226)"], ["rgb(48, 36, 179)", "rgb(105, 93, 255)", "rgb(199, 194, 255)", "rgb(134, 4, 129)", "rgb(204, 55, 198)", "rgb(236, 180, 234)", "rgb(220, 141, 0)", "rgb(249, 206, 61)", "rgb(253, 237, 182)", "rgb(6, 142, 84)", "rgb(58, 213, 147)", "rgb(181, 239, 215)", "rgb(85, 78, 78)", "rgb(149, 141, 141)", "rgb(215, 212, 212)"]]
|
|
224
|
+
*/
|
|
225
|
+
colors?: string[];
|
|
226
|
+
/**
|
|
227
|
+
* Font styling
|
|
228
|
+
*/
|
|
229
|
+
font?: {
|
|
230
|
+
/**
|
|
231
|
+
* Font family
|
|
232
|
+
* @examples ["Lato", "Montserrat", "Roboto Mono", "Arial", "Times New Roman"]
|
|
233
|
+
*/
|
|
234
|
+
fontFamily?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Font size in px
|
|
237
|
+
* @examples [10, 15, 18]
|
|
238
|
+
*/
|
|
239
|
+
fontSize?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Font weight
|
|
242
|
+
* @examples [400, 700]
|
|
243
|
+
*/
|
|
244
|
+
'font-weight'?: number;
|
|
245
|
+
/**
|
|
246
|
+
* Font style
|
|
247
|
+
* @examples ["normal", "italic", "oblique"]
|
|
248
|
+
*/
|
|
249
|
+
'font-style'?: 'normal';
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Dark or light theme
|
|
253
|
+
* @examples ["dark", "light"]
|
|
254
|
+
* @TJS-ignore
|
|
255
|
+
*/
|
|
256
|
+
darkOrLight?: 'dark' | 'light';
|
|
257
|
+
/**
|
|
258
|
+
* Dark or light theme for edit
|
|
259
|
+
* @examples ["dark-edit", "light-edit"]
|
|
260
|
+
* @TJS-ignore
|
|
261
|
+
*/
|
|
262
|
+
editDarkOrLight?: 'dark-edit' | 'light-edit';
|
|
263
|
+
baseFontSize?: number;
|
|
264
|
+
}
|
|
265
|
+
export interface ThemeViewOptions {
|
|
266
|
+
theme?: ThemeConfig;
|
|
267
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TitleViewOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Title in format {locale: "title"}, for example, {en: "Title"}
|
|
4
|
+
* @examples [{"en": "Title"}]
|
|
5
|
+
*/
|
|
6
|
+
title?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export interface DisplayTitleViewOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Title display option
|
|
11
|
+
*/
|
|
12
|
+
display?: {
|
|
13
|
+
/**
|
|
14
|
+
* Show or hide the title
|
|
15
|
+
*/
|
|
16
|
+
title?: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import type { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
|
|
2
|
+
import { LimitViewOptions, RankingViewOptions } from '../shared/common';
|
|
3
|
+
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
+
import { FilterViewOptions } from '../shared/filters';
|
|
5
|
+
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
6
|
+
import { SortViewOptions } from '../shared/sort';
|
|
7
|
+
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
8
|
+
export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, FilterViewOptions, TitleViewOptions, InfoTooltipViewOptions, LimitViewOptions, RankingViewOptions, SortViewOptions, SlicerFilterDisplayViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Rank
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
rank?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Rank bar
|
|
16
|
+
*/
|
|
17
|
+
rankbar?: {
|
|
18
|
+
/**
|
|
19
|
+
* Rank Bar position
|
|
20
|
+
* @default 'bottom'
|
|
21
|
+
*/
|
|
22
|
+
position?: 'bottom' | 'background';
|
|
23
|
+
/**
|
|
24
|
+
* Radius
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
27
|
+
radius?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Rank Bar padding
|
|
30
|
+
* @default 2
|
|
31
|
+
*/
|
|
32
|
+
padding?: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Range
|
|
36
|
+
*/
|
|
37
|
+
range?: {
|
|
38
|
+
/**
|
|
39
|
+
* Range type
|
|
40
|
+
* @default 'default'
|
|
41
|
+
*/
|
|
42
|
+
type?: 'default' | 'manual';
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Measure
|
|
46
|
+
*/
|
|
47
|
+
measure?: {
|
|
48
|
+
/**
|
|
49
|
+
* Measure style
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
style?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Measure color
|
|
55
|
+
* @default '#5A5A5A'
|
|
56
|
+
*/
|
|
57
|
+
color?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Measure height
|
|
60
|
+
* @default 13
|
|
61
|
+
*/
|
|
62
|
+
height?: number;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Multi-select
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
multiselect?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Filter with Apply button
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
applyFiltersWithButton?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Mode
|
|
76
|
+
* @default 'check'
|
|
77
|
+
*/
|
|
78
|
+
mode?: 'check' | 'button';
|
|
79
|
+
/**
|
|
80
|
+
* Padding
|
|
81
|
+
*/
|
|
82
|
+
padding?: {
|
|
83
|
+
/**
|
|
84
|
+
* Left padding
|
|
85
|
+
* @default 16
|
|
86
|
+
*/
|
|
87
|
+
left: number;
|
|
88
|
+
/**
|
|
89
|
+
* Right padding
|
|
90
|
+
* @default 16
|
|
91
|
+
*/
|
|
92
|
+
right: number;
|
|
93
|
+
/**
|
|
94
|
+
* Top padding
|
|
95
|
+
* @default 12
|
|
96
|
+
*/
|
|
97
|
+
top: number;
|
|
98
|
+
/**
|
|
99
|
+
* Bottom padding
|
|
100
|
+
* @default 12
|
|
101
|
+
*/
|
|
102
|
+
bottom: number;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Layout
|
|
106
|
+
*/
|
|
107
|
+
layout?: {
|
|
108
|
+
/**
|
|
109
|
+
* Layout alignment
|
|
110
|
+
* @default 'vertical'
|
|
111
|
+
*/
|
|
112
|
+
alignment?: 'vertical' | 'horizontal' | 'table' | 'rank-vertical';
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Horizontal item configuration
|
|
116
|
+
*/
|
|
117
|
+
horizontal?: {
|
|
118
|
+
/**
|
|
119
|
+
* Width of a horizontal item
|
|
120
|
+
* @default 175
|
|
121
|
+
*/
|
|
122
|
+
width?: number;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Table
|
|
126
|
+
*/
|
|
127
|
+
table?: {
|
|
128
|
+
/**
|
|
129
|
+
* Row height
|
|
130
|
+
* @default 24
|
|
131
|
+
*/
|
|
132
|
+
rowheight?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Columns
|
|
135
|
+
* @default 2
|
|
136
|
+
*/
|
|
137
|
+
columns?: number;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Search
|
|
141
|
+
*/
|
|
142
|
+
search?: {
|
|
143
|
+
/**
|
|
144
|
+
* Case-sensitive search
|
|
145
|
+
* @default false
|
|
146
|
+
*/
|
|
147
|
+
caseSensitive?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Keyphrase
|
|
150
|
+
* @default ''
|
|
151
|
+
* @TJS-ignore
|
|
152
|
+
*/
|
|
153
|
+
keyphrase?: string;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Select all
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
selectAll?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Manual measure range
|
|
162
|
+
* @default [[]]
|
|
163
|
+
*/
|
|
164
|
+
manualMeasureRange?: number[];
|
|
165
|
+
/**
|
|
166
|
+
* Start with subtype
|
|
167
|
+
* @default 'vertical'
|
|
168
|
+
*/
|
|
169
|
+
startWithSubType?: SlicerSubtype;
|
|
170
|
+
}
|
|
171
|
+
interface SlicerFilterDisplayViewOptions extends DisplayTitleViewOptions {
|
|
172
|
+
/**
|
|
173
|
+
* Display
|
|
174
|
+
*/
|
|
175
|
+
display: {
|
|
176
|
+
/**
|
|
177
|
+
* Display title
|
|
178
|
+
* @default false
|
|
179
|
+
*/
|
|
180
|
+
title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
181
|
+
/**
|
|
182
|
+
* Display search
|
|
183
|
+
* @default true
|
|
184
|
+
*/
|
|
185
|
+
search?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Display all
|
|
188
|
+
* @default true
|
|
189
|
+
*/
|
|
190
|
+
all?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Display measure
|
|
193
|
+
* @default true
|
|
194
|
+
*/
|
|
195
|
+
measure?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Display rankbar
|
|
198
|
+
* @default true
|
|
199
|
+
*/
|
|
200
|
+
rankbar?: boolean;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
export type SlicerSubtype = 'vertical' | 'horizontal' | 'table' | 'rank-vertical';
|
|
204
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
+
/**
|
|
3
|
+
* Measure slot definition of the Slicer filter
|
|
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
|
+
* Dimension slot definition of the Slicer filter
|
|
15
|
+
*/
|
|
16
|
+
interface DimensionSlot extends DashboardContentVizItemSlot {
|
|
17
|
+
name: 'dimension';
|
|
18
|
+
/**
|
|
19
|
+
* Dimension slot definition
|
|
20
|
+
*/
|
|
21
|
+
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Data definition of the Slicer filter
|
|
25
|
+
* @maxItems 2
|
|
26
|
+
*/
|
|
27
|
+
export type SlicerFilterSlots = (MeasureSlot | DimensionSlot)[];
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VizItemType } from '../shared/common';
|
|
2
|
+
import { SlicerFilterViewOptions } from './slicer-filter-options';
|
|
3
|
+
import { SlicerFilterSlots } from './slicer-filter-slots';
|
|
4
|
+
/**
|
|
5
|
+
* Slicer filter item
|
|
6
|
+
*/
|
|
7
|
+
export interface SlicerFilter {
|
|
8
|
+
/**
|
|
9
|
+
* Type of the item
|
|
10
|
+
*/
|
|
11
|
+
type: Extract<VizItemType, 'slicer-filter'>;
|
|
12
|
+
/**
|
|
13
|
+
* Options of the Slicer filter item
|
|
14
|
+
* @$ref ./slicer-filter-options.schema.json/
|
|
15
|
+
*/
|
|
16
|
+
options: SlicerFilterViewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Data definition of the Slicer filter
|
|
19
|
+
* @maxItems 2
|
|
20
|
+
* @$ref ./slicer-filter-slots.schema.json
|
|
21
|
+
*/
|
|
22
|
+
slots: SlicerFilterSlots;
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
|
|
2
|
+
import type { LimitViewOptions } from '../shared/common';
|
|
3
|
+
import type { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
+
import type { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
5
|
+
import type { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
6
|
+
export interface SliderFilterViewOptions extends Omit<DropObjectViewOptions, 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, LimitViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Padding of the slider filter
|
|
9
|
+
*/
|
|
10
|
+
padding?: {
|
|
11
|
+
/**
|
|
12
|
+
* Padding on the left side of the slider filter
|
|
13
|
+
* @default 16
|
|
14
|
+
*/
|
|
15
|
+
left?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Padding on the right side of the slider filter
|
|
18
|
+
* @default 16
|
|
19
|
+
*/
|
|
20
|
+
right?: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DashboardContentVizItemSlot, DateTimeSlotContent, NumericSlotContent } from '../shared/slots';
|
|
2
|
+
/**
|
|
3
|
+
* Slider metric slot definition of the slider filter.
|
|
4
|
+
*/
|
|
5
|
+
interface SliderMetricSlot extends DashboardContentVizItemSlot {
|
|
6
|
+
name: 'slidermetric';
|
|
7
|
+
/**
|
|
8
|
+
* Slider metric slot definition
|
|
9
|
+
*/
|
|
10
|
+
content: (NumericSlotContent | DateTimeSlotContent)[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Data definition of the Slider filter
|
|
14
|
+
* @maxItems 1
|
|
15
|
+
*/
|
|
16
|
+
export type SliderFilterSlots = (SliderMetricSlot)[];
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VizItemType } from '../shared/common';
|
|
2
|
+
import { SliderFilterViewOptions } from './slider-filter-options';
|
|
3
|
+
import { SliderFilterSlots } from './slider-filter-slots';
|
|
4
|
+
/**
|
|
5
|
+
* Slider filter item
|
|
6
|
+
*/
|
|
7
|
+
export interface SliderFilter {
|
|
8
|
+
/**
|
|
9
|
+
* Type of the item
|
|
10
|
+
*/
|
|
11
|
+
type: Extract<VizItemType, 'slider-filter'>;
|
|
12
|
+
/**
|
|
13
|
+
* Options of the slider filter item
|
|
14
|
+
* @$ref ./slider-filter-options.schema.json/
|
|
15
|
+
*/
|
|
16
|
+
options: SliderFilterViewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Data definition of the Slider filter
|
|
19
|
+
* @maxItems 1
|
|
20
|
+
* @$ref ./slider-filter-slots.schema.json
|
|
21
|
+
*/
|
|
22
|
+
slots: SliderFilterSlots;
|
|
23
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ObjectViewOptions } from '../shared/object-view-options';
|
|
2
|
+
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
3
|
+
export interface TextViewOptions extends Omit<ObjectViewOptions, 'display'>, TitleViewOptions, TextViewDisplayOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Content of the text item. The key is the language code and the value is the content in that language.
|
|
6
|
+
* @examples [{"en": "<h1>Hello World</h1>", "de": "<h1>Hallo Welt</h1>"}]
|
|
7
|
+
* @TJS-type object
|
|
8
|
+
*/
|
|
9
|
+
html?: Record<string, string>;
|
|
10
|
+
/**
|
|
11
|
+
* Padding of the text item
|
|
12
|
+
*/
|
|
13
|
+
padding?: {
|
|
14
|
+
/**
|
|
15
|
+
* Left padding of the text item in pixels
|
|
16
|
+
* @default 24
|
|
17
|
+
*/
|
|
18
|
+
left?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Right padding of the text item in pixels
|
|
21
|
+
* @default 24
|
|
22
|
+
*/
|
|
23
|
+
right?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Top padding of the text item in pixels
|
|
26
|
+
* @default 30
|
|
27
|
+
*/
|
|
28
|
+
top?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Bottom padding of the text item in pixels
|
|
31
|
+
* @default 30
|
|
32
|
+
*/
|
|
33
|
+
bottom?: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
interface TextViewDisplayOptions extends DisplayTitleViewOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Display options of the text item
|
|
39
|
+
*/
|
|
40
|
+
display?: {
|
|
41
|
+
/**
|
|
42
|
+
* Show or hide the title
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
title?: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
46
|
+
/**
|
|
47
|
+
* Hides the scrollbar of the text item
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
hideScrollbar?: boolean;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VizItemType } from '../shared/common';
|
|
2
|
+
import { TextViewOptions } from './text-options';
|
|
3
|
+
/**
|
|
4
|
+
* Text item
|
|
5
|
+
*/
|
|
6
|
+
export interface Text {
|
|
7
|
+
/**
|
|
8
|
+
* Type of the item
|
|
9
|
+
*/
|
|
10
|
+
type: Extract<VizItemType, 'text'>;
|
|
11
|
+
/**
|
|
12
|
+
* Options of the Text item
|
|
13
|
+
* @$ref ./text-options.schema.json/
|
|
14
|
+
*/
|
|
15
|
+
options: TextViewOptions;
|
|
16
|
+
}
|