@social-mail/social-mail-client 1.2.323 → 1.2.325
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 +30 -16
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +14 -15
- 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/common/pages/websites/studio/WebSiteStudioPage.js +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/site-editor/blocks/Block.js +0 -10
- package/dist/site-editor/blocks/Block.js.map +1 -1
- package/dist/site-editor/blocks/PDFViewer.d.ts.map +1 -1
- package/dist/site-editor/blocks/PDFViewer.js +9 -0
- package/dist/site-editor/blocks/PDFViewer.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +1 -1
- package/dist/site-editor/editor/custom-elements/PdfViewerElement.d.ts.map +1 -1
- package/dist/site-editor/editor/custom-elements/PdfViewerElement.js +1 -0
- package/dist/site-editor/editor/custom-elements/PdfViewerElement.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +30 -16
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +14 -15
- 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
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +1 -1
- package/src/site-editor/blocks/Block.tsx +0 -10
- package/src/site-editor/blocks/PDFViewer.tsx +9 -0
- package/src/site-editor/editor/WebSitePageEditor.tsx +1 -1
- package/src/site-editor/editor/custom-elements/PdfViewerElement.ts +1 -0
|
@@ -46306,11 +46306,6 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46306
46306
|
align-items: center;
|
|
46307
46307
|
justify-content: space-between;
|
|
46308
46308
|
z-index: 20;
|
|
46309
|
-
&:not([styler-font-weight]) {
|
|
46310
|
-
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
46311
|
-
font-weight: 400;
|
|
46312
|
-
}
|
|
46313
|
-
}
|
|
46314
46309
|
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
46315
46310
|
margin-block-start: 0;
|
|
46316
46311
|
margin-block-end: 0;
|
|
@@ -46392,11 +46387,6 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46392
46387
|
border-radius: ${stylerVars.sizeLarge};
|
|
46393
46388
|
align-items: center;
|
|
46394
46389
|
justify-content: space-between;
|
|
46395
|
-
&:not([styler-font-weight]) {
|
|
46396
|
-
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
46397
|
-
font-weight: 400;
|
|
46398
|
-
}
|
|
46399
|
-
}
|
|
46400
46390
|
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
46401
46391
|
margin-block-start: 0;
|
|
46402
46392
|
margin-block-end: 0;
|
|
@@ -50167,6 +50157,15 @@ System.register(["@web-atoms/core/dist/core/XNode", "./Block", "../styler/Styler
|
|
|
50167
50157
|
StylerSets.register("low", styled.css`
|
|
50168
50158
|
& pdf-viewer {
|
|
50169
50159
|
display: inline-block;
|
|
50160
|
+
position: relative;
|
|
50161
|
+
overflow: hidden;
|
|
50162
|
+
&::part(thumb) {
|
|
50163
|
+
width: 100%;
|
|
50164
|
+
height: 100%;
|
|
50165
|
+
object-fit: contain;
|
|
50166
|
+
}
|
|
50167
|
+
|
|
50168
|
+
|
|
50170
50169
|
& * {
|
|
50171
50170
|
user-select: none;
|
|
50172
50171
|
pointer-events: none;
|
|
@@ -50220,6 +50219,7 @@ System.register([], function (_export, _context) {
|
|
|
50220
50219
|
mode: "closed"
|
|
50221
50220
|
});
|
|
50222
50221
|
const img = this.img = document.createElement("img");
|
|
50222
|
+
img.setAttribute("part", "thumb");
|
|
50223
50223
|
root.appendChild(img);
|
|
50224
50224
|
this.updatePoster();
|
|
50225
50225
|
}
|
|
@@ -51721,7 +51721,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
51721
51721
|
this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
|
|
51722
51722
|
this.htmlDocument.head.appendChild(script);
|
|
51723
51723
|
}
|
|
51724
|
-
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.
|
|
51724
|
+
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.69/dist/components.webpack.js");
|
|
51725
51725
|
});
|
|
51726
51726
|
}
|
|
51727
51727
|
addStyleSheet(file) {
|
|
@@ -52383,7 +52383,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
52383
52383
|
icon: "fad fa-globe-pointer",
|
|
52384
52384
|
text: "View Site"
|
|
52385
52385
|
}), XNode.create("a", {
|
|
52386
|
-
href: apiPath(`/api/site/draft/${this.webSite.folderID}
|
|
52386
|
+
href: Bind.oneWay(() => apiPath(`/api/site/draft/${this.webSite.folderID}/${this.selectedFile.name}`)),
|
|
52387
52387
|
target: "_blank"
|
|
52388
52388
|
}, XNode.create(EditIconTextButton, {
|
|
52389
52389
|
icon: "fad fa-globe-pointer",
|
|
@@ -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);
|