@social-mail/social-mail-client 1.0.49 → 1.0.50
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 +18 -10
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/controls/drag-drop/FilesDragDrop.js +19 -3
- package/dist/common/controls/drag-drop/FilesDragDrop.js.map +1 -1
- package/dist/common/controls/tree/TreeView.js +7 -2
- package/dist/common/controls/tree/TreeView.js.map +1 -1
- package/dist/model/model.js.map +1 -1
- package/dist/services/socket/sockets.js +3 -1
- package/dist/services/socket/sockets.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +208 -23
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +16 -6
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/files/FolderPage.js +21 -4
- package/dist/web/page/files/FolderPage.js.map +1 -1
- package/dist/web/page/files/service/CloudFileService.js +11 -6
- package/dist/web/page/files/service/CloudFileService.js.map +1 -1
- package/dist/web/page/mails/MailsPage.js +7 -7
- package/dist/web/page/mails/MailsPage.js.map +1 -1
- package/dist/web/page/mails/service/MailService.js +8 -2
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/common/controls/drag-drop/FilesDragDrop.ts +18 -3
- package/src/common/controls/tree/TreeView.tsx +8 -1
- package/src/model/model.ts +1 -0
- package/src/services/socket/sockets.ts +3 -1
- package/src/web/page/files/FolderPage.tsx +5 -5
- package/src/web/page/files/service/CloudFileService.ts +13 -4
- package/src/web/page/mails/MailsPage.tsx +8 -7
- package/src/web/page/mails/service/MailService.ts +6 -2
|
@@ -18762,9 +18762,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18762
18762
|
}],
|
|
18763
18763
|
execute: function () {
|
|
18764
18764
|
MailService = class MailService {
|
|
18765
|
-
mailboxes() {
|
|
18765
|
+
mailboxes(mailboxID) {
|
|
18766
18766
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18767
|
-
|
|
18767
|
+
let q = this.entityService.query(Mailbox);
|
|
18768
|
+
if (mailboxID) {
|
|
18769
|
+
q = q.orderByDescending({
|
|
18770
|
+
mailboxID
|
|
18771
|
+
}, p => x => x.mailboxID === p.mailboxID);
|
|
18772
|
+
}
|
|
18773
|
+
return q.include(x => x.emailAddress).toArray();
|
|
18768
18774
|
});
|
|
18769
18775
|
}
|
|
18770
18776
|
list({
|
|
@@ -23764,8 +23770,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomDisposableList", "@web-
|
|
|
23764
23770
|
_export("MailboxSocket", MailboxSocket = class MailboxSocket {
|
|
23765
23771
|
join(room, events) {
|
|
23766
23772
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23773
|
+
const disposables = new AtomDisposableList();
|
|
23767
23774
|
const ns = SocketNamespace.for("mailbox");
|
|
23768
|
-
|
|
23775
|
+
ns.connect(room, events).then(v => disposables.add(v), console.error);
|
|
23776
|
+
return disposables;
|
|
23769
23777
|
});
|
|
23770
23778
|
}
|
|
23771
23779
|
});
|
|
@@ -24156,20 +24164,15 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
24156
24164
|
init() {
|
|
24157
24165
|
var _a, _b;
|
|
24158
24166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24159
|
-
const
|
|
24167
|
+
const mailboxID = this.parameters.id;
|
|
24168
|
+
const mailboxes = yield this.mailService.mailboxes(mailboxID);
|
|
24160
24169
|
this.element.className = css;
|
|
24161
24170
|
this.actionRenderer = () => XNode.create("i", {
|
|
24162
24171
|
class: "fas fa-plus",
|
|
24163
24172
|
"data-click-event": "compose-email"
|
|
24164
24173
|
});
|
|
24165
|
-
const mailboxID = this.parameters.id;
|
|
24166
24174
|
const first = (_a = mailboxID ? mailboxes.find(m => m.mailboxID === mailboxID) : null) !== null && _a !== void 0 ? _a : mailboxes[0];
|
|
24167
24175
|
this.currentMailboxID = first.mailboxID;
|
|
24168
|
-
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailboxID.toString(), {
|
|
24169
|
-
newMail: (_, emailAddressID, emailID) => {
|
|
24170
|
-
this.version++;
|
|
24171
|
-
}
|
|
24172
|
-
}));
|
|
24173
24176
|
document.title = (_b = first === null || first === void 0 ? void 0 : first.emailAddress) === null || _b === void 0 ? void 0 : _b.name;
|
|
24174
24177
|
this.titleRenderer = () => XNode.create("div", {
|
|
24175
24178
|
"data-layout": "row"
|
|
@@ -24210,6 +24213,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
24210
24213
|
title: `Unread ${item.unread} out of ${item.total}`
|
|
24211
24214
|
}))
|
|
24212
24215
|
})));
|
|
24216
|
+
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailboxID.toString(), {
|
|
24217
|
+
newMail: (_, emailAddressID, emailID) => {
|
|
24218
|
+
this.version++;
|
|
24219
|
+
}
|
|
24220
|
+
}));
|
|
24213
24221
|
});
|
|
24214
24222
|
}
|
|
24215
24223
|
mailsAvailable() {
|