@luzmo/embed 6.3.7 → 6.3.8
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 +21 -20
- package/index.cjs +10 -1
- package/index.js +10 -1
- package/luzmo-embed.min.js +17 -3
- package/package.json +2 -2
- package/src/lib/dashboard-component/dashboard-base.d.ts +1 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -169,26 +169,27 @@ OR
|
|
|
169
169
|
|
|
170
170
|
Below a list of available properties on the dashboard web component
|
|
171
171
|
|
|
172
|
-
| Property | Type | Description
|
|
173
|
-
|
|
174
|
-
| `dashboardId` | string | The id of the Luzmo dashboard you wish to embed
|
|
175
|
-
| `dashboardSlug` | string | The slug of the Luzmo dashboard you wish to embed (if a dashboardId is supplied that one will be used)
|
|
176
|
-
| `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.
|
|
177
|
-
| `itemDimensions` | { width: number/string; height: number/string; } | width and height of item only applies when itemId is provided. Accepts a JSON string.
|
|
178
|
-
| `authKey` | string | Authorization key generated via Luzmo API
|
|
179
|
-
| `authToken` | string | Authorization token generated via Luzmo API
|
|
180
|
-
| `language` | string | The language of the dashboard: eg. 'en' (Default: 'auto')
|
|
181
|
-
| `
|
|
182
|
-
| `
|
|
183
|
-
| `
|
|
184
|
-
| `
|
|
185
|
-
| `
|
|
186
|
-
| `
|
|
187
|
-
| `
|
|
188
|
-
| `
|
|
189
|
-
| `
|
|
190
|
-
| `
|
|
191
|
-
| `
|
|
172
|
+
| Property | Type | Description |
|
|
173
|
+
|----------------------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
174
|
+
| `dashboardId` | string | The id of the Luzmo dashboard you wish to embed |
|
|
175
|
+
| `dashboardSlug` | string | The slug of the Luzmo dashboard you wish to embed (if a dashboardId is supplied that one will be used) |
|
|
176
|
+
| `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. |
|
|
177
|
+
| `itemDimensions` | { width: number/string; height: number/string; } | width and height of item only applies when itemId is provided. Accepts a JSON string. |
|
|
178
|
+
| `authKey` | string | Authorization key generated via Luzmo API |
|
|
179
|
+
| `authToken` | string | Authorization token generated via Luzmo API |
|
|
180
|
+
| `language` | string | The language of the dashboard: eg. 'en' (Default: 'auto') |
|
|
181
|
+
| `editorLanguage` | string | The language of the dashboard editor: eg. 'en' (Default: 'auto') |
|
|
182
|
+
| `screenMode` | string | The screen mode of your dashboard: 'mobile', 'tablet', 'desktop', 'largeScreen', 'fixed' or 'auto' (Default: 'auto') |
|
|
183
|
+
| `switchScreenModeOnResize` | boolean | true: the embedded dashboard can switch screenModes on resize of the container , false: Dashboard will keep the same screenMode (Default: true) |
|
|
184
|
+
| `loaderBackground` | string | Background color of the loader element (Default: '#f9f9f9') |
|
|
185
|
+
| `loaderFontColor` | string | Font color of the text of the loaders (Default: '#5a5a5a') |
|
|
186
|
+
| `loaderSpinnerColor` | string | Spinner color of the loader (Default: 'rgba(255, 165, 0, 0.7)') |
|
|
187
|
+
| `loaderSpinnerBackground` | string | Background color of the spinner (Default: 'rgba(169, 169, 169, 0.14)') |
|
|
188
|
+
| `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
|
|
189
|
+
| `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. |
|
|
190
|
+
| `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
|
|
191
|
+
| `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" ) |
|
|
192
|
+
| `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)"). |
|
|
192
193
|
| `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)"). |
|
|
193
194
|
|
|
194
195
|
<br/>
|
package/index.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
63
63
|
var import_style_map = require("lit/directives/style-map.js");
|
|
64
64
|
|
|
65
65
|
// libs/embed-libs/embed/package.json
|
|
66
|
-
var version = "6.3.
|
|
66
|
+
var version = "6.3.8";
|
|
67
67
|
|
|
68
68
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
69
69
|
var SharedLib = __toESM(require("@luzmo/shared-embed"), 1);
|
|
@@ -369,6 +369,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
369
369
|
constructor() {
|
|
370
370
|
super();
|
|
371
371
|
this.language = "auto";
|
|
372
|
+
this.editorLanguage = "auto";
|
|
372
373
|
this.screenMode = "auto";
|
|
373
374
|
this.switchScreenModeOnResize = true;
|
|
374
375
|
this.editMode = "view";
|
|
@@ -395,6 +396,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
395
396
|
dashboardSlug: "dashboard-slug",
|
|
396
397
|
itemId: "item-id",
|
|
397
398
|
language: "language",
|
|
399
|
+
editorLanguage: "editorLanguage",
|
|
398
400
|
qeVersion: "qe-version",
|
|
399
401
|
screenMode: "screen-mode",
|
|
400
402
|
switchScreenModeOnResize: "switch-screen-mode-on-resize",
|
|
@@ -537,6 +539,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
537
539
|
"dashboardSlug",
|
|
538
540
|
"itemId",
|
|
539
541
|
"language",
|
|
542
|
+
"editorLanguage",
|
|
540
543
|
"qeVersion",
|
|
541
544
|
"theme",
|
|
542
545
|
"editMode",
|
|
@@ -621,6 +624,9 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
621
624
|
if (this.language) {
|
|
622
625
|
defaultParameters.language = this.language;
|
|
623
626
|
}
|
|
627
|
+
if (this.editorLanguage) {
|
|
628
|
+
defaultParameters.editorLanguage = this.editorLanguage;
|
|
629
|
+
}
|
|
624
630
|
if (this.qeVersion) {
|
|
625
631
|
defaultParameters.qeVersion = this.qeVersion;
|
|
626
632
|
}
|
|
@@ -940,6 +946,9 @@ __decorateClass([
|
|
|
940
946
|
__decorateClass([
|
|
941
947
|
(0, import_decorators.property)()
|
|
942
948
|
], LuzmoDashboard.prototype, "language", 2);
|
|
949
|
+
__decorateClass([
|
|
950
|
+
(0, import_decorators.property)()
|
|
951
|
+
], LuzmoDashboard.prototype, "editorLanguage", 2);
|
|
943
952
|
__decorateClass([
|
|
944
953
|
(0, import_decorators.property)()
|
|
945
954
|
], LuzmoDashboard.prototype, "qeVersion", 2);
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
24
24
|
import { styleMap } from "lit/directives/style-map.js";
|
|
25
25
|
|
|
26
26
|
// libs/embed-libs/embed/package.json
|
|
27
|
-
var version = "6.3.
|
|
27
|
+
var version = "6.3.8";
|
|
28
28
|
|
|
29
29
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
30
30
|
import * as SharedLib from "@luzmo/shared-embed";
|
|
@@ -330,6 +330,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
330
330
|
constructor() {
|
|
331
331
|
super();
|
|
332
332
|
this.language = "auto";
|
|
333
|
+
this.editorLanguage = "auto";
|
|
333
334
|
this.screenMode = "auto";
|
|
334
335
|
this.switchScreenModeOnResize = true;
|
|
335
336
|
this.editMode = "view";
|
|
@@ -356,6 +357,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
356
357
|
dashboardSlug: "dashboard-slug",
|
|
357
358
|
itemId: "item-id",
|
|
358
359
|
language: "language",
|
|
360
|
+
editorLanguage: "editorLanguage",
|
|
359
361
|
qeVersion: "qe-version",
|
|
360
362
|
screenMode: "screen-mode",
|
|
361
363
|
switchScreenModeOnResize: "switch-screen-mode-on-resize",
|
|
@@ -498,6 +500,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
498
500
|
"dashboardSlug",
|
|
499
501
|
"itemId",
|
|
500
502
|
"language",
|
|
503
|
+
"editorLanguage",
|
|
501
504
|
"qeVersion",
|
|
502
505
|
"theme",
|
|
503
506
|
"editMode",
|
|
@@ -582,6 +585,9 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
582
585
|
if (this.language) {
|
|
583
586
|
defaultParameters.language = this.language;
|
|
584
587
|
}
|
|
588
|
+
if (this.editorLanguage) {
|
|
589
|
+
defaultParameters.editorLanguage = this.editorLanguage;
|
|
590
|
+
}
|
|
585
591
|
if (this.qeVersion) {
|
|
586
592
|
defaultParameters.qeVersion = this.qeVersion;
|
|
587
593
|
}
|
|
@@ -901,6 +907,9 @@ __decorateClass([
|
|
|
901
907
|
__decorateClass([
|
|
902
908
|
property()
|
|
903
909
|
], LuzmoDashboard.prototype, "language", 2);
|
|
910
|
+
__decorateClass([
|
|
911
|
+
property()
|
|
912
|
+
], LuzmoDashboard.prototype, "editorLanguage", 2);
|
|
904
913
|
__decorateClass([
|
|
905
914
|
property()
|
|
906
915
|
], LuzmoDashboard.prototype, "qeVersion", 2);
|
package/luzmo-embed.min.js
CHANGED
|
@@ -106,6 +106,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
106
106
|
key: null,
|
|
107
107
|
token: null,
|
|
108
108
|
language: "auto",
|
|
109
|
+
editorLanguage: "auto",
|
|
109
110
|
qeVersion: null,
|
|
110
111
|
editMode: null,
|
|
111
112
|
screenMode: null,
|
|
@@ -337,6 +338,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
337
338
|
const {
|
|
338
339
|
appServer,
|
|
339
340
|
language,
|
|
341
|
+
editorLanguage,
|
|
340
342
|
qeVersion,
|
|
341
343
|
loaderBackground,
|
|
342
344
|
loaderSpinnerColor,
|
|
@@ -357,7 +359,10 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
357
359
|
editMode
|
|
358
360
|
} = dashboardContent.params;
|
|
359
361
|
if (language && language !== "auto") {
|
|
360
|
-
searchString.push(
|
|
362
|
+
searchString.push(`language=${language}`);
|
|
363
|
+
}
|
|
364
|
+
if (editorLanguage && editorLanguage !== "auto") {
|
|
365
|
+
searchString.push(`editorLanguage=${editorLanguage}`);
|
|
361
366
|
}
|
|
362
367
|
if (qeVersion) {
|
|
363
368
|
searchString.push(`qe_version=${qeVersion}`);
|
|
@@ -384,7 +389,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
384
389
|
searchString.push(`accentColor=${accentColor}`);
|
|
385
390
|
}
|
|
386
391
|
if (screenMode && screenMode !== "auto") {
|
|
387
|
-
searchString.push(
|
|
392
|
+
searchString.push(`screenMode=&{screenMode}`);
|
|
388
393
|
}
|
|
389
394
|
if (timezoneId) {
|
|
390
395
|
searchString.push("timezoneId=" + timezoneId);
|
|
@@ -2026,7 +2031,7 @@ var se = e5(class extends i3 {
|
|
|
2026
2031
|
});
|
|
2027
2032
|
|
|
2028
2033
|
// libs/embed-libs/embed/package.json
|
|
2029
|
-
var version = "6.3.
|
|
2034
|
+
var version = "6.3.8";
|
|
2030
2035
|
|
|
2031
2036
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
2032
2037
|
var LuzmoService = class {
|
|
@@ -2328,6 +2333,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2328
2333
|
constructor() {
|
|
2329
2334
|
super();
|
|
2330
2335
|
this.language = "auto";
|
|
2336
|
+
this.editorLanguage = "auto";
|
|
2331
2337
|
this.screenMode = "auto";
|
|
2332
2338
|
this.switchScreenModeOnResize = true;
|
|
2333
2339
|
this.editMode = "view";
|
|
@@ -2354,6 +2360,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2354
2360
|
dashboardSlug: "dashboard-slug",
|
|
2355
2361
|
itemId: "item-id",
|
|
2356
2362
|
language: "language",
|
|
2363
|
+
editorLanguage: "editorLanguage",
|
|
2357
2364
|
qeVersion: "qe-version",
|
|
2358
2365
|
screenMode: "screen-mode",
|
|
2359
2366
|
switchScreenModeOnResize: "switch-screen-mode-on-resize",
|
|
@@ -2496,6 +2503,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2496
2503
|
"dashboardSlug",
|
|
2497
2504
|
"itemId",
|
|
2498
2505
|
"language",
|
|
2506
|
+
"editorLanguage",
|
|
2499
2507
|
"qeVersion",
|
|
2500
2508
|
"theme",
|
|
2501
2509
|
"editMode",
|
|
@@ -2580,6 +2588,9 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2580
2588
|
if (this.language) {
|
|
2581
2589
|
defaultParameters.language = this.language;
|
|
2582
2590
|
}
|
|
2591
|
+
if (this.editorLanguage) {
|
|
2592
|
+
defaultParameters.editorLanguage = this.editorLanguage;
|
|
2593
|
+
}
|
|
2583
2594
|
if (this.qeVersion) {
|
|
2584
2595
|
defaultParameters.qeVersion = this.qeVersion;
|
|
2585
2596
|
}
|
|
@@ -2899,6 +2910,9 @@ __decorateClass([
|
|
|
2899
2910
|
__decorateClass([
|
|
2900
2911
|
n4()
|
|
2901
2912
|
], LuzmoDashboard.prototype, "language", 2);
|
|
2913
|
+
__decorateClass([
|
|
2914
|
+
n4()
|
|
2915
|
+
], LuzmoDashboard.prototype, "editorLanguage", 2);
|
|
2902
2916
|
__decorateClass([
|
|
2903
2917
|
n4()
|
|
2904
2918
|
], LuzmoDashboard.prototype, "qeVersion", 2);
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
|
|
|
10
10
|
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
11
11
|
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
12
12
|
language: SharedLib.DashboardInputs['language'];
|
|
13
|
+
editorLanguage: SharedLib.DashboardInputs['editorLanguage'];
|
|
13
14
|
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
14
15
|
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
15
16
|
switchScreenModeOnResize: boolean;
|