@luzmo/embed 9.0.0 → 9.1.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 +6 -0
- package/README.md +3 -3
- package/index.cjs +31 -37
- package/index.js +31 -37
- package/luzmo-embed.min.js +31 -37
- package/package.json +8 -2
- package/src/index.d.ts +1 -1
- package/src/lib/dashboard/dashboard-base.d.ts +1 -1
- package/src/lib/shared/methods/get-data.d.ts +2 -2
- package/src/lib/shared/models/common.model.d.ts +2 -1
- package/src/lib/shared/models/dashboard.model.d.ts +2 -2
- package/src/lib/viz-item/viz-item.base.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [9.1.0] - 2026-11-11
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `getData()` on `<luzmo-embed-viz-item>` and `getData(itemId)` on `<luzmo-embed-dashboard>` are now typed as `ItemDataRows`: the data rows (a flat list of values for filter items), or `null` when the item has no data yet. A failed query returns `null` or an empty array, depending on the error. Code that read `.data` or `.status` from the result never received a value; use the result itself.
|
|
10
|
+
|
|
5
11
|
## [9.0.0] - 2026-11-10
|
|
6
12
|
|
|
7
13
|
### Breaking changes
|
package/README.md
CHANGED
|
@@ -114,8 +114,8 @@ a dashboard. Remove data the viewer must not access before supplying
|
|
|
114
114
|
### Public methods luzmo-embed-viz-item
|
|
115
115
|
|
|
116
116
|
```typescript
|
|
117
|
-
// Return
|
|
118
|
-
getData():
|
|
117
|
+
// Return the data rows of the viz item that's embedded (a flat list of values for filter items), or null when it has no data yet.
|
|
118
|
+
getData(): ItemDataRows;
|
|
119
119
|
|
|
120
120
|
// Return an array of active filters on the viz item.
|
|
121
121
|
getFilters(): ItemFilterOutput;
|
|
@@ -252,7 +252,7 @@ Omitting `embedMode` renders the dashboard directly on your page (no iframe), wh
|
|
|
252
252
|
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
253
253
|
|
|
254
254
|
// Returns an array the data of a chart of a certain dashboard by adding the dashboardId or the container of the iframe.
|
|
255
|
-
getData(itemId: string): Promise<
|
|
255
|
+
getData(itemId: string): Promise<ItemDataRows>;
|
|
256
256
|
|
|
257
257
|
// Returns an array of active filters.
|
|
258
258
|
getFilters(): Promise<DashboardFilterOutput>;
|
package/index.cjs
CHANGED
|
@@ -1464,7 +1464,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
1464
1464
|
var import_style_map = require("lit/directives/style-map.js");
|
|
1465
1465
|
|
|
1466
1466
|
// libs/embed-libs/embed/package.json
|
|
1467
|
-
var version = "9.
|
|
1467
|
+
var version = "9.1.0";
|
|
1468
1468
|
|
|
1469
1469
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
1470
1470
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -2826,22 +2826,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
2826
2826
|
this.libVersion = version + "-wc-luzmo";
|
|
2827
2827
|
this.postInitCallQueue = [];
|
|
2828
2828
|
}
|
|
2829
|
-
static {
|
|
2830
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2831
|
-
this.styles = import_lit3.css`
|
|
2832
|
-
:host {
|
|
2833
|
-
display: block;
|
|
2834
|
-
width: 100%;
|
|
2835
|
-
height: 100%;
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
luzmo-embed-viz-item {
|
|
2839
|
-
width: 100%;
|
|
2840
|
-
height: 1000%;
|
|
2841
|
-
display: block;
|
|
2842
|
-
}
|
|
2843
|
-
`;
|
|
2844
|
-
}
|
|
2845
2829
|
createRenderRoot() {
|
|
2846
2830
|
if (!this.style.display) {
|
|
2847
2831
|
this.style.display = "block";
|
|
@@ -3010,6 +2994,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
3010
2994
|
return import_lit3.html``;
|
|
3011
2995
|
}
|
|
3012
2996
|
};
|
|
2997
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2998
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
2999
|
+
:host {
|
|
3000
|
+
display: block;
|
|
3001
|
+
width: 100%;
|
|
3002
|
+
height: 100%;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
luzmo-embed-viz-item {
|
|
3006
|
+
width: 100%;
|
|
3007
|
+
height: 1000%;
|
|
3008
|
+
display: block;
|
|
3009
|
+
}
|
|
3010
|
+
`;
|
|
3013
3011
|
__decorateClass([
|
|
3014
3012
|
(0, import_decorators2.property)()
|
|
3015
3013
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -3121,16 +3119,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
3121
3119
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3122
3120
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3123
3121
|
}
|
|
3124
|
-
static {
|
|
3125
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3126
|
-
this.styles = import_lit4.css`
|
|
3127
|
-
:host {
|
|
3128
|
-
display: block;
|
|
3129
|
-
width: 100%;
|
|
3130
|
-
height: 100%;
|
|
3131
|
-
}
|
|
3132
|
-
`;
|
|
3133
|
-
}
|
|
3134
3122
|
createRenderRoot() {
|
|
3135
3123
|
return this;
|
|
3136
3124
|
}
|
|
@@ -3208,6 +3196,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
3208
3196
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
3209
3197
|
}
|
|
3210
3198
|
};
|
|
3199
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3200
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
3201
|
+
:host {
|
|
3202
|
+
display: block;
|
|
3203
|
+
width: 100%;
|
|
3204
|
+
height: 100%;
|
|
3205
|
+
}
|
|
3206
|
+
`;
|
|
3211
3207
|
__decorateClass([
|
|
3212
3208
|
(0, import_decorators3.property)()
|
|
3213
3209
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -3284,16 +3280,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
3284
3280
|
this.libVersion = version + "-wc-luzmo";
|
|
3285
3281
|
this.remoteEntryServer = "http://localhost:4202";
|
|
3286
3282
|
}
|
|
3287
|
-
static {
|
|
3288
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3289
|
-
this.styles = import_lit5.css`
|
|
3290
|
-
:host {
|
|
3291
|
-
display: block;
|
|
3292
|
-
width: 100%;
|
|
3293
|
-
height: 100%;
|
|
3294
|
-
}
|
|
3295
|
-
`;
|
|
3296
|
-
}
|
|
3297
3283
|
createRenderRoot() {
|
|
3298
3284
|
return this;
|
|
3299
3285
|
}
|
|
@@ -3344,6 +3330,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
3344
3330
|
return import_lit5.html` `;
|
|
3345
3331
|
}
|
|
3346
3332
|
};
|
|
3333
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3334
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
3335
|
+
:host {
|
|
3336
|
+
display: block;
|
|
3337
|
+
width: 100%;
|
|
3338
|
+
height: 100%;
|
|
3339
|
+
}
|
|
3340
|
+
`;
|
|
3347
3341
|
__decorateClass([
|
|
3348
3342
|
(0, import_decorators4.property)()
|
|
3349
3343
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/index.js
CHANGED
|
@@ -1428,7 +1428,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
1428
1428
|
import { styleMap } from "lit/directives/style-map.js";
|
|
1429
1429
|
|
|
1430
1430
|
// libs/embed-libs/embed/package.json
|
|
1431
|
-
var version = "9.
|
|
1431
|
+
var version = "9.1.0";
|
|
1432
1432
|
|
|
1433
1433
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
1434
1434
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -2792,22 +2792,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
2792
2792
|
this.libVersion = version + "-wc-luzmo";
|
|
2793
2793
|
this.postInitCallQueue = [];
|
|
2794
2794
|
}
|
|
2795
|
-
static {
|
|
2796
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2797
|
-
this.styles = css2`
|
|
2798
|
-
:host {
|
|
2799
|
-
display: block;
|
|
2800
|
-
width: 100%;
|
|
2801
|
-
height: 100%;
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
luzmo-embed-viz-item {
|
|
2805
|
-
width: 100%;
|
|
2806
|
-
height: 1000%;
|
|
2807
|
-
display: block;
|
|
2808
|
-
}
|
|
2809
|
-
`;
|
|
2810
|
-
}
|
|
2811
2795
|
createRenderRoot() {
|
|
2812
2796
|
if (!this.style.display) {
|
|
2813
2797
|
this.style.display = "block";
|
|
@@ -2976,6 +2960,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
2976
2960
|
return html2``;
|
|
2977
2961
|
}
|
|
2978
2962
|
};
|
|
2963
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2964
|
+
LuzmoBaseVizItem.styles = css2`
|
|
2965
|
+
:host {
|
|
2966
|
+
display: block;
|
|
2967
|
+
width: 100%;
|
|
2968
|
+
height: 100%;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
luzmo-embed-viz-item {
|
|
2972
|
+
width: 100%;
|
|
2973
|
+
height: 1000%;
|
|
2974
|
+
display: block;
|
|
2975
|
+
}
|
|
2976
|
+
`;
|
|
2979
2977
|
__decorateClass([
|
|
2980
2978
|
property2()
|
|
2981
2979
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -3087,16 +3085,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
3087
3085
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3088
3086
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3089
3087
|
}
|
|
3090
|
-
static {
|
|
3091
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3092
|
-
this.styles = css3`
|
|
3093
|
-
:host {
|
|
3094
|
-
display: block;
|
|
3095
|
-
width: 100%;
|
|
3096
|
-
height: 100%;
|
|
3097
|
-
}
|
|
3098
|
-
`;
|
|
3099
|
-
}
|
|
3100
3088
|
createRenderRoot() {
|
|
3101
3089
|
return this;
|
|
3102
3090
|
}
|
|
@@ -3174,6 +3162,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
3174
3162
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
3175
3163
|
}
|
|
3176
3164
|
};
|
|
3165
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3166
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
3167
|
+
:host {
|
|
3168
|
+
display: block;
|
|
3169
|
+
width: 100%;
|
|
3170
|
+
height: 100%;
|
|
3171
|
+
}
|
|
3172
|
+
`;
|
|
3177
3173
|
__decorateClass([
|
|
3178
3174
|
property3()
|
|
3179
3175
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -3250,16 +3246,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
3250
3246
|
this.libVersion = version + "-wc-luzmo";
|
|
3251
3247
|
this.remoteEntryServer = "http://localhost:4202";
|
|
3252
3248
|
}
|
|
3253
|
-
static {
|
|
3254
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3255
|
-
this.styles = css4`
|
|
3256
|
-
:host {
|
|
3257
|
-
display: block;
|
|
3258
|
-
width: 100%;
|
|
3259
|
-
height: 100%;
|
|
3260
|
-
}
|
|
3261
|
-
`;
|
|
3262
|
-
}
|
|
3263
3249
|
createRenderRoot() {
|
|
3264
3250
|
return this;
|
|
3265
3251
|
}
|
|
@@ -3310,6 +3296,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
3310
3296
|
return html4` `;
|
|
3311
3297
|
}
|
|
3312
3298
|
};
|
|
3299
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3300
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
3301
|
+
:host {
|
|
3302
|
+
display: block;
|
|
3303
|
+
width: 100%;
|
|
3304
|
+
height: 100%;
|
|
3305
|
+
}
|
|
3306
|
+
`;
|
|
3313
3307
|
__decorateClass([
|
|
3314
3308
|
property4()
|
|
3315
3309
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/luzmo-embed.min.js
CHANGED
|
@@ -6168,7 +6168,7 @@ var o6 = e6(class extends i5 {
|
|
|
6168
6168
|
});
|
|
6169
6169
|
|
|
6170
6170
|
// libs/embed-libs/embed/package.json
|
|
6171
|
-
var version = "9.
|
|
6171
|
+
var version = "9.1.0";
|
|
6172
6172
|
|
|
6173
6173
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
6174
6174
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -7529,22 +7529,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7529
7529
|
this.libVersion = version + "-wc-luzmo";
|
|
7530
7530
|
this.postInitCallQueue = [];
|
|
7531
7531
|
}
|
|
7532
|
-
static {
|
|
7533
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7534
|
-
this.styles = i`
|
|
7535
|
-
:host {
|
|
7536
|
-
display: block;
|
|
7537
|
-
width: 100%;
|
|
7538
|
-
height: 100%;
|
|
7539
|
-
}
|
|
7540
|
-
|
|
7541
|
-
luzmo-embed-viz-item {
|
|
7542
|
-
width: 100%;
|
|
7543
|
-
height: 1000%;
|
|
7544
|
-
display: block;
|
|
7545
|
-
}
|
|
7546
|
-
`;
|
|
7547
|
-
}
|
|
7548
7532
|
createRenderRoot() {
|
|
7549
7533
|
if (!this.style.display) {
|
|
7550
7534
|
this.style.display = "block";
|
|
@@ -7713,6 +7697,20 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7713
7697
|
return b2``;
|
|
7714
7698
|
}
|
|
7715
7699
|
};
|
|
7700
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7701
|
+
LuzmoBaseVizItem.styles = i`
|
|
7702
|
+
:host {
|
|
7703
|
+
display: block;
|
|
7704
|
+
width: 100%;
|
|
7705
|
+
height: 100%;
|
|
7706
|
+
}
|
|
7707
|
+
|
|
7708
|
+
luzmo-embed-viz-item {
|
|
7709
|
+
width: 100%;
|
|
7710
|
+
height: 1000%;
|
|
7711
|
+
display: block;
|
|
7712
|
+
}
|
|
7713
|
+
`;
|
|
7716
7714
|
__decorateClass([
|
|
7717
7715
|
n4()
|
|
7718
7716
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -7822,16 +7820,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7822
7820
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
7823
7821
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
7824
7822
|
}
|
|
7825
|
-
static {
|
|
7826
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7827
|
-
this.styles = i`
|
|
7828
|
-
:host {
|
|
7829
|
-
display: block;
|
|
7830
|
-
width: 100%;
|
|
7831
|
-
height: 100%;
|
|
7832
|
-
}
|
|
7833
|
-
`;
|
|
7834
|
-
}
|
|
7835
7823
|
createRenderRoot() {
|
|
7836
7824
|
return this;
|
|
7837
7825
|
}
|
|
@@ -7909,6 +7897,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7909
7897
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
7910
7898
|
}
|
|
7911
7899
|
};
|
|
7900
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7901
|
+
LuzmoIQEmbedChatComponent.styles = i`
|
|
7902
|
+
:host {
|
|
7903
|
+
display: block;
|
|
7904
|
+
width: 100%;
|
|
7905
|
+
height: 100%;
|
|
7906
|
+
}
|
|
7907
|
+
`;
|
|
7912
7908
|
__decorateClass([
|
|
7913
7909
|
n4()
|
|
7914
7910
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -7983,16 +7979,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
7983
7979
|
this.libVersion = version + "-wc-luzmo";
|
|
7984
7980
|
this.remoteEntryServer = "http://localhost:4202";
|
|
7985
7981
|
}
|
|
7986
|
-
static {
|
|
7987
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7988
|
-
this.styles = i`
|
|
7989
|
-
:host {
|
|
7990
|
-
display: block;
|
|
7991
|
-
width: 100%;
|
|
7992
|
-
height: 100%;
|
|
7993
|
-
}
|
|
7994
|
-
`;
|
|
7995
|
-
}
|
|
7996
7982
|
createRenderRoot() {
|
|
7997
7983
|
return this;
|
|
7998
7984
|
}
|
|
@@ -8043,6 +8029,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
8043
8029
|
return b2` `;
|
|
8044
8030
|
}
|
|
8045
8031
|
};
|
|
8032
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
8033
|
+
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
8034
|
+
:host {
|
|
8035
|
+
display: block;
|
|
8036
|
+
width: 100%;
|
|
8037
|
+
height: 100%;
|
|
8038
|
+
}
|
|
8039
|
+
`;
|
|
8046
8040
|
__decorateClass([
|
|
8047
8041
|
n4()
|
|
8048
8042
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.0-es2021",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.3.1",
|
|
6
6
|
"@module-federation/runtime": "^2.9.0",
|
|
7
7
|
"@luzmo/dashboard-contents-types": "2.1.0"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [
|
|
10
|
+
"es2021",
|
|
11
|
+
"safari-compatible",
|
|
10
12
|
"es6",
|
|
11
13
|
"web-component",
|
|
12
14
|
"lit",
|
|
@@ -41,5 +43,9 @@
|
|
|
41
43
|
"default": "./index.rn.js"
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
46
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
47
|
+
"description": "ES2021 build for Safari before 16.4",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"tag": "es2021"
|
|
50
|
+
}
|
|
45
51
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type * from '@luzmo/dashboard-contents-types';
|
|
2
|
-
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, ItemFilterOutput, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, AddFilters, PartialRecord, SendExportEmailType, SetEditMode, SetPreview, SetSelectedData, DashboardEditMode, SupportedLanguage, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from './index.shared';
|
|
2
|
+
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, ItemFilterOutput, SelectedDataInput, ExportType, DashboardExportType, ItemData, ItemDataRows, ExportDashboard, AccessibleDashboard, AddFilters, PartialRecord, SendExportEmailType, SetEditMode, SetPreview, SetSelectedData, DashboardEditMode, SupportedLanguage, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from './index.shared';
|
|
3
3
|
export { selectedDataUtils, preloadDashboard, preloadVizItem, preloadIQ } from './index.shared';
|
|
4
4
|
export * from './lib/dashboard/dashboard-component';
|
|
5
5
|
export * from './lib/viz-item/viz-item-component';
|
|
@@ -94,7 +94,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
94
94
|
static get styles(): import("lit").CSSResult[];
|
|
95
95
|
render(): TemplateResult;
|
|
96
96
|
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
97
|
-
getData(itemId: string): Promise<SharedLib.
|
|
97
|
+
getData(itemId: string): Promise<SharedLib.ItemDataRows>;
|
|
98
98
|
getFilters(): Promise<SharedLib.DashboardFilterOutput>;
|
|
99
99
|
getInsights(options?: SharedLib.GetInsightsOptions): Promise<string>;
|
|
100
100
|
getDashboardContext(): Promise<SharedLib.DashboardContext | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string) => Promise<
|
|
2
|
+
import { ItemDataRows } from '../models/common.model';
|
|
3
|
+
export declare const getData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string) => Promise<ItemDataRows>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilterGroup, ItemData as DashboardItemData, ScreenMode as DashboardScreenMode } from '@luzmo/dashboard-contents-types';
|
|
1
|
+
import type { FilterGroup, ItemData as DashboardItemData, ItemDataRow, ItemDataValue, ScreenMode as DashboardScreenMode } from '@luzmo/dashboard-contents-types';
|
|
2
2
|
export type ScreenMode = DashboardScreenMode | 'auto';
|
|
3
3
|
export type DashboardDimensions = Record<Exclude<ScreenMode, 'auto'>, [
|
|
4
4
|
number,
|
|
@@ -40,6 +40,7 @@ export type AccessibleDashboard = {
|
|
|
40
40
|
tags: string[];
|
|
41
41
|
};
|
|
42
42
|
export type ItemData = DashboardItemData;
|
|
43
|
+
export type ItemDataRows = ItemDataRow[] | ItemDataRow[][] | ItemDataValue[] | null;
|
|
43
44
|
export type DashboardEditMode = 'editFull' | 'editLimited' | 'view';
|
|
44
45
|
export type DashboardEmbedMode = 'webComponent' | 'iframe';
|
|
45
46
|
export type SetEditMode = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DashboardContext } from './dashboard-context.model';
|
|
2
|
-
import { AccessibleDashboard, AddFilters, BrowserCheckKey, DashboardContentParams, DashboardDimensions, DashboardEditMode, DashboardInputs, DashboardPromises, ExportDashboard,
|
|
2
|
+
import { AccessibleDashboard, AddFilters, BrowserCheckKey, DashboardContentParams, DashboardDimensions, DashboardEditMode, DashboardInputs, DashboardPromises, ExportDashboard, ItemDataRows, PartialRecord, ScreenMode, SetEditMode, SetPreview, SetSelectedData } from './common.model';
|
|
3
3
|
import type { DashboardExportType, SendExportEmailType } from './export.model';
|
|
4
4
|
import type { FilterInput } from './filter-input.model';
|
|
5
5
|
import type { DashboardFilterOutput } from './filter-output.model';
|
|
@@ -43,7 +43,7 @@ export interface LuzmoElement extends HTMLElement {
|
|
|
43
43
|
exportDashboard(format?: DashboardExportType): Promise<ExportDashboard>;
|
|
44
44
|
getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
|
|
45
45
|
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
46
|
-
getData(itemId: string): Promise<
|
|
46
|
+
getData(itemId: string): Promise<ItemDataRows>;
|
|
47
47
|
getDashboardContext(): Promise<DashboardContext | undefined>;
|
|
48
48
|
getFilters(): Promise<DashboardFilterOutput>;
|
|
49
49
|
getInsights(options?: GetInsightsOptions): Promise<string>;
|
|
@@ -33,7 +33,7 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
|
33
33
|
getVizItemContext?: () => SharedLib.VizItemContext;
|
|
34
34
|
export: (type?: VizItemExportType) => Promise<string | void>;
|
|
35
35
|
refreshData: () => void;
|
|
36
|
-
getData: () => SharedLib.
|
|
36
|
+
getData: () => SharedLib.ItemDataRows;
|
|
37
37
|
getInsights: (options?: SharedLib.GetInsightsOptions) => Promise<string>;
|
|
38
38
|
setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
39
39
|
setAuthorization: (key: string, token: string) => void;
|
|
@@ -64,7 +64,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
64
64
|
getFilters: () => SharedLib.ItemFilterOutput;
|
|
65
65
|
getContextFilters?: () => SharedLib.DashboardFilterOutput;
|
|
66
66
|
export: (type?: VizItemExportType) => Promise<string | void>;
|
|
67
|
-
getData: () => SharedLib.
|
|
67
|
+
getData: () => SharedLib.ItemDataRows;
|
|
68
68
|
getInsights: (options?: SharedLib.GetInsightsOptions) => Promise<string>;
|
|
69
69
|
refreshData: () => void;
|
|
70
70
|
setSelectedData: (itemId?: string, filters?: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
@@ -82,7 +82,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
82
82
|
*/
|
|
83
83
|
getVizItemContext(): SharedLib.VizItemContext;
|
|
84
84
|
export(type?: VizItemExportType): Promise<string | void>;
|
|
85
|
-
getData(): SharedLib.
|
|
85
|
+
getData(): SharedLib.ItemDataRows;
|
|
86
86
|
getInsights(options?: SharedLib.GetInsightsOptions): Promise<string>;
|
|
87
87
|
refreshData(): void;
|
|
88
88
|
setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
|