x4js 1.6.0 → 1.6.2

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/lib/esm/x4js.mjs CHANGED
@@ -294,10 +294,10 @@ var EventSource = class {
294
294
  this.m_eventRegistry = this.m_defaultHandlers = void 0;
295
295
  } else {
296
296
  if (this.m_eventRegistry) {
297
- this.m_eventRegistry[eventName] = void 0;
297
+ this.m_eventRegistry.delete(eventName);
298
298
  }
299
299
  if (this.m_defaultHandlers) {
300
- this.m_defaultHandlers[eventName] = void 0;
300
+ this.m_defaultHandlers.delete(eventName);
301
301
  }
302
302
  }
303
303
  }
@@ -2201,7 +2201,7 @@ var _Component = class extends BaseComponent {
2201
2201
  if (name == "id") {
2202
2202
  return this.m_props.id;
2203
2203
  }
2204
- return this.m_props.attrs ? this.m_props.attrs[name] : void 0;
2204
+ return this.m_props.attrs ? this.m_props.attrs[name] + "" : void 0;
2205
2205
  }
2206
2206
  }
2207
2207
  /**
@@ -2420,7 +2420,7 @@ var _Component = class extends BaseComponent {
2420
2420
  for (let a in att) {
2421
2421
  const attr = att[a];
2422
2422
  if (attr !== false && attr !== void 0) {
2423
- this._setDomAttribute(a, att[a]);
2423
+ this._setDomAttribute(a, "" + att[a]);
2424
2424
  }
2425
2425
  }
2426
2426
  }
@@ -6968,14 +6968,16 @@ var CardView = class extends Component {
6968
6968
  if (!p) {
6969
6969
  return;
6970
6970
  }
6971
- let card = { ...p };
6972
- card.selector = this._prepareSelector(p);
6973
- card.active = false;
6971
+ let card = {
6972
+ ...p,
6973
+ selector: this._prepareSelector(p),
6974
+ active: false
6975
+ };
6974
6976
  this.m_cards.push(card);
6975
6977
  if (!active) {
6976
6978
  active = p.name;
6977
6979
  }
6978
- if (p.active) {
6980
+ if (card.active) {
6979
6981
  active = p.name;
6980
6982
  }
6981
6983
  });
@@ -7639,7 +7641,7 @@ var _Color = class {
7639
7641
  };
7640
7642
  var Color = _Color;
7641
7643
  __name(Color, "Color");
7642
- __publicField(Color, "custom", []);
7644
+ __publicField(Color, "custom", {});
7643
7645
  /**
7644
7646
  *
7645
7647
  */
@@ -11105,6 +11107,7 @@ var DragManager = class {
11105
11107
  dropTarget;
11106
11108
  notified;
11107
11109
  timer;
11110
+ // pb with name of settimeout return
11108
11111
  /**
11109
11112
  *
11110
11113
  */
@@ -14512,6 +14515,9 @@ var SVGItem = class {
14512
14515
  this.m_attrs = /* @__PURE__ */ new Map();
14513
14516
  this.m_style = /* @__PURE__ */ new Map();
14514
14517
  }
14518
+ setTag(t) {
14519
+ this.m_tag = t;
14520
+ }
14515
14521
  /**
14516
14522
  * render the item
14517
14523
  * @returns
@@ -15748,7 +15754,7 @@ function setupWSMessaging(closeCB) {
15748
15754
  __name(setupWSMessaging, "setupWSMessaging");
15749
15755
 
15750
15756
  // src/version.ts
15751
- var x4js_version = "1.6.0";
15757
+ var x4js_version = "1.6.2";
15752
15758
  export {
15753
15759
  AbsLayout,
15754
15760
  Application,