@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/index.js CHANGED
@@ -5,8 +5,7 @@ var __decorateClass = (decorators, target, key, kind) => {
5
5
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
6
  if (decorator = decorators[i])
7
7
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result)
9
- __defProp(target, key, result);
8
+ if (kind && result) __defProp(target, key, result);
10
9
  return result;
11
10
  };
12
11
 
@@ -24,7 +23,7 @@ import { property, query, state } from "lit/decorators.js";
24
23
  import { styleMap } from "lit/directives/style-map.js";
25
24
 
26
25
  // libs/embed-libs/embed/package.json
27
- var version = "6.6.0";
26
+ var version = "6.7.0";
28
27
 
29
28
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
30
29
  import * as SharedLib from "@luzmo/shared-embed";
@@ -136,6 +135,7 @@ var _setEventHandler = () => {
136
135
  break;
137
136
  }
138
137
  case "chartsRendered":
138
+ // TODO remove once chartsRendered is changed to itemsRendered in FE app
139
139
  case "itemsRendered": {
140
140
  event.data.type = "itemsRendered";
141
141
  dashboardComponent.dispatchEvent(
@@ -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.96";
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);