@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.
- package/dist/admin/AdminAppIndex.pack.js +23 -6
- 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 +20 -3
- package/dist/common/pages/stores/products/ProductEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +23 -6
- 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 +19 -3
|
@@ -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.
|
|
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.
|
|
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.
|
|
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", {
|
|
@@ -50947,6 +50947,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
50947
50947
|
return;
|
|
50948
50948
|
}
|
|
50949
50949
|
(_a = (_b = this.model).storeItemTags) !== null && _a !== void 0 ? _a : _b.storeItemTags = [];
|
|
50950
|
+
const storeID = this.model.storeID;
|
|
50950
50951
|
this.renderer = XNode.create("div", null, XNode.create("div", {
|
|
50951
50952
|
"data-border": "frame",
|
|
50952
50953
|
"data-layout": "vertical-flex"
|
|
@@ -50968,7 +50969,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
50968
50969
|
searchQuery: (q, search) => (search ? q.where({
|
|
50969
50970
|
search
|
|
50970
50971
|
}, p => x => Sql.text.startsWith(x.name, p.search)) : q).where({
|
|
50971
|
-
storeID
|
|
50972
|
+
storeID
|
|
50972
50973
|
}, p => x => x.storeID === p.storeID).orderBy(x => x.name),
|
|
50973
50974
|
itemRenderer: x => XNode.create("div", {
|
|
50974
50975
|
text: x.name
|
|
@@ -51043,6 +51044,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
51043
51044
|
text: item.amount
|
|
51044
51045
|
}), XNode.create("div", {
|
|
51045
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"
|
|
51046
51052
|
}), XNode.create("div", {
|
|
51047
51053
|
title: DateFormats.withWeekDayAndTime(item.startDate),
|
|
51048
51054
|
text: DateFormats.relative.short(item.startDate)
|
|
@@ -51059,12 +51065,14 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
51059
51065
|
storeItem: null
|
|
51060
51066
|
},
|
|
51061
51067
|
saveAfterAdd: false,
|
|
51062
|
-
|
|
51068
|
+
inlineAddRenderer: item => XNode.create("div", null, XNode.create(ReferenceEditor, {
|
|
51063
51069
|
model: item,
|
|
51064
51070
|
field: x => x.taxItem,
|
|
51065
51071
|
searchQuery: (q, search) => (search ? q.where({
|
|
51066
51072
|
search: search + "%"
|
|
51067
|
-
}, p => x => Sql.text.iLike(x.name, p.search)) : q).where(
|
|
51073
|
+
}, p => x => Sql.text.iLike(x.name, p.search)) : q).where({
|
|
51074
|
+
storeID
|
|
51075
|
+
}, p => x => x.storeID === p.storeID && x.itemType === "tax").include(x => x.storeItemPrices),
|
|
51068
51076
|
itemRenderer: ti => XNode.create("div", null, " ", XNode.create("label", {
|
|
51069
51077
|
text: ti.name
|
|
51070
51078
|
}), " "),
|
|
@@ -51130,6 +51138,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
51130
51138
|
}
|
|
51131
51139
|
return signedImageUrl(item, 200);
|
|
51132
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
|
+
}
|
|
51133
51146
|
onFilesUploaded({
|
|
51134
51147
|
files
|
|
51135
51148
|
}) {
|
|
@@ -51175,6 +51188,10 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
51175
51188
|
__decorate([BindableProperty, __metadata("design:type", Number)], ProductEditor.prototype, "productID", void 0);
|
|
51176
51189
|
__decorate([BindableProperty, __metadata("design:type", Object)], ProductEditor.prototype, "model", void 0);
|
|
51177
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);
|
|
51178
51195
|
__decorate([Action({
|
|
51179
51196
|
onEvent: "files-uploaded"
|
|
51180
51197
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ProductEditor.prototype, "onFilesUploaded", null);
|