@luzmo/embed 6.1.4 → 6.1.6

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/CHANGELOG.md +12 -0
  2. package/index.cjs +1873 -4122
  3. package/index.js +1873 -4122
  4. package/luzmo-embed.min.js +1873 -4122
  5. package/package.json +3 -3
  6. package/libs/dashboard-contents-types/index.d.ts +0 -2
  7. package/libs/dashboard-contents-types/json-schemas.d.ts +0 -45234
  8. package/libs/dashboard-contents-types/src/index.d.ts +0 -28
  9. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +0 -334
  10. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +0 -39
  11. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +0 -23
  12. package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +0 -3
  13. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +0 -258
  14. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +0 -23
  15. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +0 -39
  16. package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +0 -3
  17. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +0 -310
  18. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +0 -30
  19. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +0 -23
  20. package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +0 -3
  21. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +0 -98
  22. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +0 -41
  23. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +0 -23
  24. package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +0 -3
  25. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +0 -99
  26. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +0 -40
  27. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +0 -23
  28. package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +0 -3
  29. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +0 -138
  30. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +0 -41
  31. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +0 -23
  32. package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +0 -3
  33. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +0 -122
  34. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +0 -29
  35. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +0 -23
  36. package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +0 -3
  37. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +0 -259
  38. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +0 -39
  39. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +0 -23
  40. package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +0 -3
  41. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +0 -344
  42. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +0 -28
  43. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +0 -23
  44. package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +0 -3
  45. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +0 -94
  46. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +0 -29
  47. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +0 -23
  48. package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +0 -3
  49. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +0 -146
  50. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +0 -18
  51. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +0 -23
  52. package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +0 -3
  53. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +0 -131
  54. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +0 -28
  55. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +0 -23
  56. package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +0 -3
  57. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +0 -83
  58. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +0 -17
  59. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +0 -23
  60. package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +0 -3
  61. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +0 -200
  62. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +0 -29
  63. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +0 -23
  64. package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +0 -3
  65. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +0 -110
  66. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +0 -29
  67. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +0 -23
  68. package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +0 -3
  69. package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +0 -63
  70. package/libs/dashboard-contents-types/src/lib/image/image.d.ts +0 -16
  71. package/libs/dashboard-contents-types/src/lib/image/index.d.ts +0 -2
  72. package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +0 -3
  73. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +0 -354
  74. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +0 -39
  75. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +0 -23
  76. package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +0 -3
  77. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +0 -206
  78. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +0 -37
  79. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +0 -23
  80. package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +0 -3
  81. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +0 -124
  82. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +0 -17
  83. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +0 -23
  84. package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +0 -3
  85. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +0 -123
  86. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +0 -50
  87. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +0 -23
  88. package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +0 -3
  89. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +0 -213
  90. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +0 -61
  91. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +0 -23
  92. package/libs/dashboard-contents-types/src/lib/search-filter/index.d.ts +0 -3
  93. package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-options.d.ts +0 -56
  94. package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-slots.d.ts +0 -17
  95. package/libs/dashboard-contents-types/src/lib/search-filter/search-filter.d.ts +0 -23
  96. package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +0 -35
  97. package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +0 -3
  98. package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +0 -103
  99. package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +0 -14
  100. package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +0 -32
  101. package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +0 -28
  102. package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +0 -30
  103. package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +0 -24
  104. package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +0 -11
  105. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +0 -61
  106. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +0 -13
  107. package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +0 -81
  108. package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +0 -24
  109. package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +0 -11
  110. package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +0 -28
  111. package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +0 -66
  112. package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +0 -1
  113. package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +0 -4
  114. package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +0 -174
  115. package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +0 -31
  116. package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +0 -37
  117. package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +0 -6
  118. package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +0 -10
  119. package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +0 -25
  120. package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +0 -17
  121. package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +0 -373
  122. package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +0 -64
  123. package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +0 -271
  124. package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +0 -18
  125. package/libs/dashboard-contents-types/src/lib/shared/viz-item.d.ts +0 -60
  126. package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +0 -3
  127. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +0 -205
  128. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +0 -28
  129. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +0 -23
  130. package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +0 -3
  131. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +0 -22
  132. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +0 -17
  133. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +0 -23
  134. package/libs/dashboard-contents-types/src/lib/text/index.d.ts +0 -2
  135. package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +0 -53
  136. package/libs/dashboard-contents-types/src/lib/text/text.d.ts +0 -16
  137. package/libs/dashboard-contents-types/src/options.d.ts +0 -25
  138. package/libs/dashboard-contents-types/src/slots.d.ts +0 -24
  139. package/libs/embed-libs/embed/src/index.d.ts +0 -5
  140. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
  141. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
  142. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
  143. package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +0 -1
  144. package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +0 -6
  145. package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +0 -4
  146. package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +0 -72
  147. package/libs/embed-libs/shared-embed/src/index.common.d.ts +0 -33
  148. package/libs/embed-libs/shared-embed/src/index.d.ts +0 -2
  149. package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +0 -1
  150. package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +0 -2
  151. package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +0 -2
  152. package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +0 -5
  153. package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +0 -7
  154. package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +0 -5
  155. package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +0 -1
  156. package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +0 -3
  157. package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +0 -16
  158. package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +0 -7
  159. package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +0 -8
  160. package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +0 -18
  161. package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +0 -1
  162. package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +0 -27
  163. package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +0 -4
  164. package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +0 -3
  165. package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +0 -3
  166. package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +0 -3
  167. package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +0 -2
  168. package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +0 -2
  169. package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +0 -2
  170. package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +0 -3
  171. package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +0 -3
  172. package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +0 -4
  173. package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +0 -103
  174. package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +0 -45
  175. package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +0 -73
  176. package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +0 -17
  177. package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +0 -32
  178. package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +0 -44
  179. package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +0 -4
  180. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +0 -13
  181. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +0 -24
  182. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +0 -13
  183. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +0 -2
  184. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +0 -24
  185. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +0 -13
  186. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +0 -2
  187. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +0 -13
  188. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +0 -36
  189. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +0 -36
  190. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +0 -14
  191. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +0 -24
  192. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +0 -13
  193. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +0 -24
  194. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +0 -13
  195. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +0 -15
  196. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +0 -14
  197. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +0 -24
  198. package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +0 -1
  199. package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +0 -2
@@ -1,4 +0,0 @@
1
- /**
2
- * Interpolation type
3
- */
4
- export type Interpolation = 'linear' | 'step-before' | 'step-after' | 'monotone';
@@ -1,174 +0,0 @@
1
- export interface ItemQueryDimension {
2
- /**
3
- * @format uuid
4
- * @TJS-ignore
5
- * @deprecated user columnId instead.
6
- */
7
- column_id?: string;
8
- /**
9
- * @format uuid
10
- * @TJS-ignore
11
- * @deprecated use formulaId instead.
12
- */
13
- formula_id?: string;
14
- /**
15
- * @format uuid
16
- * @TJS-ignore
17
- * @deprecated use datasetId instead.
18
- */
19
- dataset_id?: string;
20
- /**
21
- * Column id
22
- * @format uuid
23
- */
24
- columnId?: string;
25
- /**
26
- * Formula id
27
- * @format uuid
28
- */
29
- formulaId?: string;
30
- /**
31
- * Dataset id
32
- * @format uuid
33
- */
34
- datasetId?: string;
35
- level?: number;
36
- expression?: string;
37
- include_nonoccurring?: boolean;
38
- discretization?: ItemQueryDiscretization;
39
- }
40
- export interface ItemQueryDiscretization {
41
- type: 'none' | 'linear' | 'powerset';
42
- bins?: number;
43
- over?: ItemQueryDimension[];
44
- }
45
- export type ItemFilterOrigin = 'filterFromVizItem' | 'filterFromFilterItem' | 'itemFilter' | 'global';
46
- 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' | 'ago' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? is null' | '? is not null';
47
- export interface ItemFilterProperties {
48
- /**
49
- * @format uuid
50
- */
51
- id?: string;
52
- origin?: ItemFilterOrigin;
53
- type?: 'where' | 'having';
54
- /**
55
- * @format uuid
56
- * @TJS-ignore
57
- * @deprecated use itemId instead.
58
- */
59
- viz?: string;
60
- /**
61
- * itemId of the chart.
62
- * @format uuid
63
- */
64
- itemId?: string;
65
- ignore?: string[];
66
- objects?: string[];
67
- }
68
- export interface ItemFilter {
69
- /**
70
- * Filter expression from a predefined list of expressions.
71
- */
72
- expression: ItemQueryFilterExpression;
73
- /**
74
- * Filter parameters.
75
- */
76
- parameters: [
77
- {
78
- /**
79
- * @format uuid
80
- * @TJS-ignore
81
- * @deprecated use datasetId instead.
82
- */
83
- dataset_id?: string;
84
- /**
85
- * @format uuid
86
- * @TJS-ignore
87
- * @deprecated use columnId instead.
88
- */
89
- column_id?: string;
90
- /**
91
- * Dataset id
92
- * @format uuid
93
- */
94
- datasetId?: string;
95
- /**
96
- * Column id
97
- * @format uuid
98
- */
99
- columnId?: string;
100
- level?: number;
101
- lowestLevel?: number;
102
- discretization?: ItemQueryDiscretization;
103
- expression?: string;
104
- }?,
105
- any?
106
- ];
107
- /**
108
- * Filter properties.
109
- */
110
- properties?: ItemFilterProperties;
111
- }
112
- declare const filterConditionOr = "or";
113
- declare const filterConditionAnd = "and";
114
- export type FilterConditionOr = typeof filterConditionOr;
115
- export type FilterConditionAnd = typeof filterConditionAnd;
116
- export interface ItemFilterGroup {
117
- /**
118
- * Filter group id.
119
- *
120
- * @format uuid
121
- */
122
- id?: string;
123
- /**
124
- * "or" or "and" condition.
125
- */
126
- condition: FilterConditionOr | FilterConditionAnd;
127
- /**
128
- * Specific filters which contain expressions, parameters, etc.
129
- */
130
- filters: ItemFilter[];
131
- /**
132
- * Item filter subgroups. Has the same structure as filter group.
133
- */
134
- subGroups?: ItemFilterGroup[];
135
- /**
136
- * Value specifies the origin, for example, "itemFilter" or "global".
137
- */
138
- origin?: ItemFilterOrigin;
139
- /**
140
- * Stores single dataset id for whole FilterGroup if origin is 'global'.
141
- *
142
- * @format uuid
143
- */
144
- datasetId?: string;
145
- /**
146
- * Stores vizItem (chart) id if origin is not 'global'.
147
- *
148
- * @format uuid
149
- * @TJS-ignore
150
- * @deprecated use itemId instead.
151
- */
152
- vizId?: string;
153
- /**
154
- * Stores vizItem (chart) id if origin is not 'global'.
155
- *
156
- * @format uuid
157
- */
158
- itemId?: string;
159
- /**
160
- * Specifies if it's a drilldown filter group.
161
- * @TJS-ignore
162
- */
163
- isDrilldown?: boolean;
164
- /**
165
- * @TJS-ignore
166
- */
167
- type?: 'injected';
168
- }
169
- export type FilterGroup = ItemFilterGroup;
170
- export type FilterOrigin = ItemFilterOrigin;
171
- export type Filter = ItemFilter;
172
- export type FilterExpression = ItemQueryFilterExpression;
173
- export type FilterOperators = FilterConditionOr | FilterConditionAnd;
174
- export {};
@@ -1,31 +0,0 @@
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
- }
@@ -1,37 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
1
- import { FilterableByViewOptions, FilterViewOptions } from './filters';
2
- import { ThemeViewOptions } from './theme';
3
- import { DisplayTitleViewOptions, TitleViewOptions } from './title';
4
- import { VizItemCustomOptions } from './viz-item';
5
- export interface ObjectViewOptions extends FilterViewOptions, ThemeViewOptions, TitleViewOptions, DisplayTitleViewOptions, FilterableByViewOptions, VizItemCustomOptions {
6
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Placeholder in format {locale: "placeholder"}, for example, {en: "placeholder"}
3
- * @TJS-type object
4
- */
5
- export interface PlaceholderViewOptions {
6
- /**
7
- * @TJS-ignore
8
- */
9
- placeholder?: Record<string, string>;
10
- }
@@ -1,25 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,373 +0,0 @@
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
- * @TJS-ignore
92
- * @deprecated use datasetId instead.
93
- */
94
- set?: string;
95
- /**
96
- * Column id
97
- * @format uuid
98
- * @TJS-ignore
99
- * @deprecated use columnId instead.
100
- */
101
- column?: string;
102
- /**
103
- * A dataset formula id or an ad-hoc formula. A formula is an entity similar to a column. You can add formulas on the dataset details page or use ad-hoc formulas. You can find more information about formulas in the article https://academy.luzmo.com/article/52tm82oo
104
- */
105
- formula?: string;
106
- /**
107
- * Dataset id
108
- * @format uuid
109
- */
110
- datasetId?: string;
111
- /**
112
- * Column id
113
- * @format uuid
114
- */
115
- columnId?: string;
116
- /**
117
- * D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
118
- * It can also be used for "hierarchy" formatting but when it's used in the measure slot.
119
- */
120
- format?: string;
121
- /**
122
- * Currency code, for example "€" or "$". It is only used when the column type is "numeric" and subtype is "currency".
123
- */
124
- currency?: string | null;
125
- /**
126
- * Aggregation function. It can be used with a "numeric" column type, and with some limitations with "hierarchy" and "datetime" column types.
127
- */
128
- aggregationFunc?: ItemQueryAggregation;
129
- /**
130
- * Aggregation weight. It can be used with a "numeric" column type.
131
- */
132
- aggregationWeight?: {
133
- /**
134
- * Dataset id
135
- * @format uuid
136
- * @TJS-ignore
137
- * @deprecated use datasetId instead.
138
- */
139
- set: string;
140
- /**
141
- * Column id
142
- * @format uuid
143
- * @TJS-ignore
144
- * @deprecated use columnId instead.
145
- */
146
- column: string;
147
- /**
148
- * Dataset id
149
- * @format uuid
150
- */
151
- datasetId?: string;
152
- /**
153
- * Column id
154
- * @format uuid
155
- */
156
- columnId?: string;
157
- /**
158
- * Column subtype
159
- */
160
- columnSubType: ColumnSubtype;
161
- };
162
- /**
163
- * 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.
164
- */
165
- color?: string | null;
166
- /**
167
- * "hierarchy" or "datetime" level
168
- * @TJS-type ["number", "null"]
169
- */
170
- level?: number | null;
171
- /**
172
- * Lowest "hierarchy" or "datetime" level
173
- */
174
- lowestLevel?: number | null;
175
- /**
176
- * Bin definition. It can be used when a "numeric" column is used as a category.
177
- */
178
- bins?: {
179
- /**
180
- * Enable or disable binning
181
- */
182
- enabled: boolean;
183
- /**
184
- * Defines the range of the bins
185
- */
186
- number?: number;
187
- };
188
- /**
189
- * Duration definition. It's only used when the column type is "numeric" and subtype is "duration".
190
- */
191
- duration?: {
192
- /**
193
- * Duration levels used
194
- */
195
- levels: number[];
196
- /**
197
- * Duration format
198
- */
199
- format: 'short' | 'long' | 'time';
200
- };
201
- /**
202
- * Enable or disable grand totals, they're only used in Pivot table
203
- */
204
- grandTotals?: {
205
- enabled: boolean;
206
- };
207
- /**
208
- * Shows empty areas for geo slots (with the name "geo" and content type 'spacial).
209
- * Also, it can be set in the options' advanced settings of the Choropleth map.
210
- */
211
- include_nonoccurring?: boolean;
212
- /**
213
- * If it's set it will be used for datetime formatting together with weekStart, weekDayNameFormat, monthNameFormat
214
- */
215
- datetimeDisplayMode?: DatetimeDisplayMode;
216
- /**
217
- * Week start day, 'sunday' or 'monday'. For datetime column formatting.
218
- */
219
- weekStart?: 'sunday' | 'monday';
220
- /**
221
- * Week day name format for datetime column formatting
222
- */
223
- weekDayNameFormat?: 'long' | 'short' | 'letter';
224
- /**
225
- * Month name format for datetime column formatting
226
- */
227
- monthNameFormat?: 'long' | 'short' | 'letter';
228
- /**
229
- * It's something that is used internally for Demo Data
230
- * @TJS-ignore
231
- */
232
- cardinality?: number;
233
- /**
234
- * It's used internally for drilldown interactivity
235
- * @TJS-ignore
236
- */
237
- drilldownColumn?: GenericSlotContent;
238
- /**
239
- * It's used internally for drilldown interactivity
240
- * @TJS-ignore
241
- */
242
- drilldownLevel?: number;
243
- /**
244
- * Id of the slot. It's used in some cases but for internal needs.
245
- * @format uuid
246
- * @TJS-ignore
247
- */
248
- id?: string;
249
- /**
250
- * Index of the slot. It's used in some cases but for internal needs.
251
- * @TJS-ignore
252
- */
253
- index?: number;
254
- /**
255
- * It's used internally for 'datetime' tupe
256
- * @TJS-ignore
257
- */
258
- multi?: boolean;
259
- /**
260
- * The name of the slot. It's used in some cases but for internal needs.
261
- * @TJS-ignore
262
- */
263
- slotName?: string;
264
- /**
265
- * It's used in some cases but for internal needs.
266
- * @TJS-ignore
267
- */
268
- sortableIndex?: number;
269
- /**
270
- * It's used in some cases but for internal needs.
271
- * @TJS-ignore
272
- */
273
- sortableSelected?: boolean;
274
- /**
275
- * It's used internally in parallel-coordinates-plot
276
- * @TJS-ignore
277
- */
278
- sortOrder?: number | string;
279
- /**
280
- * It's something that is used internally by line-chart-forecast
281
- * @TJS-ignore
282
- */
283
- model?: any;
284
- /**
285
- * Settings to configure period over period comparison. It can be used only in a measure slot.
286
- */
287
- periodOverPeriod?: {
288
- /**
289
- * Period over period comparison type:
290
- * 'none' - turned off,
291
- * 'past' - absolute value comparison to the past,
292
- * 'change' - percentage change comparison to the past
293
- */
294
- type: 'none' | 'past' | 'change';
295
- /**
296
- * Period of time level
297
- * 0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond
298
- */
299
- level: number;
300
- /**
301
- * Number of periods
302
- */
303
- quantity: number;
304
- /**
305
- * Turn ON/OFF period to date comparison
306
- */
307
- periodToDate: boolean;
308
- /**
309
- * Category date level to disallow smaller Period-Over-Period levels. For internal use only
310
- * @TJS-ignore
311
- */
312
- minLevel: number;
313
- };
314
- }
315
- export interface NumericSlotContent extends Omit<GenericSlotContent, 'level' | 'lowestLevel' | 'include_nonoccurring' | 'datetimeDisplayMode' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat'> {
316
- /**
317
- * "numeric" column / formula type
318
- */
319
- type: 'numeric';
320
- }
321
- export interface HierarchySlotContent extends Omit<GenericSlotContent, 'formula' | 'currency' | 'aggregationWeight' | 'bins' | 'duration' | 'include_nonoccurring' | 'datetimeDisplayMode' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat'> {
322
- /**
323
- * "hierarchy" column type
324
- */
325
- type?: 'hierarchy';
326
- /**
327
- * Basic aggregation function. It can be used when a "hierarchy" column is used in a measure slot.
328
- */
329
- aggregationFunc?: BasicItemQueryAggregation;
330
- }
331
- export interface DateTimeSlotContent extends Omit<GenericSlotContent, 'formula' | 'currency' | 'aggregationWeight' | 'bins' | 'duration' | 'include_nonoccurring'> {
332
- /**
333
- * "datetime" column type
334
- */
335
- type?: 'datetime';
336
- /**
337
- * There's no subtype for "datetime", it can be null or omitted
338
- */
339
- subtype?: null;
340
- /**
341
- * Basic aggregation function. It can be used when a "datetime" column is used in a measure slot.
342
- */
343
- aggregationFunc?: BasicItemQueryAggregation;
344
- }
345
- export interface SpatialSlotContent extends Omit<GenericSlotContent, 'formula' | 'format' | 'currency' | 'aggregationFunc' | 'aggregationWeight' | 'level' | 'lowestLevel' | 'bins' | 'duration' | 'datetimeDisplayMode' | 'grandTotals' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat' | 'periodOverPeriod'> {
346
- /**
347
- * "spatial" column type
348
- */
349
- type?: 'spatial';
350
- }
351
- export type Slot = {
352
- accept?: (ColumnType | FormulaType)[];
353
- acceptSubtype?: (ColumnSubtype | FormulaSubtype)[];
354
- acceptFormula?: boolean;
355
- content?: GenericSlotContent[];
356
- description?: string;
357
- minimumColumn?: number;
358
- multiple?: boolean;
359
- hidden?: boolean;
360
- options?: {
361
- noBinning?: boolean;
362
- noAggregation?: boolean;
363
- grandTotals?: boolean;
364
- showOnlyFirstSlotGrandTotals?: boolean;
365
- cumulative?: boolean;
366
- datetimeDisplayOptions?: boolean;
367
- showOnlyFirstSlotContentOptions?: boolean;
368
- };
369
- name?: SlotName;
370
- required?: boolean;
371
- rotate?: boolean;
372
- type?: 'numeric' | 'categorical' | 'mixed';
373
- };