@social-mail/social-mail-client 1.2.688 → 1.2.690

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.
Files changed (39) hide show
  1. package/dist/common/Mailto.d.ts +9 -0
  2. package/dist/common/Mailto.d.ts.map +1 -0
  3. package/dist/common/Mailto.js +31 -0
  4. package/dist/common/Mailto.js.map +1 -0
  5. package/dist/public/channel/ChannelCalendarView.d.ts +1 -0
  6. package/dist/public/channel/ChannelCalendarView.d.ts.map +1 -1
  7. package/dist/public/channel/ChannelCalendarView.js +43 -3
  8. package/dist/public/channel/ChannelCalendarView.js.map +1 -1
  9. package/dist/public/channel/ChannelView.d.ts +25 -2
  10. package/dist/public/channel/ChannelView.d.ts.map +1 -1
  11. package/dist/public/channel/ChannelView.js +63 -38
  12. package/dist/public/channel/ChannelView.js.map +1 -1
  13. package/dist/public/channel/ChannelView.pack.js +198 -43
  14. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  15. package/dist/public/channel/ChannelView.pack.min.js +19 -5
  16. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  17. package/dist/public/channel/UrlService.d.ts +2 -1
  18. package/dist/public/channel/UrlService.d.ts.map +1 -1
  19. package/dist/public/channel/UrlService.js +11 -0
  20. package/dist/public/channel/UrlService.js.map +1 -1
  21. package/dist/public/channel/controls/CalendarLink.d.ts +5 -0
  22. package/dist/public/channel/controls/CalendarLink.d.ts.map +1 -0
  23. package/dist/public/channel/controls/CalendarLink.js +22 -0
  24. package/dist/public/channel/controls/CalendarLink.js.map +1 -0
  25. package/dist/public/channel/controls/PostList.js +1 -1
  26. package/dist/public/channel/controls/PostList.js.map +1 -1
  27. package/dist/public/channel/controls/UpcomingEvents.d.ts +9 -0
  28. package/dist/public/channel/controls/UpcomingEvents.d.ts.map +1 -0
  29. package/dist/public/channel/controls/UpcomingEvents.js +42 -0
  30. package/dist/public/channel/controls/UpcomingEvents.js.map +1 -0
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/src/common/Mailto.ts +22 -0
  34. package/src/public/channel/ChannelCalendarView.tsx +37 -0
  35. package/src/public/channel/ChannelView.tsx +43 -40
  36. package/src/public/channel/UrlService.ts +11 -1
  37. package/src/public/channel/controls/CalendarLink.tsx +9 -0
  38. package/src/public/channel/controls/PostList.tsx +1 -1
  39. package/src/public/channel/controls/UpcomingEvents.tsx +30 -0
@@ -1976,7 +1976,7 @@ const UMD = new UMDClass();
1976
1976
 
1977
1977
  AmdLoader.instance.register(
1978
1978
  ["@social-mail/social-mail-client","@web-atoms/core","reflect-metadata","@web-atoms/date-time","@web-atoms/entity","@web-atoms/web-controls","@web-atoms/data-styles","@web-atoms/email-dom"],
1979
- ["@social-mail/social-mail-client/dist/public/channel/ChannelView","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@social-mail/social-mail-client/dist/public/channel/BlogService","@web-atoms/core/dist/di/DISingleton","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@web-atoms/core/dist/style/styled","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/services/email/EmailContentDownloader","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/common/CDN","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/core/dist/core/sleep","@social-mail/social-mail-client/dist/public/channel/emoji/EmojiPopup","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/public/channel/styles/channelViewStyle","@social-mail/social-mail-client/dist/common/TestMode","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@social-mail/social-mail-client/dist/public/channel/PostView","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@web-atoms/email-dom/dist/DomToString","@web-atoms/email-dom/dist/dom/StyleHelper","@web-atoms/email-dom/dist/style/mergeStyle","@social-mail/social-mail-client/dist/common/events/CommonEvents","@social-mail/social-mail-client/dist/web/commands/MailAppEvents","@social-mail/social-mail-client/dist/common/fileUrl","@social-mail/social-mail-client/dist/public/channel/controls/MediaCarousel","@social-mail/social-mail-client/dist/public/channel/controls/TagCloud","@social-mail/social-mail-client/dist/public/channel/UrlService","@social-mail/social-mail-client/dist/common/Slugger","@social-mail/social-mail-client/dist/common/toBase36","@social-mail/social-mail-client/dist/public/channel/controls/PostList","@social-mail/social-mail-client/content/images/gif/loader.gif","@social-mail/social-mail-client/dist/public/channel/BlogImageService","@social-mail/social-mail-client/content/images/svg/logo/logo-orange.svg","@social-mail/social-mail-client/dist/public/channel/controls/RecentPosts","@social-mail/social-mail-client/dist/public/channel/controls/BlogHeader","@web-atoms/core/dist/Pack","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/public/channel/PostSummary","@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath","@social-mail/social-mail-client/dist/public/channel/ChannelCalendarView","@web-atoms/web-controls/dist/basic/Calendar","@web-atoms/web-controls/dist/basic/Select","@web-atoms/web-controls/dist/basic/styles/calendar-style"]);
1979
+ ["@social-mail/social-mail-client/dist/public/channel/ChannelView","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@social-mail/social-mail-client/dist/public/channel/BlogService","@web-atoms/core/dist/di/DISingleton","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@web-atoms/core/dist/style/styled","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/services/email/EmailContentDownloader","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/common/CDN","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/core/dist/core/sleep","@social-mail/social-mail-client/dist/public/channel/emoji/EmojiPopup","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/public/channel/styles/channelViewStyle","@social-mail/social-mail-client/dist/common/TestMode","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@social-mail/social-mail-client/dist/public/channel/PostView","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@web-atoms/email-dom/dist/DomToString","@web-atoms/email-dom/dist/dom/StyleHelper","@web-atoms/email-dom/dist/style/mergeStyle","@social-mail/social-mail-client/dist/common/events/CommonEvents","@social-mail/social-mail-client/dist/web/commands/MailAppEvents","@social-mail/social-mail-client/dist/common/fileUrl","@social-mail/social-mail-client/dist/public/channel/controls/MediaCarousel","@social-mail/social-mail-client/dist/public/channel/controls/TagCloud","@social-mail/social-mail-client/dist/public/channel/UrlService","@social-mail/social-mail-client/dist/common/Slugger","@social-mail/social-mail-client/dist/common/toBase36","@social-mail/social-mail-client/dist/public/channel/controls/PostList","@social-mail/social-mail-client/content/images/gif/loader.gif","@social-mail/social-mail-client/dist/public/channel/BlogImageService","@social-mail/social-mail-client/content/images/svg/logo/logo-orange.svg","@social-mail/social-mail-client/dist/public/channel/controls/RecentPosts","@social-mail/social-mail-client/dist/public/channel/controls/BlogHeader","@web-atoms/core/dist/Pack","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/public/channel/PostSummary","@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath","@social-mail/social-mail-client/dist/public/channel/ChannelCalendarView","@web-atoms/web-controls/dist/basic/Calendar","@web-atoms/web-controls/dist/basic/Select","@web-atoms/web-controls/dist/basic/styles/calendar-style","@social-mail/social-mail-client/dist/common/Mailto","@social-mail/social-mail-client/dist/public/channel/controls/UpcomingEvents"]);
1980
1980
 
1981
1981
  System.register([], function (_export, _context) {
1982
1982
  "use strict";
@@ -24966,6 +24966,17 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
24966
24966
  }],
24967
24967
  execute: function () {
24968
24968
  _export("UrlService", UrlService = {
24969
+ toCalendarUrl({
24970
+ emailAddress: {
24971
+ emailAddress
24972
+ }
24973
+ }) {
24974
+ const cid = "@" + emailAddress.split("@")[0];
24975
+ if (AppLocation.isLocalTesting) {
24976
+ return `?detail=${cid}/calendar/`;
24977
+ }
24978
+ return `/${cid}/calendar/`;
24979
+ },
24969
24980
  toBlogUrl({
24970
24981
  emailID,
24971
24982
  email: {
@@ -25295,10 +25306,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
25295
25306
  }
25296
25307
  init() {
25297
25308
  return __awaiter(this, void 0, void 0, function* () {
25298
- this.setHeader();
25299
25309
  this.headerRenderer = text => XNode.create("header", {
25300
25310
  text: text
25301
25311
  });
25312
+ this.setHeader();
25302
25313
  this.itemRenderer = x => XNode.create("div", null, XNode.create("img", {
25303
25314
  src: Bind.oneTimeAsync(() => this.blogImageService.getImage(x), loaderImage)
25304
25315
  }), XNode.create("a", {
@@ -26421,10 +26432,44 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
26421
26432
 
26422
26433
  AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/Calendar");
26423
26434
 
26424
- System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/controls/AtomControl", "../../services/EntityService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/web-controls/dist/basic/Calendar", "@web-atoms/core/dist/core/XNode", "../../model/model", "@web-atoms/core/dist/core/Bind", "../../common/cache/CacheTTL", "@web-atoms/core/dist/style/styled", "./UrlService"], function (_export, _context) {
26435
+ System.register([], function (_export, _context) {
26436
+ "use strict";
26437
+
26438
+ var Mailto;
26439
+ return {
26440
+ setters: [],
26441
+ execute: function () {
26442
+ _export("Mailto", Mailto = {
26443
+ create({
26444
+ subject = "",
26445
+ to = "",
26446
+ body = "",
26447
+ inReplyTo = ""
26448
+ }) {
26449
+ const usp = new URLSearchParams();
26450
+ if (subject) {
26451
+ usp.append("subject", subject);
26452
+ }
26453
+ if (body) {
26454
+ usp.append("body", body);
26455
+ }
26456
+ if (inReplyTo) {
26457
+ usp.append("in-reply-to", inReplyTo);
26458
+ }
26459
+ return `mailto:${to}?${usp.toString()}`;
26460
+ }
26461
+ });
26462
+ }
26463
+ };
26464
+ });
26465
+ //# sourceMappingURL=Mailto.js.map
26466
+
26467
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/Mailto");
26468
+
26469
+ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/controls/AtomControl", "../../services/EntityService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/web-controls/dist/basic/Calendar", "@web-atoms/core/dist/core/XNode", "../../model/model", "@web-atoms/core/dist/core/Bind", "../../common/cache/CacheTTL", "@web-atoms/core/dist/style/styled", "./UrlService", "../../common/Mailto", "../../site-editor/editor/webComponentsPath"], function (_export, _context) {
26425
26470
  "use strict";
26426
26471
 
26427
- var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, EntityService, DateTime, Calendar, XNode, MailboxContactEvent, Bind, CacheTTL, styled, UrlService, ChannelCalendarView, cacheVersion, cacheSeconds, renderChildren;
26472
+ var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, EntityService, DateTime, Calendar, XNode, MailboxContactEvent, Bind, CacheTTL, styled, UrlService, Mailto, WebComponents, ChannelCalendarView, cacheVersion, cacheSeconds, renderChildren, toVisibleDate;
26428
26473
  _export("default", void 0);
26429
26474
  return {
26430
26475
  setters: [function (_tslib) {
@@ -26453,11 +26498,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26453
26498
  styled = _webAtomsCoreDistStyleStyled.default;
26454
26499
  }, function (_UrlService) {
26455
26500
  UrlService = _UrlService.UrlService;
26501
+ }, function (_commonMailto) {
26502
+ Mailto = _commonMailto.Mailto;
26503
+ }, function (_siteEditorEditorWebComponentsPath) {
26504
+ WebComponents = _siteEditorEditorWebComponentsPath.WebComponents;
26456
26505
  }],
26457
26506
  execute: function () {
26458
26507
  styled.css`
26459
26508
  display: grid;
26460
26509
  grid-template-columns: 1fr auto;
26510
+ grid-template-rows: 1fr auto;
26461
26511
 
26462
26512
  & > [data-calendar] {
26463
26513
  grid-row: 1;
@@ -26476,6 +26526,19 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26476
26526
  padding: 10px;
26477
26527
  }
26478
26528
 
26529
+ & share-button {
26530
+ grid-row: 2;
26531
+ grid-column: 1 / span 2;
26532
+ display: flex;
26533
+ flex-direction: row;
26534
+ align-items: center;
26535
+ justify-items: center;
26536
+ justify-content: center;
26537
+ & a {
26538
+ text-decoration: none;
26539
+ }
26540
+ }
26541
+
26479
26542
  `.installGlobal("[calendar-view]");
26480
26543
  cacheVersion = "v1";
26481
26544
  cacheSeconds = CacheTTL.seconds.fifteenMinutes;
@@ -26486,6 +26549,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26486
26549
  }
26487
26550
  c.render(XNode.create("div", null, " ", ...v, " "), e, c);
26488
26551
  });
26552
+ toVisibleDate = date => {
26553
+ if (!date) {
26554
+ return "";
26555
+ }
26556
+ const month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][date.month];
26557
+ return `${date.year}-${month}-${date.day}`;
26558
+ };
26489
26559
  _export("default", ChannelCalendarView = class ChannelCalendarView extends AtomControl {
26490
26560
  constructor(app, e) {
26491
26561
  super(app, e);
@@ -26499,6 +26569,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26499
26569
  }
26500
26570
  init() {
26501
26571
  return __awaiter(this, void 0, void 0, function* () {
26572
+ this.app.installScript(`${WebComponents.path}/dist/main.js`);
26502
26573
  this.renderer = XNode.create("div", {
26503
26574
  update: Bind.oneWayAsync((c, e, cancelToken) => this.loadEvents(this.year, this.month, cancelToken))
26504
26575
  }, XNode.create(Calendar, {
@@ -26511,7 +26582,21 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26511
26582
  self: this,
26512
26583
  x
26513
26584
  }, s => this.renderEvent(s.source.self.calendarEvents, s.source.x))))))
26514
- }));
26585
+ }), XNode.create("share-button", {
26586
+ "style-display": Bind.oneWay(() => !!this.selectedDate),
26587
+ href: Bind.oneWay(() => Mailto.create({
26588
+ subject: `📅:${toVisibleDate(this.selectedDate)} - `
26589
+ }))
26590
+ }, XNode.create("button", {
26591
+ "data-layout": "accent-icon-button"
26592
+ }, XNode.create("i", {
26593
+ class: "fas fa-plus"
26594
+ }), XNode.create("span", {
26595
+ text: Bind.oneWay(() => {
26596
+ var _a;
26597
+ return `Create Event on ${(_a = this.selectedDate) === null || _a === void 0 ? void 0 : _a.day} `;
26598
+ })
26599
+ }))));
26515
26600
  });
26516
26601
  }
26517
26602
  renderEvent(calendarEvents, item) {
@@ -26558,10 +26643,55 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26558
26643
 
26559
26644
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/channel/ChannelCalendarView");
26560
26645
 
26561
- System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/controls/AtomControl", "./BlogService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "./emoji/EmojiPopup", "../../style/GlobalStyle", "./styles/channelViewStyle", "@web-atoms/web-controls/dist/basic/AtomRepeater", "./PostView", "./controls/TagCloud", "./controls/PostList", "./controls/RecentPosts", "./controls/BlogHeader", "@web-atoms/core/dist/Pack", "../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/Bind", "./PostSummary", "./UrlService", "../../site-editor/editor/webComponentsPath", "./BlogImageService", "./ChannelCalendarView"], function (_export, _context) {
26646
+ System.register(["./PostList", "@web-atoms/core/dist/core/XNode", "../UrlService", "@web-atoms/date-time/dist/DateTime"], function (_export, _context) {
26647
+ "use strict";
26648
+
26649
+ var PostList, XNode, UrlService, DateTime, UpcomingEvents;
26650
+ _export("default", void 0);
26651
+ return {
26652
+ setters: [function (_PostList) {
26653
+ PostList = _PostList.default;
26654
+ }, function (_webAtomsCoreDistCoreXNode) {
26655
+ XNode = _webAtomsCoreDistCoreXNode.default;
26656
+ }, function (_UrlService) {
26657
+ UrlService = _UrlService.UrlService;
26658
+ }, function (_webAtomsDateTimeDistDateTime) {
26659
+ DateTime = _webAtomsDateTimeDistDateTime.default;
26660
+ }],
26661
+ execute: function () {
26662
+ _export("default", UpcomingEvents = class UpcomingEvents extends PostList {
26663
+ constructor() {
26664
+ super(...arguments);
26665
+ this.channel = null;
26666
+ }
26667
+ setHeader() {
26668
+ this.header = "Events";
26669
+ this.headerRenderer = text => XNode.create("header", null, XNode.create("a", {
26670
+ href: UrlService.toCalendarUrl(this.channel)
26671
+ }, "Events"));
26672
+ }
26673
+ query(q) {
26674
+ const {
26675
+ now
26676
+ } = DateTime;
26677
+ return q.where({
26678
+ now
26679
+ }, p => x => x.email.mailboxContactEvents.some(a => a.startDate > p.now)).orderByDescending(x => x.datePublished).toPagedList({
26680
+ size: 5
26681
+ });
26682
+ }
26683
+ });
26684
+ }
26685
+ };
26686
+ });
26687
+ //# sourceMappingURL=UpcomingEvents.js.map
26688
+
26689
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/channel/controls/UpcomingEvents");
26690
+
26691
+ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/controls/AtomControl", "./BlogService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "./emoji/EmojiPopup", "../../style/GlobalStyle", "./styles/channelViewStyle", "@web-atoms/web-controls/dist/basic/AtomRepeater", "./PostView", "./controls/TagCloud", "./controls/PostList", "./controls/RecentPosts", "./controls/BlogHeader", "@web-atoms/core/dist/Pack", "../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/Bind", "./PostSummary", "./UrlService", "../../site-editor/editor/webComponentsPath", "./BlogImageService", "./ChannelCalendarView", "../../common/Mailto", "./controls/UpcomingEvents"], function (_export, _context) {
26562
26692
  "use strict";
26563
26693
 
26564
- var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, BlogService, XNode, Action, EmojiPopup, AtomRepeater, PostView, TagCloud, PopularPosts, RecentPosts, BlogHeader, Pack, InfiniteRepeater, Bind, PostSummary, UrlService, WebComponents, BlogImageService, ChannelCalendarView, channel, emailID, tag, author, calendar, commentIcon, ChannelMessage, view;
26694
+ var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, BlogService, XNode, Action, EmojiPopup, AtomRepeater, PostView, TagCloud, PopularPosts, RecentPosts, BlogHeader, Pack, InfiniteRepeater, Bind, PostSummary, UrlService, WebComponents, BlogImageService, ChannelCalendarView, Mailto, UpcomingEvents, channel, emailID, tag, author, calendar, commentIcon, ChannelMessage;
26565
26695
  return {
26566
26696
  setters: [function (_tslib) {
26567
26697
  __awaiter = _tslib.__awaiter;
@@ -26607,6 +26737,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26607
26737
  BlogImageService = _BlogImageService.default;
26608
26738
  }, function (_ChannelCalendarView) {
26609
26739
  ChannelCalendarView = _ChannelCalendarView.default;
26740
+ }, function (_commonMailto) {
26741
+ Mailto = _commonMailto.Mailto;
26742
+ }, function (_controlsUpcomingEvents) {
26743
+ UpcomingEvents = _controlsUpcomingEvents.default;
26610
26744
  }],
26611
26745
  execute: function () {
26612
26746
  ({
@@ -26649,37 +26783,45 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26649
26783
  const search = Bind.twoWaysImmediate(() => this.search);
26650
26784
  this.element.setAttribute("data-blog-list", "blog-list");
26651
26785
  this.element.setAttribute("data-layout", "flex-center");
26652
- this.renderer = XNode.create("section", null, XNode.create(BlogHeader, {
26786
+ this.renderer = XNode.create("section", null, !calendar && !emailID && XNode.create(BlogHeader, {
26653
26787
  search: search,
26654
26788
  channel: this.channel
26655
- }), XNode.create("section", null, emailID ? XNode.create(AtomRepeater, {
26656
- "data-items-updated-event": "items-updated",
26657
- "event-items-updated": () => this.itemsUpdated(),
26658
- itemRenderer: x => XNode.create(PostView, {
26659
- channel: this.channel,
26660
- email: x
26661
- }),
26662
- items: this.emails
26663
- }) : XNode.create(AtomRepeater, Object.assign({
26664
- "data-items-updated-event": "items-updated",
26665
- "event-items-updated": () => this.itemsUpdated(),
26666
- "data-auto-scroll": "false",
26667
- itemRenderer: x => XNode.create(PostSummary, {
26668
- blogService: this.blogImageService,
26669
- channel: this.channel,
26670
- mailboxEmail: x
26671
- }),
26672
- items: this.emails
26673
- }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.blogService.getEmails({
26674
- channelID: this.channel.mailboxID,
26675
- author: this.author,
26676
- tag: this.tag,
26677
- start,
26678
- search: this.search,
26679
- cancelToken
26680
- }))))), XNode.create("aside", null, XNode.create(TagCloud, null), XNode.create(PopularPosts, null), XNode.create(RecentPosts, null)), XNode.create("footer", null));
26789
+ }), XNode.create("section", null, this.renderBody()), XNode.create("aside", null, XNode.create(TagCloud, null), XNode.create(UpcomingEvents, {
26790
+ channel: this.channel
26791
+ }), XNode.create(PopularPosts, null), XNode.create(RecentPosts, null)), XNode.create("footer", null));
26681
26792
  });
26682
26793
  }
26794
+ renderBody() {
26795
+ if (calendar) {
26796
+ return XNode.create(ChannelCalendarView, null);
26797
+ }
26798
+ return emailID ? XNode.create(AtomRepeater, {
26799
+ "data-items-updated-event": "items-updated",
26800
+ "event-items-updated": () => this.itemsUpdated(),
26801
+ itemRenderer: x => XNode.create(PostView, {
26802
+ channel: this.channel,
26803
+ email: x
26804
+ }),
26805
+ items: this.emails
26806
+ }) : XNode.create(AtomRepeater, Object.assign({
26807
+ "data-items-updated-event": "items-updated",
26808
+ "event-items-updated": () => this.itemsUpdated(),
26809
+ "data-auto-scroll": "false",
26810
+ itemRenderer: x => XNode.create(PostSummary, {
26811
+ blogService: this.blogImageService,
26812
+ channel: this.channel,
26813
+ mailboxEmail: x
26814
+ }),
26815
+ items: this.emails
26816
+ }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.blogService.getEmails({
26817
+ channelID: this.channel.mailboxID,
26818
+ author: this.author,
26819
+ tag: this.tag,
26820
+ start,
26821
+ search: this.search,
26822
+ cancelToken
26823
+ }))));
26824
+ }
26683
26825
  itemsUpdated() {
26684
26826
  window.pageReady = true;
26685
26827
  }
@@ -26695,10 +26837,19 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26695
26837
  headerMessageID
26696
26838
  } = email;
26697
26839
  const {
26698
- channel
26840
+ channel: {
26841
+ emailAddress: {
26842
+ emailAddress
26843
+ }
26844
+ }
26699
26845
  } = this;
26700
26846
  const subject = `${emoji}:${Number(email.emailID).toString(36)}:${headerMessageID}`;
26701
- const link = `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&body=${emoji}&in-reply-to=${headerMessageID}`;
26847
+ const link = Mailto.create({
26848
+ to: emailAddress,
26849
+ subject,
26850
+ body: emoji,
26851
+ inReplyTo: headerMessageID
26852
+ });
26702
26853
  this.element.dispatchEvent(new CustomEvent("shareLink", {
26703
26854
  detail: {
26704
26855
  link,
@@ -26722,10 +26873,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26722
26873
  headerMessageID
26723
26874
  } = email;
26724
26875
  const {
26725
- channel
26876
+ channel: {
26877
+ emailAddress: {
26878
+ emailAddress
26879
+ }
26880
+ }
26726
26881
  } = this;
26727
26882
  const subject = `${emoji}:${Number(email.emailID).toString(36)}:${headerMessageID}`;
26728
- const link = `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&in-reply-to=${headerMessageID}&body=&`;
26883
+ const link = Mailto.create({
26884
+ to: emailAddress,
26885
+ subject,
26886
+ inReplyTo: headerMessageID
26887
+ });
26729
26888
  this.element.dispatchEvent(new CustomEvent("shareLink", {
26730
26889
  detail: {
26731
26890
  link,
@@ -26748,11 +26907,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
26748
26907
  onEvent: "reply-email"
26749
26908
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, CustomEvent]), __metadata("design:returntype", Promise)], ChannelMessage.prototype, "replyEmail", null);
26750
26909
  ChannelMessage = __decorate([Pack, __metadata("design:paramtypes", [Object, Object])], ChannelMessage);
26751
- view = ChannelMessage;
26752
- if (calendar) {
26753
- view = ChannelCalendarView;
26754
- }
26755
- _export("default", view);
26910
+ _export("default", ChannelMessage);
26756
26911
  }
26757
26912
  };
26758
26913
  });