@luzmo/embed 5.0.13-beta.0 → 5.0.13

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 CHANGED
@@ -1,6 +1,12 @@
1
1
 
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [5.0.13] - 2024-03-26
5
+
6
+ ### Updates
7
+
8
+ - Add ESM build for libs entry point in `@luzmo/embed`.
9
+
4
10
  ## [5.0.12] - 2024-03-19
5
11
 
6
12
  ### Bugfixes
package/index.cjs CHANGED
@@ -39,8 +39,7 @@ var __decorateClass = (decorators, target, key, kind) => {
39
39
  // libs/embed-libs/embed/src/index.ts
40
40
  var src_exports = {};
41
41
  __export(src_exports, {
42
- LuzmoDashboard: () => LuzmoDashboard2,
43
- LuzmoVizItem: () => LuzmoVizItem
42
+ LuzmoDashboard: () => LuzmoDashboard2
44
43
  });
45
44
  module.exports = __toCommonJS(src_exports);
46
45
 
@@ -55,7 +54,7 @@ var import_style_map = require("lit/directives/style-map.js");
55
54
  var import_shared_embed = require("@luzmo/shared-embed");
56
55
 
57
56
  // libs/embed-libs/embed/package.json
58
- var version = "5.0.13-beta.0";
57
+ var version = "5.0.13";
59
58
 
60
59
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
60
  var LuzmoService = class {
@@ -1094,85 +1093,7 @@ var LuzmoDashboard2 = class extends LuzmoDashboard {
1094
1093
  LuzmoDashboard2 = __decorateClass([
1095
1094
  (0, import_decorators2.customElement)("luzmo-dashboard")
1096
1095
  ], LuzmoDashboard2);
1097
-
1098
- // libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
1099
- var import_decorators3 = require("lit/decorators.js");
1100
- var import_lit3 = require("lit");
1101
- var SharedLib3 = __toESM(require("@luzmo/shared-embed"), 1);
1102
- var LuzmoVizItem = class extends import_lit3.LitElement {
1103
- constructor() {
1104
- super();
1105
- this.appServer = "http://localhost:4201";
1106
- this.apiHost = "https://api.luzmo.com";
1107
- this.slots = [];
1108
- this.options = {
1109
- title: {
1110
- en: ""
1111
- },
1112
- theme: "default"
1113
- };
1114
- SharedLib3.loadLibrary(this.appServer, "DashboardApp").then((lib) => {
1115
- this.chartElement = document.createElement("chart-component");
1116
- this.chartElement.setAttribute("embedding-mode", "chart-embedding");
1117
- this.upadateVizItemProperties();
1118
- this.renderRoot.append(this.chartElement);
1119
- });
1120
- }
1121
- firstUpdated(_changedProperties) {
1122
- super.firstUpdated(_changedProperties);
1123
- }
1124
- upadateVizItemProperties() {
1125
- if (this.chartElement) {
1126
- this.chartElement.setAttribute("app-server", this.appServer);
1127
- this.chartElement.setAttribute("api-host", this.apiHost);
1128
- for (const key in SharedLib3.libraryTypeToWebComponentTypeMapping) {
1129
- if (this[key]) {
1130
- this.chartElement.setAttribute(
1131
- SharedLib3.libraryTypeToWebComponentTypeMapping[key],
1132
- typeof this[key] === "object" ? JSON.stringify(this[key]) : this[key]
1133
- );
1134
- }
1135
- }
1136
- }
1137
- }
1138
- render() {
1139
- return import_lit3.html``;
1140
- }
1141
- };
1142
- // Static styles to set host display to block, else it is not shown at all for some reason.
1143
- LuzmoVizItem.styles = import_lit3.css`
1144
- :host {
1145
- display: block;
1146
- width: 100%;
1147
- height: 100%;
1148
- }
1149
- `;
1150
- __decorateClass([
1151
- (0, import_decorators3.property)()
1152
- ], LuzmoVizItem.prototype, "appServer", 2);
1153
- __decorateClass([
1154
- (0, import_decorators3.property)()
1155
- ], LuzmoVizItem.prototype, "apiHost", 2);
1156
- __decorateClass([
1157
- (0, import_decorators3.property)({ type: Array })
1158
- ], LuzmoVizItem.prototype, "slots", 2);
1159
- __decorateClass([
1160
- (0, import_decorators3.property)({ type: Object })
1161
- ], LuzmoVizItem.prototype, "options", 2);
1162
- __decorateClass([
1163
- (0, import_decorators3.property)()
1164
- ], LuzmoVizItem.prototype, "type", 2);
1165
- __decorateClass([
1166
- (0, import_decorators3.property)()
1167
- ], LuzmoVizItem.prototype, "authKey", 2);
1168
- __decorateClass([
1169
- (0, import_decorators3.property)()
1170
- ], LuzmoVizItem.prototype, "authToken", 2);
1171
- LuzmoVizItem = __decorateClass([
1172
- (0, import_decorators3.customElement)("luzmo-embed-viz-item")
1173
- ], LuzmoVizItem);
1174
1096
  // Annotate the CommonJS export names for ESM import in node:
1175
1097
  0 && (module.exports = {
1176
- LuzmoDashboard,
1177
- LuzmoVizItem
1098
+ LuzmoDashboard
1178
1099
  });
package/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, Filter, FilterExpression, FilterOrigin, FilterInput, FilterGroup, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode } from '@luzmo/shared-embed';
2
2
  export * from './lib/dashboard-component/dashboard-component';
3
- export * from './lib/viz-item/viz-item.base';
package/index.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  } from "@luzmo/shared-embed";
38
38
 
39
39
  // libs/embed-libs/embed/package.json
40
- var version = "5.0.13-beta.0";
40
+ var version = "5.0.13";
41
41
 
42
42
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
43
43
  var LuzmoService = class {
@@ -1076,84 +1076,6 @@ var LuzmoDashboard2 = class extends LuzmoDashboard {
1076
1076
  LuzmoDashboard2 = __decorateClass([
1077
1077
  customElement("luzmo-dashboard")
1078
1078
  ], LuzmoDashboard2);
1079
-
1080
- // libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
1081
- import { customElement as customElement2, property as property2 } from "lit/decorators.js";
1082
- import { LitElement as LitElement2, html as html2, css as css2 } from "lit";
1083
- import * as SharedLib3 from "@luzmo/shared-embed";
1084
- var LuzmoVizItem = class extends LitElement2 {
1085
- constructor() {
1086
- super();
1087
- this.appServer = "http://localhost:4201";
1088
- this.apiHost = "https://api.luzmo.com";
1089
- this.slots = [];
1090
- this.options = {
1091
- title: {
1092
- en: ""
1093
- },
1094
- theme: "default"
1095
- };
1096
- SharedLib3.loadLibrary(this.appServer, "DashboardApp").then((lib) => {
1097
- this.chartElement = document.createElement("chart-component");
1098
- this.chartElement.setAttribute("embedding-mode", "chart-embedding");
1099
- this.upadateVizItemProperties();
1100
- this.renderRoot.append(this.chartElement);
1101
- });
1102
- }
1103
- firstUpdated(_changedProperties) {
1104
- super.firstUpdated(_changedProperties);
1105
- }
1106
- upadateVizItemProperties() {
1107
- if (this.chartElement) {
1108
- this.chartElement.setAttribute("app-server", this.appServer);
1109
- this.chartElement.setAttribute("api-host", this.apiHost);
1110
- for (const key in SharedLib3.libraryTypeToWebComponentTypeMapping) {
1111
- if (this[key]) {
1112
- this.chartElement.setAttribute(
1113
- SharedLib3.libraryTypeToWebComponentTypeMapping[key],
1114
- typeof this[key] === "object" ? JSON.stringify(this[key]) : this[key]
1115
- );
1116
- }
1117
- }
1118
- }
1119
- }
1120
- render() {
1121
- return html2``;
1122
- }
1123
- };
1124
- // Static styles to set host display to block, else it is not shown at all for some reason.
1125
- LuzmoVizItem.styles = css2`
1126
- :host {
1127
- display: block;
1128
- width: 100%;
1129
- height: 100%;
1130
- }
1131
- `;
1132
- __decorateClass([
1133
- property2()
1134
- ], LuzmoVizItem.prototype, "appServer", 2);
1135
- __decorateClass([
1136
- property2()
1137
- ], LuzmoVizItem.prototype, "apiHost", 2);
1138
- __decorateClass([
1139
- property2({ type: Array })
1140
- ], LuzmoVizItem.prototype, "slots", 2);
1141
- __decorateClass([
1142
- property2({ type: Object })
1143
- ], LuzmoVizItem.prototype, "options", 2);
1144
- __decorateClass([
1145
- property2()
1146
- ], LuzmoVizItem.prototype, "type", 2);
1147
- __decorateClass([
1148
- property2()
1149
- ], LuzmoVizItem.prototype, "authKey", 2);
1150
- __decorateClass([
1151
- property2()
1152
- ], LuzmoVizItem.prototype, "authToken", 2);
1153
- LuzmoVizItem = __decorateClass([
1154
- customElement2("luzmo-embed-viz-item")
1155
- ], LuzmoVizItem);
1156
1079
  export {
1157
- LuzmoDashboard2 as LuzmoDashboard,
1158
- LuzmoVizItem
1080
+ LuzmoDashboard2 as LuzmoDashboard
1159
1081
  };