@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.
- package/README.md +121 -15
- package/index.cjs +52769 -28
- package/index.d.ts +4 -1
- package/index.js +52768 -30
- package/lib/dashboard-component/dashboard-base.d.ts +7 -7
- package/lib/viz-item/viz-item-component.d.ts +4 -0
- package/lib/viz-item/viz-item.base.d.ts +73 -0
- package/libs/dashboard-contents-types/index.d.ts +2 -0
- package/libs/dashboard-contents-types/json-schemas.d.ts +1 -0
- package/libs/dashboard-contents-types/src/index.d.ts +27 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +330 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +257 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +310 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +30 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +98 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +41 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +99 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +40 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +138 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +41 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +258 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +344 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +94 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +147 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +18 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +130 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +84 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +185 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +110 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +63 -0
- package/libs/dashboard-contents-types/src/lib/image/image.d.ts +16 -0
- package/libs/dashboard-contents-types/src/lib/image/index.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +354 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +206 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +37 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +124 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +50 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +212 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +61 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +35 -0
- package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +102 -0
- package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +30 -0
- package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +24 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +61 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +13 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +81 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +24 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +66 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +1 -0
- package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +4 -0
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +31 -0
- package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +37 -0
- package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +5 -0
- package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +7 -0
- package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +25 -0
- package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +316 -0
- package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +64 -0
- package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +267 -0
- package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +18 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +204 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +22 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/text/index.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +53 -0
- package/libs/dashboard-contents-types/src/lib/text/text.d.ts +16 -0
- package/libs/dashboard-contents-types/src/options.d.ts +26 -0
- package/libs/dashboard-contents-types/src/slots.d.ts +24 -0
- package/libs/embed-libs/embed/src/index.d.ts +5 -0
- package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-base.d.ts +7 -7
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +4 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
- package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
- package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
- package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +17 -0
- package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +15 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
- package/luzmo-embed.min.js +62579 -2650
- package/package.json +5 -2
- package/src/index.d.ts +0 -2
- /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-component.d.ts +0 -0
- /package/{src → libs/embed-libs/embed/src}/lib/dashboard-component/dashboard-styles.d.ts +0 -0
- /package/{src → libs/embed-libs/embed/src}/lib/helper/event-bus-handler.d.ts +0 -0
- /package/{src → libs/embed-libs/embed/src}/lib/luzmo-service.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
# Web Component for Luzmo
|
|
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. [
|
|
9
|
-
3. [
|
|
10
|
-
4. [
|
|
11
|
-
5. [
|
|
12
|
-
6. [
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
|
192
|
+
<br/>
|
|
87
193
|
|
|
88
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|