@luzmo/embed 5.0.14-beta.0 → 5.0.14-beta.1

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 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.0";
58
+ var version = "5.0.14-beta.1";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1149,6 +1149,15 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1149
1149
  }
1150
1150
  }
1151
1151
  }
1152
+ updated(changedProperties) {
1153
+ if (this.chartElement) {
1154
+ for (const [propertyName] of changedProperties.entries()) {
1155
+ const mappedAttributeName = SharedLib3.libraryAcceptedParametersList[propertyName] ?? propertyName;
1156
+ const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1157
+ this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1158
+ }
1159
+ }
1160
+ }
1152
1161
  render() {
1153
1162
  return import_lit3.html``;
1154
1163
  }
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.0";
40
+ var version = "5.0.14-beta.1";
41
41
 
42
42
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
43
43
  var LuzmoService = class {
@@ -1131,6 +1131,15 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1131
1131
  }
1132
1132
  }
1133
1133
  }
1134
+ updated(changedProperties) {
1135
+ if (this.chartElement) {
1136
+ for (const [propertyName] of changedProperties.entries()) {
1137
+ const mappedAttributeName = SharedLib3.libraryAcceptedParametersList[propertyName] ?? propertyName;
1138
+ const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1139
+ this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1140
+ }
1141
+ }
1142
+ }
1134
1143
  render() {
1135
1144
  return html2``;
1136
1145
  }
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.0";
58
+ var version = "5.0.14-beta.1";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1149,6 +1149,15 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1149
1149
  }
1150
1150
  }
1151
1151
  }
1152
+ updated(changedProperties) {
1153
+ if (this.chartElement) {
1154
+ for (const [propertyName] of changedProperties.entries()) {
1155
+ const mappedAttributeName = SharedLib3.libraryAcceptedParametersList[propertyName] ?? propertyName;
1156
+ const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1157
+ this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1158
+ }
1159
+ }
1160
+ }
1152
1161
  render() {
1153
1162
  return import_lit3.html``;
1154
1163
  }
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.0";
38
+ var version = "5.0.14-beta.1";
39
39
 
40
40
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
41
41
  var LuzmoService = class {
@@ -1129,6 +1129,15 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1129
1129
  }
1130
1130
  }
1131
1131
  }
1132
+ updated(changedProperties) {
1133
+ if (this.chartElement) {
1134
+ for (const [propertyName] of changedProperties.entries()) {
1135
+ const mappedAttributeName = SharedLib3.libraryAcceptedParametersList[propertyName] ?? propertyName;
1136
+ const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1137
+ this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1138
+ }
1139
+ }
1140
+ }
1132
1141
  render() {
1133
1142
  return html2``;
1134
1143
  }
@@ -14,5 +14,6 @@ export declare class LuzmoBaseVizItem extends LitElement {
14
14
  constructor();
15
15
  protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
16
16
  private updateVizItemProperties;
17
+ updated(changedProperties: PropertyValues): void;
17
18
  protected render(): unknown;
18
19
  }
@@ -1498,6 +1498,7 @@ var libraryTypeToWebComponentTypeMapping = {
1498
1498
  authKey: "auth-key",
1499
1499
  authToken: "auth-token"
1500
1500
  };
1501
+ var libraryAcceptedParametersList = ["appServer", "apiHost", "options", "type", "authKey", "authToken", "slots"];
1501
1502
 
1502
1503
  // libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
1503
1504
  var luzmoEmbedContainerClass = "luzmo-embed-container";
@@ -1931,7 +1932,7 @@ var o5 = e6(class extends i4 {
1931
1932
  });
1932
1933
 
1933
1934
  // libs/embed-libs/embed/package.json
1934
- var version = "5.0.14-beta.0";
1935
+ var version = "5.0.14-beta.1";
1935
1936
 
1936
1937
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1937
1938
  var LuzmoService = class {
@@ -3017,6 +3018,15 @@ var LuzmoBaseVizItem = class extends s3 {
3017
3018
  }
3018
3019
  }
3019
3020
  }
3021
+ updated(changedProperties) {
3022
+ if (this.chartElement) {
3023
+ for (const [propertyName] of changedProperties.entries()) {
3024
+ const mappedAttributeName = libraryAcceptedParametersList[propertyName] ?? propertyName;
3025
+ const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
3026
+ this.chartElement.setAttribute(mappedAttributeName, attributeValue);
3027
+ }
3028
+ }
3029
+ }
3020
3030
  render() {
3021
3031
  return x``;
3022
3032
  }
@@ -1498,6 +1498,7 @@ var libraryTypeToWebComponentTypeMapping = {
1498
1498
  authKey: "auth-key",
1499
1499
  authToken: "auth-token"
1500
1500
  };
1501
+ var libraryAcceptedParametersList = ["appServer", "apiHost", "options", "type", "authKey", "authToken", "slots"];
1501
1502
 
1502
1503
  // libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
1503
1504
  var luzmoEmbedContainerClass = "luzmo-embed-container";
@@ -1931,7 +1932,7 @@ var o5 = e6(class extends i4 {
1931
1932
  });
1932
1933
 
1933
1934
  // libs/embed-libs/embed/package.json
1934
- var version = "5.0.14-beta.0";
1935
+ var version = "5.0.14-beta.1";
1935
1936
 
1936
1937
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1937
1938
  var LuzmoService = class {
@@ -3017,6 +3018,15 @@ var LuzmoBaseVizItem = class extends s3 {
3017
3018
  }
3018
3019
  }
3019
3020
  }
3021
+ updated(changedProperties) {
3022
+ if (this.chartElement) {
3023
+ for (const [propertyName] of changedProperties.entries()) {
3024
+ const mappedAttributeName = libraryAcceptedParametersList[propertyName] ?? propertyName;
3025
+ const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
3026
+ this.chartElement.setAttribute(mappedAttributeName, attributeValue);
3027
+ }
3028
+ }
3029
+ }
3020
3030
  render() {
3021
3031
  return x``;
3022
3032
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "5.0.14-beta.0",
3
+ "version": "5.0.14-beta.1",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
6
  "@luzmo/shared-embed": "5.0.7-beta.0"
@@ -14,5 +14,6 @@ export declare class LuzmoBaseVizItem extends LitElement {
14
14
  constructor();
15
15
  protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
16
16
  private updateVizItemProperties;
17
+ updated(changedProperties: PropertyValues): void;
17
18
  protected render(): unknown;
18
19
  }