@social-mail/social-mail-client 1.2.335 → 1.2.336

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.
@@ -54419,11 +54419,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
54419
54419
  };
54420
54420
  this.prompt = "Tags";
54421
54421
  this.itemRenderer = x => {
54422
- var _a;
54422
+ var _a, _b;
54423
54423
  return XNode.create(Chip, {
54424
54424
  draggable: true,
54425
54425
  deleted: x.$deleted,
54426
- label: (_a = x.tag) === null || _a === void 0 ? void 0 : _a.name
54426
+ label: (_b = (_a = x.tag) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : x.name
54427
54427
  });
54428
54428
  };
54429
54429
  this.suggestionRenderer = x => XNode.create(Suggestion, {
@@ -54432,9 +54432,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
54432
54432
  this.enterKeyHint = "enter";
54433
54433
  this.itemToChip = (item, name) => ({
54434
54434
  $deleted: false,
54435
- tag: Tag.create({
54436
- name
54437
- })
54435
+ name
54438
54436
  });
54439
54437
  this.render(XNode.create("div", {
54440
54438
  suggestions: Bind.oneWayAsync((c, e, cancelToken) => this.searchItems(cancelToken, this.search), {
@@ -54442,8 +54440,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
54442
54440
  })
54443
54441
  }));
54444
54442
  this.valuePath = x => {
54445
- var _a, _b;
54446
- return (_b = (_a = x.tag) === null || _a === void 0 ? void 0 : _a.tagID) !== null && _b !== void 0 ? _b : x.tagID;
54443
+ var _a, _b, _c;
54444
+ return (_c = (_b = (_a = x.tag) === null || _a === void 0 ? void 0 : _a.tagID) !== null && _b !== void 0 ? _b : x.tagID) !== null && _c !== void 0 ? _c : Date.now();
54447
54445
  };
54448
54446
  this.bindEvent(this.element, "itemDropped", () => {
54449
54447
  this.items.forEach((v, i) => v.sortOrder = i);