@social-mail/social-mail-client 1.2.261 → 1.2.263
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 +172 -38
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +10 -6
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/currency.js +1 -1
- package/dist/common/currency.js.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.d.ts.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.js +2 -0
- package/dist/common/pages/stores/products/ProductEditor.js.map +1 -1
- package/dist/model/model.d.ts +27 -2
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +120 -14
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +120 -14
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/store/Store.pack.js +124 -19
- package/dist/public/store/Store.pack.js.map +1 -1
- package/dist/public/store/Store.pack.min.js +3 -3
- package/dist/public/store/Store.pack.min.js.map +1 -1
- package/dist/public/store/StoreItemDetailView.d.ts.map +1 -1
- package/dist/public/store/StoreItemDetailView.js +3 -4
- package/dist/public/store/StoreItemDetailView.js.map +1 -1
- package/dist/public/store/StoreItemListView.d.ts.map +1 -1
- package/dist/public/store/StoreItemListView.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +172 -38
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +10 -6
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts +2 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +29 -13
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +21 -11
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/package.json +1 -1
- package/src/common/currency.ts +1 -1
- package/src/common/pages/stores/products/ProductEditor.tsx +1 -0
- package/src/model/model.ts +44 -13
- package/src/public/store/StoreItemDetailView.tsx +2 -3
- package/src/public/store/StoreItemListView.tsx +0 -1
- package/src/web/page/mails/ConversationPage.tsx +20 -3
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +13 -6
|
@@ -13300,7 +13300,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13300
13300
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13301
13301
|
"use strict";
|
|
13302
13302
|
|
|
13303
|
-
var DateTime, Model, DefaultFactory, modelEntitySchemas, AppRole, AppFileContentDispositionArray, AppFile, AccessToken, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, ContactAddress, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, EmailLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEmail, MailboxContactTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, Store, StoreUser, StoreConfig, StoreItemItemTypeArray, StoreItem, StoreItemFolder, StoreItemPrice, StorePriceAddOn, StoreMediaFile, StoreInsight, StoreLedger, StoreJournalJournalTypeArray, StoreJournal, StoreJournalEntry, StoreJournalLineItemItemTypeArray, StoreJournalLineItem, StoreItemTag, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, WebSiteChannel, WebSiteStore, LoginSession, TextDocument, Tag, fixRelatedSchemas;
|
|
13303
|
+
var DateTime, Model, DefaultFactory, modelEntitySchemas, AppRole, AppFileContentDispositionArray, AppFile, AccessToken, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, ContactAddress, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, EmailLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEmail, MailboxContactTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, ServerActivityActivityArray, ServerActivity, Store, StoreUser, StoreConfig, StoreItemItemTypeArray, StoreItem, StoreItemFolder, StoreItemPrice, StorePriceAddOn, StoreMediaFile, StoreInsight, StoreLedger, StoreJournalJournalTypeArray, StoreJournal, StoreJournalEntry, StoreJournalLineItemItemTypeArray, StoreJournalLineItem, StoreItemTag, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, WebSiteChannel, WebSiteStore, LoginSession, TextDocument, Tag, fixRelatedSchemas;
|
|
13304
13304
|
return {
|
|
13305
13305
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13306
13306
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13476,6 +13476,16 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13476
13476
|
"isCollection": true,
|
|
13477
13477
|
"isInverse": true,
|
|
13478
13478
|
"relatedName": "EmailTemplate"
|
|
13479
|
+
}, {
|
|
13480
|
+
"name": "websiteFolder",
|
|
13481
|
+
"isCollection": false,
|
|
13482
|
+
"isInverse": true,
|
|
13483
|
+
"relatedName": "WebSiteFolder"
|
|
13484
|
+
}, {
|
|
13485
|
+
"name": "currentVersionWebSites",
|
|
13486
|
+
"isCollection": true,
|
|
13487
|
+
"isInverse": true,
|
|
13488
|
+
"relatedName": "WebSiteFolder"
|
|
13479
13489
|
}, {
|
|
13480
13490
|
"name": "stores",
|
|
13481
13491
|
"isCollection": true,
|
|
@@ -13501,16 +13511,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13501
13511
|
"isCollection": true,
|
|
13502
13512
|
"isInverse": true,
|
|
13503
13513
|
"relatedName": "UserPin"
|
|
13504
|
-
}, {
|
|
13505
|
-
"name": "websiteFolder",
|
|
13506
|
-
"isCollection": false,
|
|
13507
|
-
"isInverse": true,
|
|
13508
|
-
"relatedName": "WebSiteFolder"
|
|
13509
|
-
}, {
|
|
13510
|
-
"name": "currentVersionWebSites",
|
|
13511
|
-
"isCollection": true,
|
|
13512
|
-
"isInverse": true,
|
|
13513
|
-
"relatedName": "WebSiteFolder"
|
|
13514
13514
|
}, {
|
|
13515
13515
|
"name": "websiteVersions",
|
|
13516
13516
|
"isCollection": true,
|
|
@@ -14234,7 +14234,9 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
14234
14234
|
}));
|
|
14235
14235
|
modelEntitySchemas["CachedItem"] = CachedItem;
|
|
14236
14236
|
_export("Domain", Domain = new Model("Domain", ["domainID"], {
|
|
14237
|
-
name: ""
|
|
14237
|
+
name: "",
|
|
14238
|
+
received: 0,
|
|
14239
|
+
failed: 0
|
|
14238
14240
|
}, {
|
|
14239
14241
|
"name": "domains",
|
|
14240
14242
|
"keys": [{
|
|
@@ -14246,6 +14248,14 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
14246
14248
|
"name": "name",
|
|
14247
14249
|
"type": "string",
|
|
14248
14250
|
"default": ["name", "\"\""]
|
|
14251
|
+
}, {
|
|
14252
|
+
"name": "received",
|
|
14253
|
+
"type": "number",
|
|
14254
|
+
"default": ["received", "0"]
|
|
14255
|
+
}, {
|
|
14256
|
+
"name": "failed",
|
|
14257
|
+
"type": "number",
|
|
14258
|
+
"default": ["failed", "0"]
|
|
14249
14259
|
}],
|
|
14250
14260
|
"relations": [{
|
|
14251
14261
|
"name": "emailAddresses",
|
|
@@ -14262,6 +14272,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
14262
14272
|
"isCollection": true,
|
|
14263
14273
|
"isInverse": true,
|
|
14264
14274
|
"relatedName": "ContactDomain"
|
|
14275
|
+
}, {
|
|
14276
|
+
"name": "activities",
|
|
14277
|
+
"isCollection": true,
|
|
14278
|
+
"isInverse": true,
|
|
14279
|
+
"relatedName": "ServerActivity"
|
|
14265
14280
|
}]
|
|
14266
14281
|
}));
|
|
14267
14282
|
modelEntitySchemas["Domain"] = Domain;
|
|
@@ -15040,6 +15055,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15040
15055
|
maxStorage: 0,
|
|
15041
15056
|
indexAttachments: false,
|
|
15042
15057
|
indexImageAttachments: false,
|
|
15058
|
+
unreplied: 0,
|
|
15059
|
+
unread: 0,
|
|
15043
15060
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15044
15061
|
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
15045
15062
|
isChannel: false,
|
|
@@ -15079,6 +15096,14 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15079
15096
|
"name": "recentID",
|
|
15080
15097
|
"type": "number",
|
|
15081
15098
|
"default": ["recentID", "0"]
|
|
15099
|
+
}, {
|
|
15100
|
+
"name": "unreplied",
|
|
15101
|
+
"type": "number",
|
|
15102
|
+
"default": ["unreplied", "0"]
|
|
15103
|
+
}, {
|
|
15104
|
+
"name": "unread",
|
|
15105
|
+
"type": "number",
|
|
15106
|
+
"default": ["unread", "0"]
|
|
15082
15107
|
}, {
|
|
15083
15108
|
"name": "logoID",
|
|
15084
15109
|
"type": "number"
|
|
@@ -15280,6 +15305,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15280
15305
|
"name": "unread",
|
|
15281
15306
|
"type": "number",
|
|
15282
15307
|
"default": ["unread", "0"]
|
|
15308
|
+
}, {
|
|
15309
|
+
"name": "replied",
|
|
15310
|
+
"type": "DateTime",
|
|
15311
|
+
"default": ["replied", "new DefaultFactory(() => new DateTime())"]
|
|
15283
15312
|
}, {
|
|
15284
15313
|
"name": "total",
|
|
15285
15314
|
"type": "number",
|
|
@@ -15745,6 +15774,63 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15745
15774
|
}]
|
|
15746
15775
|
}));
|
|
15747
15776
|
modelEntitySchemas["SearchWordIndex"] = SearchWordIndex;
|
|
15777
|
+
_export("ServerActivityActivityArray", ServerActivityActivityArray = [{
|
|
15778
|
+
"label": "visit",
|
|
15779
|
+
"value": "visit"
|
|
15780
|
+
}, {
|
|
15781
|
+
"label": "rcpt-not-found",
|
|
15782
|
+
"value": "rcpt-not-found"
|
|
15783
|
+
}, {
|
|
15784
|
+
"label": "mail-received",
|
|
15785
|
+
"value": "mail-received"
|
|
15786
|
+
}]);
|
|
15787
|
+
_export("ServerActivity", ServerActivity = new Model("ServerActivity", ["activityID"], {
|
|
15788
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15789
|
+
ipAddress: "",
|
|
15790
|
+
activity: "visit"
|
|
15791
|
+
}, {
|
|
15792
|
+
"name": "server_activities",
|
|
15793
|
+
"keys": [{
|
|
15794
|
+
"name": "activityID",
|
|
15795
|
+
"type": "number",
|
|
15796
|
+
"generated": "identity"
|
|
15797
|
+
}],
|
|
15798
|
+
"properties": [{
|
|
15799
|
+
"name": "domainID",
|
|
15800
|
+
"type": "number"
|
|
15801
|
+
}, {
|
|
15802
|
+
"name": "webSiteFolderID",
|
|
15803
|
+
"type": "number"
|
|
15804
|
+
}, {
|
|
15805
|
+
"name": "dateCreated",
|
|
15806
|
+
"type": "DateTime",
|
|
15807
|
+
"default": ["dateCreated", "new DefaultFactory(() => new DateTime())"]
|
|
15808
|
+
}, {
|
|
15809
|
+
"name": "ipAddress",
|
|
15810
|
+
"type": "string",
|
|
15811
|
+
"default": ["ipAddress", "\"\""]
|
|
15812
|
+
}, {
|
|
15813
|
+
"name": "activity",
|
|
15814
|
+
"type": "string",
|
|
15815
|
+
"default": ["activity", "\"visit\""]
|
|
15816
|
+
}],
|
|
15817
|
+
"relations": [{
|
|
15818
|
+
"name": "domain",
|
|
15819
|
+
"fkMap": [{
|
|
15820
|
+
"fk": "domainID",
|
|
15821
|
+
"relatedKey": "domainID"
|
|
15822
|
+
}],
|
|
15823
|
+
"relatedName": "Domain"
|
|
15824
|
+
}, {
|
|
15825
|
+
"name": "webSite",
|
|
15826
|
+
"fkMap": [{
|
|
15827
|
+
"fk": "webSiteFolderID",
|
|
15828
|
+
"relatedKey": "folderID"
|
|
15829
|
+
}],
|
|
15830
|
+
"relatedName": "WebSiteFolder"
|
|
15831
|
+
}]
|
|
15832
|
+
}));
|
|
15833
|
+
modelEntitySchemas["ServerActivity"] = ServerActivity;
|
|
15748
15834
|
_export("Store", Store = new Model("Store", ["storeID"], {
|
|
15749
15835
|
name: ""
|
|
15750
15836
|
}, {
|
|
@@ -15910,7 +15996,9 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15910
15996
|
active: false,
|
|
15911
15997
|
itemType: "product",
|
|
15912
15998
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15913
|
-
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
15999
|
+
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
16000
|
+
price: 0,
|
|
16001
|
+
maxPrice: 0
|
|
15914
16002
|
}, {
|
|
15915
16003
|
"name": "store_items",
|
|
15916
16004
|
"keys": [{
|
|
@@ -15964,6 +16052,14 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15964
16052
|
}, {
|
|
15965
16053
|
"name": "vendorID",
|
|
15966
16054
|
"type": "number"
|
|
16055
|
+
}, {
|
|
16056
|
+
"name": "price",
|
|
16057
|
+
"type": "number",
|
|
16058
|
+
"default": ["price", "0"]
|
|
16059
|
+
}, {
|
|
16060
|
+
"name": "maxPrice",
|
|
16061
|
+
"type": "number",
|
|
16062
|
+
"default": ["maxPrice", "0"]
|
|
15967
16063
|
}],
|
|
15968
16064
|
"relations": [{
|
|
15969
16065
|
"name": "store",
|
|
@@ -16116,7 +16212,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
16116
16212
|
startDate: new DefaultFactory(() => new DateTime()),
|
|
16117
16213
|
currency: "",
|
|
16118
16214
|
amount: 0,
|
|
16119
|
-
active: false
|
|
16215
|
+
active: false,
|
|
16216
|
+
addonsAmount: 0
|
|
16120
16217
|
}, {
|
|
16121
16218
|
"name": "store_item_prices",
|
|
16122
16219
|
"keys": [{
|
|
@@ -16151,6 +16248,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
16151
16248
|
"name": "active",
|
|
16152
16249
|
"type": "boolean",
|
|
16153
16250
|
"default": ["active", "false"]
|
|
16251
|
+
}, {
|
|
16252
|
+
"name": "addonsAmount",
|
|
16253
|
+
"type": "number",
|
|
16254
|
+
"default": ["addonsAmount", "0"]
|
|
16154
16255
|
}],
|
|
16155
16256
|
"relations": [{
|
|
16156
16257
|
"name": "storeItem",
|
|
@@ -17151,6 +17252,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17151
17252
|
"relatedKey": "appFileID"
|
|
17152
17253
|
}],
|
|
17153
17254
|
"relatedName": "AppFile"
|
|
17255
|
+
}, {
|
|
17256
|
+
"name": "activities",
|
|
17257
|
+
"isCollection": true,
|
|
17258
|
+
"isInverse": true,
|
|
17259
|
+
"relatedName": "ServerActivity"
|
|
17154
17260
|
}, {
|
|
17155
17261
|
"name": "hosts",
|
|
17156
17262
|
"isCollection": true,
|
|
@@ -37780,10 +37886,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
37780
37886
|
|
|
37781
37887
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/Loader");
|
|
37782
37888
|
|
|
37783
|
-
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "../../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "../../../../common/controls/audio/AudioRecorder", "../service/ConversationService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../../../common/events/CommonEvents", "../service/MailService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/core/dist/core/sleep", "../../../../common/controls/html/InlineHtmlEditorWithToolbar", "@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/AddLink", "@web-atoms/web-controls/dist/html-editor/commands/Unlink", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "./Insert", "@web-atoms/date-time/dist/TimeSpan", "./Attach", "@web-atoms/core/dist/core/types", "@web-atoms/email-dom/dist/DomToString", "../../../../common/controls/email-recipients/EmailLabel", "../../../../common/controls/Loader", "@web-atoms/core/dist/web/core/AtomUI"], function (_export, _context) {
|
|
37889
|
+
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "../../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "../../../../common/controls/audio/AudioRecorder", "../service/ConversationService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../../../common/events/CommonEvents", "../service/MailService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/core/dist/core/sleep", "../../../../common/controls/html/InlineHtmlEditorWithToolbar", "@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/AddLink", "@web-atoms/web-controls/dist/html-editor/commands/Unlink", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "./Insert", "@web-atoms/date-time/dist/TimeSpan", "./Attach", "@web-atoms/core/dist/core/types", "@web-atoms/email-dom/dist/DomToString", "../../../../common/controls/email-recipients/EmailLabel", "../../../../common/controls/Loader", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/web-controls/dist/basic/TitleEditor"], function (_export, _context) {
|
|
37784
37890
|
"use strict";
|
|
37785
37891
|
|
|
37786
|
-
var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, Attach, CancelToken, DomToString, EmailLabel, Loader, descendentElementIterator, MiniComposeBox, css, defaultEmailBody;
|
|
37892
|
+
var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, Attach, CancelToken, DomToString, EmailLabel, Loader, descendentElementIterator, TitleEditor, MiniComposeBox, css, defaultEmailBody;
|
|
37787
37893
|
_export("default", void 0);
|
|
37788
37894
|
return {
|
|
37789
37895
|
setters: [function (_tslib) {
|
|
@@ -37855,6 +37961,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37855
37961
|
Loader = _commonControlsLoader.default;
|
|
37856
37962
|
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
37857
37963
|
descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
|
|
37964
|
+
}, function (_webAtomsWebControlsDistBasicTitleEditor) {
|
|
37965
|
+
TitleEditor = _webAtomsWebControlsDistBasicTitleEditor.default;
|
|
37858
37966
|
}],
|
|
37859
37967
|
execute: function () {
|
|
37860
37968
|
css = styled.css`
|
|
@@ -37899,7 +38007,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37899
38007
|
border-color: transparent;
|
|
37900
38008
|
}
|
|
37901
38009
|
|
|
37902
|
-
&
|
|
38010
|
+
& .subject {
|
|
37903
38011
|
border-bottom: solid 1px lightgray;
|
|
37904
38012
|
place-self: stretch;
|
|
37905
38013
|
margin-left: 5px;
|
|
@@ -37909,6 +38017,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37909
38017
|
outline: none;
|
|
37910
38018
|
border: none;
|
|
37911
38019
|
border-bottom: solid 1px lightgray;
|
|
38020
|
+
& input {
|
|
38021
|
+
border: none;
|
|
38022
|
+
outline: none;
|
|
38023
|
+
}
|
|
37912
38024
|
}
|
|
37913
38025
|
`.installLocal();
|
|
37914
38026
|
defaultEmailBody = `<section style="background-color: white; color: black;">
|
|
@@ -37928,20 +38040,19 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37928
38040
|
this.app.runAsync(() => this.init());
|
|
37929
38041
|
}
|
|
37930
38042
|
init() {
|
|
37931
|
-
var _a, _b, _c
|
|
37932
|
-
var _f;
|
|
38043
|
+
var _a, _b, _c;
|
|
37933
38044
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37934
38045
|
this.renderer = XNode.create("div", null, XNode.create(Loader, null));
|
|
37935
38046
|
yield sleep(100);
|
|
37936
|
-
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft =
|
|
37937
|
-
if (this.draft) {
|
|
37938
|
-
|
|
38047
|
+
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft = null;
|
|
38048
|
+
if (!this.draft) {
|
|
38049
|
+
this.ensureDraft();
|
|
37939
38050
|
}
|
|
37940
|
-
this.typedMessage = ((
|
|
38051
|
+
this.typedMessage = ((_b = this.draft) === null || _b === void 0 ? void 0 : _b.htmlBody) ? this.draft.htmlBody : defaultEmailBody;
|
|
37941
38052
|
this.renderer = XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
37942
38053
|
toolbar: () => XNode.create("div", null, XNode.create(Toolbar, null, XNode.create(Insert, null), XNode.create(Separator, null), XNode.create(Attach, null), XNode.create(Separator, null), XNode.create(Bold, null), XNode.create(Italic, null), XNode.create(Underline, null), XNode.create(StrikeThrough, null), XNode.create(Align, {
|
|
37943
38054
|
alignment: "above"
|
|
37944
|
-
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null)), XNode.create(
|
|
38055
|
+
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null)), XNode.create(TitleEditor, {
|
|
37945
38056
|
class: "subject",
|
|
37946
38057
|
placeholder: "Subject ... ",
|
|
37947
38058
|
value: Bind.sourceTwoWays(this, x => x.source.draft.subject)
|
|
@@ -37983,7 +38094,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37983
38094
|
}));
|
|
37984
38095
|
yield sleep(100);
|
|
37985
38096
|
if (!this.draft.subject) {
|
|
37986
|
-
(
|
|
38097
|
+
(_c = this.editor.element.querySelector(".subject > input")) === null || _c === void 0 ? void 0 : _c.focus();
|
|
37987
38098
|
return;
|
|
37988
38099
|
}
|
|
37989
38100
|
const editor = this.editor.element.querySelector(`[data-element="editor"]`);
|
|
@@ -38209,12 +38320,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
38209
38320
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
38210
38321
|
this.draft.dateUpdated = DateTime.now;
|
|
38211
38322
|
yield this.mailService.send(this.draft);
|
|
38323
|
+
const saved = this.draft;
|
|
38212
38324
|
this.draft = Email.create({
|
|
38213
38325
|
subject: "",
|
|
38214
38326
|
htmlBody: defaultEmailBody,
|
|
38215
38327
|
attachments: []
|
|
38216
38328
|
});
|
|
38217
38329
|
this.editor.htmlContent = this.draft.htmlBody;
|
|
38330
|
+
this.element.dispatchEvent(new CustomEvent("emailSent", {
|
|
38331
|
+
bubbles: true,
|
|
38332
|
+
detail: saved
|
|
38333
|
+
}));
|
|
38218
38334
|
});
|
|
38219
38335
|
}
|
|
38220
38336
|
sendAudioMessage() {
|
|
@@ -40914,18 +41030,24 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40914
41030
|
icon: "fas fa-ban",
|
|
40915
41031
|
label: "Block Sender"
|
|
40916
41032
|
})));
|
|
40917
|
-
this.
|
|
40918
|
-
"data-position": "absolute",
|
|
40919
|
-
"style-right": "20px",
|
|
40920
|
-
"style-bottom": "5px",
|
|
40921
|
-
"data-layout": "row"
|
|
40922
|
-
}, XNode.create(AddIconTextButton, {
|
|
40923
|
-
"event-click": () => this.startCompose(),
|
|
40924
|
-
"data-margin-left": "auto",
|
|
40925
|
-
text: "Compose"
|
|
40926
|
-
}));
|
|
41033
|
+
this.showComposeButton();
|
|
40927
41034
|
});
|
|
40928
41035
|
}
|
|
41036
|
+
showComposeButton(email = null) {
|
|
41037
|
+
if (email) {
|
|
41038
|
+
this.mailsRepeater.items.remove(email);
|
|
41039
|
+
}
|
|
41040
|
+
this.footerRenderer = () => XNode.create("div", {
|
|
41041
|
+
"data-position": "absolute",
|
|
41042
|
+
"style-right": "20px",
|
|
41043
|
+
"style-bottom": "5px",
|
|
41044
|
+
"data-layout": "row"
|
|
41045
|
+
}, XNode.create(AddIconTextButton, {
|
|
41046
|
+
"event-click": () => this.startCompose(),
|
|
41047
|
+
"data-margin-left": "auto",
|
|
41048
|
+
text: "Compose"
|
|
41049
|
+
}));
|
|
41050
|
+
}
|
|
40929
41051
|
startCompose(thread = null, email = null) {
|
|
40930
41052
|
this.footerRenderer = () => {
|
|
40931
41053
|
var _a;
|
|
@@ -40993,6 +41115,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40993
41115
|
emailAddressID,
|
|
40994
41116
|
mailboxID
|
|
40995
41117
|
} = this.parameters;
|
|
41118
|
+
const index = this.mails.findIndex(x => x.emailID === emailID);
|
|
41119
|
+
if (index !== -1) {
|
|
41120
|
+
this.mails.removeAt(index);
|
|
41121
|
+
}
|
|
40996
41122
|
this.mails.insert(0, MailboxContactEmail.create({
|
|
40997
41123
|
emailID,
|
|
40998
41124
|
emailAddressID,
|
|
@@ -41113,11 +41239,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41113
41239
|
this.mailsRepeater.refreshItem(thread);
|
|
41114
41240
|
});
|
|
41115
41241
|
}
|
|
41116
|
-
replyEmail({
|
|
41117
|
-
email
|
|
41118
|
-
}, ce) {
|
|
41242
|
+
replyEmail(mce, ce) {
|
|
41119
41243
|
var _a, _b;
|
|
41120
41244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41245
|
+
const {
|
|
41246
|
+
email
|
|
41247
|
+
} = mce;
|
|
41121
41248
|
const parse = JSON.parse(email.headers);
|
|
41122
41249
|
const replyTo = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0];
|
|
41123
41250
|
const emailAddressText = this.parameters.emailAddress.emailAddress.toLocaleLowerCase();
|
|
@@ -41126,6 +41253,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41126
41253
|
const recipients = [EmailRecipient.create({
|
|
41127
41254
|
name,
|
|
41128
41255
|
replyTo,
|
|
41256
|
+
emailAddressID: this.parameters.emailAddressID,
|
|
41129
41257
|
emailAddressText
|
|
41130
41258
|
})];
|
|
41131
41259
|
if (/all/i.test(ce.type)) {
|
|
@@ -41144,6 +41272,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41144
41272
|
}
|
|
41145
41273
|
recipients.push(EmailRecipient.create({
|
|
41146
41274
|
name: rName,
|
|
41275
|
+
emailAddressID,
|
|
41147
41276
|
emailAddressText: emailAddress
|
|
41148
41277
|
}));
|
|
41149
41278
|
}
|
|
@@ -41201,6 +41330,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41201
41330
|
}
|
|
41202
41331
|
});
|
|
41203
41332
|
__decorate([InjectProperty, __metadata("design:type", ConversationService)], ConversationPage.prototype, "conversationService", void 0);
|
|
41333
|
+
__decorate([Action({
|
|
41334
|
+
onEvent: "emailSent"
|
|
41335
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "showComposeButton", null);
|
|
41204
41336
|
__decorate([Action({
|
|
41205
41337
|
onEvent: "edit-draft"
|
|
41206
41338
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "startCompose", null);
|
|
@@ -52963,6 +53095,8 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
52963
53095
|
text: item.currency
|
|
52964
53096
|
}), XNode.create("div", {
|
|
52965
53097
|
text: item.amount
|
|
53098
|
+
}), XNode.create("div", {
|
|
53099
|
+
text: item.addonsAmount
|
|
52966
53100
|
}), XNode.create("div", {
|
|
52967
53101
|
title: DateFormats.withWeekDayAndTime(item.startDate),
|
|
52968
53102
|
text: DateFormats.relative.short(item.startDate)
|