@luzmo/embed 5.0.13-beta.1 → 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 +6 -0
- package/index.cjs +3 -83
- package/index.d.ts +0 -1
- package/index.js +2 -81
- package/index.libs.cjs +1099 -0
- package/index.libs.d.ts +0 -1
- package/index.libs.js +1079 -0
- package/luzmo-embed.libs.js +2 -101
- package/luzmo-embed.min.js +2 -101
- package/package.json +1 -1
- package/lib/viz-item/viz-item.base.d.ts +0 -17
package/CHANGELOG.md
CHANGED
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
|
|
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,86 +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
|
-
}
|
|
1115
|
-
firstUpdated(_changedProperties) {
|
|
1116
|
-
super.firstUpdated(_changedProperties);
|
|
1117
|
-
console.log(this.appServer);
|
|
1118
|
-
SharedLib3.loadLibrary(this.appServer, "DashboardApp").then((lib) => {
|
|
1119
|
-
this.chartElement = document.createElement("chart-component");
|
|
1120
|
-
this.chartElement.setAttribute("embedding-mode", "chart-embedding");
|
|
1121
|
-
this.upadateVizItemProperties();
|
|
1122
|
-
this.renderRoot.append(this.chartElement);
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
upadateVizItemProperties() {
|
|
1126
|
-
if (this.chartElement) {
|
|
1127
|
-
this.chartElement.setAttribute("app-server", this.appServer);
|
|
1128
|
-
this.chartElement.setAttribute("api-host", this.apiHost);
|
|
1129
|
-
for (const key in SharedLib3.libraryTypeToWebComponentTypeMapping) {
|
|
1130
|
-
if (this[key]) {
|
|
1131
|
-
this.chartElement.setAttribute(
|
|
1132
|
-
SharedLib3.libraryTypeToWebComponentTypeMapping[key],
|
|
1133
|
-
typeof this[key] === "object" ? JSON.stringify(this[key]) : this[key]
|
|
1134
|
-
);
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
render() {
|
|
1140
|
-
return import_lit3.html``;
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1144
|
-
LuzmoVizItem.styles = import_lit3.css`
|
|
1145
|
-
:host {
|
|
1146
|
-
display: block;
|
|
1147
|
-
width: 100%;
|
|
1148
|
-
height: 100%;
|
|
1149
|
-
}
|
|
1150
|
-
`;
|
|
1151
|
-
__decorateClass([
|
|
1152
|
-
(0, import_decorators3.property)()
|
|
1153
|
-
], LuzmoVizItem.prototype, "appServer", 2);
|
|
1154
|
-
__decorateClass([
|
|
1155
|
-
(0, import_decorators3.property)()
|
|
1156
|
-
], LuzmoVizItem.prototype, "apiHost", 2);
|
|
1157
|
-
__decorateClass([
|
|
1158
|
-
(0, import_decorators3.property)({ type: Array })
|
|
1159
|
-
], LuzmoVizItem.prototype, "slots", 2);
|
|
1160
|
-
__decorateClass([
|
|
1161
|
-
(0, import_decorators3.property)({ type: Object })
|
|
1162
|
-
], LuzmoVizItem.prototype, "options", 2);
|
|
1163
|
-
__decorateClass([
|
|
1164
|
-
(0, import_decorators3.property)()
|
|
1165
|
-
], LuzmoVizItem.prototype, "type", 2);
|
|
1166
|
-
__decorateClass([
|
|
1167
|
-
(0, import_decorators3.property)()
|
|
1168
|
-
], LuzmoVizItem.prototype, "authKey", 2);
|
|
1169
|
-
__decorateClass([
|
|
1170
|
-
(0, import_decorators3.property)()
|
|
1171
|
-
], LuzmoVizItem.prototype, "authToken", 2);
|
|
1172
|
-
LuzmoVizItem = __decorateClass([
|
|
1173
|
-
(0, import_decorators3.customElement)("luzmo-embed-viz-item")
|
|
1174
|
-
], LuzmoVizItem);
|
|
1175
1096
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1176
1097
|
0 && (module.exports = {
|
|
1177
|
-
LuzmoDashboard
|
|
1178
|
-
LuzmoVizItem
|
|
1098
|
+
LuzmoDashboard
|
|
1179
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
|
|
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,85 +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
|
-
}
|
|
1097
|
-
firstUpdated(_changedProperties) {
|
|
1098
|
-
super.firstUpdated(_changedProperties);
|
|
1099
|
-
console.log(this.appServer);
|
|
1100
|
-
SharedLib3.loadLibrary(this.appServer, "DashboardApp").then((lib) => {
|
|
1101
|
-
this.chartElement = document.createElement("chart-component");
|
|
1102
|
-
this.chartElement.setAttribute("embedding-mode", "chart-embedding");
|
|
1103
|
-
this.upadateVizItemProperties();
|
|
1104
|
-
this.renderRoot.append(this.chartElement);
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
upadateVizItemProperties() {
|
|
1108
|
-
if (this.chartElement) {
|
|
1109
|
-
this.chartElement.setAttribute("app-server", this.appServer);
|
|
1110
|
-
this.chartElement.setAttribute("api-host", this.apiHost);
|
|
1111
|
-
for (const key in SharedLib3.libraryTypeToWebComponentTypeMapping) {
|
|
1112
|
-
if (this[key]) {
|
|
1113
|
-
this.chartElement.setAttribute(
|
|
1114
|
-
SharedLib3.libraryTypeToWebComponentTypeMapping[key],
|
|
1115
|
-
typeof this[key] === "object" ? JSON.stringify(this[key]) : this[key]
|
|
1116
|
-
);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
render() {
|
|
1122
|
-
return html2``;
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1126
|
-
LuzmoVizItem.styles = css2`
|
|
1127
|
-
:host {
|
|
1128
|
-
display: block;
|
|
1129
|
-
width: 100%;
|
|
1130
|
-
height: 100%;
|
|
1131
|
-
}
|
|
1132
|
-
`;
|
|
1133
|
-
__decorateClass([
|
|
1134
|
-
property2()
|
|
1135
|
-
], LuzmoVizItem.prototype, "appServer", 2);
|
|
1136
|
-
__decorateClass([
|
|
1137
|
-
property2()
|
|
1138
|
-
], LuzmoVizItem.prototype, "apiHost", 2);
|
|
1139
|
-
__decorateClass([
|
|
1140
|
-
property2({ type: Array })
|
|
1141
|
-
], LuzmoVizItem.prototype, "slots", 2);
|
|
1142
|
-
__decorateClass([
|
|
1143
|
-
property2({ type: Object })
|
|
1144
|
-
], LuzmoVizItem.prototype, "options", 2);
|
|
1145
|
-
__decorateClass([
|
|
1146
|
-
property2()
|
|
1147
|
-
], LuzmoVizItem.prototype, "type", 2);
|
|
1148
|
-
__decorateClass([
|
|
1149
|
-
property2()
|
|
1150
|
-
], LuzmoVizItem.prototype, "authKey", 2);
|
|
1151
|
-
__decorateClass([
|
|
1152
|
-
property2()
|
|
1153
|
-
], LuzmoVizItem.prototype, "authToken", 2);
|
|
1154
|
-
LuzmoVizItem = __decorateClass([
|
|
1155
|
-
customElement2("luzmo-embed-viz-item")
|
|
1156
|
-
], LuzmoVizItem);
|
|
1157
1079
|
export {
|
|
1158
|
-
LuzmoDashboard2 as LuzmoDashboard
|
|
1159
|
-
LuzmoVizItem
|
|
1080
|
+
LuzmoDashboard2 as LuzmoDashboard
|
|
1160
1081
|
};
|