@luzmo/embed 6.6.1 → 6.7.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/CHANGELOG.md +123 -168
- package/README.md +17 -0
- package/index.cjs +10 -2
- package/index.js +10 -2
- package/luzmo-embed.min.js +45 -19
- package/package.json +2 -2
- package/src/lib/dashboard/dashboard-base.d.ts +2 -1
- package/src/lib/viz-item/viz-item.base.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,336 +1,291 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to this project
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
-
## [6.
|
|
5
|
+
## [6.7.0] - 2025-10-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Added the `sendExportEmail()` method on `<luzmo-embed-dashboard>` to trigger immediate or scheduled export emails with optional subject and message overrides.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
## [6.6.1] - 2025-09-02
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
### Changed
|
|
13
|
+
- Updated dependencies to the latest compatible versions.
|
|
10
14
|
|
|
11
15
|
## [6.6.0] - 2025-07-14
|
|
12
16
|
|
|
13
|
-
###
|
|
14
|
-
|
|
15
|
-
- Update dependent libraries to latest versions
|
|
17
|
+
### Changed
|
|
18
|
+
- Updated dependencies to the latest compatible versions.
|
|
16
19
|
|
|
17
20
|
## [6.5.0] - 2025-06-23
|
|
18
21
|
|
|
19
|
-
###
|
|
20
|
-
|
|
21
|
-
- Update dependent libraries to latest versions
|
|
22
|
-
- Maintenance release with improved stability
|
|
22
|
+
### Changed
|
|
23
|
+
- Updated dependencies and shipped stability improvements.
|
|
23
24
|
|
|
24
25
|
## [6.4.3] - 2025-04-28
|
|
25
26
|
|
|
26
|
-
###
|
|
27
|
-
|
|
28
|
-
- Add `--luzmo-iq-state-loader-color-accent` for Luzmo IQ loader
|
|
27
|
+
### Added
|
|
28
|
+
- Introduced the `--luzmo-iq-state-loader-color-accent` CSS variable for Luzmo IQ loaders.
|
|
29
29
|
|
|
30
30
|
## [6.4.2] - 2025-04-14
|
|
31
31
|
|
|
32
|
-
###
|
|
33
|
-
|
|
34
|
-
- Update Bar chart options: add missing values "absolute" and "percentageAllBars" for "bars.label" options
|
|
32
|
+
### Changed
|
|
33
|
+
- Added the missing `absolute` and `percentageAllBars` values to the `bars.label` configuration for bar charts.
|
|
35
34
|
|
|
36
35
|
## [6.4.1] - 2025-03-28
|
|
37
36
|
|
|
38
|
-
###
|
|
39
|
-
|
|
40
|
-
- Updated dependent lib
|
|
37
|
+
### Changed
|
|
38
|
+
- Updated dependencies to the latest compatible versions.
|
|
41
39
|
|
|
42
40
|
## [6.4.0] - 2025-03-20
|
|
43
41
|
|
|
44
|
-
###
|
|
45
|
-
|
|
46
|
-
- Added `editorLanguage` input to set the language of the dashboard editor
|
|
42
|
+
### Added
|
|
43
|
+
- Added the `editorLanguage` attribute to control the dashboard editor language.
|
|
47
44
|
|
|
48
45
|
## [6.3.7] - 2025-03-04
|
|
49
46
|
|
|
50
|
-
###
|
|
51
|
-
|
|
52
|
-
- Rename "experimental" input to "embedMode" in dashboard component
|
|
47
|
+
### Changed
|
|
48
|
+
- Renamed the `experimental` attribute to `embedMode` on `<luzmo-embed-dashboard>`.
|
|
53
49
|
|
|
54
50
|
## [6.3.6] - 2025-02-27
|
|
55
51
|
|
|
56
|
-
###
|
|
57
|
-
|
|
58
|
-
- Added availableDatasets as input to luzmo-iq-embed-chat component
|
|
52
|
+
### Added
|
|
53
|
+
- Added the `availableDatasets` attribute to `<luzmo-iq-embed-chat>`.
|
|
59
54
|
|
|
60
55
|
## [6.3.5] - 2025-02-24
|
|
61
56
|
|
|
62
|
-
###
|
|
63
|
-
|
|
64
|
-
- Updated dependent libs
|
|
57
|
+
### Changed
|
|
58
|
+
- Updated dependencies to the latest compatible versions.
|
|
65
59
|
|
|
66
60
|
## [6.3.4] - 2025-02-21
|
|
67
61
|
|
|
68
|
-
###
|
|
69
|
-
|
|
70
|
-
- Updated dependent libs
|
|
62
|
+
### Changed
|
|
63
|
+
- Updated dependencies to the latest compatible versions.
|
|
71
64
|
|
|
72
65
|
## [6.3.3] - 2025-02-06
|
|
73
66
|
|
|
74
|
-
###
|
|
75
|
-
|
|
76
|
-
- Updated dependent libs
|
|
67
|
+
### Changed
|
|
68
|
+
- Updated dependencies to the latest compatible versions.
|
|
77
69
|
|
|
78
70
|
## [6.3.2] - 2025-01-31
|
|
79
71
|
|
|
80
|
-
###
|
|
81
|
-
|
|
82
|
-
- export() now allows you to export the viz item as a CSV, XLSX and PNG
|
|
72
|
+
### Added
|
|
73
|
+
- Extended `export()` on `<luzmo-embed-viz-item>` to support CSV, CSV raw, XLSX, and XLSX raw formats in addition to PNG.
|
|
83
74
|
|
|
84
75
|
## [6.3.1] - 2025-01-21
|
|
85
76
|
|
|
86
|
-
###
|
|
87
|
-
|
|
88
|
-
- Updated dependent libs
|
|
77
|
+
### Changed
|
|
78
|
+
- Updated dependencies to the latest compatible versions.
|
|
89
79
|
|
|
90
80
|
## [6.3.0] - 2025-01-16
|
|
91
81
|
|
|
92
|
-
###
|
|
93
|
-
|
|
94
|
-
- Updated Flex performance
|
|
82
|
+
### Changed
|
|
83
|
+
- Improved Luzmo Flex performance.
|
|
95
84
|
|
|
96
85
|
## [6.2.6] - 2025-01-13
|
|
97
86
|
|
|
98
|
-
###
|
|
99
|
-
|
|
100
|
-
- Updated dependent libs
|
|
87
|
+
### Changed
|
|
88
|
+
- Updated dependencies to the latest compatible versions.
|
|
101
89
|
|
|
102
90
|
## [6.2.5] - 2025-01-08
|
|
103
91
|
|
|
104
|
-
###
|
|
105
|
-
|
|
106
|
-
- Updated dependent libs
|
|
92
|
+
### Changed
|
|
93
|
+
- Updated dependencies to the latest compatible versions.
|
|
107
94
|
|
|
108
95
|
## [6.2.4] - 2024-12-19
|
|
109
96
|
|
|
110
|
-
###
|
|
111
|
-
|
|
112
|
-
- Added LICENSE to the library
|
|
97
|
+
### Added
|
|
98
|
+
- Added the project `LICENSE`.
|
|
113
99
|
|
|
114
100
|
## [6.2.3] - 2024-12-10
|
|
115
101
|
|
|
116
|
-
###
|
|
117
|
-
|
|
118
|
-
- Enable Luzmo IQ custom chat widget button content with WebComponents slot
|
|
102
|
+
### Added
|
|
103
|
+
- Enabled custom chat widget button content via slots in `<luzmo-iq-embed-chat>`.
|
|
119
104
|
|
|
120
105
|
## [6.2.2] - 2024-12-09
|
|
121
106
|
|
|
122
|
-
###
|
|
123
|
-
|
|
124
|
-
- Minor bugfixes for EDE mode
|
|
107
|
+
### Fixed
|
|
108
|
+
- Applied minor fixes for EDE mode behaviour.
|
|
125
109
|
|
|
126
110
|
## [6.2.1] - 2024-11-22
|
|
127
111
|
|
|
128
|
-
###
|
|
129
|
-
|
|
130
|
-
- Updated dependencies
|
|
112
|
+
### Changed
|
|
113
|
+
- Updated dependencies to the latest compatible versions.
|
|
131
114
|
|
|
132
115
|
## [6.2.0] - 2024-11-20
|
|
133
116
|
|
|
134
|
-
###
|
|
135
|
-
|
|
136
|
-
- [Luzmo IQ](https://developer.luzmo.com/guide/iq--introduction) allows you to generate AI-powered answers to data-related questions. The update adds components that allows you embed chat and answer components onto your page
|
|
117
|
+
### Added
|
|
118
|
+
- Introduced [Luzmo IQ](https://developer.luzmo.com/guide/iq--introduction) components to embed AI-powered chat and answer experiences.
|
|
137
119
|
|
|
138
120
|
## [6.1.9] - 2024-11-14
|
|
139
121
|
|
|
140
|
-
###
|
|
141
|
-
|
|
142
|
-
- Updated dependencies
|
|
122
|
+
### Changed
|
|
123
|
+
- Updated dependencies to the latest compatible versions.
|
|
143
124
|
|
|
144
125
|
## [6.1.8] - 2024-11-12
|
|
145
126
|
|
|
146
|
-
###
|
|
147
|
-
|
|
148
|
-
- Fixes for getAccessibleDashboards()
|
|
127
|
+
### Fixed
|
|
128
|
+
- Resolved issues affecting `getAccessibleDashboards()`.
|
|
149
129
|
|
|
150
130
|
## [6.1.7] - 2024-10-25
|
|
151
131
|
|
|
152
|
-
###
|
|
153
|
-
|
|
154
|
-
- Fix setting a size (width, height) in the inline style for <luzmo-embed-viz-item>
|
|
132
|
+
### Fixed
|
|
133
|
+
- Corrected width and height handling when setting inline styles on `<luzmo-embed-viz-item>`.
|
|
155
134
|
|
|
156
135
|
## [6.1.6] - 2024-10-22
|
|
157
136
|
|
|
158
|
-
###
|
|
159
|
-
|
|
160
|
-
- Fix displaying Search Filter in Flex
|
|
137
|
+
### Fixed
|
|
138
|
+
- Fixed Flex search filter display issues.
|
|
161
139
|
|
|
162
140
|
## [6.1.5] - 2024-10-21
|
|
163
141
|
|
|
164
|
-
###
|
|
165
|
-
|
|
166
|
-
- Updated dependencies
|
|
142
|
+
### Changed
|
|
143
|
+
- Updated dependencies to the latest compatible versions.
|
|
167
144
|
|
|
168
145
|
## [6.1.4] - 2024-10-14
|
|
169
146
|
|
|
170
|
-
###
|
|
171
|
-
|
|
172
|
-
- Updated dependencies
|
|
147
|
+
### Changed
|
|
148
|
+
- Updated dependencies to the latest compatible versions.
|
|
173
149
|
|
|
174
150
|
## [6.1.3] - 2024-09-26
|
|
175
151
|
|
|
176
|
-
###
|
|
152
|
+
### Changed
|
|
153
|
+
- Updated public TypeScript definitions.
|
|
177
154
|
|
|
178
|
-
|
|
179
|
-
-
|
|
155
|
+
### Fixed
|
|
156
|
+
- Removed the requirement for `script-src 'unsafe-eval'` in runtime CSP settings.
|
|
180
157
|
|
|
181
158
|
## [6.1.2] - 2024-09-23
|
|
182
159
|
|
|
183
|
-
###
|
|
184
|
-
|
|
185
|
-
- Web component now is only registered once, if already registered, the registration is skipped. (Fixes issue with libraries being included multiple times)
|
|
160
|
+
### Fixed
|
|
161
|
+
- Ensured the web component registers only once when libraries are included multiple times.
|
|
186
162
|
|
|
187
163
|
## [6.1.1] - 2024-09-09
|
|
188
164
|
|
|
189
|
-
###
|
|
190
|
-
|
|
191
|
-
- Updated lib dependencies
|
|
165
|
+
### Changed
|
|
166
|
+
- Updated dependencies to the latest compatible versions.
|
|
192
167
|
|
|
193
168
|
## [6.1.0] - 2024-09-09
|
|
194
169
|
|
|
195
|
-
###
|
|
196
|
-
- [Luzmo Flex](https://developer.luzmo.com/guide/flex--introduction)
|
|
170
|
+
### Added
|
|
171
|
+
- Highlighted [Luzmo Flex](https://developer.luzmo.com/guide/flex--introduction) for building customizable visualizations entirely in code.
|
|
197
172
|
|
|
198
173
|
## [6.0.1] - 2024-07-11
|
|
199
174
|
|
|
200
|
-
|
|
175
|
+
### Fixed
|
|
176
|
+
- Corrected loader color handling when embedding dashboards as web components.
|
|
201
177
|
|
|
202
178
|
## [6.0.0] - 2024-07-11
|
|
203
179
|
|
|
204
|
-
###
|
|
180
|
+
### Changed
|
|
181
|
+
- Replaced the `LuzmoDashboard` type with `LuzmoEmbedDashboard`.
|
|
205
182
|
|
|
206
|
-
|
|
207
|
-
-
|
|
183
|
+
### Removed
|
|
184
|
+
- Removed the legacy `<luzmo-dashboard>` component in favour of `<luzmo-embed-dashboard>`.
|
|
208
185
|
|
|
209
|
-
###
|
|
210
|
-
|
|
211
|
-
- Fix for loader color when embedding dashboard as a web component, and other bug fixes
|
|
186
|
+
### Fixed
|
|
187
|
+
- Corrected loader color handling when embedding dashboards as web components.
|
|
212
188
|
|
|
213
189
|
## [5.1.5] - 2024-05-03
|
|
214
190
|
|
|
215
|
-
###
|
|
216
|
-
|
|
217
|
-
- Fix bugs in experimental=true, dashboard not loading at times
|
|
191
|
+
### Fixed
|
|
192
|
+
- Addressed intermittent loading issues when `experimental=true`.
|
|
218
193
|
|
|
219
194
|
## [5.1.4] - 2024-05-02
|
|
220
195
|
|
|
221
|
-
###
|
|
222
|
-
|
|
223
|
-
- Fix build issues with CRA 5.0 and Webpack 5.0
|
|
196
|
+
### Fixed
|
|
197
|
+
- Resolved compatibility issues with CRA 5.0 and Webpack 5.0 builds.
|
|
224
198
|
|
|
225
199
|
## [5.1.3] - 2024-05-02
|
|
226
200
|
|
|
227
|
-
###
|
|
228
|
-
|
|
229
|
-
- Height in edit mode is set to 100%, taking 100% of parent height
|
|
201
|
+
### Fixed
|
|
202
|
+
- Ensured the editor mode height respects a 100% parent height.
|
|
230
203
|
|
|
231
204
|
## [5.1.2] - 2024-04-29
|
|
232
205
|
|
|
233
|
-
###
|
|
234
|
-
|
|
235
|
-
- Height in edit mode is set to a minimum of 100vh
|
|
236
|
-
|
|
206
|
+
### Fixed
|
|
207
|
+
- Set the minimum height in editor mode to 100vh.
|
|
237
208
|
|
|
238
209
|
## [5.1.1] - 2024-04-24
|
|
239
210
|
|
|
240
|
-
###
|
|
241
|
-
|
|
242
|
-
- Show actual error messages from luzmo application
|
|
211
|
+
### Changed
|
|
212
|
+
- Surface detailed error messages from the Luzmo application.
|
|
243
213
|
|
|
244
214
|
## [5.1.0] - 2024-04-17
|
|
245
215
|
|
|
246
|
-
###
|
|
247
|
-
|
|
248
|
-
- Deprecated `luzmo-dashboard`, `luzmo-embed-dashboard` is the new element, `luzmo-dashboard` will be removed in next major release (`6.0.0`)
|
|
216
|
+
### Changed
|
|
217
|
+
- Deprecated `<luzmo-dashboard>` in favour of `<luzmo-embed-dashboard>` ahead of removal in `6.0.0`.
|
|
249
218
|
|
|
250
219
|
## [5.0.14] - 2024-03-28
|
|
251
220
|
|
|
252
|
-
###
|
|
253
|
-
|
|
254
|
-
- Shared embed lib updated with bugfixes
|
|
221
|
+
### Fixed
|
|
222
|
+
- Pulled shared embed library fixes.
|
|
255
223
|
|
|
256
224
|
## [5.0.13] - 2024-03-26
|
|
257
225
|
|
|
258
|
-
###
|
|
259
|
-
|
|
260
|
-
- Add ESM build for libs entry point in `@luzmo/embed`
|
|
226
|
+
### Added
|
|
227
|
+
- Added an ESM build entry point to `@luzmo/embed`.
|
|
261
228
|
|
|
262
229
|
## [5.0.12] - 2024-03-19
|
|
263
230
|
|
|
264
|
-
###
|
|
265
|
-
|
|
266
|
-
- Fixed getAccessibleDashboards() to correctly work with embed tokens
|
|
231
|
+
### Fixed
|
|
232
|
+
- Ensured `getAccessibleDashboards()` works correctly with embed tokens.
|
|
267
233
|
|
|
268
234
|
## [5.0.11] - 2024-03-18
|
|
269
235
|
|
|
270
|
-
###
|
|
271
|
-
|
|
272
|
-
- Correct typings are now exposed from @luzmo/embed
|
|
236
|
+
### Changed
|
|
237
|
+
- Exposed the correct TypeScript typings from `@luzmo/embed`.
|
|
273
238
|
|
|
274
239
|
## [5.0.10] - 2024-03-11
|
|
275
240
|
|
|
276
|
-
###
|
|
277
|
-
|
|
278
|
-
- Use display block for the luzmo-dashboard component
|
|
241
|
+
### Fixed
|
|
242
|
+
- Set `<luzmo-dashboard>` to display as a block-level element.
|
|
279
243
|
|
|
280
244
|
## [5.0.9] - 2024-03-07
|
|
281
245
|
|
|
282
|
-
###
|
|
283
|
-
|
|
284
|
-
- Fixed EDE width and height issue not being 100%
|
|
246
|
+
### Fixed
|
|
247
|
+
- Corrected EDE width and height behaviour to use 100% of the container.
|
|
285
248
|
|
|
286
249
|
## [5.0.8] - 2024-03-05
|
|
287
250
|
|
|
288
|
-
###
|
|
289
|
-
|
|
290
|
-
- Typing improvements in shared lib
|
|
251
|
+
### Changed
|
|
252
|
+
- Improved typings in the shared library.
|
|
291
253
|
|
|
292
254
|
## [5.0.7] - 2024-02-28
|
|
293
255
|
|
|
294
|
-
###
|
|
295
|
-
|
|
296
|
-
- Bugfixes in experimental mode for width height issue
|
|
297
|
-
|
|
256
|
+
### Fixed
|
|
257
|
+
- Addressed width and height issues for experimental mode.
|
|
298
258
|
|
|
299
259
|
## [5.0.6] - 2024-02-17
|
|
300
260
|
|
|
301
|
-
###
|
|
302
|
-
|
|
303
|
-
-
|
|
304
|
-
- Updated dependencies
|
|
261
|
+
### Changed
|
|
262
|
+
- Added `"type": "module"` to `package.json`.
|
|
263
|
+
- Updated dependencies to the latest compatible versions.
|
|
305
264
|
|
|
306
265
|
## [5.0.5] - 2024-02-16
|
|
307
266
|
|
|
308
|
-
###
|
|
309
|
-
|
|
310
|
-
- Typing issue fixed
|
|
267
|
+
### Fixed
|
|
268
|
+
- Resolved a typing issue.
|
|
311
269
|
|
|
312
270
|
## [5.0.4] - 2024-02-08
|
|
313
271
|
|
|
314
|
-
###
|
|
315
|
-
|
|
316
|
-
- Changelog update / README updated
|
|
272
|
+
### Changed
|
|
273
|
+
- Refreshed documentation and changelog content.
|
|
317
274
|
|
|
318
275
|
## [5.0.3] - 2024-02-01
|
|
319
276
|
|
|
320
|
-
###
|
|
277
|
+
### Added
|
|
278
|
+
- Added a parameter to help clients test upstream changes.
|
|
321
279
|
|
|
322
|
-
|
|
323
|
-
-
|
|
280
|
+
### Changed
|
|
281
|
+
- Delivered performance improvements.
|
|
324
282
|
|
|
325
283
|
## [5.0.2] - 2023-12-07
|
|
326
284
|
|
|
327
|
-
###
|
|
328
|
-
|
|
329
|
-
- Fixed incorrect dependency version in library
|
|
330
|
-
|
|
285
|
+
### Fixed
|
|
286
|
+
- Corrected an incorrect dependency version.
|
|
331
287
|
|
|
332
288
|
## [5.0.1] - 2023-12-06
|
|
333
289
|
|
|
334
|
-
###
|
|
335
|
-
|
|
336
|
-
- Fixed a bug where dimensions were calculated before dimension data was available which resulted in a crash
|
|
290
|
+
### Fixed
|
|
291
|
+
- Prevented crashes caused by dimensions being calculated before dimension data was available.
|
package/README.md
CHANGED
|
@@ -230,6 +230,9 @@ reloadDashboard(): Promise<void>;
|
|
|
230
230
|
// Exports the current dashboard as either pdf or png. A container class needs to be passed as an argument and an optional type parameter.
|
|
231
231
|
exportDashboard(type?: ExportType): Promise<ExportDashboard>;
|
|
232
232
|
|
|
233
|
+
// Opens a pop-up modal to send the current dashboard export via email immediately or on a schedule (`type` argument). Optional arguments to override the email subject and email body message.
|
|
234
|
+
sendExportEmail(type: 'once' | 'scheduled', subject?: Record<string, string>, message?: Record<string, string>): void;
|
|
235
|
+
|
|
233
236
|
// Get accessible dashboards in a integration, make sure 'apiHost', 'authKey', 'authToken' are set correctly on the instance.
|
|
234
237
|
getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
|
|
235
238
|
|
|
@@ -298,6 +301,20 @@ dashboardComponent.exportDashboard('png').then((data) => {
|
|
|
298
301
|
});
|
|
299
302
|
```
|
|
300
303
|
|
|
304
|
+
Open a pop-up modal to send a dashboard export via email
|
|
305
|
+
|
|
306
|
+
```typescript
|
|
307
|
+
// Open a pop-up modal to trigger an immediate export email using the default subject and message
|
|
308
|
+
dashboardComponent.sendExportEmail('once');
|
|
309
|
+
|
|
310
|
+
// Open a pop-up modal to schedule a recurring export email with custom email subject and message translations
|
|
311
|
+
dashboardComponent.sendExportEmail(
|
|
312
|
+
'scheduled',
|
|
313
|
+
{ en: 'Weekly KPI dashboard', fr: 'Tableau de bord KPI hebdomadaire' },
|
|
314
|
+
{ en: 'Automated KPI export created by our app.', fr: 'Export KPI automatisé créé par notre application.' }
|
|
315
|
+
);
|
|
316
|
+
```
|
|
317
|
+
|
|
301
318
|
Get accessible dashboards of an integration
|
|
302
319
|
|
|
303
320
|
```typescript
|
package/index.cjs
CHANGED
|
@@ -62,7 +62,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
62
62
|
var import_style_map = require("lit/directives/style-map.js");
|
|
63
63
|
|
|
64
64
|
// libs/embed-libs/embed/package.json
|
|
65
|
-
var version = "6.
|
|
65
|
+
var version = "6.7.0";
|
|
66
66
|
|
|
67
67
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
68
68
|
var SharedLib = __toESM(require("@luzmo/shared-embed"));
|
|
@@ -921,6 +921,14 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
921
921
|
}
|
|
922
922
|
return SharedLib2.setPreview(this, this.iframe, preview);
|
|
923
923
|
}
|
|
924
|
+
sendExportEmail(type, subject, message) {
|
|
925
|
+
if (this.isWebComponentViewMode() && this.dashboardReference) {
|
|
926
|
+
return this.dashboardReference.sendExportEmail(type, subject, message);
|
|
927
|
+
} else if (!this.isWebComponentViewMode()) {
|
|
928
|
+
return SharedLib2.sendExportEmail(this, this.iframe, type, subject, message);
|
|
929
|
+
}
|
|
930
|
+
return Promise.reject();
|
|
931
|
+
}
|
|
924
932
|
isWebComponentViewMode() {
|
|
925
933
|
return this.embedMode === "webComponent" && (this.params.editMode === "view" || this.params.editMode === void 0);
|
|
926
934
|
}
|
|
@@ -1101,7 +1109,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1101
1109
|
var SharedLib3 = __toESM(require("@luzmo/shared-embed"));
|
|
1102
1110
|
var import_lit3 = require("lit");
|
|
1103
1111
|
var import_decorators2 = require("lit/decorators.js");
|
|
1104
|
-
var dashboardContentsVersion = "0.1.
|
|
1112
|
+
var dashboardContentsVersion = "0.1.98";
|
|
1105
1113
|
var vizItemRemote = "VizItemApp";
|
|
1106
1114
|
var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
1107
1115
|
constructor() {
|
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
23
23
|
import { styleMap } from "lit/directives/style-map.js";
|
|
24
24
|
|
|
25
25
|
// libs/embed-libs/embed/package.json
|
|
26
|
-
var version = "6.
|
|
26
|
+
var version = "6.7.0";
|
|
27
27
|
|
|
28
28
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
29
29
|
import * as SharedLib from "@luzmo/shared-embed";
|
|
@@ -882,6 +882,14 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
882
882
|
}
|
|
883
883
|
return SharedLib2.setPreview(this, this.iframe, preview);
|
|
884
884
|
}
|
|
885
|
+
sendExportEmail(type, subject, message) {
|
|
886
|
+
if (this.isWebComponentViewMode() && this.dashboardReference) {
|
|
887
|
+
return this.dashboardReference.sendExportEmail(type, subject, message);
|
|
888
|
+
} else if (!this.isWebComponentViewMode()) {
|
|
889
|
+
return SharedLib2.sendExportEmail(this, this.iframe, type, subject, message);
|
|
890
|
+
}
|
|
891
|
+
return Promise.reject();
|
|
892
|
+
}
|
|
885
893
|
isWebComponentViewMode() {
|
|
886
894
|
return this.embedMode === "webComponent" && (this.params.editMode === "view" || this.params.editMode === void 0);
|
|
887
895
|
}
|
|
@@ -1062,7 +1070,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1062
1070
|
import * as SharedLib3 from "@luzmo/shared-embed";
|
|
1063
1071
|
import { css as css2, html as html2, LitElement as LitElement2 } from "lit";
|
|
1064
1072
|
import { property as property2 } from "lit/decorators.js";
|
|
1065
|
-
var dashboardContentsVersion = "0.1.
|
|
1073
|
+
var dashboardContentsVersion = "0.1.98";
|
|
1066
1074
|
var vizItemRemote = "VizItemApp";
|
|
1067
1075
|
var LuzmoBaseVizItem = class extends LitElement2 {
|
|
1068
1076
|
constructor() {
|
package/luzmo-embed.min.js
CHANGED
|
@@ -832,6 +832,24 @@ var reloadDashboard = (dashboardComponent, iframe) => {
|
|
|
832
832
|
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
833
833
|
};
|
|
834
834
|
|
|
835
|
+
// libs/embed-libs/shared-embed/src/lib/methods/send-export-email.ts
|
|
836
|
+
var sendExportEmail = (dashboardComponent, iframe, type, subject, message) => {
|
|
837
|
+
if (iframe) {
|
|
838
|
+
iframe.contentWindow.postMessage(
|
|
839
|
+
{
|
|
840
|
+
action: "sendExportEmail",
|
|
841
|
+
type: type || "once",
|
|
842
|
+
subject,
|
|
843
|
+
message,
|
|
844
|
+
_version: dashboardComponent.libVersion
|
|
845
|
+
},
|
|
846
|
+
"*"
|
|
847
|
+
);
|
|
848
|
+
return Promise.resolve();
|
|
849
|
+
}
|
|
850
|
+
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
851
|
+
};
|
|
852
|
+
|
|
835
853
|
// libs/embed-libs/shared-embed/src/lib/methods/set-authorization.ts
|
|
836
854
|
var setAuthorization = (dashboardComponent, iframe, key, token) => {
|
|
837
855
|
if (iframe) {
|
|
@@ -880,17 +898,16 @@ var setEditMode = (dashboardComponent, iframe, editMode) => {
|
|
|
880
898
|
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
881
899
|
};
|
|
882
900
|
|
|
883
|
-
// libs/embed-libs/shared-embed/src/lib/methods/set-
|
|
884
|
-
var
|
|
901
|
+
// libs/embed-libs/shared-embed/src/lib/methods/set-preview.ts
|
|
902
|
+
var setPreview = (dashboardComponent, iframe, preview) => {
|
|
885
903
|
if (iframe) {
|
|
886
904
|
const requestId = uuidv4();
|
|
887
905
|
iframe.contentWindow.postMessage(
|
|
888
906
|
{
|
|
889
|
-
action: "
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
_version: dashboardComponent.libVersion
|
|
893
|
-
requestId
|
|
907
|
+
action: "setPreview",
|
|
908
|
+
preview,
|
|
909
|
+
requestId,
|
|
910
|
+
_version: dashboardComponent.libVersion
|
|
894
911
|
},
|
|
895
912
|
"*"
|
|
896
913
|
);
|
|
@@ -898,7 +915,7 @@ var setSelectedData = (dashboardComponent, iframe, itemId, filters) => {
|
|
|
898
915
|
dashboardComponent.promises[requestId] = { resolve, reject };
|
|
899
916
|
setTimeout(() => {
|
|
900
917
|
if (dashboardComponent.promises[requestId]) {
|
|
901
|
-
const errorMessage = "
|
|
918
|
+
const errorMessage = "setPreview request timed out.";
|
|
902
919
|
dashboardComponent.promises[requestId].reject(
|
|
903
920
|
new Error(errorMessage)
|
|
904
921
|
);
|
|
@@ -907,19 +924,20 @@ var setSelectedData = (dashboardComponent, iframe, itemId, filters) => {
|
|
|
907
924
|
}, 2e3);
|
|
908
925
|
});
|
|
909
926
|
}
|
|
910
|
-
return Promise.reject();
|
|
927
|
+
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
911
928
|
};
|
|
912
929
|
|
|
913
|
-
// libs/embed-libs/shared-embed/src/lib/methods/set-
|
|
914
|
-
var
|
|
930
|
+
// libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.ts
|
|
931
|
+
var setSelectedData = (dashboardComponent, iframe, itemId, filters) => {
|
|
915
932
|
if (iframe) {
|
|
916
933
|
const requestId = uuidv4();
|
|
917
934
|
iframe.contentWindow.postMessage(
|
|
918
935
|
{
|
|
919
|
-
action: "
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
_version: dashboardComponent.libVersion
|
|
936
|
+
action: "setSelectedData",
|
|
937
|
+
itemId,
|
|
938
|
+
filters,
|
|
939
|
+
_version: dashboardComponent.libVersion,
|
|
940
|
+
requestId
|
|
923
941
|
},
|
|
924
942
|
"*"
|
|
925
943
|
);
|
|
@@ -927,7 +945,7 @@ var setPreview = (dashboardComponent, iframe, preview) => {
|
|
|
927
945
|
dashboardComponent.promises[requestId] = { resolve, reject };
|
|
928
946
|
setTimeout(() => {
|
|
929
947
|
if (dashboardComponent.promises[requestId]) {
|
|
930
|
-
const errorMessage = "
|
|
948
|
+
const errorMessage = "setSelectedData request timed out.";
|
|
931
949
|
dashboardComponent.promises[requestId].reject(
|
|
932
950
|
new Error(errorMessage)
|
|
933
951
|
);
|
|
@@ -936,7 +954,7 @@ var setPreview = (dashboardComponent, iframe, preview) => {
|
|
|
936
954
|
}, 2e3);
|
|
937
955
|
});
|
|
938
956
|
}
|
|
939
|
-
return Promise.reject(
|
|
957
|
+
return Promise.reject();
|
|
940
958
|
};
|
|
941
959
|
|
|
942
960
|
// libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.ts
|
|
@@ -1995,7 +2013,7 @@ var o6 = e6(class extends i5 {
|
|
|
1995
2013
|
});
|
|
1996
2014
|
|
|
1997
2015
|
// libs/embed-libs/embed/package.json
|
|
1998
|
-
var version = "6.
|
|
2016
|
+
var version = "6.7.0";
|
|
1999
2017
|
|
|
2000
2018
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
2001
2019
|
var LuzmoDashboardService = class {
|
|
@@ -2850,6 +2868,14 @@ var LuzmoDashboard = class extends i4 {
|
|
|
2850
2868
|
}
|
|
2851
2869
|
return setPreview(this, this.iframe, preview);
|
|
2852
2870
|
}
|
|
2871
|
+
sendExportEmail(type, subject, message) {
|
|
2872
|
+
if (this.isWebComponentViewMode() && this.dashboardReference) {
|
|
2873
|
+
return this.dashboardReference.sendExportEmail(type, subject, message);
|
|
2874
|
+
} else if (!this.isWebComponentViewMode()) {
|
|
2875
|
+
return sendExportEmail(this, this.iframe, type, subject, message);
|
|
2876
|
+
}
|
|
2877
|
+
return Promise.reject();
|
|
2878
|
+
}
|
|
2853
2879
|
isWebComponentViewMode() {
|
|
2854
2880
|
return this.embedMode === "webComponent" && (this.params.editMode === "view" || this.params.editMode === void 0);
|
|
2855
2881
|
}
|
|
@@ -3027,7 +3053,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
3027
3053
|
}
|
|
3028
3054
|
|
|
3029
3055
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
3030
|
-
var dashboardContentsVersion = "0.1.
|
|
3056
|
+
var dashboardContentsVersion = "0.1.98";
|
|
3031
3057
|
var vizItemRemote = "VizItemApp";
|
|
3032
3058
|
var LuzmoBaseVizItem = class extends i4 {
|
|
3033
3059
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
import { CombinedSelectedDataInput, DashboardInputs, LuzmoElement } from '@luzmo/shared-embed';
|
|
3
|
+
import { CombinedSelectedDataInput, DashboardInputs, LuzmoElement, PartialRecord, SupportedLanguage } from '@luzmo/shared-embed';
|
|
4
4
|
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
5
5
|
export declare class LuzmoDashboard extends LitElement implements SharedLib.WebComponentLuzmoDashboard {
|
|
6
6
|
container: HTMLElement;
|
|
@@ -92,5 +92,6 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
92
92
|
addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
|
|
93
93
|
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
94
94
|
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
95
|
+
sendExportEmail(type?: SharedLib.SendExportEmailType, subject?: PartialRecord<SupportedLanguage, string>, message?: PartialRecord<SupportedLanguage, string>): Promise<void>;
|
|
95
96
|
isWebComponentViewMode(): boolean;
|
|
96
97
|
}
|
|
@@ -9,7 +9,7 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
9
9
|
* together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
|
|
10
10
|
* and if needed the migration will be applied on the dashboard app level.
|
|
11
11
|
*/
|
|
12
|
-
export declare const dashboardContentsVersion = "0.1.
|
|
12
|
+
export declare const dashboardContentsVersion = "0.1.98";
|
|
13
13
|
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
14
|
interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
15
|
options?: VizItemOptions;
|