@luzmo/embed 5.0.5 → 5.0.6
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 +41 -0
- package/MIGRATIONS.md +1 -0
- package/README.md +25 -0
- package/index.cjs +1051 -0
- package/index.js +277 -977
- package/lib/dashboard-component/dashboard-component.d.ts +4 -2
- package/luzmo-embed.min.js +159 -1598
- package/package.json +4 -3
- package/src/index.d.ts +1 -0
- package/src/lib/dashboard-component/dashboard-component.d.ts +91 -0
- package/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
- package/src/lib/helper/event-bus-handler.d.ts +1 -0
- package/src/lib/luzmo-service.d.ts +6 -0
- package/index.mjs +0 -1716
- package/index.umd.js +0 -1734
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
## [5.0.6] - 2024-02-17
|
|
5
|
+
|
|
6
|
+
### Updates
|
|
7
|
+
|
|
8
|
+
- Added type: "module" to package.json.
|
|
9
|
+
- Updated dependencies.
|
|
10
|
+
|
|
11
|
+
## [5.0.5] - 2024-02-16
|
|
12
|
+
|
|
13
|
+
### Updates
|
|
14
|
+
|
|
15
|
+
- Typing issue fixed.
|
|
16
|
+
|
|
17
|
+
## [5.0.4] - 2024-02-08
|
|
18
|
+
|
|
19
|
+
### Updates
|
|
20
|
+
|
|
21
|
+
- Changelog update / README updated.
|
|
22
|
+
|
|
23
|
+
## [5.0.3] - 2024-02-01
|
|
24
|
+
|
|
25
|
+
### Updates
|
|
26
|
+
|
|
27
|
+
- Added a parameter to allow testing upstream changes for clients.
|
|
28
|
+
- Performance improvements.
|
|
29
|
+
|
|
30
|
+
## [5.0.2] - 2023-12-07
|
|
31
|
+
|
|
32
|
+
### BUGFIX
|
|
33
|
+
|
|
34
|
+
- Fixed incorrect dependency version in library.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [5.0.1] - 2023-12-06
|
|
38
|
+
|
|
39
|
+
### BUGFIX
|
|
40
|
+
|
|
41
|
+
- Fixed a bug where dimensions were calculated before dimension data was available which resulted in a crash.
|
package/MIGRATIONS.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Luzmo embed migrations
|
package/README.md
CHANGED
|
@@ -109,6 +109,9 @@ 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
|
+
|
|
112
115
|
setAuthorization(key: string, token: string): Promise<void>
|
|
113
116
|
// Changes the authorization of all or one dashboard. To fetch data based on new authorization parameters, reloadDashboard() or refreshData() needs to be called.
|
|
114
117
|
|
|
@@ -197,6 +200,28 @@ dashboardComponent.getAccessibleDashboards().then((dashboards) => {
|
|
|
197
200
|
});
|
|
198
201
|
```
|
|
199
202
|
|
|
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
|
+
|
|
200
225
|
## Changelog
|
|
201
226
|
|
|
202
227
|
- [Changelog](https://embed-libs.luzmo.com/changelogs/embed/)
|