@social-mail/social-mail-client 1.0.34 → 1.0.36
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 +29 -30
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +5 -5
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/mailboxes/services/MailboxService.js +6 -3
- package/dist/common/pages/mailboxes/services/MailboxService.js.map +1 -1
- package/dist/model/model.js +11 -18
- package/dist/model/model.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +29 -30
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +4 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ComposeMailPage.js +5 -5
- package/dist/web/page/mails/ComposeMailPage.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +5 -2
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +2 -2
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/admin/pages/relays/edit/EditRelayPage.tsx +1 -1
- package/src/common/pages/mailboxes/services/MailboxService.ts +8 -4
- package/src/model/model.ts +23 -22
- package/src/web/page/mails/ComposeMailPage.tsx +4 -4
- package/src/web/page/mails/ConversationPage.tsx +5 -2
- package/src/web/page/mails/service/ConversationService.tsx +2 -2
|
@@ -13188,7 +13188,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13188
13188
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13189
13189
|
"use strict";
|
|
13190
13190
|
|
|
13191
|
-
var DateTime, Model, AppRole, AppFile, FileContent, Configuration, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress,
|
|
13191
|
+
var DateTime, Model, AppRole, AppFileContentDispositionArray, AppFile, 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;
|
|
13192
13192
|
return {
|
|
13193
13193
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13194
13194
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13199,12 +13199,19 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13199
13199
|
_export("AppRole", AppRole = new Model("AppRole", {
|
|
13200
13200
|
roleName: ""
|
|
13201
13201
|
}));
|
|
13202
|
+
_export("AppFileContentDispositionArray", AppFileContentDispositionArray = [{
|
|
13203
|
+
"label": "attachment",
|
|
13204
|
+
"value": "attachment"
|
|
13205
|
+
}, {
|
|
13206
|
+
"label": "inline",
|
|
13207
|
+
"value": "inline"
|
|
13208
|
+
}]);
|
|
13202
13209
|
_export("AppFile", AppFile = new Model("AppFile", {
|
|
13210
|
+
isFolder: false,
|
|
13203
13211
|
folder: "",
|
|
13204
|
-
|
|
13212
|
+
name: "",
|
|
13205
13213
|
fileSize: 0,
|
|
13206
|
-
contentType: ""
|
|
13207
|
-
fileContentID: 0
|
|
13214
|
+
contentType: ""
|
|
13208
13215
|
}));
|
|
13209
13216
|
_export("FileContent", FileContent = new Model("FileContent", {
|
|
13210
13217
|
contentHash: "",
|
|
@@ -13316,20 +13323,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13316
13323
|
emailAddress: "",
|
|
13317
13324
|
domainID: 0
|
|
13318
13325
|
}));
|
|
13319
|
-
_export("EmailAttachmentContentDispositionArray", EmailAttachmentContentDispositionArray = [{
|
|
13320
|
-
"label": "attachment",
|
|
13321
|
-
"value": "attachment"
|
|
13322
|
-
}, {
|
|
13323
|
-
"label": "inline",
|
|
13324
|
-
"value": "inline"
|
|
13325
|
-
}]);
|
|
13326
|
-
_export("EmailAttachment", EmailAttachment = new Model("EmailAttachment", {
|
|
13327
|
-
emailID: 0,
|
|
13328
|
-
appFileID: 0,
|
|
13329
|
-
fileName: "",
|
|
13330
|
-
contentType: "",
|
|
13331
|
-
contentDisposition: "attachment"
|
|
13332
|
-
}));
|
|
13333
13326
|
_export("Mailbox", Mailbox = new Model("Mailbox", {
|
|
13334
13327
|
mailboxID: 0,
|
|
13335
13328
|
domainID: 0,
|
|
@@ -18372,19 +18365,22 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
18372
18365
|
let q = this.entityService.query(Mailbox);
|
|
18373
18366
|
if (search) {
|
|
18374
18367
|
if (search.endsWith("@")) {
|
|
18375
|
-
search = search
|
|
18368
|
+
search = `${search}%`;
|
|
18376
18369
|
q = q.where({
|
|
18377
18370
|
search
|
|
18378
18371
|
}, p => x => Sql.text.like(x.emailAddress.emailAddress, p.search));
|
|
18379
18372
|
} else if (search.startsWith("@")) {
|
|
18380
|
-
search =
|
|
18373
|
+
search = `%${search}`;
|
|
18381
18374
|
q = q.where({
|
|
18382
18375
|
search
|
|
18383
18376
|
}, p => x => Sql.text.like(x.emailAddress.emailAddress, p.search));
|
|
18384
18377
|
} else {
|
|
18378
|
+
if (!search.includes("%")) {
|
|
18379
|
+
search = `%${search}%`;
|
|
18380
|
+
}
|
|
18385
18381
|
q = q.where({
|
|
18386
18382
|
search
|
|
18387
|
-
}, p => x => x.emailAddress.emailAddress
|
|
18383
|
+
}, p => x => Sql.text.like(x.emailAddress.emailAddress, p.search) || Sql.text.like(x.name, p.search));
|
|
18388
18384
|
}
|
|
18389
18385
|
}
|
|
18390
18386
|
return q.include(x => x.emailAddress).toPagedList({
|
|
@@ -19251,7 +19247,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
19251
19247
|
const cid = src.substring(4);
|
|
19252
19248
|
const a = mail.attachments.find(x => x.contentID === cid);
|
|
19253
19249
|
if (a) {
|
|
19254
|
-
iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.
|
|
19250
|
+
iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
|
|
19255
19251
|
}
|
|
19256
19252
|
}
|
|
19257
19253
|
continue;
|
|
@@ -19284,7 +19280,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
19284
19280
|
search
|
|
19285
19281
|
}, p => x => Sql.text.iLike(x.email.subject, p.search) || Sql.text.iLike(x.email.textBody, p.search));
|
|
19286
19282
|
}
|
|
19287
|
-
const emails = yield q.include(x => [x.email.recipients.forEach(r => r.emailAddress), x.email.attachments
|
|
19283
|
+
const emails = yield q.include(x => [x.email.recipients.forEach(r => r.emailAddress), x.email.attachments]).orderByDescending(x => x.emailID).toPagedList({
|
|
19288
19284
|
start,
|
|
19289
19285
|
size,
|
|
19290
19286
|
cancelToken
|
|
@@ -23001,7 +22997,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomBinder", "@web-atoms/co
|
|
|
23001
22997
|
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../common/controls/html/InlineHtmlEditorWithToolbar", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/Bind", "@web-atoms/web-controls/dist/basic/Form", "@web-atoms/web-controls/dist/basic/FormField", "../../../model/model", "@web-atoms/web-controls/dist/basic/AtomChips", "@web-atoms/core/dist/view-model/Action", "./service/MailService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/date-time/dist/DateTime", "@web-atoms/web-controls/dist/basic/AtomRepeater"], function (_export, _context) {
|
|
23002
22998
|
"use strict";
|
|
23003
22999
|
|
|
23004
|
-
var __awaiter, __decorate, __metadata, PopupWindowPage, InlineHtmlEditorWithToolbar, XNode, Bind, Form, FormField, HorizontalFormField,
|
|
23000
|
+
var __awaiter, __decorate, __metadata, PopupWindowPage, InlineHtmlEditorWithToolbar, XNode, Bind, Form, FormField, HorizontalFormField, AppFile, Email, EmailRecipient, AtomChips, Chip, Action, MailService, InjectProperty, DateTime, AtomRepeater, ComposeMailPage;
|
|
23005
23001
|
_export("default", void 0);
|
|
23006
23002
|
return {
|
|
23007
23003
|
setters: [function (_tslib) {
|
|
@@ -23022,8 +23018,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
23022
23018
|
FormField = _webAtomsWebControlsDistBasicFormField.default;
|
|
23023
23019
|
HorizontalFormField = _webAtomsWebControlsDistBasicFormField.HorizontalFormField;
|
|
23024
23020
|
}, function (_modelModel) {
|
|
23021
|
+
AppFile = _modelModel.AppFile;
|
|
23025
23022
|
Email = _modelModel.Email;
|
|
23026
|
-
EmailAttachment = _modelModel.EmailAttachment;
|
|
23027
23023
|
EmailRecipient = _modelModel.EmailRecipient;
|
|
23028
23024
|
}, function (_webAtomsWebControlsDistBasicAtomChips) {
|
|
23029
23025
|
AtomChips = _webAtomsWebControlsDistBasicAtomChips.default;
|
|
@@ -23093,7 +23089,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
23093
23089
|
itemRenderer: item => XNode.create("div", {
|
|
23094
23090
|
"data-layout": "row"
|
|
23095
23091
|
}, XNode.create("span", {
|
|
23096
|
-
text: item.
|
|
23092
|
+
text: item.name
|
|
23097
23093
|
}))
|
|
23098
23094
|
}), XNode.create("div", {
|
|
23099
23095
|
"data-layout": "sticky-command-row"
|
|
@@ -23115,9 +23111,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
23115
23111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23116
23112
|
(_a = (_b = this.model).attachments) !== null && _a !== void 0 ? _a : _b.attachments = [];
|
|
23117
23113
|
for (const iterator of files) {
|
|
23118
|
-
this.model.attachments.add(
|
|
23114
|
+
this.model.attachments.add(AppFile.create({
|
|
23119
23115
|
appFileID: iterator.appFileID,
|
|
23120
|
-
|
|
23116
|
+
name: iterator.file.name,
|
|
23121
23117
|
contentType: iterator.file.type,
|
|
23122
23118
|
contentDisposition: iterator.inline ? "inline" : "attachment",
|
|
23123
23119
|
contentID: iterator.inline ? iterator.appFileID.toString() : void 0
|
|
@@ -23389,9 +23385,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
23389
23385
|
}, ...item.attachments.map(a => XNode.create("div", null, XNode.create("i", {
|
|
23390
23386
|
class: "fas fa-paperclip"
|
|
23391
23387
|
}), XNode.create("a", {
|
|
23392
|
-
text: a.
|
|
23388
|
+
text: a.name,
|
|
23393
23389
|
target: "_blank",
|
|
23394
|
-
href: `/api/files/${a.appFileID}/${a.
|
|
23390
|
+
href: `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`
|
|
23395
23391
|
})))));
|
|
23396
23392
|
}
|
|
23397
23393
|
})));
|
|
@@ -23402,9 +23398,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
23402
23398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23403
23399
|
const parse = JSON.parse(email.headers);
|
|
23404
23400
|
const emailAddressText = (_b = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : this.parameters.emailAddress.emailAddress;
|
|
23401
|
+
const parentID = email.emailID;
|
|
23405
23402
|
const child = Email.create({
|
|
23406
23403
|
senderID: this.parameters.mailboxID,
|
|
23407
23404
|
subject: "Re: " + email.subject,
|
|
23405
|
+
parentID,
|
|
23406
|
+
received: false,
|
|
23408
23407
|
recipients: [EmailRecipient.create({
|
|
23409
23408
|
emailAddressText
|
|
23410
23409
|
})],
|