@social-mail/social-mail-client 1.2.13 → 1.2.15
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 +704 -120
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +78 -8
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.d.ts.map +1 -1
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js +11 -2
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js.map +1 -1
- package/dist/common/events/CommonEvents.d.ts +2 -0
- package/dist/common/events/CommonEvents.d.ts.map +1 -1
- package/dist/common/events/CommonEvents.js +3 -1
- package/dist/common/events/CommonEvents.js.map +1 -1
- package/dist/common/pages/mailboxes/MailboxEditorPage.d.ts.map +1 -1
- package/dist/common/pages/mailboxes/MailboxEditorPage.js +1 -1
- package/dist/common/pages/mailboxes/MailboxEditorPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +704 -120
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +79 -9
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts +4 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +58 -7
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/mini-compose/Insert.d.ts +4 -0
- package/dist/web/page/mails/mini-compose/Insert.d.ts.map +1 -0
- package/dist/web/page/mails/mini-compose/Insert.js +71 -0
- package/dist/web/page/mails/mini-compose/Insert.js.map +1 -0
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts +8 -2
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +66 -29
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts +1 -0
- package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +30 -15
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
- package/dist/web/page/mails/service/MailService.js +1 -0
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/node_modules/@web-atoms/entity/dist/models/TaskManager.d.ts.map +1 -1
- package/node_modules/@web-atoms/entity/dist/models/TaskManager.js +1 -0
- package/node_modules/@web-atoms/entity/dist/models/TaskManager.js.map +1 -1
- package/node_modules/@web-atoms/entity/dist/services/BaseEntityService.d.ts +1 -1
- package/node_modules/@web-atoms/entity/dist/services/BaseEntityService.d.ts.map +1 -1
- package/node_modules/@web-atoms/entity/dist/services/BaseEntityService.js +8 -1
- package/node_modules/@web-atoms/entity/dist/services/BaseEntityService.js.map +1 -1
- package/node_modules/@web-atoms/entity/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/entity/package.json +1 -1
- package/node_modules/@web-atoms/entity/src/models/TaskManager.ts +4 -0
- package/node_modules/@web-atoms/entity/src/services/BaseEntityService.ts +9 -2
- package/node_modules/@web-atoms/web-controls/dist/html-editor/commands/Align.d.ts +3 -1
- package/node_modules/@web-atoms/web-controls/dist/html-editor/commands/Align.d.ts.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/html-editor/commands/Align.js +5 -2
- package/node_modules/@web-atoms/web-controls/dist/html-editor/commands/Align.js.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/web-controls/package.json +1 -1
- package/node_modules/@web-atoms/web-controls/src/html-editor/commands/Align.tsx +4 -2
- package/package.json +3 -3
- package/src/common/controls/html/InlineHtmlEditorWithToolbar.tsx +9 -0
- package/src/common/events/CommonEvents.ts +6 -1
- package/src/common/pages/mailboxes/MailboxEditorPage.tsx +1 -1
- package/src/web/page/mails/ConversationPage.tsx +43 -1
- package/src/web/page/mails/mini-compose/Insert.tsx +66 -0
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +56 -19
- package/src/web/page/mails/service/ConversationService.tsx +26 -14
- package/src/web/page/mails/service/MailService.ts +1 -0
|
@@ -1985,7 +1985,7 @@ const UMD = new UMDClass();
|
|
|
1985
1985
|
|
|
1986
1986
|
AmdLoader.instance.register(
|
|
1987
1987
|
["@social-mail/social-mail-client","@web-atoms/core","reflect-metadata","@web-atoms/web-controls","@web-atoms/date-time","@web-atoms/entity","@web-atoms/email-dom","@web-atoms/data-styles"],
|
|
1988
|
-
["@social-mail/social-mail-client/dist/web/AppIndex","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/Pack","@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp","@web-atoms/web-controls/dist/mobile-app/MobileApp","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/StringHelper","@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/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/di/DISingleton","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@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/Hacks","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/style/styled","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/web-controls/dist/PageNavigator","@web-atoms/web-controls/dist/desktop-app/DesktopApp","@social-mail/social-mail-client/dist/web/commands/AppCommands","@social-mail/social-mail-client/dist/web/page/home/HomePage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@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/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@web-atoms/core/dist/di/DITransient","@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","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/common/SocialMailApp","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@web-atoms/web-controls/dist/basic/Form","@social-mail/social-mail-client/dist/common/controls/form/RequiredFormField","@web-atoms/web-controls/dist/basic/FormField","@web-atoms/web-controls/dist/basic/styles/form-field-style","@web-atoms/web-controls/dist/basic/PasswordBox","@web-atoms/web-controls/dist/basic/styles/password-box-style","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/common/controls/buttons/IconButton","@social-mail/social-mail-client/dist/admin/pages/users/ChooseUserPage","@social-mail/social-mail-client/dist/admin/pages/users/services/AdminUserService","@web-atoms/web-controls/dist/basic/Checkbox","@web-atoms/web-controls/dist/basic/styles/checkbox-style","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/common/commands/CommonCommands","@social-mail/social-mail-client/dist/web/page/mails/MailboxContacts","@social-mail/social-mail-client/dist/web/page/mails/service/MailService","@social-mail/social-mail-client/dist/common/events/CommonEvents","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/web/page/mails/ConversationPage","@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","@web-atoms/web-controls/dist/basic/InlinePopupControl","@social-mail/social-mail-client/dist/web/page/mails/ComposeMailPage","@social-mail/social-mail-client/dist/common/controls/html/InlineHtmlEditorWithToolbar","@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor","@web-atoms/data-styles/data-styles","@web-atoms/web-controls/dist/html-editor/commands/AddImage","@web-atoms/web-controls/dist/html-editor/commands/CommandButton","@web-atoms/web-controls/dist/html-editor/commands/HtmlCommands","@web-atoms/web-controls/dist/html-editor/commands/Toolbar","@web-atoms/web-controls/dist/html-editor/commands/Bold","@web-atoms/web-controls/dist/html-editor/commands/Command","@web-atoms/web-controls/dist/html-editor/commands/Italic","@web-atoms/web-controls/dist/html-editor/commands/Underline","@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough","@web-atoms/web-controls/dist/html-editor/commands/Align","@web-atoms/web-controls/dist/basic/PopupButton","@web-atoms/web-controls/dist/basic/styles/popup-button-style","@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule","@web-atoms/web-controls/dist/html-editor/commands/Separator","@web-atoms/web-controls/dist/html-editor/commands/Headings","@web-atoms/web-controls/dist/html-editor/commands/ChangeColor","@web-atoms/web-controls/dist/html-editor/commands/ChangeFont","@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize","@web-atoms/web-controls/dist/html-editor/commands/NumberedList","@web-atoms/web-controls/dist/html-editor/commands/UnorderedList","@web-atoms/web-controls/dist/html-editor/commands/IndentLess","@web-atoms/web-controls/dist/html-editor/commands/IndentMore","@web-atoms/web-controls/dist/html-editor/commands/AddLink","@web-atoms/core/dist/web/controls/AtomToggleButtonBar","@web-atoms/core/dist/web/styles/AtomToggleButtonBarStyle","@web-atoms/core/dist/web/styles/AtomListBoxStyle","@web-atoms/core/dist/web/controls/AtomListBox","@web-atoms/core/dist/web/controls/AtomItemsControl","@web-atoms/core/dist/core/AtomEnumerator","@web-atoms/core/dist/core/AtomList","@web-atoms/web-controls/dist/html-editor/commands/Unlink","@web-atoms/web-controls/dist/html-editor/commands/RemoveFormat","@web-atoms/web-controls/dist/html-editor/commands/Source","@web-atoms/web-controls/dist/basic/UploadEvent","@social-mail/social-mail-client/dist/services/files/LocalFileService","@web-atoms/web-controls/dist/basic/TitleEditor","@web-atoms/web-controls/dist/basic/styles/title-editor-style","@social-mail/social-mail-client/dist/common/controls/email-recipients/EmailRecipientChips","@web-atoms/web-controls/dist/basic/AtomChips","@web-atoms/web-controls/dist/basic/Chip","@web-atoms/web-controls/dist/basic/styles/chip-style","@web-atoms/web-controls/dist/basic/styles/chips-style","@web-atoms/web-controls/dist/basic/styles/item-suggestion-style","@social-mail/social-mail-client/dist/services/email-addresses/EmailAddressService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/web/page/templates/social/SocialTemplate","@social-mail/social-mail-client/dist/services/Emoji","@social-mail/social-mail-client/dist/services/socket/sockets","@web-atoms/web-controls/dist/basic/LimitedText","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/common/pages/logs/LogsPage","@social-mail/social-mail-client/dist/common/pages/logs/services/AppLogService","@social-mail/social-mail-client/dist/web/page/mails/detail/MailDetailPage","@social-mail/social-mail-client/dist/common/controls/file-preview/FilePreview","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposeBox","@social-mail/social-mail-client/dist/common/controls/audio/AudioRecorder","@web-atoms/web-controls/dist/mobile-app/BottomPopup","@web-atoms/web-controls/dist/animations/Animations","@social-mail/social-mail-client/dist/common/controls/audio/WebRTCService","@social-mail/social-mail-client/dist/common/controls/buttons/RoundButton","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/SendFiles","@social-mail/social-mail-client/dist/web/page/mails/ChooseMailboxPage","@social-mail/social-mail-client/dist/common/pages/folders/ChooseTemplatePage","@social-mail/social-mail-client/dist/web/page/files/service/CloudFileService","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/common/controls/tree/TreeView","@social-mail/social-mail-client/dist/services/mime-service/MimeMessage","@social-mail/social-mail-client/dist/services/mime-service/MimeNode","@social-mail/social-mail-client/dist/common/QueryIterator","@social-mail/social-mail-client/dist/services/mime-service/AttachmentFile","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentType","@social-mail/social-mail-client/dist/services/mime-service/parsePairs","@social-mail/social-mail-client/dist/services/mime-service/tokenizer","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentDisposition","@social-mail/social-mail-client/dist/services/mime-service/encoder/word-encoding","@social-mail/social-mail-client/dist/services/mime-service/encoder/RawBuffer","@social-mail/social-mail-client/dist/services/mime-service/encoder/base64-to-blob","@social-mail/social-mail-client/dist/services/mime-service/encoder/quoted-printable","@social-mail/social-mail-client/dist/services/mime-service/stream/LineStream","@social-mail/social-mail-client/dist/services/mime-service/stream/TextWriter","@web-atoms/web-controls/dist/basic/Resizable","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/web/page/mails/contact/AddMiniContactPage","@social-mail/social-mail-client/dist/web/page/channels/detail/ChannelDetailPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/ChannelSubscribersPage","@social-mail/social-mail-client/dist/web/page/channels/services/ChannelService","@social-mail/social-mail-client/dist/web/page/channels/subscribers/add/AddSubscriberPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/rights/UpdateRightsPage","@social-mail/social-mail-client/dist/common/pages/drives/DriveListPage","@social-mail/social-mail-client/dist/common/pages/websites/manage/ManageWebSitePage","@social-mail/social-mail-client/dist/services/websites/WebSiteService","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditor","@web-atoms/web-controls/dist/basic/Expander","@web-atoms/web-controls/dist/basic/styles/expander-style","@social-mail/social-mail-client/dist/common/pages/websites/studio/WebSiteStudioPage","@social-mail/social-mail-client/dist/web/page/files/shares/EditSharesPage","@social-mail/social-mail-client/dist/services/files/FileShareService","@social-mail/social-mail-client/dist/web/page/files/shares/AddSharePage","@web-atoms/web-controls/dist/basic/Switch","@web-atoms/web-controls/dist/basic/styles/switch-style","@social-mail/social-mail-client/dist/common/controls/drop-downs/user/UserDropDown","@web-atoms/web-controls/dist/basic/DropDown","@web-atoms/web-controls/dist/basic/styles/drop-down-style","@web-atoms/web-controls/dist/basic/DateField","@web-atoms/web-controls/dist/basic/Calendar","@web-atoms/web-controls/dist/basic/Select","@web-atoms/web-controls/dist/basic/styles/calendar-style","@web-atoms/web-controls/dist/basic/TimeEditor","@web-atoms/web-controls/dist/basic/styles/time-editor-style","@web-atoms/web-controls/dist/basic/styles/date-field-style","@social-mail/social-mail-client/dist/web/page/templates/EditTemplatePage","@social-mail/social-mail-client/dist/common/pages/websites/templates/ChooseWebSiteTemplatePage","@social-mail/social-mail-client/dist/common/controls/tree/FileTreeView","@social-mail/social-mail-client/dist/site-editor/editor/WebSitePageEditor","@social-mail/social-mail-client/dist/site-editor/editor/HtmlPageEditor","@social-mail/social-mail-client/dist/site-editor/blocks/ImageBlock","@social-mail/social-mail-client/dist/site-editor/blocks/Block","@social-mail/social-mail-client/dist/site-editor/drag-drop/DragDropHelper","@social-mail/social-mail-client/dist/site-editor/commands/CodeCommand","@social-mail/social-mail-client/dist/site-editor/commands/EditorCommand","@social-mail/social-mail-client/dist/site-editor/toolbars/UndoRedoToolbar","@social-mail/social-mail-client/dist/site-editor/toolbars/EditorToolbar","@social-mail/social-mail-client/dist/site-editor/blocks/WrapGrid","@social-mail/social-mail-client/dist/site-editor/properties/Properties","@social-mail/social-mail-client/dist/site-editor/properties/groups/LayoutEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/PropertyEditor","@social-mail/social-mail-client/dist/site-editor/styler/StylerSet","@social-mail/social-mail-client/dist/site-editor/styler/Styler","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBorder","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/display","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/flex/flex","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/items-position/itemsPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/layout","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSpace","@social-mail/social-mail-client/dist/site-editor/styler/properties/text/stylerText","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBackground","@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/SizeEditorControl","@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SpaceGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/PositionGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/BackgroundGroupEditor","@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement","@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage","@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop","@social-mail/social-mail-client/dist/common/pages/user/change-password/ChangePasswordPage","@social-mail/social-mail-client/dist/common/pages/user/services/UserService","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/common/pages/user/multi-factor/MultiFactorSetupPage","@social-mail/social-mail-client/dist/common/pages/websites/list/WebSiteListPage","@social-mail/social-mail-client/dist/common/pages/websites/edit/WebSiteFolderEditor","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxDetailPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/settings/EditSyncTargetPage","@social-mail/social-mail-client/dist/common/icons/Icons","@social-mail/social-mail-client/dist/common/pages/mailboxes/external-mailboxes/AddExternalMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/ExternalMailboxService","@social-mail/social-mail-client/dist/web/page/files/FolderPage","@social-mail/social-mail-client/dist/web/page/files/preview/image/PreviewImage","@web-atoms/web-controls/dist/basic/PinchZoomView","@web-atoms/web-controls/dist/basic/styles/pinch-zoom-view-style","@social-mail/social-mail-client/dist/web/page/files/preview/document/PreviewDocument","@social-mail/social-mail-client/dist/web/page/files/preview/media/PreviewMedia","@web-atoms/web-controls/dist/player/AtomVideoPlayer","@social-mail/social-mail-client/dist/services/FileTypes","@social-mail/social-mail-client/dist/style/GlobalStyle","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@social-mail/social-mail-client/dist/services/LoginService","@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage","@social-mail/social-mail-client/dist/web/drawer/AppDrawer","@social-mail/social-mail-client/dist/common/controls/menu/MenuItem","@social-mail/social-mail-client/dist/common/controls/ModuleInfo","@social-mail/social-mail-client/dist/services/WebPushService","@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/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/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"]);
|
|
1988
|
+
["@social-mail/social-mail-client/dist/web/AppIndex","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/Pack","@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp","@web-atoms/web-controls/dist/mobile-app/MobileApp","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/StringHelper","@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/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/di/DISingleton","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@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/Hacks","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/style/styled","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/web-controls/dist/PageNavigator","@web-atoms/web-controls/dist/desktop-app/DesktopApp","@social-mail/social-mail-client/dist/web/commands/AppCommands","@social-mail/social-mail-client/dist/web/page/home/HomePage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@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/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@web-atoms/core/dist/di/DITransient","@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","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/common/SocialMailApp","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@web-atoms/web-controls/dist/basic/Form","@social-mail/social-mail-client/dist/common/controls/form/RequiredFormField","@web-atoms/web-controls/dist/basic/FormField","@web-atoms/web-controls/dist/basic/styles/form-field-style","@web-atoms/web-controls/dist/basic/PasswordBox","@web-atoms/web-controls/dist/basic/styles/password-box-style","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/common/controls/buttons/IconButton","@social-mail/social-mail-client/dist/admin/pages/users/ChooseUserPage","@social-mail/social-mail-client/dist/admin/pages/users/services/AdminUserService","@web-atoms/web-controls/dist/basic/Checkbox","@web-atoms/web-controls/dist/basic/styles/checkbox-style","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/common/commands/CommonCommands","@social-mail/social-mail-client/dist/web/page/mails/MailboxContacts","@social-mail/social-mail-client/dist/web/page/mails/service/MailService","@social-mail/social-mail-client/dist/common/events/CommonEvents","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/web/page/mails/ConversationPage","@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","@web-atoms/web-controls/dist/basic/InlinePopupControl","@social-mail/social-mail-client/dist/web/page/mails/ComposeMailPage","@social-mail/social-mail-client/dist/common/controls/html/InlineHtmlEditorWithToolbar","@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor","@web-atoms/data-styles/data-styles","@web-atoms/web-controls/dist/html-editor/commands/AddImage","@web-atoms/web-controls/dist/html-editor/commands/CommandButton","@web-atoms/web-controls/dist/html-editor/commands/HtmlCommands","@web-atoms/web-controls/dist/html-editor/commands/Toolbar","@web-atoms/web-controls/dist/html-editor/commands/Bold","@web-atoms/web-controls/dist/html-editor/commands/Command","@web-atoms/web-controls/dist/html-editor/commands/Italic","@web-atoms/web-controls/dist/html-editor/commands/Underline","@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough","@web-atoms/web-controls/dist/html-editor/commands/Align","@web-atoms/web-controls/dist/basic/PopupButton","@web-atoms/web-controls/dist/basic/styles/popup-button-style","@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule","@web-atoms/web-controls/dist/html-editor/commands/Separator","@web-atoms/web-controls/dist/html-editor/commands/Headings","@web-atoms/web-controls/dist/html-editor/commands/ChangeColor","@web-atoms/web-controls/dist/html-editor/commands/ChangeFont","@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize","@web-atoms/web-controls/dist/html-editor/commands/NumberedList","@web-atoms/web-controls/dist/html-editor/commands/UnorderedList","@web-atoms/web-controls/dist/html-editor/commands/IndentLess","@web-atoms/web-controls/dist/html-editor/commands/IndentMore","@web-atoms/web-controls/dist/html-editor/commands/AddLink","@web-atoms/core/dist/web/controls/AtomToggleButtonBar","@web-atoms/core/dist/web/styles/AtomToggleButtonBarStyle","@web-atoms/core/dist/web/styles/AtomListBoxStyle","@web-atoms/core/dist/web/controls/AtomListBox","@web-atoms/core/dist/web/controls/AtomItemsControl","@web-atoms/core/dist/core/AtomEnumerator","@web-atoms/core/dist/core/AtomList","@web-atoms/web-controls/dist/html-editor/commands/Unlink","@web-atoms/web-controls/dist/html-editor/commands/RemoveFormat","@web-atoms/web-controls/dist/html-editor/commands/Source","@web-atoms/web-controls/dist/basic/UploadEvent","@social-mail/social-mail-client/dist/services/files/LocalFileService","@web-atoms/web-controls/dist/basic/TitleEditor","@web-atoms/web-controls/dist/basic/styles/title-editor-style","@social-mail/social-mail-client/dist/common/controls/email-recipients/EmailRecipientChips","@web-atoms/web-controls/dist/basic/AtomChips","@web-atoms/web-controls/dist/basic/Chip","@web-atoms/web-controls/dist/basic/styles/chip-style","@web-atoms/web-controls/dist/basic/styles/chips-style","@web-atoms/web-controls/dist/basic/styles/item-suggestion-style","@social-mail/social-mail-client/dist/services/email-addresses/EmailAddressService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/web/page/templates/social/SocialTemplate","@social-mail/social-mail-client/dist/services/Emoji","@social-mail/social-mail-client/dist/services/socket/sockets","@web-atoms/web-controls/dist/basic/LimitedText","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/common/pages/logs/LogsPage","@social-mail/social-mail-client/dist/common/pages/logs/services/AppLogService","@social-mail/social-mail-client/dist/web/page/mails/detail/MailDetailPage","@social-mail/social-mail-client/dist/common/controls/file-preview/FilePreview","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposeBox","@social-mail/social-mail-client/dist/common/controls/audio/AudioRecorder","@web-atoms/web-controls/dist/mobile-app/BottomPopup","@web-atoms/web-controls/dist/animations/Animations","@social-mail/social-mail-client/dist/common/controls/audio/WebRTCService","@social-mail/social-mail-client/dist/common/controls/buttons/RoundButton","@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor","@web-atoms/web-controls/dist/html-editor/commands/AttachFile","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/Insert","@social-mail/social-mail-client/dist/web/page/mails/ChooseMailboxPage","@social-mail/social-mail-client/dist/common/pages/folders/ChooseTemplatePage","@social-mail/social-mail-client/dist/web/page/files/service/CloudFileService","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/common/controls/tree/TreeView","@social-mail/social-mail-client/dist/services/mime-service/MimeMessage","@social-mail/social-mail-client/dist/services/mime-service/MimeNode","@social-mail/social-mail-client/dist/common/QueryIterator","@social-mail/social-mail-client/dist/services/mime-service/AttachmentFile","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentType","@social-mail/social-mail-client/dist/services/mime-service/parsePairs","@social-mail/social-mail-client/dist/services/mime-service/tokenizer","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentDisposition","@social-mail/social-mail-client/dist/services/mime-service/encoder/word-encoding","@social-mail/social-mail-client/dist/services/mime-service/encoder/RawBuffer","@social-mail/social-mail-client/dist/services/mime-service/encoder/base64-to-blob","@social-mail/social-mail-client/dist/services/mime-service/encoder/quoted-printable","@social-mail/social-mail-client/dist/services/mime-service/stream/LineStream","@social-mail/social-mail-client/dist/services/mime-service/stream/TextWriter","@web-atoms/web-controls/dist/basic/Resizable","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/web/page/mails/contact/AddMiniContactPage","@social-mail/social-mail-client/dist/web/page/channels/detail/ChannelDetailPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/ChannelSubscribersPage","@social-mail/social-mail-client/dist/web/page/channels/services/ChannelService","@social-mail/social-mail-client/dist/web/page/channels/subscribers/add/AddSubscriberPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/rights/UpdateRightsPage","@social-mail/social-mail-client/dist/common/pages/drives/DriveListPage","@social-mail/social-mail-client/dist/common/pages/websites/manage/ManageWebSitePage","@social-mail/social-mail-client/dist/services/websites/WebSiteService","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditor","@web-atoms/web-controls/dist/basic/Expander","@web-atoms/web-controls/dist/basic/styles/expander-style","@social-mail/social-mail-client/dist/common/pages/websites/studio/WebSiteStudioPage","@social-mail/social-mail-client/dist/web/page/files/shares/EditSharesPage","@social-mail/social-mail-client/dist/services/files/FileShareService","@social-mail/social-mail-client/dist/web/page/files/shares/AddSharePage","@web-atoms/web-controls/dist/basic/Switch","@web-atoms/web-controls/dist/basic/styles/switch-style","@social-mail/social-mail-client/dist/common/controls/drop-downs/user/UserDropDown","@web-atoms/web-controls/dist/basic/DropDown","@web-atoms/web-controls/dist/basic/styles/drop-down-style","@web-atoms/web-controls/dist/basic/DateField","@web-atoms/web-controls/dist/basic/Calendar","@web-atoms/web-controls/dist/basic/Select","@web-atoms/web-controls/dist/basic/styles/calendar-style","@web-atoms/web-controls/dist/basic/TimeEditor","@web-atoms/web-controls/dist/basic/styles/time-editor-style","@web-atoms/web-controls/dist/basic/styles/date-field-style","@social-mail/social-mail-client/dist/web/page/templates/EditTemplatePage","@social-mail/social-mail-client/dist/common/pages/websites/templates/ChooseWebSiteTemplatePage","@social-mail/social-mail-client/dist/common/controls/tree/FileTreeView","@social-mail/social-mail-client/dist/site-editor/editor/WebSitePageEditor","@social-mail/social-mail-client/dist/site-editor/editor/HtmlPageEditor","@social-mail/social-mail-client/dist/site-editor/blocks/ImageBlock","@social-mail/social-mail-client/dist/site-editor/blocks/Block","@social-mail/social-mail-client/dist/site-editor/drag-drop/DragDropHelper","@social-mail/social-mail-client/dist/site-editor/commands/CodeCommand","@social-mail/social-mail-client/dist/site-editor/commands/EditorCommand","@social-mail/social-mail-client/dist/site-editor/toolbars/UndoRedoToolbar","@social-mail/social-mail-client/dist/site-editor/toolbars/EditorToolbar","@social-mail/social-mail-client/dist/site-editor/blocks/WrapGrid","@social-mail/social-mail-client/dist/site-editor/properties/Properties","@social-mail/social-mail-client/dist/site-editor/properties/groups/LayoutEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/PropertyEditor","@social-mail/social-mail-client/dist/site-editor/styler/StylerSet","@social-mail/social-mail-client/dist/site-editor/styler/Styler","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBorder","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/display","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/flex/flex","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/items-position/itemsPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/layout","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSpace","@social-mail/social-mail-client/dist/site-editor/styler/properties/text/stylerText","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBackground","@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/SizeEditorControl","@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SpaceGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/PositionGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/BackgroundGroupEditor","@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement","@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage","@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop","@social-mail/social-mail-client/dist/common/pages/user/change-password/ChangePasswordPage","@social-mail/social-mail-client/dist/common/pages/user/services/UserService","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/common/pages/user/multi-factor/MultiFactorSetupPage","@social-mail/social-mail-client/dist/common/pages/websites/list/WebSiteListPage","@social-mail/social-mail-client/dist/common/pages/websites/edit/WebSiteFolderEditor","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxDetailPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/settings/EditSyncTargetPage","@social-mail/social-mail-client/dist/common/icons/Icons","@social-mail/social-mail-client/dist/common/pages/mailboxes/external-mailboxes/AddExternalMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/ExternalMailboxService","@social-mail/social-mail-client/dist/web/page/files/FolderPage","@social-mail/social-mail-client/dist/web/page/files/preview/image/PreviewImage","@web-atoms/web-controls/dist/basic/PinchZoomView","@web-atoms/web-controls/dist/basic/styles/pinch-zoom-view-style","@social-mail/social-mail-client/dist/web/page/files/preview/document/PreviewDocument","@social-mail/social-mail-client/dist/web/page/files/preview/media/PreviewMedia","@web-atoms/web-controls/dist/player/AtomVideoPlayer","@social-mail/social-mail-client/dist/services/FileTypes","@social-mail/social-mail-client/dist/style/GlobalStyle","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@social-mail/social-mail-client/dist/services/LoginService","@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage","@social-mail/social-mail-client/dist/web/drawer/AppDrawer","@social-mail/social-mail-client/dist/common/controls/menu/MenuItem","@social-mail/social-mail-client/dist/common/controls/ModuleInfo","@social-mail/social-mail-client/dist/services/WebPushService","@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/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/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"]);
|
|
1989
1989
|
|
|
1990
1990
|
System.register([], function (_export, _context) {
|
|
1991
1991
|
"use strict";
|
|
@@ -14135,6 +14135,7 @@ System.register(["./Queue"], function (_export, _context) {
|
|
|
14135
14135
|
fx
|
|
14136
14136
|
});
|
|
14137
14137
|
});
|
|
14138
|
+
pr.catch(error => console.error(error));
|
|
14138
14139
|
this.processQueue();
|
|
14139
14140
|
return pr;
|
|
14140
14141
|
}
|
|
@@ -15025,12 +15026,19 @@ System.register(["tslib", "../models/Cloner", "../models/IEntityModel", "./HttpS
|
|
|
15025
15026
|
body
|
|
15026
15027
|
});
|
|
15027
15028
|
}
|
|
15028
|
-
save(body) {
|
|
15029
|
+
save(body, cloner) {
|
|
15029
15030
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15030
15031
|
if (Array.isArray(body) && body.length === 0) {
|
|
15031
15032
|
return body;
|
|
15032
15033
|
}
|
|
15033
15034
|
const url = this.url;
|
|
15035
|
+
if (body instanceof Cloner) {
|
|
15036
|
+
body = body.copy;
|
|
15037
|
+
}
|
|
15038
|
+
if (cloner) {
|
|
15039
|
+
const c = cloner(new Cloner(body));
|
|
15040
|
+
body = c.copy;
|
|
15041
|
+
}
|
|
15034
15042
|
const result = yield this.postJson({
|
|
15035
15043
|
url,
|
|
15036
15044
|
body
|
|
@@ -17314,6 +17322,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
17314
17322
|
labelPath: item => item === null || item === void 0 ? void 0 : item.name,
|
|
17315
17323
|
valuePath: item => item === null || item === void 0 ? void 0 : item.domainID,
|
|
17316
17324
|
selectedItem: Bind.twoWaysImmediate(() => this.model.domain),
|
|
17325
|
+
value: Bind.twoWaysImmediate(() => this.model.domainID),
|
|
17317
17326
|
items: domains
|
|
17318
17327
|
})), XNode.create(FormField, {
|
|
17319
17328
|
label: "Email Address"
|
|
@@ -17352,7 +17361,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
17352
17361
|
}
|
|
17353
17362
|
saveMailbox() {
|
|
17354
17363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17355
|
-
this.model.domainID = this.model.domain.domainID;
|
|
17356
17364
|
yield this.mailboxService.save(this.model);
|
|
17357
17365
|
return this.model;
|
|
17358
17366
|
});
|
|
@@ -17481,7 +17489,9 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
|
|
|
17481
17489
|
onThreadMarkedAsRead: EventScope.create(),
|
|
17482
17490
|
onThreadMarkedAsBlocked: EventScope.create(),
|
|
17483
17491
|
onDraftDeleted: EventScope.create(),
|
|
17484
|
-
onFileDeleted: EventScope.create()
|
|
17492
|
+
onFileDeleted: EventScope.create(),
|
|
17493
|
+
onEmailScheduled: EventScope.create(),
|
|
17494
|
+
onEmailUnscheduled: EventScope.create()
|
|
17485
17495
|
});
|
|
17486
17496
|
}
|
|
17487
17497
|
};
|
|
@@ -17572,6 +17582,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
17572
17582
|
}
|
|
17573
17583
|
const cloner = this.entityService.cloner(email).include(x => x.recipients).include(x => x.attachments).copy;
|
|
17574
17584
|
yield this.entityService.save(cloner);
|
|
17585
|
+
CommonEvents.onEmailScheduled.dispatchEvent(email);
|
|
17575
17586
|
});
|
|
17576
17587
|
}
|
|
17577
17588
|
deleteAttachment(file) {
|
|
@@ -18190,7 +18201,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18190
18201
|
emailAddressID,
|
|
18191
18202
|
email
|
|
18192
18203
|
}, create = false) {
|
|
18193
|
-
var _a, _b;
|
|
18204
|
+
var _a, _b, _c;
|
|
18194
18205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18195
18206
|
if (email === null || email === void 0 ? void 0 : email.emailID) {
|
|
18196
18207
|
if (!email.textBody) {
|
|
@@ -18204,25 +18215,28 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18204
18215
|
return email;
|
|
18205
18216
|
}
|
|
18206
18217
|
if (create && email) {
|
|
18207
|
-
(_a = email.recipients) !== null && _a !== void 0 ? _a : email.recipients = [];
|
|
18208
|
-
(_b = email.mailboxes) !== null && _b !== void 0 ? _b : email.mailboxes = [];
|
|
18218
|
+
const recipients = (_a = email.recipients) !== null && _a !== void 0 ? _a : email.recipients = [];
|
|
18219
|
+
const mailboxes = (_b = email.mailboxes) !== null && _b !== void 0 ? _b : email.mailboxes = [];
|
|
18220
|
+
const threads = (_c = email.threadEmails) !== null && _c !== void 0 ? _c : email.threadEmails = [];
|
|
18209
18221
|
email.senderID = mailboxID;
|
|
18210
|
-
|
|
18211
|
-
|
|
18222
|
+
email.status = "draft";
|
|
18223
|
+
if (!mailboxes.some(m => m.mailboxID === mailboxID)) {
|
|
18224
|
+
mailboxes.push(MailboxEmail.create({
|
|
18212
18225
|
mailboxID
|
|
18213
18226
|
}));
|
|
18214
18227
|
}
|
|
18215
|
-
if (!
|
|
18216
|
-
|
|
18228
|
+
if (!recipients.some(r => r.emailAddressID === emailAddressID)) {
|
|
18229
|
+
recipients.push(EmailRecipient.create({
|
|
18217
18230
|
emailAddressID
|
|
18218
18231
|
}));
|
|
18219
18232
|
}
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
18224
|
-
|
|
18225
|
-
|
|
18233
|
+
if (!threads.some(r => r.mailboxID === mailboxID)) {
|
|
18234
|
+
threads.push(MailboxContactEmail.create({
|
|
18235
|
+
mailboxID,
|
|
18236
|
+
emailAddressID
|
|
18237
|
+
}));
|
|
18238
|
+
}
|
|
18239
|
+
yield this.entityService.save(email);
|
|
18226
18240
|
}
|
|
18227
18241
|
return email;
|
|
18228
18242
|
});
|
|
@@ -18272,6 +18286,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18272
18286
|
return emails;
|
|
18273
18287
|
});
|
|
18274
18288
|
}
|
|
18289
|
+
stopEmail(mce) {
|
|
18290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18291
|
+
const {
|
|
18292
|
+
email
|
|
18293
|
+
} = mce;
|
|
18294
|
+
email.status = "draft";
|
|
18295
|
+
yield this.entityService.save(email, c => c);
|
|
18296
|
+
CommonEvents.onEmailUnscheduled.dispatchEvent(mce);
|
|
18297
|
+
});
|
|
18298
|
+
}
|
|
18275
18299
|
renderText(html) {
|
|
18276
18300
|
const div = document.createElement("div");
|
|
18277
18301
|
div.innerHTML = html;
|
|
@@ -18298,10 +18322,12 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18298
18322
|
delete(email) {
|
|
18299
18323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18300
18324
|
const {
|
|
18301
|
-
emailID
|
|
18325
|
+
emailID,
|
|
18326
|
+
status
|
|
18302
18327
|
} = email;
|
|
18303
18328
|
yield this.entityService.delete(Email.create({
|
|
18304
|
-
emailID
|
|
18329
|
+
emailID,
|
|
18330
|
+
status
|
|
18305
18331
|
}));
|
|
18306
18332
|
CommonEvents.onDraftDeleted.dispatchEvent(email);
|
|
18307
18333
|
});
|
|
@@ -19193,12 +19219,15 @@ System.register(["@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XN
|
|
|
19193
19219
|
"use strict";
|
|
19194
19220
|
|
|
19195
19221
|
var Bind, XNode, PopupButton, MenuItem;
|
|
19196
|
-
function Align(
|
|
19222
|
+
function Align({
|
|
19223
|
+
alignment = "bottomRight"
|
|
19224
|
+
}) {
|
|
19197
19225
|
return XNode.create(PopupButton, {
|
|
19198
19226
|
class: "command",
|
|
19199
19227
|
"data-layout": "toolbar-button",
|
|
19200
19228
|
icon: "ri-align-left",
|
|
19201
|
-
title: "Change Alignment"
|
|
19229
|
+
title: "Change Alignment",
|
|
19230
|
+
alignment: alignment
|
|
19202
19231
|
}, XNode.create(MenuItem, {
|
|
19203
19232
|
icon: "ri-align-left",
|
|
19204
19233
|
title: "Align Left",
|
|
@@ -21599,10 +21628,10 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
|
|
|
21599
21628
|
|
|
21600
21629
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/services/files/LocalFileService");
|
|
21601
21630
|
|
|
21602
|
-
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Toolbar", "@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/Underline", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "@web-atoms/web-controls/dist/html-editor/commands/Headings", "@web-atoms/web-controls/dist/html-editor/commands/ChangeColor", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFont", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize", "@web-atoms/web-controls/dist/html-editor/commands/NumberedList", "@web-atoms/web-controls/dist/html-editor/commands/UnorderedList", "@web-atoms/web-controls/dist/html-editor/commands/IndentLess", "@web-atoms/web-controls/dist/html-editor/commands/IndentMore", "@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/RemoveFormat", "@web-atoms/web-controls/dist/html-editor/commands/Source", "@web-atoms/web-controls/dist/basic/UploadEvent", "../../../services/files/LocalFileService", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/StringHelper"], function (_export, _context) {
|
|
21631
|
+
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Toolbar", "@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/Underline", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "@web-atoms/web-controls/dist/html-editor/commands/Headings", "@web-atoms/web-controls/dist/html-editor/commands/ChangeColor", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFont", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize", "@web-atoms/web-controls/dist/html-editor/commands/NumberedList", "@web-atoms/web-controls/dist/html-editor/commands/UnorderedList", "@web-atoms/web-controls/dist/html-editor/commands/IndentLess", "@web-atoms/web-controls/dist/html-editor/commands/IndentMore", "@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/RemoveFormat", "@web-atoms/web-controls/dist/html-editor/commands/Source", "@web-atoms/web-controls/dist/basic/UploadEvent", "../../../services/files/LocalFileService", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/StringHelper", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
21603
21632
|
"use strict";
|
|
21604
21633
|
|
|
21605
|
-
var __awaiter, __decorate, __metadata, XNode, InlineHtmlEditor, Toolbar, Bold, Italic, Underline, StrikeThrough, Align, HorizontalRule, Separator, Headings, ChangeColor, ChangeFont, ChangeFontSize, NumberedList, UnorderedList, IndentLess, IndentMore, AddLink, Unlink, RemoveFormat, Source, UploadEvent, LocalFileService, acceptDocumentAndMedia, AtomControl, InjectProperty, StringHelper, MailHtmlEditor, link, onAttachImage, onAttachInlineImage;
|
|
21634
|
+
var __awaiter, __decorate, __metadata, XNode, InlineHtmlEditor, Toolbar, Bold, Italic, Underline, StrikeThrough, Align, HorizontalRule, Separator, Headings, ChangeColor, ChangeFont, ChangeFontSize, NumberedList, UnorderedList, IndentLess, IndentMore, AddLink, Unlink, RemoveFormat, Source, UploadEvent, LocalFileService, acceptDocumentAndMedia, AtomControl, InjectProperty, StringHelper, styled, MailHtmlEditor, link, onAttachImage, onAttachInlineImage, css;
|
|
21606
21635
|
function AttachFile({
|
|
21607
21636
|
accept = acceptDocumentAndMedia,
|
|
21608
21637
|
maxSize = 1024 * 1024 * 10,
|
|
@@ -21724,6 +21753,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
21724
21753
|
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
21725
21754
|
}, function (_webAtomsCoreDistCoreStringHelper) {
|
|
21726
21755
|
StringHelper = _webAtomsCoreDistCoreStringHelper.StringHelper;
|
|
21756
|
+
}, function (_webAtomsCoreDistStyleStyled) {
|
|
21757
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
21727
21758
|
}],
|
|
21728
21759
|
execute: function () {
|
|
21729
21760
|
link = document.createElement("link");
|
|
@@ -21761,6 +21792,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
21761
21792
|
};
|
|
21762
21793
|
reader.readAsDataURL(file);
|
|
21763
21794
|
});
|
|
21795
|
+
css = styled.css`
|
|
21796
|
+
& > [data-element=editor] {
|
|
21797
|
+
background-color: white;
|
|
21798
|
+
color: black;
|
|
21799
|
+
}
|
|
21800
|
+
`.installLocal();
|
|
21764
21801
|
_export("MailHtmlEditor", MailHtmlEditor = class MailHtmlEditor extends InlineHtmlEditor {
|
|
21765
21802
|
onPasteEvent(e) {
|
|
21766
21803
|
if (e.clipboardData.files.length) {
|
|
@@ -21785,6 +21822,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
21785
21822
|
}
|
|
21786
21823
|
preCreate() {
|
|
21787
21824
|
super.preCreate();
|
|
21825
|
+
this.element.className = css;
|
|
21788
21826
|
this.sanitizeHtml = node => {
|
|
21789
21827
|
const images = Array.from(node.querySelectorAll(`img[data-content-id]`));
|
|
21790
21828
|
for (const image of images) {
|
|
@@ -24427,91 +24465,549 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
24427
24465
|
|
|
24428
24466
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/audio/AudioRecorder");
|
|
24429
24467
|
|
|
24430
|
-
System.register(["
|
|
24468
|
+
System.register(["@web-atoms/core/dist/core/XNode", "../../basic/UploadEvent"], function (_export, _context) {
|
|
24431
24469
|
"use strict";
|
|
24432
24470
|
|
|
24433
|
-
var
|
|
24471
|
+
var XNode, UploadEvent;
|
|
24472
|
+
function AttachFile({
|
|
24473
|
+
accept = "image/*",
|
|
24474
|
+
maxSize = 1024 * 1024 * 5,
|
|
24475
|
+
authorize = true,
|
|
24476
|
+
capture = null,
|
|
24477
|
+
ariaLabel = "upload"
|
|
24478
|
+
}) {
|
|
24479
|
+
return XNode.create("button", Object.assign({
|
|
24480
|
+
title: "Insert Image",
|
|
24481
|
+
class: "command"
|
|
24482
|
+
}, UploadEvent.AttachUploadAction({
|
|
24483
|
+
accept,
|
|
24484
|
+
forceType: true,
|
|
24485
|
+
maxSize,
|
|
24486
|
+
authorize,
|
|
24487
|
+
capture,
|
|
24488
|
+
multiple: false,
|
|
24489
|
+
ariaLabel
|
|
24490
|
+
})), XNode.create("i", {
|
|
24491
|
+
class: "ri-attachment-2"
|
|
24492
|
+
}));
|
|
24493
|
+
}
|
|
24494
|
+
_export("default", AttachFile);
|
|
24495
|
+
return {
|
|
24496
|
+
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
24497
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24498
|
+
}, function (_basicUploadEvent) {
|
|
24499
|
+
UploadEvent = _basicUploadEvent.default;
|
|
24500
|
+
}],
|
|
24501
|
+
execute: function () {}
|
|
24502
|
+
};
|
|
24503
|
+
});
|
|
24504
|
+
//# sourceMappingURL=AttachFile.js.map
|
|
24505
|
+
|
|
24506
|
+
AmdLoader.instance.setup("@web-atoms/web-controls/dist/html-editor/commands/AttachFile");
|
|
24507
|
+
|
|
24508
|
+
System.register(["tslib", "@web-atoms/core/dist/core/AtomBinder", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "../basic/AtomRepeater", "./commands/AddImage", "./commands/AddLink", "./commands/Align", "./commands/AttachFile", "./commands/Bold", "./commands/ChangeColor", "./commands/ChangeFont", "./commands/ChangeFontSize", "./commands/Headings", "./commands/HorizontalRule", "./commands/IndentLess", "./commands/IndentMore", "./commands/Italic", "./commands/NumberedList", "./commands/RemoveFormat", "./commands/Separator", "./commands/Source", "./commands/StrikeThrough", "./commands/Underline", "./commands/Unlink", "./commands/UnorderedList", "./commands/Toolbar", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
24509
|
+
"use strict";
|
|
24510
|
+
|
|
24511
|
+
var __decorate, __metadata, AtomBinder, Bind, BindableProperty, XNode, AtomControl, AtomRepeater, AddImage, showImageDialog, AddLink, Align, AttachFile, Bold, ChangeColor, ChangeFont, ChangeFontSize, Headings, HorizontalRule, IndentLess, IndentMore, Italic, NumberedList, RemoveFormat, Separator, Source, StrikeThrough, Underline, Unlink, UnorderedList, Toolbar, styled, AtomHtmlEditor, link, css;
|
|
24512
|
+
function preventLinkClick(e, editor, doc) {
|
|
24513
|
+
let target = e.target;
|
|
24514
|
+
const body = doc.body;
|
|
24515
|
+
while (target) {
|
|
24516
|
+
if (target.getAttribute("data-prompt")) {
|
|
24517
|
+
break;
|
|
24518
|
+
}
|
|
24519
|
+
if (target === body) {
|
|
24520
|
+
break;
|
|
24521
|
+
}
|
|
24522
|
+
if (target.isContentEditable) {
|
|
24523
|
+
editor.dispatchEvent(new MouseEvent("click", {
|
|
24524
|
+
bubbles: true,
|
|
24525
|
+
cancelable: true
|
|
24526
|
+
}));
|
|
24527
|
+
return;
|
|
24528
|
+
}
|
|
24529
|
+
if (target.tagName === "A") {
|
|
24530
|
+
e.preventDefault();
|
|
24531
|
+
}
|
|
24532
|
+
target = target.parentElement;
|
|
24533
|
+
}
|
|
24534
|
+
target = e.target;
|
|
24535
|
+
const originalTarget = target;
|
|
24536
|
+
const data = new Proxy(originalTarget, {
|
|
24537
|
+
get(target, p) {
|
|
24538
|
+
if (typeof p !== "string") {
|
|
24539
|
+
return;
|
|
24540
|
+
}
|
|
24541
|
+
while (target) {
|
|
24542
|
+
const value = target.dataset[p];
|
|
24543
|
+
if (value !== void 0) {
|
|
24544
|
+
return value;
|
|
24545
|
+
}
|
|
24546
|
+
target = target.parentElement;
|
|
24547
|
+
}
|
|
24548
|
+
}
|
|
24549
|
+
});
|
|
24550
|
+
editor.dispatchEvent(new CustomEvent("editorClick", {
|
|
24551
|
+
detail: {
|
|
24552
|
+
target,
|
|
24553
|
+
data
|
|
24554
|
+
},
|
|
24555
|
+
bubbles: true,
|
|
24556
|
+
cancelable: true
|
|
24557
|
+
}));
|
|
24558
|
+
editor.dispatchEvent(new MouseEvent("click", {
|
|
24559
|
+
bubbles: true,
|
|
24560
|
+
cancelable: true
|
|
24561
|
+
}));
|
|
24562
|
+
}
|
|
24434
24563
|
_export("default", void 0);
|
|
24435
24564
|
return {
|
|
24436
24565
|
setters: [function (_tslib) {
|
|
24437
|
-
__awaiter = _tslib.__awaiter;
|
|
24438
24566
|
__decorate = _tslib.__decorate;
|
|
24439
24567
|
__metadata = _tslib.__metadata;
|
|
24568
|
+
}, function (_webAtomsCoreDistCoreAtomBinder) {
|
|
24569
|
+
AtomBinder = _webAtomsCoreDistCoreAtomBinder.AtomBinder;
|
|
24570
|
+
}, function (_webAtomsCoreDistCoreBind) {
|
|
24571
|
+
Bind = _webAtomsCoreDistCoreBind.default;
|
|
24572
|
+
}, function (_webAtomsCoreDistCoreBindableProperty) {
|
|
24573
|
+
BindableProperty = _webAtomsCoreDistCoreBindableProperty.BindableProperty;
|
|
24440
24574
|
}, function (_webAtomsCoreDistCoreXNode) {
|
|
24441
24575
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24442
|
-
}, function (
|
|
24443
|
-
|
|
24444
|
-
}, function (
|
|
24445
|
-
|
|
24446
|
-
}, function (
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24576
|
+
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
24577
|
+
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
24578
|
+
}, function (_basicAtomRepeater) {
|
|
24579
|
+
AtomRepeater = _basicAtomRepeater.default;
|
|
24580
|
+
}, function (_commandsAddImage) {
|
|
24581
|
+
AddImage = _commandsAddImage.default;
|
|
24582
|
+
showImageDialog = _commandsAddImage.showImageDialog;
|
|
24583
|
+
}, function (_commandsAddLink) {
|
|
24584
|
+
AddLink = _commandsAddLink.default;
|
|
24585
|
+
}, function (_commandsAlign) {
|
|
24586
|
+
Align = _commandsAlign.default;
|
|
24587
|
+
}, function (_commandsAttachFile) {
|
|
24588
|
+
AttachFile = _commandsAttachFile.default;
|
|
24589
|
+
}, function (_commandsBold) {
|
|
24590
|
+
Bold = _commandsBold.default;
|
|
24591
|
+
}, function (_commandsChangeColor) {
|
|
24592
|
+
ChangeColor = _commandsChangeColor.default;
|
|
24593
|
+
}, function (_commandsChangeFont) {
|
|
24594
|
+
ChangeFont = _commandsChangeFont.default;
|
|
24595
|
+
}, function (_commandsChangeFontSize) {
|
|
24596
|
+
ChangeFontSize = _commandsChangeFontSize.default;
|
|
24597
|
+
}, function (_commandsHeadings) {
|
|
24598
|
+
Headings = _commandsHeadings.default;
|
|
24599
|
+
}, function (_commandsHorizontalRule) {
|
|
24600
|
+
HorizontalRule = _commandsHorizontalRule.default;
|
|
24601
|
+
}, function (_commandsIndentLess) {
|
|
24602
|
+
IndentLess = _commandsIndentLess.default;
|
|
24603
|
+
}, function (_commandsIndentMore) {
|
|
24604
|
+
IndentMore = _commandsIndentMore.default;
|
|
24605
|
+
}, function (_commandsItalic) {
|
|
24606
|
+
Italic = _commandsItalic.default;
|
|
24607
|
+
}, function (_commandsNumberedList) {
|
|
24608
|
+
NumberedList = _commandsNumberedList.default;
|
|
24609
|
+
}, function (_commandsRemoveFormat) {
|
|
24610
|
+
RemoveFormat = _commandsRemoveFormat.default;
|
|
24611
|
+
}, function (_commandsSeparator) {
|
|
24612
|
+
Separator = _commandsSeparator.default;
|
|
24613
|
+
}, function (_commandsSource) {
|
|
24614
|
+
Source = _commandsSource.default;
|
|
24615
|
+
}, function (_commandsStrikeThrough) {
|
|
24616
|
+
StrikeThrough = _commandsStrikeThrough.default;
|
|
24617
|
+
}, function (_commandsUnderline) {
|
|
24618
|
+
Underline = _commandsUnderline.default;
|
|
24619
|
+
}, function (_commandsUnlink) {
|
|
24620
|
+
Unlink = _commandsUnlink.default;
|
|
24621
|
+
}, function (_commandsUnorderedList) {
|
|
24622
|
+
UnorderedList = _commandsUnorderedList.default;
|
|
24623
|
+
}, function (_commandsToolbar) {
|
|
24624
|
+
Toolbar = _commandsToolbar.default;
|
|
24625
|
+
_export("Toolbar", _commandsToolbar.default);
|
|
24626
|
+
}, function (_webAtomsCoreDistStyleStyled) {
|
|
24627
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
24450
24628
|
}],
|
|
24451
24629
|
execute: function () {
|
|
24452
|
-
|
|
24453
|
-
|
|
24454
|
-
|
|
24455
|
-
|
|
24456
|
-
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24630
|
+
link = document.createElement("link");
|
|
24631
|
+
link.href = "https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css";
|
|
24632
|
+
link.rel = "preload";
|
|
24633
|
+
link.as = "style";
|
|
24634
|
+
link.onload = () => {
|
|
24635
|
+
link.onload = null;
|
|
24636
|
+
link.rel = "stylesheet";
|
|
24637
|
+
};
|
|
24638
|
+
document.head.appendChild(link);
|
|
24639
|
+
css = styled.css`
|
|
24640
|
+
|
|
24641
|
+
display: flex;
|
|
24642
|
+
flex-direction: column;
|
|
24643
|
+
min-height: 500px;
|
|
24644
|
+
|
|
24645
|
+
& > iframe {
|
|
24646
|
+
flex: 1 1 100%;
|
|
24647
|
+
}
|
|
24648
|
+
|
|
24649
|
+
& > .files > .file {
|
|
24650
|
+
flex-direction: row;
|
|
24651
|
+
align-items: center;
|
|
24652
|
+
justify-content: space-around;
|
|
24653
|
+
gap: 4px;
|
|
24654
|
+
display: inline-flex;
|
|
24655
|
+
border-color: rgba(211,211,211,0.5);
|
|
24656
|
+
border-width: 1px;
|
|
24657
|
+
border-style: solid;
|
|
24658
|
+
border-radius: 15px;
|
|
24659
|
+
padding-left: 10px;
|
|
24660
|
+
padding-right: 10px;
|
|
24661
|
+
|
|
24662
|
+
& > label {
|
|
24663
|
+
max-width: 100px;
|
|
24664
|
+
overflow: hidden;
|
|
24665
|
+
white-space: nowrap;
|
|
24666
|
+
text-overflow: ellipsis;
|
|
24667
|
+
}
|
|
24668
|
+
}
|
|
24669
|
+
|
|
24670
|
+
|
|
24671
|
+
& .toolbar {
|
|
24672
|
+
display: flex;
|
|
24673
|
+
flex-wrap: wrap;
|
|
24674
|
+
align-items: center;
|
|
24675
|
+
|
|
24676
|
+
& > .command {
|
|
24677
|
+
display: inline-flex;
|
|
24678
|
+
align-items: center;
|
|
24679
|
+
justify-content: space-evenly;
|
|
24680
|
+
border: none;
|
|
24681
|
+
cursor: pointer;
|
|
24682
|
+
background-color: #00000000;
|
|
24683
|
+
min-width: 28px;
|
|
24684
|
+
height: 28px;
|
|
24685
|
+
|
|
24686
|
+
&:hover {
|
|
24687
|
+
background-color: #90ee90;
|
|
24688
|
+
}
|
|
24689
|
+
|
|
24690
|
+
&.pressed {
|
|
24691
|
+
background-color: #d3d3d3;
|
|
24692
|
+
|
|
24693
|
+
&:hover {
|
|
24694
|
+
background-color: #90ee90;
|
|
24695
|
+
}
|
|
24696
|
+
}
|
|
24697
|
+
|
|
24698
|
+
& .ri-bold {
|
|
24699
|
+
font-weight: bold;
|
|
24700
|
+
}
|
|
24701
|
+
}
|
|
24702
|
+
}
|
|
24703
|
+
`.installLocal();
|
|
24704
|
+
_export("default", AtomHtmlEditor = class AtomHtmlEditor extends AtomControl {
|
|
24705
|
+
get htmlContent() {
|
|
24706
|
+
var _a, _b;
|
|
24707
|
+
try {
|
|
24708
|
+
return (_b = (_a = this.editor) === null || _a === void 0 ? void 0 : _a.innerHTML) !== null && _b !== void 0 ? _b : this.initialContent;
|
|
24709
|
+
} catch (ex) {
|
|
24710
|
+
console.warn(ex);
|
|
24711
|
+
}
|
|
24712
|
+
}
|
|
24713
|
+
set htmlContent(v) {
|
|
24714
|
+
if (this.editor) {
|
|
24715
|
+
this.editor.innerHTML = v;
|
|
24716
|
+
} else {
|
|
24717
|
+
this.initialContent = v;
|
|
24718
|
+
}
|
|
24719
|
+
AtomBinder.refreshValue(this, "htmlContent");
|
|
24720
|
+
}
|
|
24721
|
+
insertImage(s, e) {
|
|
24722
|
+
return showImageDialog(s, e);
|
|
24723
|
+
}
|
|
24724
|
+
executeCommand(cmd, showUI, value) {
|
|
24725
|
+
const r = this.editorDocument.execCommand(cmd, showUI, value);
|
|
24726
|
+
setTimeout(() => this.version++, 1);
|
|
24727
|
+
return r;
|
|
24728
|
+
}
|
|
24729
|
+
queryCommandState(cmd, ...a) {
|
|
24730
|
+
return this.editorDocument.queryCommandState(cmd);
|
|
24731
|
+
}
|
|
24732
|
+
getStyle(name, v) {
|
|
24733
|
+
try {
|
|
24734
|
+
const node = this.editorWindow.getSelection().getRangeAt(0);
|
|
24735
|
+
const e = node.startContainer.parentElement;
|
|
24736
|
+
return this.editorWindow.getComputedStyle(e)[name];
|
|
24737
|
+
} catch (ex) {
|
|
24738
|
+
return null;
|
|
24739
|
+
}
|
|
24740
|
+
}
|
|
24741
|
+
onPropertyChanged(name) {
|
|
24742
|
+
super.onPropertyChanged(name);
|
|
24743
|
+
if (name === "tags") {
|
|
24744
|
+
this.setupTags();
|
|
24745
|
+
}
|
|
24746
|
+
}
|
|
24747
|
+
setupTags() {
|
|
24748
|
+
const doc = this.editorDocument;
|
|
24749
|
+
if (!doc) {
|
|
24750
|
+
return;
|
|
24751
|
+
}
|
|
24752
|
+
if (Array.isArray(this.tags)) {
|
|
24753
|
+
for (const {
|
|
24754
|
+
name,
|
|
24755
|
+
style
|
|
24756
|
+
} of this.tags) {
|
|
24757
|
+
if (style) {
|
|
24758
|
+
const styleElement = doc.createElement("style");
|
|
24759
|
+
styleElement.textContent = `*[data-command=${name}] {
|
|
24760
|
+
${style.toStyleSheet()}
|
|
24761
|
+
}`;
|
|
24762
|
+
doc.head.appendChild(styleElement);
|
|
24763
|
+
}
|
|
24764
|
+
}
|
|
24765
|
+
}
|
|
24766
|
+
}
|
|
24767
|
+
preCreate() {
|
|
24768
|
+
this.version = 1;
|
|
24769
|
+
this.files = [];
|
|
24770
|
+
this.runAfterInit(() => {
|
|
24771
|
+
this.setup();
|
|
24490
24772
|
});
|
|
24773
|
+
this.element.classList.add(css);
|
|
24774
|
+
this.element.classList.add("html-editor");
|
|
24491
24775
|
}
|
|
24492
|
-
|
|
24493
|
-
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24497
|
-
|
|
24776
|
+
onPasteEvent(e) {
|
|
24777
|
+
if (!e.clipboardData.types.find(x => x === "text/html")) {
|
|
24778
|
+
return;
|
|
24779
|
+
}
|
|
24780
|
+
const d = e.clipboardData.getData("text/plain");
|
|
24781
|
+
if (d) {
|
|
24782
|
+
const s = window.getSelection();
|
|
24783
|
+
const r = s.getRangeAt(0);
|
|
24784
|
+
let last;
|
|
24785
|
+
const tags = [];
|
|
24786
|
+
for (const iterator of d.split("\n")) {
|
|
24787
|
+
const text = iterator.trim();
|
|
24788
|
+
if (!text) {
|
|
24789
|
+
continue;
|
|
24790
|
+
}
|
|
24791
|
+
last = document.createElement("p");
|
|
24792
|
+
last.innerText = iterator;
|
|
24793
|
+
tags.push(last);
|
|
24794
|
+
}
|
|
24795
|
+
while (tags.length) {
|
|
24796
|
+
r.insertNode(tags.pop());
|
|
24797
|
+
}
|
|
24798
|
+
r.setStartAfter(last);
|
|
24799
|
+
}
|
|
24800
|
+
e.preventDefault();
|
|
24801
|
+
}
|
|
24802
|
+
onInputEvent(e) {
|
|
24803
|
+
console.log(e);
|
|
24804
|
+
}
|
|
24805
|
+
setup() {
|
|
24806
|
+
var _a;
|
|
24807
|
+
const frame = this.element.getElementsByTagName("iframe")[0];
|
|
24808
|
+
const doc = frame.contentWindow.document;
|
|
24809
|
+
doc.open();
|
|
24810
|
+
const baseUrl = `${location.protocol}//${location.host}`;
|
|
24811
|
+
doc.writeln(`<base href="${baseUrl}"></base><div id="editor"><p> </p></div>`);
|
|
24812
|
+
doc.close();
|
|
24813
|
+
const style = doc.createElement("style");
|
|
24814
|
+
style.textContent = `body {
|
|
24815
|
+
font-family: arial,sans-serif
|
|
24816
|
+
}
|
|
24817
|
+
#editor {
|
|
24818
|
+
min-height: 500px;
|
|
24819
|
+
}
|
|
24820
|
+
*[data-prompt] {
|
|
24821
|
+
background: yellow
|
|
24822
|
+
}
|
|
24823
|
+
`;
|
|
24824
|
+
doc.head.appendChild(style);
|
|
24825
|
+
doc.body.addEventListener("click", e => preventLinkClick(e, this.element, doc));
|
|
24826
|
+
this.editor = doc.getElementById("editor");
|
|
24827
|
+
this.editor.contentEditable = "true";
|
|
24828
|
+
this.editor.innerHTML = (_a = this.initialContent) !== null && _a !== void 0 ? _a : "";
|
|
24829
|
+
doc.execCommand("styleWithCSS");
|
|
24830
|
+
doc.execCommand("insertBrOnReturn");
|
|
24831
|
+
const updateVersion = () => setTimeout(() => {
|
|
24832
|
+
this.version++;
|
|
24833
|
+
AtomBinder.refreshValue(this, "htmlContent");
|
|
24834
|
+
this.element.dispatchEvent(new CustomEvent("documentUpdated", {
|
|
24835
|
+
detail: this.editor
|
|
24836
|
+
}));
|
|
24837
|
+
this.documentUpdated(this.editor);
|
|
24838
|
+
}, 1);
|
|
24839
|
+
this.editor.addEventListener("click", updateVersion);
|
|
24840
|
+
this.editor.addEventListener("keydown", updateVersion);
|
|
24841
|
+
this.editor.addEventListener("keypress", updateVersion);
|
|
24842
|
+
this.editor.addEventListener("input", updateVersion);
|
|
24843
|
+
this.editorWindow = frame.contentWindow;
|
|
24844
|
+
this.editorDocument = doc;
|
|
24845
|
+
updateVersion();
|
|
24846
|
+
this.documentCreated(this.editor);
|
|
24847
|
+
this.element.dispatchEvent(new CustomEvent("documentCreated", {
|
|
24848
|
+
detail: this.editor
|
|
24849
|
+
}));
|
|
24850
|
+
this.registerDisposable({
|
|
24851
|
+
dispose: () => {
|
|
24852
|
+
this.editor.removeEventListener("click", updateVersion);
|
|
24853
|
+
this.editor.removeEventListener("keydown", updateVersion);
|
|
24854
|
+
this.editor.removeEventListener("keypress", updateVersion);
|
|
24855
|
+
this.editor.removeEventListener("input", updateVersion);
|
|
24856
|
+
}
|
|
24498
24857
|
});
|
|
24858
|
+
this.bindEvent(this.element, "editorClick", ce => {
|
|
24859
|
+
var _a, _b;
|
|
24860
|
+
const {
|
|
24861
|
+
detail: {
|
|
24862
|
+
data,
|
|
24863
|
+
target
|
|
24864
|
+
}
|
|
24865
|
+
} = ce;
|
|
24866
|
+
if (data.prompt) {
|
|
24867
|
+
const element = target;
|
|
24868
|
+
const result = prompt("Enter " + ((_a = data.promptTitle) !== null && _a !== void 0 ? _a : data.prompt), data.promptDefault);
|
|
24869
|
+
if (result) {
|
|
24870
|
+
const replace = ((_b = data.replace) !== null && _b !== void 0 ? _b : "textContent").split(",").map(x => x.trim());
|
|
24871
|
+
for (const iterator of replace) {
|
|
24872
|
+
const template = element.getAttribute("data-" + iterator + "-template") || element.getAttribute("data-template");
|
|
24873
|
+
if (template) {
|
|
24874
|
+
element[iterator] = template.replace(data.prompt, result);
|
|
24875
|
+
} else {
|
|
24876
|
+
element[iterator] = result;
|
|
24877
|
+
}
|
|
24878
|
+
}
|
|
24879
|
+
}
|
|
24880
|
+
return;
|
|
24881
|
+
}
|
|
24882
|
+
if (this.tags) {
|
|
24883
|
+
for (const {
|
|
24884
|
+
name,
|
|
24885
|
+
handler
|
|
24886
|
+
} of this.tags) {
|
|
24887
|
+
if (name === data.command || name === data.clickEvent) {
|
|
24888
|
+
handler(ce);
|
|
24889
|
+
}
|
|
24890
|
+
}
|
|
24891
|
+
}
|
|
24892
|
+
});
|
|
24893
|
+
this.setupTags();
|
|
24894
|
+
}
|
|
24895
|
+
documentCreated(e) {}
|
|
24896
|
+
documentUpdated(e) {}
|
|
24897
|
+
render(node, e, creator) {
|
|
24898
|
+
this.render = super.render;
|
|
24899
|
+
if (!node.children || node.children.length === 0) {
|
|
24900
|
+
node.children[0] = XNode.create(Toolbar, null, XNode.create(Bold, null), XNode.create(Italic, null), XNode.create(Underline, null), XNode.create(StrikeThrough, null), XNode.create(Align, null), XNode.create(Separator, null), XNode.create(Headings, null), XNode.create(ChangeColor, null), XNode.create(HorizontalRule, null), XNode.create(Separator, null), XNode.create(ChangeFont, null), XNode.create(ChangeFontSize, null), XNode.create(Separator, null), XNode.create(NumberedList, null), XNode.create(UnorderedList, null), XNode.create(IndentLess, null), XNode.create(IndentMore, null), XNode.create(Separator, null), XNode.create(AddImage, null), XNode.create(AttachFile, null), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null), XNode.create(RemoveFormat, null), XNode.create(Separator, null), XNode.create(Source, null));
|
|
24901
|
+
}
|
|
24902
|
+
super.render(XNode.create("div", Object.assign({}, node.attributes), ...node.children, XNode.create(AtomRepeater, {
|
|
24903
|
+
class: "files",
|
|
24904
|
+
"event-item-delete": ce => this.files.remove(ce.detail),
|
|
24905
|
+
items: Bind.oneWay(() => this.files),
|
|
24906
|
+
itemRenderer: file => XNode.create("div", {
|
|
24907
|
+
class: "file"
|
|
24908
|
+
}, XNode.create("i", {
|
|
24909
|
+
class: "ri-attachment-2"
|
|
24910
|
+
}), XNode.create("label", {
|
|
24911
|
+
text: file.name
|
|
24912
|
+
}), XNode.create("i", {
|
|
24913
|
+
"data-click-event": "item-delete",
|
|
24914
|
+
class: "ri-close-circle-fill"
|
|
24915
|
+
}))
|
|
24916
|
+
}), XNode.create("iframe", {
|
|
24917
|
+
class: "editor-frame"
|
|
24918
|
+
})));
|
|
24499
24919
|
}
|
|
24500
24920
|
});
|
|
24501
|
-
__decorate([
|
|
24502
|
-
|
|
24503
|
-
|
|
24921
|
+
__decorate([BindableProperty, __metadata("design:type", String)], AtomHtmlEditor.prototype, "content", void 0);
|
|
24922
|
+
__decorate([BindableProperty, __metadata("design:type", Array)], AtomHtmlEditor.prototype, "header", void 0);
|
|
24923
|
+
__decorate([BindableProperty, __metadata("design:type", Number)], AtomHtmlEditor.prototype, "version", void 0);
|
|
24924
|
+
__decorate([BindableProperty, __metadata("design:type", Array)], AtomHtmlEditor.prototype, "files", void 0);
|
|
24925
|
+
__decorate([BindableProperty, __metadata("design:type", Array)], AtomHtmlEditor.prototype, "tags", void 0);
|
|
24504
24926
|
}
|
|
24505
24927
|
};
|
|
24506
24928
|
});
|
|
24507
|
-
//# sourceMappingURL=
|
|
24929
|
+
//# sourceMappingURL=AtomHtmlEditor.js.map
|
|
24930
|
+
|
|
24931
|
+
AmdLoader.instance.setup("@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor");
|
|
24932
|
+
|
|
24933
|
+
System.register(["@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/PopupButton", "@web-atoms/web-controls/dist/basic/UploadEvent"], function (_export, _context) {
|
|
24934
|
+
"use strict";
|
|
24935
|
+
|
|
24936
|
+
var Bind, XNode, PopupButton, MenuItem, UploadEvent;
|
|
24937
|
+
function Insert({
|
|
24938
|
+
alignment = "above"
|
|
24939
|
+
}) {
|
|
24940
|
+
return XNode.create(PopupButton, {
|
|
24941
|
+
class: "command",
|
|
24942
|
+
"data-layout": "toolbar-button",
|
|
24943
|
+
icon: "fas fa-plus",
|
|
24944
|
+
title: "Change Alignment",
|
|
24945
|
+
alignment: alignment
|
|
24946
|
+
}, XNode.create(MenuItem, {
|
|
24947
|
+
icon: "ri-list-unordered",
|
|
24948
|
+
label: "List",
|
|
24949
|
+
"event-click": Bind.event(editor => editor.executeCommand("insertUnorderedList"))
|
|
24950
|
+
}), XNode.create(MenuItem, {
|
|
24951
|
+
icon: "ri-list-ordered",
|
|
24952
|
+
label: "Numbered List",
|
|
24953
|
+
"event-click": Bind.event(editor => editor.executeCommand("insertOrderedList"))
|
|
24954
|
+
}), XNode.create(MenuItem, Object.assign({}, UploadEvent.AttachUploadAction({
|
|
24955
|
+
accept: "image/*",
|
|
24956
|
+
multiple: true,
|
|
24957
|
+
extra: {}
|
|
24958
|
+
}), {
|
|
24959
|
+
"data-click-event": "send-photos",
|
|
24960
|
+
icon: "fas fa-image",
|
|
24961
|
+
label: "Add Photos"
|
|
24962
|
+
})), XNode.create(MenuItem, Object.assign({}, UploadEvent.AttachUploadAction({
|
|
24963
|
+
accept: "image/*",
|
|
24964
|
+
capture: "user",
|
|
24965
|
+
extra: {}
|
|
24966
|
+
}), {
|
|
24967
|
+
"data-click-event": "take-photo",
|
|
24968
|
+
icon: "fa-duotone fa-camera-retro",
|
|
24969
|
+
label: "Take Photo"
|
|
24970
|
+
})), XNode.create(MenuItem, Object.assign({}, UploadEvent.AttachUploadAction({
|
|
24971
|
+
accept: "video/*",
|
|
24972
|
+
multiple: false,
|
|
24973
|
+
extra: {}
|
|
24974
|
+
}), {
|
|
24975
|
+
"data-click-event": "send-video",
|
|
24976
|
+
icon: "fas fa-file-video",
|
|
24977
|
+
label: "Add Video"
|
|
24978
|
+
})), XNode.create(MenuItem, Object.assign({}, UploadEvent.AttachUploadAction({
|
|
24979
|
+
accept: "video/*",
|
|
24980
|
+
capture: "user",
|
|
24981
|
+
extra: {}
|
|
24982
|
+
}), {
|
|
24983
|
+
"data-click-event": "record-video",
|
|
24984
|
+
icon: "fa-duotone fa-video-plus",
|
|
24985
|
+
label: "Record Video"
|
|
24986
|
+
})));
|
|
24987
|
+
}
|
|
24988
|
+
_export("default", Insert);
|
|
24989
|
+
return {
|
|
24990
|
+
setters: [function (_webAtomsCoreDistCoreBind) {
|
|
24991
|
+
Bind = _webAtomsCoreDistCoreBind.default;
|
|
24992
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
24993
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24994
|
+
}, function (_webAtomsWebControlsDistBasicPopupButton) {
|
|
24995
|
+
PopupButton = _webAtomsWebControlsDistBasicPopupButton.default;
|
|
24996
|
+
MenuItem = _webAtomsWebControlsDistBasicPopupButton.MenuItem;
|
|
24997
|
+
}, function (_webAtomsWebControlsDistBasicUploadEvent) {
|
|
24998
|
+
UploadEvent = _webAtomsWebControlsDistBasicUploadEvent.default;
|
|
24999
|
+
}],
|
|
25000
|
+
execute: function () {}
|
|
25001
|
+
};
|
|
25002
|
+
});
|
|
25003
|
+
//# sourceMappingURL=Insert.js.map
|
|
24508
25004
|
|
|
24509
|
-
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/mini-compose/
|
|
25005
|
+
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/mini-compose/Insert");
|
|
24510
25006
|
|
|
24511
|
-
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", "@web-atoms/core/dist/core/AtomBinder", "../../../../common/events/CommonEvents", "../service/MailService", "@web-atoms/date-time/dist/DateTime", "
|
|
25007
|
+
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", "@web-atoms/core/dist/core/AtomBinder", "../../../../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"], function (_export, _context) {
|
|
24512
25008
|
"use strict";
|
|
24513
25009
|
|
|
24514
|
-
var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, AtomBinder, CommonEvents, MailService, DateTime,
|
|
25010
|
+
var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, AtomBinder, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, MiniComposeBox, css;
|
|
24515
25011
|
_export("default", void 0);
|
|
24516
25012
|
return {
|
|
24517
25013
|
setters: [function (_tslib) {
|
|
@@ -24547,10 +25043,32 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24547
25043
|
MailService = _serviceMailService.default;
|
|
24548
25044
|
}, function (_webAtomsDateTimeDistDateTime) {
|
|
24549
25045
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
24550
|
-
}, function (_SendFiles) {
|
|
24551
|
-
SendFiles = _SendFiles.default;
|
|
24552
25046
|
}, function (_webAtomsCoreDistCoreSleep) {
|
|
24553
25047
|
sleep = _webAtomsCoreDistCoreSleep.default;
|
|
25048
|
+
}, function (_commonControlsHtmlInlineHtmlEditorWithToolbar) {
|
|
25049
|
+
MailHtmlEditor = _commonControlsHtmlInlineHtmlEditorWithToolbar.MailHtmlEditor;
|
|
25050
|
+
}, function (_webAtomsWebControlsDistHtmlEditorAtomHtmlEditor) {
|
|
25051
|
+
Toolbar = _webAtomsWebControlsDistHtmlEditorAtomHtmlEditor.Toolbar;
|
|
25052
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsAlign) {
|
|
25053
|
+
Align = _webAtomsWebControlsDistHtmlEditorCommandsAlign.default;
|
|
25054
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsBold) {
|
|
25055
|
+
Bold = _webAtomsWebControlsDistHtmlEditorCommandsBold.default;
|
|
25056
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsItalic) {
|
|
25057
|
+
Italic = _webAtomsWebControlsDistHtmlEditorCommandsItalic.default;
|
|
25058
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsStrikeThrough) {
|
|
25059
|
+
StrikeThrough = _webAtomsWebControlsDistHtmlEditorCommandsStrikeThrough.default;
|
|
25060
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsUnderline) {
|
|
25061
|
+
Underline = _webAtomsWebControlsDistHtmlEditorCommandsUnderline.default;
|
|
25062
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsAddLink) {
|
|
25063
|
+
AddLink = _webAtomsWebControlsDistHtmlEditorCommandsAddLink.default;
|
|
25064
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsUnlink) {
|
|
25065
|
+
Unlink = _webAtomsWebControlsDistHtmlEditorCommandsUnlink.default;
|
|
25066
|
+
}, function (_webAtomsWebControlsDistHtmlEditorCommandsSeparator) {
|
|
25067
|
+
Separator = _webAtomsWebControlsDistHtmlEditorCommandsSeparator.default;
|
|
25068
|
+
}, function (_Insert) {
|
|
25069
|
+
Insert = _Insert.default;
|
|
25070
|
+
}, function (_webAtomsDateTimeDistTimeSpan) {
|
|
25071
|
+
TimeSpan = _webAtomsDateTimeDistTimeSpan.default;
|
|
24554
25072
|
}],
|
|
24555
25073
|
execute: function () {
|
|
24556
25074
|
css = styled.css`
|
|
@@ -24573,6 +25091,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24573
25091
|
grid-row: 2;
|
|
24574
25092
|
grid-column: 3;
|
|
24575
25093
|
border-radius: 10px;
|
|
25094
|
+
place-self: center;
|
|
24576
25095
|
}
|
|
24577
25096
|
|
|
24578
25097
|
& > [data-element=editor] {
|
|
@@ -24592,26 +25111,29 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24592
25111
|
this.mailboxContact = null;
|
|
24593
25112
|
this.draft = null;
|
|
24594
25113
|
this.typedMessage = "";
|
|
25114
|
+
this.active = false;
|
|
24595
25115
|
this.element.className = css;
|
|
24596
25116
|
this.app.runAsync(() => this.init());
|
|
24597
25117
|
}
|
|
24598
25118
|
init() {
|
|
24599
|
-
var _a;
|
|
24600
|
-
var
|
|
25119
|
+
var _a, _b, _c;
|
|
25120
|
+
var _d;
|
|
24601
25121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24602
25122
|
yield sleep(100);
|
|
24603
|
-
this.draft = yield this.conversationService.getDraft(this.mailboxContact);
|
|
25123
|
+
this.draft = (_a = yield this.conversationService.getDraft(this.mailboxContact)) === null || _a === void 0 ? void 0 : _a.email;
|
|
24604
25124
|
if (this.draft) {
|
|
24605
|
-
(
|
|
24606
|
-
}
|
|
24607
|
-
this.
|
|
24608
|
-
|
|
24609
|
-
|
|
24610
|
-
|
|
24611
|
-
|
|
24612
|
-
}), XNode.create("textarea", {
|
|
25125
|
+
(_b = (_d = this.draft).attachments) !== null && _b !== void 0 ? _b : _d.attachments = [];
|
|
25126
|
+
}
|
|
25127
|
+
this.typedMessage = ((_c = this.draft) === null || _c === void 0 ? void 0 : _c.htmlBody) ? this.draft.htmlBody : `<div contentEditable="true" style="background-color: white; color: black;"><p> </br></p></div>`;
|
|
25128
|
+
this.render(XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
25129
|
+
toolbar: () => XNode.create("div", null, XNode.create(Toolbar, null, XNode.create(Insert, null), XNode.create(Separator, null), XNode.create(Bold, null), XNode.create(Italic, null), XNode.create(Underline, null), XNode.create(StrikeThrough, null), XNode.create(Align, {
|
|
25130
|
+
alignment: "above"
|
|
25131
|
+
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null), XNode.create(Separator, null))),
|
|
24613
25132
|
"data-element": "editor",
|
|
24614
|
-
|
|
25133
|
+
"data-html-editor": "email-editor",
|
|
25134
|
+
presenter: Bind.presenter(c => this.editor = c),
|
|
25135
|
+
content: `<div contentEditable="true" style="background-color: white; color: black;">${this.typedMessage}</div>`,
|
|
25136
|
+
"style-min-height": "50px"
|
|
24615
25137
|
}), XNode.create("i", {
|
|
24616
25138
|
"data-element": "send",
|
|
24617
25139
|
class: "fa-solid fa-microphone-lines mic",
|
|
@@ -24628,7 +25150,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24628
25150
|
var _a;
|
|
24629
25151
|
return (_a = this.draft) === null || _a === void 0 ? void 0 : _a.attachments;
|
|
24630
25152
|
}),
|
|
24631
|
-
"style-display": Bind.oneWay(() => this.draft && this.draft.attachments && this.draft.attachments.length > 0),
|
|
25153
|
+
"style-display": Bind.oneWay(() => this.draft && this.draft.attachments && this.draft.attachments.length > 0, false),
|
|
24632
25154
|
"data-layout": "flex-wrap-padding",
|
|
24633
25155
|
itemRenderer: item => XNode.create("div", {
|
|
24634
25156
|
"data-layout": "icon-button"
|
|
@@ -24643,13 +25165,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24643
25165
|
})));
|
|
24644
25166
|
});
|
|
24645
25167
|
}
|
|
24646
|
-
|
|
24647
|
-
|
|
25168
|
+
filesAvailable({
|
|
25169
|
+
files,
|
|
25170
|
+
extra
|
|
25171
|
+
}) {
|
|
24648
25172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24649
|
-
const files = yield SendFiles.showModal({});
|
|
24650
|
-
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft = Email.create({
|
|
24651
|
-
attachments: []
|
|
24652
|
-
});
|
|
24653
25173
|
this.addFiles(...files);
|
|
24654
25174
|
});
|
|
24655
25175
|
}
|
|
@@ -24669,23 +25189,33 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24669
25189
|
});
|
|
24670
25190
|
}
|
|
24671
25191
|
onChanged() {
|
|
24672
|
-
var _a;
|
|
25192
|
+
var _a, _b;
|
|
24673
25193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24674
|
-
if (!this.
|
|
25194
|
+
if (!((_a = this.editor) === null || _a === void 0 ? void 0 : _a.htmlTextContent)) {
|
|
24675
25195
|
return;
|
|
24676
25196
|
}
|
|
24677
|
-
(
|
|
25197
|
+
(_b = this.draft) !== null && _b !== void 0 ? _b : this.draft = Email.create({
|
|
24678
25198
|
attachments: []
|
|
24679
25199
|
});
|
|
24680
|
-
|
|
25200
|
+
const {
|
|
25201
|
+
html,
|
|
25202
|
+
text
|
|
25203
|
+
} = this.editor.htmlTextContent;
|
|
25204
|
+
this.draft.htmlBody = html;
|
|
25205
|
+
this.draft.textBody = text;
|
|
24681
25206
|
yield this.save();
|
|
24682
25207
|
});
|
|
24683
25208
|
}
|
|
25209
|
+
onEmailUnscheduled(mce) {
|
|
25210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25211
|
+
this.draft = mce.email;
|
|
25212
|
+
});
|
|
25213
|
+
}
|
|
24684
25214
|
sendEmail() {
|
|
24685
25215
|
var _a;
|
|
24686
25216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24687
25217
|
this.draft.status = "scheduled";
|
|
24688
|
-
this.draft.dateSent = DateTime.now;
|
|
25218
|
+
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
24689
25219
|
yield this.mailService.send(this.draft);
|
|
24690
25220
|
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft = Email.create({
|
|
24691
25221
|
attachments: []
|
|
@@ -24734,8 +25264,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24734
25264
|
__decorate([InjectProperty, __metadata("design:type", ConversationService)], MiniComposeBox.prototype, "conversationService", void 0);
|
|
24735
25265
|
__decorate([InjectProperty, __metadata("design:type", MailService)], MiniComposeBox.prototype, "mailService", void 0);
|
|
24736
25266
|
__decorate([Action({
|
|
24737
|
-
onEvent: "
|
|
24738
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MiniComposeBox.prototype, "
|
|
25267
|
+
onEvent: "filesAvailable"
|
|
25268
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], MiniComposeBox.prototype, "filesAvailable", null);
|
|
24739
25269
|
__decorate([Action({
|
|
24740
25270
|
onEvent: "delete-attachment",
|
|
24741
25271
|
confirm: "Are you sure you want to delete this attachment?"
|
|
@@ -24748,6 +25278,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24748
25278
|
defer: 500,
|
|
24749
25279
|
blockMultipleExecution: true
|
|
24750
25280
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MiniComposeBox.prototype, "onChanged", null);
|
|
25281
|
+
__decorate([Action({
|
|
25282
|
+
onEvent: CommonEvents.onEmailUnscheduled
|
|
25283
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], MiniComposeBox.prototype, "onEmailUnscheduled", null);
|
|
24751
25284
|
__decorate([Action({
|
|
24752
25285
|
onEvent: "send-email"
|
|
24753
25286
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MiniComposeBox.prototype, "sendEmail", null);
|
|
@@ -24759,10 +25292,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
24759
25292
|
|
|
24760
25293
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposeBox");
|
|
24761
25294
|
|
|
24762
|
-
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../common/controls/repeater/InfiniteRepeater", "./service/ConversationService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/InlinePopupControl", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "./ComposeMailPage", "../../../services/socket/sockets", "@web-atoms/web-controls/dist/basic/LimitedText", "../../../common/date/DateFormats", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../common/pages/logs/LogsPage", "../../../common/SocialMailApp", "./detail/MailDetailPage", "../../../common/controls/file-preview/FilePreview", "./mini-compose/MiniComposeBox", "@web-atoms/core/dist/web/core/AtomUI"], function (_export, _context) {
|
|
25295
|
+
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../common/controls/repeater/InfiniteRepeater", "./service/ConversationService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/InlinePopupControl", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "./ComposeMailPage", "../../../services/socket/sockets", "@web-atoms/web-controls/dist/basic/LimitedText", "../../../common/date/DateFormats", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../common/pages/logs/LogsPage", "../../../common/SocialMailApp", "./detail/MailDetailPage", "../../../common/controls/file-preview/FilePreview", "./mini-compose/MiniComposeBox", "@web-atoms/core/dist/web/core/AtomUI", "../../../common/events/CommonEvents", "@web-atoms/date-time/dist/DateTime"], function (_export, _context) {
|
|
24763
25296
|
"use strict";
|
|
24764
25297
|
|
|
24765
|
-
var __awaiter, __decorate, __metadata, ContentPage, isMobileView, Email, EmailRecipient, XNode, AtomRepeater, InfiniteRepeater, ConversationService, renderMail, InjectProperty, InlinePopupControl, Bind, styled, Action, PageNavigator, ComposeMailPage, MailboxSocket, LimitedText, DateFormats, MenuItem, PopupActionButton, LogsPage, SocialMailApp, MailDetailPage, FilePreview, MiniComposeBox, AncestorEnumerator, ConversationPage, itemCss, css, id, fixLinks;
|
|
25298
|
+
var __awaiter, __decorate, __metadata, ContentPage, isMobileView, Email, EmailRecipient, MailboxContactEmail, XNode, AtomRepeater, InfiniteRepeater, ConversationService, renderMail, InjectProperty, InlinePopupControl, Bind, styled, Action, PageNavigator, ComposeMailPage, MailboxSocket, LimitedText, DateFormats, MenuItem, PopupActionButton, LogsPage, SocialMailApp, MailDetailPage, FilePreview, MiniComposeBox, AncestorEnumerator, CommonEvents, DateTime, ConversationPage, itemCss, css, id, fixLinks;
|
|
24766
25299
|
_export("default", void 0);
|
|
24767
25300
|
return {
|
|
24768
25301
|
setters: [function (_tslib) {
|
|
@@ -24775,6 +25308,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24775
25308
|
}, function (_modelModel) {
|
|
24776
25309
|
Email = _modelModel.Email;
|
|
24777
25310
|
EmailRecipient = _modelModel.EmailRecipient;
|
|
25311
|
+
MailboxContactEmail = _modelModel.MailboxContactEmail;
|
|
24778
25312
|
}, function (_webAtomsCoreDistCoreXNode) {
|
|
24779
25313
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24780
25314
|
}, function (_webAtomsWebControlsDistBasicAtomRepeater) {
|
|
@@ -24819,6 +25353,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24819
25353
|
MiniComposeBox = _miniComposeMiniComposeBox.default;
|
|
24820
25354
|
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
24821
25355
|
AncestorEnumerator = _webAtomsCoreDistWebCoreAtomUI.AncestorEnumerator;
|
|
25356
|
+
}, function (_commonEventsCommonEvents) {
|
|
25357
|
+
CommonEvents = _commonEventsCommonEvents.CommonEvents;
|
|
25358
|
+
}, function (_webAtomsDateTimeDistDateTime) {
|
|
25359
|
+
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
24822
25360
|
}],
|
|
24823
25361
|
execute: function () {
|
|
24824
25362
|
itemCss = styled.css`
|
|
@@ -24904,6 +25442,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24904
25442
|
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
24905
25443
|
"data-layout": "vertical-flex",
|
|
24906
25444
|
style: "flex-direction: column-reverse",
|
|
25445
|
+
presenter: Bind.presenter(c => this.mailsRepeater = c),
|
|
24907
25446
|
items: this.mails
|
|
24908
25447
|
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.conversationService.list({
|
|
24909
25448
|
start,
|
|
@@ -24915,10 +25454,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24915
25454
|
cancelToken
|
|
24916
25455
|
})), {
|
|
24917
25456
|
itemRenderer: thread => {
|
|
24918
|
-
var _a, _b, _c, _d, _e;
|
|
25457
|
+
var _a, _b, _c, _d, _e, _f;
|
|
24919
25458
|
const item = thread.email;
|
|
24920
25459
|
const internalDate = (_b = (_a = item.dateSent) !== null && _a !== void 0 ? _a : item.dateReceived) !== null && _b !== void 0 ? _b : item.dateCreated;
|
|
24921
25460
|
const sent = item.senderID === thread.mailboxID;
|
|
25461
|
+
const remaining = DateTime.from((_c = item.dateSent) !== null && _c !== void 0 ? _c : DateTime.today).diff(DateTime.now);
|
|
25462
|
+
const isSending = thread.email.status === "scheduled" && remaining.totalSeconds > 3;
|
|
25463
|
+
if (remaining.totalSeconds > 0) {
|
|
25464
|
+
setTimeout(() => this.mailsRepeater.refreshItem(thread), 2000);
|
|
25465
|
+
}
|
|
24922
25466
|
return XNode.create("div", {
|
|
24923
25467
|
class: itemCss,
|
|
24924
25468
|
"data-sent": sent
|
|
@@ -24929,8 +25473,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24929
25473
|
text: item.subject
|
|
24930
25474
|
}), item.received ? XNode.create("div", null) : item.userID !== SocialMailApp.user.userID && XNode.create("div", {
|
|
24931
25475
|
"style-max-width": "20ch",
|
|
24932
|
-
title: (
|
|
24933
|
-
text: (
|
|
25476
|
+
title: (_d = item.senderUser) === null || _d === void 0 ? void 0 : _d.displayName,
|
|
25477
|
+
text: (_e = item.senderUser) === null || _e === void 0 ? void 0 : _e.displayName
|
|
24934
25478
|
}), XNode.create("div", {
|
|
24935
25479
|
text: DateFormats.relative.short(internalDate),
|
|
24936
25480
|
title: DateFormats.withWeekDayAndTime(internalDate)
|
|
@@ -24942,7 +25486,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24942
25486
|
height: "40vh"
|
|
24943
25487
|
}, XNode.create("div", Object.assign({
|
|
24944
25488
|
class: "message"
|
|
24945
|
-
}, renderMail(thread)))), ((
|
|
25489
|
+
}, renderMail(thread)))), ((_f = item.attachments) === null || _f === void 0 ? void 0 : _f.length) && XNode.create("div", {
|
|
24946
25490
|
class: "attachments",
|
|
24947
25491
|
"data-layout": "flex-wrap-padding"
|
|
24948
25492
|
}, ...item.attachments.map(FilePreview)), thread.email.tags && XNode.create("div", {
|
|
@@ -24958,7 +25502,18 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
24958
25502
|
}), XNode.create("i", {
|
|
24959
25503
|
"data-click-event": "reply-all-email",
|
|
24960
25504
|
class: "fa-solid fa-reply-all"
|
|
24961
|
-
}))
|
|
25505
|
+
})), isSending && XNode.create("div", {
|
|
25506
|
+
"data-layout": "command-row",
|
|
25507
|
+
"style-padding-left": "20px"
|
|
25508
|
+
}, XNode.create("span", {
|
|
25509
|
+
text: `Sending in (${Math.ceil(remaining.totalSeconds)} sec) `
|
|
25510
|
+
}), XNode.create("button", {
|
|
25511
|
+
"data-click-event": "stop-email",
|
|
25512
|
+
"data-layout": "stop-icon-button",
|
|
25513
|
+
"style-margin-left": "20px"
|
|
25514
|
+
}, XNode.create("i", {
|
|
25515
|
+
class: "fas fa-stop"
|
|
25516
|
+
}), "Stop")));
|
|
24962
25517
|
}
|
|
24963
25518
|
})));
|
|
24964
25519
|
this.actionRenderer = () => XNode.create(PopupActionButton, {
|
|
@@ -25027,6 +25582,29 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
25027
25582
|
});
|
|
25028
25583
|
});
|
|
25029
25584
|
}
|
|
25585
|
+
onEmailScheduled(email) {
|
|
25586
|
+
if (email.senderID !== this.parameters.mailboxID) {
|
|
25587
|
+
return;
|
|
25588
|
+
}
|
|
25589
|
+
const {
|
|
25590
|
+
emailID
|
|
25591
|
+
} = email;
|
|
25592
|
+
const {
|
|
25593
|
+
emailAddressID,
|
|
25594
|
+
mailboxID
|
|
25595
|
+
} = this.parameters;
|
|
25596
|
+
this.mails.insert(0, MailboxContactEmail.create({
|
|
25597
|
+
emailID,
|
|
25598
|
+
emailAddressID,
|
|
25599
|
+
mailboxID,
|
|
25600
|
+
email
|
|
25601
|
+
}));
|
|
25602
|
+
}
|
|
25603
|
+
stopEmail(thread) {
|
|
25604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25605
|
+
yield this.conversationService.stopEmail(thread);
|
|
25606
|
+
});
|
|
25607
|
+
}
|
|
25030
25608
|
mailOptions(thread, ce) {
|
|
25031
25609
|
var _a;
|
|
25032
25610
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25127,6 +25705,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
25127
25705
|
__decorate([Action({
|
|
25128
25706
|
onEvent: "click"
|
|
25129
25707
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, PointerEvent]), __metadata("design:returntype", Promise)], ConversationPage.prototype, "onClick", null);
|
|
25708
|
+
__decorate([Action({
|
|
25709
|
+
onEvent: CommonEvents.onEmailScheduled
|
|
25710
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "onEmailScheduled", null);
|
|
25711
|
+
__decorate([Action({
|
|
25712
|
+
onEvent: "stop-email"
|
|
25713
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ConversationPage.prototype, "stopEmail", null);
|
|
25130
25714
|
__decorate([Action({
|
|
25131
25715
|
onEvent: "mail-options"
|
|
25132
25716
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, CustomEvent]), __metadata("design:returntype", Promise)], ConversationPage.prototype, "mailOptions", null);
|