@luzmo/embed 5.0.14-beta.2 → 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 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.2";
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.VERSION = version + "-wc-luzmo";
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.
@@ -1152,8 +1152,11 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1152
1152
  if (this.chartElement) {
1153
1153
  for (const [propertyName] of changedProperties.entries()) {
1154
1154
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
1155
- const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1156
- this.chartElement.setAttribute(mappedAttributeName, attributeValue);
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
+ }
1157
1160
  }
1158
1161
  }
1159
1162
  }
@@ -1184,7 +1187,7 @@ __decorateClass([
1184
1187
  ], LuzmoBaseVizItem.prototype, "authToken", 2);
1185
1188
  __decorateClass([
1186
1189
  (0, import_decorators3.property)()
1187
- ], LuzmoBaseVizItem.prototype, "VERSION", 2);
1190
+ ], LuzmoBaseVizItem.prototype, "version", 2);
1188
1191
 
1189
1192
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
1190
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.2";
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.VERSION = version + "-wc-luzmo";
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.
@@ -1134,8 +1134,11 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1134
1134
  if (this.chartElement) {
1135
1135
  for (const [propertyName] of changedProperties.entries()) {
1136
1136
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
1137
- const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1138
- this.chartElement.setAttribute(mappedAttributeName, attributeValue);
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
+ }
1139
1142
  }
1140
1143
  }
1141
1144
  }
@@ -1166,7 +1169,7 @@ __decorateClass([
1166
1169
  ], LuzmoBaseVizItem.prototype, "authToken", 2);
1167
1170
  __decorateClass([
1168
1171
  property2()
1169
- ], LuzmoBaseVizItem.prototype, "VERSION", 2);
1172
+ ], LuzmoBaseVizItem.prototype, "version", 2);
1170
1173
 
1171
1174
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
1172
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.2";
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.VERSION = version + "-wc-luzmo";
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.
@@ -1152,8 +1152,11 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1152
1152
  if (this.chartElement) {
1153
1153
  for (const [propertyName] of changedProperties.entries()) {
1154
1154
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
1155
- const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1156
- this.chartElement.setAttribute(mappedAttributeName, attributeValue);
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
+ }
1157
1160
  }
1158
1161
  }
1159
1162
  }
@@ -1184,7 +1187,7 @@ __decorateClass([
1184
1187
  ], LuzmoBaseVizItem.prototype, "authToken", 2);
1185
1188
  __decorateClass([
1186
1189
  (0, import_decorators3.property)()
1187
- ], LuzmoBaseVizItem.prototype, "VERSION", 2);
1190
+ ], LuzmoBaseVizItem.prototype, "version", 2);
1188
1191
 
1189
1192
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
1190
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.2";
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.VERSION = version + "-wc-luzmo";
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.
@@ -1132,8 +1132,11 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1132
1132
  if (this.chartElement) {
1133
1133
  for (const [propertyName] of changedProperties.entries()) {
1134
1134
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
1135
- const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
1136
- this.chartElement.setAttribute(mappedAttributeName, attributeValue);
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
+ }
1137
1140
  }
1138
1141
  }
1139
1142
  }
@@ -1164,7 +1167,7 @@ __decorateClass([
1164
1167
  ], LuzmoBaseVizItem.prototype, "authToken", 2);
1165
1168
  __decorateClass([
1166
1169
  property2()
1167
- ], LuzmoBaseVizItem.prototype, "VERSION", 2);
1170
+ ], LuzmoBaseVizItem.prototype, "version", 2);
1168
1171
 
1169
1172
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
1170
1173
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
@@ -8,7 +8,7 @@ export declare class LuzmoBaseVizItem extends LitElement {
8
8
  type?: SharedLib.ItemType;
9
9
  authKey?: string;
10
10
  authToken?: string;
11
- VERSION?: string;
11
+ version?: string;
12
12
  chartElement: HTMLElement;
13
13
  static styles: import("lit").CSSResult;
14
14
  constructor();
@@ -1930,7 +1930,7 @@ var o5 = e6(class extends i4 {
1930
1930
  });
1931
1931
 
1932
1932
  // libs/embed-libs/embed/package.json
1933
- var version = "5.0.14-beta.2";
1933
+ var version = "5.0.14-beta.3";
1934
1934
 
1935
1935
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1936
1936
  var LuzmoService = class {
@@ -2981,7 +2981,7 @@ var LuzmoBaseVizItem = class extends s3 {
2981
2981
  },
2982
2982
  theme: "default"
2983
2983
  };
2984
- this.VERSION = version + "-wc-luzmo";
2984
+ this.version = version + "-wc-luzmo";
2985
2985
  }
2986
2986
  static {
2987
2987
  // Static styles to set host display to block, else it is not shown at all for some reason.
@@ -3019,8 +3019,11 @@ var LuzmoBaseVizItem = class extends s3 {
3019
3019
  if (this.chartElement) {
3020
3020
  for (const [propertyName] of changedProperties.entries()) {
3021
3021
  const mappedAttributeName = libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
3022
- const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
3023
- this.chartElement.setAttribute(mappedAttributeName, attributeValue);
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
+ }
3024
3027
  }
3025
3028
  }
3026
3029
  }
@@ -3051,7 +3054,7 @@ __decorateClass([
3051
3054
  ], LuzmoBaseVizItem.prototype, "authToken", 2);
3052
3055
  __decorateClass([
3053
3056
  n3()
3054
- ], LuzmoBaseVizItem.prototype, "VERSION", 2);
3057
+ ], LuzmoBaseVizItem.prototype, "version", 2);
3055
3058
 
3056
3059
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
3057
3060
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
@@ -1930,7 +1930,7 @@ var o5 = e6(class extends i4 {
1930
1930
  });
1931
1931
 
1932
1932
  // libs/embed-libs/embed/package.json
1933
- var version = "5.0.14-beta.2";
1933
+ var version = "5.0.14-beta.3";
1934
1934
 
1935
1935
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1936
1936
  var LuzmoService = class {
@@ -2981,7 +2981,7 @@ var LuzmoBaseVizItem = class extends s3 {
2981
2981
  },
2982
2982
  theme: "default"
2983
2983
  };
2984
- this.VERSION = version + "-wc-luzmo";
2984
+ this.version = version + "-wc-luzmo";
2985
2985
  }
2986
2986
  static {
2987
2987
  // Static styles to set host display to block, else it is not shown at all for some reason.
@@ -3019,8 +3019,11 @@ var LuzmoBaseVizItem = class extends s3 {
3019
3019
  if (this.chartElement) {
3020
3020
  for (const [propertyName] of changedProperties.entries()) {
3021
3021
  const mappedAttributeName = libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
3022
- const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
3023
- this.chartElement.setAttribute(mappedAttributeName, attributeValue);
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
+ }
3024
3027
  }
3025
3028
  }
3026
3029
  }
@@ -3051,7 +3054,7 @@ __decorateClass([
3051
3054
  ], LuzmoBaseVizItem.prototype, "authToken", 2);
3052
3055
  __decorateClass([
3053
3056
  n3()
3054
- ], LuzmoBaseVizItem.prototype, "VERSION", 2);
3057
+ ], LuzmoBaseVizItem.prototype, "version", 2);
3055
3058
 
3056
3059
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
3057
3060
  var LuzmoVizItem = class extends LuzmoBaseVizItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "5.0.14-beta.2",
3
+ "version": "5.0.14-beta.3",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
6
  "@luzmo/shared-embed": "5.0.7-beta.0"