@social-mail/social-mail-client 1.8.304 → 1.8.305
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 +53 -10
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/SocialMailApp.d.ts.map +1 -1
- package/dist/common/SocialMailApp.js +2 -1
- package/dist/common/SocialMailApp.js.map +1 -1
- package/dist/common/menu/MenuService.d.ts +3 -1
- package/dist/common/menu/MenuService.d.ts.map +1 -1
- package/dist/common/menu/MenuService.js +23 -5
- package/dist/common/menu/MenuService.js.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.d.ts +7 -2
- package/dist/common/pages/files/service/CloudFileService.d.ts.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.js +20 -3
- package/dist/common/pages/files/service/CloudFileService.js.map +1 -1
- package/dist/common/pages/mailboxes/services/MailboxService.d.ts +2 -1
- package/dist/common/pages/mailboxes/services/MailboxService.d.ts.map +1 -1
- package/dist/common/pages/mailboxes/services/MailboxService.js +8 -1
- package/dist/common/pages/mailboxes/services/MailboxService.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +2 -1
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js +2 -1
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +53 -10
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +59 -11
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/drawer/AppDrawer.d.ts.map +1 -1
- package/dist/web/drawer/AppDrawer.js +6 -1
- package/dist/web/drawer/AppDrawer.js.map +1 -1
- package/package.json +1 -1
- package/src/common/SocialMailApp.ts +2 -0
- package/src/common/menu/MenuService.tsx +20 -5
- package/src/common/pages/files/service/CloudFileService.ts +11 -3
- package/src/common/pages/mailboxes/services/MailboxService.ts +13 -2
- package/src/web/drawer/AppDrawer.tsx +5 -1
|
@@ -19416,7 +19416,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19416
19416
|
System.register([], function (_export, _context) {
|
|
19417
19417
|
"use strict";
|
|
19418
19418
|
|
|
19419
|
-
var SocialMailApp, _a, socialMail;
|
|
19419
|
+
var SocialMailApp, _a, _b, socialMail;
|
|
19420
19420
|
return {
|
|
19421
19421
|
setters: [],
|
|
19422
19422
|
execute: function () {
|
|
@@ -19424,6 +19424,7 @@ System.register([], function (_export, _context) {
|
|
|
19424
19424
|
path: "/",
|
|
19425
19425
|
name: "Social Mail"
|
|
19426
19426
|
};
|
|
19427
|
+
(_b = socialMail.links) !== null && _b !== void 0 ? _b : socialMail.links = {};
|
|
19427
19428
|
SocialMailApp = class SocialMailApp {
|
|
19428
19429
|
static get isAdmin() {
|
|
19429
19430
|
var _a;
|
|
@@ -24785,9 +24786,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
24785
24786
|
}
|
|
24786
24787
|
top() {
|
|
24787
24788
|
return __awaiter(this, arguments, void 0, function* ({
|
|
24789
|
+
search = void 0,
|
|
24788
24790
|
isChannel = false
|
|
24789
24791
|
} = {}) {
|
|
24790
|
-
|
|
24792
|
+
let q = this.entityService.query(Mailbox);
|
|
24793
|
+
if (search) {
|
|
24794
|
+
search = (search + "%").toLowerCase();
|
|
24795
|
+
q = q.where({
|
|
24796
|
+
search
|
|
24797
|
+
}, p => x => Sql.text.like(x.emailAddress.name, p.search) || Sql.text.like(x.emailAddress.emailAddress, p.search));
|
|
24798
|
+
}
|
|
24791
24799
|
const {
|
|
24792
24800
|
userID
|
|
24793
24801
|
} = SocialMailApp.user;
|
|
@@ -25006,9 +25014,17 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
25006
25014
|
hideActivityIndicator = true;
|
|
25007
25015
|
CloudFileService = class CloudFileService {
|
|
25008
25016
|
topSites() {
|
|
25009
|
-
return __awaiter(this,
|
|
25017
|
+
return __awaiter(this, arguments, void 0, function* ({
|
|
25018
|
+
search = void 0
|
|
25019
|
+
} = {}) {
|
|
25010
25020
|
const userID = SocialMailApp.user.userID;
|
|
25011
|
-
|
|
25021
|
+
let q = this.entityService.query(WebSite);
|
|
25022
|
+
if (search) {
|
|
25023
|
+
search = search + "%";
|
|
25024
|
+
q = q.where({
|
|
25025
|
+
search
|
|
25026
|
+
}, p => x => Sql.text.iLike(x.folder.name, p.search));
|
|
25027
|
+
}
|
|
25012
25028
|
const top = yield q.orderByDescending({
|
|
25013
25029
|
userID
|
|
25014
25030
|
}, p => x => x.folder.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.currentVersionID).include(x => x.folder.creator).toPagedList({
|
|
@@ -25019,9 +25035,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
25019
25035
|
});
|
|
25020
25036
|
}
|
|
25021
25037
|
top() {
|
|
25022
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
25038
|
+
return __awaiter(this, arguments, void 0, function* ({
|
|
25039
|
+
search = void 0,
|
|
25040
|
+
site = void 0
|
|
25041
|
+
} = {}) {
|
|
25023
25042
|
const userID = SocialMailApp.user.userID;
|
|
25024
25043
|
let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.parentID === null && x.path !== null);
|
|
25044
|
+
if (search) {
|
|
25045
|
+
search = search + "%";
|
|
25046
|
+
q = q.where({
|
|
25047
|
+
search
|
|
25048
|
+
}, p => x => Sql.text.iLike(x.name, p.search));
|
|
25049
|
+
}
|
|
25025
25050
|
q = site ? q.where(x => x.contentType === "application/site") : q.where(x => x.contentType === "folder");
|
|
25026
25051
|
const top = yield q.orderByDescending({
|
|
25027
25052
|
userID
|
|
@@ -25366,10 +25391,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
25366
25391
|
|
|
25367
25392
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/menu/MenuService");
|
|
25368
25393
|
|
|
25369
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../model/model", "../../services/EntityService", "../pages/mailboxes/services/MailboxService", "../pages/files/service/CloudFileService"], function (_export, _context) {
|
|
25394
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../model/model", "../../services/EntityService", "../pages/mailboxes/services/MailboxService", "../pages/files/service/CloudFileService", "@web-atoms/core/dist/core/sleep"], function (_export, _context) {
|
|
25370
25395
|
"use strict";
|
|
25371
25396
|
|
|
25372
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, canMenuBeClosed, MenuService;
|
|
25397
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, sleep, canMenuBeClosed, MenuService;
|
|
25373
25398
|
return {
|
|
25374
25399
|
setters: [function (_tslib) {
|
|
25375
25400
|
__awaiter = _tslib.__awaiter;
|
|
@@ -25387,6 +25412,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
25387
25412
|
MailboxService = _pagesMailboxesServicesMailboxService.default;
|
|
25388
25413
|
}, function (_pagesFilesServiceCloudFileService) {
|
|
25389
25414
|
CloudFileService = _pagesFilesServiceCloudFileService.default;
|
|
25415
|
+
}, function (_webAtomsCoreDistCoreSleep) {
|
|
25416
|
+
sleep = _webAtomsCoreDistCoreSleep.default;
|
|
25390
25417
|
}],
|
|
25391
25418
|
execute: function () {
|
|
25392
25419
|
_export("canMenuBeClosed", canMenuBeClosed = Symbol("canBeClosed"));
|
|
@@ -25397,17 +25424,33 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
25397
25424
|
this.channels = [];
|
|
25398
25425
|
this.drives = [];
|
|
25399
25426
|
this.selectedObject = null;
|
|
25427
|
+
this.search = null;
|
|
25400
25428
|
setTimeout(() => this.load().catch(console.error), 1);
|
|
25401
25429
|
}
|
|
25402
25430
|
load() {
|
|
25403
|
-
return __awaiter(this, void 0, void 0,
|
|
25431
|
+
return __awaiter(this, arguments, void 0, function* (search = void 0, cancelToken = void 0) {
|
|
25404
25432
|
const {
|
|
25405
25433
|
mailboxService: ms,
|
|
25406
25434
|
cloudFileService: fs
|
|
25407
25435
|
} = this;
|
|
25408
|
-
|
|
25436
|
+
yield sleep(100, cancelToken);
|
|
25437
|
+
if (cancelToken.cancelled) {
|
|
25438
|
+
return;
|
|
25439
|
+
}
|
|
25440
|
+
const [mailboxes, channels, drives, websites] = yield Promise.all([ms.top({
|
|
25441
|
+
search
|
|
25442
|
+
}), ms.top({
|
|
25443
|
+
search,
|
|
25409
25444
|
isChannel: true
|
|
25410
|
-
}), fs.top(
|
|
25445
|
+
}), fs.top({
|
|
25446
|
+
search
|
|
25447
|
+
}), fs.topSites({
|
|
25448
|
+
search
|
|
25449
|
+
})]);
|
|
25450
|
+
this.mailboxes.clear();
|
|
25451
|
+
this.channels.clear();
|
|
25452
|
+
this.drives.clear();
|
|
25453
|
+
this.websites.clear();
|
|
25411
25454
|
this.add(this.mailboxes, ...mailboxes);
|
|
25412
25455
|
this.add(this.channels, ...channels);
|
|
25413
25456
|
this.add(this.drives, ...drives);
|