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

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.
@@ -50037,11 +50037,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
50037
50037
  };
50038
50038
  this.prompt = "Tags";
50039
50039
  this.itemRenderer = x => {
50040
- var _a;
50040
+ var _a, _b;
50041
50041
  return XNode.create(Chip, {
50042
50042
  draggable: true,
50043
50043
  deleted: x.$deleted,
50044
- label: (_a = x.tag) === null || _a === void 0 ? void 0 : _a.name
50044
+ label: (_b = (_a = x.tag) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : x.name
50045
50045
  });
50046
50046
  };
50047
50047
  this.suggestionRenderer = x => XNode.create(Suggestion, {
@@ -50050,9 +50050,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
50050
50050
  this.enterKeyHint = "enter";
50051
50051
  this.itemToChip = (item, name) => ({
50052
50052
  $deleted: false,
50053
- tag: Tag.create({
50054
- name
50055
- })
50053
+ name
50056
50054
  });
50057
50055
  this.render(XNode.create("div", {
50058
50056
  suggestions: Bind.oneWayAsync((c, e, cancelToken) => this.searchItems(cancelToken, this.search), {
@@ -50060,8 +50058,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
50060
50058
  })
50061
50059
  }));
50062
50060
  this.valuePath = x => {
50063
- var _a, _b;
50064
- return (_b = (_a = x.tag) === null || _a === void 0 ? void 0 : _a.tagID) !== null && _b !== void 0 ? _b : x.tagID;
50061
+ var _a, _b, _c;
50062
+ 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();
50065
50063
  };
50066
50064
  this.bindEvent(this.element, "itemDropped", () => {
50067
50065
  this.items.forEach((v, i) => v.sortOrder = i);