@luzmo/embed 5.0.6 → 5.0.8
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/CHANGELOG.md +13 -0
- package/README.md +0 -25
- package/index.cjs +1266 -85
- package/index.js +1258 -71
- package/lib/dashboard-component/dashboard-component.d.ts +1 -0
- package/luzmo-embed.min.js +2831 -54
- package/package.json +2 -2
- package/src/index.d.ts +0 -1
- package/src/lib/dashboard-component/dashboard-component.d.ts +0 -91
- package/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/luzmo-service.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [5.0.8] - 2024-03-05
|
|
5
|
+
|
|
6
|
+
### Updates
|
|
7
|
+
|
|
8
|
+
- Typing improvements in shared lib.
|
|
9
|
+
|
|
10
|
+
## [5.0.7] - 2024-02-28
|
|
11
|
+
|
|
12
|
+
### Updates
|
|
13
|
+
|
|
14
|
+
- Bugfixes in experimental mode for width height issue.
|
|
15
|
+
|
|
16
|
+
|
|
4
17
|
## [5.0.6] - 2024-02-17
|
|
5
18
|
|
|
6
19
|
### Updates
|
package/README.md
CHANGED
|
@@ -109,9 +109,6 @@ getData(itemId: string): Promise<ItemData>
|
|
|
109
109
|
getFilters(): Promise<FilterGroup[]>
|
|
110
110
|
// Returns an array of active filters.
|
|
111
111
|
|
|
112
|
-
setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SetFilters>
|
|
113
|
-
// Sets filters to the dashboard. Accepts an itemId which is an id of the item on the dashboard (e.g. chart) and filters which is an object with filters' settings.
|
|
114
|
-
|
|
115
112
|
setAuthorization(key: string, token: string): Promise<void>
|
|
116
113
|
// Changes the authorization of all or one dashboard. To fetch data based on new authorization parameters, reloadDashboard() or refreshData() needs to be called.
|
|
117
114
|
|
|
@@ -200,28 +197,6 @@ dashboardComponent.getAccessibleDashboards().then((dashboards) => {
|
|
|
200
197
|
});
|
|
201
198
|
```
|
|
202
199
|
|
|
203
|
-
Set filters for the Bar Chart:
|
|
204
|
-
|
|
205
|
-
```typescript
|
|
206
|
-
const barChartId = '04ec1a76-1948-496f-8342-0177272f6695';
|
|
207
|
-
const filters: BarChartFilterInput = {
|
|
208
|
-
and: [
|
|
209
|
-
{
|
|
210
|
-
expression: '? between ?',
|
|
211
|
-
parameters: [
|
|
212
|
-
{ slot: 'y-axis' },
|
|
213
|
-
[
|
|
214
|
-
['2010-01-01T00:00:00.000Z', '2010-01-01T00:00:00.000Z'],
|
|
215
|
-
['2012-01-01T00:00:00.000Z', '2012-01-01T00:00:00.000Z']
|
|
216
|
-
]
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
dashboardComponent.setFilters<BarChartFilterInput>(barChartId, filters)
|
|
222
|
-
.then(() => {});
|
|
223
|
-
```
|
|
224
|
-
|
|
225
200
|
## Changelog
|
|
226
201
|
|
|
227
202
|
- [Changelog](https://embed-libs.luzmo.com/changelogs/embed/)
|