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