@social-mail/social-mail-client 1.2.697 → 1.2.699
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 +2 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelCalendarView.d.ts +8 -2
- package/dist/public/channel/ChannelCalendarView.d.ts.map +1 -1
- package/dist/public/channel/ChannelCalendarView.js +159 -34
- package/dist/public/channel/ChannelCalendarView.js.map +1 -1
- package/dist/public/channel/ChannelView.js +3 -1
- package/dist/public/channel/ChannelView.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +380 -36
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +177 -15
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.d.ts.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.js +19 -0
- package/dist/public/channel/styles/channelViewStyle.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +2 -1
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposePage.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposePage.js +2 -1
- package/dist/web/page/mails/mini-compose/MiniComposePage.js.map +1 -1
- package/package.json +1 -1
- package/src/public/channel/ChannelCalendarView.tsx +179 -27
- package/src/public/channel/ChannelView.tsx +1 -1
- package/src/public/channel/styles/channelViewStyle.ts +19 -0
- package/src/web/page/mails/mini-compose/MiniComposePage.tsx +2 -1
|
@@ -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","@social-mail/social-mail-client/dist/common/Mailto","@social-mail/social-mail-client/dist/public/channel/controls/UpcomingEvents"]);
|
|
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","@web-atoms/web-controls/dist/basic/TimeEditor","@web-atoms/web-controls/dist/basic/styles/time-editor-style","@social-mail/social-mail-client/dist/public/channel/controls/UpcomingEvents"]);
|
|
1980
1980
|
|
|
1981
1981
|
System.register([], function (_export, _context) {
|
|
1982
1982
|
"use strict";
|
|
@@ -22204,6 +22204,25 @@ gap: 5px;
|
|
|
22204
22204
|
background: #FAFAFA;
|
|
22205
22205
|
}
|
|
22206
22206
|
|
|
22207
|
+
aside {
|
|
22208
|
+
|
|
22209
|
+
display: flex;
|
|
22210
|
+
flex-direction: column;
|
|
22211
|
+
gap: 10px;
|
|
22212
|
+
|
|
22213
|
+
& > * {
|
|
22214
|
+
padding-bottom: 10px;
|
|
22215
|
+
border-bottom: solid 1px lightgray;
|
|
22216
|
+
}
|
|
22217
|
+
}
|
|
22218
|
+
|
|
22219
|
+
@media (max-width: 900px) {
|
|
22220
|
+
& > * {
|
|
22221
|
+
padding: 10px;
|
|
22222
|
+
}
|
|
22223
|
+
|
|
22224
|
+
}
|
|
22225
|
+
|
|
22207
22226
|
@media (min-width: 900px) {
|
|
22208
22227
|
& {
|
|
22209
22228
|
display: grid;
|
|
@@ -26466,10 +26485,208 @@ System.register([], function (_export, _context) {
|
|
|
26466
26485
|
|
|
26467
26486
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/Mailto");
|
|
26468
26487
|
|
|
26469
|
-
System.register(["
|
|
26488
|
+
System.register(["@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
26470
26489
|
"use strict";
|
|
26471
26490
|
|
|
26472
|
-
var
|
|
26491
|
+
var styled;
|
|
26492
|
+
return {
|
|
26493
|
+
setters: [function (_webAtomsCoreDistStyleStyled) {
|
|
26494
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
26495
|
+
}],
|
|
26496
|
+
execute: function () {
|
|
26497
|
+
styled.css`
|
|
26498
|
+
|
|
26499
|
+
padding-left: 5px;
|
|
26500
|
+
grid-row: 2;
|
|
26501
|
+
display: flex;
|
|
26502
|
+
flex-direction: row;
|
|
26503
|
+
align-items: center;
|
|
26504
|
+
justify-content: start;
|
|
26505
|
+
gap: 0;
|
|
26506
|
+
|
|
26507
|
+
& > [data-element=hour] {
|
|
26508
|
+
margin-left: 5px;
|
|
26509
|
+
margin-right: 5px;
|
|
26510
|
+
}
|
|
26511
|
+
|
|
26512
|
+
& > [data-element=minute] {
|
|
26513
|
+
margin-left: 5px;
|
|
26514
|
+
}
|
|
26515
|
+
|
|
26516
|
+
& > [data-element=pm] {
|
|
26517
|
+
margin-right: 5px;
|
|
26518
|
+
}
|
|
26519
|
+
|
|
26520
|
+
& > button {
|
|
26521
|
+
border-radius: 9999px;
|
|
26522
|
+
outline: none;
|
|
26523
|
+
border: none;
|
|
26524
|
+
background-color: transparent;
|
|
26525
|
+
|
|
26526
|
+
&[data-selected=true] {
|
|
26527
|
+
background-color: var(--accent-color, blue);
|
|
26528
|
+
color: var(--accent-text-color, white);
|
|
26529
|
+
}
|
|
26530
|
+
|
|
26531
|
+
&[data-element=am] {
|
|
26532
|
+
border-top-right-radius: 0;
|
|
26533
|
+
border-bottom-right-radius: 0;
|
|
26534
|
+
}
|
|
26535
|
+
|
|
26536
|
+
&[data-element=pm] {
|
|
26537
|
+
border-top-left-radius: 0;
|
|
26538
|
+
border-bottom-left-radius: 0;
|
|
26539
|
+
}
|
|
26540
|
+
}
|
|
26541
|
+
|
|
26542
|
+
& > select {
|
|
26543
|
+
border: none;
|
|
26544
|
+
outline: none;
|
|
26545
|
+
}
|
|
26546
|
+
|
|
26547
|
+
`.installGlobal("[data-time-editor]");
|
|
26548
|
+
}
|
|
26549
|
+
};
|
|
26550
|
+
});
|
|
26551
|
+
//# sourceMappingURL=time-editor-style.js.map
|
|
26552
|
+
|
|
26553
|
+
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/styles/time-editor-style");
|
|
26554
|
+
|
|
26555
|
+
System.register(["@web-atoms/core/dist/core/AtomBinder", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/date-time/dist/TimeSpan", "./Select", "@web-atoms/core/dist/core/Bind", "./styles/time-editor-style"], function (_export, _context) {
|
|
26556
|
+
"use strict";
|
|
26557
|
+
|
|
26558
|
+
var AtomBinder, XNode, AtomControl, TimeSpan, Select, Bind, TimeEditor;
|
|
26559
|
+
function hours() {
|
|
26560
|
+
return [{
|
|
26561
|
+
label: "01",
|
|
26562
|
+
value: 1
|
|
26563
|
+
}, {
|
|
26564
|
+
label: "02",
|
|
26565
|
+
value: 2
|
|
26566
|
+
}, {
|
|
26567
|
+
label: "03",
|
|
26568
|
+
value: 3
|
|
26569
|
+
}, {
|
|
26570
|
+
label: "04",
|
|
26571
|
+
value: 4
|
|
26572
|
+
}, {
|
|
26573
|
+
label: "05",
|
|
26574
|
+
value: 5
|
|
26575
|
+
}, {
|
|
26576
|
+
label: "06",
|
|
26577
|
+
value: 6
|
|
26578
|
+
}, {
|
|
26579
|
+
label: "07",
|
|
26580
|
+
value: 7
|
|
26581
|
+
}, {
|
|
26582
|
+
label: "08",
|
|
26583
|
+
value: 8
|
|
26584
|
+
}, {
|
|
26585
|
+
label: "09",
|
|
26586
|
+
value: 9
|
|
26587
|
+
}, {
|
|
26588
|
+
label: "10",
|
|
26589
|
+
value: 10
|
|
26590
|
+
}, {
|
|
26591
|
+
label: "11",
|
|
26592
|
+
value: 11
|
|
26593
|
+
}, {
|
|
26594
|
+
label: "12",
|
|
26595
|
+
value: 12
|
|
26596
|
+
}];
|
|
26597
|
+
}
|
|
26598
|
+
function minutes() {
|
|
26599
|
+
const items = [];
|
|
26600
|
+
for (let index = 0; index < 10; index++) {
|
|
26601
|
+
items.push({
|
|
26602
|
+
label: "0" + index,
|
|
26603
|
+
value: index
|
|
26604
|
+
});
|
|
26605
|
+
}
|
|
26606
|
+
for (let index = 10; index < 60; index++) {
|
|
26607
|
+
items.push({
|
|
26608
|
+
label: index.toString(),
|
|
26609
|
+
value: index
|
|
26610
|
+
});
|
|
26611
|
+
}
|
|
26612
|
+
return items;
|
|
26613
|
+
}
|
|
26614
|
+
_export("default", void 0);
|
|
26615
|
+
return {
|
|
26616
|
+
setters: [function (_webAtomsCoreDistCoreAtomBinder) {
|
|
26617
|
+
AtomBinder = _webAtomsCoreDistCoreAtomBinder.AtomBinder;
|
|
26618
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
26619
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
26620
|
+
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
26621
|
+
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
26622
|
+
}, function (_webAtomsDateTimeDistTimeSpan) {
|
|
26623
|
+
TimeSpan = _webAtomsDateTimeDistTimeSpan.default;
|
|
26624
|
+
}, function (_Select) {
|
|
26625
|
+
Select = _Select.default;
|
|
26626
|
+
}, function (_webAtomsCoreDistCoreBind) {
|
|
26627
|
+
Bind = _webAtomsCoreDistCoreBind.default;
|
|
26628
|
+
}, function (_stylesTimeEditorStyle) {}],
|
|
26629
|
+
execute: function () {
|
|
26630
|
+
_export("default", TimeEditor = class TimeEditor extends AtomControl {
|
|
26631
|
+
get time() {
|
|
26632
|
+
let t = new TimeSpan(0, this.hour, this.minute);
|
|
26633
|
+
if (this.isPM) {
|
|
26634
|
+
t = t.add(TimeSpan.fromHours(12));
|
|
26635
|
+
}
|
|
26636
|
+
return t;
|
|
26637
|
+
}
|
|
26638
|
+
set time(v) {
|
|
26639
|
+
if (!v) {
|
|
26640
|
+
v = TimeSpan.fromSeconds(0);
|
|
26641
|
+
}
|
|
26642
|
+
let h = v.hours;
|
|
26643
|
+
if (h > 12) {
|
|
26644
|
+
h -= 12;
|
|
26645
|
+
this.isPM = true;
|
|
26646
|
+
}
|
|
26647
|
+
this.hour = h;
|
|
26648
|
+
this.minute = v.minutes;
|
|
26649
|
+
AtomBinder.refreshValue(this, "time");
|
|
26650
|
+
}
|
|
26651
|
+
create() {
|
|
26652
|
+
this.isPM = false;
|
|
26653
|
+
this.hour = 12;
|
|
26654
|
+
this.minute = 0;
|
|
26655
|
+
this.render(XNode.create("div", {
|
|
26656
|
+
"data-time-editor": "time-editor",
|
|
26657
|
+
"event-change": () => setTimeout(() => AtomBinder.refreshValue(this, "time"), 1)
|
|
26658
|
+
}, XNode.create(Select, {
|
|
26659
|
+
"data-element": "hour",
|
|
26660
|
+
items: hours(),
|
|
26661
|
+
value: Bind.twoWays(() => this.hour)
|
|
26662
|
+
}), XNode.create(Select, {
|
|
26663
|
+
"data-element": "minute",
|
|
26664
|
+
items: minutes(),
|
|
26665
|
+
value: Bind.twoWays(() => this.minute)
|
|
26666
|
+
}), XNode.create("button", {
|
|
26667
|
+
"event-click": () => (this.isPM = false, AtomBinder.refreshValue(this, "time")),
|
|
26668
|
+
"data-selected": Bind.oneWay(() => !this.isPM),
|
|
26669
|
+
"data-element": "am",
|
|
26670
|
+
text: "AM"
|
|
26671
|
+
}), XNode.create("button", {
|
|
26672
|
+
"event-click": () => (this.isPM = true, AtomBinder.refreshValue(this, "time")),
|
|
26673
|
+
"data-selected": Bind.oneWay(() => this.isPM),
|
|
26674
|
+
"data-element": "pm",
|
|
26675
|
+
text: "PM"
|
|
26676
|
+
})));
|
|
26677
|
+
}
|
|
26678
|
+
});
|
|
26679
|
+
}
|
|
26680
|
+
};
|
|
26681
|
+
});
|
|
26682
|
+
//# sourceMappingURL=TimeEditor.js.map
|
|
26683
|
+
|
|
26684
|
+
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/TimeEditor");
|
|
26685
|
+
|
|
26686
|
+
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", "@web-atoms/web-controls/dist/basic/TimeEditor", "@web-atoms/date-time/dist/TimeSpan"], function (_export, _context) {
|
|
26687
|
+
"use strict";
|
|
26688
|
+
|
|
26689
|
+
var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, EntityService, DateTime, Calendar, XNode, MailboxContactEvent, Bind, CacheTTL, styled, UrlService, Mailto, WebComponents, TimeEditor, TimeSpan, ChannelCalendarView, cacheVersion, cacheSeconds, renderChildren, toVisibleDate;
|
|
26473
26690
|
_export("default", void 0);
|
|
26474
26691
|
return {
|
|
26475
26692
|
setters: [function (_tslib) {
|
|
@@ -26502,28 +26719,55 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26502
26719
|
Mailto = _commonMailto.Mailto;
|
|
26503
26720
|
}, function (_siteEditorEditorWebComponentsPath) {
|
|
26504
26721
|
WebComponents = _siteEditorEditorWebComponentsPath.WebComponents;
|
|
26722
|
+
}, function (_webAtomsWebControlsDistBasicTimeEditor) {
|
|
26723
|
+
TimeEditor = _webAtomsWebControlsDistBasicTimeEditor.default;
|
|
26724
|
+
}, function (_webAtomsDateTimeDistTimeSpan) {
|
|
26725
|
+
TimeSpan = _webAtomsDateTimeDistTimeSpan.default;
|
|
26505
26726
|
}],
|
|
26506
26727
|
execute: function () {
|
|
26507
26728
|
styled.css`
|
|
26729
|
+
|
|
26730
|
+
width: 100%;
|
|
26731
|
+
|
|
26508
26732
|
display: grid;
|
|
26509
|
-
grid-template-columns: 1fr
|
|
26510
|
-
grid-template-rows: 1fr
|
|
26733
|
+
grid-template-columns: 1fr;
|
|
26734
|
+
grid-template-rows: 1fr;
|
|
26735
|
+
|
|
26736
|
+
align-items: center;
|
|
26737
|
+
justify-items: stretch;
|
|
26738
|
+
justify-content: stretch;
|
|
26511
26739
|
|
|
26512
26740
|
& > [data-calendar] {
|
|
26513
26741
|
grid-row: 1;
|
|
26514
26742
|
grid-column: 1;
|
|
26743
|
+
& mini-calendar-events {
|
|
26744
|
+
min-height: 80px;
|
|
26745
|
+
display: flex;
|
|
26746
|
+
align-items: center;
|
|
26747
|
+
flex-direction: column;
|
|
26748
|
+
padding-top: 10px;
|
|
26749
|
+
& > a {
|
|
26750
|
+
font-size: smaller;
|
|
26751
|
+
white-space: nowrap;
|
|
26752
|
+
text-overflow: ellipsis;
|
|
26753
|
+
/* margin-left: 5px; */
|
|
26754
|
+
/* margin-right: 5px; */
|
|
26755
|
+
/* display: block; */
|
|
26756
|
+
flex: 1 1 100%;
|
|
26757
|
+
place-self: stretch;
|
|
26758
|
+
overflow: hidden;
|
|
26759
|
+
background-color: #ffe1217d;
|
|
26760
|
+
border-radius: 9999px;
|
|
26761
|
+
max-height: 20px;
|
|
26762
|
+
padding: 2px;
|
|
26763
|
+
padding-left: 5px;
|
|
26764
|
+
text-decoration: none;
|
|
26765
|
+
}
|
|
26766
|
+
}
|
|
26515
26767
|
}
|
|
26516
26768
|
|
|
26517
|
-
& >
|
|
26518
|
-
grid-
|
|
26519
|
-
}
|
|
26520
|
-
|
|
26521
|
-
& calendar-events {
|
|
26522
|
-
min-height: 80px;
|
|
26523
|
-
display: flex;
|
|
26524
|
-
align-items: center;
|
|
26525
|
-
flex-direction: column;
|
|
26526
|
-
padding: 10px;
|
|
26769
|
+
& > vflex-div {
|
|
26770
|
+
grid-row: 2;
|
|
26527
26771
|
}
|
|
26528
26772
|
|
|
26529
26773
|
& share-button {
|
|
@@ -26539,6 +26783,76 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26539
26783
|
}
|
|
26540
26784
|
}
|
|
26541
26785
|
|
|
26786
|
+
@media (max-width: 900px) {
|
|
26787
|
+
& > [data-calendar] > * {
|
|
26788
|
+
& [data-item-index] {
|
|
26789
|
+
display: flex;
|
|
26790
|
+
align-items: center;
|
|
26791
|
+
justify-content: center;
|
|
26792
|
+
justify-items: center;
|
|
26793
|
+
flex-direction: column;
|
|
26794
|
+
}
|
|
26795
|
+
& mini-calendar-events {
|
|
26796
|
+
position: relative;
|
|
26797
|
+
pointer-events: none;
|
|
26798
|
+
min-height: 20px;
|
|
26799
|
+
max-height: 30px;
|
|
26800
|
+
height: 30px;
|
|
26801
|
+
width: 20px;
|
|
26802
|
+
& a {
|
|
26803
|
+
position: absolute;
|
|
26804
|
+
display: block;
|
|
26805
|
+
position: relative;
|
|
26806
|
+
overflow: hidden;
|
|
26807
|
+
background-color: transparent;
|
|
26808
|
+
border: none;
|
|
26809
|
+
min-height: 20px;
|
|
26810
|
+
max-height: 20px;
|
|
26811
|
+
height: 20px;
|
|
26812
|
+
width: 20px;
|
|
26813
|
+
padding: 0;
|
|
26814
|
+
padding-left: 20px;
|
|
26815
|
+
&::before {
|
|
26816
|
+
display: block;
|
|
26817
|
+
position: absolute;
|
|
26818
|
+
left: 0;
|
|
26819
|
+
top: 0;
|
|
26820
|
+
display: block;
|
|
26821
|
+
width: 20px;
|
|
26822
|
+
height: 20px;
|
|
26823
|
+
content: "";
|
|
26824
|
+
background-color: blue;
|
|
26825
|
+
border-radius: 20px;
|
|
26826
|
+
}
|
|
26827
|
+
}
|
|
26828
|
+
}
|
|
26829
|
+
}
|
|
26830
|
+
}
|
|
26831
|
+
|
|
26832
|
+
& vflex-div {
|
|
26833
|
+
margin-top: 10px;
|
|
26834
|
+
border-top: solid 1px lightgray;
|
|
26835
|
+
padding-top: 10px;
|
|
26836
|
+
|
|
26837
|
+
margin-bottom: 10px;
|
|
26838
|
+
border-bottom: solid 1px lightgray;
|
|
26839
|
+
padding-bottom: 10px;
|
|
26840
|
+
|
|
26841
|
+
display: flex;
|
|
26842
|
+
flex-direction: column;
|
|
26843
|
+
gap: 10px;
|
|
26844
|
+
& > share-button {
|
|
26845
|
+
margin-right: auto;
|
|
26846
|
+
}
|
|
26847
|
+
}
|
|
26848
|
+
|
|
26849
|
+
& post-item {
|
|
26850
|
+
display: flex;
|
|
26851
|
+
flex-direction: row;
|
|
26852
|
+
align-items: center;
|
|
26853
|
+
gap: 10px;
|
|
26854
|
+
}
|
|
26855
|
+
|
|
26542
26856
|
`.installGlobal("[calendar-view]");
|
|
26543
26857
|
cacheVersion = "v1";
|
|
26544
26858
|
cacheSeconds = CacheTTL.seconds.fifteenMinutes;
|
|
@@ -26562,6 +26876,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26562
26876
|
this.channel = null;
|
|
26563
26877
|
this.selectedDate = null;
|
|
26564
26878
|
this.calendarEvents = new Map();
|
|
26879
|
+
this.time = TimeSpan.parse("11:00 AM");
|
|
26565
26880
|
this.element.setAttribute("calendar-view", "simple");
|
|
26566
26881
|
this.pushInit();
|
|
26567
26882
|
const now = DateTime.now;
|
|
@@ -26579,30 +26894,34 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26579
26894
|
value: Bind.twoWaysImmediate(() => this.selectedDate),
|
|
26580
26895
|
dateRenderer: x => XNode.create("div", null, XNode.create("label", {
|
|
26581
26896
|
text: x.label
|
|
26582
|
-
}), XNode.create("calendar-events", Object.assign({}, renderChildren(Bind.source({
|
|
26897
|
+
}), XNode.create("mini-calendar-events", Object.assign({}, renderChildren(Bind.source({
|
|
26583
26898
|
self: this,
|
|
26584
26899
|
x
|
|
26585
|
-
}, s => this.renderEvent(s.source.self.calendarEvents, s.source.x))))))
|
|
26900
|
+
}, s => this.renderEvent(s.source.self.calendarEvents, s.source.x.value))))))
|
|
26901
|
+
}), XNode.create("vflex-div", {
|
|
26902
|
+
"style-display": Bind.oneWay(() => !!this.selectedDate)
|
|
26903
|
+
}, XNode.create("calendar-events", Object.assign({}, renderChildren(Bind.source({
|
|
26904
|
+
self: this
|
|
26905
|
+
}, s => this.renderEventItem(s.source.self.calendarEvents, s.source.self.selectedDate))))), XNode.create("details", null, XNode.create("summary", null, "Create New"), XNode.create("div", {
|
|
26906
|
+
"data-layout": "row"
|
|
26907
|
+
}, "Create Event at", XNode.create(TimeEditor, {
|
|
26908
|
+
time: Bind.twoWaysImmediate(() => this.time)
|
|
26586
26909
|
}), XNode.create("share-button", {
|
|
26587
|
-
|
|
26588
|
-
|
|
26589
|
-
|
|
26590
|
-
|
|
26591
|
-
|
|
26592
|
-
|
|
26593
|
-
|
|
26594
|
-
|
|
26595
|
-
|
|
26596
|
-
|
|
26597
|
-
|
|
26598
|
-
var _a;
|
|
26599
|
-
return `Create Event on ${(_a = this.selectedDate) === null || _a === void 0 ? void 0 : _a.day} `;
|
|
26600
|
-
})
|
|
26601
|
-
}))));
|
|
26910
|
+
href: Bind.oneWay(() => this.createEvent(this.selectedDate, this.time))
|
|
26911
|
+
}, "Create Event")))));
|
|
26912
|
+
});
|
|
26913
|
+
}
|
|
26914
|
+
createEvent(date, time) {
|
|
26915
|
+
let l = "";
|
|
26916
|
+
const d = date.date.add(time);
|
|
26917
|
+
const body = `\r\nEvent on: 📅: ${d.toJSON()}\r\n${l}`;
|
|
26918
|
+
return Mailto.create({
|
|
26919
|
+
to: this.channel.emailAddress.emailAddress,
|
|
26920
|
+
body
|
|
26602
26921
|
});
|
|
26603
26922
|
}
|
|
26604
|
-
renderEvent(calendarEvents,
|
|
26605
|
-
const items = calendarEvents.get(
|
|
26923
|
+
renderEvent(calendarEvents, date) {
|
|
26924
|
+
const items = calendarEvents.get(date.date.msSinceEpoch);
|
|
26606
26925
|
if (!items) {
|
|
26607
26926
|
return null;
|
|
26608
26927
|
}
|
|
@@ -26615,17 +26934,37 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26615
26934
|
text: x.title
|
|
26616
26935
|
}));
|
|
26617
26936
|
}
|
|
26937
|
+
renderEventItem(calendarEvents, date) {
|
|
26938
|
+
const items = calendarEvents.get(date.date.msSinceEpoch);
|
|
26939
|
+
if (!items) {
|
|
26940
|
+
return null;
|
|
26941
|
+
}
|
|
26942
|
+
return items.map(x => XNode.create("post-item", null, XNode.create("span", {
|
|
26943
|
+
text: "\uD83D\uDCC5"
|
|
26944
|
+
}), XNode.create("span", {
|
|
26945
|
+
text: toVisibleDate(date)
|
|
26946
|
+
}), XNode.create("a", {
|
|
26947
|
+
href: UrlService.toBlogUrl({
|
|
26948
|
+
emailID: x.emailID,
|
|
26949
|
+
email: x.email,
|
|
26950
|
+
mailbox: x.mailbox
|
|
26951
|
+
}),
|
|
26952
|
+
text: x.title
|
|
26953
|
+
})));
|
|
26954
|
+
}
|
|
26618
26955
|
loadEvents(year, month, cancelToken) {
|
|
26619
26956
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26620
|
-
const events = yield this.entityService.query(MailboxContactEvent, "calendarMonth", year, month).include(x => [x.email, x.mailbox.emailAddress]).toArray({
|
|
26957
|
+
const events = yield this.entityService.query(MailboxContactEvent, "calendarMonth", year, month).include(x => [x.email, x.mailbox.emailAddress]).orderBy(x => x.startDate).toArray({
|
|
26621
26958
|
cancelToken,
|
|
26622
26959
|
cacheVersion,
|
|
26623
26960
|
cacheSeconds
|
|
26624
26961
|
});
|
|
26625
26962
|
const dayMap = new Map();
|
|
26963
|
+
let start = null;
|
|
26626
26964
|
for (const element of events) {
|
|
26627
26965
|
const key = element.startDate.date.msSinceEpoch;
|
|
26628
26966
|
let values = dayMap.get(key);
|
|
26967
|
+
start !== null && start !== void 0 ? start : start = element.startDate.date;
|
|
26629
26968
|
if (!values) {
|
|
26630
26969
|
values = [];
|
|
26631
26970
|
dayMap.set(key, values);
|
|
@@ -26633,6 +26972,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26633
26972
|
values.push(element);
|
|
26634
26973
|
}
|
|
26635
26974
|
this.calendarEvents = dayMap;
|
|
26975
|
+
if (start) {
|
|
26976
|
+
this.selectedDate = start;
|
|
26977
|
+
}
|
|
26636
26978
|
return;
|
|
26637
26979
|
});
|
|
26638
26980
|
}
|
|
@@ -26788,7 +27130,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
26788
27130
|
this.renderer = XNode.create("section", null, !calendar && !emailID && XNode.create(BlogHeader, {
|
|
26789
27131
|
search: search,
|
|
26790
27132
|
channel: this.channel
|
|
26791
|
-
}), XNode.create("section",
|
|
27133
|
+
}), XNode.create("section", {
|
|
27134
|
+
"data-width": "100%"
|
|
27135
|
+
}, this.renderBody()), XNode.create("aside", null, XNode.create(TagCloud, null), XNode.create(UpcomingEvents, {
|
|
26792
27136
|
channel: this.channel
|
|
26793
27137
|
}), XNode.create(PopularPosts, null), XNode.create(RecentPosts, null)), XNode.create("footer", null));
|
|
26794
27138
|
});
|