@luzmo/embed 6.1.2-beta.3 → 6.1.2-beta.4

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 (209) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/index.cjs +6420 -5112
  3. package/index.d.ts +3 -3
  4. package/index.js +6418 -5110
  5. package/lib/{ai-component/luzmo-ai-answer.d.ts → luzmo-iq-components/luzmo-iq-answer.d.ts} +3 -3
  6. package/{src/lib/ai-component/luzmo-ai-chat.d.ts → lib/luzmo-iq-components/luzmo-iq-chat.d.ts} +2 -2
  7. package/lib/viz-item/viz-item.base.d.ts +3 -4
  8. package/luzmo-embed.min.js +32177 -37610
  9. package/package.json +3 -5
  10. package/src/index.d.ts +3 -3
  11. package/src/lib/{ai-component/luzmo-ai-answer.d.ts → luzmo-iq-components/luzmo-iq-answer.d.ts} +3 -3
  12. package/{lib/ai-component/luzmo-ai-chat.d.ts → src/lib/luzmo-iq-components/luzmo-iq-chat.d.ts} +2 -2
  13. package/src/lib/viz-item/viz-item.base.d.ts +3 -4
  14. package/libs/dashboard-contents-types/index.d.ts +0 -2
  15. package/libs/dashboard-contents-types/json-schemas.d.ts +0 -42178
  16. package/libs/dashboard-contents-types/src/index.d.ts +0 -28
  17. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +0 -331
  18. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +0 -39
  19. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +0 -23
  20. package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +0 -3
  21. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +0 -258
  22. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +0 -23
  23. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +0 -39
  24. package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +0 -3
  25. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +0 -310
  26. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +0 -30
  27. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +0 -23
  28. package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +0 -3
  29. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +0 -98
  30. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +0 -41
  31. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +0 -23
  32. package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +0 -3
  33. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +0 -99
  34. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +0 -40
  35. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +0 -23
  36. package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +0 -3
  37. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +0 -138
  38. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +0 -41
  39. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +0 -23
  40. package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +0 -3
  41. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +0 -122
  42. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +0 -29
  43. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +0 -23
  44. package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +0 -3
  45. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +0 -259
  46. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +0 -39
  47. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +0 -23
  48. package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +0 -3
  49. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +0 -344
  50. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +0 -28
  51. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +0 -23
  52. package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +0 -3
  53. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +0 -94
  54. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +0 -29
  55. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +0 -23
  56. package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +0 -3
  57. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +0 -147
  58. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +0 -18
  59. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +0 -23
  60. package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +0 -3
  61. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +0 -131
  62. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +0 -28
  63. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +0 -23
  64. package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +0 -3
  65. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +0 -84
  66. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +0 -17
  67. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +0 -23
  68. package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +0 -3
  69. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +0 -200
  70. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +0 -29
  71. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +0 -23
  72. package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +0 -3
  73. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +0 -110
  74. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +0 -29
  75. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +0 -23
  76. package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +0 -3
  77. package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +0 -63
  78. package/libs/dashboard-contents-types/src/lib/image/image.d.ts +0 -16
  79. package/libs/dashboard-contents-types/src/lib/image/index.d.ts +0 -2
  80. package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +0 -3
  81. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +0 -354
  82. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +0 -39
  83. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +0 -23
  84. package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +0 -3
  85. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +0 -206
  86. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +0 -37
  87. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +0 -23
  88. package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +0 -3
  89. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +0 -124
  90. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +0 -17
  91. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +0 -23
  92. package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +0 -3
  93. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +0 -123
  94. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +0 -50
  95. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +0 -23
  96. package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +0 -3
  97. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +0 -213
  98. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +0 -61
  99. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +0 -23
  100. package/libs/dashboard-contents-types/src/lib/search-filter/index.d.ts +0 -3
  101. package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-options.d.ts +0 -56
  102. package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-slots.d.ts +0 -17
  103. package/libs/dashboard-contents-types/src/lib/search-filter/search-filter.d.ts +0 -23
  104. package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +0 -35
  105. package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +0 -3
  106. package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +0 -103
  107. package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +0 -14
  108. package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +0 -32
  109. package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +0 -28
  110. package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +0 -29
  111. package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +0 -24
  112. package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +0 -11
  113. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +0 -61
  114. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +0 -13
  115. package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +0 -81
  116. package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +0 -24
  117. package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +0 -11
  118. package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +0 -28
  119. package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +0 -66
  120. package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +0 -1
  121. package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +0 -4
  122. package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +0 -122
  123. package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +0 -31
  124. package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +0 -37
  125. package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +0 -5
  126. package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +0 -10
  127. package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +0 -25
  128. package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +0 -17
  129. package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +0 -316
  130. package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +0 -64
  131. package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +0 -271
  132. package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +0 -18
  133. package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +0 -3
  134. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +0 -205
  135. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +0 -28
  136. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +0 -23
  137. package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +0 -3
  138. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +0 -22
  139. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +0 -17
  140. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +0 -23
  141. package/libs/dashboard-contents-types/src/lib/text/index.d.ts +0 -2
  142. package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +0 -53
  143. package/libs/dashboard-contents-types/src/lib/text/text.d.ts +0 -16
  144. package/libs/dashboard-contents-types/src/options.d.ts +0 -25
  145. package/libs/dashboard-contents-types/src/slots.d.ts +0 -24
  146. package/libs/embed-libs/embed/src/index.d.ts +0 -7
  147. package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-answer.d.ts +0 -23
  148. package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-chat.d.ts +0 -24
  149. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
  150. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
  151. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
  152. package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +0 -1
  153. package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +0 -6
  154. package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +0 -4
  155. package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +0 -73
  156. package/libs/embed-libs/shared-embed/src/index.common.d.ts +0 -34
  157. package/libs/embed-libs/shared-embed/src/index.d.ts +0 -2
  158. package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +0 -1
  159. package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +0 -2
  160. package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +0 -2
  161. package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +0 -5
  162. package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +0 -7
  163. package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +0 -5
  164. package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +0 -1
  165. package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +0 -3
  166. package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +0 -16
  167. package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +0 -7
  168. package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +0 -8
  169. package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +0 -18
  170. package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +0 -1
  171. package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +0 -27
  172. package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +0 -4
  173. package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +0 -3
  174. package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +0 -3
  175. package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +0 -3
  176. package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +0 -2
  177. package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +0 -2
  178. package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +0 -2
  179. package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +0 -3
  180. package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +0 -3
  181. package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +0 -4
  182. package/libs/embed-libs/shared-embed/src/lib/models/ai-components.model.d.ts +0 -135
  183. package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +0 -103
  184. package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +0 -45
  185. package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +0 -73
  186. package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +0 -17
  187. package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +0 -32
  188. package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +0 -45
  189. package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +0 -22
  190. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +0 -13
  191. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +0 -24
  192. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +0 -13
  193. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +0 -2
  194. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +0 -24
  195. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +0 -13
  196. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +0 -2
  197. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +0 -13
  198. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +0 -36
  199. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +0 -36
  200. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +0 -14
  201. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +0 -24
  202. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +0 -13
  203. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +0 -24
  204. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +0 -13
  205. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +0 -15
  206. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +0 -14
  207. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +0 -24
  208. package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +0 -1
  209. package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +0 -2
@@ -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,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 type { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
2
- import { LimitViewOptions, RankingViewOptions } from '../shared/common';
3
- import { DropObjectViewOptions } from '../shared/drop-object-view-options';
4
- import { FilterViewOptions } from '../shared/filters';
5
- import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
6
- import { SortViewOptions } from '../shared/sort';
7
- import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
8
- export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, FilterViewOptions, TitleViewOptions, InfoTooltipViewOptions, LimitViewOptions, RankingViewOptions, SortViewOptions, SlicerFilterDisplayViewOptions, InteractivityMeasureDimensionPickerViewOptions {
9
- /**
10
- * Rank
11
- * @default false
12
- */
13
- rank?: boolean;
14
- /**
15
- * Rank bar
16
- */
17
- rankbar?: {
18
- /**
19
- * Rank Bar position
20
- * @default "bottom"
21
- */
22
- position?: 'bottom' | 'background';
23
- /**
24
- * Radius
25
- * @default 0
26
- */
27
- radius?: number;
28
- /**
29
- * Rank Bar padding
30
- * @default 2
31
- */
32
- padding?: number;
33
- };
34
- /**
35
- * Range
36
- */
37
- range?: {
38
- /**
39
- * Range type
40
- * @default "default"
41
- */
42
- type?: 'default' | 'manual';
43
- };
44
- /**
45
- * Measure
46
- */
47
- measure?: {
48
- /**
49
- * Measure style
50
- * @default false
51
- */
52
- style?: boolean;
53
- /**
54
- * Measure color
55
- * @default "#5A5A5A"
56
- */
57
- color?: string;
58
- /**
59
- * Measure height
60
- * @default 13
61
- */
62
- height?: number;
63
- };
64
- /**
65
- * Multi-select
66
- * @default true
67
- */
68
- multiselect?: boolean;
69
- /**
70
- * Filter with Apply button
71
- * @default false
72
- */
73
- applyFiltersWithButton?: boolean;
74
- /**
75
- * Mode
76
- * @default "check"
77
- */
78
- mode?: 'check' | 'button';
79
- /**
80
- * Padding
81
- */
82
- padding?: {
83
- /**
84
- * Left padding
85
- * @default 16
86
- */
87
- left: number;
88
- /**
89
- * Right padding
90
- * @default 16
91
- */
92
- right: number;
93
- /**
94
- * Top padding
95
- * @default 12
96
- */
97
- top: number;
98
- /**
99
- * Bottom padding
100
- * @default 12
101
- */
102
- bottom: number;
103
- };
104
- /**
105
- * Layout
106
- */
107
- layout?: {
108
- /**
109
- * Layout alignment
110
- * @default "vertical"
111
- */
112
- alignment?: 'vertical' | 'horizontal' | 'table' | 'rank-vertical';
113
- };
114
- /**
115
- * Horizontal item configuration
116
- */
117
- horizontal?: {
118
- /**
119
- * Width of a horizontal item
120
- * @default 175
121
- */
122
- width?: number;
123
- };
124
- /**
125
- * Table
126
- */
127
- table?: {
128
- /**
129
- * Row height
130
- * @default 24
131
- */
132
- rowheight?: number;
133
- /**
134
- * Columns
135
- * @default 2
136
- */
137
- columns?: number;
138
- };
139
- /**
140
- * Search
141
- */
142
- search?: {
143
- /**
144
- * Case-sensitive search
145
- * @default false
146
- */
147
- caseSensitive?: boolean;
148
- /**
149
- * Keyphrase
150
- * @default ""
151
- * @TJS-ignore
152
- */
153
- keyphrase?: string;
154
- };
155
- /**
156
- * Select all
157
- * @default false
158
- */
159
- selectAll?: boolean;
160
- /**
161
- * Manual measure range
162
- * @default [[]]
163
- */
164
- manualMeasureRange?: number[];
165
- /**
166
- * Start with subtype
167
- * @default "vertical"
168
- * @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 type { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
2
- import type { LimitViewOptions } from '../shared/common';
3
- import type { DropObjectViewOptions } from '../shared/drop-object-view-options';
4
- import type { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
5
- import type { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
6
- export interface SliderFilterViewOptions extends Omit<DropObjectViewOptions, 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, LimitViewOptions, InteractivityMeasureDimensionPickerViewOptions {
7
- /**
8
- * Padding of the slider filter
9
- */
10
- padding?: {
11
- /**
12
- * Padding on the left side of the slider filter
13
- * @default 16
14
- */
15
- left?: number;
16
- /**
17
- * Padding on the right side of the slider filter
18
- * @default 16
19
- */
20
- right?: number;
21
- };
22
- }
@@ -1,17 +0,0 @@
1
- import { DashboardContentVizItemSlot, DateTimeSlotContent, NumericSlotContent } from '../shared/slots';
2
- /**
3
- * Slider metric slot definition of the slider filter.
4
- */
5
- interface SliderMetricSlot extends DashboardContentVizItemSlot {
6
- name: 'slidermetric';
7
- /**
8
- * Slider metric slot definition
9
- */
10
- content: (NumericSlotContent | DateTimeSlotContent)[];
11
- }
12
- /**
13
- * Data definition of the Slider filter
14
- * @maxItems 1
15
- */
16
- export type SliderFilterSlots = (SliderMetricSlot)[];
17
- export {};
@@ -1,23 +0,0 @@
1
- import { VizItemType } from '../shared/common';
2
- import { SliderFilterViewOptions } from './slider-filter-options';
3
- import { SliderFilterSlots } from './slider-filter-slots';
4
- /**
5
- * Slider filter item
6
- */
7
- export interface SliderFilter {
8
- /**
9
- * Type of the item
10
- */
11
- type: Extract<VizItemType, 'slider-filter'>;
12
- /**
13
- * Options of the slider filter item
14
- * @$ref ./slider-filter-options.schema.json/
15
- */
16
- options: SliderFilterViewOptions;
17
- /**
18
- * Data definition of the Slider filter
19
- * @maxItems 1
20
- * @$ref ./slider-filter-slots.schema.json
21
- */
22
- slots: SliderFilterSlots;
23
- }
@@ -1,2 +0,0 @@
1
- export * from './text';
2
- export * from './text-options';
@@ -1,53 +0,0 @@
1
- import { ObjectViewOptions } from '../shared/object-view-options';
2
- import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
3
- export interface TextViewOptions extends Omit<ObjectViewOptions, 'display'>, TitleViewOptions, TextViewDisplayOptions {
4
- /**
5
- * Content of the text item. The key is the language code and the value is the content in that language.
6
- * @examples [{"en": "<h1>Hello World</h1>", "de": "<h1>Hallo Welt</h1>"}]
7
- * @TJS-type object
8
- */
9
- html?: Record<string, string>;
10
- /**
11
- * Padding of the text item
12
- */
13
- padding?: {
14
- /**
15
- * Left padding of the text item in pixels
16
- * @default 24
17
- */
18
- left?: number;
19
- /**
20
- * Right padding of the text item in pixels
21
- * @default 24
22
- */
23
- right?: number;
24
- /**
25
- * Top padding of the text item in pixels
26
- * @default 30
27
- */
28
- top?: number;
29
- /**
30
- * Bottom padding of the text item in pixels
31
- * @default 30
32
- */
33
- bottom?: number;
34
- };
35
- }
36
- interface TextViewDisplayOptions extends DisplayTitleViewOptions {
37
- /**
38
- * Display options of the text item
39
- */
40
- display?: {
41
- /**
42
- * Show or hide the title
43
- * @default true
44
- */
45
- title?: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
46
- /**
47
- * Hides the scrollbar of the text item
48
- * @default false
49
- */
50
- hideScrollbar?: boolean;
51
- };
52
- }
53
- export {};
@@ -1,16 +0,0 @@
1
- import { VizItemType } from '../shared/common';
2
- import { TextViewOptions } from './text-options';
3
- /**
4
- * Text item
5
- */
6
- export interface Text {
7
- /**
8
- * Type of the item
9
- */
10
- type: Extract<VizItemType, 'text'>;
11
- /**
12
- * Options of the Text item
13
- * @$ref ./text-options.schema.json/
14
- */
15
- options: TextViewOptions;
16
- }