@social-mail/social-mail-client 1.2.322 → 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.
@@ -53741,7 +53741,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
53741
53741
  this.pageResultToItem = null;
53742
53742
  this.itemFactory = null;
53743
53743
  this.itemRenderer = null;
53744
- this.inlineAddRenderere = null;
53744
+ this.inlineAddRenderer = null;
53745
53745
  this.inlineAdd = false;
53746
53746
  this.addPage = null;
53747
53747
  this.editPage = null;
@@ -53766,7 +53766,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
53766
53766
  if (this.model) {
53767
53767
  (_a = (_b = this.model)[_c = this.fieldName]) !== null && _a !== void 0 ? _a : _b[_c] = [];
53768
53768
  }
53769
- this.inlineAdd || (this.inlineAdd = !!this.inlineAddRenderere);
53769
+ this.inlineAdd || (this.inlineAdd = !!this.inlineAddRenderer);
53770
53770
  const fx = () => {
53771
53771
  var _a;
53772
53772
  var _b, _c;
@@ -53793,7 +53793,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
53793
53793
  }),
53794
53794
  footerRenderer: newItem => {
53795
53795
  var _a, _b;
53796
- const node = this.inlineAddRenderere ? this.inlineAddRenderere(newItem) : this.itemRenderer(newItem);
53796
+ const node = this.inlineAddRenderer ? this.inlineAddRenderer(newItem) : this.itemRenderer(newItem);
53797
53797
  const na = (_a = node.attributes) !== null && _a !== void 0 ? _a : node.attributes = {};
53798
53798
  na["data-margin"] = "default";
53799
53799
  node.children.push(XNode.create("span", null, XNode.create("button", {
@@ -55234,6 +55234,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
55234
55234
  return;
55235
55235
  }
55236
55236
  (_a = (_b = this.model).storeItemTags) !== null && _a !== void 0 ? _a : _b.storeItemTags = [];
55237
+ const storeID = this.model.storeID;
55237
55238
  this.renderer = XNode.create("div", null, XNode.create("div", {
55238
55239
  "data-border": "frame",
55239
55240
  "data-layout": "vertical-flex"
@@ -55255,7 +55256,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
55255
55256
  searchQuery: (q, search) => (search ? q.where({
55256
55257
  search
55257
55258
  }, p => x => Sql.text.startsWith(x.name, p.search)) : q).where({
55258
- storeID: this.model.storeID
55259
+ storeID
55259
55260
  }, p => x => x.storeID === p.storeID).orderBy(x => x.name),
55260
55261
  itemRenderer: x => XNode.create("div", {
55261
55262
  text: x.name
@@ -55330,6 +55331,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
55330
55331
  text: item.amount
55331
55332
  }), XNode.create("div", {
55332
55333
  text: item.taxAmount
55334
+ }), XNode.create("i", {
55335
+ "data-click-event": "copy-item-price",
55336
+ "data-cursor": "pointer",
55337
+ title: "Copy",
55338
+ class: "fad fa-copy"
55333
55339
  }), XNode.create("div", {
55334
55340
  title: DateFormats.withWeekDayAndTime(item.startDate),
55335
55341
  text: DateFormats.relative.short(item.startDate)
@@ -55346,12 +55352,14 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
55346
55352
  storeItem: null
55347
55353
  },
55348
55354
  saveAfterAdd: false,
55349
- inlineAddRenderere: item => XNode.create("div", null, XNode.create(ReferenceEditor, {
55355
+ inlineAddRenderer: item => XNode.create("div", null, XNode.create(ReferenceEditor, {
55350
55356
  model: item,
55351
55357
  field: x => x.taxItem,
55352
55358
  searchQuery: (q, search) => (search ? q.where({
55353
55359
  search: search + "%"
55354
- }, p => x => Sql.text.iLike(x.name, p.search)) : q).where(void 0, p => x => x.itemType === "tax").include(x => x.storeItemPrices),
55360
+ }, p => x => Sql.text.iLike(x.name, p.search)) : q).where({
55361
+ storeID
55362
+ }, p => x => x.storeID === p.storeID && x.itemType === "tax").include(x => x.storeItemPrices),
55355
55363
  itemRenderer: ti => XNode.create("div", null, " ", XNode.create("label", {
55356
55364
  text: ti.name
55357
55365
  }), " "),
@@ -55417,6 +55425,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
55417
55425
  }
55418
55426
  return signedImageUrl(item, 200);
55419
55427
  }
55428
+ copyItemPrice(item) {
55429
+ return __awaiter(this, void 0, void 0, function* () {
55430
+ yield navigator.clipboard.writeText(`/pg-i/phone-pe/create/${item.storeItemID}/${item.currency}`);
55431
+ });
55432
+ }
55420
55433
  onFilesUploaded({
55421
55434
  files
55422
55435
  }) {
@@ -55462,6 +55475,10 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
55462
55475
  __decorate([BindableProperty, __metadata("design:type", Number)], ProductEditor.prototype, "productID", void 0);
55463
55476
  __decorate([BindableProperty, __metadata("design:type", Object)], ProductEditor.prototype, "model", void 0);
55464
55477
  __decorate([InjectProperty, __metadata("design:type", StoreItemService)], ProductEditor.prototype, "storeItemService", void 0);
55478
+ __decorate([Action({
55479
+ onEvent: "copy-item-price",
55480
+ success: "Copied successful"
55481
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ProductEditor.prototype, "copyItemPrice", null);
55465
55482
  __decorate([Action({
55466
55483
  onEvent: "files-uploaded"
55467
55484
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ProductEditor.prototype, "onFilesUploaded", null);