@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,122 @@
1
+ export interface ItemQueryDimension {
2
+ /**
3
+ * @format uuid
4
+ */
5
+ column_id?: string;
6
+ /**
7
+ * @format uuid
8
+ */
9
+ formula_id?: string;
10
+ /**
11
+ * @format uuid
12
+ */
13
+ dataset_id?: string;
14
+ level?: number;
15
+ expression?: string;
16
+ include_nonoccurring?: boolean;
17
+ discretization?: ItemQueryDiscretization;
18
+ }
19
+ export interface ItemQueryDiscretization {
20
+ type: 'none' | 'linear' | 'powerset';
21
+ bins?: number;
22
+ over?: ItemQueryDimension[];
23
+ }
24
+ export type ItemFilterOrigin = 'filterFromVizItem' | 'filterFromFilterItem' | 'itemFilter' | 'global';
25
+ export type ItemQueryFilterExpression = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'to_date' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? is null' | '? is not null';
26
+ export interface ItemFilterProperties {
27
+ /**
28
+ * @format uuid
29
+ */
30
+ id?: string;
31
+ origin?: ItemFilterOrigin;
32
+ type?: 'where' | 'having';
33
+ viz?: string;
34
+ ignore?: string[];
35
+ objects?: string[];
36
+ }
37
+ export interface ItemFilter {
38
+ /**
39
+ * Filter expression from a predefined list of expressions.
40
+ */
41
+ expression: ItemQueryFilterExpression;
42
+ /**
43
+ * Filter parameters.
44
+ */
45
+ parameters: [
46
+ {
47
+ /**
48
+ * @format uuid
49
+ */
50
+ dataset_id: string;
51
+ /**
52
+ * @format uuid
53
+ */
54
+ column_id?: string;
55
+ level?: number;
56
+ lowestLevel?: number;
57
+ discretization?: ItemQueryDiscretization;
58
+ expression?: string;
59
+ }?,
60
+ any?
61
+ ];
62
+ /**
63
+ * Filter properties.
64
+ */
65
+ properties?: ItemFilterProperties;
66
+ }
67
+ declare const filterConditionOr = "or";
68
+ declare const filterConditionAnd = "and";
69
+ export type FilterConditionOr = typeof filterConditionOr;
70
+ export type FilterConditionAnd = typeof filterConditionAnd;
71
+ export interface ItemFilterGroup {
72
+ /**
73
+ * Filter group id.
74
+ *
75
+ * @format uuid
76
+ */
77
+ id: string;
78
+ /**
79
+ * "or" or "and" condition.
80
+ */
81
+ condition: FilterConditionOr | FilterConditionAnd;
82
+ /**
83
+ * Specific filters which contain expressions, parameters, etc.
84
+ */
85
+ filters: ItemFilter[];
86
+ /**
87
+ * Item filter subgroups. Has the same structure as filter group.
88
+ */
89
+ subGroups: ItemFilterGroup[];
90
+ /**
91
+ * Value specifies the origin, for example, "itemFilter" or "global".
92
+ */
93
+ origin: ItemFilterOrigin;
94
+ /**
95
+ * Stores single dataset id for whole FilterGroup if origin is 'global'.
96
+ *
97
+ * @format uuid
98
+ */
99
+ datasetId?: string;
100
+ /**
101
+ * Stores vizItem (chart) id if origin is not 'global'.
102
+ *
103
+ * @format uuid
104
+ * @TJS-ignore
105
+ */
106
+ vizId?: string;
107
+ /**
108
+ * Specifies if it's a drilldown filter group.
109
+ * @TJS-ignore
110
+ */
111
+ isDrilldown?: boolean;
112
+ /**
113
+ * @TJS-ignore
114
+ */
115
+ type?: 'injected';
116
+ }
117
+ export type FilterGroup = ItemFilterGroup;
118
+ export type FilterOrigin = ItemFilterOrigin;
119
+ export type Filter = ItemFilter;
120
+ export type FilterExpression = ItemQueryFilterExpression;
121
+ export type FilterOperators = FilterConditionOr | FilterConditionAnd;
122
+ export {};
@@ -0,0 +1,31 @@
1
+ import { LegendPosition } from './common';
2
+ export interface LegendViewOptions {
3
+ /**
4
+ * Legend options
5
+ */
6
+ legend?: {
7
+ /**
8
+ * Type of the legend. Only available when the legend is shown.
9
+ */
10
+ type?: 'list' | 'bar';
11
+ /**
12
+ * Position of the legend. Only available when the legend is shown.
13
+ */
14
+ position?: LegendPosition;
15
+ /**
16
+ * Size of the legend. Only available when the legend is shown.
17
+ */
18
+ size?: 'S' | 'M' | 'L';
19
+ };
20
+ }
21
+ export interface DisplayLegendViewOptions {
22
+ /**
23
+ * Legend display option
24
+ */
25
+ display?: {
26
+ /**
27
+ * Show or hide the legend
28
+ */
29
+ legend?: boolean;
30
+ };
31
+ }
@@ -0,0 +1,37 @@
1
+ import type { LatLngBoundsExpression } from 'leaflet';
2
+ import { LimitViewOptions } from './common';
3
+ import { DropObjectViewOptions } from './drop-object-view-options';
4
+ export interface MapObjectViewOptions extends DropObjectViewOptions, LimitViewOptions {
5
+ tileProvider?: TileProvider;
6
+ vectorTileProvider?: VectorTileProvider;
7
+ enabled?: {
8
+ zoom?: boolean;
9
+ pan?: boolean;
10
+ pitchBearing?: boolean;
11
+ repositionOnRefresh?: boolean;
12
+ };
13
+ zoomRange: [number, number];
14
+ pin?: {
15
+ auto?: boolean;
16
+ center?: [number, number];
17
+ zoom?: number;
18
+ bearing?: number;
19
+ pitch?: number;
20
+ };
21
+ disableWebgl?: boolean;
22
+ overlays?: any[];
23
+ }
24
+ export interface VectorTileProvider {
25
+ name?: string;
26
+ id?: string;
27
+ url?: string;
28
+ attribution?: string;
29
+ rasterName?: string;
30
+ }
31
+ export interface TileProvider {
32
+ name?: string;
33
+ url?: string;
34
+ bounds?: LatLngBoundsExpression;
35
+ attribution?: string;
36
+ vectorId?: string;
37
+ }
@@ -0,0 +1,5 @@
1
+ import { FilterableByViewOptions, FilterViewOptions } from './filters';
2
+ import { ThemeViewOptions } from './theme';
3
+ import { DisplayTitleViewOptions, TitleViewOptions } from './title';
4
+ export interface ObjectViewOptions extends FilterViewOptions, ThemeViewOptions, TitleViewOptions, DisplayTitleViewOptions, FilterableByViewOptions {
5
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Placeholder in format {locale: "placeholder"}, for example, {en: "placeholder"}
3
+ * @TJS-type object
4
+ */
5
+ export interface PlaceholderViewOptions {
6
+ placeholder?: Record<string, string>;
7
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Basic aggregation query type
3
+ */
4
+ export type BasicItemQueryAggregation = 'count' | 'distinctcount';
5
+ /**
6
+ * Aggregation query type
7
+ */
8
+ export type ItemQueryAggregation = BasicItemQueryAggregation | 'sum' | 'cumulativesum' | 'average' | 'median' | 'min' | 'max' | 'stddev' | 'weightedaverage' | 'rate' | 'histogram';
9
+ /**
10
+ * Item query ranking
11
+ */
12
+ export interface ItemQueryRanking {
13
+ /**
14
+ * Item query ranking is active
15
+ */
16
+ active: boolean;
17
+ /**
18
+ * Item query ranking direction
19
+ */
20
+ direction: 'top' | 'bottom';
21
+ /**
22
+ * Item query ranking number
23
+ */
24
+ number: number;
25
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Values range options that are configured manually
3
+ */
4
+ export interface ManualValuesRange {
5
+ /**
6
+ * Value of the range
7
+ */
8
+ val?: number;
9
+ /**
10
+ * Color of the range
11
+ */
12
+ color?: string;
13
+ /**
14
+ * Is negative infinity range
15
+ */
16
+ isNegativeInfinityRange?: boolean;
17
+ }
@@ -0,0 +1,316 @@
1
+ import { DatetimeDisplayMode } from './common';
2
+ import { FormulaSubtype, FormulaType } from './formula';
3
+ import { BasicItemQueryAggregation, ItemQueryAggregation } from './query';
4
+ export type SlotName = 'x-axis' | 'y-axis' | 'category' | 'measure' | 'coordinates' | 'legend' | 'geo' | 'image' | 'color' | 'levels' | 'slidermetric' | 'dimension' | 'destination' | 'source' | 'time' | 'identifier' | 'target' | 'size' | 'name' | 'columns' | 'column' | 'row' | 'evolution' | 'close' | 'open' | 'low' | 'high' | 'order' | 'route';
5
+ export interface DashboardContentVizItemSlot {
6
+ /**
7
+ * Name of the slot
8
+ */
9
+ name: SlotName;
10
+ content: GenericSlotContent[];
11
+ /**
12
+ * @TJS-ignore
13
+ */
14
+ originalContent?: GenericSlotContent[] | null;
15
+ }
16
+ export type HierarchyLevel = {
17
+ id: string;
18
+ color: string;
19
+ level: number;
20
+ /**
21
+ * @TJS-type object
22
+ */
23
+ name: Record<string, string>;
24
+ };
25
+ export type Currency = {
26
+ id: string;
27
+ name: string;
28
+ symbol: string;
29
+ };
30
+ export type JoinType = {
31
+ id: string;
32
+ currency_id: string | null;
33
+ securable_id: string;
34
+ hierarchy_enabled?: boolean;
35
+ join: {
36
+ column_id: string;
37
+ created_at: string;
38
+ update_at: string;
39
+ updated_at?: string;
40
+ subtype?: string;
41
+ type: 'lookup' | 'exact';
42
+ joins_id: string;
43
+ };
44
+ };
45
+ export type Column = {
46
+ cardinality?: number;
47
+ color: string;
48
+ currency_id?: string;
49
+ currency?: Currency;
50
+ duration_format: 'long' | 'short' | 'time';
51
+ duration_levels: number[];
52
+ expression?: string;
53
+ format: string;
54
+ hierarchy_enabled: boolean;
55
+ hierarchyLevels: HierarchyLevel[];
56
+ highestLevel: number;
57
+ id: string;
58
+ informat?: string;
59
+ isLabel?: boolean;
60
+ joins: JoinType[];
61
+ level?: number;
62
+ lowestLevel: number;
63
+ name: Record<string, string>;
64
+ order?: number;
65
+ securable_id: string;
66
+ source_name?: string;
67
+ subtype: ColumnSubtype;
68
+ type: ColumnType;
69
+ version?: number;
70
+ width?: number;
71
+ };
72
+ export type ColumnType = 'numeric' | 'hierarchy' | 'datetime' | 'spatial';
73
+ export type ColumnSubtype = 'duration' | 'currency' | 'coordinates' | 'hierarchy_element_expression' | 'topography';
74
+ export interface GenericSlotContent {
75
+ /**
76
+ * Column / Formula type
77
+ */
78
+ type?: ColumnType | FormulaType;
79
+ /**
80
+ * Column subtype
81
+ */
82
+ subtype?: ColumnSubtype | FormulaSubtype | null;
83
+ /**
84
+ * Label in format {locale: "label"}, for example, {en: "Total Revenue"}
85
+ * @TJS-type object
86
+ */
87
+ label?: Record<string, string>;
88
+ /**
89
+ * Dataset id
90
+ * @format uuid
91
+ */
92
+ set?: string;
93
+ /**
94
+ * Column id
95
+ * @format uuid
96
+ */
97
+ column?: string;
98
+ /**
99
+ * Dataset formula id. Formula is an entity similar to a column. Formula can be added on the dataset details page.
100
+ * @format uuid
101
+ */
102
+ formula?: string;
103
+ /**
104
+ * D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
105
+ * It can also be used for "hierarchy" formatting but when it's used in the measure slot.
106
+ */
107
+ format?: string;
108
+ /**
109
+ * Currency code, for example "€" or "$". It is only used when the column type is "numeric" and subtype is "currency".
110
+ */
111
+ currency?: string | null;
112
+ /**
113
+ * Aggregation function. It can be used with a "numeric" column type, and with some limitations with "hierarchy" and "datetime" column types.
114
+ */
115
+ aggregationFunc?: ItemQueryAggregation;
116
+ /**
117
+ * Aggregation weight. It can be used with a "numeric" column type.
118
+ */
119
+ aggregationWeight?: {
120
+ /**
121
+ * Dataset id
122
+ * @format uuid
123
+ */
124
+ set: string;
125
+ /**
126
+ * Column id
127
+ * @format uuid
128
+ */
129
+ column: string;
130
+ /**
131
+ * Column subtype
132
+ */
133
+ columnSubType: ColumnSubtype;
134
+ };
135
+ /**
136
+ * Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.
137
+ */
138
+ color?: string | null;
139
+ /**
140
+ * "hierarchy" or "datetime" level
141
+ * @TJS-type ["number", "null"]
142
+ */
143
+ level?: number | null;
144
+ /**
145
+ * Lowest "hierarchy" or "datetime" level
146
+ */
147
+ lowestLevel?: number | null;
148
+ /**
149
+ * Bin definition. It can be used when a "numeric" column is used as a category.
150
+ */
151
+ bins?: {
152
+ /**
153
+ * Enable or disable binning
154
+ */
155
+ enabled: boolean;
156
+ /**
157
+ * Defines the range of the bins
158
+ */
159
+ number?: number;
160
+ };
161
+ /**
162
+ * Duration definition. It's only used when the column type is "numeric" and subtype is "duration".
163
+ */
164
+ duration?: {
165
+ /**
166
+ * Duration levels used
167
+ */
168
+ levels: number[];
169
+ /**
170
+ * Duration format
171
+ */
172
+ format: 'short' | 'long' | 'time';
173
+ };
174
+ /**
175
+ * Enable or disable grand totals, they're only used in Pivot table
176
+ */
177
+ grandTotals?: {
178
+ enabled: boolean;
179
+ };
180
+ /**
181
+ * Shows empty areas for geo slots (with the name "geo" and content type 'spacial).
182
+ * Also, it can be set in the options' advanced settings of the Choropleth map.
183
+ */
184
+ include_nonoccurring?: boolean;
185
+ /**
186
+ * If it's set it will be used for datetime formatting together with weekStart, weekDayNameFormat, monthNameFormat
187
+ */
188
+ datetimeDisplayMode?: DatetimeDisplayMode;
189
+ /**
190
+ * Week start day, 'sunday' or 'monday'. For datetime column formatting.
191
+ */
192
+ weekStart?: 'sunday' | 'monday';
193
+ /**
194
+ * Week day name format for datetime column formatting
195
+ */
196
+ weekDayNameFormat?: 'long' | 'short' | 'letter';
197
+ /**
198
+ * Month name format for datetime column formatting
199
+ */
200
+ monthNameFormat?: 'long' | 'short' | 'letter';
201
+ /**
202
+ * It's something that is used internally for Demo Data
203
+ * @TJS-ignore
204
+ */
205
+ cardinality?: number;
206
+ /**
207
+ * It's used internally for drilldown interactivity
208
+ * @TJS-ignore
209
+ */
210
+ drilldownColumn?: GenericSlotContent;
211
+ /**
212
+ * It's used internally for drilldown interactivity
213
+ * @TJS-ignore
214
+ */
215
+ drilldownLevel?: number;
216
+ /**
217
+ * Id of the slot. It's used in some cases but for internal needs.
218
+ * @format uuid
219
+ * @TJS-ignore
220
+ */
221
+ id?: string;
222
+ /**
223
+ * Index of the slot. It's used in some cases but for internal needs.
224
+ * @TJS-ignore
225
+ */
226
+ index?: number;
227
+ /**
228
+ * It's used internally for 'datetime' tupe
229
+ * @TJS-ignore
230
+ */
231
+ multi?: boolean;
232
+ /**
233
+ * The name of the slot. It's used in some cases but for internal needs.
234
+ * @TJS-ignore
235
+ */
236
+ slotName?: string;
237
+ /**
238
+ * It's used in some cases but for internal needs.
239
+ * @TJS-ignore
240
+ */
241
+ sortableIndex?: number;
242
+ /**
243
+ * It's used in some cases but for internal needs.
244
+ * @TJS-ignore
245
+ */
246
+ sortableSelected?: boolean;
247
+ /**
248
+ * It's used internally in parallel-coordinates-plot
249
+ * @TJS-ignore
250
+ */
251
+ sortOrder?: number | string;
252
+ /**
253
+ * It's something that is used internally by line-chart-forecast
254
+ * @TJS-ignore
255
+ */
256
+ model?: any;
257
+ }
258
+ export interface NumericSlotContent extends Omit<GenericSlotContent, 'level' | 'lowestLevel' | 'include_nonoccurring' | 'datetimeDisplayMode' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat'> {
259
+ /**
260
+ * "numeric" column / formula type
261
+ */
262
+ type: 'numeric';
263
+ }
264
+ export interface HierarchySlotContent extends Omit<GenericSlotContent, 'formula' | 'currency' | 'aggregationWeight' | 'bins' | 'duration' | 'include_nonoccurring' | 'datetimeDisplayMode' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat'> {
265
+ /**
266
+ * "hierarchy" column type
267
+ */
268
+ type?: 'hierarchy';
269
+ /**
270
+ * Basic aggregation function. It can be used when a "hierarchy" column is used in a measure slot.
271
+ */
272
+ aggregationFunc?: BasicItemQueryAggregation;
273
+ }
274
+ export interface DateTimeSlotContent extends Omit<GenericSlotContent, 'formula' | 'currency' | 'aggregationWeight' | 'bins' | 'duration' | 'include_nonoccurring'> {
275
+ /**
276
+ * "datetime" column type
277
+ */
278
+ type?: 'datetime';
279
+ /**
280
+ * There's no subtype for "datetime", it can be null or omitted
281
+ */
282
+ subtype?: null;
283
+ /**
284
+ * Basic aggregation function. It can be used when a "datetime" column is used in a measure slot.
285
+ */
286
+ aggregationFunc?: BasicItemQueryAggregation;
287
+ }
288
+ export interface SpatialSlotContent extends Omit<GenericSlotContent, 'formula' | 'format' | 'currency' | 'aggregationFunc' | 'aggregationWeight' | 'level' | 'lowestLevel' | 'bins' | 'duration' | 'datetimeDisplayMode' | 'grandTotals' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat'> {
289
+ /**
290
+ * "spatial" column type
291
+ */
292
+ type?: 'spatial';
293
+ }
294
+ export type Slot = {
295
+ accept?: (ColumnType | FormulaType)[];
296
+ acceptSubtype?: (ColumnSubtype | FormulaSubtype)[];
297
+ acceptFormula?: boolean;
298
+ content?: GenericSlotContent[];
299
+ description?: string;
300
+ minimumColumn?: number;
301
+ multiple?: boolean;
302
+ hidden?: boolean;
303
+ options?: {
304
+ noBinning?: boolean;
305
+ noAggregation?: boolean;
306
+ grandTotals?: boolean;
307
+ showOnlyFirstSlotGrandTotals?: boolean;
308
+ cumulative?: boolean;
309
+ datetimeDisplayOptions?: boolean;
310
+ showOnlyFirstSlotContentOptions?: boolean;
311
+ };
312
+ name?: SlotName;
313
+ required?: boolean;
314
+ rotate?: boolean;
315
+ type?: 'numeric' | 'categorical' | 'mixed';
316
+ };
@@ -0,0 +1,64 @@
1
+ import { ItemQueryAggregation } from './query';
2
+ export type OrderDirection = 'asc' | 'desc';
3
+ export interface DashboardContentVizItemSort {
4
+ /**
5
+ * Id.
6
+ *
7
+ * @format uuid
8
+ */
9
+ id?: string;
10
+ /**
11
+ * "asc" or "desc" sort direction.
12
+ */
13
+ direction?: OrderDirection;
14
+ /**
15
+ * Sort by setting.
16
+ */
17
+ by?: 'measure' | 'category' | 'column';
18
+ /**
19
+ * Column id.
20
+ *
21
+ * @format uuid
22
+ */
23
+ column?: string;
24
+ /**
25
+ * Formula id.
26
+ *
27
+ * @format uuid
28
+ */
29
+ formula?: string;
30
+ /**
31
+ * Set id.
32
+ *
33
+ * @format uuid
34
+ */
35
+ set?: string;
36
+ /**
37
+ * Aggregation settings.
38
+ */
39
+ aggregation?: {
40
+ /**
41
+ * Aggregation function name.
42
+ */
43
+ type: ItemQueryAggregation;
44
+ /**
45
+ * Dataset id.
46
+ *
47
+ * @format uuid
48
+ */
49
+ dataset_id?: string;
50
+ /**
51
+ * Column id.
52
+ *
53
+ * @format uuid
54
+ */
55
+ column_id?: string;
56
+ /**
57
+ * Level.
58
+ */
59
+ level?: number;
60
+ };
61
+ }
62
+ export interface SortViewOptions {
63
+ sort: DashboardContentVizItemSort;
64
+ }