@social-mail/social-mail-client 1.2.323 → 1.2.324

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.
@@ -49391,7 +49391,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
49391
49391
  this.pageResultToItem = null;
49392
49392
  this.itemFactory = null;
49393
49393
  this.itemRenderer = null;
49394
- this.inlineAddRenderere = null;
49394
+ this.inlineAddRenderer = null;
49395
49395
  this.inlineAdd = false;
49396
49396
  this.addPage = null;
49397
49397
  this.editPage = null;
@@ -49416,7 +49416,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
49416
49416
  if (this.model) {
49417
49417
  (_a = (_b = this.model)[_c = this.fieldName]) !== null && _a !== void 0 ? _a : _b[_c] = [];
49418
49418
  }
49419
- this.inlineAdd || (this.inlineAdd = !!this.inlineAddRenderere);
49419
+ this.inlineAdd || (this.inlineAdd = !!this.inlineAddRenderer);
49420
49420
  const fx = () => {
49421
49421
  var _a;
49422
49422
  var _b, _c;
@@ -49443,7 +49443,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
49443
49443
  }),
49444
49444
  footerRenderer: newItem => {
49445
49445
  var _a, _b;
49446
- const node = this.inlineAddRenderere ? this.inlineAddRenderere(newItem) : this.itemRenderer(newItem);
49446
+ const node = this.inlineAddRenderer ? this.inlineAddRenderer(newItem) : this.itemRenderer(newItem);
49447
49447
  const na = (_a = node.attributes) !== null && _a !== void 0 ? _a : node.attributes = {};
49448
49448
  na["data-margin"] = "default";
49449
49449
  node.children.push(XNode.create("span", null, XNode.create("button", {
@@ -51044,6 +51044,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
51044
51044
  text: item.amount
51045
51045
  }), XNode.create("div", {
51046
51046
  text: item.taxAmount
51047
+ }), XNode.create("i", {
51048
+ "data-click-event": "copy-item-price",
51049
+ "data-cursor": "pointer",
51050
+ title: "Copy",
51051
+ class: "fad fa-copy"
51047
51052
  }), XNode.create("div", {
51048
51053
  title: DateFormats.withWeekDayAndTime(item.startDate),
51049
51054
  text: DateFormats.relative.short(item.startDate)
@@ -51060,7 +51065,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
51060
51065
  storeItem: null
51061
51066
  },
51062
51067
  saveAfterAdd: false,
51063
- inlineAddRenderere: item => XNode.create("div", null, XNode.create(ReferenceEditor, {
51068
+ inlineAddRenderer: item => XNode.create("div", null, XNode.create(ReferenceEditor, {
51064
51069
  model: item,
51065
51070
  field: x => x.taxItem,
51066
51071
  searchQuery: (q, search) => (search ? q.where({
@@ -51133,6 +51138,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
51133
51138
  }
51134
51139
  return signedImageUrl(item, 200);
51135
51140
  }
51141
+ copyItemPrice(item) {
51142
+ return __awaiter(this, void 0, void 0, function* () {
51143
+ yield navigator.clipboard.writeText(`/pg-i/phone-pe/create/${item.storeItemID}/${item.currency}`);
51144
+ });
51145
+ }
51136
51146
  onFilesUploaded({
51137
51147
  files
51138
51148
  }) {
@@ -51178,6 +51188,10 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
51178
51188
  __decorate([BindableProperty, __metadata("design:type", Number)], ProductEditor.prototype, "productID", void 0);
51179
51189
  __decorate([BindableProperty, __metadata("design:type", Object)], ProductEditor.prototype, "model", void 0);
51180
51190
  __decorate([InjectProperty, __metadata("design:type", StoreItemService)], ProductEditor.prototype, "storeItemService", void 0);
51191
+ __decorate([Action({
51192
+ onEvent: "copy-item-price",
51193
+ success: "Copied successful"
51194
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ProductEditor.prototype, "copyItemPrice", null);
51181
51195
  __decorate([Action({
51182
51196
  onEvent: "files-uploaded"
51183
51197
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ProductEditor.prototype, "onFilesUploaded", null);