@luzmo/embed 6.0.1 → 6.1.0-beta.2

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 +2 -135
  2. package/MIGRATIONS.md +1 -1
  3. package/README.md +121 -15
  4. package/index.cjs +54463 -28
  5. package/index.d.ts +4 -1
  6. package/index.js +54462 -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 +331 -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 +258 -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 +259 -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 +131 -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 +123 -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 +213 -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 +12 -0
  100. package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +32 -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 +10 -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 +205 -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 +64279 -2656
  200. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,138 +1,5 @@
1
-
2
1
  All notable changes to this project will be documented in this file.
3
2
 
4
- ## [6.0.1] - 2024-07-11
5
-
6
- - Fix for loader color when embedding dashboard as a web component, and other bug fixes
7
-
8
- ## [6.0.0] - 2024-05-31
9
-
10
- ### Breaking changes
11
-
12
- - Removed `<luzmo-dashboard>` web component, It has been replaced with `<luzmo-embed-dashboard>`.
13
- - `LuzmoDashboard` has been replaced with `LuzmoEmbedDashboard`
14
-
15
- ## [5.1.5] - 2024-05-03
16
-
17
- ### Bugfixes
18
-
19
- - Fix bugs in experimental=true, dashboard not loading at times.
20
-
21
- ## [5.1.4] - 2024-05-02
22
-
23
- ### Bugfixes
24
-
25
- - Fix build issues with CRA 5.0 and Webpack 5.0
26
-
27
- ## [5.1.3] - 2024-05-02
28
-
29
- ### Bugfixes
30
-
31
- - Height in edit mode is set to 100%, taking 100% of parent height.
32
-
33
- ## [5.1.2] - 2024-04-29
34
-
35
- ### Bugfixes
36
-
37
- - Height in edit mode is set to a minimum of 100vh.
38
-
39
-
40
- ## [5.1.1] - 2024-04-24
41
-
42
- ### Updates
43
-
44
- - Show actual error messages from luzmo application
45
-
46
- ## [5.1.0] - 2024-04-17
47
-
48
- ### Updates
49
-
50
- - Deprecated `luzmo-dashboard`, `luzmo-embed-dashboard` is the new element, `luzmo-dashboard` will be removed in next major release (`6.0.0`).
51
-
52
- ## [5.0.14] - 2024-03-28
53
-
54
- ### Bugfixes
55
-
56
- - Shared embed lib updated with bugfixes.
57
-
58
- ## [5.0.13] - 2024-03-26
59
-
60
- ### Updates
61
-
62
- - Add ESM build for libs entry point in `@luzmo/embed`.
63
-
64
- ## [5.0.12] - 2024-03-19
65
-
66
- ### Bugfixes
67
-
68
- - Fixed getAccessibleDashboards() to correctly work with embed tokens.
69
-
70
- ## [5.0.11] - 2024-03-18
71
-
72
- ### Updates
73
-
74
- - Correct typings are now exposed from @luzmo/embed.
75
-
76
- ## [5.0.10] - 2024-03-11
77
-
78
- ### Bugfixes
79
-
80
- - Use display block for the luzmo-dashboard component
81
-
82
- ## [5.0.9] - 2024-03-07
83
-
84
- ### Bugfixes
85
-
86
- - Fixed EDE width and height issue not being 100%.
87
-
88
- ## [5.0.8] - 2024-03-05
89
-
90
- ### Updates
91
-
92
- - Typing improvements in shared lib.
93
-
94
- ## [5.0.7] - 2024-02-28
95
-
96
- ### Updates
97
-
98
- - Bugfixes in experimental mode for width height issue.
99
-
100
-
101
- ## [5.0.6] - 2024-02-17
102
-
103
- ### Updates
104
-
105
- - Added type: "module" to package.json.
106
- - Updated dependencies.
107
-
108
- ## [5.0.5] - 2024-02-16
109
-
110
- ### Updates
111
-
112
- - Typing issue fixed.
113
-
114
- ## [5.0.4] - 2024-02-08
115
-
116
- ### Updates
117
-
118
- - Changelog update / README updated.
119
-
120
- ## [5.0.3] - 2024-02-01
121
-
122
- ### Updates
123
-
124
- - Added a parameter to allow testing upstream changes for clients.
125
- - Performance improvements.
126
-
127
- ## [5.0.2] - 2023-12-07
128
-
129
- ### BUGFIX
130
-
131
- - Fixed incorrect dependency version in library.
132
-
133
-
134
- ## [5.0.1] - 2023-12-06
135
-
136
- ### BUGFIX
3
+ ## [0.1.88] - 2024-09-06
137
4
 
138
- - Fixed a bug where dimensions were calculated before dimension data was available which resulted in a crash.
5
+ - Types and JSON schemas from Luzmo dashboard contents v0.1.88
package/MIGRATIONS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Luzmo embed migrations
2
2
 
3
- ## [5.X.X] -> [6.0.0] - 2024-05-31
3
+ ## [5.X.X] -> [6.0.0] - 2024-07-11
4
4
 
5
5
  ### Breaking changes
6
6
 
package/README.md CHANGED
@@ -1,17 +1,15 @@
1
- # Web Component for Luzmo dashboard
1
+ # Web Component for Luzmo
2
2
 
3
3
  A modern [Web Component](https://developer.mozilla.org/en-US/docs/Web/Web_Components) for [Luzmo](https://luzmo.com) dashboards in your web application.
4
4
 
5
5
  ## Table of contents
6
6
 
7
7
  1. [Installation instructions](#installation-instructions)
8
- 2. [Usage](#usage)
9
- 3. [Events](#events)
10
- 4. [Public Methods](#public-methods)
11
- 5. [Examples](#examples)
12
- 6. [Changelog](#changelog)
13
- 7. [Migration](#migration)
14
- 8. [Quick links](#quick-links)
8
+ 2. [Luzmo Embed Viz Item](#luzmo-embed-viz-item)
9
+ 3. [Luzmo Embed Dashboard](#luzmo-embed-dashboard)
10
+ 4. [Changelog](#changelog)
11
+ 5. [Migration](#migration)
12
+ 6. [Quick links](#quick-links)
15
13
 
16
14
  ## Installation instructions
17
15
 
@@ -43,7 +41,115 @@ OR
43
41
  <script type="module" src="./node_modules/@luzmo/embed/index.js"></script>
44
42
  ```
45
43
 
46
- ## Usage
44
+ ## Luzmo Embed Viz Item
45
+
46
+ ### For a more comprehensive documentation visit [Flex SDK Docs - Luzmo Developer Docs](https://developer.luzmo.com/guide/flex-sdk--introduction)
47
+
48
+ ### Usage luzmo-embed-viz-item
49
+
50
+ Use the viz-item components as if they were native HTML tags.
51
+
52
+ **In your HTML template.**
53
+ ```html
54
+ <luzmo-embed-viz-item type="bar-chart" slots="slotsArray[]" options="optionsObject"></luzmo-embed-viz-item>
55
+
56
+ OR
57
+
58
+ <luzmo-embed-viz-item type="bar-chart" dashboardId="dashboardId" itemId="itemId" options="optionsObject"></luzmo-embed-viz-item>
59
+
60
+ ```
61
+ <br/>
62
+
63
+ ### Properties: luzmo-embed-viz-item
64
+
65
+ Below a list of available properties on the viz item web component
66
+
67
+ | Property | Type | Description |
68
+ |----------------------------|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
69
+ | `type` | string | The type of viz item to embed. |
70
+ | `options` | object | The options object to be passed on to viz item |
71
+ | `slots` | array | The slots array to specify which columns to use to fetch data. depends on the type of chart. |
72
+ | `contextId` | string | contextId is a unique id that can be assigned to viz item which will be used in filtering with `canFilter`. |
73
+ | `authKey` | string | Authorization key generated via Luzmo API |
74
+ | `authToken` | string | Authorization token generated via Luzmo API |
75
+ | `canFilter` | string \| array | `canFilter` can be either set to `all` or an array of `contextId`'s. |
76
+ | `filters` | object | `filters` object is used to set initial filters. |
77
+ | `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
78
+ | `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
79
+
80
+ <br/>
81
+
82
+ ### Events luzmo-embed-viz-item
83
+
84
+ | Name | Description |
85
+ |----------------|----------------------------------------|
86
+ | changedFilters | Emitted when filters are changed |
87
+ | customEvent | Emitted when a custom event is fired |
88
+ | exported | Emitted when export completes or fails |
89
+ | rendered | Emitted when the item is rendered |
90
+ | load | Emitted when viz item is loaded |
91
+
92
+ <br/>
93
+
94
+ ### Public methods luzmo-embed-viz-item
95
+
96
+ ```typescript
97
+ getData(): any
98
+ // Return an array of the data of the viz item that's embedded.
99
+
100
+ getFilters(): FilterGroup[];
101
+ // Return an array of active filters on the viz item.
102
+
103
+ refreshData(): void
104
+ // Refresh the data of the viz item.
105
+
106
+ setAuthorization(key: string, token: string): void
107
+ // Changes the authorization of the viz item. To fetch data based on new authorization parameters, refreshData() needs to be called.
108
+
109
+ export(): void
110
+ // Export the viz item as png.
111
+ ```
112
+ <br/>
113
+
114
+ ### Examples luzmo-embed-viz-item
115
+
116
+ A Bar chart with display title hidden.
117
+
118
+ ```html
119
+ <luzmo-embed-viz-item id="vizItem" type="bar-chart" options='{ "display": { "title": false } }'></luzmo-embed-viz-item>
120
+ ```
121
+ Add an event listener to the viz item.
122
+
123
+ ```typescript
124
+ // get the component, here we query the component that has an id 'dashboard'
125
+ const vizItemComponent = document.getElementById('vizItem');
126
+ vizItemComponent.addEventListener('rendered', (event) => {
127
+ // do something after all items are rendered
128
+ console.log(event);
129
+ });
130
+ ```
131
+
132
+ Get data from the viz item
133
+
134
+ ```typescript
135
+ const data = vizItemComponent.getData()
136
+ ```
137
+
138
+ Get Active filters in the viz item
139
+
140
+ ```typescript
141
+ const filters = vizItemComponent.getFilters();
142
+ ```
143
+
144
+ Export the viz item
145
+
146
+ ```typescript
147
+ vizItemComponent.export();
148
+ ```
149
+
150
+ ## Luzmo Embed Dashboard
151
+
152
+ ### Usage luzmo-embed-dashboard
47
153
 
48
154
  Use the dashboard components as if they were native HTML tags. Use the id of the dashboard you wish to embed.
49
155
  **In your HTML template.**
@@ -57,7 +163,7 @@ OR
57
163
  <luzmo-embed-dashboard dashboardId="55cfb99c-d602-492b-b192-6c15277fdb9a" itemId="59fe5bd7-5070-42f5-98f4-da7f931e316c"> </luzmo-embed-dashboard>
58
164
  ```
59
165
 
60
- **Properties:**
166
+ ### Properties: luzmo-embed-dashboard
61
167
 
62
168
  Below a list of available properties on the dashboard web component
63
169
 
@@ -83,9 +189,9 @@ Below a list of available properties on the dashboard web component
83
189
  | `mainColor` | string | Optional override of the main color used in the whitelabeling of the embedded dashboard editor. If not provided, the main color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
84
190
  | `accentColor` | string | Optional override of the accent color used in the whitelabeling of the embedded dashboard editor. If not provided, the accent color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
85
191
 
86
- <br/><br/>
192
+ <br/>
87
193
 
88
- ## Events
194
+ ### Events luzmo-embed-dashboard
89
195
 
90
196
  | Name | Description | Event Arguments |
91
197
  | -------------- | -------------------------------------- | --------------------- |
@@ -97,7 +203,7 @@ Below a list of available properties on the dashboard web component
97
203
 
98
204
  <br/>
99
205
 
100
- ## Public methods
206
+ ### Public methods luzmo-embed-dashboard
101
207
 
102
208
  ```typescript
103
209
  getDashboards(): Promise<LuzmoDashboard[]>
@@ -130,7 +236,7 @@ setEditMode(editMode: DashboardEditMode): Promise<SetEditMode>
130
236
 
131
237
  <br/>
132
238
 
133
- ## Examples
239
+ ### Examples luzmo-embed-dashboard
134
240
 
135
241
  A dashboard with a gray loader background
136
242
 
@@ -206,7 +312,7 @@ dashboardComponent.getAccessibleDashboards().then((dashboards) => {
206
312
  ### Migrating from cumul.io to luzmo.
207
313
 
208
314
  * Change `import '@cumul.io/cumulio-dashboard` to `import @luzmo/embed`.
209
- * Replace all references of `cumulio-dashboard` to `luzmo-dashboard`
315
+ * Replace all references of `cumulio-dashboard` to `luzmo-embed-dashboard`
210
316
 
211
317
  ## Quick links
212
318