@luzmo/embed 6.0.1 → 6.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/MIGRATIONS.md +1 -1
  3. package/README.md +121 -15
  4. package/index.cjs +52769 -28
  5. package/index.d.ts +4 -1
  6. package/index.js +52768 -30
  7. package/lib/dashboard-component/dashboard-base.d.ts +7 -7
  8. package/lib/viz-item/viz-item-component.d.ts +4 -0
  9. package/lib/viz-item/viz-item.base.d.ts +73 -0
  10. package/libs/dashboard-contents-types/index.d.ts +2 -0
  11. package/libs/dashboard-contents-types/json-schemas.d.ts +1 -0
  12. package/libs/dashboard-contents-types/src/index.d.ts +27 -0
  13. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +330 -0
  14. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +39 -0
  15. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +23 -0
  16. package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +3 -0
  17. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +257 -0
  18. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +23 -0
  19. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +39 -0
  20. package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +3 -0
  21. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +310 -0
  22. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +30 -0
  23. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +23 -0
  24. package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +3 -0
  25. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +98 -0
  26. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +41 -0
  27. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +23 -0
  28. package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +3 -0
  29. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +99 -0
  30. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +40 -0
  31. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +23 -0
  32. package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +3 -0
  33. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +138 -0
  34. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +41 -0
  35. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +23 -0
  36. package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +3 -0
  37. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +122 -0
  38. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +29 -0
  39. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +23 -0
  40. package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +3 -0
  41. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +258 -0
  42. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +39 -0
  43. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +23 -0
  44. package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +3 -0
  45. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +344 -0
  46. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +28 -0
  47. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +23 -0
  48. package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +3 -0
  49. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +94 -0
  50. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +29 -0
  51. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +23 -0
  52. package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +3 -0
  53. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +147 -0
  54. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +18 -0
  55. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +23 -0
  56. package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +3 -0
  57. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +130 -0
  58. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +28 -0
  59. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +23 -0
  60. package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +3 -0
  61. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +84 -0
  62. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +17 -0
  63. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +23 -0
  64. package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +3 -0
  65. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +185 -0
  66. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +29 -0
  67. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +23 -0
  68. package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +3 -0
  69. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +110 -0
  70. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +29 -0
  71. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +23 -0
  72. package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +3 -0
  73. package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +63 -0
  74. package/libs/dashboard-contents-types/src/lib/image/image.d.ts +16 -0
  75. package/libs/dashboard-contents-types/src/lib/image/index.d.ts +2 -0
  76. package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +3 -0
  77. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +354 -0
  78. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +39 -0
  79. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +23 -0
  80. package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +3 -0
  81. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +206 -0
  82. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +37 -0
  83. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +23 -0
  84. package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +3 -0
  85. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +124 -0
  86. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +17 -0
  87. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +23 -0
  88. package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +3 -0
  89. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +122 -0
  90. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +50 -0
  91. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +23 -0
  92. package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +3 -0
  93. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +212 -0
  94. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +61 -0
  95. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +23 -0
  96. package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +35 -0
  97. package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +3 -0
  98. package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +102 -0
  99. package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +11 -0
  100. package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +30 -0
  101. package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +28 -0
  102. package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +29 -0
  103. package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +24 -0
  104. package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +11 -0
  105. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +61 -0
  106. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +13 -0
  107. package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +81 -0
  108. package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +24 -0
  109. package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +11 -0
  110. package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +28 -0
  111. package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +66 -0
  112. package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +1 -0
  113. package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +4 -0
  114. package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +122 -0
  115. package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +31 -0
  116. package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +37 -0
  117. package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +5 -0
  118. package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +7 -0
  119. package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +25 -0
  120. package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +17 -0
  121. package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +316 -0
  122. package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +64 -0
  123. package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +267 -0
  124. package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +18 -0
  125. package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +3 -0
  126. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +204 -0
  127. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +28 -0
  128. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +23 -0
  129. package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +3 -0
  130. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +22 -0
  131. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +17 -0
  132. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +23 -0
  133. package/libs/dashboard-contents-types/src/lib/text/index.d.ts +2 -0
  134. package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +53 -0
  135. package/libs/dashboard-contents-types/src/lib/text/text.d.ts +16 -0
  136. package/libs/dashboard-contents-types/src/options.d.ts +26 -0
  137. package/libs/dashboard-contents-types/src/slots.d.ts +24 -0
  138. package/libs/embed-libs/embed/src/index.d.ts +5 -0
  139. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +98 -0
  140. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +8 -0
  141. package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
  142. package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +1 -0
  143. package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +6 -0
  144. package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +4 -0
  145. package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +73 -0
  146. package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
  147. package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
  148. package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
  149. package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
  150. package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
  151. package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
  152. package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
  153. package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
  154. package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
  155. package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
  156. package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
  157. package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +7 -0
  158. package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
  159. package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
  160. package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
  161. package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
  162. package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
  163. package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
  164. package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
  165. package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
  166. package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
  167. package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
  168. package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
  169. package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
  170. package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
  171. package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +4 -0
  172. package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
  173. package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
  174. package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
  175. package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +17 -0
  176. package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
  177. package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
  178. package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +4 -0
  179. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +13 -0
  180. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +24 -0
  181. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +13 -0
  182. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
  183. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +24 -0
  184. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +13 -0
  185. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
  186. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +13 -0
  187. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
  188. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +36 -0
  189. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
  190. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +24 -0
  191. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +13 -0
  192. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +24 -0
  193. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +13 -0
  194. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +15 -0
  195. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +14 -0
  196. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +24 -0
  197. package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
  198. package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
  199. package/luzmo-embed.min.js +62579 -2650
  200. package/package.json +5 -2
@@ -0,0 +1,29 @@
1
+ import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
2
+ /**
3
+ * Target slot definition of the circular gauge.
4
+ */
5
+ interface TargetSlot extends DashboardContentVizItemSlot {
6
+ name: 'target';
7
+ /**
8
+ * Target slot definition
9
+ * @maxItems 1
10
+ */
11
+ content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
12
+ }
13
+ /**
14
+ * Measure slot definition of the circular gauge. This is a required slot.
15
+ */
16
+ interface MeasureSlot extends DashboardContentVizItemSlot {
17
+ name: 'measure';
18
+ /**
19
+ * Measure slot definition
20
+ * @maxItems 1
21
+ */
22
+ content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
23
+ }
24
+ /**
25
+ * Data definition of the Circular gauge
26
+ * @maxItems 2
27
+ */
28
+ export type CircularGaugeSlots = (TargetSlot | MeasureSlot)[];
29
+ export {};
@@ -0,0 +1,23 @@
1
+ import { VizItemType } from '../shared/common';
2
+ import { CircularGaugeViewOptions } from './circular-gauge-options';
3
+ import { CircularGaugeSlots } from './circular-gauge-slots';
4
+ /**
5
+ * Circular gauge item
6
+ */
7
+ export interface CircularGauge {
8
+ /**
9
+ * Type of the item
10
+ */
11
+ type: Extract<VizItemType, 'circular-gauge'>;
12
+ /**
13
+ * Options of the circular gauge item
14
+ * @$ref ./circular-gauge-options.schema.json/
15
+ */
16
+ options: CircularGaugeViewOptions;
17
+ /**
18
+ * Data definition of the circular gauge
19
+ * @maxItems 2
20
+ * @$ref ./circular-gauge-slots.schema.json
21
+ */
22
+ slots: CircularGaugeSlots;
23
+ }
@@ -0,0 +1,3 @@
1
+ export * from './circular-gauge';
2
+ export * from './circular-gauge-options';
3
+ export * from './circular-gauge-slots';
@@ -0,0 +1,258 @@
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 ColumnChartViewOptions extends Omit<AxisObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, LegendViewOptions, TitleViewOptions, RankingViewOptions, LimitViewOptions, SortViewOptions, ColumnChartDisplayViewOptions, ColumnChartInteractivityViewOptions {
16
+ /**
17
+ * Mode of the Column chart: grouped, stacked or 100% stacked
18
+ * @default 'grouped'
19
+ */
20
+ mode?: 'grouped' | 'stacked' | '100';
21
+ /**
22
+ * If it's set fine-tunes the 'mode' option. When it's 'column-stack' the 'mode' will become 'stacked' otherwise 'grouped'.
23
+ */
24
+ startWithSubType?: ColumnChartSubtype;
25
+ /**
26
+ * Category options
27
+ */
28
+ categories?: {
29
+ /**
30
+ * Column color by category. Only has effect if there is no legend, but there is an x-axis.
31
+ * @default false
32
+ */
33
+ colored?: boolean;
34
+ };
35
+ /**
36
+ * Chart grid options
37
+ */
38
+ grid?: {
39
+ /**
40
+ * X-axis grid options
41
+ */
42
+ x?: {
43
+ /**
44
+ * Show or hide the X-axis grid
45
+ * @default false
46
+ */
47
+ enabled: boolean;
48
+ /**
49
+ * Style of the X-axis grid
50
+ */
51
+ style?: AxisGridlinesStyle;
52
+ /**
53
+ * Opacity of the X-axis grid
54
+ * @examples [1, 0.5, 0.1]
55
+ */
56
+ opacity?: number;
57
+ };
58
+ /**
59
+ * Y-axis grid options
60
+ */
61
+ y?: {
62
+ /**
63
+ * Show or hide the Y-axis grid
64
+ * @default false
65
+ */
66
+ enabled: boolean;
67
+ /**
68
+ * Style of the Y-axis grid
69
+ */
70
+ style?: AxisGridlinesStyle;
71
+ /**
72
+ * Opacity of the Y-axis grid
73
+ * @examples [1, 0.5, 0.1]
74
+ */
75
+ opacity?: number;
76
+ };
77
+ };
78
+ /**
79
+ * Axes labels options
80
+ */
81
+ axislabels?: {
82
+ /**
83
+ * X-axis label options
84
+ */
85
+ x?: {
86
+ /**
87
+ * Show or hide the X-axis labels
88
+ * @default false
89
+ */
90
+ enabled: boolean;
91
+ /**
92
+ * Position of the X-axis labels
93
+ * @default "center"
94
+ */
95
+ position: XAxisLabelPosition;
96
+ };
97
+ /**
98
+ * Y-axis label options
99
+ */
100
+ y?: {
101
+ /**
102
+ * Show or hide the Y-axis labels
103
+ * @default false
104
+ */
105
+ enabled: boolean;
106
+ /**
107
+ * Position of the Y-axis labels
108
+ * @default "middle"
109
+ */
110
+ position: YAxisLabelPosition;
111
+ };
112
+ };
113
+ /**
114
+ * Axes options
115
+ */
116
+ axis?: {
117
+ x?: {
118
+ /**
119
+ * X-axis color
120
+ * @examples ["#000000", "black", "rgba(0,0,0,1)"]
121
+ */
122
+ color?: string;
123
+ /**
124
+ * Ticks mode of the X-axis
125
+ * @default 'ticks'
126
+ */
127
+ ticksMode?: AxisTicksMode;
128
+ };
129
+ /**
130
+ * Y-axis options
131
+ */
132
+ y?: {
133
+ /**
134
+ * Y-axis color
135
+ * @examples ["#000000", "black", "rgba(0,0,0,1)"]
136
+ */
137
+ color?: string;
138
+ /**
139
+ * Ticks mode of the Y-axis
140
+ * @default 'ticks'
141
+ */
142
+ ticksMode?: AxisTicksMode;
143
+ /**
144
+ * Y-axis scale type
145
+ * @default 'linear'
146
+ */
147
+ scale?: AxisScaleType;
148
+ /**
149
+ * Base of the logarithmic scale. Only applies if the scale is logarithmic.
150
+ * @examples [2, 10]
151
+ */
152
+ scaleLogBase?: number;
153
+ /**
154
+ * Density of the ticks on the Y-axis
155
+ */
156
+ ticksDensity?: AxisTicksDensity;
157
+ };
158
+ };
159
+ /**
160
+ * Bars options
161
+ */
162
+ bars?: {
163
+ /**
164
+ * Bar label options
165
+ * @default 'none'
166
+ */
167
+ label?: ColumnChartLabel;
168
+ /**
169
+ * Rounded corners of the bars
170
+ * @examples [0, 5, 10]
171
+ */
172
+ roundedCorners?: number;
173
+ };
174
+ /**
175
+ * Manual axis range options. Minimum and maximum value of the axis range.
176
+ */
177
+ manualAxesRange?: ManualAxesRange;
178
+ /**
179
+ * Guidelines options
180
+ */
181
+ guidelines?: Guidelines;
182
+ }
183
+ interface ColumnChartDisplayViewOptions extends DisplayLegendViewOptions, DisplayTitleViewOptions {
184
+ /**
185
+ * General display options of the Column chart: title, legend and mode option
186
+ */
187
+ display?: {
188
+ /**
189
+ * Show or hide the title
190
+ * @default true
191
+ */
192
+ title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
193
+ /**
194
+ * Show or hide the legend
195
+ * @default true
196
+ */
197
+ legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
198
+ /**
199
+ * Show or hide the mode option
200
+ * @default false
201
+ */
202
+ modeOption?: boolean;
203
+ };
204
+ }
205
+ interface ColumnChartInteractivityViewOptions extends InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityFilterOnSelectViewOptions {
206
+ /**
207
+ * Interactivity options
208
+ */
209
+ interactivity?: {
210
+ /**
211
+ * Available export types interactivity option
212
+ * @default ['xlsx', 'csv', 'png']
213
+ */
214
+ availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
215
+ /**
216
+ * Custom events interactivity option
217
+ * @default null
218
+ */
219
+ customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
220
+ /**
221
+ * Custom tooltip interactivity option, in format {locale: "tooltip"}, for example, {en: "Total Revenue"}
222
+ * @default null
223
+ */
224
+ customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
225
+ /**
226
+ * Drilldown interactivity option
227
+ */
228
+ drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
229
+ /**
230
+ * Export types interactivity option
231
+ * @default ['xlsx', 'csv', 'png']
232
+ */
233
+ exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
234
+ /**
235
+ * An array of measure dimension picker configurations
236
+ * @default [[]]
237
+ */
238
+ measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
239
+ /**
240
+ * Filter on select interactivity option
241
+ * @default true
242
+ */
243
+ select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
244
+ /**
245
+ * Go to URL interactivity option
246
+ * @default { target: '_blank', url: null }
247
+ */
248
+ urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
249
+ };
250
+ }
251
+ export type ColumnChartSubtype = 'column' | 'column-stack' | 'column-group';
252
+ export declare enum ColumnChartModes {
253
+ Grouped = "grouped",
254
+ Stacked = "stacked",
255
+ Percentage = "100"
256
+ }
257
+ export type ColumnChartLabel = 'none' | 'percentage' | 'percentageMax' | 'percentageCategory' | 'percentageLegend';
258
+ export {};
@@ -0,0 +1,39 @@
1
+ import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
2
+ /**
3
+ * Measure slot definition of the column chart. A column chart can contain any number of measure. If it contains 2 or more measures the column chart cannot use a legend column.
4
+ */
5
+ interface MeasureSlot extends DashboardContentVizItemSlot {
6
+ name: 'measure';
7
+ /**
8
+ * Measure slot definition
9
+ */
10
+ content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
11
+ }
12
+ /**
13
+ * Category slot definition of the column chart. This defines the columns on the X-axis.
14
+ */
15
+ interface XAxisSlot extends DashboardContentVizItemSlot {
16
+ name: 'x-axis';
17
+ /**
18
+ * X-axis slot definition
19
+ * @maxItems 1
20
+ */
21
+ content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
22
+ }
23
+ /**
24
+ * Legend slot definition of the column chart. This defines the legend of the column chart. If 2 or more 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 Column chart
36
+ * @maxItems 3
37
+ */
38
+ export type ColumnChartSlots = (MeasureSlot | XAxisSlot | LegendSlot)[];
39
+ export {};
@@ -0,0 +1,23 @@
1
+ import { VizItemType } from '../shared/common';
2
+ import { ColumnChartViewOptions } from './column-chart-options';
3
+ import { ColumnChartSlots } from './column-chart-slots';
4
+ /**
5
+ * Column chart item
6
+ */
7
+ export interface ColumnChart {
8
+ /**
9
+ * Type of the item
10
+ */
11
+ type: Extract<VizItemType, 'column-chart'>;
12
+ /**
13
+ * Options of the column chart item
14
+ * @$ref ./column-chart-options.schema.json/
15
+ */
16
+ options: ColumnChartViewOptions;
17
+ /**
18
+ * Data definition of the Column chart
19
+ * @maxItems 3
20
+ * @$ref ./column-chart-slots.schema.json
21
+ */
22
+ slots: ColumnChartSlots;
23
+ }
@@ -0,0 +1,3 @@
1
+ export * from './column-chart';
2
+ export * from './column-chart-options';
3
+ export * from './column-chart-slots';