@luzmo/embed 6.6.0 → 6.7.0-es2021
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 +126 -165
- package/README.md +17 -0
- package/index.cjs +45 -43
- package/index.js +42 -40
- package/luzmo-embed.min.js +130 -219
- package/package.json +10 -4
- package/src/index.d.ts +0 -8
- package/src/lib/dashboard/dashboard-base.d.ts +0 -96
- package/src/lib/dashboard/dashboard-component.d.ts +0 -8
- package/src/lib/dashboard/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/helper/json-schema-utils.d.ts +0 -64
- package/src/lib/iq-components/luzmo-iq-answer.d.ts +0 -24
- package/src/lib/iq-components/luzmo-iq-chat.d.ts +0 -27
- package/src/lib/luzmo-service.d.ts +0 -6
- package/src/lib/viz-item/viz-item-component.d.ts +0 -4
- package/src/lib/viz-item/viz-item.base.d.ts +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,330 +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
6
|
|
|
7
|
-
###
|
|
7
|
+
### Added
|
|
8
|
+
- Added the `sendExportEmail()` method on `<luzmo-embed-dashboard>` to trigger immediate or scheduled export emails with optional subject and message overrides.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
## [6.6.1] - 2025-09-02
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
### Changed
|
|
13
|
+
- Updated dependencies to the latest compatible versions.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## [6.6.0] - 2025-07-14
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
+
### Changed
|
|
18
|
+
- Updated dependencies to the latest compatible versions.
|
|
17
19
|
|
|
18
|
-
## [6.
|
|
20
|
+
## [6.5.0] - 2025-06-23
|
|
19
21
|
|
|
20
|
-
###
|
|
22
|
+
### Changed
|
|
23
|
+
- Updated dependencies and shipped stability improvements.
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
## [6.4.3] - 2025-04-28
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
### Added
|
|
28
|
+
- Introduced the `--luzmo-iq-state-loader-color-accent` CSS variable for Luzmo IQ loaders.
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
## [6.4.2] - 2025-04-14
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
### Changed
|
|
33
|
+
- Added the missing `absolute` and `percentageAllBars` values to the `bars.label` configuration for bar charts.
|
|
29
34
|
|
|
30
35
|
## [6.4.1] - 2025-03-28
|
|
31
36
|
|
|
32
|
-
###
|
|
33
|
-
|
|
34
|
-
- Updated dependent lib
|
|
37
|
+
### Changed
|
|
38
|
+
- Updated dependencies to the latest compatible versions.
|
|
35
39
|
|
|
36
40
|
## [6.4.0] - 2025-03-20
|
|
37
41
|
|
|
38
|
-
###
|
|
39
|
-
|
|
40
|
-
- Added `editorLanguage` input to set the language of the dashboard editor
|
|
42
|
+
### Added
|
|
43
|
+
- Added the `editorLanguage` attribute to control the dashboard editor language.
|
|
41
44
|
|
|
42
45
|
## [6.3.7] - 2025-03-04
|
|
43
46
|
|
|
44
|
-
###
|
|
45
|
-
|
|
46
|
-
- Rename "experimental" input to "embedMode" in dashboard component
|
|
47
|
+
### Changed
|
|
48
|
+
- Renamed the `experimental` attribute to `embedMode` on `<luzmo-embed-dashboard>`.
|
|
47
49
|
|
|
48
50
|
## [6.3.6] - 2025-02-27
|
|
49
51
|
|
|
50
|
-
###
|
|
51
|
-
|
|
52
|
-
- Added availableDatasets as input to luzmo-iq-embed-chat component
|
|
52
|
+
### Added
|
|
53
|
+
- Added the `availableDatasets` attribute to `<luzmo-iq-embed-chat>`.
|
|
53
54
|
|
|
54
55
|
## [6.3.5] - 2025-02-24
|
|
55
56
|
|
|
56
|
-
###
|
|
57
|
-
|
|
58
|
-
- Updated dependent libs
|
|
57
|
+
### Changed
|
|
58
|
+
- Updated dependencies to the latest compatible versions.
|
|
59
59
|
|
|
60
60
|
## [6.3.4] - 2025-02-21
|
|
61
61
|
|
|
62
|
-
###
|
|
63
|
-
|
|
64
|
-
- Updated dependent libs
|
|
62
|
+
### Changed
|
|
63
|
+
- Updated dependencies to the latest compatible versions.
|
|
65
64
|
|
|
66
65
|
## [6.3.3] - 2025-02-06
|
|
67
66
|
|
|
68
|
-
###
|
|
69
|
-
|
|
70
|
-
- Updated dependent libs
|
|
67
|
+
### Changed
|
|
68
|
+
- Updated dependencies to the latest compatible versions.
|
|
71
69
|
|
|
72
70
|
## [6.3.2] - 2025-01-31
|
|
73
71
|
|
|
74
|
-
###
|
|
75
|
-
|
|
76
|
-
- 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.
|
|
77
74
|
|
|
78
75
|
## [6.3.1] - 2025-01-21
|
|
79
76
|
|
|
80
|
-
###
|
|
81
|
-
|
|
82
|
-
- Updated dependent libs
|
|
77
|
+
### Changed
|
|
78
|
+
- Updated dependencies to the latest compatible versions.
|
|
83
79
|
|
|
84
80
|
## [6.3.0] - 2025-01-16
|
|
85
81
|
|
|
86
|
-
###
|
|
87
|
-
|
|
88
|
-
- Updated Flex performance
|
|
82
|
+
### Changed
|
|
83
|
+
- Improved Luzmo Flex performance.
|
|
89
84
|
|
|
90
85
|
## [6.2.6] - 2025-01-13
|
|
91
86
|
|
|
92
|
-
###
|
|
93
|
-
|
|
94
|
-
- Updated dependent libs
|
|
87
|
+
### Changed
|
|
88
|
+
- Updated dependencies to the latest compatible versions.
|
|
95
89
|
|
|
96
90
|
## [6.2.5] - 2025-01-08
|
|
97
91
|
|
|
98
|
-
###
|
|
99
|
-
|
|
100
|
-
- Updated dependent libs
|
|
92
|
+
### Changed
|
|
93
|
+
- Updated dependencies to the latest compatible versions.
|
|
101
94
|
|
|
102
95
|
## [6.2.4] - 2024-12-19
|
|
103
96
|
|
|
104
|
-
###
|
|
105
|
-
|
|
106
|
-
- Added LICENSE to the library
|
|
97
|
+
### Added
|
|
98
|
+
- Added the project `LICENSE`.
|
|
107
99
|
|
|
108
100
|
## [6.2.3] - 2024-12-10
|
|
109
101
|
|
|
110
|
-
###
|
|
111
|
-
|
|
112
|
-
- 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>`.
|
|
113
104
|
|
|
114
105
|
## [6.2.2] - 2024-12-09
|
|
115
106
|
|
|
116
|
-
###
|
|
117
|
-
|
|
118
|
-
- Minor bugfixes for EDE mode
|
|
107
|
+
### Fixed
|
|
108
|
+
- Applied minor fixes for EDE mode behaviour.
|
|
119
109
|
|
|
120
110
|
## [6.2.1] - 2024-11-22
|
|
121
111
|
|
|
122
|
-
###
|
|
123
|
-
|
|
124
|
-
- Updated dependencies
|
|
112
|
+
### Changed
|
|
113
|
+
- Updated dependencies to the latest compatible versions.
|
|
125
114
|
|
|
126
115
|
## [6.2.0] - 2024-11-20
|
|
127
116
|
|
|
128
|
-
###
|
|
129
|
-
|
|
130
|
-
- [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.
|
|
131
119
|
|
|
132
120
|
## [6.1.9] - 2024-11-14
|
|
133
121
|
|
|
134
|
-
###
|
|
135
|
-
|
|
136
|
-
- Updated dependencies
|
|
122
|
+
### Changed
|
|
123
|
+
- Updated dependencies to the latest compatible versions.
|
|
137
124
|
|
|
138
125
|
## [6.1.8] - 2024-11-12
|
|
139
126
|
|
|
140
|
-
###
|
|
141
|
-
|
|
142
|
-
- Fixes for getAccessibleDashboards()
|
|
127
|
+
### Fixed
|
|
128
|
+
- Resolved issues affecting `getAccessibleDashboards()`.
|
|
143
129
|
|
|
144
130
|
## [6.1.7] - 2024-10-25
|
|
145
131
|
|
|
146
|
-
###
|
|
147
|
-
|
|
148
|
-
- 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>`.
|
|
149
134
|
|
|
150
135
|
## [6.1.6] - 2024-10-22
|
|
151
136
|
|
|
152
|
-
###
|
|
153
|
-
|
|
154
|
-
- Fix displaying Search Filter in Flex
|
|
137
|
+
### Fixed
|
|
138
|
+
- Fixed Flex search filter display issues.
|
|
155
139
|
|
|
156
140
|
## [6.1.5] - 2024-10-21
|
|
157
141
|
|
|
158
|
-
###
|
|
159
|
-
|
|
160
|
-
- Updated dependencies
|
|
142
|
+
### Changed
|
|
143
|
+
- Updated dependencies to the latest compatible versions.
|
|
161
144
|
|
|
162
145
|
## [6.1.4] - 2024-10-14
|
|
163
146
|
|
|
164
|
-
###
|
|
165
|
-
|
|
166
|
-
- Updated dependencies
|
|
147
|
+
### Changed
|
|
148
|
+
- Updated dependencies to the latest compatible versions.
|
|
167
149
|
|
|
168
150
|
## [6.1.3] - 2024-09-26
|
|
169
151
|
|
|
170
|
-
###
|
|
152
|
+
### Changed
|
|
153
|
+
- Updated public TypeScript definitions.
|
|
171
154
|
|
|
172
|
-
|
|
173
|
-
-
|
|
155
|
+
### Fixed
|
|
156
|
+
- Removed the requirement for `script-src 'unsafe-eval'` in runtime CSP settings.
|
|
174
157
|
|
|
175
158
|
## [6.1.2] - 2024-09-23
|
|
176
159
|
|
|
177
|
-
###
|
|
178
|
-
|
|
179
|
-
- 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.
|
|
180
162
|
|
|
181
163
|
## [6.1.1] - 2024-09-09
|
|
182
164
|
|
|
183
|
-
###
|
|
184
|
-
|
|
185
|
-
- Updated lib dependencies
|
|
165
|
+
### Changed
|
|
166
|
+
- Updated dependencies to the latest compatible versions.
|
|
186
167
|
|
|
187
168
|
## [6.1.0] - 2024-09-09
|
|
188
169
|
|
|
189
|
-
###
|
|
190
|
-
- [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.
|
|
191
172
|
|
|
192
173
|
## [6.0.1] - 2024-07-11
|
|
193
174
|
|
|
194
|
-
|
|
175
|
+
### Fixed
|
|
176
|
+
- Corrected loader color handling when embedding dashboards as web components.
|
|
195
177
|
|
|
196
178
|
## [6.0.0] - 2024-07-11
|
|
197
179
|
|
|
198
|
-
###
|
|
199
|
-
|
|
200
|
-
- Removed `<luzmo-dashboard>` web component, It has been replaced with `<luzmo-embed-dashboard>`
|
|
201
|
-
- `LuzmoDashboard` has been replaced with `LuzmoEmbedDashboard`
|
|
180
|
+
### Changed
|
|
181
|
+
- Replaced the `LuzmoDashboard` type with `LuzmoEmbedDashboard`.
|
|
202
182
|
|
|
203
|
-
###
|
|
183
|
+
### Removed
|
|
184
|
+
- Removed the legacy `<luzmo-dashboard>` component in favour of `<luzmo-embed-dashboard>`.
|
|
204
185
|
|
|
205
|
-
|
|
186
|
+
### Fixed
|
|
187
|
+
- Corrected loader color handling when embedding dashboards as web components.
|
|
206
188
|
|
|
207
189
|
## [5.1.5] - 2024-05-03
|
|
208
190
|
|
|
209
|
-
###
|
|
210
|
-
|
|
211
|
-
- Fix bugs in experimental=true, dashboard not loading at times
|
|
191
|
+
### Fixed
|
|
192
|
+
- Addressed intermittent loading issues when `experimental=true`.
|
|
212
193
|
|
|
213
194
|
## [5.1.4] - 2024-05-02
|
|
214
195
|
|
|
215
|
-
###
|
|
216
|
-
|
|
217
|
-
- 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.
|
|
218
198
|
|
|
219
199
|
## [5.1.3] - 2024-05-02
|
|
220
200
|
|
|
221
|
-
###
|
|
222
|
-
|
|
223
|
-
- 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.
|
|
224
203
|
|
|
225
204
|
## [5.1.2] - 2024-04-29
|
|
226
205
|
|
|
227
|
-
###
|
|
228
|
-
|
|
229
|
-
- Height in edit mode is set to a minimum of 100vh
|
|
230
|
-
|
|
206
|
+
### Fixed
|
|
207
|
+
- Set the minimum height in editor mode to 100vh.
|
|
231
208
|
|
|
232
209
|
## [5.1.1] - 2024-04-24
|
|
233
210
|
|
|
234
|
-
###
|
|
235
|
-
|
|
236
|
-
- Show actual error messages from luzmo application
|
|
211
|
+
### Changed
|
|
212
|
+
- Surface detailed error messages from the Luzmo application.
|
|
237
213
|
|
|
238
214
|
## [5.1.0] - 2024-04-17
|
|
239
215
|
|
|
240
|
-
###
|
|
241
|
-
|
|
242
|
-
- 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`.
|
|
243
218
|
|
|
244
219
|
## [5.0.14] - 2024-03-28
|
|
245
220
|
|
|
246
|
-
###
|
|
247
|
-
|
|
248
|
-
- Shared embed lib updated with bugfixes
|
|
221
|
+
### Fixed
|
|
222
|
+
- Pulled shared embed library fixes.
|
|
249
223
|
|
|
250
224
|
## [5.0.13] - 2024-03-26
|
|
251
225
|
|
|
252
|
-
###
|
|
253
|
-
|
|
254
|
-
- Add ESM build for libs entry point in `@luzmo/embed`
|
|
226
|
+
### Added
|
|
227
|
+
- Added an ESM build entry point to `@luzmo/embed`.
|
|
255
228
|
|
|
256
229
|
## [5.0.12] - 2024-03-19
|
|
257
230
|
|
|
258
|
-
###
|
|
259
|
-
|
|
260
|
-
- Fixed getAccessibleDashboards() to correctly work with embed tokens
|
|
231
|
+
### Fixed
|
|
232
|
+
- Ensured `getAccessibleDashboards()` works correctly with embed tokens.
|
|
261
233
|
|
|
262
234
|
## [5.0.11] - 2024-03-18
|
|
263
235
|
|
|
264
|
-
###
|
|
265
|
-
|
|
266
|
-
- Correct typings are now exposed from @luzmo/embed
|
|
236
|
+
### Changed
|
|
237
|
+
- Exposed the correct TypeScript typings from `@luzmo/embed`.
|
|
267
238
|
|
|
268
239
|
## [5.0.10] - 2024-03-11
|
|
269
240
|
|
|
270
|
-
###
|
|
271
|
-
|
|
272
|
-
- Use display block for the luzmo-dashboard component
|
|
241
|
+
### Fixed
|
|
242
|
+
- Set `<luzmo-dashboard>` to display as a block-level element.
|
|
273
243
|
|
|
274
244
|
## [5.0.9] - 2024-03-07
|
|
275
245
|
|
|
276
|
-
###
|
|
277
|
-
|
|
278
|
-
- Fixed EDE width and height issue not being 100%
|
|
246
|
+
### Fixed
|
|
247
|
+
- Corrected EDE width and height behaviour to use 100% of the container.
|
|
279
248
|
|
|
280
249
|
## [5.0.8] - 2024-03-05
|
|
281
250
|
|
|
282
|
-
###
|
|
283
|
-
|
|
284
|
-
- Typing improvements in shared lib
|
|
251
|
+
### Changed
|
|
252
|
+
- Improved typings in the shared library.
|
|
285
253
|
|
|
286
254
|
## [5.0.7] - 2024-02-28
|
|
287
255
|
|
|
288
|
-
###
|
|
289
|
-
|
|
290
|
-
- Bugfixes in experimental mode for width height issue
|
|
291
|
-
|
|
256
|
+
### Fixed
|
|
257
|
+
- Addressed width and height issues for experimental mode.
|
|
292
258
|
|
|
293
259
|
## [5.0.6] - 2024-02-17
|
|
294
260
|
|
|
295
|
-
###
|
|
296
|
-
|
|
297
|
-
-
|
|
298
|
-
- Updated dependencies
|
|
261
|
+
### Changed
|
|
262
|
+
- Added `"type": "module"` to `package.json`.
|
|
263
|
+
- Updated dependencies to the latest compatible versions.
|
|
299
264
|
|
|
300
265
|
## [5.0.5] - 2024-02-16
|
|
301
266
|
|
|
302
|
-
###
|
|
303
|
-
|
|
304
|
-
- Typing issue fixed
|
|
267
|
+
### Fixed
|
|
268
|
+
- Resolved a typing issue.
|
|
305
269
|
|
|
306
270
|
## [5.0.4] - 2024-02-08
|
|
307
271
|
|
|
308
|
-
###
|
|
309
|
-
|
|
310
|
-
- Changelog update / README updated
|
|
272
|
+
### Changed
|
|
273
|
+
- Refreshed documentation and changelog content.
|
|
311
274
|
|
|
312
275
|
## [5.0.3] - 2024-02-01
|
|
313
276
|
|
|
314
|
-
###
|
|
277
|
+
### Added
|
|
278
|
+
- Added a parameter to help clients test upstream changes.
|
|
315
279
|
|
|
316
|
-
|
|
317
|
-
-
|
|
280
|
+
### Changed
|
|
281
|
+
- Delivered performance improvements.
|
|
318
282
|
|
|
319
283
|
## [5.0.2] - 2023-12-07
|
|
320
284
|
|
|
321
|
-
###
|
|
322
|
-
|
|
323
|
-
- Fixed incorrect dependency version in library
|
|
324
|
-
|
|
285
|
+
### Fixed
|
|
286
|
+
- Corrected an incorrect dependency version.
|
|
325
287
|
|
|
326
288
|
## [5.0.1] - 2023-12-06
|
|
327
289
|
|
|
328
|
-
###
|
|
329
|
-
|
|
330
|
-
- 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
|
@@ -31,14 +31,13 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
31
31
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
32
32
|
if (decorator = decorators[i])
|
|
33
33
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
34
|
-
if (kind && result)
|
|
35
|
-
__defProp(target, key, result);
|
|
34
|
+
if (kind && result) __defProp(target, key, result);
|
|
36
35
|
return result;
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
// libs/embed-libs/embed/src/index.ts
|
|
40
|
-
var
|
|
41
|
-
__export(
|
|
39
|
+
var index_exports = {};
|
|
40
|
+
__export(index_exports, {
|
|
42
41
|
LuzmoEmbedDashboard: () => LuzmoEmbedDashboard,
|
|
43
42
|
LuzmoEmbedVizItem: () => LuzmoEmbedVizItem,
|
|
44
43
|
LuzmoIQEmbedAnswerComponent: () => LuzmoIQEmbedAnswerComponent,
|
|
@@ -51,7 +50,7 @@ __export(src_exports, {
|
|
|
51
50
|
luzmoRefParserOptions: () => luzmoRefParserOptions,
|
|
52
51
|
selectedDataUtils: () => import_shared_embed4.selectedDataUtils
|
|
53
52
|
});
|
|
54
|
-
module.exports = __toCommonJS(
|
|
53
|
+
module.exports = __toCommonJS(index_exports);
|
|
55
54
|
var import_shared_embed4 = require("@luzmo/shared-embed");
|
|
56
55
|
var import_lit6 = require("lit");
|
|
57
56
|
|
|
@@ -63,7 +62,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
63
62
|
var import_style_map = require("lit/directives/style-map.js");
|
|
64
63
|
|
|
65
64
|
// libs/embed-libs/embed/package.json
|
|
66
|
-
var version = "6.
|
|
65
|
+
var version = "6.7.0";
|
|
67
66
|
|
|
68
67
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
69
68
|
var SharedLib = __toESM(require("@luzmo/shared-embed"));
|
|
@@ -175,6 +174,7 @@ var _setEventHandler = () => {
|
|
|
175
174
|
break;
|
|
176
175
|
}
|
|
177
176
|
case "chartsRendered":
|
|
177
|
+
// TODO remove once chartsRendered is changed to itemsRendered in FE app
|
|
178
178
|
case "itemsRendered": {
|
|
179
179
|
event.data.type = "itemsRendered";
|
|
180
180
|
dashboardComponent.dispatchEvent(
|
|
@@ -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() {
|
|
@@ -1114,22 +1122,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1114
1122
|
this.libVersion = version + "-wc-luzmo";
|
|
1115
1123
|
this.postInitCallQueue = [];
|
|
1116
1124
|
}
|
|
1117
|
-
static {
|
|
1118
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1119
|
-
this.styles = import_lit3.css`
|
|
1120
|
-
:host {
|
|
1121
|
-
display: block;
|
|
1122
|
-
width: 100%;
|
|
1123
|
-
height: 100%;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
luzmo-embed-viz-item {
|
|
1127
|
-
width: 100%;
|
|
1128
|
-
height: 1000%;
|
|
1129
|
-
display: block;
|
|
1130
|
-
}
|
|
1131
|
-
`;
|
|
1132
|
-
}
|
|
1133
1125
|
createRenderRoot() {
|
|
1134
1126
|
if (!this.style.display) {
|
|
1135
1127
|
this.style.display = "block";
|
|
@@ -1239,6 +1231,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1239
1231
|
return import_lit3.html` `;
|
|
1240
1232
|
}
|
|
1241
1233
|
};
|
|
1234
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1235
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
1236
|
+
:host {
|
|
1237
|
+
display: block;
|
|
1238
|
+
width: 100%;
|
|
1239
|
+
height: 100%;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
luzmo-embed-viz-item {
|
|
1243
|
+
width: 100%;
|
|
1244
|
+
height: 1000%;
|
|
1245
|
+
display: block;
|
|
1246
|
+
}
|
|
1247
|
+
`;
|
|
1242
1248
|
__decorateClass([
|
|
1243
1249
|
(0, import_decorators2.property)()
|
|
1244
1250
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1332,16 +1338,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1332
1338
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1333
1339
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1334
1340
|
}
|
|
1335
|
-
static {
|
|
1336
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1337
|
-
this.styles = import_lit4.css`
|
|
1338
|
-
:host {
|
|
1339
|
-
display: block;
|
|
1340
|
-
width: 100%;
|
|
1341
|
-
height: 100%;
|
|
1342
|
-
}
|
|
1343
|
-
`;
|
|
1344
|
-
}
|
|
1345
1341
|
createRenderRoot() {
|
|
1346
1342
|
return this;
|
|
1347
1343
|
}
|
|
@@ -1410,6 +1406,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1410
1406
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1411
1407
|
}
|
|
1412
1408
|
};
|
|
1409
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1410
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
1411
|
+
:host {
|
|
1412
|
+
display: block;
|
|
1413
|
+
width: 100%;
|
|
1414
|
+
height: 100%;
|
|
1415
|
+
}
|
|
1416
|
+
`;
|
|
1413
1417
|
__decorateClass([
|
|
1414
1418
|
(0, import_decorators3.property)()
|
|
1415
1419
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1475,16 +1479,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1475
1479
|
this.libVersion = version + "-wc-luzmo";
|
|
1476
1480
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1477
1481
|
}
|
|
1478
|
-
static {
|
|
1479
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1480
|
-
this.styles = import_lit5.css`
|
|
1481
|
-
:host {
|
|
1482
|
-
display: block;
|
|
1483
|
-
width: 100%;
|
|
1484
|
-
height: 100%;
|
|
1485
|
-
}
|
|
1486
|
-
`;
|
|
1487
|
-
}
|
|
1488
1482
|
createRenderRoot() {
|
|
1489
1483
|
return this;
|
|
1490
1484
|
}
|
|
@@ -1535,6 +1529,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1535
1529
|
return import_lit5.html` `;
|
|
1536
1530
|
}
|
|
1537
1531
|
};
|
|
1532
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1533
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
1534
|
+
:host {
|
|
1535
|
+
display: block;
|
|
1536
|
+
width: 100%;
|
|
1537
|
+
height: 100%;
|
|
1538
|
+
}
|
|
1539
|
+
`;
|
|
1538
1540
|
__decorateClass([
|
|
1539
1541
|
(0, import_decorators4.property)()
|
|
1540
1542
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|