@luzmo/embed 6.6.1 → 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 +123 -168
- package/README.md +17 -0
- package/index.cjs +40 -38
- package/index.js +40 -38
- package/luzmo-embed.min.js +75 -55
- package/package.json +9 -3
- 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/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() {
|
|
@@ -1075,22 +1083,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1075
1083
|
this.libVersion = version + "-wc-luzmo";
|
|
1076
1084
|
this.postInitCallQueue = [];
|
|
1077
1085
|
}
|
|
1078
|
-
static {
|
|
1079
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1080
|
-
this.styles = css2`
|
|
1081
|
-
:host {
|
|
1082
|
-
display: block;
|
|
1083
|
-
width: 100%;
|
|
1084
|
-
height: 100%;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
luzmo-embed-viz-item {
|
|
1088
|
-
width: 100%;
|
|
1089
|
-
height: 1000%;
|
|
1090
|
-
display: block;
|
|
1091
|
-
}
|
|
1092
|
-
`;
|
|
1093
|
-
}
|
|
1094
1086
|
createRenderRoot() {
|
|
1095
1087
|
if (!this.style.display) {
|
|
1096
1088
|
this.style.display = "block";
|
|
@@ -1200,6 +1192,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1200
1192
|
return html2` `;
|
|
1201
1193
|
}
|
|
1202
1194
|
};
|
|
1195
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1196
|
+
LuzmoBaseVizItem.styles = css2`
|
|
1197
|
+
:host {
|
|
1198
|
+
display: block;
|
|
1199
|
+
width: 100%;
|
|
1200
|
+
height: 100%;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
luzmo-embed-viz-item {
|
|
1204
|
+
width: 100%;
|
|
1205
|
+
height: 1000%;
|
|
1206
|
+
display: block;
|
|
1207
|
+
}
|
|
1208
|
+
`;
|
|
1203
1209
|
__decorateClass([
|
|
1204
1210
|
property2()
|
|
1205
1211
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1293,16 +1299,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1293
1299
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1294
1300
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1295
1301
|
}
|
|
1296
|
-
static {
|
|
1297
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1298
|
-
this.styles = css3`
|
|
1299
|
-
:host {
|
|
1300
|
-
display: block;
|
|
1301
|
-
width: 100%;
|
|
1302
|
-
height: 100%;
|
|
1303
|
-
}
|
|
1304
|
-
`;
|
|
1305
|
-
}
|
|
1306
1302
|
createRenderRoot() {
|
|
1307
1303
|
return this;
|
|
1308
1304
|
}
|
|
@@ -1371,6 +1367,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1371
1367
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1372
1368
|
}
|
|
1373
1369
|
};
|
|
1370
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1371
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
1372
|
+
:host {
|
|
1373
|
+
display: block;
|
|
1374
|
+
width: 100%;
|
|
1375
|
+
height: 100%;
|
|
1376
|
+
}
|
|
1377
|
+
`;
|
|
1374
1378
|
__decorateClass([
|
|
1375
1379
|
property3()
|
|
1376
1380
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1436,16 +1440,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1436
1440
|
this.libVersion = version + "-wc-luzmo";
|
|
1437
1441
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1438
1442
|
}
|
|
1439
|
-
static {
|
|
1440
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1441
|
-
this.styles = css4`
|
|
1442
|
-
:host {
|
|
1443
|
-
display: block;
|
|
1444
|
-
width: 100%;
|
|
1445
|
-
height: 100%;
|
|
1446
|
-
}
|
|
1447
|
-
`;
|
|
1448
|
-
}
|
|
1449
1443
|
createRenderRoot() {
|
|
1450
1444
|
return this;
|
|
1451
1445
|
}
|
|
@@ -1496,6 +1490,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1496
1490
|
return html4` `;
|
|
1497
1491
|
}
|
|
1498
1492
|
};
|
|
1493
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1494
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
1495
|
+
:host {
|
|
1496
|
+
display: block;
|
|
1497
|
+
width: 100%;
|
|
1498
|
+
height: 100%;
|
|
1499
|
+
}
|
|
1500
|
+
`;
|
|
1499
1501
|
__decorateClass([
|
|
1500
1502
|
property4()
|
|
1501
1503
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
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() {
|
|
@@ -3040,22 +3066,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
3040
3066
|
this.libVersion = version + "-wc-luzmo";
|
|
3041
3067
|
this.postInitCallQueue = [];
|
|
3042
3068
|
}
|
|
3043
|
-
static {
|
|
3044
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3045
|
-
this.styles = i`
|
|
3046
|
-
:host {
|
|
3047
|
-
display: block;
|
|
3048
|
-
width: 100%;
|
|
3049
|
-
height: 100%;
|
|
3050
|
-
}
|
|
3051
|
-
|
|
3052
|
-
luzmo-embed-viz-item {
|
|
3053
|
-
width: 100%;
|
|
3054
|
-
height: 1000%;
|
|
3055
|
-
display: block;
|
|
3056
|
-
}
|
|
3057
|
-
`;
|
|
3058
|
-
}
|
|
3059
3069
|
createRenderRoot() {
|
|
3060
3070
|
if (!this.style.display) {
|
|
3061
3071
|
this.style.display = "block";
|
|
@@ -3165,6 +3175,20 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
3165
3175
|
return x` `;
|
|
3166
3176
|
}
|
|
3167
3177
|
};
|
|
3178
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3179
|
+
LuzmoBaseVizItem.styles = i`
|
|
3180
|
+
:host {
|
|
3181
|
+
display: block;
|
|
3182
|
+
width: 100%;
|
|
3183
|
+
height: 100%;
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
luzmo-embed-viz-item {
|
|
3187
|
+
width: 100%;
|
|
3188
|
+
height: 1000%;
|
|
3189
|
+
display: block;
|
|
3190
|
+
}
|
|
3191
|
+
`;
|
|
3168
3192
|
__decorateClass([
|
|
3169
3193
|
n4()
|
|
3170
3194
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -3255,16 +3279,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
3255
3279
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3256
3280
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3257
3281
|
}
|
|
3258
|
-
static {
|
|
3259
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3260
|
-
this.styles = i`
|
|
3261
|
-
:host {
|
|
3262
|
-
display: block;
|
|
3263
|
-
width: 100%;
|
|
3264
|
-
height: 100%;
|
|
3265
|
-
}
|
|
3266
|
-
`;
|
|
3267
|
-
}
|
|
3268
3282
|
createRenderRoot() {
|
|
3269
3283
|
return this;
|
|
3270
3284
|
}
|
|
@@ -3333,6 +3347,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
3333
3347
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
3334
3348
|
}
|
|
3335
3349
|
};
|
|
3350
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3351
|
+
LuzmoIQEmbedChatComponent.styles = i`
|
|
3352
|
+
:host {
|
|
3353
|
+
display: block;
|
|
3354
|
+
width: 100%;
|
|
3355
|
+
height: 100%;
|
|
3356
|
+
}
|
|
3357
|
+
`;
|
|
3336
3358
|
__decorateClass([
|
|
3337
3359
|
n4()
|
|
3338
3360
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -3395,16 +3417,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
3395
3417
|
this.libVersion = version + "-wc-luzmo";
|
|
3396
3418
|
this.remoteEntryServer = "http://localhost:4202";
|
|
3397
3419
|
}
|
|
3398
|
-
static {
|
|
3399
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3400
|
-
this.styles = i`
|
|
3401
|
-
:host {
|
|
3402
|
-
display: block;
|
|
3403
|
-
width: 100%;
|
|
3404
|
-
height: 100%;
|
|
3405
|
-
}
|
|
3406
|
-
`;
|
|
3407
|
-
}
|
|
3408
3420
|
createRenderRoot() {
|
|
3409
3421
|
return this;
|
|
3410
3422
|
}
|
|
@@ -3455,6 +3467,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
3455
3467
|
return x` `;
|
|
3456
3468
|
}
|
|
3457
3469
|
};
|
|
3470
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3471
|
+
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
3472
|
+
:host {
|
|
3473
|
+
display: block;
|
|
3474
|
+
width: 100%;
|
|
3475
|
+
height: 100%;
|
|
3476
|
+
}
|
|
3477
|
+
`;
|
|
3458
3478
|
__decorateClass([
|
|
3459
3479
|
n4()
|
|
3460
3480
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0-es2021",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.3.0",
|
|
6
|
-
"@luzmo/shared-embed": "5.
|
|
6
|
+
"@luzmo/shared-embed": "5.6.0",
|
|
7
7
|
"@luzmo/dashboard-contents-types": "1.0.18"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [
|
|
10
|
+
"es2021",
|
|
11
|
+
"safari-compatible",
|
|
10
12
|
"es6",
|
|
11
13
|
"web-component",
|
|
12
14
|
"lit",
|
|
@@ -22,5 +24,9 @@
|
|
|
22
24
|
],
|
|
23
25
|
"module": "./index.js",
|
|
24
26
|
"types": "./src/index.d.ts",
|
|
25
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
27
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
28
|
+
"description": "ES2021 build for Safari < 16.3 compatibility",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"tag": "es2021"
|
|
31
|
+
}
|
|
26
32
|
}
|
package/src/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type * from '@luzmo/dashboard-contents-types';
|
|
2
|
-
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, DashboardEditMode, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
|
|
3
|
-
export { selectedDataUtils } from '@luzmo/shared-embed';
|
|
4
|
-
export * from './lib/dashboard/dashboard-component';
|
|
5
|
-
export * from './lib/viz-item/viz-item-component';
|
|
6
|
-
export * from './lib/iq-components/luzmo-iq-chat';
|
|
7
|
-
export * from './lib/iq-components/luzmo-iq-answer';
|
|
8
|
-
export * from './lib/helper/json-schema-utils';
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
import { CombinedSelectedDataInput, DashboardInputs, LuzmoElement } from '@luzmo/shared-embed';
|
|
4
|
-
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
5
|
-
export declare class LuzmoDashboard extends LitElement implements SharedLib.WebComponentLuzmoDashboard {
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
luzmoEmbedContainer: HTMLElement;
|
|
8
|
-
iframe: HTMLIFrameElement;
|
|
9
|
-
dashboardId?: SharedLib.DashboardInputs['dashboardId'];
|
|
10
|
-
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
11
|
-
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
12
|
-
language: SharedLib.DashboardInputs['language'];
|
|
13
|
-
editorLanguage: SharedLib.DashboardInputs['editorLanguage'];
|
|
14
|
-
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
15
|
-
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
16
|
-
switchScreenModeOnResize: boolean;
|
|
17
|
-
editMode: SharedLib.DashboardInputs['editMode'];
|
|
18
|
-
theme?: SharedLib.DashboardInputs['theme'];
|
|
19
|
-
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
20
|
-
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
21
|
-
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
22
|
-
authKey?: SharedLib.DashboardInputs['authKey'];
|
|
23
|
-
loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
|
|
24
|
-
loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
|
|
25
|
-
loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
|
|
26
|
-
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
27
|
-
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
28
|
-
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
29
|
-
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
30
|
-
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
31
|
-
embedMode: DashboardInputs['embedMode'];
|
|
32
|
-
_containerId: string;
|
|
33
|
-
_iframeId: string;
|
|
34
|
-
params: SharedLib.DashboardContentParams;
|
|
35
|
-
_iframeUrl?: string;
|
|
36
|
-
iframeLoaded: boolean;
|
|
37
|
-
promises: SharedLib.DashboardPromises;
|
|
38
|
-
iframeStyle: SharedLib.IframeStyles;
|
|
39
|
-
_containerStyle: SharedLib.ContainerStyles;
|
|
40
|
-
_loaderStyle: SharedLib.LoaderStyles;
|
|
41
|
-
_lcStyle: SharedLib.LcStyles;
|
|
42
|
-
_loadingCircleStyle: SharedLib.PlStyles;
|
|
43
|
-
_containerLoaderStyle: SharedLib.ContainerLoaderStyles;
|
|
44
|
-
_loaderMsg: string;
|
|
45
|
-
containerWidth?: number;
|
|
46
|
-
dimensions?: SharedLib.DashboardDimensions;
|
|
47
|
-
currentScreenMode?: SharedLib.ScreenMode;
|
|
48
|
-
_itemEmbedding: boolean;
|
|
49
|
-
browserError: boolean;
|
|
50
|
-
browserErrorMsg: string;
|
|
51
|
-
dashboardError: boolean;
|
|
52
|
-
browserNotSupported: any[];
|
|
53
|
-
libVersion: string;
|
|
54
|
-
protected isLibraryLoaded: boolean;
|
|
55
|
-
protected dashboardReference: LuzmoElement;
|
|
56
|
-
currentAuthKey: string;
|
|
57
|
-
currentAuthToken: string;
|
|
58
|
-
isInitCalled: boolean;
|
|
59
|
-
private attributesMap;
|
|
60
|
-
_loadTimeoutHandle?: number;
|
|
61
|
-
_onResize: () => void;
|
|
62
|
-
loaderSize: number;
|
|
63
|
-
borderWidth: number;
|
|
64
|
-
minHeight: number;
|
|
65
|
-
iframeHeight?: string;
|
|
66
|
-
iframeWidth?: string;
|
|
67
|
-
_resizeObserver: ResizeObserver;
|
|
68
|
-
constructor();
|
|
69
|
-
connectedCallback(): void;
|
|
70
|
-
disconnectedCallback(): void;
|
|
71
|
-
firstUpdated(): void;
|
|
72
|
-
initComponent(): void;
|
|
73
|
-
setAllAttributes(): void;
|
|
74
|
-
updated(changedProperties: PropertyValues): void;
|
|
75
|
-
_setOptions(): SharedLib.DashboardContentParams;
|
|
76
|
-
_updateIframeUrl(): void;
|
|
77
|
-
_setupLoader(): void;
|
|
78
|
-
_displayError(): void;
|
|
79
|
-
_calculateDimAfterDashboardLoaded(): void;
|
|
80
|
-
_loaderStyles(): void;
|
|
81
|
-
static get styles(): import("lit").CSSResult[];
|
|
82
|
-
render(): TemplateResult;
|
|
83
|
-
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
84
|
-
getData(itemId: string): Promise<SharedLib.ItemData>;
|
|
85
|
-
getFilters(): Promise<FilterGroup[]>;
|
|
86
|
-
setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SharedLib.SetSelectedData>;
|
|
87
|
-
setAuthorization(key: string, token: string): Promise<void>;
|
|
88
|
-
refreshData(itemId?: string): Promise<void>;
|
|
89
|
-
reloadDashboard(): Promise<void>;
|
|
90
|
-
exportDashboard(format?: SharedLib.DashboardExportType): Promise<SharedLib.ExportDashboard>;
|
|
91
|
-
getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
|
|
92
|
-
addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
|
|
93
|
-
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
94
|
-
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
95
|
-
isWebComponentViewMode(): boolean;
|
|
96
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const dashboardStyles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const _setEventHandler: () => void;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adds JSON schemas to cache.
|
|
3
|
-
*/
|
|
4
|
-
export declare function addJSONSchemas(schemas: any): void;
|
|
5
|
-
/**
|
|
6
|
-
* Returns a cached JSON schema by URL/schema $id.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getCachedJSONSchema(schemaUrl: string): any;
|
|
9
|
-
/**
|
|
10
|
-
* Returns all the cached JSON schemas.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getCachedJSONSchemas(): Record<string, any>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns a URL for a Luzmo JSON schema name.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getJSONSchemaUrl(schemaName: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* Fetches a Luzmo JSON schema. If a schema is cached it's returned.
|
|
19
|
-
*
|
|
20
|
-
* Example usage:
|
|
21
|
-
* const schema = await fetchJSONSchema('viz-item-type');
|
|
22
|
-
*
|
|
23
|
-
* In the example above, a schema https://developer.luzmo.com/assets/json-schemas/{version}/viz-item-type.schema.json
|
|
24
|
-
* will be fetched and cached.
|
|
25
|
-
*/
|
|
26
|
-
export declare function fetchJSONSchema(schemaName: string): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* If you need to dereference Luzmo JSON schemas in your application, you can use @apidevtools/json-schema-ref-parser
|
|
29
|
-
* library and provide the following options for the refParser.dereference() method.
|
|
30
|
-
*
|
|
31
|
-
* Example usage:
|
|
32
|
-
*
|
|
33
|
-
* import * as refParser from '@apidevtools/json-schema-ref-parser';
|
|
34
|
-
* import { fetchJSONSchema, luzmoRefParserOptions } from '@luzmo/embed';
|
|
35
|
-
*
|
|
36
|
-
* async function showDereferencedSchema() {
|
|
37
|
-
* const schema = await fetchJSONSchema('text');
|
|
38
|
-
* const dereferencedSchema = await refParser.dereference(schema, luzmoRefParserOptions);
|
|
39
|
-
* console.log(dereferencedSchema);
|
|
40
|
-
* }
|
|
41
|
-
*
|
|
42
|
-
* Another example:
|
|
43
|
-
*
|
|
44
|
-
* import * as refParser from '@apidevtools/json-schema-ref-parser';
|
|
45
|
-
* import { addJSONSchemas, luzmoRefParserOptions } from '@luzmo/embed';
|
|
46
|
-
* import { TextJSONSchema, TextOptionsJSONSchema } from "@luzmo/dashboard-contents-types";
|
|
47
|
-
*
|
|
48
|
-
* async function showDereferencedSchema() {
|
|
49
|
-
* addJSONSchemas([TextJSONSchema, TextOptionsJSONSchema]);
|
|
50
|
-
* const dereferencedSchema = await refParser.dereference(TextJSONSchema, luzmoRefParserOptions);
|
|
51
|
-
* console.log(dereferencedSchema);
|
|
52
|
-
* }
|
|
53
|
-
*/
|
|
54
|
-
export declare const luzmoRefParserOptions: {
|
|
55
|
-
mutateInputSchema: boolean;
|
|
56
|
-
resolve: {
|
|
57
|
-
luzmo: {
|
|
58
|
-
order: number;
|
|
59
|
-
canRead: (file: any) => boolean;
|
|
60
|
-
read: (file: any, callback: any) => void;
|
|
61
|
-
};
|
|
62
|
-
external: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IQAnswerOptions, IQMessage } from '@luzmo/dashboard-contents-types';
|
|
2
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
3
|
-
import type { TemplateResult } from 'lit-html';
|
|
4
|
-
export declare class LuzmoIQEmbedAnswerComponent extends LitElement {
|
|
5
|
-
appServer?: string;
|
|
6
|
-
apiHost?: string;
|
|
7
|
-
options?: IQAnswerOptions;
|
|
8
|
-
aiEndPoint?: string;
|
|
9
|
-
authKey?: string;
|
|
10
|
-
authToken?: string;
|
|
11
|
-
messages: IQMessage[];
|
|
12
|
-
version?: string;
|
|
13
|
-
libVersion?: string;
|
|
14
|
-
remoteEntryServer: string;
|
|
15
|
-
chartElement: HTMLElement;
|
|
16
|
-
static styles: import("lit").CSSResult;
|
|
17
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
19
|
-
private get calculatedAppServer();
|
|
20
|
-
private createAndAppendElement;
|
|
21
|
-
private updateVizItemProperties;
|
|
22
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
23
|
-
protected render(): TemplateResult<1>;
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { IQChatOptions } from '@luzmo/dashboard-contents-types';
|
|
2
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
3
|
-
import type { TemplateResult } from 'lit-html';
|
|
4
|
-
export declare class LuzmoIQEmbedChatComponent extends LitElement {
|
|
5
|
-
appServer?: string;
|
|
6
|
-
apiHost?: string;
|
|
7
|
-
options?: IQChatOptions;
|
|
8
|
-
initialSuggestionsDatasetId?: string;
|
|
9
|
-
aiEndpoint?: string;
|
|
10
|
-
authKey?: string;
|
|
11
|
-
authToken?: string;
|
|
12
|
-
version?: string;
|
|
13
|
-
libVersion?: string;
|
|
14
|
-
remoteEntryServer: string;
|
|
15
|
-
aydHost: string;
|
|
16
|
-
availableDatasets?: string[];
|
|
17
|
-
chartElement: HTMLElement;
|
|
18
|
-
static styles: import("lit").CSSResult;
|
|
19
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
20
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
21
|
-
private get calculatedAppServer();
|
|
22
|
-
private createAndAppendElement;
|
|
23
|
-
private updateVizItemProperties;
|
|
24
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
25
|
-
protected render(): TemplateResult<1>;
|
|
26
|
-
connectedCallback(): void;
|
|
27
|
-
}
|