@social-mail/social-mail-client 1.8.307 → 1.8.308
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 +34 -24
- 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/menu/MenuService.d.ts +2 -0
- package/dist/common/menu/MenuService.d.ts.map +1 -1
- package/dist/common/menu/MenuService.js +11 -4
- package/dist/common/menu/MenuService.js.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.d.ts.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.js +8 -8
- package/dist/common/pages/files/service/CloudFileService.js.map +1 -1
- package/dist/common/pages/mailboxes/services/MailboxService.d.ts.map +1 -1
- package/dist/common/pages/mailboxes/services/MailboxService.js +15 -12
- package/dist/common/pages/mailboxes/services/MailboxService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +34 -24
- 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 +39 -27
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.local.css +1 -1
- package/dist/web/AppIndex.pack.local.css.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 +0 -2
- package/dist/web/drawer/AppDrawer.d.ts.map +1 -1
- package/dist/web/drawer/AppDrawer.js +5 -3
- package/dist/web/drawer/AppDrawer.js.map +1 -1
- package/dist/web/drawer/AppDrawer.local.css +1 -1
- package/dist/web/drawer/AppDrawer.local.css.map +1 -1
- package/package.json +1 -1
- package/src/common/menu/MenuService.tsx +16 -4
- package/src/common/pages/files/service/CloudFileService.ts +11 -8
- package/src/common/pages/mailboxes/services/MailboxService.ts +16 -10
- package/src/web/drawer/AppDrawer.local.css +13 -0
- package/src/web/drawer/AppDrawer.tsx +6 -10
|
@@ -23494,14 +23494,14 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23494
23494
|
const userID = SocialMailApp.user.userID;
|
|
23495
23495
|
let q = this.entityService.query(WebSite);
|
|
23496
23496
|
if (search) {
|
|
23497
|
-
search = search + "%";
|
|
23497
|
+
search = "%" + search + "%";
|
|
23498
23498
|
q = q.where({
|
|
23499
23499
|
search
|
|
23500
23500
|
}, p => x => Sql.text.iLike(x.folder.name, p.search));
|
|
23501
23501
|
}
|
|
23502
|
-
const top = yield q.orderByDescending({
|
|
23502
|
+
const top = yield (search ? q : q.orderByDescending({
|
|
23503
23503
|
userID
|
|
23504
|
-
}, p => x => x.folder.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.currentVersionID).include(x => x.folder.creator).toPagedList({
|
|
23504
|
+
}, p => x => x.folder.userPins.some(s => p.userID === s.userID))).thenByDescending(x => x.currentVersionID).include(x => x.folder.creator).toPagedList({
|
|
23505
23505
|
size: 3,
|
|
23506
23506
|
count: false
|
|
23507
23507
|
});
|
|
@@ -23514,17 +23514,17 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23514
23514
|
site = void 0
|
|
23515
23515
|
} = {}) {
|
|
23516
23516
|
const userID = SocialMailApp.user.userID;
|
|
23517
|
-
let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.
|
|
23517
|
+
let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.path !== null);
|
|
23518
23518
|
if (search) {
|
|
23519
|
-
search = search + "%";
|
|
23519
|
+
search = "%" + search + "%";
|
|
23520
23520
|
q = q.where({
|
|
23521
23521
|
search
|
|
23522
23522
|
}, p => x => Sql.text.iLike(x.name, p.search));
|
|
23523
23523
|
}
|
|
23524
|
-
q = site ? q.where(x => x.contentType === "application/site") : q.where(x => x.contentType === "folder");
|
|
23525
|
-
const top = yield q.orderByDescending({
|
|
23524
|
+
q = site ? q.where(x => x.contentType === "application/site") : q.where(x => x.contentType === "folder" && x.parentID === null);
|
|
23525
|
+
const top = yield (search ? q : q.orderByDescending({
|
|
23526
23526
|
userID
|
|
23527
|
-
}, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).include(x => x.creator).toPagedList({
|
|
23527
|
+
}, p => x => x.userPins.some(s => p.userID === s.userID))).thenByDescending(x => x.dateUpdated).include(x => x.creator).toPagedList({
|
|
23528
23528
|
size: 3,
|
|
23529
23529
|
count: false
|
|
23530
23530
|
});
|
|
@@ -26768,25 +26768,28 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
26768
26768
|
search = (search + "%").toLowerCase();
|
|
26769
26769
|
q = q.where({
|
|
26770
26770
|
search
|
|
26771
|
-
}, p => x => Sql.text.like(x.emailAddress.name, p.search) || Sql.text.like(x.emailAddress.emailAddress, p.search));
|
|
26771
|
+
}, p => x => Sql.text.like(x.emailAddress.name, p.search) || Sql.text.like(x.emailAddress.emailAddress, p.search) || Sql.text.like(x.emailAddress.domain.name, p.search));
|
|
26772
26772
|
}
|
|
26773
26773
|
const {
|
|
26774
26774
|
userID
|
|
26775
26775
|
} = SocialMailApp.user;
|
|
26776
|
-
if (
|
|
26777
|
-
|
|
26778
|
-
|
|
26779
|
-
|
|
26780
|
-
|
|
26781
|
-
|
|
26782
|
-
|
|
26783
|
-
|
|
26776
|
+
if (!search) {
|
|
26777
|
+
if (isChannel) {
|
|
26778
|
+
const channels = yield q.include(x => x.emailAddress).where({
|
|
26779
|
+
isChannel
|
|
26780
|
+
}, p => x => x.isChannel === p.isChannel).orderByDescending(x => x.pendingModerationCount).toPagedList({
|
|
26781
|
+
size: 3,
|
|
26782
|
+
count: false
|
|
26783
|
+
});
|
|
26784
|
+
return channels.items;
|
|
26785
|
+
}
|
|
26784
26786
|
}
|
|
26785
|
-
|
|
26787
|
+
q = q.where({
|
|
26786
26788
|
isChannel
|
|
26787
|
-
}, p => x => x.isChannel === p.isChannel)
|
|
26789
|
+
}, p => x => x.isChannel === p.isChannel);
|
|
26790
|
+
const top = yield (search ? q.include(x => x.emailAddress) : q.include(x => x.emailAddress).orderByDescending({
|
|
26788
26791
|
userID
|
|
26789
|
-
}, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).toPagedList({
|
|
26792
|
+
}, p => x => x.userPins.some(s => p.userID === s.userID))).thenByDescending(x => x.dateUpdated).toPagedList({
|
|
26790
26793
|
size: 3,
|
|
26791
26794
|
count: false
|
|
26792
26795
|
});
|
|
@@ -41188,6 +41191,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
41188
41191
|
this.drives = [];
|
|
41189
41192
|
this.selectedObject = null;
|
|
41190
41193
|
this.search = null;
|
|
41194
|
+
this.showSearch = false;
|
|
41195
|
+
this.lastSearch = void 0;
|
|
41191
41196
|
setTimeout(() => this.load().catch(console.error), 1);
|
|
41192
41197
|
}
|
|
41193
41198
|
load() {
|
|
@@ -41196,6 +41201,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
41196
41201
|
mailboxService: ms,
|
|
41197
41202
|
cloudFileService: fs
|
|
41198
41203
|
} = this;
|
|
41204
|
+
if (this.lastSearch === search) {
|
|
41205
|
+
return;
|
|
41206
|
+
}
|
|
41207
|
+
this.lastSearch = search;
|
|
41199
41208
|
yield sleep(100, cancelToken);
|
|
41200
41209
|
if (cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.cancelled) {
|
|
41201
41210
|
return;
|
|
@@ -41210,14 +41219,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
41210
41219
|
}), fs.topSites({
|
|
41211
41220
|
search
|
|
41212
41221
|
})]);
|
|
41213
|
-
this.mailboxes.
|
|
41214
|
-
this.channels.
|
|
41215
|
-
this.drives.
|
|
41216
|
-
this.websites.
|
|
41222
|
+
this.mailboxes.remove(x => x !== this.selectedObject);
|
|
41223
|
+
this.channels.remove(x => x !== this.selectedObject);
|
|
41224
|
+
this.drives.remove(x => x !== this.selectedObject);
|
|
41225
|
+
this.websites.remove(x => x !== this.selectedObject);
|
|
41217
41226
|
this.add(this.mailboxes, ...mailboxes);
|
|
41218
41227
|
this.add(this.channels, ...channels);
|
|
41219
41228
|
this.add(this.drives, ...drives);
|
|
41220
41229
|
this.add(this.websites, ...websites);
|
|
41230
|
+
this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
|
|
41221
41231
|
});
|
|
41222
41232
|
}
|
|
41223
41233
|
addMailbox(mb) {
|