@social-mail/social-mail-client 1.0.53 → 1.0.55
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 +44 -9
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +7 -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/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/style/GlobalStyle.js +4 -0
- package/dist/style/GlobalStyle.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +585 -290
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +136 -12
- 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 +73 -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 +2 -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/node_modules/@web-atoms/data-styles/data-styles.css +60 -25
- 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/pages/mailboxes/services/MailboxService.ts +12 -0
- package/src/model/model.ts +24 -7
- package/src/style/GlobalStyle.ts +4 -0
- package/src/web/commands/AppCommands.ts +2 -2
- package/src/web/drawer/AppDrawer.tsx +62 -6
- package/src/web/page/files/FilesPage.tsx +1 -1
- package/src/web/page/files/FolderPage.tsx +3 -3
- package/src/web/page/files/service/CloudFileService.ts +21 -0
|
@@ -11881,6 +11881,10 @@ System.register(["@web-atoms/core/dist/core/types", "@web-atoms/core/dist/core/A
|
|
|
11881
11881
|
--media-bg-color: #9F33FF0F;
|
|
11882
11882
|
--font-size-small: 0.8125em;
|
|
11883
11883
|
|
|
11884
|
+
--hover-color: #b8b88b20;
|
|
11885
|
+
--hover-text-color: CanvasText;
|
|
11886
|
+
--selection-color: #b8b88b60;
|
|
11887
|
+
--selection-text-color: CanvasText;
|
|
11884
11888
|
--spacing: 5px;
|
|
11885
11889
|
--spacing-medium: 7px;
|
|
11886
11890
|
--spacing-large: 10px;
|
|
@@ -13223,7 +13227,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13223
13227
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13224
13228
|
"use strict";
|
|
13225
13229
|
|
|
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;
|
|
13230
|
+
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
13231
|
return {
|
|
13228
13232
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13229
13233
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13247,7 +13251,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13247
13251
|
fileSize: 0,
|
|
13248
13252
|
contentType: "",
|
|
13249
13253
|
isDeleted: false,
|
|
13250
|
-
isShared: false
|
|
13254
|
+
isShared: false,
|
|
13255
|
+
dateCreated: new DateTime()
|
|
13251
13256
|
}));
|
|
13252
13257
|
_export("AppFileVersion", AppFileVersion = new Model("AppFileVersion", ["versionID"], {
|
|
13253
13258
|
fileID: 0,
|
|
@@ -13391,7 +13396,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13391
13396
|
mailboxID: 0,
|
|
13392
13397
|
domainID: 0,
|
|
13393
13398
|
storage: 0,
|
|
13394
|
-
maxStorage: 0
|
|
13399
|
+
maxStorage: 0,
|
|
13400
|
+
dateUpdated: new DateTime()
|
|
13395
13401
|
}));
|
|
13396
13402
|
_export("MailboxEmail", MailboxEmail = new Model("MailboxEmail", ["mailboxID", "emailID"], {
|
|
13397
13403
|
mailboxID: 0,
|
|
@@ -13417,13 +13423,17 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13417
13423
|
multiFactor: false,
|
|
13418
13424
|
dateUpdated: new DateTime()
|
|
13419
13425
|
}));
|
|
13426
|
+
_export("UserPin", UserPin = new Model("UserPin", ["pinID"], {
|
|
13427
|
+
userID: 0
|
|
13428
|
+
}));
|
|
13420
13429
|
_export("UserRole", UserRole = new Model("UserRole", ["userID", "roleName"], {
|
|
13421
13430
|
userID: 0,
|
|
13422
13431
|
roleName: ""
|
|
13423
13432
|
}));
|
|
13424
13433
|
_export("UserMailbox", UserMailbox = new Model("UserMailbox", ["userID", "mailboxID"], {
|
|
13425
13434
|
userID: 0,
|
|
13426
|
-
mailboxID: 0
|
|
13435
|
+
mailboxID: 0,
|
|
13436
|
+
pinned: false
|
|
13427
13437
|
}));
|
|
13428
13438
|
_export("UserAuthFactorMethodArray", UserAuthFactorMethodArray = [{
|
|
13429
13439
|
"label": "totp",
|
|
@@ -18397,10 +18407,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
18397
18407
|
|
|
18398
18408
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/admin/pages/users/UserListPage");
|
|
18399
18409
|
|
|
18400
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../Sql"], function (_export, _context) {
|
|
18410
|
+
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
18411
|
"use strict";
|
|
18402
18412
|
|
|
18403
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Domain, Mailbox, Sql, MailboxService;
|
|
18413
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Domain, Mailbox, Sql, SocialMailApp, MailboxService;
|
|
18404
18414
|
return {
|
|
18405
18415
|
setters: [function (_tslib) {
|
|
18406
18416
|
__awaiter = _tslib.__awaiter;
|
|
@@ -18417,12 +18427,29 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
18417
18427
|
Mailbox = _modelModel.Mailbox;
|
|
18418
18428
|
}, function (_Sql) {
|
|
18419
18429
|
Sql = _Sql.Sql;
|
|
18430
|
+
}, function (_SocialMailApp) {
|
|
18431
|
+
SocialMailApp = _SocialMailApp.default;
|
|
18420
18432
|
}],
|
|
18421
18433
|
execute: function () {
|
|
18422
18434
|
MailboxService = class MailboxService {
|
|
18423
18435
|
domains() {
|
|
18424
18436
|
return this.entityService.query(Domain).toArray();
|
|
18425
18437
|
}
|
|
18438
|
+
top() {
|
|
18439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18440
|
+
const q = this.entityService.query(Mailbox);
|
|
18441
|
+
const {
|
|
18442
|
+
userID
|
|
18443
|
+
} = SocialMailApp.user;
|
|
18444
|
+
const top = yield q.include(x => x.emailAddress).orderByDescending({
|
|
18445
|
+
userID
|
|
18446
|
+
}, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).toPagedList({
|
|
18447
|
+
size: 3,
|
|
18448
|
+
count: false
|
|
18449
|
+
});
|
|
18450
|
+
return top.items;
|
|
18451
|
+
});
|
|
18452
|
+
}
|
|
18426
18453
|
list({
|
|
18427
18454
|
search = "",
|
|
18428
18455
|
start = 0,
|
|
@@ -24669,29 +24696,37 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
24669
24696
|
var XNode;
|
|
24670
24697
|
function MenuItem({
|
|
24671
24698
|
label,
|
|
24672
|
-
icon,
|
|
24699
|
+
icon = void 0,
|
|
24673
24700
|
click = undefined,
|
|
24701
|
+
title = label,
|
|
24702
|
+
description = void 0,
|
|
24674
24703
|
href = "",
|
|
24675
24704
|
commandLink = "",
|
|
24676
24705
|
target = undefined
|
|
24677
24706
|
}) {
|
|
24678
24707
|
return href || commandLink ? XNode.create("a", {
|
|
24679
24708
|
"data-layout": "menu-item",
|
|
24709
|
+
title: title,
|
|
24680
24710
|
"data-click-event": commandLink ? "route" : void 0,
|
|
24681
24711
|
href: href || commandLink,
|
|
24682
24712
|
target: target,
|
|
24683
24713
|
"event-click": click
|
|
24684
|
-
}, XNode.create("i", {
|
|
24714
|
+
}, icon && XNode.create("i", {
|
|
24685
24715
|
class: icon
|
|
24686
24716
|
}), XNode.create("span", {
|
|
24687
24717
|
text: label
|
|
24718
|
+
}), description && XNode.create("small", {
|
|
24719
|
+
text: description
|
|
24688
24720
|
})) : XNode.create("div", {
|
|
24721
|
+
title: title,
|
|
24689
24722
|
"data-layout": "menu-item",
|
|
24690
24723
|
"event-click": click
|
|
24691
|
-
}, XNode.create("i", {
|
|
24724
|
+
}, icon && XNode.create("i", {
|
|
24692
24725
|
class: icon
|
|
24693
24726
|
}), XNode.create("span", {
|
|
24694
24727
|
text: label
|
|
24728
|
+
}), description && XNode.create("small", {
|
|
24729
|
+
text: description
|
|
24695
24730
|
}));
|
|
24696
24731
|
}
|
|
24697
24732
|
_export("default", MenuItem);
|