@luzmo/embed 6.0.0 → 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 (199) hide show
  1. package/README.md +121 -15
  2. package/index.cjs +52769 -28
  3. package/index.d.ts +4 -1
  4. package/index.js +52768 -30
  5. package/lib/dashboard-component/dashboard-base.d.ts +7 -7
  6. package/lib/viz-item/viz-item-component.d.ts +4 -0
  7. package/lib/viz-item/viz-item.base.d.ts +73 -0
  8. package/libs/dashboard-contents-types/index.d.ts +2 -0
  9. package/libs/dashboard-contents-types/json-schemas.d.ts +1 -0
  10. package/libs/dashboard-contents-types/src/index.d.ts +27 -0
  11. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +330 -0
  12. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +39 -0
  13. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +23 -0
  14. package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +3 -0
  15. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +257 -0
  16. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +23 -0
  17. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +39 -0
  18. package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +3 -0
  19. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +310 -0
  20. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +30 -0
  21. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +23 -0
  22. package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +3 -0
  23. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +98 -0
  24. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +41 -0
  25. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +23 -0
  26. package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +3 -0
  27. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +99 -0
  28. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +40 -0
  29. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +23 -0
  30. package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +3 -0
  31. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +138 -0
  32. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +41 -0
  33. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +23 -0
  34. package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +3 -0
  35. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +122 -0
  36. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +29 -0
  37. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +23 -0
  38. package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +3 -0
  39. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +258 -0
  40. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +39 -0
  41. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +23 -0
  42. package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +3 -0
  43. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +344 -0
  44. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +28 -0
  45. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +23 -0
  46. package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +3 -0
  47. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +94 -0
  48. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +29 -0
  49. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +23 -0
  50. package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +3 -0
  51. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +147 -0
  52. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +18 -0
  53. package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +23 -0
  54. package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +3 -0
  55. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +130 -0
  56. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +28 -0
  57. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +23 -0
  58. package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +3 -0
  59. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +84 -0
  60. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +17 -0
  61. package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +23 -0
  62. package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +3 -0
  63. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +185 -0
  64. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +29 -0
  65. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +23 -0
  66. package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +3 -0
  67. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +110 -0
  68. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +29 -0
  69. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +23 -0
  70. package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +3 -0
  71. package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +63 -0
  72. package/libs/dashboard-contents-types/src/lib/image/image.d.ts +16 -0
  73. package/libs/dashboard-contents-types/src/lib/image/index.d.ts +2 -0
  74. package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +3 -0
  75. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +354 -0
  76. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +39 -0
  77. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +23 -0
  78. package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +3 -0
  79. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +206 -0
  80. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +37 -0
  81. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +23 -0
  82. package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +3 -0
  83. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +124 -0
  84. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +17 -0
  85. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +23 -0
  86. package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +3 -0
  87. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +122 -0
  88. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +50 -0
  89. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +23 -0
  90. package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +3 -0
  91. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +212 -0
  92. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +61 -0
  93. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +23 -0
  94. package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +35 -0
  95. package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +3 -0
  96. package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +102 -0
  97. package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +11 -0
  98. package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +30 -0
  99. package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +28 -0
  100. package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +29 -0
  101. package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +24 -0
  102. package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +11 -0
  103. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +61 -0
  104. package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +13 -0
  105. package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +81 -0
  106. package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +24 -0
  107. package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +11 -0
  108. package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +28 -0
  109. package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +66 -0
  110. package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +1 -0
  111. package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +4 -0
  112. package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +122 -0
  113. package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +31 -0
  114. package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +37 -0
  115. package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +5 -0
  116. package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +7 -0
  117. package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +25 -0
  118. package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +17 -0
  119. package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +316 -0
  120. package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +64 -0
  121. package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +267 -0
  122. package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +18 -0
  123. package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +3 -0
  124. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +204 -0
  125. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +28 -0
  126. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +23 -0
  127. package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +3 -0
  128. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +22 -0
  129. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +17 -0
  130. package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +23 -0
  131. package/libs/dashboard-contents-types/src/lib/text/index.d.ts +2 -0
  132. package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +53 -0
  133. package/libs/dashboard-contents-types/src/lib/text/text.d.ts +16 -0
  134. package/libs/dashboard-contents-types/src/options.d.ts +26 -0
  135. package/libs/dashboard-contents-types/src/slots.d.ts +24 -0
  136. package/libs/embed-libs/embed/src/index.d.ts +5 -0
  137. package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-base.d.ts +7 -7
  138. package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +4 -0
  139. package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +73 -0
  140. package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
  141. package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
  142. package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
  143. package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
  144. package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
  145. package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
  146. package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
  147. package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
  148. package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
  149. package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
  150. package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
  151. package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +7 -0
  152. package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
  153. package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
  154. package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
  155. package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
  156. package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
  157. package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
  158. package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
  159. package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
  160. package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
  161. package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
  162. package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
  163. package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
  164. package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
  165. package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +4 -0
  166. package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
  167. package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
  168. package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
  169. package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +17 -0
  170. package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
  171. package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
  172. package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +4 -0
  173. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +13 -0
  174. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +24 -0
  175. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +13 -0
  176. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
  177. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +24 -0
  178. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +13 -0
  179. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
  180. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +13 -0
  181. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
  182. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +36 -0
  183. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
  184. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +24 -0
  185. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +13 -0
  186. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +24 -0
  187. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +13 -0
  188. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +15 -0
  189. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +14 -0
  190. package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +24 -0
  191. package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
  192. package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
  193. package/luzmo-embed.min.js +62579 -2650
  194. package/package.json +5 -2
  195. package/src/index.d.ts +0 -2
  196. /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-component.d.ts +0 -0
  197. /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-styles.d.ts +0 -0
  198. /package/{src → libs/embed-libs/embed/src}/lib/helper/event-bus-handler.d.ts +0 -0
  199. /package/{src → libs/embed-libs/embed/src}/lib/luzmo-service.d.ts +0 -0
@@ -0,0 +1,26 @@
1
+ import { AreaChartViewOptions } from './lib/area-chart';
2
+ import { BoxPlotViewOptions } from './lib/box-plot';
3
+ import { BarChartViewOptions } from './lib/bar-chart';
4
+ import { BubbleChartViewOptions } from './lib/bubble-chart';
5
+ import { BulletChartViewOptions } from './lib/bullet-chart';
6
+ import { ChoroplethMapViewOptions } from './lib/choropleth-map';
7
+ import { CircularGaugeViewOptions } from './lib/circular-gauge';
8
+ import { ColumnChartViewOptions } from './lib/column-chart';
9
+ import { CombinationChartViewOptions } from './lib/combination-chart';
10
+ import { ConditionalNumberViewOptions } from './lib/conditional-number';
11
+ import { DateFilterViewOptions } from './lib/date-filter';
12
+ import { DonutChartViewOptions } from './lib/donut-chart';
13
+ import { DropdownFilterViewOptions } from './lib/dropdown-filter';
14
+ import { EvolutionNumberViewOptions } from './lib/evolution-number';
15
+ import { FunnelChartViewOptions } from './lib/funnel-chart';
16
+ import { ImageViewOptions } from './lib/image';
17
+ import { LineChartViewOptions } from './lib/line-chart';
18
+ import { PivotTableViewOptions } from './lib/pivot-table';
19
+ import { RegularTableViewOptions } from './lib/regular-table';
20
+ import { SankeyDiagramViewOptions } from './lib/sankey-diagram';
21
+ import { ScatterPlotViewOptions } from './lib/scatter-plot';
22
+ import { SlicerFilterViewOptions } from './lib/slicer-filter';
23
+ import { SliderFilterViewOptions } from './lib/slider-filter';
24
+ import { TextViewOptions } from './lib/text';
25
+ export type Options = AreaChartViewOptions | BarChartViewOptions | BoxPlotViewOptions | BubbleChartViewOptions | BulletChartViewOptions | ChoroplethMapViewOptions | CircularGaugeViewOptions | ColumnChartViewOptions | CombinationChartViewOptions | ConditionalNumberViewOptions | DateFilterViewOptions | DonutChartViewOptions | DropdownFilterViewOptions | EvolutionNumberViewOptions | FunnelChartViewOptions | ImageViewOptions | LineChartViewOptions | PivotTableViewOptions | RegularTableViewOptions | SankeyDiagramViewOptions | ScatterPlotViewOptions | SlicerFilterViewOptions | SliderFilterViewOptions | TextViewOptions;
26
+ export type VizItemOptions = Options;
@@ -0,0 +1,24 @@
1
+ import { AreaChartSlots } from './lib/area-chart';
2
+ import { BarChartSlots } from './lib/bar-chart';
3
+ import { BoxPlotSlots } from './lib/box-plot';
4
+ import { BubbleChartSlots } from './lib/bubble-chart';
5
+ import { BulletChartSlots } from './lib/bullet-chart';
6
+ import { ChoroplethMapSlots } from './lib/choropleth-map';
7
+ import { CircularGaugeSlots } from './lib/circular-gauge';
8
+ import { ColumnChartSlots } from './lib/column-chart';
9
+ import { CombinationChartSlots } from './lib/combination-chart';
10
+ import { ConditionalNumberSlots } from './lib/conditional-number';
11
+ import { DateFilterSlots } from './lib/date-filter';
12
+ import { DonutChartSlots } from './lib/donut-chart';
13
+ import { DropdownFilterSlots } from './lib/dropdown-filter';
14
+ import { EvolutionNumberSlots } from './lib/evolution-number';
15
+ import { FunnelChartSlots } from './lib/funnel-chart';
16
+ import { LineChartSlots } from './lib/line-chart';
17
+ import { PivotTableSlots } from './lib/pivot-table';
18
+ import { RegularTableSlots } from './lib/regular-table';
19
+ import { SankeyDiagramSlots } from './lib/sankey-diagram';
20
+ import { ScatterPlotSlots } from './lib/scatter-plot';
21
+ import { SlicerFilterSlots } from './lib/slicer-filter';
22
+ import { SliderFilterSlots } from './lib/slider-filter';
23
+ export type Slots = AreaChartSlots | BarChartSlots | BoxPlotSlots | BubbleChartSlots | BulletChartSlots | ChoroplethMapSlots | CircularGaugeSlots | ColumnChartSlots | CombinationChartSlots | ConditionalNumberSlots | DateFilterSlots | DonutChartSlots | DropdownFilterSlots | EvolutionNumberSlots | FunnelChartSlots | LineChartSlots | PivotTableSlots | RegularTableSlots | SankeyDiagramSlots | ScatterPlotSlots | SlicerFilterSlots | SliderFilterSlots;
24
+ export type VizItemSlots = Slots;
@@ -0,0 +1,5 @@
1
+ export type * from '@luzmo/dashboard-contents-types';
2
+ export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
3
+ export { selectedDataUtils } from '@luzmo/shared-embed';
4
+ export * from './lib/dashboard-component/dashboard-component';
5
+ export * from './lib/viz-item/viz-item-component';
@@ -1,6 +1,7 @@
1
1
  import * as SharedLib from '@luzmo/shared-embed';
2
2
  import { LitElement, PropertyValues, TemplateResult } from 'lit';
3
- import { CombinedFilterInput } from '@luzmo/shared-embed';
3
+ import { LuzmoElement, CombinedSelectedDataInput } from '@luzmo/shared-embed';
4
+ import type { FilterGroup } from '@luzmo/dashboard-contents-types';
4
5
  /**
5
6
  * Luzmo Dashboard
6
7
  * Base component isn't registered in customEvents registry so that it can be reused.
@@ -51,9 +52,9 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
51
52
  browserErrorMsg: string;
52
53
  dashboardError: boolean;
53
54
  browserNotSupported: any[];
54
- VERSION: string;
55
+ libVersion: string;
55
56
  protected isLibraryLoaded: boolean;
56
- protected dashboardReference: SharedLib.LuzmoElement;
57
+ protected dashboardReference: LuzmoElement;
57
58
  currentAuthKey: string;
58
59
  currentAuthToken: string;
59
60
  isInitCalled: boolean;
@@ -67,7 +68,6 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
67
68
  iframeWidth?: string;
68
69
  _resizeObserver: ResizeObserver;
69
70
  constructor();
70
- private loadLibrary;
71
71
  connectedCallback(): void;
72
72
  disconnectedCallback(): void;
73
73
  firstUpdated(): void;
@@ -84,14 +84,14 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
84
84
  render(): TemplateResult;
85
85
  getDashboards(): Promise<LuzmoDashboard[]>;
86
86
  getData(itemId: string): Promise<SharedLib.ItemData>;
87
- getFilters(): Promise<SharedLib.FilterGroup[]>;
88
- setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
87
+ getFilters(): Promise<FilterGroup[]>;
88
+ setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SharedLib.SetSelectedData>;
89
89
  setAuthorization(key: string, token: string): Promise<void>;
90
90
  refreshData(itemId?: string): Promise<void>;
91
91
  reloadDashboard(): Promise<void>;
92
92
  exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
93
93
  getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
94
- addFilters(itemId: string, filters: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
94
+ addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
95
95
  setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
96
96
  setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
97
97
  getIsViewMode(): boolean;
@@ -0,0 +1,4 @@
1
+ import { LuzmoBaseVizItem } from './viz-item.base';
2
+ export { LuzmoVizItemComponentInterface } from './viz-item.base';
3
+ export declare class LuzmoEmbedVizItem extends LuzmoBaseVizItem {
4
+ }
@@ -0,0 +1,73 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import * as SharedLib from '@luzmo/shared-embed';
3
+ import type { VizItemOptions, VizItemType, VizItemSlots, FilterGroup } from '@luzmo/dashboard-contents-types';
4
+ /**
5
+ * The version of the dashboard contents that is linked to the current library.
6
+ *
7
+ * If custom options/slots/etc. are passed to the component, the library assumes that
8
+ * they are using this dashboard contents version. Then custom options/slots/etc.
9
+ * together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
10
+ * and if needed the migration will be applied on the dashboard app level.
11
+ */
12
+ export declare const dashboardContentsVersion = "0.1.88";
13
+ type FunctionCall = [(...args: any) => any, any[]];
14
+ export interface LuzmoVizItemComponentInterface extends HTMLElement {
15
+ options?: VizItemOptions;
16
+ type?: VizItemType;
17
+ appServer?: string;
18
+ apiHost?: string;
19
+ slots?: VizItemSlots;
20
+ canFilter?: string[] | 'all';
21
+ filters?: FilterGroup[];
22
+ contextId?: string;
23
+ authKey?: string;
24
+ authToken?: string;
25
+ dashboardId?: string;
26
+ itemId?: string;
27
+ getFilters: () => FilterGroup[];
28
+ export: () => void;
29
+ refreshData: () => void;
30
+ getData: () => SharedLib.ItemData;
31
+ setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
32
+ setAuthorization: (key: string, token: string) => void;
33
+ }
34
+ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItemComponentInterface {
35
+ appServer?: string;
36
+ apiHost?: string;
37
+ slots?: VizItemSlots;
38
+ options?: VizItemOptions;
39
+ type?: VizItemType;
40
+ authKey?: string;
41
+ authToken?: string;
42
+ version?: string;
43
+ contextId?: string;
44
+ canFilter?: SharedLib.CanFilter;
45
+ filters?: FilterGroup[];
46
+ dashboardId?: string;
47
+ itemId?: string;
48
+ selectedData: SharedLib.SelectedDataInput;
49
+ dashboardContentsVersion?: string;
50
+ libVersion?: string;
51
+ chartElement: HTMLElement & Partial<LuzmoVizItemComponentInterface> & {
52
+ setSelectedData?: (itemId?: string, filters?: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
53
+ };
54
+ postInitCallQueue: FunctionCall[];
55
+ static styles: import("lit").CSSResult;
56
+ constructor();
57
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
58
+ canInitializeVizItem(): boolean;
59
+ getFilters(): FilterGroup[];
60
+ export(): void;
61
+ getData(): any;
62
+ refreshData(): void;
63
+ setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
64
+ setAuthorization(key: string, token: string): void;
65
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
66
+ protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
67
+ private createAndAppendElement;
68
+ private updateVizItemProperties;
69
+ updated(changedProperties: PropertyValues): Promise<void>;
70
+ private parseAndValidate;
71
+ protected render(): unknown;
72
+ }
73
+ export {};
@@ -0,0 +1,33 @@
1
+ export * from './lib/helpers/browser-check';
2
+ export * from './lib/helpers/default-parameters';
3
+ export * from './lib/helpers/error';
4
+ export * from './lib/helpers/extents';
5
+ export * from './lib/helpers/translations';
6
+ export * from './lib/helpers/utils';
7
+ export * from './lib/helpers/iframe-url';
8
+ export * from './lib/helpers/get-loader';
9
+ export * from './lib/helpers/promise-dispatch';
10
+ export * from './lib/helpers/styles';
11
+ export * from './lib/helpers/update-iframe-url';
12
+ export * from './lib/helpers/set-selected-data-utils';
13
+ export * from './lib/methods/export-dashboard';
14
+ export * from './lib/methods/get-accessible-dashboards';
15
+ export * from './lib/methods/get-data';
16
+ export * from './lib/methods/get-filters';
17
+ export * from './lib/methods/refresh-data';
18
+ export * from './lib/methods/reload-dashboard';
19
+ export * from './lib/methods/set-authorization';
20
+ export * from './lib/methods/set-edit-mode';
21
+ export * from './lib/methods/set-selected-data';
22
+ export * from './lib/methods/set-preview';
23
+ export * from './lib/service/calculate-dimensions';
24
+ export * from './lib/service/extend-and-validate';
25
+ export * from './lib/models/common.model';
26
+ export * from './lib/models/dashboard.model';
27
+ export * from './lib/models/events.model';
28
+ export * from './lib/models/styles.model';
29
+ export * from './lib/models/filters.model';
30
+ export * from './lib/models/viz-item.model';
31
+ export * from './lib/models/viz-item-post-message.model';
32
+ export * from './lib/models/viz-items';
33
+ export * from './lib/constants/class-constants';
@@ -0,0 +1,2 @@
1
+ export * from './index.common';
2
+ export * from './lib/helpers/remote-federation';
@@ -0,0 +1 @@
1
+ export declare const luzmoEmbedContainerClass = "luzmo-embed-container";
@@ -0,0 +1,2 @@
1
+ import { CommonLuzmoDashboard } from '../models/dashboard.model';
2
+ export declare const _browserCheck: (dashboardComponent: CommonLuzmoDashboard) => void;
@@ -0,0 +1,2 @@
1
+ import { DashboardContentParams } from '../models/common.model';
2
+ export declare const DEFAULT_PARAMETERS: DashboardContentParams;
@@ -0,0 +1,5 @@
1
+ export declare const _handleError: (errorMessage: string, parameters?: {
2
+ dashboardId?: string;
3
+ dashboardSlug?: string;
4
+ container?: string;
5
+ }) => void;
@@ -0,0 +1,7 @@
1
+ import { ScreenMode } from '../models/common.model';
2
+ export interface ScreenModeExtents {
3
+ mode: Exclude<ScreenMode, 'auto'>;
4
+ height?: number;
5
+ width: number[];
6
+ }
7
+ export declare const EXTENTS: ScreenModeExtents[];
@@ -0,0 +1,5 @@
1
+ import { CommonLuzmoDashboard } from '../models/dashboard.model';
2
+ export declare const getLoader: (dashboardComponent: CommonLuzmoDashboard) => {
3
+ loadingMsg: string;
4
+ errorMsg: string;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const createIframeUrl: (dashboardContent: any) => string;
@@ -0,0 +1,3 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ export declare function resolvePromise<T extends LuzmoDashboard>(dashboardComponent: T, requestId: string, data: unknown): void;
3
+ export declare function rejectPromise<T extends LuzmoDashboard>(dashboardComponent: T, requestId: string, data: unknown): void;
@@ -0,0 +1,16 @@
1
+ type RemoteMap = {
2
+ [remoteName: string]: {
3
+ url?: string;
4
+ format?: string;
5
+ from?: string;
6
+ module?: any;
7
+ inited?: boolean;
8
+ lib?: any;
9
+ };
10
+ };
11
+ type ComponentNames = 'DashboardApp';
12
+ export declare const remotesMap: RemoteMap;
13
+ export declare function __federationMethodWrapDefault(module: any, need?: boolean): any;
14
+ export declare function __federationMethodGetRemote(remoteName: string, componentName: string): Promise<any>;
15
+ export declare function loadLibrary(appServer: string, componentName?: ComponentNames): Promise<any>;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SelectedDataInput, AvailableSlots } from '../models/filters.model';
2
+ export declare const selectedDataUtils: {
3
+ merge(...filters: SelectedDataInput[]): SelectedDataInput;
4
+ isIn(slot: AvailableSlots, values: string[] | number[], otherOptions?: any): SelectedDataInput;
5
+ between(slot: AvailableSlots, values: [string | number, string | number], otherOptions?: any): SelectedDataInput;
6
+ range(slot: AvailableSlots, values: [string | number, string | number], otherOptions?: any): SelectedDataInput;
7
+ };
@@ -0,0 +1,8 @@
1
+ import { ContainerLoaderStyles, ContainerStyles, IframeStyles, LcStyles, LoaderStyles, PlStyles } from '../models/styles.model';
2
+ import { CommonLuzmoDashboard } from '../models/dashboard.model';
3
+ export declare function containerStyles(dashboardComponent: CommonLuzmoDashboard): ContainerStyles;
4
+ export declare function containerLoaderStyles(dashboardComponent: CommonLuzmoDashboard): ContainerLoaderStyles;
5
+ export declare function loaderStyles(dashboardComponent: CommonLuzmoDashboard): LoaderStyles;
6
+ export declare function plStyles(dashboardComponent: CommonLuzmoDashboard): PlStyles;
7
+ export declare function lcStyles(dashboardComponent: CommonLuzmoDashboard): LcStyles;
8
+ export declare function calculateIframeStyles(dashboardComponent: CommonLuzmoDashboard): IframeStyles;
@@ -0,0 +1,18 @@
1
+ export declare const TRANSLATIONS: {
2
+ initializing: {
3
+ en: string;
4
+ nl: string;
5
+ fr: string;
6
+ };
7
+ errorDashboard: {
8
+ en: string;
9
+ nl: string;
10
+ fr: string;
11
+ };
12
+ errorItem: {
13
+ en: string;
14
+ nl: string;
15
+ fr: string;
16
+ };
17
+ };
18
+ export default TRANSLATIONS;
@@ -0,0 +1 @@
1
+ export declare const updateIframeUrl: (iframe: HTMLIFrameElement, iframeUrl?: string) => void;
@@ -0,0 +1,27 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ export declare const addTrailingSlash: (serverUrl?: string) => string;
3
+ export declare const removeTrailingSlash: (serverUrl?: string) => string;
4
+ export declare const formatDashboardList: (dashboards: any[], integrationId: string, user: any, dashboardComponent: LuzmoDashboard) => {
5
+ accessibleBy: {
6
+ id: string;
7
+ name: string;
8
+ model: 'User' | 'Group' | 'Integration';
9
+ }[];
10
+ accessRights: {
11
+ flagRead?: boolean;
12
+ flagUse?: boolean;
13
+ flagModify?: boolean;
14
+ flagOwn?: boolean;
15
+ };
16
+ id: string;
17
+ modifiedAt: string;
18
+ name: string;
19
+ slug: string;
20
+ tags: string[];
21
+ }[];
22
+ export declare const VERSION = "0.0.0-unknown-luzmo";
23
+ export declare const sanitizeUrl: (url: string) => string;
24
+ export declare const cloneDeep: (obj: unknown) => any;
25
+ export declare const defaultsDeep: <T extends object>(target: T, defaults: T) => T;
26
+ export declare const s4: () => string;
27
+ export declare const uuidv4: () => string;
@@ -0,0 +1,4 @@
1
+ import { ExportDashboard } from '../models/common.model';
2
+ import { LuzmoDashboard } from '../models/dashboard.model';
3
+ export type ExportType = 'png' | 'pdf';
4
+ export declare const exportDashboard: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, format?: ExportType) => Promise<ExportDashboard>;
@@ -0,0 +1,3 @@
1
+ import { AccessibleDashboard } from '../models/common.model';
2
+ import { LuzmoDashboard } from '../models/dashboard.model';
3
+ export declare const getAccessibleDashboards: <T extends LuzmoDashboard>(dashboardComponent: T) => Promise<AccessibleDashboard[]>;
@@ -0,0 +1,3 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ import { ItemData } from '../models/common.model';
3
+ export declare const getData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string) => Promise<ItemData>;
@@ -0,0 +1,3 @@
1
+ import { FilterGroup } from '@luzmo/dashboard-contents-types';
2
+ import { LuzmoDashboard } from '../models/dashboard.model';
3
+ export declare const getFilters: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement) => Promise<FilterGroup[]>;
@@ -0,0 +1,2 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ export declare const refreshData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId?: string) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ export declare const reloadDashboard: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ export declare const setAuthorization: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, key: string, token: string) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { DashboardEditMode, SetEditMode } from '../models/common.model';
2
+ import { LuzmoDashboard } from '../models/dashboard.model';
3
+ export declare const setEditMode: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, editMode?: DashboardEditMode) => Promise<SetEditMode>;
@@ -0,0 +1,3 @@
1
+ import { LuzmoDashboard } from '../models/dashboard.model';
2
+ import { SetPreview } from '../models/common.model';
3
+ export declare const setPreview: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, preview: boolean) => Promise<SetPreview>;
@@ -0,0 +1,4 @@
1
+ import { SetSelectedData } from '../models/common.model';
2
+ import { LuzmoDashboard } from '../models/dashboard.model';
3
+ import { SelectedDataInput } from '../models/filters.model';
4
+ export declare const setSelectedData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string, filters: SelectedDataInput) => Promise<SetSelectedData>;
@@ -0,0 +1,103 @@
1
+ import { FilterGroup } from '@luzmo/dashboard-contents-types';
2
+ export type ScreenMode = 'mobile' | 'tablet' | 'desktop' | 'largeScreen' | 'fixed' | 'auto';
3
+ export type DashboardDimensions = Record<Exclude<ScreenMode, 'auto'>, [
4
+ number,
5
+ number,
6
+ string
7
+ ]>;
8
+ export type CommonReturnType = {
9
+ dashboardId?: string;
10
+ dashboardSlug?: string;
11
+ integrationId?: string;
12
+ itemId?: string;
13
+ language?: string;
14
+ name?: string;
15
+ requestId?: string;
16
+ screenMode?: ScreenMode;
17
+ type?: string;
18
+ error?: boolean;
19
+ msg?: string;
20
+ };
21
+ export type ExportDashboard = {
22
+ type: 'export';
23
+ } & CommonReturnType;
24
+ export type AccessibleDashboard = {
25
+ accessibleBy?: {
26
+ model?: 'User' | 'Group' | 'Integration';
27
+ id?: string;
28
+ name?: string;
29
+ }[];
30
+ accessRights?: {
31
+ flagRead?: boolean;
32
+ flagUse?: boolean;
33
+ flagModify?: boolean;
34
+ flagOwn?: boolean;
35
+ };
36
+ id?: string;
37
+ modifiedAt?: string;
38
+ name?: string;
39
+ slug?: string | null;
40
+ tags: string[];
41
+ };
42
+ export type ItemData = any[];
43
+ export type DashboardEditMode = 'editFull' | 'editLimited' | 'view';
44
+ export type SetEditMode = {
45
+ type?: 'setEditMode';
46
+ editMode?: DashboardEditMode;
47
+ } & CommonReturnType;
48
+ export type SetSelectedData = {
49
+ filters?: FilterGroup[];
50
+ } & CommonReturnType;
51
+ export type SetPreview = {
52
+ type: 'setPreview';
53
+ preview?: boolean;
54
+ } & CommonReturnType;
55
+ export type AddFilters = {
56
+ type: 'AddFilters';
57
+ origin: 'itemFilter';
58
+ item: string;
59
+ filters: FilterGroup[];
60
+ };
61
+ export type DashboardPromises = Record<string, {
62
+ resolve: (value?: unknown | PromiseLike<unknown>) => void;
63
+ reject: (reason: any) => void;
64
+ }>;
65
+ export type BrowserCheckKey = 'svg' | 'flexbox' | 'postMessage';
66
+ export interface DashboardInputs {
67
+ appServer?: string;
68
+ apiHost?: string;
69
+ itemId?: string;
70
+ mainColor?: string;
71
+ accentColor?: string;
72
+ language?: string;
73
+ qeVersion?: number;
74
+ editMode?: DashboardEditMode;
75
+ screenMode?: ScreenMode;
76
+ switchScreenModeOnResize?: boolean;
77
+ dashboardId?: string;
78
+ dashboardSlug?: string;
79
+ itemDimensions?: {
80
+ width: number | 'auto';
81
+ height: number | 'auto';
82
+ };
83
+ timezoneId?: string;
84
+ loaderBackground?: string;
85
+ loaderFontColor?: string;
86
+ loaderSpinnerColor?: string;
87
+ loaderSpinnerBackground?: string;
88
+ authKey?: string;
89
+ authToken?: string;
90
+ experimental?: boolean;
91
+ }
92
+ export interface DashboardContentParams extends Exclude<DashboardInputs, 'authKey' | 'authToken' | 'loaderBackground' | 'loaderFontColor' | 'loaderSpinnerColor' | 'loaderSpinnerBackground'> {
93
+ key?: DashboardInputs['authKey'];
94
+ token?: DashboardInputs['authToken'];
95
+ itemEmbedding?: boolean;
96
+ loaderBackground?: DashboardInputs['loaderBackground'];
97
+ loaderFontColor?: DashboardInputs['loaderFontColor'];
98
+ loaderSpinnerColor?: DashboardInputs['loaderSpinnerColor'];
99
+ loaderSpinnerBackground?: DashboardInputs['loaderSpinnerBackground'];
100
+ error?: boolean;
101
+ container?: string;
102
+ contextId?: string;
103
+ }
@@ -0,0 +1,45 @@
1
+ import { FilterGroup } from '@luzmo/dashboard-contents-types';
2
+ import { ExportType } from '../methods/export-dashboard';
3
+ import { AccessibleDashboard, BrowserCheckKey, DashboardContentParams, DashboardDimensions, DashboardEditMode, DashboardInputs, DashboardPromises, ExportDashboard, ItemData, ScreenMode, SetEditMode, SetSelectedData, SetPreview, AddFilters } from './common.model';
4
+ import { IframeStyles } from './styles.model';
5
+ import { CombinedSelectedDataInput } from './viz-items';
6
+ export interface CommonLuzmoDashboard extends DashboardInputs {
7
+ libVersion?: string;
8
+ promises?: DashboardPromises;
9
+ params?: DashboardContentParams;
10
+ iframeLoaded?: boolean;
11
+ loaderSize?: number;
12
+ borderWidth?: number;
13
+ minHeight?: number;
14
+ iframeWidth?: string;
15
+ iframeHeight?: string;
16
+ error?: boolean;
17
+ browserNotSupported?: BrowserCheckKey[];
18
+ dimensions?: DashboardDimensions;
19
+ currentScreenMode?: ScreenMode;
20
+ iframeStyle?: IframeStyles;
21
+ currentAuthKey?: string;
22
+ currentAuthToken?: string;
23
+ }
24
+ export interface NgxLuzmoDashboard extends CommonLuzmoDashboard {
25
+ dashboardReference?: HTMLElement;
26
+ }
27
+ export interface ES6LuzmoDashboard extends CommonLuzmoDashboard {
28
+ }
29
+ export interface VueLuzmoDashboard extends CommonLuzmoDashboard {
30
+ }
31
+ export type LuzmoDashboard = NgxLuzmoDashboard | ES6LuzmoDashboard | VueLuzmoDashboard;
32
+ export interface LuzmoElement extends HTMLElement {
33
+ getDashboards(): Promise<LuzmoDashboard[]>;
34
+ getFilters(): Promise<FilterGroup[]>;
35
+ exportDashboard(format?: ExportType): Promise<ExportDashboard>;
36
+ reloadDashboard(): Promise<void>;
37
+ getData(itemId: string): Promise<ItemData>;
38
+ refreshData(itemId?: string): Promise<void>;
39
+ getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
40
+ setAuthorization(key: string, token: string): Promise<void>;
41
+ setEditMode(editMode: DashboardEditMode): Promise<SetEditMode>;
42
+ setPreview(preview: boolean): Promise<SetPreview>;
43
+ setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SetSelectedData>;
44
+ addFilters(itemId: string, filters: FilterGroup[]): Promise<AddFilters>;
45
+ }
@@ -0,0 +1,73 @@
1
+ import { FilterGroup, FilterOrigin } from '@luzmo/dashboard-contents-types';
2
+ import { DashboardDimensions, ScreenMode } from './common.model';
3
+ interface EventDataBase {
4
+ dashboardId?: string;
5
+ dashboardSlug?: string;
6
+ integrationId?: string;
7
+ language?: string;
8
+ name?: string;
9
+ screenMode?: ScreenMode;
10
+ type?: string;
11
+ }
12
+ interface LoadEventData extends EventDataBase {
13
+ type: 'load';
14
+ dimensions: DashboardDimensions;
15
+ }
16
+ interface ChangedFiltersEventData extends EventDataBase {
17
+ type: 'changedFilters';
18
+ changed: FilterGroup[];
19
+ filters: FilterGroup[];
20
+ itemId: string;
21
+ origin: FilterOrigin;
22
+ }
23
+ interface ItemsRenderedEventData extends EventDataBase {
24
+ type: 'chartsRendered';
25
+ }
26
+ interface CustomEventData extends EventDataBase {
27
+ itemId: string;
28
+ data: {
29
+ event: string;
30
+ language: string;
31
+ [key: string]: unknown;
32
+ };
33
+ }
34
+ export interface LoadEvent {
35
+ data: LoadEventData;
36
+ }
37
+ export interface ChangedFiltersEvent {
38
+ data: ChangedFiltersEventData;
39
+ }
40
+ export interface CustomEvent {
41
+ data: CustomEventData;
42
+ }
43
+ export interface ItemsRenderedEvent {
44
+ data: ItemsRenderedEventData;
45
+ }
46
+ interface ExportedEventData extends EventDataBase {
47
+ type: 'exported';
48
+ }
49
+ export interface ExportedEvent {
50
+ data: ExportedEventData;
51
+ }
52
+ type DashboardAction = 'addColumnToSlot' | 'addFormulaToSlot' | 'removeColumnFromSlot' | 'removeItem' | 'addItem' | 'cloneItem' | 'addItemFilter' | 'updateItemFilter' | 'removeItemFilter' | 'addDashboardFilter' | 'removeDashboardFilter' | 'updateDashboardFilter' | 'addParameter' | 'updateParameter' | 'removeParameter' | 'openDatasetDetail' | 'linkDatasets' | 'authorizationExpired';
53
+ interface DashboardActionEventData extends EventDataBase {
54
+ type: 'dashboardAction';
55
+ action: DashboardAction;
56
+ dropType?: 'add' | 'replace';
57
+ item?: {
58
+ id: string;
59
+ type: string;
60
+ };
61
+ column?: {
62
+ id: string;
63
+ name: {
64
+ [k: string]: string | void;
65
+ };
66
+ type: string;
67
+ datasetId: string;
68
+ };
69
+ }
70
+ export interface DashboardActionEvent {
71
+ data: DashboardActionEventData;
72
+ }
73
+ export {};