@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.
Files changed (199) hide show
  1. package/README.md +121 -15
  2. package/index.cjs +52769 -28
  3. package/index.d.ts +4 -1
  4. package/index.js +52768 -30
  5. package/lib/dashboard-component/dashboard-base.d.ts +7 -7
  6. package/lib/viz-item/viz-item-component.d.ts +4 -0
  7. package/lib/viz-item/viz-item.base.d.ts +73 -0
  8. package/libs/dashboard-contents-types/index.d.ts +2 -0
  9. package/libs/dashboard-contents-types/json-schemas.d.ts +1 -0
  10. package/libs/dashboard-contents-types/src/index.d.ts +27 -0
  11. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +330 -0
  12. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +39 -0
  13. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +23 -0
  14. package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +3 -0
  15. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +257 -0
  16. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +23 -0
  17. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +39 -0
  18. package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +3 -0
  19. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +310 -0
  20. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +30 -0
  21. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +23 -0
  22. package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +3 -0
  23. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +98 -0
  24. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +41 -0
  25. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +23 -0
  26. package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +3 -0
  27. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +99 -0
  28. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +40 -0
  29. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +23 -0
  30. package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +3 -0
  31. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +138 -0
  32. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +41 -0
  33. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +23 -0
  34. package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +3 -0
  35. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +122 -0
  36. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +29 -0
  37. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +23 -0
  38. package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +3 -0
  39. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +258 -0
  40. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +39 -0
  41. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +23 -0
  42. package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +3 -0
  43. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +344 -0
  44. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +28 -0
  45. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +23 -0
  46. package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +3 -0
  47. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +94 -0
  48. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +29 -0
  49. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +23 -0
  50. package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +3 -0
  51. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +147 -0
  52. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +18 -0
  53. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +23 -0
  54. package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +3 -0
  55. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +130 -0
  56. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +28 -0
  57. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +23 -0
  58. package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +3 -0
  59. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +84 -0
  60. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +17 -0
  61. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +23 -0
  62. package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +3 -0
  63. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +185 -0
  64. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +29 -0
  65. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +23 -0
  66. package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +3 -0
  67. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +110 -0
  68. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +29 -0
  69. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +23 -0
  70. package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +3 -0
  71. package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +63 -0
  72. package/libs/dashboard-contents-types/src/lib/image/image.d.ts +16 -0
  73. package/libs/dashboard-contents-types/src/lib/image/index.d.ts +2 -0
  74. package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +3 -0
  75. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +354 -0
  76. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +39 -0
  77. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +23 -0
  78. package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +3 -0
  79. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +206 -0
  80. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +37 -0
  81. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +23 -0
  82. package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +3 -0
  83. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +124 -0
  84. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +17 -0
  85. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +23 -0
  86. package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +3 -0
  87. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +122 -0
  88. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +50 -0
  89. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +23 -0
  90. package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +3 -0
  91. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +212 -0
  92. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +61 -0
  93. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +23 -0
  94. package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +35 -0
  95. package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +3 -0
  96. package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +102 -0
  97. package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +11 -0
  98. package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +30 -0
  99. package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +28 -0
  100. package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +29 -0
  101. package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +24 -0
  102. package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +11 -0
  103. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +61 -0
  104. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +13 -0
  105. package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +81 -0
  106. package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +24 -0
  107. package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +11 -0
  108. package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +28 -0
  109. package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +66 -0
  110. package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +1 -0
  111. package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +4 -0
  112. package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +122 -0
  113. package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +31 -0
  114. package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +37 -0
  115. package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +5 -0
  116. package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +7 -0
  117. package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +25 -0
  118. package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +17 -0
  119. package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +316 -0
  120. package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +64 -0
  121. package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +267 -0
  122. package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +18 -0
  123. package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +3 -0
  124. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +204 -0
  125. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +28 -0
  126. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +23 -0
  127. package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +3 -0
  128. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +22 -0
  129. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +17 -0
  130. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +23 -0
  131. package/libs/dashboard-contents-types/src/lib/text/index.d.ts +2 -0
  132. package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +53 -0
  133. package/libs/dashboard-contents-types/src/lib/text/text.d.ts +16 -0
  134. package/libs/dashboard-contents-types/src/options.d.ts +26 -0
  135. package/libs/dashboard-contents-types/src/slots.d.ts +24 -0
  136. package/libs/embed-libs/embed/src/index.d.ts +5 -0
  137. package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-base.d.ts +7 -7
  138. package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +4 -0
  139. package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +73 -0
  140. package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
  141. package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
  142. package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
  143. package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
  144. package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
  145. package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
  146. package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
  147. package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
  148. package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
  149. package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
  150. package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
  151. package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +7 -0
  152. package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
  153. package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
  154. package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
  155. package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
  156. package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
  157. package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
  158. package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
  159. package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
  160. package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
  161. package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
  162. package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
  163. package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
  164. package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
  165. package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +4 -0
  166. package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
  167. package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
  168. package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
  169. package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +17 -0
  170. package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
  171. package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
  172. package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +4 -0
  173. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +13 -0
  174. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +24 -0
  175. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +13 -0
  176. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
  177. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +24 -0
  178. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +13 -0
  179. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
  180. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +13 -0
  181. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
  182. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +36 -0
  183. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
  184. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +24 -0
  185. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +13 -0
  186. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +24 -0
  187. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +13 -0
  188. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +15 -0
  189. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +14 -0
  190. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +24 -0
  191. package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
  192. package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
  193. package/luzmo-embed.min.js +62579 -2650
  194. package/package.json +5 -2
  195. package/src/index.d.ts +0 -2
  196. /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-component.d.ts +0 -0
  197. /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-styles.d.ts +0 -0
  198. /package/{src → libs/embed-libs/embed/src}/lib/helper/event-bus-handler.d.ts +0 -0
  199. /package/{src → libs/embed-libs/embed/src}/lib/luzmo-service.d.ts +0 -0
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Position of the Y-axis labels
3
+ */
4
+ export type YAxisLabelPosition = 'top' | 'middle' | 'bottom';
5
+ /**
6
+ * Position of the X-axis labels
7
+ */
8
+ export type XAxisLabelPosition = 'left' | 'center' | 'right';
9
+ /**
10
+ * Axis ticks density
11
+ */
12
+ export type AxisTicksDensity = 'compact' | 'normal' | 'sparse';
13
+ /**
14
+ * Axis scale type
15
+ */
16
+ export type AxisScaleType = 'linear' | 'logarithmic';
17
+ /**
18
+ * Axis grid lines style
19
+ */
20
+ export type AxisGridlinesStyle = 'solid' | 'dotted' | 'dashed';
21
+ /**
22
+ * Manual axis range options. Minimum and maximum value of the axis range.
23
+ */
24
+ export type ManualAxesRange = [
25
+ /**
26
+ * Minimum value of the axis range
27
+ * @examples [-15, 0, 0.1, 10, 100]
28
+ */
29
+ number,
30
+ /**
31
+ * Maximum value of the axis range
32
+ * @examples [-10, 0, 0.1, 10, 100]
33
+ */
34
+ number
35
+ ];
@@ -0,0 +1,3 @@
1
+ import { DropObjectViewOptions } from './drop-object-view-options';
2
+ export interface AxisObjectViewOptions extends DropObjectViewOptions {
3
+ }
@@ -0,0 +1,102 @@
1
+ import { ItemQueryRanking } from './query';
2
+ import { OrderDirection } from './sort';
3
+ export type LegendPosition = 'topLeft' | 'top' | 'topRight' | 'left' | 'middle' | 'right' | 'bottomLeft' | 'bottom' | 'bottomRight';
4
+ /**
5
+ * Axis ticks mode
6
+ */
7
+ export type AxisTicksMode = 'hide' | 'ticks' | 'gridlines';
8
+ /**
9
+ * Axis ticks style
10
+ */
11
+ export type AxisTicksStyle = 'auto' | 'userDefined';
12
+ /**
13
+ * Guidelines options
14
+ */
15
+ export interface Guidelines {
16
+ /**
17
+ * An array of guidelines
18
+ */
19
+ lines: GuidelineLine[];
20
+ style: GuidelineStyle;
21
+ }
22
+ export interface GuidelineLine {
23
+ /**
24
+ * Color of the guideline
25
+ * @examples ["#000000", "black", "rgba(0,0,0,1)"]
26
+ */
27
+ color: string;
28
+ /**
29
+ * Value type of the guideline
30
+ * @default "value"
31
+ */
32
+ type: GuidelineLineType;
33
+ /**
34
+ * Value of the guideline
35
+ * @examples [-10, 0, 0.1, 10, 100]
36
+ */
37
+ value?: number;
38
+ }
39
+ /**
40
+ * Style of the guidelines
41
+ */
42
+ export interface GuidelineStyle {
43
+ /**
44
+ * Dashed/dotted definition of the guideline
45
+ */
46
+ type: '0' | '1,2' | '3,3';
47
+ /**
48
+ * Width of the guideline
49
+ * @examples ["1px", "2px", "3.5px"]
50
+ */
51
+ width: string;
52
+ }
53
+ export type GuidelineLineType = 'median' | 'value' | 'average' | 'average open' | 'average close';
54
+ /**
55
+ * Null break options
56
+ * @default false
57
+ */
58
+ export type NullBreakViewOptions = {
59
+ nullBreak?: boolean;
60
+ };
61
+ /**
62
+ * Missing value options
63
+ */
64
+ export type MissingValueViewOptions = {
65
+ /**
66
+ * Missing value configuration
67
+ */
68
+ missingValue?: {
69
+ /**
70
+ * Type of the missing value
71
+ * @default "no"
72
+ */
73
+ type?: MissingValueType;
74
+ /**
75
+ * Value of the missing value
76
+ */
77
+ value?: number;
78
+ };
79
+ };
80
+ export type MissingValueType = 'no' | 'break' | 'manual';
81
+ export interface LimitViewOptions {
82
+ /**
83
+ * Show number of observations
84
+ */
85
+ limit: {
86
+ /**
87
+ * Number of observations value
88
+ * @default 100000
89
+ */
90
+ number?: number;
91
+ };
92
+ }
93
+ /**
94
+ * Ranking options
95
+ */
96
+ export interface RankingViewOptions {
97
+ ranking: ItemQueryRanking;
98
+ }
99
+ export type SortDirection = OrderDirection | '';
100
+ export type VizItemType = 'area-chart' | 'bar-chart' | 'bubble-chart' | 'box-plot' | 'bullet-chart' | 'choropleth-map' | 'circular-gauge' | 'circle-pack-chart' | 'column-chart' | 'combination-chart' | 'date-filter' | 'donut-chart' | 'dropdown-filter' | 'dynamic-imageobject' | 'evolution-number' | 'funnel-chart' | 'heat-map' | 'heat-table' | 'hexbin-map' | 'iframeobject' | 'image' | 'line-chart' | 'line-chart-forecast' | 'marker-map' | 'conditional-number' | 'ohlc-chart' | 'parallel-coordinates-plot' | 'pivot-table' | 'pyramid-chart' | 'radar-chart' | 'regular-table' | 'route-map' | 'sankey-diagram' | 'scatter-plot' | 'slicer-filter' | 'slider-filter' | 'spacer' | 'speedometer-chart' | 'spike-map' | 'strip-plot' | 'sunburst-chart' | 'symbol-map' | 'text' | 'treemap-chart' | 'venn-diagram' | 'video' | 'wordcloud-chart';
101
+ export type DatetimeDisplayMode = 'default' | 'weekday_number' | 'weekday_name' | 'day_in_month' | 'day_in_year' | 'month_name' | 'month_number' | 'week_number' | 'second_in_minute' | 'minute_in_hour' | 'hour_in_day' | 'quarter_number';
102
+ export type ScreenMode = 'desktop' | 'tablet' | 'mobile' | 'largeScreen' | 'fixed';
@@ -0,0 +1,11 @@
1
+ import { ObjectViewOptions } from './object-view-options';
2
+ export interface DropObjectViewOptions extends ObjectViewOptions {
3
+ /**
4
+ * The main color for the item, if omitted the default color from the theme will be used.
5
+ */
6
+ color?: string;
7
+ /**
8
+ * Additional check for dataset joinability
9
+ */
10
+ noLinkCheck?: boolean;
11
+ }
@@ -0,0 +1,30 @@
1
+ export interface FilterViewOptions {
2
+ /**
3
+ * Filter
4
+ */
5
+ filter?: {
6
+ /**
7
+ * Item IDs to ignore. If not provided, all other items will be filtered when something is changed on the current one.
8
+ * @type array
9
+ * @items.type string
10
+ * @items.format uuid
11
+ */
12
+ ignore?: string[];
13
+ /**
14
+ * Objects
15
+ * @type array
16
+ * @items.type string
17
+ * @items.format uuid
18
+ */
19
+ objects?: string[];
20
+ };
21
+ }
22
+ export interface FilterableByViewOptions {
23
+ /**
24
+ * Filterable by item IDs.
25
+ * @type array
26
+ * @items.type string
27
+ * @items.format uuid
28
+ */
29
+ filterableBy?: string[];
30
+ }
@@ -0,0 +1,28 @@
1
+ import { Currency } from './slots';
2
+ export type Formula = {
3
+ id: string;
4
+ /**
5
+ * @TJS-type object
6
+ */
7
+ name: Record<string, string>;
8
+ expression: string;
9
+ type: FormulaType;
10
+ subtype: FormulaSubtype;
11
+ format: string;
12
+ informat: FormulaInformat;
13
+ securableFormula?: {
14
+ securable_id: string;
15
+ formula_id: string;
16
+ };
17
+ currency?: Currency;
18
+ securable_id?: string;
19
+ currency_id?: string;
20
+ lowestLevel?: number;
21
+ level?: number;
22
+ duration_format?: 'long' | 'short' | 'time';
23
+ duration_levels?: number[];
24
+ color?: string;
25
+ };
26
+ export type FormulaType = 'hierarchy' | 'numeric' | 'datetime';
27
+ export type FormulaSubtype = 'duration' | 'currency' | 'date' | 'datetime';
28
+ export type FormulaInformat = 'hierarchy' | 'numeric' | 'YYYY-MM-DD HH:mm:ss.SSS' | 'MM-DD-YYYY HH:mm:ss.SSS' | 'DD-MM-YYYY HH:mm:ss.SSS' | 'YYYY-MM-DD HH:mm:ss.SSS ZZ' | 'MM-DD-YYYY HH:mm:ss.SSS ZZ' | 'DD-MM-YYYY HH:mm:ss.SSS ZZ' | 'X' | 'x';
@@ -0,0 +1,29 @@
1
+ export * from './axes';
2
+ export * from './axis-view-options';
3
+ export * from './common';
4
+ export * from './drop-object-view-options';
5
+ export * from './filters';
6
+ export * from './formula';
7
+ export * from './info-tooltip-options';
8
+ export * from './info-tooltip-options';
9
+ export * from './interactivity-brush';
10
+ export * from './interactivity-custom-events';
11
+ export * from './interactivity-custom-tooltip';
12
+ export * from './interactivity-drilldown';
13
+ export * from './interactivity-export';
14
+ export * from './interactivity-filter';
15
+ export * from './interactivity-go-to-url';
16
+ export * from './interactivity-measure-dimension-picker';
17
+ export * from './interactivity-target';
18
+ export * from './interpolation';
19
+ export * from './legend';
20
+ export * from './map-object-view-options';
21
+ export * from './object-view-options';
22
+ export * from './placeholder';
23
+ export * from './query';
24
+ export * from './ranges';
25
+ export * from './slots';
26
+ export * from './sort';
27
+ export * from './theme';
28
+ export * from './title';
29
+ export * from './item-filter-group';
@@ -0,0 +1,24 @@
1
+ export type InfoTooltipPosition = 'left' | 'right';
2
+ export interface InfoTooltipViewOptions {
3
+ /**
4
+ * Information tooltip configuration
5
+ * @TJS-ignore
6
+ */
7
+ annotate?: {
8
+ infoTooltip?: {
9
+ /**
10
+ * Information tooltip content in format {locale: "content"}, for example, {en: "Content"}
11
+ * @TJS-type object
12
+ */
13
+ content?: Record<string, string>;
14
+ /**
15
+ * Information tooltip position
16
+ */
17
+ position?: InfoTooltipPosition;
18
+ /**
19
+ * Is information tooltip active
20
+ */
21
+ active?: boolean;
22
+ };
23
+ };
24
+ }
@@ -0,0 +1,11 @@
1
+ export interface InteractivityBrushViewOptions {
2
+ /**
3
+ * Interactivity options
4
+ */
5
+ interactivity?: {
6
+ /**
7
+ * Filter on brush interactivity option
8
+ */
9
+ brush?: boolean;
10
+ };
11
+ }
@@ -0,0 +1,61 @@
1
+ import { ItemQueryAggregation } from './query';
2
+ /**
3
+ * Custom event configuration
4
+ */
5
+ export interface InteractivityCustomEvent {
6
+ /**
7
+ * Custom event name
8
+ */
9
+ name?: string;
10
+ /**
11
+ * Label in format {locale: "label"}, for example, {en: "Total Revenue"}
12
+ * @TJS-type object
13
+ */
14
+ label: Record<string, string>;
15
+ }
16
+ export interface InteractivityCustomEventExtraData {
17
+ /**
18
+ * Label
19
+ */
20
+ label: string;
21
+ /**
22
+ * Dataset id
23
+ * @format uuid
24
+ */
25
+ datasetId: string;
26
+ /**
27
+ * Column id
28
+ * @format uuid
29
+ */
30
+ columnId?: string;
31
+ /**
32
+ * Formula id
33
+ * @format uuid
34
+ */
35
+ formulaId?: string;
36
+ aggregation?: ItemQueryAggregation;
37
+ /**
38
+ * Weighted dataset id
39
+ * @format uuid
40
+ */
41
+ weightedDatasetId?: string;
42
+ /**
43
+ * Weighted column id
44
+ * @format uuid
45
+ */
46
+ weightedColumnId?: string;
47
+ }
48
+ export interface InteractivityCustomEventsViewOptions {
49
+ /**
50
+ * Interactivity options
51
+ */
52
+ interactivity?: {
53
+ /**
54
+ * Custom events interactivity option
55
+ */
56
+ customEvents?: {
57
+ events?: InteractivityCustomEvent[];
58
+ extraData?: InteractivityCustomEventExtraData[];
59
+ } | null;
60
+ };
61
+ }
@@ -0,0 +1,13 @@
1
+ export interface InteractivityCustomTooltipViewOptions {
2
+ /**
3
+ * Interactivity options
4
+ */
5
+ interactivity?: {
6
+ /**
7
+ * Custom tooltip in a key-value format. The key is the language code and the value is the content in that language.
8
+ * @examples [{"en": "Hello World", "de": "Hallo Welt"}]
9
+ * @TJS-type object
10
+ */
11
+ customTooltip?: Record<string, string> | null;
12
+ };
13
+ }
@@ -0,0 +1,81 @@
1
+ import { Column, GenericSlotContent, HierarchyLevel, SlotName } from './slots';
2
+ type DrilldownType = 'level' | 'other';
3
+ export interface DrilldownLevelType {
4
+ type: Extract<DrilldownType, 'level'>;
5
+ levels: number[];
6
+ active: boolean;
7
+ order: number;
8
+ }
9
+ export interface DrilldownOtherType {
10
+ /**
11
+ * Type of drilldown
12
+ */
13
+ type: Extract<DrilldownType, 'other'>;
14
+ /**
15
+ * Label in format {locale: "label"}, for example, {en: "Total Revenue"}
16
+ * @TJS-type object
17
+ */
18
+ label: Record<string, string>;
19
+ /**
20
+ * @TJS-type object
21
+ */
22
+ drilldownColumn: Record<string, any>;
23
+ /**
24
+ * Is active
25
+ */
26
+ active: boolean;
27
+ /**
28
+ * Order
29
+ */
30
+ order: number;
31
+ }
32
+ type DrilldownValueType = DrilldownLevelType | DrilldownOtherType;
33
+ export interface DrilldownValue {
34
+ active: boolean;
35
+ drillPath: number;
36
+ /**
37
+ * Label in format {locale: "label"}, for example, {en: "Total Revenue"}
38
+ * @TJS-type object
39
+ */
40
+ label: Record<string, string>;
41
+ values: DrilldownValueType[];
42
+ }
43
+ /**
44
+ * Drilldown interactivity option
45
+ */
46
+ export type Drilldown = Record<SlotName, DrilldownValue[]>;
47
+ export type DrilldownSubLevel = {
48
+ id?: string;
49
+ name: string;
50
+ level: number;
51
+ enabled: boolean;
52
+ togglingDisabled: boolean;
53
+ };
54
+ export interface DrilldownColumn extends Column {
55
+ index?: number;
56
+ columnHierarchies?: HierarchyLevel[] | string[];
57
+ level?: number;
58
+ actionName?: Record<string, string>;
59
+ hidden?: boolean;
60
+ }
61
+ export type DrilldownConfig = {
62
+ label: Record<string, string>;
63
+ selectedColumns: DrilldownColumn[];
64
+ slot: GenericSlotContent & {
65
+ drillDownActive?: boolean;
66
+ name: Record<string, string>;
67
+ sublevels: DrilldownSubLevel[];
68
+ disabled: boolean;
69
+ levelsActive: number;
70
+ };
71
+ allColumns: DrilldownColumn[];
72
+ };
73
+ export interface InteractivityDrilldownViewOptions {
74
+ /**
75
+ * Interactivity options
76
+ */
77
+ interactivity?: {
78
+ drilldown?: Drilldown;
79
+ };
80
+ }
81
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Export types
3
+ */
4
+ export type ExportType = 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw' | 'png';
5
+ /**
6
+ * Interactivity export options
7
+ */
8
+ export interface InteractivityExportViewOptions {
9
+ /**
10
+ * Interactivity options
11
+ */
12
+ interactivity?: {
13
+ /**
14
+ * Available export types interactivity option
15
+ * @default ['xlsx', 'csv', 'png']
16
+ */
17
+ availableExportTypes?: ExportType[];
18
+ /**
19
+ * Export types interactivity option
20
+ * @default ['xlsx', 'csv', 'png']
21
+ */
22
+ exportTypes?: ExportType[];
23
+ };
24
+ }
@@ -0,0 +1,11 @@
1
+ export interface InteractivityFilterOnSelectViewOptions {
2
+ /**
3
+ * Interactivity options
4
+ */
5
+ interactivity?: {
6
+ /**
7
+ * Filter on select interactivity option
8
+ */
9
+ select?: boolean;
10
+ };
11
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Url config for Go to URL
3
+ */
4
+ export interface UrlConfig {
5
+ /**
6
+ * URL target
7
+ */
8
+ target: '_parent' | '_self' | '_blank';
9
+ /**
10
+ * URL in format {locale: "url"}, for example, {en: "..."}
11
+ * @TJS-type object
12
+ */
13
+ url: Record<string, string>;
14
+ }
15
+ /**
16
+ * Go to URL option
17
+ */
18
+ export interface InteractivityGoToUrlViewOptions {
19
+ /**
20
+ * Interactivity options
21
+ */
22
+ interactivity?: {
23
+ /**
24
+ * Go to URL interactivity option
25
+ */
26
+ urlConfig?: UrlConfig;
27
+ };
28
+ }
@@ -0,0 +1,66 @@
1
+ import { Formula } from './formula';
2
+ import { Column, GenericSlotContent, HierarchyLevel, Slot } from './slots';
3
+ export interface PickerConfigurationColumnType extends GenericSlotContent {
4
+ columnHierarchies?: HierarchyLevel[] | string[];
5
+ hidden?: boolean;
6
+ readonly?: boolean;
7
+ selected?: boolean;
8
+ }
9
+ export interface PickerConfigurationColumn extends Column {
10
+ columnHierarchies: HierarchyLevel[] | string[];
11
+ isFormula: boolean;
12
+ }
13
+ export interface PickerConfigurationFormula extends Formula {
14
+ isFormula: boolean;
15
+ }
16
+ /**
17
+ * Measure dimension picker configuration
18
+ */
19
+ export type PickerConfiguration = {
20
+ slot: string;
21
+ description: string;
22
+ values: PickerConfigurationColumnType[];
23
+ order?: number;
24
+ allAvailableColumns?: {
25
+ /**
26
+ * @format uuid
27
+ */
28
+ datasetId: string;
29
+ /**
30
+ * @TJS-type object
31
+ */
32
+ datasetName: Record<string, string>;
33
+ columns: PickerConfigurationColumn[];
34
+ formulas: PickerConfigurationFormula[];
35
+ }[];
36
+ allowMultiple?: boolean;
37
+ acceptFormula: boolean;
38
+ };
39
+ export interface MeasureDimensionPickerModalData {
40
+ /**
41
+ * Current dashboard language
42
+ */
43
+ language: string;
44
+ slots: {
45
+ name: string;
46
+ content: PickerConfigurationColumnType[];
47
+ originalContent?: PickerConfigurationColumnType[];
48
+ }[];
49
+ slotDefinitions: Slot[];
50
+ /**
51
+ * Existing picker configuration
52
+ */
53
+ savedValues: PickerConfiguration[];
54
+ }
55
+ export type MeasureDimensionPickerModalEvent = PickerConfiguration[];
56
+ export interface InteractivityMeasureDimensionPickerViewOptions {
57
+ /**
58
+ * Interactivity options
59
+ */
60
+ interactivity?: {
61
+ /**
62
+ * An array of measure dimension picker configurations
63
+ */
64
+ measureDimensionPicker?: PickerConfiguration[];
65
+ };
66
+ }
@@ -0,0 +1 @@
1
+ export type InteractivityTarget = '_parent' | '_self' | '_blank';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Interpolation type
3
+ */
4
+ export type Interpolation = 'linear' | 'step-before' | 'step-after' | 'monotone';