@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
|
@@ -15355,7 +15355,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
15355
15355
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
15356
15356
|
"use strict";
|
|
15357
15357
|
|
|
15358
|
-
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;
|
|
15358
|
+
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;
|
|
15359
15359
|
return {
|
|
15360
15360
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
15361
15361
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -15531,6 +15531,16 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15531
15531
|
"isCollection": true,
|
|
15532
15532
|
"isInverse": true,
|
|
15533
15533
|
"relatedName": "EmailTemplate"
|
|
15534
|
+
}, {
|
|
15535
|
+
"name": "websiteFolder",
|
|
15536
|
+
"isCollection": false,
|
|
15537
|
+
"isInverse": true,
|
|
15538
|
+
"relatedName": "WebSiteFolder"
|
|
15539
|
+
}, {
|
|
15540
|
+
"name": "currentVersionWebSites",
|
|
15541
|
+
"isCollection": true,
|
|
15542
|
+
"isInverse": true,
|
|
15543
|
+
"relatedName": "WebSiteFolder"
|
|
15534
15544
|
}, {
|
|
15535
15545
|
"name": "stores",
|
|
15536
15546
|
"isCollection": true,
|
|
@@ -15556,16 +15566,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15556
15566
|
"isCollection": true,
|
|
15557
15567
|
"isInverse": true,
|
|
15558
15568
|
"relatedName": "UserPin"
|
|
15559
|
-
}, {
|
|
15560
|
-
"name": "websiteFolder",
|
|
15561
|
-
"isCollection": false,
|
|
15562
|
-
"isInverse": true,
|
|
15563
|
-
"relatedName": "WebSiteFolder"
|
|
15564
|
-
}, {
|
|
15565
|
-
"name": "currentVersionWebSites",
|
|
15566
|
-
"isCollection": true,
|
|
15567
|
-
"isInverse": true,
|
|
15568
|
-
"relatedName": "WebSiteFolder"
|
|
15569
15569
|
}, {
|
|
15570
15570
|
"name": "websiteVersions",
|
|
15571
15571
|
"isCollection": true,
|
|
@@ -16289,7 +16289,9 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
16289
16289
|
}));
|
|
16290
16290
|
modelEntitySchemas["CachedItem"] = CachedItem;
|
|
16291
16291
|
_export("Domain", Domain = new Model("Domain", ["domainID"], {
|
|
16292
|
-
name: ""
|
|
16292
|
+
name: "",
|
|
16293
|
+
received: 0,
|
|
16294
|
+
failed: 0
|
|
16293
16295
|
}, {
|
|
16294
16296
|
"name": "domains",
|
|
16295
16297
|
"keys": [{
|
|
@@ -16301,6 +16303,14 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
16301
16303
|
"name": "name",
|
|
16302
16304
|
"type": "string",
|
|
16303
16305
|
"default": ["name", "\"\""]
|
|
16306
|
+
}, {
|
|
16307
|
+
"name": "received",
|
|
16308
|
+
"type": "number",
|
|
16309
|
+
"default": ["received", "0"]
|
|
16310
|
+
}, {
|
|
16311
|
+
"name": "failed",
|
|
16312
|
+
"type": "number",
|
|
16313
|
+
"default": ["failed", "0"]
|
|
16304
16314
|
}],
|
|
16305
16315
|
"relations": [{
|
|
16306
16316
|
"name": "emailAddresses",
|
|
@@ -16317,6 +16327,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
16317
16327
|
"isCollection": true,
|
|
16318
16328
|
"isInverse": true,
|
|
16319
16329
|
"relatedName": "ContactDomain"
|
|
16330
|
+
}, {
|
|
16331
|
+
"name": "activities",
|
|
16332
|
+
"isCollection": true,
|
|
16333
|
+
"isInverse": true,
|
|
16334
|
+
"relatedName": "ServerActivity"
|
|
16320
16335
|
}]
|
|
16321
16336
|
}));
|
|
16322
16337
|
modelEntitySchemas["Domain"] = Domain;
|
|
@@ -17095,6 +17110,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17095
17110
|
maxStorage: 0,
|
|
17096
17111
|
indexAttachments: false,
|
|
17097
17112
|
indexImageAttachments: false,
|
|
17113
|
+
unreplied: 0,
|
|
17114
|
+
unread: 0,
|
|
17098
17115
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
17099
17116
|
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
17100
17117
|
isChannel: false,
|
|
@@ -17134,6 +17151,14 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17134
17151
|
"name": "recentID",
|
|
17135
17152
|
"type": "number",
|
|
17136
17153
|
"default": ["recentID", "0"]
|
|
17154
|
+
}, {
|
|
17155
|
+
"name": "unreplied",
|
|
17156
|
+
"type": "number",
|
|
17157
|
+
"default": ["unreplied", "0"]
|
|
17158
|
+
}, {
|
|
17159
|
+
"name": "unread",
|
|
17160
|
+
"type": "number",
|
|
17161
|
+
"default": ["unread", "0"]
|
|
17137
17162
|
}, {
|
|
17138
17163
|
"name": "logoID",
|
|
17139
17164
|
"type": "number"
|
|
@@ -17335,6 +17360,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17335
17360
|
"name": "unread",
|
|
17336
17361
|
"type": "number",
|
|
17337
17362
|
"default": ["unread", "0"]
|
|
17363
|
+
}, {
|
|
17364
|
+
"name": "replied",
|
|
17365
|
+
"type": "DateTime",
|
|
17366
|
+
"default": ["replied", "new DefaultFactory(() => new DateTime())"]
|
|
17338
17367
|
}, {
|
|
17339
17368
|
"name": "total",
|
|
17340
17369
|
"type": "number",
|
|
@@ -17800,6 +17829,63 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17800
17829
|
}]
|
|
17801
17830
|
}));
|
|
17802
17831
|
modelEntitySchemas["SearchWordIndex"] = SearchWordIndex;
|
|
17832
|
+
_export("ServerActivityActivityArray", ServerActivityActivityArray = [{
|
|
17833
|
+
"label": "visit",
|
|
17834
|
+
"value": "visit"
|
|
17835
|
+
}, {
|
|
17836
|
+
"label": "rcpt-not-found",
|
|
17837
|
+
"value": "rcpt-not-found"
|
|
17838
|
+
}, {
|
|
17839
|
+
"label": "mail-received",
|
|
17840
|
+
"value": "mail-received"
|
|
17841
|
+
}]);
|
|
17842
|
+
_export("ServerActivity", ServerActivity = new Model("ServerActivity", ["activityID"], {
|
|
17843
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
17844
|
+
ipAddress: "",
|
|
17845
|
+
activity: "visit"
|
|
17846
|
+
}, {
|
|
17847
|
+
"name": "server_activities",
|
|
17848
|
+
"keys": [{
|
|
17849
|
+
"name": "activityID",
|
|
17850
|
+
"type": "number",
|
|
17851
|
+
"generated": "identity"
|
|
17852
|
+
}],
|
|
17853
|
+
"properties": [{
|
|
17854
|
+
"name": "domainID",
|
|
17855
|
+
"type": "number"
|
|
17856
|
+
}, {
|
|
17857
|
+
"name": "webSiteFolderID",
|
|
17858
|
+
"type": "number"
|
|
17859
|
+
}, {
|
|
17860
|
+
"name": "dateCreated",
|
|
17861
|
+
"type": "DateTime",
|
|
17862
|
+
"default": ["dateCreated", "new DefaultFactory(() => new DateTime())"]
|
|
17863
|
+
}, {
|
|
17864
|
+
"name": "ipAddress",
|
|
17865
|
+
"type": "string",
|
|
17866
|
+
"default": ["ipAddress", "\"\""]
|
|
17867
|
+
}, {
|
|
17868
|
+
"name": "activity",
|
|
17869
|
+
"type": "string",
|
|
17870
|
+
"default": ["activity", "\"visit\""]
|
|
17871
|
+
}],
|
|
17872
|
+
"relations": [{
|
|
17873
|
+
"name": "domain",
|
|
17874
|
+
"fkMap": [{
|
|
17875
|
+
"fk": "domainID",
|
|
17876
|
+
"relatedKey": "domainID"
|
|
17877
|
+
}],
|
|
17878
|
+
"relatedName": "Domain"
|
|
17879
|
+
}, {
|
|
17880
|
+
"name": "webSite",
|
|
17881
|
+
"fkMap": [{
|
|
17882
|
+
"fk": "webSiteFolderID",
|
|
17883
|
+
"relatedKey": "folderID"
|
|
17884
|
+
}],
|
|
17885
|
+
"relatedName": "WebSiteFolder"
|
|
17886
|
+
}]
|
|
17887
|
+
}));
|
|
17888
|
+
modelEntitySchemas["ServerActivity"] = ServerActivity;
|
|
17803
17889
|
_export("Store", Store = new Model("Store", ["storeID"], {
|
|
17804
17890
|
name: ""
|
|
17805
17891
|
}, {
|
|
@@ -17965,7 +18051,9 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17965
18051
|
active: false,
|
|
17966
18052
|
itemType: "product",
|
|
17967
18053
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
17968
|
-
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
18054
|
+
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
18055
|
+
price: 0,
|
|
18056
|
+
maxPrice: 0
|
|
17969
18057
|
}, {
|
|
17970
18058
|
"name": "store_items",
|
|
17971
18059
|
"keys": [{
|
|
@@ -18019,6 +18107,14 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18019
18107
|
}, {
|
|
18020
18108
|
"name": "vendorID",
|
|
18021
18109
|
"type": "number"
|
|
18110
|
+
}, {
|
|
18111
|
+
"name": "price",
|
|
18112
|
+
"type": "number",
|
|
18113
|
+
"default": ["price", "0"]
|
|
18114
|
+
}, {
|
|
18115
|
+
"name": "maxPrice",
|
|
18116
|
+
"type": "number",
|
|
18117
|
+
"default": ["maxPrice", "0"]
|
|
18022
18118
|
}],
|
|
18023
18119
|
"relations": [{
|
|
18024
18120
|
"name": "store",
|
|
@@ -18171,7 +18267,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18171
18267
|
startDate: new DefaultFactory(() => new DateTime()),
|
|
18172
18268
|
currency: "",
|
|
18173
18269
|
amount: 0,
|
|
18174
|
-
active: false
|
|
18270
|
+
active: false,
|
|
18271
|
+
addonsAmount: 0
|
|
18175
18272
|
}, {
|
|
18176
18273
|
"name": "store_item_prices",
|
|
18177
18274
|
"keys": [{
|
|
@@ -18206,6 +18303,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18206
18303
|
"name": "active",
|
|
18207
18304
|
"type": "boolean",
|
|
18208
18305
|
"default": ["active", "false"]
|
|
18306
|
+
}, {
|
|
18307
|
+
"name": "addonsAmount",
|
|
18308
|
+
"type": "number",
|
|
18309
|
+
"default": ["addonsAmount", "0"]
|
|
18209
18310
|
}],
|
|
18210
18311
|
"relations": [{
|
|
18211
18312
|
"name": "storeItem",
|
|
@@ -19206,6 +19307,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19206
19307
|
"relatedKey": "appFileID"
|
|
19207
19308
|
}],
|
|
19208
19309
|
"relatedName": "AppFile"
|
|
19310
|
+
}, {
|
|
19311
|
+
"name": "activities",
|
|
19312
|
+
"isCollection": true,
|
|
19313
|
+
"isInverse": true,
|
|
19314
|
+
"relatedName": "ServerActivity"
|
|
19209
19315
|
}, {
|
|
19210
19316
|
"name": "hosts",
|
|
19211
19317
|
"isCollection": true,
|
|
@@ -30034,10 +30140,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
30034
30140
|
|
|
30035
30141
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/Loader");
|
|
30036
30142
|
|
|
30037
|
-
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) {
|
|
30143
|
+
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) {
|
|
30038
30144
|
"use strict";
|
|
30039
30145
|
|
|
30040
|
-
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;
|
|
30146
|
+
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;
|
|
30041
30147
|
_export("default", void 0);
|
|
30042
30148
|
return {
|
|
30043
30149
|
setters: [function (_tslib) {
|
|
@@ -30109,6 +30215,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30109
30215
|
Loader = _commonControlsLoader.default;
|
|
30110
30216
|
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
30111
30217
|
descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
|
|
30218
|
+
}, function (_webAtomsWebControlsDistBasicTitleEditor) {
|
|
30219
|
+
TitleEditor = _webAtomsWebControlsDistBasicTitleEditor.default;
|
|
30112
30220
|
}],
|
|
30113
30221
|
execute: function () {
|
|
30114
30222
|
css = styled.css`
|
|
@@ -30153,7 +30261,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30153
30261
|
border-color: transparent;
|
|
30154
30262
|
}
|
|
30155
30263
|
|
|
30156
|
-
&
|
|
30264
|
+
& .subject {
|
|
30157
30265
|
border-bottom: solid 1px lightgray;
|
|
30158
30266
|
place-self: stretch;
|
|
30159
30267
|
margin-left: 5px;
|
|
@@ -30163,6 +30271,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30163
30271
|
outline: none;
|
|
30164
30272
|
border: none;
|
|
30165
30273
|
border-bottom: solid 1px lightgray;
|
|
30274
|
+
& input {
|
|
30275
|
+
border: none;
|
|
30276
|
+
outline: none;
|
|
30277
|
+
}
|
|
30166
30278
|
}
|
|
30167
30279
|
`.installLocal();
|
|
30168
30280
|
defaultEmailBody = `<section style="background-color: white; color: black;">
|
|
@@ -30182,20 +30294,19 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30182
30294
|
this.app.runAsync(() => this.init());
|
|
30183
30295
|
}
|
|
30184
30296
|
init() {
|
|
30185
|
-
var _a, _b, _c
|
|
30186
|
-
var _f;
|
|
30297
|
+
var _a, _b, _c;
|
|
30187
30298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30188
30299
|
this.renderer = XNode.create("div", null, XNode.create(Loader, null));
|
|
30189
30300
|
yield sleep(100);
|
|
30190
|
-
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft =
|
|
30191
|
-
if (this.draft) {
|
|
30192
|
-
|
|
30301
|
+
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft = null;
|
|
30302
|
+
if (!this.draft) {
|
|
30303
|
+
this.ensureDraft();
|
|
30193
30304
|
}
|
|
30194
|
-
this.typedMessage = ((
|
|
30305
|
+
this.typedMessage = ((_b = this.draft) === null || _b === void 0 ? void 0 : _b.htmlBody) ? this.draft.htmlBody : defaultEmailBody;
|
|
30195
30306
|
this.renderer = XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
30196
30307
|
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, {
|
|
30197
30308
|
alignment: "above"
|
|
30198
|
-
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null)), XNode.create(
|
|
30309
|
+
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null)), XNode.create(TitleEditor, {
|
|
30199
30310
|
class: "subject",
|
|
30200
30311
|
placeholder: "Subject ... ",
|
|
30201
30312
|
value: Bind.sourceTwoWays(this, x => x.source.draft.subject)
|
|
@@ -30237,7 +30348,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30237
30348
|
}));
|
|
30238
30349
|
yield sleep(100);
|
|
30239
30350
|
if (!this.draft.subject) {
|
|
30240
|
-
(
|
|
30351
|
+
(_c = this.editor.element.querySelector(".subject > input")) === null || _c === void 0 ? void 0 : _c.focus();
|
|
30241
30352
|
return;
|
|
30242
30353
|
}
|
|
30243
30354
|
const editor = this.editor.element.querySelector(`[data-element="editor"]`);
|
|
@@ -30463,12 +30574,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30463
30574
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
30464
30575
|
this.draft.dateUpdated = DateTime.now;
|
|
30465
30576
|
yield this.mailService.send(this.draft);
|
|
30577
|
+
const saved = this.draft;
|
|
30466
30578
|
this.draft = Email.create({
|
|
30467
30579
|
subject: "",
|
|
30468
30580
|
htmlBody: defaultEmailBody,
|
|
30469
30581
|
attachments: []
|
|
30470
30582
|
});
|
|
30471
30583
|
this.editor.htmlContent = this.draft.htmlBody;
|
|
30584
|
+
this.element.dispatchEvent(new CustomEvent("emailSent", {
|
|
30585
|
+
bubbles: true,
|
|
30586
|
+
detail: saved
|
|
30587
|
+
}));
|
|
30472
30588
|
});
|
|
30473
30589
|
}
|
|
30474
30590
|
sendAudioMessage() {
|
|
@@ -33168,18 +33284,24 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33168
33284
|
icon: "fas fa-ban",
|
|
33169
33285
|
label: "Block Sender"
|
|
33170
33286
|
})));
|
|
33171
|
-
this.
|
|
33172
|
-
"data-position": "absolute",
|
|
33173
|
-
"style-right": "20px",
|
|
33174
|
-
"style-bottom": "5px",
|
|
33175
|
-
"data-layout": "row"
|
|
33176
|
-
}, XNode.create(AddIconTextButton, {
|
|
33177
|
-
"event-click": () => this.startCompose(),
|
|
33178
|
-
"data-margin-left": "auto",
|
|
33179
|
-
text: "Compose"
|
|
33180
|
-
}));
|
|
33287
|
+
this.showComposeButton();
|
|
33181
33288
|
});
|
|
33182
33289
|
}
|
|
33290
|
+
showComposeButton(email = null) {
|
|
33291
|
+
if (email) {
|
|
33292
|
+
this.mailsRepeater.items.remove(email);
|
|
33293
|
+
}
|
|
33294
|
+
this.footerRenderer = () => XNode.create("div", {
|
|
33295
|
+
"data-position": "absolute",
|
|
33296
|
+
"style-right": "20px",
|
|
33297
|
+
"style-bottom": "5px",
|
|
33298
|
+
"data-layout": "row"
|
|
33299
|
+
}, XNode.create(AddIconTextButton, {
|
|
33300
|
+
"event-click": () => this.startCompose(),
|
|
33301
|
+
"data-margin-left": "auto",
|
|
33302
|
+
text: "Compose"
|
|
33303
|
+
}));
|
|
33304
|
+
}
|
|
33183
33305
|
startCompose(thread = null, email = null) {
|
|
33184
33306
|
this.footerRenderer = () => {
|
|
33185
33307
|
var _a;
|
|
@@ -33247,6 +33369,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33247
33369
|
emailAddressID,
|
|
33248
33370
|
mailboxID
|
|
33249
33371
|
} = this.parameters;
|
|
33372
|
+
const index = this.mails.findIndex(x => x.emailID === emailID);
|
|
33373
|
+
if (index !== -1) {
|
|
33374
|
+
this.mails.removeAt(index);
|
|
33375
|
+
}
|
|
33250
33376
|
this.mails.insert(0, MailboxContactEmail.create({
|
|
33251
33377
|
emailID,
|
|
33252
33378
|
emailAddressID,
|
|
@@ -33367,11 +33493,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33367
33493
|
this.mailsRepeater.refreshItem(thread);
|
|
33368
33494
|
});
|
|
33369
33495
|
}
|
|
33370
|
-
replyEmail({
|
|
33371
|
-
email
|
|
33372
|
-
}, ce) {
|
|
33496
|
+
replyEmail(mce, ce) {
|
|
33373
33497
|
var _a, _b;
|
|
33374
33498
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33499
|
+
const {
|
|
33500
|
+
email
|
|
33501
|
+
} = mce;
|
|
33375
33502
|
const parse = JSON.parse(email.headers);
|
|
33376
33503
|
const replyTo = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0];
|
|
33377
33504
|
const emailAddressText = this.parameters.emailAddress.emailAddress.toLocaleLowerCase();
|
|
@@ -33380,6 +33507,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33380
33507
|
const recipients = [EmailRecipient.create({
|
|
33381
33508
|
name,
|
|
33382
33509
|
replyTo,
|
|
33510
|
+
emailAddressID: this.parameters.emailAddressID,
|
|
33383
33511
|
emailAddressText
|
|
33384
33512
|
})];
|
|
33385
33513
|
if (/all/i.test(ce.type)) {
|
|
@@ -33398,6 +33526,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33398
33526
|
}
|
|
33399
33527
|
recipients.push(EmailRecipient.create({
|
|
33400
33528
|
name: rName,
|
|
33529
|
+
emailAddressID,
|
|
33401
33530
|
emailAddressText: emailAddress
|
|
33402
33531
|
}));
|
|
33403
33532
|
}
|
|
@@ -33455,6 +33584,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33455
33584
|
}
|
|
33456
33585
|
});
|
|
33457
33586
|
__decorate([InjectProperty, __metadata("design:type", ConversationService)], ConversationPage.prototype, "conversationService", void 0);
|
|
33587
|
+
__decorate([Action({
|
|
33588
|
+
onEvent: "emailSent"
|
|
33589
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "showComposeButton", null);
|
|
33458
33590
|
__decorate([Action({
|
|
33459
33591
|
onEvent: "edit-draft"
|
|
33460
33592
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "startCompose", null);
|
|
@@ -49424,6 +49556,8 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
49424
49556
|
text: item.currency
|
|
49425
49557
|
}), XNode.create("div", {
|
|
49426
49558
|
text: item.amount
|
|
49559
|
+
}), XNode.create("div", {
|
|
49560
|
+
text: item.addonsAmount
|
|
49427
49561
|
}), XNode.create("div", {
|
|
49428
49562
|
title: DateFormats.withWeekDayAndTime(item.startDate),
|
|
49429
49563
|
text: DateFormats.relative.short(item.startDate)
|