@luzmo/embed 5.0.9 → 5.0.10
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/README.md +8 -8
- package/index.cjs +21 -5
- package/index.js +19 -4
- package/lib/dashboard-component/dashboard-component.d.ts +2 -0
- package/luzmo-embed.min.js +19 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -62,13 +62,13 @@ OR
|
|
|
62
62
|
Below a list of available properties on the dashboard web component
|
|
63
63
|
|
|
64
64
|
| Property | Type | Description |
|
|
65
|
-
|
|
66
|
-
| `dashboardId` | string | The id of the Luzmo dashboard you wish to embed
|
|
67
|
-
| `dashboardSlug` | string | The slug of the Luzmo dashboard you wish to embed (if a dashboardId is supplied that one will be used)
|
|
68
|
-
| `itemId` | string | The id of the Luzmo item you wish to embed
|
|
65
|
+
|----------------------------|--------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
66
|
+
| `dashboardId` | string | The id of the Luzmo dashboard you wish to embed |
|
|
67
|
+
| `dashboardSlug` | string | The slug of the Luzmo dashboard you wish to embed (if a dashboardId is supplied that one will be used) |
|
|
68
|
+
| `itemId` | string | The id of the Luzmo item you wish to embed. The `dashboardId` should be provided as well if you what to embed just a Luzmo item. |
|
|
69
69
|
| `itemDimensions` | { width: number/string; height: number/string; } | width and height of item only applies when itemId is provided. Accepts a JSON string. |
|
|
70
|
-
| `authKey` | string | Authorization key generated via Luzmo API
|
|
71
|
-
| `authToken` | string | Authorization token generated via Luzmo API
|
|
70
|
+
| `authKey` | string | Authorization key generated via Luzmo API |
|
|
71
|
+
| `authToken` | string | Authorization token generated via Luzmo API |
|
|
72
72
|
| `language` | string | The language of the dashboard: eg. 'en' (Default: 'auto') |
|
|
73
73
|
| `screenMode` | string | The screen mode of your dashboard: 'mobile', 'tablet', 'desktop', 'largeScreen', 'fixed' or 'auto' (Default: 'auto') |
|
|
74
74
|
| `switchScreenModeOnResize` | boolean | true: the embedded dashboard can switch screenModes on resize of the container , false: Dashboard will keep the same screenMode (Default: true) |
|
|
@@ -76,9 +76,9 @@ Below a list of available properties on the dashboard web component
|
|
|
76
76
|
| `loaderFontColor` | string | Font color of the text of the loaders (Default: '#5a5a5a') |
|
|
77
77
|
| `loaderSpinnerColor` | string | Spinner color of the loader (Default: 'rgba(255, 165, 0, 0.7)') |
|
|
78
78
|
| `loaderSpinnerBackground` | string | Background color of the spinner (Default: 'rgba(169, 169, 169, 0.14)') |
|
|
79
|
-
| `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/')
|
|
79
|
+
| `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
|
|
80
80
|
| `timezoneId` | string | The timezone you you wish to use in your dashboard. This timezone id needs to be a valid id that is available in the [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List), for example: Europe/Brussels or America/New_York. |
|
|
81
|
-
| `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/')
|
|
81
|
+
| `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
|
|
82
82
|
| `editMode` | string | Specifies if the embedded dashboard should be editable or not. Accepted values: "view" , "editLimited" , "editFull" . Use "view" if you don't want the embedded dashboard to be editable. (Default: "view" ) |
|
|
83
83
|
| `mainColor` | string | Optional override of the main color used in the whitelabeling of the embedded dashboard editor. If not provided, the main color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
|
|
84
84
|
| `accentColor` | string | Optional override of the accent color used in the whitelabeling of the embedded dashboard editor. If not provided, the accent color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
|
package/index.cjs
CHANGED
|
@@ -39,7 +39,8 @@ 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: () => LuzmoDashboard
|
|
42
|
+
LuzmoDashboard: () => LuzmoDashboard,
|
|
43
|
+
LuzmoDashboardWebComponent: () => LuzmoDashboardWebComponent
|
|
43
44
|
});
|
|
44
45
|
module.exports = __toCommonJS(src_exports);
|
|
45
46
|
|
|
@@ -51,7 +52,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
51
52
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
52
53
|
|
|
53
54
|
// libs/embed-libs/embed/package.json
|
|
54
|
-
var version = "5.0.
|
|
55
|
+
var version = "5.0.10";
|
|
55
56
|
|
|
56
57
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
57
58
|
var LuzmoService = class {
|
|
@@ -220,6 +221,10 @@ var _setEventHandler = () => {
|
|
|
220
221
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.ts
|
|
221
222
|
var import_lit = require("lit");
|
|
222
223
|
var dashboardStyles = import_lit.css`
|
|
224
|
+
:host {
|
|
225
|
+
display: block;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
@-webkit-keyframes spin {
|
|
224
229
|
0% {
|
|
225
230
|
-webkit-transform: rotate(0deg);
|
|
@@ -991,7 +996,12 @@ __decorateClass([
|
|
|
991
996
|
(0, import_decorators.property)({ type: Object })
|
|
992
997
|
], LuzmoDashboard.prototype, "itemDimensions", 2);
|
|
993
998
|
__decorateClass([
|
|
994
|
-
(0, import_decorators.property)(
|
|
999
|
+
(0, import_decorators.property)({
|
|
1000
|
+
converter: {
|
|
1001
|
+
fromAttribute: (value) => value === "true",
|
|
1002
|
+
toAttribute: String
|
|
1003
|
+
}
|
|
1004
|
+
})
|
|
995
1005
|
], LuzmoDashboard.prototype, "experimental", 2);
|
|
996
1006
|
__decorateClass([
|
|
997
1007
|
(0, import_decorators.property)({ attribute: false })
|
|
@@ -1057,7 +1067,7 @@ __decorateClass([
|
|
|
1057
1067
|
(0, import_decorators.property)({ attribute: false })
|
|
1058
1068
|
], LuzmoDashboard.prototype, "browserNotSupported", 2);
|
|
1059
1069
|
__decorateClass([
|
|
1060
|
-
(0, import_decorators.property)(
|
|
1070
|
+
(0, import_decorators.property)()
|
|
1061
1071
|
], LuzmoDashboard.prototype, "VERSION", 2);
|
|
1062
1072
|
__decorateClass([
|
|
1063
1073
|
(0, import_decorators.state)()
|
|
@@ -1068,7 +1078,13 @@ __decorateClass([
|
|
|
1068
1078
|
LuzmoDashboard = __decorateClass([
|
|
1069
1079
|
(0, import_decorators.customElement)("luzmo-dashboard")
|
|
1070
1080
|
], LuzmoDashboard);
|
|
1081
|
+
var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
|
|
1082
|
+
};
|
|
1083
|
+
LuzmoDashboardWebComponent = __decorateClass([
|
|
1084
|
+
(0, import_decorators.customElement)("luzmo-dashboard-web-component")
|
|
1085
|
+
], LuzmoDashboardWebComponent);
|
|
1071
1086
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1072
1087
|
0 && (module.exports = {
|
|
1073
|
-
LuzmoDashboard
|
|
1088
|
+
LuzmoDashboard,
|
|
1089
|
+
LuzmoDashboardWebComponent
|
|
1074
1090
|
});
|
package/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "@luzmo/shared-embed";
|
|
34
34
|
|
|
35
35
|
// libs/embed-libs/embed/package.json
|
|
36
|
-
var version = "5.0.
|
|
36
|
+
var version = "5.0.10";
|
|
37
37
|
|
|
38
38
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
39
39
|
var LuzmoService = class {
|
|
@@ -202,6 +202,10 @@ var _setEventHandler = () => {
|
|
|
202
202
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.ts
|
|
203
203
|
import { css } from "lit";
|
|
204
204
|
var dashboardStyles = css`
|
|
205
|
+
:host {
|
|
206
|
+
display: block;
|
|
207
|
+
}
|
|
208
|
+
|
|
205
209
|
@-webkit-keyframes spin {
|
|
206
210
|
0% {
|
|
207
211
|
-webkit-transform: rotate(0deg);
|
|
@@ -973,7 +977,12 @@ __decorateClass([
|
|
|
973
977
|
property({ type: Object })
|
|
974
978
|
], LuzmoDashboard.prototype, "itemDimensions", 2);
|
|
975
979
|
__decorateClass([
|
|
976
|
-
property(
|
|
980
|
+
property({
|
|
981
|
+
converter: {
|
|
982
|
+
fromAttribute: (value) => value === "true",
|
|
983
|
+
toAttribute: String
|
|
984
|
+
}
|
|
985
|
+
})
|
|
977
986
|
], LuzmoDashboard.prototype, "experimental", 2);
|
|
978
987
|
__decorateClass([
|
|
979
988
|
property({ attribute: false })
|
|
@@ -1039,7 +1048,7 @@ __decorateClass([
|
|
|
1039
1048
|
property({ attribute: false })
|
|
1040
1049
|
], LuzmoDashboard.prototype, "browserNotSupported", 2);
|
|
1041
1050
|
__decorateClass([
|
|
1042
|
-
property(
|
|
1051
|
+
property()
|
|
1043
1052
|
], LuzmoDashboard.prototype, "VERSION", 2);
|
|
1044
1053
|
__decorateClass([
|
|
1045
1054
|
state()
|
|
@@ -1050,6 +1059,12 @@ __decorateClass([
|
|
|
1050
1059
|
LuzmoDashboard = __decorateClass([
|
|
1051
1060
|
customElement("luzmo-dashboard")
|
|
1052
1061
|
], LuzmoDashboard);
|
|
1062
|
+
var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
|
|
1063
|
+
};
|
|
1064
|
+
LuzmoDashboardWebComponent = __decorateClass([
|
|
1065
|
+
customElement("luzmo-dashboard-web-component")
|
|
1066
|
+
], LuzmoDashboardWebComponent);
|
|
1053
1067
|
export {
|
|
1054
|
-
LuzmoDashboard
|
|
1068
|
+
LuzmoDashboard,
|
|
1069
|
+
LuzmoDashboardWebComponent
|
|
1055
1070
|
};
|
package/luzmo-embed.min.js
CHANGED
|
@@ -42,7 +42,8 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
42
42
|
// libs/embed-libs/embed/src/index.ts
|
|
43
43
|
var src_exports2 = {};
|
|
44
44
|
__export(src_exports2, {
|
|
45
|
-
LuzmoDashboard: () => LuzmoDashboard
|
|
45
|
+
LuzmoDashboard: () => LuzmoDashboard,
|
|
46
|
+
LuzmoDashboardWebComponent: () => LuzmoDashboardWebComponent
|
|
46
47
|
});
|
|
47
48
|
module.exports = __toCommonJS(src_exports2);
|
|
48
49
|
|
|
@@ -1922,7 +1923,7 @@ var o5 = e6(class extends i4 {
|
|
|
1922
1923
|
});
|
|
1923
1924
|
|
|
1924
1925
|
// libs/embed-libs/embed/package.json
|
|
1925
|
-
var version = "5.0.
|
|
1926
|
+
var version = "5.0.10";
|
|
1926
1927
|
|
|
1927
1928
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1928
1929
|
var LuzmoService = class {
|
|
@@ -2089,6 +2090,10 @@ var _setEventHandler = () => {
|
|
|
2089
2090
|
|
|
2090
2091
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.ts
|
|
2091
2092
|
var dashboardStyles = i`
|
|
2093
|
+
:host {
|
|
2094
|
+
display: block;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2092
2097
|
@-webkit-keyframes spin {
|
|
2093
2098
|
0% {
|
|
2094
2099
|
-webkit-transform: rotate(0deg);
|
|
@@ -2860,7 +2865,12 @@ __decorateClass([
|
|
|
2860
2865
|
n4({ type: Object })
|
|
2861
2866
|
], LuzmoDashboard.prototype, "itemDimensions", 2);
|
|
2862
2867
|
__decorateClass([
|
|
2863
|
-
n4(
|
|
2868
|
+
n4({
|
|
2869
|
+
converter: {
|
|
2870
|
+
fromAttribute: (value) => value === "true",
|
|
2871
|
+
toAttribute: String
|
|
2872
|
+
}
|
|
2873
|
+
})
|
|
2864
2874
|
], LuzmoDashboard.prototype, "experimental", 2);
|
|
2865
2875
|
__decorateClass([
|
|
2866
2876
|
n4({ attribute: false })
|
|
@@ -2926,7 +2936,7 @@ __decorateClass([
|
|
|
2926
2936
|
n4({ attribute: false })
|
|
2927
2937
|
], LuzmoDashboard.prototype, "browserNotSupported", 2);
|
|
2928
2938
|
__decorateClass([
|
|
2929
|
-
n4(
|
|
2939
|
+
n4()
|
|
2930
2940
|
], LuzmoDashboard.prototype, "VERSION", 2);
|
|
2931
2941
|
__decorateClass([
|
|
2932
2942
|
r6()
|
|
@@ -2937,6 +2947,11 @@ __decorateClass([
|
|
|
2937
2947
|
LuzmoDashboard = __decorateClass([
|
|
2938
2948
|
t3("luzmo-dashboard")
|
|
2939
2949
|
], LuzmoDashboard);
|
|
2950
|
+
var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
|
|
2951
|
+
};
|
|
2952
|
+
LuzmoDashboardWebComponent = __decorateClass([
|
|
2953
|
+
t3("luzmo-dashboard-web-component")
|
|
2954
|
+
], LuzmoDashboardWebComponent);
|
|
2940
2955
|
/*! Bundled license information:
|
|
2941
2956
|
|
|
2942
2957
|
@lit/reactive-element/css-tag.js:
|