@social-mail/social-mail-client 1.8.307 → 1.8.309
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/properties/groups/TextPropertyEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/TextPropertyEditor.js +9 -0
- package/dist/site-editor/properties/groups/TextPropertyEditor.js.map +1 -1
- package/dist/site-editor/suggestions/editorSuggestions.d.ts +12 -0
- package/dist/site-editor/suggestions/editorSuggestions.d.ts.map +1 -1
- package/dist/site-editor/suggestions/properties/text.d.ts +12 -0
- package/dist/site-editor/suggestions/properties/text.d.ts.map +1 -1
- package/dist/site-editor/suggestions/properties/text.js +3 -0
- package/dist/site-editor/suggestions/properties/text.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +46 -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/site-editor/properties/groups/TextPropertyEditor.tsx +12 -0
- package/src/site-editor/suggestions/properties/text.ts +3 -0
- package/src/web/drawer/AppDrawer.local.css +13 -0
- package/src/web/drawer/AppDrawer.tsx +6 -10
- package/styler-lite/styler.css +1 -1
- package/styler-lite/styler.css.map +1 -1
- package/styler-lite/styles/properties/text/text.css +18 -0
|
@@ -21800,25 +21800,28 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
21800
21800
|
search = (search + "%").toLowerCase();
|
|
21801
21801
|
q = q.where({
|
|
21802
21802
|
search
|
|
21803
|
-
}, p => x => Sql.text.like(x.emailAddress.name, p.search) || Sql.text.like(x.emailAddress.emailAddress, p.search));
|
|
21803
|
+
}, 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));
|
|
21804
21804
|
}
|
|
21805
21805
|
const {
|
|
21806
21806
|
userID
|
|
21807
21807
|
} = SocialMailApp.user;
|
|
21808
|
-
if (
|
|
21809
|
-
|
|
21810
|
-
|
|
21811
|
-
|
|
21812
|
-
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
|
|
21808
|
+
if (!search) {
|
|
21809
|
+
if (isChannel) {
|
|
21810
|
+
const channels = yield q.include(x => x.emailAddress).where({
|
|
21811
|
+
isChannel
|
|
21812
|
+
}, p => x => x.isChannel === p.isChannel).orderByDescending(x => x.pendingModerationCount).toPagedList({
|
|
21813
|
+
size: 3,
|
|
21814
|
+
count: false
|
|
21815
|
+
});
|
|
21816
|
+
return channels.items;
|
|
21817
|
+
}
|
|
21816
21818
|
}
|
|
21817
|
-
|
|
21819
|
+
q = q.where({
|
|
21818
21820
|
isChannel
|
|
21819
|
-
}, p => x => x.isChannel === p.isChannel)
|
|
21821
|
+
}, p => x => x.isChannel === p.isChannel);
|
|
21822
|
+
const top = yield (search ? q.include(x => x.emailAddress) : q.include(x => x.emailAddress).orderByDescending({
|
|
21820
21823
|
userID
|
|
21821
|
-
}, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).toPagedList({
|
|
21824
|
+
}, p => x => x.userPins.some(s => p.userID === s.userID))).thenByDescending(x => x.dateUpdated).toPagedList({
|
|
21822
21825
|
size: 3,
|
|
21823
21826
|
count: false
|
|
21824
21827
|
});
|
|
@@ -37461,14 +37464,14 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
37461
37464
|
const userID = SocialMailApp.user.userID;
|
|
37462
37465
|
let q = this.entityService.query(WebSite);
|
|
37463
37466
|
if (search) {
|
|
37464
|
-
search = search + "%";
|
|
37467
|
+
search = "%" + search + "%";
|
|
37465
37468
|
q = q.where({
|
|
37466
37469
|
search
|
|
37467
37470
|
}, p => x => Sql.text.iLike(x.folder.name, p.search));
|
|
37468
37471
|
}
|
|
37469
|
-
const top = yield q.orderByDescending({
|
|
37472
|
+
const top = yield (search ? q : q.orderByDescending({
|
|
37470
37473
|
userID
|
|
37471
|
-
}, p => x => x.folder.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.currentVersionID).include(x => x.folder.creator).toPagedList({
|
|
37474
|
+
}, p => x => x.folder.userPins.some(s => p.userID === s.userID))).thenByDescending(x => x.currentVersionID).include(x => x.folder.creator).toPagedList({
|
|
37472
37475
|
size: 3,
|
|
37473
37476
|
count: false
|
|
37474
37477
|
});
|
|
@@ -37481,17 +37484,17 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
37481
37484
|
site = void 0
|
|
37482
37485
|
} = {}) {
|
|
37483
37486
|
const userID = SocialMailApp.user.userID;
|
|
37484
|
-
let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.
|
|
37487
|
+
let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.path !== null);
|
|
37485
37488
|
if (search) {
|
|
37486
|
-
search = search + "%";
|
|
37489
|
+
search = "%" + search + "%";
|
|
37487
37490
|
q = q.where({
|
|
37488
37491
|
search
|
|
37489
37492
|
}, p => x => Sql.text.iLike(x.name, p.search));
|
|
37490
37493
|
}
|
|
37491
|
-
q = site ? q.where(x => x.contentType === "application/site") : q.where(x => x.contentType === "folder");
|
|
37492
|
-
const top = yield q.orderByDescending({
|
|
37494
|
+
q = site ? q.where(x => x.contentType === "application/site") : q.where(x => x.contentType === "folder" && x.parentID === null);
|
|
37495
|
+
const top = yield (search ? q : q.orderByDescending({
|
|
37493
37496
|
userID
|
|
37494
|
-
}, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).include(x => x.creator).toPagedList({
|
|
37497
|
+
}, p => x => x.userPins.some(s => p.userID === s.userID))).thenByDescending(x => x.dateUpdated).include(x => x.creator).toPagedList({
|
|
37495
37498
|
size: 3,
|
|
37496
37499
|
count: false
|
|
37497
37500
|
});
|
|
@@ -38042,6 +38045,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
38042
38045
|
this.drives = [];
|
|
38043
38046
|
this.selectedObject = null;
|
|
38044
38047
|
this.search = null;
|
|
38048
|
+
this.showSearch = false;
|
|
38049
|
+
this.lastSearch = void 0;
|
|
38045
38050
|
setTimeout(() => this.load().catch(console.error), 1);
|
|
38046
38051
|
}
|
|
38047
38052
|
load() {
|
|
@@ -38050,6 +38055,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
38050
38055
|
mailboxService: ms,
|
|
38051
38056
|
cloudFileService: fs
|
|
38052
38057
|
} = this;
|
|
38058
|
+
if (this.lastSearch === search) {
|
|
38059
|
+
return;
|
|
38060
|
+
}
|
|
38061
|
+
this.lastSearch = search;
|
|
38053
38062
|
yield sleep(100, cancelToken);
|
|
38054
38063
|
if (cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.cancelled) {
|
|
38055
38064
|
return;
|
|
@@ -38064,14 +38073,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
38064
38073
|
}), fs.topSites({
|
|
38065
38074
|
search
|
|
38066
38075
|
})]);
|
|
38067
|
-
this.mailboxes.
|
|
38068
|
-
this.channels.
|
|
38069
|
-
this.drives.
|
|
38070
|
-
this.websites.
|
|
38076
|
+
this.mailboxes.remove(x => x !== this.selectedObject);
|
|
38077
|
+
this.channels.remove(x => x !== this.selectedObject);
|
|
38078
|
+
this.drives.remove(x => x !== this.selectedObject);
|
|
38079
|
+
this.websites.remove(x => x !== this.selectedObject);
|
|
38071
38080
|
this.add(this.mailboxes, ...mailboxes);
|
|
38072
38081
|
this.add(this.channels, ...channels);
|
|
38073
38082
|
this.add(this.drives, ...drives);
|
|
38074
38083
|
this.add(this.websites, ...websites);
|
|
38084
|
+
this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
|
|
38075
38085
|
});
|
|
38076
38086
|
}
|
|
38077
38087
|
addMailbox(mb) {
|
|
@@ -47718,7 +47728,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../common/Socia
|
|
|
47718
47728
|
_export("default", AppDrawer = class AppDrawer extends BaseDrawer {
|
|
47719
47729
|
init() {
|
|
47720
47730
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47721
|
-
this.user = SocialMailApp.user;
|
|
47722
47731
|
this.renderer = XNode.create("div", null, XNode.create("header", null, SocialMailApp.config.name), XNode.create("section", {
|
|
47723
47732
|
other: Bind.oneWayAsync((c, e, cancelToken) => this.menuService.load(this.menuService.search, cancelToken))
|
|
47724
47733
|
}, SocialMailApp.config.links.home !== "/" ? XNode.create(MenuItem, {
|
|
@@ -47729,10 +47738,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../common/Socia
|
|
|
47729
47738
|
icon: "fas fa-home",
|
|
47730
47739
|
label: "Home",
|
|
47731
47740
|
commandLink: AppCommands.openHome.displayRoute({})
|
|
47732
|
-
}), XNode.create("
|
|
47741
|
+
}), XNode.create("div", {
|
|
47742
|
+
class: "menu-item-search",
|
|
47743
|
+
"style-visible": Bind.oneWay(() => this.menuService.showSearch)
|
|
47744
|
+
}, XNode.create("input", {
|
|
47733
47745
|
type: "search",
|
|
47734
47746
|
value: Bind.twoWaysImmediate(() => this.menuService.search)
|
|
47735
|
-
}), XNode.create(ExpanderMenu, {
|
|
47747
|
+
})), XNode.create(ExpanderMenu, {
|
|
47736
47748
|
isExpanded: true
|
|
47737
47749
|
}, XNode.create(MenuItem, {
|
|
47738
47750
|
icon: "fas fa-envelope",
|