@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.
- package/dist/admin/AdminAppIndex.pack.js +18 -4
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/controls/collection-editor/CollectionEditorEx.js +3 -3
- package/dist/common/controls/collection-editor/CollectionEditorEx.js.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.d.ts +2 -1
- package/dist/common/pages/stores/products/ProductEditor.d.ts.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.js +15 -1
- package/dist/common/pages/stores/products/ProductEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +18 -4
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/controls/collection-editor/CollectionEditorEx.tsx +4 -4
- package/src/common/pages/stores/products/ProductEditor.tsx +15 -1
|
@@ -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.
|
|
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.
|
|
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.
|
|
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", {
|
|
@@ -55331,6 +55331,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
55331
55331
|
text: item.amount
|
|
55332
55332
|
}), XNode.create("div", {
|
|
55333
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"
|
|
55334
55339
|
}), XNode.create("div", {
|
|
55335
55340
|
title: DateFormats.withWeekDayAndTime(item.startDate),
|
|
55336
55341
|
text: DateFormats.relative.short(item.startDate)
|
|
@@ -55347,7 +55352,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
55347
55352
|
storeItem: null
|
|
55348
55353
|
},
|
|
55349
55354
|
saveAfterAdd: false,
|
|
55350
|
-
|
|
55355
|
+
inlineAddRenderer: item => XNode.create("div", null, XNode.create(ReferenceEditor, {
|
|
55351
55356
|
model: item,
|
|
55352
55357
|
field: x => x.taxItem,
|
|
55353
55358
|
searchQuery: (q, search) => (search ? q.where({
|
|
@@ -55420,6 +55425,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
55420
55425
|
}
|
|
55421
55426
|
return signedImageUrl(item, 200);
|
|
55422
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
|
+
}
|
|
55423
55433
|
onFilesUploaded({
|
|
55424
55434
|
files
|
|
55425
55435
|
}) {
|
|
@@ -55465,6 +55475,10 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
55465
55475
|
__decorate([BindableProperty, __metadata("design:type", Number)], ProductEditor.prototype, "productID", void 0);
|
|
55466
55476
|
__decorate([BindableProperty, __metadata("design:type", Object)], ProductEditor.prototype, "model", void 0);
|
|
55467
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);
|
|
55468
55482
|
__decorate([Action({
|
|
55469
55483
|
onEvent: "files-uploaded"
|
|
55470
55484
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ProductEditor.prototype, "onFilesUploaded", null);
|