@social-mail/social-mail-client 1.2.675 → 1.2.676
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/public/store/StoreApp.pack.js +15 -11
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +2 -2
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/pages/StoreProductListPage.d.ts.map +1 -1
- package/dist/public/store/pages/StoreProductListPage.js +15 -11
- package/dist/public/store/pages/StoreProductListPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/store/pages/StoreProductListPage.tsx +28 -23
|
@@ -25776,10 +25776,10 @@ System.register([], function (_export, _context) {
|
|
|
25776
25776
|
|
|
25777
25777
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/cache/CacheTTL");
|
|
25778
25778
|
|
|
25779
|
-
System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../common/controls/repeater/InfiniteRepeater", "../../../common/currency", "../../../common/Sql", "../../../model/model", "../../../services/EntityService", "@web-atoms/core/dist/style/styled", "../commands/StoreCommands", "../StoreUrlService", "../../../common/cache/CacheTTL"], function (_export, _context) {
|
|
25779
|
+
System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../common/controls/repeater/InfiniteRepeater", "../../../common/currency", "../../../common/Sql", "../../../model/model", "../../../services/EntityService", "@web-atoms/core/dist/style/styled", "../commands/StoreCommands", "../StoreUrlService", "../../../common/cache/CacheTTL", "../../../common/Slugger"], function (_export, _context) {
|
|
25780
25780
|
"use strict";
|
|
25781
25781
|
|
|
25782
|
-
var __awaiter, __decorate, __metadata, Bind, InjectProperty, XNode, Action, AtomRepeater, ContentPage, InfiniteRepeater, formatPrice, Sql, StoreTag, StoreMediaFile, StoreItem, EntityService, styled, StoreCommands, StoreUrlService, CacheTTL, StoreProductListPage, cacheSeconds, cacheVersion;
|
|
25782
|
+
var __awaiter, __decorate, __metadata, Bind, InjectProperty, XNode, Action, AtomRepeater, ContentPage, InfiniteRepeater, formatPrice, Sql, StoreTag, StoreMediaFile, StoreItem, EntityService, styled, StoreCommands, StoreUrlService, CacheTTL, Slugger, StoreProductListPage, cacheSeconds, cacheVersion;
|
|
25783
25783
|
_export("default", void 0);
|
|
25784
25784
|
return {
|
|
25785
25785
|
setters: [function (_tslib) {
|
|
@@ -25818,6 +25818,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
25818
25818
|
StoreUrlService = _StoreUrlService.StoreUrlService;
|
|
25819
25819
|
}, function (_commonCacheCacheTTL) {
|
|
25820
25820
|
CacheTTL = _commonCacheCacheTTL.CacheTTL;
|
|
25821
|
+
}, function (_commonSlugger) {
|
|
25822
|
+
Slugger = _commonSlugger.Slugger;
|
|
25821
25823
|
}],
|
|
25822
25824
|
execute: function () {
|
|
25823
25825
|
cacheSeconds = CacheTTL.seconds.fifteenMinutes;
|
|
@@ -26019,30 +26021,32 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
26019
26021
|
cancelToken
|
|
26020
26022
|
})), {
|
|
26021
26023
|
itemRenderer: item => {
|
|
26022
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
26024
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26025
|
+
const name = item.name || ((_a = item.variantFor) === null || _a === void 0 ? void 0 : _a.name) || item.name;
|
|
26026
|
+
const href = StoreCommands.productDetail.displayRoute(item) + "/" + Slugger.slug(item.storeItemID, name);
|
|
26023
26027
|
return XNode.create("div", {
|
|
26024
26028
|
class: "store-item"
|
|
26025
26029
|
}, XNode.create("a", {
|
|
26026
26030
|
class: "name",
|
|
26027
|
-
title:
|
|
26028
|
-
text:
|
|
26029
|
-
href:
|
|
26031
|
+
title: name,
|
|
26032
|
+
text: name,
|
|
26033
|
+
href: href
|
|
26030
26034
|
}), XNode.create("label", {
|
|
26031
26035
|
class: "description",
|
|
26032
|
-
title: item.description || ((
|
|
26033
|
-
text: item.description || ((
|
|
26036
|
+
title: item.description || ((_b = item.variantFor) === null || _b === void 0 ? void 0 : _b.description) || item.description,
|
|
26037
|
+
text: item.description || ((_c = item.variantFor) === null || _c === void 0 ? void 0 : _c.description) || item.description
|
|
26034
26038
|
}), XNode.create("img", {
|
|
26035
26039
|
src: Bind.oneTimeAsync(() => this.downloadImage(item))
|
|
26036
26040
|
}), XNode.create("a", {
|
|
26037
|
-
title: item.name || ((
|
|
26038
|
-
href:
|
|
26041
|
+
title: item.name || ((_d = item.variantFor) === null || _d === void 0 ? void 0 : _d.name) || item.name,
|
|
26042
|
+
href: href
|
|
26039
26043
|
}, XNode.create("button", {
|
|
26040
26044
|
class: "buy",
|
|
26041
26045
|
text: "Buy"
|
|
26042
26046
|
})), XNode.create("div", {
|
|
26043
26047
|
class: "price"
|
|
26044
26048
|
}, XNode.create("label", {
|
|
26045
|
-
text: formatPrice((
|
|
26049
|
+
text: formatPrice((_f = (_e = item.storeItemPrices) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : (_h = (_g = item.variantFor) === null || _g === void 0 ? void 0 : _g.storeItemPrices) === null || _h === void 0 ? void 0 : _h[0])
|
|
26046
26050
|
})));
|
|
26047
26051
|
}
|
|
26048
26052
|
})), XNode.create("footer", null)));
|