@luzmo/embed 6.1.4 → 6.1.5

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 +6 -0
  2. package/index.cjs +310 -4121
  3. package/index.js +310 -4121
  4. package/luzmo-embed.min.js +310 -4121
  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,28 +0,0 @@
1
- export * from './lib/bar-chart';
2
- export * from './lib/column-chart';
3
- export * from './lib/line-chart';
4
- export * from './lib/text';
5
- export * from './lib/dropdown-filter';
6
- export * from './lib/evolution-number';
7
- export * from './lib/date-filter';
8
- export * from './lib/pivot-table';
9
- export * from './lib/image';
10
- export * from './lib/donut-chart';
11
- export * from './lib/regular-table';
12
- export * from './lib/slicer-filter';
13
- export * from './lib/choropleth-map';
14
- export * from './lib/bubble-chart';
15
- export * from './lib/slider-filter';
16
- export * from './lib/combination-chart';
17
- export * from './lib/area-chart';
18
- export * from './lib/box-plot';
19
- export * from './lib/circular-gauge';
20
- export * from './lib/bullet-chart';
21
- export * from './lib/scatter-plot';
22
- export * from './lib/conditional-number';
23
- export * from './lib/sankey-diagram';
24
- export * from './lib/funnel-chart';
25
- export * from './lib/search-filter';
26
- export * from './lib/shared';
27
- export * from './options';
28
- export * from './slots';
@@ -1,334 +0,0 @@
1
- import { InteractivityBrushViewOptions } from '../shared';
2
- import { AxisGridlinesStyle, AxisScaleType, AxisTicksDensity, ManualAxesRange, XAxisLabelPosition, YAxisLabelPosition } from '../shared/axes';
3
- import { AxisObjectViewOptions } from '../shared/axis-view-options';
4
- import type { AxisTicksMode, AxisTicksStyle, Guidelines, LimitViewOptions, MissingValueViewOptions, NullBreakViewOptions } from '../shared/common';
5
- import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
6
- import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
7
- import { InteractivityCustomTooltipViewOptions } from '../shared/interactivity-custom-tooltip';
8
- import { InteractivityExportViewOptions } from '../shared/interactivity-export';
9
- import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
10
- import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
11
- import { Interpolation } from '../shared/interpolation';
12
- import { DisplayLegendViewOptions, LegendViewOptions } from '../shared/legend';
13
- import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
14
- export interface AreaChartViewOptions extends Omit<AxisObjectViewOptions, 'interactivity' | 'display'>, InfoTooltipViewOptions, LegendViewOptions, MissingValueViewOptions, NullBreakViewOptions, TitleViewOptions, LimitViewOptions, AreaChartDisplayViewOptions, AreaChartInteractivityViewOptions {
15
- /**
16
- * Mode of the Area chart: stacked, unstacked, stream or 100% stacked
17
- * @default "stacked"
18
- */
19
- mode?: 'stacked' | 'unstacked' | 'stream' | '100';
20
- /**
21
- * This option fine-tunes the 'mode' option. When it's 'area-stack' the 'mode' will become 'stacked', if it's area-unstacked the 'mode' will become 'unstacked', if it's area-stream the 'mode' will become 'stream' and if it's area-100 the 'mode' will become '100'.
22
- * @TJS-ignore
23
- */
24
- startWithSubType?: AreaChartSubtype;
25
- /**
26
- * This option set the interpolation for the area drawn: "linear" or "step-before" or "step-after" or "monotone"
27
- * @default "linear"
28
- */
29
- interpolation?: Interpolation;
30
- /**
31
- * Axes labels options
32
- */
33
- axislabels?: {
34
- /**
35
- * X-axis label options
36
- */
37
- x?: {
38
- /**
39
- * Show or hide the X-axis labels
40
- * @default false
41
- */
42
- enabled: boolean;
43
- /**
44
- * Position of the X-axis labels
45
- * @default "center"
46
- */
47
- position: XAxisLabelPosition;
48
- };
49
- /**
50
- * Y-axis label options
51
- */
52
- y?: {
53
- /**
54
- * Show or hide the Y-axis labels
55
- * @default false
56
- */
57
- enabled: boolean;
58
- /**
59
- * Position of the Y-axis labels
60
- * @default "middle"
61
- */
62
- position: YAxisLabelPosition;
63
- };
64
- /**
65
- * !!! Y2 axis partially implemented in the Area Chart, so hide it for now in the docs
66
- * @TJS-ignore
67
- */
68
- y2?: {
69
- /**
70
- * Show or hide the Y2-axis labels
71
- * @default false
72
- */
73
- enabled: boolean;
74
- /**
75
- * Position of the Y2-axis labels
76
- * @default "middle"
77
- */
78
- position: YAxisLabelPosition;
79
- };
80
- };
81
- /**
82
- * Axes options
83
- */
84
- axis?: {
85
- /**
86
- * X-axis options
87
- */
88
- x?: {
89
- /**
90
- * X-axis color
91
- * @examples ["#000000", "black", "rgba(0,0,0,1)"]
92
- */
93
- color?: string;
94
- /**
95
- * Ticks mode of the X-axis: hide, ticks, or gridlines
96
- * @default "ticks"
97
- */
98
- ticksMode?: AxisTicksMode;
99
- /**
100
- * Ticks style of the X-axis: auto or user defined
101
- */
102
- ticksStyle?: AxisTicksStyle;
103
- };
104
- /**
105
- * Y-axis options
106
- */
107
- y?: {
108
- /**
109
- * Y-axis color
110
- * @examples ["#000000", "black", "rgba(0,0,0,1)"]
111
- */
112
- color?: string;
113
- /**
114
- * Y-axis scale type: linear or logarithmic
115
- * @default "linear"
116
- */
117
- scale?: AxisScaleType;
118
- /**
119
- * Base of the logarithmic scale. Only applies if the scale is logarithmic.
120
- * @examples [2, 10]
121
- */
122
- scaleLogBase?: number;
123
- /**
124
- * Density of the ticks on the Y-axis
125
- */
126
- ticksDensity?: AxisTicksDensity;
127
- /**
128
- * Ticks mode of the Y-axis: hide, ticks, or gridlines
129
- * @default "ticks"
130
- */
131
- ticksMode?: AxisTicksMode;
132
- /**
133
- * Set manual axes range
134
- * @examples [[0, 100]]
135
- */
136
- manualAxesRange?: ManualAxesRange;
137
- /**
138
- * Y-axis type: default, manual or variable
139
- * @default "default"
140
- */
141
- type?: AreaChartMeasureAxisType;
142
- };
143
- /**
144
- * !!! Y2 axis partially implemented in the Area Chart, so hide it for now in the docs
145
- * @TJS-ignore
146
- */
147
- y2?: {
148
- /**
149
- * Y2-axis color
150
- * @examples ["#000000", "black", "rgba(0,0,0,1)"]
151
- */
152
- color?: string;
153
- /**
154
- * Y-axis scale type: linear or logarithmic
155
- */
156
- scale?: AxisScaleType;
157
- /**
158
- * Base of the logarithmic scale. Only applies if the scale is logarithmic.
159
- * @examples [2, 10]
160
- */
161
- scaleLogBase?: number;
162
- /**
163
- * Density of the ticks on the Y2-axis
164
- */
165
- ticksDensity?: AxisTicksDensity;
166
- /**
167
- * Ticks mode of the Y2-axis: hide, ticks, or gridlines
168
- * @default "ticks"
169
- */
170
- ticksMode?: AxisTicksMode;
171
- /**
172
- * Set manual axes range
173
- * @examples [[0, 100]]
174
- */
175
- manualAxesRange?: ManualAxesRange;
176
- /**
177
- * Y-axis type: default, manual or variable
178
- * @default "default"
179
- */
180
- type?: AreaChartMeasureAxisType;
181
- /**
182
- * Toggle whether the Y2-axis is active
183
- * @default false
184
- */
185
- active?: boolean;
186
- /**
187
- * Array of measure indexes to be displayed on the Y2-axis
188
- * @default [1]
189
- * @examples [[1, 2]]
190
- */
191
- measureIndexes?: number[];
192
- };
193
- };
194
- /**
195
- * Chart grid options
196
- */
197
- grid?: {
198
- /**
199
- * X-axis grid options
200
- */
201
- x?: {
202
- /**
203
- * Show or hide the X-axis grid
204
- * @default false
205
- */
206
- enabled: boolean;
207
- /**
208
- * Style of the X-axis grid
209
- */
210
- style?: AxisGridlinesStyle;
211
- /**
212
- * Opacity of the X-axis grid
213
- * @examples [1, 0.5, 0.1]
214
- */
215
- opacity?: number;
216
- };
217
- /**
218
- * Y-axis grid options
219
- */
220
- y?: {
221
- /**
222
- * Show or hide the Y-axis grid
223
- * @default false
224
- */
225
- enabled: boolean;
226
- /**
227
- * Style of the Y-axis grid
228
- */
229
- style?: AxisGridlinesStyle;
230
- /**
231
- * Opacity of the Y-axis grid
232
- * @examples [1, 0.5, 0.1]
233
- */
234
- opacity?: number;
235
- };
236
- /**
237
- * !!! Y2 axis partially implemented in the Area Chart, so hide it for now in the docs
238
- * @TJS-ignore
239
- */
240
- y2?: {
241
- /**
242
- * Show or hide the Y2-axis grid
243
- * @default false
244
- */
245
- enabled: boolean;
246
- /**
247
- * Style of the Y2-axis grid
248
- */
249
- style?: AxisGridlinesStyle;
250
- /**
251
- * Opacity of the Y2-axis grid
252
- * @examples [1, 0.5, 0.1]
253
- */
254
- opacity?: number;
255
- };
256
- };
257
- /**
258
- * @TJS-ignore
259
- */
260
- area?: {
261
- index?: number;
262
- };
263
- /**
264
- * Guidelines options
265
- */
266
- guidelines?: Guidelines;
267
- }
268
- interface AreaChartDisplayViewOptions extends DisplayLegendViewOptions, DisplayTitleViewOptions {
269
- /**
270
- * General display options of the Area chart: title, legend and mode option
271
- */
272
- display: {
273
- /**
274
- * Show or hide the title
275
- * @default true
276
- */
277
- title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
278
- /**
279
- * Show or hide the legend
280
- * @default true
281
- */
282
- legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
283
- /**
284
- * Show or hide the mode option
285
- * @default false
286
- */
287
- modeOption?: boolean;
288
- };
289
- }
290
- interface AreaChartInteractivityViewOptions extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityMeasureDimensionPickerViewOptions, InteractivityGoToUrlViewOptions {
291
- /**
292
- * Interactivity options
293
- */
294
- interactivity?: {
295
- /**
296
- * Available export types interactivity option
297
- * @default ["xlsx", "csv", "png"]
298
- */
299
- availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
300
- /**
301
- * Filter on brush interactivity option
302
- * @default true
303
- */
304
- brush?: NonNullable<NonNullable<InteractivityBrushViewOptions['interactivity']>['brush']>;
305
- /**
306
- * Custom events interactivity option
307
- * @default null
308
- */
309
- customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
310
- /**
311
- * Custom tooltip interactivity option, in format {locale: "tooltip"}, for example, {en: "Total Revenue"}
312
- * @default null
313
- */
314
- customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
315
- /**
316
- * Export types interactivity option
317
- * @default ["xlsx", "csv", "png"]
318
- */
319
- exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
320
- /**
321
- * An array of measure dimension picker configurations
322
- * @default [[]]
323
- */
324
- measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
325
- /**
326
- * Go to URL interactivity option
327
- * @default { "target": "_blank", "url": null }
328
- */
329
- urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
330
- };
331
- }
332
- export type AreaChartMeasureAxisType = 'default' | 'manual' | 'variable';
333
- export type AreaChartSubtype = 'area' | 'area-stack' | 'area-100' | 'area-stream';
334
- export {};
@@ -1,39 +0,0 @@
1
- import { DashboardContentVizItemSlot, DateTimeSlotContent, HierarchySlotContent, NumericSlotContent } from '../shared/slots';
2
- /**
3
- * Category slot definition of the area chart. This defines the areas on the Y-axis.
4
- */
5
- interface XAxisSlot extends DashboardContentVizItemSlot {
6
- name: 'x-axis';
7
- /**
8
- * X-axis slot definition
9
- * @maxItems 1
10
- */
11
- content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
12
- }
13
- /**
14
- * Measure slot definition of the area chart. A area chart can contain any number of measures but if it contains 2 or more measures, the measures become the legend.
15
- */
16
- interface MeasureSlot extends DashboardContentVizItemSlot {
17
- name: 'measure';
18
- /**
19
- * Measure slot definition
20
- */
21
- content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
22
- }
23
- /**
24
- * Legend slot definition of the area chart. This defines the legend of the area chart. If 2 measures are used, the legend cannot be used.
25
- */
26
- interface LegendSlot extends DashboardContentVizItemSlot {
27
- name: 'legend';
28
- /**
29
- * Legend slot definition
30
- * @maxItems 1
31
- */
32
- content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
33
- }
34
- /**
35
- * Data definition of the Area chart
36
- * @maxItems 3
37
- */
38
- export type AreaChartSlots = (MeasureSlot | XAxisSlot | LegendSlot)[];
39
- export {};
@@ -1,23 +0,0 @@
1
- import { VizItemType } from '../shared/common';
2
- import { AreaChartViewOptions } from './area-chart-options';
3
- import { AreaChartSlots } from './area-chart-slots';
4
- /**
5
- * Area chart item
6
- */
7
- export interface AreaChart {
8
- /**
9
- * Type of the item
10
- */
11
- type: Extract<VizItemType, 'area-chart'>;
12
- /**
13
- * Options of the area chart item
14
- * @$ref ./area-chart-options.schema.json/
15
- */
16
- options: AreaChartViewOptions;
17
- /**
18
- * Data definition of the Area chart
19
- * @maxItems 3
20
- * @$ref ./area-chart-slots.schema.json
21
- */
22
- slots: AreaChartSlots;
23
- }
@@ -1,3 +0,0 @@
1
- export * from './area-chart-options';
2
- export * from './area-chart-slots';
3
- export * from './area-chart';
@@ -1,258 +0,0 @@
1
- import { InteractivityFilterOnSelectViewOptions } from '../shared';
2
- import { AxisGridlinesStyle, AxisScaleType, AxisTicksDensity, ManualAxesRange, XAxisLabelPosition, YAxisLabelPosition } from '../shared/axes';
3
- import { AxisObjectViewOptions } from '../shared/axis-view-options';
4
- import { AxisTicksMode, Guidelines, LimitViewOptions, RankingViewOptions } from '../shared/common';
5
- import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
6
- import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
7
- import { InteractivityCustomTooltipViewOptions } from '../shared/interactivity-custom-tooltip';
8
- import { InteractivityDrilldownViewOptions } from '../shared/interactivity-drilldown';
9
- import { InteractivityExportViewOptions } from '../shared/interactivity-export';
10
- import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
11
- import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
12
- import { DisplayLegendViewOptions, LegendViewOptions } from '../shared/legend';
13
- import { SortViewOptions } from '../shared/sort';
14
- import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
15
- export interface BarChartViewOptions extends Omit<AxisObjectViewOptions, 'display' | 'interactivity'>, TitleViewOptions, LegendViewOptions, InfoTooltipViewOptions, RankingViewOptions, LimitViewOptions, SortViewOptions, BarChartDisplayViewOptions, BarChartInteractivityViewOptions {
16
- /**
17
- * Mode of the Bar chart: grouped, stacked or 100% stacked
18
- * @default "grouped"
19
- */
20
- mode?: BarChartMode;
21
- /**
22
- * If it's set fine-tunes the 'mode' option. When it's 'bar-stack' the 'mode' will become 'stacked' otherwise 'grouped'.
23
- * @TJS-ignore
24
- */
25
- startWithSubType?: BarChartSubtype;
26
- /**
27
- * Category options
28
- */
29
- categories?: {
30
- /**
31
- * Bar color by category. Only has effect if there is no legend, but there is a y-axis.
32
- * @default false
33
- */
34
- colored?: boolean;
35
- };
36
- /**
37
- * Chart grid options
38
- */
39
- grid?: {
40
- /**
41
- * X-axis grid options
42
- */
43
- x?: {
44
- /**
45
- * Show or hide the X-axis grid
46
- * @default false
47
- */
48
- enabled: boolean;
49
- /**
50
- * Style of the X-axis grid
51
- */
52
- style?: AxisGridlinesStyle;
53
- /**
54
- * Opacity of the X-axis grid
55
- * @examples [1, 0.5, 0.1]
56
- */
57
- opacity?: number;
58
- };
59
- /**
60
- * Y-axis grid options
61
- */
62
- y?: {
63
- /**
64
- * Show or hide the Y-axis grid
65
- * @default false
66
- */
67
- enabled: boolean;
68
- /**
69
- * Style of the Y-axis grid
70
- */
71
- style?: AxisGridlinesStyle;
72
- /**
73
- * Opacity of the Y-axis grid
74
- * @examples [1, 0.5, 0.1]
75
- */
76
- opacity?: number;
77
- };
78
- };
79
- /**
80
- * Axes labels options
81
- */
82
- axislabels?: {
83
- /**
84
- * X-axis label options
85
- */
86
- x?: {
87
- /**
88
- * Show or hide the X-axis labels
89
- * @default false
90
- */
91
- enabled: boolean;
92
- /**
93
- * Position of the X-axis labels
94
- * @default "center"
95
- */
96
- position: XAxisLabelPosition;
97
- };
98
- /**
99
- * Y-axis label options
100
- */
101
- y?: {
102
- /**
103
- * Show or hide the Y-axis labels
104
- * @default false
105
- */
106
- enabled: boolean;
107
- /**
108
- * Position of the Y-axis labels
109
- * @default "middle"
110
- */
111
- position: YAxisLabelPosition;
112
- };
113
- };
114
- /**
115
- * Axes options
116
- */
117
- axis?: {
118
- /**
119
- * X-axis options
120
- */
121
- x?: {
122
- /**
123
- * X-axis color
124
- * @examples ["#000000", "black", "rgba(0,0,0,1)"]
125
- */
126
- color?: string;
127
- /**
128
- * Ticks mode of the X-axis
129
- * @default "ticks"
130
- */
131
- ticksMode?: AxisTicksMode;
132
- /**
133
- * X-axis scale type
134
- * @default "linear"
135
- */
136
- scale?: AxisScaleType;
137
- /**
138
- * Base of the logarithmic scale. Only applies if the scale is logarithmic.
139
- * @examples [2, 10]
140
- */
141
- scaleLogBase?: number;
142
- /**
143
- * Density of the ticks on the X-axis
144
- */
145
- ticksDensity?: AxisTicksDensity;
146
- };
147
- /**
148
- * Y-axis options
149
- */
150
- y?: {
151
- /**
152
- * Y-axis color
153
- * @examples ["#000000", "black", "rgba(0,0,0,1)"]
154
- */
155
- color?: string;
156
- /**
157
- * Ticks mode of the Y-axis
158
- * @default "ticks"
159
- */
160
- ticksMode?: AxisTicksMode;
161
- };
162
- };
163
- /**
164
- * Bars options
165
- */
166
- bars?: {
167
- /**
168
- * Bar label options
169
- * @default "none"
170
- */
171
- label?: BarChartLabel;
172
- /**
173
- * Rounded corners of the bars
174
- * @examples [0, 5, 10]
175
- */
176
- roundedCorners?: number;
177
- };
178
- /**
179
- * Manual axis range options. Minimum and maximum value of the axis range.
180
- */
181
- manualAxesRange?: ManualAxesRange;
182
- /**
183
- * Guidelines options
184
- */
185
- guidelines?: Guidelines;
186
- }
187
- interface BarChartDisplayViewOptions extends DisplayTitleViewOptions, DisplayLegendViewOptions {
188
- /**
189
- * General display options of the Bar chart: title, legend and mode option
190
- */
191
- display?: {
192
- /**
193
- * Show or hide the title
194
- * @default true
195
- */
196
- title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
197
- /**
198
- * Show or hide the legend
199
- * @default true
200
- */
201
- legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
202
- /**
203
- * Show or hide the mode option
204
- * @default false
205
- */
206
- modeOption?: boolean;
207
- };
208
- }
209
- interface BarChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
210
- /**
211
- * Interactivity options
212
- */
213
- interactivity?: {
214
- /**
215
- * Available export types interactivity option
216
- * @default ["xlsx", "csv", "png"]
217
- */
218
- availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
219
- /**
220
- * Custom events interactivity option
221
- * @default null
222
- */
223
- customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
224
- /**
225
- * Custom tooltip interactivity option, in format {locale: "tooltip"}, for example, {en: "Total Revenue"}
226
- * @default null
227
- */
228
- customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
229
- /**
230
- * Drilldown interactivity option
231
- */
232
- drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
233
- /**
234
- * Export types interactivity option
235
- * @default ["xlsx", "csv", "png"]
236
- */
237
- exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
238
- /**
239
- * An array of measure dimension picker configurations
240
- * @default [[]]
241
- */
242
- measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
243
- /**
244
- * Filter on select interactivity option
245
- * @default true
246
- */
247
- select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
248
- /**
249
- * Go to URL interactivity option
250
- * @default { "target": "_blank", "url": null }
251
- */
252
- urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
253
- };
254
- }
255
- export type BarChartMode = 'grouped' | 'stacked' | '100';
256
- export type BarChartLabel = 'none' | 'percentage' | 'percentageMax' | 'percentageCategory' | 'percentageLegend';
257
- export type BarChartSubtype = 'bar' | 'bar-stack' | 'bar-group';
258
- export {};