@luzmo/embed 5.0.14-beta.1 → 5.0.14-beta.3
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.cjs +9 -7
- package/index.js +9 -7
- package/index.libs.cjs +9 -7
- package/index.libs.js +9 -7
- package/lib/viz-item/viz-item.base.d.ts +1 -1
- package/luzmo-embed.libs.js +9 -9
- package/luzmo-embed.min.js +9 -9
- package/package.json +1 -1
- package/src/index.d.ts +0 -3
- package/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/src/lib/dashboard-component/dashboard-component.d.ts +0 -3
- package/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/luzmo-service.d.ts +0 -6
- package/src/lib/viz-item/viz-item-component.d.ts +0 -3
- package/src/lib/viz-item/viz-item.base.d.ts +0 -19
package/index.cjs
CHANGED
|
@@ -55,7 +55,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
55
55
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
56
56
|
|
|
57
57
|
// libs/embed-libs/embed/package.json
|
|
58
|
-
var version = "5.0.14-beta.
|
|
58
|
+
var version = "5.0.14-beta.3";
|
|
59
59
|
|
|
60
60
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
61
|
var LuzmoService = class {
|
|
@@ -1114,7 +1114,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1114
1114
|
},
|
|
1115
1115
|
theme: "default"
|
|
1116
1116
|
};
|
|
1117
|
-
this.
|
|
1117
|
+
this.version = version + "-wc-luzmo";
|
|
1118
1118
|
}
|
|
1119
1119
|
static {
|
|
1120
1120
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -1128,7 +1128,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
async firstUpdated(_changedProperties) {
|
|
1130
1130
|
super.firstUpdated(_changedProperties);
|
|
1131
|
-
console.log(this.appServer);
|
|
1132
1131
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1133
1132
|
this.chartElement = document.createElement("chart-component");
|
|
1134
1133
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
@@ -1152,9 +1151,12 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1152
1151
|
updated(changedProperties) {
|
|
1153
1152
|
if (this.chartElement) {
|
|
1154
1153
|
for (const [propertyName] of changedProperties.entries()) {
|
|
1155
|
-
const mappedAttributeName = SharedLib3.
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1154
|
+
const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
|
|
1155
|
+
const mappedValue = this[propertyName];
|
|
1156
|
+
if (mappedValue) {
|
|
1157
|
+
const attributeValue = typeof mappedValue === "object" ? JSON.stringify(mappedValue) : mappedValue?.toString() ?? mappedValue;
|
|
1158
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1159
|
+
}
|
|
1158
1160
|
}
|
|
1159
1161
|
}
|
|
1160
1162
|
}
|
|
@@ -1185,7 +1187,7 @@ __decorateClass([
|
|
|
1185
1187
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
1186
1188
|
__decorateClass([
|
|
1187
1189
|
(0, import_decorators3.property)()
|
|
1188
|
-
], LuzmoBaseVizItem.prototype, "
|
|
1190
|
+
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
1189
1191
|
|
|
1190
1192
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
1191
1193
|
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
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.14-beta.
|
|
40
|
+
var version = "5.0.14-beta.3";
|
|
41
41
|
|
|
42
42
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
43
43
|
var LuzmoService = class {
|
|
@@ -1096,7 +1096,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1096
1096
|
},
|
|
1097
1097
|
theme: "default"
|
|
1098
1098
|
};
|
|
1099
|
-
this.
|
|
1099
|
+
this.version = version + "-wc-luzmo";
|
|
1100
1100
|
}
|
|
1101
1101
|
static {
|
|
1102
1102
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -1110,7 +1110,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
async firstUpdated(_changedProperties) {
|
|
1112
1112
|
super.firstUpdated(_changedProperties);
|
|
1113
|
-
console.log(this.appServer);
|
|
1114
1113
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1115
1114
|
this.chartElement = document.createElement("chart-component");
|
|
1116
1115
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
@@ -1134,9 +1133,12 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1134
1133
|
updated(changedProperties) {
|
|
1135
1134
|
if (this.chartElement) {
|
|
1136
1135
|
for (const [propertyName] of changedProperties.entries()) {
|
|
1137
|
-
const mappedAttributeName = SharedLib3.
|
|
1138
|
-
const
|
|
1139
|
-
|
|
1136
|
+
const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
|
|
1137
|
+
const mappedValue = this[propertyName];
|
|
1138
|
+
if (mappedValue) {
|
|
1139
|
+
const attributeValue = typeof mappedValue === "object" ? JSON.stringify(mappedValue) : mappedValue?.toString() ?? mappedValue;
|
|
1140
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1141
|
+
}
|
|
1140
1142
|
}
|
|
1141
1143
|
}
|
|
1142
1144
|
}
|
|
@@ -1167,7 +1169,7 @@ __decorateClass([
|
|
|
1167
1169
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
1168
1170
|
__decorateClass([
|
|
1169
1171
|
property2()
|
|
1170
|
-
], LuzmoBaseVizItem.prototype, "
|
|
1172
|
+
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
1171
1173
|
|
|
1172
1174
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
1173
1175
|
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
package/index.libs.cjs
CHANGED
|
@@ -55,7 +55,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
55
55
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
56
56
|
|
|
57
57
|
// libs/embed-libs/embed/package.json
|
|
58
|
-
var version = "5.0.14-beta.
|
|
58
|
+
var version = "5.0.14-beta.3";
|
|
59
59
|
|
|
60
60
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
61
|
var LuzmoService = class {
|
|
@@ -1114,7 +1114,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1114
1114
|
},
|
|
1115
1115
|
theme: "default"
|
|
1116
1116
|
};
|
|
1117
|
-
this.
|
|
1117
|
+
this.version = version + "-wc-luzmo";
|
|
1118
1118
|
}
|
|
1119
1119
|
static {
|
|
1120
1120
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -1128,7 +1128,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
async firstUpdated(_changedProperties) {
|
|
1130
1130
|
super.firstUpdated(_changedProperties);
|
|
1131
|
-
console.log(this.appServer);
|
|
1132
1131
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1133
1132
|
this.chartElement = document.createElement("chart-component");
|
|
1134
1133
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
@@ -1152,9 +1151,12 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1152
1151
|
updated(changedProperties) {
|
|
1153
1152
|
if (this.chartElement) {
|
|
1154
1153
|
for (const [propertyName] of changedProperties.entries()) {
|
|
1155
|
-
const mappedAttributeName = SharedLib3.
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1154
|
+
const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
|
|
1155
|
+
const mappedValue = this[propertyName];
|
|
1156
|
+
if (mappedValue) {
|
|
1157
|
+
const attributeValue = typeof mappedValue === "object" ? JSON.stringify(mappedValue) : mappedValue?.toString() ?? mappedValue;
|
|
1158
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1159
|
+
}
|
|
1158
1160
|
}
|
|
1159
1161
|
}
|
|
1160
1162
|
}
|
|
@@ -1185,7 +1187,7 @@ __decorateClass([
|
|
|
1185
1187
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
1186
1188
|
__decorateClass([
|
|
1187
1189
|
(0, import_decorators3.property)()
|
|
1188
|
-
], LuzmoBaseVizItem.prototype, "
|
|
1190
|
+
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
1189
1191
|
|
|
1190
1192
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
1191
1193
|
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
package/index.libs.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "@luzmo/shared-embed";
|
|
36
36
|
|
|
37
37
|
// libs/embed-libs/embed/package.json
|
|
38
|
-
var version = "5.0.14-beta.
|
|
38
|
+
var version = "5.0.14-beta.3";
|
|
39
39
|
|
|
40
40
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
41
41
|
var LuzmoService = class {
|
|
@@ -1094,7 +1094,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1094
1094
|
},
|
|
1095
1095
|
theme: "default"
|
|
1096
1096
|
};
|
|
1097
|
-
this.
|
|
1097
|
+
this.version = version + "-wc-luzmo";
|
|
1098
1098
|
}
|
|
1099
1099
|
static {
|
|
1100
1100
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -1108,7 +1108,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
async firstUpdated(_changedProperties) {
|
|
1110
1110
|
super.firstUpdated(_changedProperties);
|
|
1111
|
-
console.log(this.appServer);
|
|
1112
1111
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1113
1112
|
this.chartElement = document.createElement("chart-component");
|
|
1114
1113
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
@@ -1132,9 +1131,12 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1132
1131
|
updated(changedProperties) {
|
|
1133
1132
|
if (this.chartElement) {
|
|
1134
1133
|
for (const [propertyName] of changedProperties.entries()) {
|
|
1135
|
-
const mappedAttributeName = SharedLib3.
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1134
|
+
const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
|
|
1135
|
+
const mappedValue = this[propertyName];
|
|
1136
|
+
if (mappedValue) {
|
|
1137
|
+
const attributeValue = typeof mappedValue === "object" ? JSON.stringify(mappedValue) : mappedValue?.toString() ?? mappedValue;
|
|
1138
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1139
|
+
}
|
|
1138
1140
|
}
|
|
1139
1141
|
}
|
|
1140
1142
|
}
|
|
@@ -1165,7 +1167,7 @@ __decorateClass([
|
|
|
1165
1167
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
1166
1168
|
__decorateClass([
|
|
1167
1169
|
property2()
|
|
1168
|
-
], LuzmoBaseVizItem.prototype, "
|
|
1170
|
+
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
1169
1171
|
|
|
1170
1172
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
1171
1173
|
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
package/luzmo-embed.libs.js
CHANGED
|
@@ -1492,13 +1492,11 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1492
1492
|
theme: "theme",
|
|
1493
1493
|
slots: "slots",
|
|
1494
1494
|
options: "options",
|
|
1495
|
-
itemId: "chart-id",
|
|
1496
1495
|
appServer: "app-server",
|
|
1497
1496
|
apiHost: "api-host",
|
|
1498
1497
|
authKey: "auth-key",
|
|
1499
1498
|
authToken: "auth-token"
|
|
1500
1499
|
};
|
|
1501
|
-
var libraryAcceptedParametersList = ["appServer", "apiHost", "options", "type", "authKey", "authToken", "slots"];
|
|
1502
1500
|
|
|
1503
1501
|
// libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
|
|
1504
1502
|
var luzmoEmbedContainerClass = "luzmo-embed-container";
|
|
@@ -1932,7 +1930,7 @@ var o5 = e6(class extends i4 {
|
|
|
1932
1930
|
});
|
|
1933
1931
|
|
|
1934
1932
|
// libs/embed-libs/embed/package.json
|
|
1935
|
-
var version = "5.0.14-beta.
|
|
1933
|
+
var version = "5.0.14-beta.3";
|
|
1936
1934
|
|
|
1937
1935
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1938
1936
|
var LuzmoService = class {
|
|
@@ -2983,7 +2981,7 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
2983
2981
|
},
|
|
2984
2982
|
theme: "default"
|
|
2985
2983
|
};
|
|
2986
|
-
this.
|
|
2984
|
+
this.version = version + "-wc-luzmo";
|
|
2987
2985
|
}
|
|
2988
2986
|
static {
|
|
2989
2987
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -2997,7 +2995,6 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
2997
2995
|
}
|
|
2998
2996
|
async firstUpdated(_changedProperties) {
|
|
2999
2997
|
super.firstUpdated(_changedProperties);
|
|
3000
|
-
console.log(this.appServer);
|
|
3001
2998
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
3002
2999
|
this.chartElement = document.createElement("chart-component");
|
|
3003
3000
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
@@ -3021,9 +3018,12 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
3021
3018
|
updated(changedProperties) {
|
|
3022
3019
|
if (this.chartElement) {
|
|
3023
3020
|
for (const [propertyName] of changedProperties.entries()) {
|
|
3024
|
-
const mappedAttributeName =
|
|
3025
|
-
const
|
|
3026
|
-
|
|
3021
|
+
const mappedAttributeName = libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
|
|
3022
|
+
const mappedValue = this[propertyName];
|
|
3023
|
+
if (mappedValue) {
|
|
3024
|
+
const attributeValue = typeof mappedValue === "object" ? JSON.stringify(mappedValue) : mappedValue?.toString() ?? mappedValue;
|
|
3025
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
3026
|
+
}
|
|
3027
3027
|
}
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
@@ -3054,7 +3054,7 @@ __decorateClass([
|
|
|
3054
3054
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
3055
3055
|
__decorateClass([
|
|
3056
3056
|
n3()
|
|
3057
|
-
], LuzmoBaseVizItem.prototype, "
|
|
3057
|
+
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
3058
3058
|
|
|
3059
3059
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
3060
3060
|
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
package/luzmo-embed.min.js
CHANGED
|
@@ -1492,13 +1492,11 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1492
1492
|
theme: "theme",
|
|
1493
1493
|
slots: "slots",
|
|
1494
1494
|
options: "options",
|
|
1495
|
-
itemId: "chart-id",
|
|
1496
1495
|
appServer: "app-server",
|
|
1497
1496
|
apiHost: "api-host",
|
|
1498
1497
|
authKey: "auth-key",
|
|
1499
1498
|
authToken: "auth-token"
|
|
1500
1499
|
};
|
|
1501
|
-
var libraryAcceptedParametersList = ["appServer", "apiHost", "options", "type", "authKey", "authToken", "slots"];
|
|
1502
1500
|
|
|
1503
1501
|
// libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
|
|
1504
1502
|
var luzmoEmbedContainerClass = "luzmo-embed-container";
|
|
@@ -1932,7 +1930,7 @@ var o5 = e6(class extends i4 {
|
|
|
1932
1930
|
});
|
|
1933
1931
|
|
|
1934
1932
|
// libs/embed-libs/embed/package.json
|
|
1935
|
-
var version = "5.0.14-beta.
|
|
1933
|
+
var version = "5.0.14-beta.3";
|
|
1936
1934
|
|
|
1937
1935
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1938
1936
|
var LuzmoService = class {
|
|
@@ -2983,7 +2981,7 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
2983
2981
|
},
|
|
2984
2982
|
theme: "default"
|
|
2985
2983
|
};
|
|
2986
|
-
this.
|
|
2984
|
+
this.version = version + "-wc-luzmo";
|
|
2987
2985
|
}
|
|
2988
2986
|
static {
|
|
2989
2987
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -2997,7 +2995,6 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
2997
2995
|
}
|
|
2998
2996
|
async firstUpdated(_changedProperties) {
|
|
2999
2997
|
super.firstUpdated(_changedProperties);
|
|
3000
|
-
console.log(this.appServer);
|
|
3001
2998
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
3002
2999
|
this.chartElement = document.createElement("chart-component");
|
|
3003
3000
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
@@ -3021,9 +3018,12 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
3021
3018
|
updated(changedProperties) {
|
|
3022
3019
|
if (this.chartElement) {
|
|
3023
3020
|
for (const [propertyName] of changedProperties.entries()) {
|
|
3024
|
-
const mappedAttributeName =
|
|
3025
|
-
const
|
|
3026
|
-
|
|
3021
|
+
const mappedAttributeName = libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
|
|
3022
|
+
const mappedValue = this[propertyName];
|
|
3023
|
+
if (mappedValue) {
|
|
3024
|
+
const attributeValue = typeof mappedValue === "object" ? JSON.stringify(mappedValue) : mappedValue?.toString() ?? mappedValue;
|
|
3025
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
3026
|
+
}
|
|
3027
3027
|
}
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
@@ -3054,7 +3054,7 @@ __decorateClass([
|
|
|
3054
3054
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
3055
3055
|
__decorateClass([
|
|
3056
3056
|
n3()
|
|
3057
|
-
], LuzmoBaseVizItem.prototype, "
|
|
3057
|
+
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
3058
3058
|
|
|
3059
3059
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
3060
3060
|
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
package/package.json
CHANGED
package/src/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, Filter, FilterExpression, FilterOrigin, FilterInput, FilterGroup, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode } from '@luzmo/shared-embed';
|
|
2
|
-
export * from './lib/dashboard-component/dashboard-component';
|
|
3
|
-
export * from './lib/viz-item/viz-item-component';
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
2
|
-
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
import { CombinedFilterInput } from '@luzmo/shared-embed';
|
|
4
|
-
/**
|
|
5
|
-
* Luzmo Dashboard
|
|
6
|
-
* Base component isn't registered in customEvents registry so that it can be reused.
|
|
7
|
-
*/
|
|
8
|
-
export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
|
|
9
|
-
container: HTMLElement;
|
|
10
|
-
luzmoEmbedContainer: HTMLElement;
|
|
11
|
-
iframe: HTMLIFrameElement;
|
|
12
|
-
dashboardId?: SharedLib.DashboardInputs['dashboardId'];
|
|
13
|
-
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
14
|
-
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
15
|
-
language: SharedLib.DashboardInputs['language'];
|
|
16
|
-
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
17
|
-
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
18
|
-
switchScreenModeOnResize: boolean;
|
|
19
|
-
editMode: SharedLib.DashboardInputs['editMode'];
|
|
20
|
-
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
21
|
-
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
22
|
-
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
23
|
-
authKey?: SharedLib.DashboardInputs['authKey'];
|
|
24
|
-
loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
|
|
25
|
-
loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
|
|
26
|
-
loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
|
|
27
|
-
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
28
|
-
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
29
|
-
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
30
|
-
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
31
|
-
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
32
|
-
experimental: boolean;
|
|
33
|
-
_containerId: string;
|
|
34
|
-
_iframeId: string;
|
|
35
|
-
params: SharedLib.DashboardContentParams;
|
|
36
|
-
_iframeUrl?: string;
|
|
37
|
-
iframeLoaded: boolean;
|
|
38
|
-
promises: SharedLib.DashboardPromises;
|
|
39
|
-
iframeStyle: SharedLib.IframeStyles;
|
|
40
|
-
_containerStyle: SharedLib.ContainerStyles;
|
|
41
|
-
_loaderStyle: SharedLib.LoaderStyles;
|
|
42
|
-
_lcStyle: SharedLib.LcStyles;
|
|
43
|
-
_loadingCircleStyle: SharedLib.PlStyles;
|
|
44
|
-
_containerLoaderStyle: SharedLib.ContainerLoaderStyles;
|
|
45
|
-
_loaderMsg: string;
|
|
46
|
-
containerWidth?: number;
|
|
47
|
-
dimensions?: SharedLib.DashboardDimensions;
|
|
48
|
-
currentScreenMode?: SharedLib.ScreenMode;
|
|
49
|
-
_itemEmbedding: boolean;
|
|
50
|
-
browserError: boolean;
|
|
51
|
-
browserErrorMsg: string;
|
|
52
|
-
dashboardError: boolean;
|
|
53
|
-
browserNotSupported: any[];
|
|
54
|
-
VERSION: string;
|
|
55
|
-
protected isLibraryLoaded: boolean;
|
|
56
|
-
protected dashboardReference: SharedLib.LuzmoElement;
|
|
57
|
-
currentAuthKey: string;
|
|
58
|
-
currentAuthToken: string;
|
|
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(inputParameters?: Record<keyof LuzmoDashboard, any>);
|
|
69
|
-
private loadLibrary;
|
|
70
|
-
private setInputParameters;
|
|
71
|
-
connectedCallback(): void;
|
|
72
|
-
disconnectedCallback(): void;
|
|
73
|
-
firstUpdated(): void;
|
|
74
|
-
initComponent(): void;
|
|
75
|
-
setAllAttributes(): void;
|
|
76
|
-
updated(changedProperties: PropertyValues): void;
|
|
77
|
-
_setOptions(): SharedLib.DashboardContentParams;
|
|
78
|
-
_updateIframeUrl(): void;
|
|
79
|
-
_setupLoader(): void;
|
|
80
|
-
_displayError(): void;
|
|
81
|
-
_calculateDimAfterDashboardLoaded(): void;
|
|
82
|
-
_loaderStyles(): void;
|
|
83
|
-
static get styles(): import("lit").CSSResult[];
|
|
84
|
-
render(): TemplateResult;
|
|
85
|
-
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
86
|
-
getData(itemId: string): Promise<SharedLib.ItemData>;
|
|
87
|
-
getFilters(): Promise<SharedLib.FilterGroup[]>;
|
|
88
|
-
setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
|
|
89
|
-
setAuthorization(key: string, token: string): Promise<void>;
|
|
90
|
-
refreshData(itemId?: string): Promise<void>;
|
|
91
|
-
reloadDashboard(): Promise<void>;
|
|
92
|
-
exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
|
|
93
|
-
getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
|
|
94
|
-
addFilters(itemId: string, filters: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
|
|
95
|
-
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
96
|
-
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
97
|
-
getIsViewMode(): boolean;
|
|
98
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const dashboardStyles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const _setEventHandler: () => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoBaseVizItem extends LitElement {
|
|
4
|
-
appServer: string;
|
|
5
|
-
apiHost: string;
|
|
6
|
-
slots: SharedLib.Slots;
|
|
7
|
-
options: SharedLib.VizItemOptions;
|
|
8
|
-
type?: SharedLib.ItemType;
|
|
9
|
-
authKey?: string;
|
|
10
|
-
authToken?: string;
|
|
11
|
-
VERSION?: string;
|
|
12
|
-
chartElement: HTMLElement;
|
|
13
|
-
static styles: import("lit").CSSResult;
|
|
14
|
-
constructor();
|
|
15
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
16
|
-
private updateVizItemProperties;
|
|
17
|
-
updated(changedProperties: PropertyValues): void;
|
|
18
|
-
protected render(): unknown;
|
|
19
|
-
}
|