@social-mail/social-mail-client 1.0.52 → 1.0.54
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 +40 -9
- 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/menu/MenuItem.js +11 -3
- package/dist/common/controls/menu/MenuItem.js.map +1 -1
- package/dist/common/date/DateFormats.js +95 -0
- package/dist/common/date/DateFormats.js.map +1 -0
- package/dist/common/pages/mailboxes/services/MailboxService.js +19 -2
- package/dist/common/pages/mailboxes/services/MailboxService.js.map +1 -1
- package/dist/model/model.js +10 -4
- package/dist/model/model.js.map +1 -1
- package/dist/services/files/FileShareService.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +669 -295
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +134 -14
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/commands/AppCommands.js +2 -2
- package/dist/web/commands/AppCommands.js.map +1 -1
- package/dist/web/drawer/AppDrawer.js +51 -11
- package/dist/web/drawer/AppDrawer.js.map +1 -1
- package/dist/web/page/files/FilesPage.js +3 -1
- package/dist/web/page/files/FilesPage.js.map +1 -1
- package/dist/web/page/files/FolderPage.js +5 -2
- package/dist/web/page/files/FolderPage.js.map +1 -1
- package/dist/web/page/files/service/CloudFileService.js +23 -2
- package/dist/web/page/files/service/CloudFileService.js.map +1 -1
- package/dist/web/page/files/shares/EditSharesPage.js +8 -4
- package/dist/web/page/files/shares/EditSharesPage.js.map +1 -1
- package/node_modules/@web-atoms/data-styles/data-styles.css +42 -8
- package/node_modules/@web-atoms/data-styles/package.json +1 -1
- package/package.json +2 -2
- package/src/common/controls/menu/MenuItem.tsx +12 -4
- package/src/common/date/DateFormats.ts +74 -0
- package/src/common/pages/mailboxes/services/MailboxService.ts +12 -0
- package/src/model/model.ts +24 -7
- package/src/services/files/FileShareService.ts +1 -1
- package/src/web/commands/AppCommands.ts +2 -2
- package/src/web/drawer/AppDrawer.tsx +42 -6
- package/src/web/page/files/FilesPage.tsx +1 -1
- package/src/web/page/files/FolderPage.tsx +4 -3
- package/src/web/page/files/service/CloudFileService.ts +21 -0
- package/src/web/page/files/shares/EditSharesPage.tsx +3 -2
|
@@ -13223,7 +13223,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13223
13223
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13224
13224
|
"use strict";
|
|
13225
13225
|
|
|
13226
|
-
var DateTime, Model, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, Mailbox, MailboxEmail, MailboxThread, MailboxThreadEmail, User, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, LoginSession, Tag;
|
|
13226
|
+
var DateTime, Model, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, Mailbox, MailboxEmail, MailboxThread, MailboxThreadEmail, User, UserPin, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, LoginSession, Tag;
|
|
13227
13227
|
return {
|
|
13228
13228
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13229
13229
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13247,7 +13247,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13247
13247
|
fileSize: 0,
|
|
13248
13248
|
contentType: "",
|
|
13249
13249
|
isDeleted: false,
|
|
13250
|
-
isShared: false
|
|
13250
|
+
isShared: false,
|
|
13251
|
+
dateCreated: new DateTime()
|
|
13251
13252
|
}));
|
|
13252
13253
|
_export("AppFileVersion", AppFileVersion = new Model("AppFileVersion", ["versionID"], {
|
|
13253
13254
|
fileID: 0,
|
|
@@ -13391,7 +13392,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13391
13392
|
mailboxID: 0,
|
|
13392
13393
|
domainID: 0,
|
|
13393
13394
|
storage: 0,
|
|
13394
|
-
maxStorage: 0
|
|
13395
|
+
maxStorage: 0,
|
|
13396
|
+
dateUpdated: new DateTime()
|
|
13395
13397
|
}));
|
|
13396
13398
|
_export("MailboxEmail", MailboxEmail = new Model("MailboxEmail", ["mailboxID", "emailID"], {
|
|
13397
13399
|
mailboxID: 0,
|
|
@@ -13417,13 +13419,17 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13417
13419
|
multiFactor: false,
|
|
13418
13420
|
dateUpdated: new DateTime()
|
|
13419
13421
|
}));
|
|
13422
|
+
_export("UserPin", UserPin = new Model("UserPin", ["pinID"], {
|
|
13423
|
+
userID: 0
|
|
13424
|
+
}));
|
|
13420
13425
|
_export("UserRole", UserRole = new Model("UserRole", ["userID", "roleName"], {
|
|
13421
13426
|
userID: 0,
|
|
13422
13427
|
roleName: ""
|
|
13423
13428
|
}));
|
|
13424
13429
|
_export("UserMailbox", UserMailbox = new Model("UserMailbox", ["userID", "mailboxID"], {
|
|
13425
13430
|
userID: 0,
|
|
13426
|
-
mailboxID: 0
|
|
13431
|
+
mailboxID: 0,
|
|
13432
|
+
pinned: false
|
|
13427
13433
|
}));
|
|
13428
13434
|
_export("UserAuthFactorMethodArray", UserAuthFactorMethodArray = [{
|
|
13429
13435
|
"label": "totp",
|
|
@@ -18397,10 +18403,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
18397
18403
|
|
|
18398
18404
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/admin/pages/users/UserListPage");
|
|
18399
18405
|
|
|
18400
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../Sql"], function (_export, _context) {
|
|
18406
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../Sql", "../../../SocialMailApp"], function (_export, _context) {
|
|
18401
18407
|
"use strict";
|
|
18402
18408
|
|
|
18403
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Domain, Mailbox, Sql, MailboxService;
|
|
18409
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Domain, Mailbox, Sql, SocialMailApp, MailboxService;
|
|
18404
18410
|
return {
|
|
18405
18411
|
setters: [function (_tslib) {
|
|
18406
18412
|
__awaiter = _tslib.__awaiter;
|
|
@@ -18417,12 +18423,29 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
18417
18423
|
Mailbox = _modelModel.Mailbox;
|
|
18418
18424
|
}, function (_Sql) {
|
|
18419
18425
|
Sql = _Sql.Sql;
|
|
18426
|
+
}, function (_SocialMailApp) {
|
|
18427
|
+
SocialMailApp = _SocialMailApp.default;
|
|
18420
18428
|
}],
|
|
18421
18429
|
execute: function () {
|
|
18422
18430
|
MailboxService = class MailboxService {
|
|
18423
18431
|
domains() {
|
|
18424
18432
|
return this.entityService.query(Domain).toArray();
|
|
18425
18433
|
}
|
|
18434
|
+
top() {
|
|
18435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18436
|
+
const q = this.entityService.query(Mailbox);
|
|
18437
|
+
const {
|
|
18438
|
+
userID
|
|
18439
|
+
} = SocialMailApp.user;
|
|
18440
|
+
const top = yield q.include(x => x.emailAddress).orderByDescending({
|
|
18441
|
+
userID
|
|
18442
|
+
}, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).toPagedList({
|
|
18443
|
+
size: 3,
|
|
18444
|
+
count: false
|
|
18445
|
+
});
|
|
18446
|
+
return top.items;
|
|
18447
|
+
});
|
|
18448
|
+
}
|
|
18426
18449
|
list({
|
|
18427
18450
|
search = "",
|
|
18428
18451
|
start = 0,
|
|
@@ -24669,29 +24692,37 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
24669
24692
|
var XNode;
|
|
24670
24693
|
function MenuItem({
|
|
24671
24694
|
label,
|
|
24672
|
-
icon,
|
|
24695
|
+
icon = void 0,
|
|
24673
24696
|
click = undefined,
|
|
24697
|
+
title = label,
|
|
24698
|
+
description = void 0,
|
|
24674
24699
|
href = "",
|
|
24675
24700
|
commandLink = "",
|
|
24676
24701
|
target = undefined
|
|
24677
24702
|
}) {
|
|
24678
24703
|
return href || commandLink ? XNode.create("a", {
|
|
24679
24704
|
"data-layout": "menu-item",
|
|
24705
|
+
title: title,
|
|
24680
24706
|
"data-click-event": commandLink ? "route" : void 0,
|
|
24681
24707
|
href: href || commandLink,
|
|
24682
24708
|
target: target,
|
|
24683
24709
|
"event-click": click
|
|
24684
|
-
}, XNode.create("i", {
|
|
24710
|
+
}, icon && XNode.create("i", {
|
|
24685
24711
|
class: icon
|
|
24686
24712
|
}), XNode.create("span", {
|
|
24687
24713
|
text: label
|
|
24714
|
+
}), description && XNode.create("small", {
|
|
24715
|
+
text: description
|
|
24688
24716
|
})) : XNode.create("div", {
|
|
24717
|
+
title: title,
|
|
24689
24718
|
"data-layout": "menu-item",
|
|
24690
24719
|
"event-click": click
|
|
24691
|
-
}, XNode.create("i", {
|
|
24720
|
+
}, icon && XNode.create("i", {
|
|
24692
24721
|
class: icon
|
|
24693
24722
|
}), XNode.create("span", {
|
|
24694
24723
|
text: label
|
|
24724
|
+
}), description && XNode.create("small", {
|
|
24725
|
+
text: description
|
|
24695
24726
|
}));
|
|
24696
24727
|
}
|
|
24697
24728
|
_export("default", MenuItem);
|