@social-mail/social-mail-client 1.0.134 → 1.0.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +377 -1689
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +39 -137
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/pages/websites/edit/WebSiteFolderEditor.d.ts.map +1 -1
  6. package/dist/common/pages/websites/edit/WebSiteFolderEditor.js +4 -2
  7. package/dist/common/pages/websites/edit/WebSiteFolderEditor.js.map +1 -1
  8. package/dist/services/files/LocalFileService.d.ts +2 -0
  9. package/dist/services/files/LocalFileService.d.ts.map +1 -1
  10. package/dist/services/files/LocalFileService.js +75 -59
  11. package/dist/services/files/LocalFileService.js.map +1 -1
  12. package/dist/site-editor/editor/SelectedElement.d.ts +2 -0
  13. package/dist/site-editor/editor/SelectedElement.d.ts.map +1 -1
  14. package/dist/site-editor/editor/SelectedElement.js +14 -0
  15. package/dist/site-editor/editor/SelectedElement.js.map +1 -1
  16. package/dist/site-editor/properties/Properties.d.ts.map +1 -1
  17. package/dist/site-editor/properties/Properties.js +7 -5
  18. package/dist/site-editor/properties/Properties.js.map +1 -1
  19. package/dist/site-editor/properties/controls/PropertyEditor.d.ts +3 -2
  20. package/dist/site-editor/properties/controls/PropertyEditor.d.ts.map +1 -1
  21. package/dist/site-editor/properties/controls/PropertyEditor.js +58 -87
  22. package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
  23. package/dist/site-editor/properties/controls/SizeEditorControl.d.ts.map +1 -1
  24. package/dist/site-editor/properties/controls/SizeEditorControl.js +3 -1
  25. package/dist/site-editor/properties/controls/SizeEditorControl.js.map +1 -1
  26. package/dist/site-editor/properties/groups/BorderGroupEditor.d.ts +2 -0
  27. package/dist/site-editor/properties/groups/BorderGroupEditor.d.ts.map +1 -0
  28. package/dist/site-editor/properties/groups/BorderGroupEditor.js +35 -0
  29. package/dist/site-editor/properties/groups/BorderGroupEditor.js.map +1 -0
  30. package/dist/site-editor/properties/groups/LayoutEditor.d.ts.map +1 -1
  31. package/dist/site-editor/properties/groups/LayoutEditor.js +28 -1
  32. package/dist/site-editor/properties/groups/LayoutEditor.js.map +1 -1
  33. package/dist/site-editor/properties/groups/SizeGroupEditor.d.ts +2 -0
  34. package/dist/site-editor/properties/groups/SizeGroupEditor.d.ts.map +1 -0
  35. package/dist/site-editor/properties/groups/SizeGroupEditor.js +45 -0
  36. package/dist/site-editor/properties/groups/SizeGroupEditor.js.map +1 -0
  37. package/dist/site-editor/styler/Styler.d.ts +66 -1
  38. package/dist/site-editor/styler/Styler.d.ts.map +1 -1
  39. package/dist/site-editor/styler/Styler.js +37 -3
  40. package/dist/site-editor/styler/Styler.js.map +1 -1
  41. package/dist/site-editor/styler/StylerSet.d.ts +13 -1
  42. package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
  43. package/dist/site-editor/styler/StylerSet.js +8 -4
  44. package/dist/site-editor/styler/StylerSet.js.map +1 -1
  45. package/dist/site-editor/styler/properties/border.d.ts +5 -2
  46. package/dist/site-editor/styler/properties/border.d.ts.map +1 -1
  47. package/dist/site-editor/styler/properties/border.js +9 -19
  48. package/dist/site-editor/styler/properties/border.js.map +1 -1
  49. package/dist/site-editor/styler/properties/layout/items-position/itemsPosition.d.ts +5 -1
  50. package/dist/site-editor/styler/properties/layout/items-position/itemsPosition.d.ts.map +1 -1
  51. package/dist/site-editor/styler/properties/layout/items-position/itemsPosition.js +9 -3
  52. package/dist/site-editor/styler/properties/layout/items-position/itemsPosition.js.map +1 -1
  53. package/dist/site-editor/styler/properties/stylerSizes.d.ts +10 -0
  54. package/dist/site-editor/styler/properties/stylerSizes.d.ts.map +1 -0
  55. package/dist/site-editor/styler/properties/stylerSizes.js +23 -0
  56. package/dist/site-editor/styler/properties/stylerSizes.js.map +1 -0
  57. package/dist/tsconfig.tsbuildinfo +1 -1
  58. package/dist/web/AppIndex.pack.js +377 -1689
  59. package/dist/web/AppIndex.pack.js.map +1 -1
  60. package/dist/web/AppIndex.pack.min.js +39 -137
  61. package/dist/web/AppIndex.pack.min.js.map +1 -1
  62. package/dist/web/page/files/service/CloudFileService.js +1 -1
  63. package/dist/web/page/files/service/CloudFileService.js.map +1 -1
  64. package/node_modules/@web-atoms/web-controls/dist/basic/styles/expander-style.js +8 -4
  65. package/node_modules/@web-atoms/web-controls/dist/basic/styles/expander-style.js.map +1 -1
  66. package/node_modules/@web-atoms/web-controls/dist/tsconfig.tsbuildinfo +1 -1
  67. package/node_modules/@web-atoms/web-controls/package.json +1 -1
  68. package/node_modules/@web-atoms/web-controls/src/basic/styles/expander-style.ts +8 -4
  69. package/package.json +3 -16
  70. package/src/common/pages/websites/edit/WebSiteFolderEditor.tsx +6 -2
  71. package/src/services/files/LocalFileService.tsx +74 -57
  72. package/src/site-editor/editor/SelectedElement.tsx +15 -0
  73. package/src/site-editor/properties/Properties.tsx +5 -1
  74. package/src/site-editor/properties/controls/PropertyEditor.tsx +54 -94
  75. package/src/site-editor/properties/controls/SizeEditorControl.tsx +5 -2
  76. package/src/site-editor/properties/groups/BorderGroupEditor.tsx +19 -0
  77. package/src/site-editor/properties/groups/LayoutEditor.tsx +41 -2
  78. package/src/site-editor/properties/groups/SizeGroupEditor.tsx +35 -0
  79. package/src/site-editor/properties/groups/TextPropertyEditor.tsx +1 -1
  80. package/src/site-editor/styler/Styler.ts +60 -2
  81. package/src/site-editor/styler/StylerSet.ts +5 -1
  82. package/src/site-editor/styler/properties/border.ts +6 -20
  83. package/src/site-editor/styler/properties/layout/items-position/itemsPosition.ts +8 -3
  84. package/src/site-editor/styler/properties/stylerSizes.ts +10 -0
  85. package/src/web/page/files/service/CloudFileService.ts +2 -2
@@ -1864,8 +1864,8 @@ const UMD = new UMDClass();
1864
1864
  //# sourceMappingURL=umd.js.map
1865
1865
 
1866
1866
  AmdLoader.instance.register(
1867
- ["@social-mail/social-mail-client","@web-atoms/core","@web-atoms/web-controls","reflect-metadata","@web-atoms/date-time","@web-atoms/data-styles","@web-atoms/entity","@web-atoms/email-dom","tinycolor2"],
1868
- ["@social-mail/social-mail-client/dist/admin/AdminAppIndex","@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/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@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/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@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/AtomBridge","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@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/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/services/LoginService","@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/SocialMailApp","@web-atoms/core/dist/core/InjectProperty","@social-mail/social-mail-client/dist/admin/commands/AdminCommands","@social-mail/social-mail-client/dist/admin/pages/home/AdminHome","@social-mail/social-mail-client/dist/admin/pages/domains/DomainListPage","@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","@social-mail/social-mail-client/dist/admin/pages/domains/services/AdminDomainService","@web-atoms/core/dist/di/DITransient","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/admin/pages/domains/edit/EditDomainPage","@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/Checkbox","@web-atoms/web-controls/dist/basic/styles/checkbox-style","@web-atoms/web-controls/dist/basic/Expander","@web-atoms/web-controls/dist/basic/styles/expander-style","@social-mail/social-mail-client/dist/common/controls/buttons/IconButton","@social-mail/social-mail-client/dist/admin/pages/domains/edit/DomainKeySetupPage","@social-mail/social-mail-client/dist/common/controls/buttons/CopyIcon","@social-mail/social-mail-client/dist/admin/pages/domains/domain-user/DomainUserEditor","@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","@social-mail/social-mail-client/dist/admin/pages/users/services/AdminUserService","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/common/pages/folders/ChooserFolderPage","@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/admin/pages/users/UserListPage","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/admin/pages/users/EditUserPage","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/admin/pages/users/UserDetailsPage","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditor","@social-mail/social-mail-client/dist/admin/pages/users/domains/EditDomainUserPage","@social-mail/social-mail-client/dist/admin/pages/users/mailboxes/EditUserMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@social-mail/social-mail-client/dist/admin/pages/users/files/EditFileAccessPage","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@social-mail/social-mail-client/dist/admin/pages/users/ChooseUserPage","@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/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","@social-mail/social-mail-client/dist/common/events/CommonEvents","@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/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/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/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/web/page/mails/ChooseMailboxPage","@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/web/page/files/FolderPage","@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop","@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","@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/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/MimeMessage","@social-mail/social-mail-client/dist/services/mime-service/stream/LineStream","@social-mail/social-mail-client/dist/services/mime-service/stream/TextWriter","@social-mail/social-mail-client/dist/common/pages/folders/ChooseTemplatePage","@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/pages/websites/studio/WebSiteStudioPage","@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/HtmlPageEditor","@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage","@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/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/text/stylerText","@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/ColorGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/ColorEditor","tinycolor2/tinycolor","@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement","@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/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/admin/pages/relays/edit/EditRelayPage","@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/admin/drawer/AdminDrawer","@social-mail/social-mail-client/dist/common/controls/menu/MenuItem","@social-mail/social-mail-client/dist/common/controls/ModuleInfo","@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"]);
1867
+ ["@social-mail/social-mail-client","@web-atoms/core","@web-atoms/web-controls","reflect-metadata","@web-atoms/date-time","@web-atoms/data-styles","@web-atoms/entity","@web-atoms/email-dom"],
1868
+ ["@social-mail/social-mail-client/dist/admin/AdminAppIndex","@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/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@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/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@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/AtomBridge","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@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/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/services/LoginService","@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/SocialMailApp","@web-atoms/core/dist/core/InjectProperty","@social-mail/social-mail-client/dist/admin/commands/AdminCommands","@social-mail/social-mail-client/dist/admin/pages/home/AdminHome","@social-mail/social-mail-client/dist/admin/pages/domains/DomainListPage","@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","@social-mail/social-mail-client/dist/admin/pages/domains/services/AdminDomainService","@web-atoms/core/dist/di/DITransient","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/admin/pages/domains/edit/EditDomainPage","@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/Checkbox","@web-atoms/web-controls/dist/basic/styles/checkbox-style","@web-atoms/web-controls/dist/basic/Expander","@web-atoms/web-controls/dist/basic/styles/expander-style","@social-mail/social-mail-client/dist/common/controls/buttons/IconButton","@social-mail/social-mail-client/dist/admin/pages/domains/edit/DomainKeySetupPage","@social-mail/social-mail-client/dist/common/controls/buttons/CopyIcon","@social-mail/social-mail-client/dist/admin/pages/domains/domain-user/DomainUserEditor","@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","@social-mail/social-mail-client/dist/admin/pages/users/services/AdminUserService","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/common/pages/folders/ChooserFolderPage","@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/admin/pages/users/UserListPage","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/admin/pages/users/EditUserPage","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/admin/pages/users/UserDetailsPage","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditor","@social-mail/social-mail-client/dist/admin/pages/users/domains/EditDomainUserPage","@social-mail/social-mail-client/dist/admin/pages/users/mailboxes/EditUserMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@social-mail/social-mail-client/dist/admin/pages/users/files/EditFileAccessPage","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@social-mail/social-mail-client/dist/admin/pages/users/ChooseUserPage","@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/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","@social-mail/social-mail-client/dist/common/events/CommonEvents","@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/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/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/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/web/page/mails/ChooseMailboxPage","@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/web/page/files/FolderPage","@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop","@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","@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/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/MimeMessage","@social-mail/social-mail-client/dist/services/mime-service/stream/LineStream","@social-mail/social-mail-client/dist/services/mime-service/stream/TextWriter","@social-mail/social-mail-client/dist/common/pages/folders/ChooseTemplatePage","@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/pages/websites/studio/WebSiteStudioPage","@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/HtmlPageEditor","@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage","@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/border","@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/stylerSizes","@social-mail/social-mail-client/dist/site-editor/styler/properties/text/stylerText","@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/editor/SelectedElement","@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/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/admin/pages/relays/edit/EditRelayPage","@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/admin/drawer/AdminDrawer","@social-mail/social-mail-client/dist/common/controls/menu/MenuItem","@social-mail/social-mail-client/dist/common/controls/ModuleInfo","@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"]);
1869
1869
 
1870
1870
  System.register([], function (_export, _context) {
1871
1871
  "use strict";
@@ -17133,23 +17133,27 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
17133
17133
  padding: 5px;
17134
17134
  margin-right: 5px;
17135
17135
  align-self: center;
17136
- justify-self: center; }
17136
+ justify-self: center;
17137
+ }
17137
17138
 
17138
17139
  & > [data-element=header] {
17139
17140
  grid-row-start: 1;
17140
- grid-column-start: 2; }
17141
+ grid-column-start: 2;
17142
+ }
17141
17143
 
17142
17144
  & > [data-element=caret] {
17143
17145
  grid-row-start: 1;
17144
17146
  grid-column-start: 3;
17145
17147
  padding: 5px;
17146
- margin-left: 5px; }
17148
+ margin-left: 5px;
17149
+ }
17147
17150
 
17148
17151
  & > [data-element=detail] {
17149
17152
  grid-row-start: 2;
17150
17153
  grid-column-start: 1;
17151
17154
  grid-column-end: span 3;
17152
- margin-top: 5px; }
17155
+ margin-top: 5px;
17156
+ }
17153
17157
 
17154
17158
  &[data-is-expanded=true] {
17155
17159
  & > [data-element=caret] {
@@ -18219,7 +18223,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
18219
18223
  return __awaiter(this, void 0, void 0, function* () {
18220
18224
  const userID = SocialMailApp.user.userID;
18221
18225
  let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.parentID === null && x.path !== null);
18222
- q = site ? q.where(x => x.websiteFolder.folderID !== null) : q.where(x => x.websiteFolder.folderID === null);
18226
+ q = site ? q.where(x => x.contentType !== "folder") : q.where(x => x.contentType === "folder");
18223
18227
  const top = yield q.orderByDescending({
18224
18228
  userID
18225
18229
  }, p => x => x.userPins.some(s => p.userID === s.userID)).thenByDescending(x => x.dateUpdated).include(x => x.creator).toPagedList({
@@ -24376,71 +24380,87 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
24376
24380
  return detail.files;
24377
24381
  });
24378
24382
  }
24379
- upload(files, extra, ct) {
24383
+ sha256(blob) {
24380
24384
  return __awaiter(this, void 0, void 0, function* () {
24381
- return files.map(file => {
24382
- const uploadFile = {
24383
- name: file.name
24385
+ const msgBuffer = yield blob.arrayBuffer();
24386
+ const hashBuffer = yield crypto.subtle.digest('SHA-256', msgBuffer);
24387
+ const hashArray = Array.from(new Uint8Array(hashBuffer));
24388
+ const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
24389
+ return hashHex;
24390
+ });
24391
+ }
24392
+ uploadFile(file, extra, ct, progress) {
24393
+ return __awaiter(this, void 0, void 0, function* () {
24394
+ const sha256 = yield this.sha256(file);
24395
+ return new Promise((resolve, reject) => {
24396
+ const body = new FormData();
24397
+ body.append(file.name, file, file.name);
24398
+ body.append("sha256", sha256);
24399
+ const xhr = new XMLHttpRequest();
24400
+ const onError = () => {
24401
+ reject(new Error(xhr.responseText || "Error"));
24384
24402
  };
24385
- uploadFile.promise = new Promise((resolve, reject) => {
24386
- const body = new FormData();
24387
- body.append(file.name, file, file.name);
24388
- const xhr = new XMLHttpRequest();
24389
- const onError = () => {
24390
- reject(new Error(xhr.responseText || "Error"));
24391
- };
24392
- ct === null || ct === void 0 ? void 0 : ct.registerForCancel(() => xhr.abort());
24393
- xhr.upload.addEventListener("progress", event => {
24394
- if (event.lengthComputable) {
24395
- uploadFile.progress = event.loaded / event.total;
24396
- }
24397
- });
24398
- xhr.upload.addEventListener("timeout", onError);
24399
- xhr.upload.addEventListener("error", onError);
24400
- xhr.upload.addEventListener("abort", onError);
24401
- xhr.addEventListener("timeout", onError);
24402
- xhr.addEventListener("abort", onError);
24403
- xhr.addEventListener("error", onError);
24404
- xhr.upload.addEventListener("progress", event => {
24405
- if (event.lengthComputable) {
24406
- uploadFile.progress = event.loaded / event.total;
24407
- }
24408
- });
24409
- xhr.addEventListener("load", () => {
24410
- if (xhr.status <= 300) {
24411
- const r = Object.assign(Object.assign({}, JSON.parse(xhr.responseText)), {
24412
- file
24413
- });
24414
- resolve(r);
24415
- }
24416
- });
24417
- let postUrl = "/api/upload";
24418
- const s = new URLSearchParams();
24419
- if (extra) {
24420
- if (typeof extra === "string") {
24421
- extra = JSON.parse(extra);
24422
- }
24423
- for (const key in extra) {
24424
- if (Object.prototype.hasOwnProperty.call(extra, key)) {
24425
- const element = extra[key];
24426
- if (element) {
24427
- s.append(key, element);
24428
- }
24403
+ ct === null || ct === void 0 ? void 0 : ct.registerForCancel(() => xhr.abort());
24404
+ xhr.upload.addEventListener("progress", event => {
24405
+ if (event.lengthComputable) {
24406
+ progress === null || progress === void 0 ? void 0 : progress(event.loaded / event.total);
24407
+ }
24408
+ });
24409
+ xhr.upload.addEventListener("timeout", onError);
24410
+ xhr.upload.addEventListener("error", onError);
24411
+ xhr.upload.addEventListener("abort", onError);
24412
+ xhr.addEventListener("timeout", onError);
24413
+ xhr.addEventListener("abort", onError);
24414
+ xhr.addEventListener("error", onError);
24415
+ xhr.upload.addEventListener("progress", event => {
24416
+ if (event.lengthComputable) {
24417
+ progress === null || progress === void 0 ? void 0 : progress(event.loaded / event.total);
24418
+ }
24419
+ });
24420
+ xhr.addEventListener("load", () => {
24421
+ if (xhr.status <= 300) {
24422
+ const r = Object.assign(Object.assign({}, JSON.parse(xhr.responseText)), {
24423
+ file
24424
+ });
24425
+ resolve(r);
24426
+ }
24427
+ });
24428
+ let postUrl = "/api/upload";
24429
+ const s = new URLSearchParams();
24430
+ if (extra) {
24431
+ if (typeof extra === "string") {
24432
+ extra = JSON.parse(extra);
24433
+ }
24434
+ for (const key in extra) {
24435
+ if (Object.prototype.hasOwnProperty.call(extra, key)) {
24436
+ const element = extra[key];
24437
+ if (element) {
24438
+ s.append(key, element);
24429
24439
  }
24430
24440
  }
24431
24441
  }
24432
- if (file.webkitRelativePath) {
24433
- const folders = file.webkitRelativePath.split("/");
24434
- folders.pop();
24435
- if (folders.length) {
24436
- const folder = folders.join("/");
24437
- s.append("folder", folder);
24438
- }
24442
+ }
24443
+ if (file.webkitRelativePath) {
24444
+ const folders = file.webkitRelativePath.split("/");
24445
+ folders.pop();
24446
+ if (folders.length) {
24447
+ const folder = folders.join("/");
24448
+ s.append("folder", folder);
24439
24449
  }
24440
- postUrl += "?" + s.toString();
24441
- xhr.open("POST", postUrl, true);
24442
- xhr.send(body);
24443
- });
24450
+ }
24451
+ postUrl += "?" + s.toString();
24452
+ xhr.open("POST", postUrl, true);
24453
+ xhr.send(body);
24454
+ });
24455
+ });
24456
+ }
24457
+ upload(files, extra, ct) {
24458
+ return __awaiter(this, void 0, void 0, function* () {
24459
+ return files.map(file => {
24460
+ const uploadFile = {
24461
+ name: file.name
24462
+ };
24463
+ uploadFile.promise = this.uploadFile(file, extra, ct, n => uploadFile.progress = n);
24444
24464
  return uploadFile;
24445
24465
  });
24446
24466
  });
@@ -32032,24 +32052,28 @@ System.register(["./Block"], function (_export, _context) {
32032
32052
 
32033
32053
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/WrapGrid");
32034
32054
 
32035
- System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/web-controls/dist/basic/Expander", "@web-atoms/web-controls/dist/basic/Select", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/AtomBinder"], function (_export, _context) {
32055
+ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/web-controls/dist/basic/Expander", "@web-atoms/web-controls/dist/basic/Select", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
32036
32056
  "use strict";
32037
32057
 
32038
- var __rest, XNode, AtomControl, Expander, Select, Bind, AtomBinder, SizeEditor, BindEditor, BindStyleValue;
32058
+ var __rest, XNode, AtomControl, Expander, Select, Bind, styled, BindEditor, BindStyleValue, BindStyleCustom;
32039
32059
  function PropertyEditor(_a, ...nodes) {
32060
+ var _b;
32040
32061
  var {
32041
- label = void 0
32062
+ label = void 0,
32063
+ custom = void 0
32042
32064
  } = _a,
32043
- a = __rest(_a, ["label"]);
32065
+ a = __rest(_a, ["label", "custom"]);
32044
32066
  if (!label && nodes.length === 1) {
32045
32067
  return nodes[0];
32046
32068
  }
32069
+ for (const iterator of nodes) {
32070
+ ((_b = iterator.attributes) !== null && _b !== void 0 ? _b : iterator.attributes = {})["data-element"] = "editor";
32071
+ }
32047
32072
  return XNode.create("div", Object.assign({
32048
- "data-element": "property-editor",
32049
- "data-layout": "row"
32073
+ "data-element": "property-editor"
32050
32074
  }, a), label && XNode.create("label", {
32051
32075
  "data-font-size": "small"
32052
- }, label), ...nodes);
32076
+ }, label), ...nodes, custom);
32053
32077
  }
32054
32078
  function ExpanderPropertyEditor(_a, ...nodes) {
32055
32079
  var {
@@ -32061,8 +32085,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
32061
32085
  "data-layout": "vertical-flex-stretch-items"
32062
32086
  }, ...nodes) : nodes[0];
32063
32087
  return XNode.create(Expander, Object.assign({
32064
- isExpanded: isExpanded,
32065
- "data-element": "property-editor"
32088
+ isExpanded: isExpanded
32066
32089
  }, a), label && XNode.create("label", null, label), child);
32067
32090
  }
32068
32091
  function DropDownProperty(_a) {
@@ -32072,53 +32095,37 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
32072
32095
  } = _a,
32073
32096
  a = __rest(_a, ["label", "property"]);
32074
32097
  return XNode.create(PropertyEditor, Object.assign({
32075
- label: label
32098
+ label: label,
32099
+ custom: XNode.create("input", Object.assign({
32100
+ type: "text",
32101
+ "data-element": "custom"
32102
+ }, BindStyleCustom(property.key)))
32076
32103
  }, a), XNode.create(Select, Object.assign({}, BindStyleValue(property.key), {
32077
32104
  "data-flex": "stretch-full",
32078
32105
  valuePath: v => v.value,
32079
32106
  items: [{
32080
32107
  label: "-",
32081
32108
  value: ""
32082
- }, ...property.values.map(pair => ({
32083
- label: pair.name,
32084
- value: pair.name
32085
- }))]
32109
+ }, ...property.values.map(pair => pair.toPair())]
32086
32110
  })));
32087
32111
  }
32088
- function SizeProperty(_a) {
32112
+ function NumberProperty(_a) {
32089
32113
  var {
32090
32114
  label,
32091
32115
  property
32092
32116
  } = _a,
32093
32117
  a = __rest(_a, ["label", "property"]);
32094
- const se = new SizeEditor(property);
32095
- return XNode.create("div", {
32096
- "data-element": "property-editor",
32097
- "data-layout": "vertical-flex-stretch-items"
32098
- }, XNode.create("input", Object.assign({
32099
- type: "hidden",
32100
- "style-display": "none"
32101
- }, BindStyleValue(property.key))), XNode.create("div", {
32102
- "data-layout": "row"
32103
- }, XNode.create("label", null, label), XNode.create("input", {
32104
- type: "checkbox",
32105
- checked: Bind.sourceTwoWays(se, x => x.source.custom)
32106
- })), XNode.create("div", null, XNode.create("input", {
32107
- "style-display": Bind.source(se, x => !x.source.custom),
32108
- type: "range",
32109
- min: 0,
32110
- max: se.values.length - 2,
32111
- value: Bind.sourceTwoWays(se, x => x.source.valueAsNumber)
32112
- }), XNode.create("input", {
32113
- "style-display": Bind.source(se, x => x.source.custom),
32114
- type: "text",
32115
- value: Bind.sourceTwoWays(se, x => x.source.value)
32118
+ return XNode.create(PropertyEditor, Object.assign({
32119
+ label: label
32120
+ }, a), XNode.create("input", Object.assign({}, BindStyleValue(property.key), {
32121
+ "data-flex": "stretch-full",
32122
+ type: "tel"
32116
32123
  })));
32117
32124
  }
32118
32125
  _export({
32119
32126
  ExpanderPropertyEditor: ExpanderPropertyEditor,
32120
32127
  DropDownProperty: DropDownProperty,
32121
- SizeProperty: SizeProperty
32128
+ NumberProperty: NumberProperty
32122
32129
  });
32123
32130
  return {
32124
32131
  setters: [function (_tslib) {
@@ -32133,64 +32140,48 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
32133
32140
  Select = _webAtomsWebControlsDistBasicSelect.default;
32134
32141
  }, function (_webAtomsCoreDistCoreBind) {
32135
32142
  Bind = _webAtomsCoreDistCoreBind.default;
32136
- }, function (_webAtomsCoreDistCoreAtomBinder) {
32137
- AtomBinder = _webAtomsCoreDistCoreAtomBinder.AtomBinder;
32143
+ }, function (_webAtomsCoreDistStyleStyled) {
32144
+ styled = _webAtomsCoreDistStyleStyled.default;
32138
32145
  }],
32139
32146
  execute: function () {
32140
32147
  _export("BindEditor", BindEditor = Bind.forControl());
32141
- _export("BindStyleValue", BindStyleValue = AtomControl.registerProperty("data-style-property", "custom", (c, e, v) => {
32148
+ _export("BindStyleValue", BindStyleValue = AtomControl.registerProperty("data-style-property", "value", (c, e, v) => {
32142
32149
  const editor = c;
32143
32150
  const pv = editor.selection.style(v);
32144
32151
  c.render(XNode.create("div", {
32145
32152
  value: Bind.sourceTwoWays(pv, s => s.source.value)
32146
32153
  }), e, c);
32147
32154
  }));
32148
- SizeEditor = class SizeEditor {
32149
- get custom() {
32150
- return this.value === "custom";
32151
- }
32152
- set custom(v) {
32153
- if (v) {
32154
- this.value = "custom";
32155
- } else if (this._old) {
32156
- this.value = this._old;
32157
- }
32158
- }
32159
- get value() {
32160
- return this._value;
32161
- }
32162
- set value(v) {
32163
- if (this._isChanging) {
32164
- return;
32165
- }
32166
- this._isChanging = true;
32167
- this._value = v;
32168
- this._old = v && v !== "custom" ? v : this._old;
32169
- AtomBinder.refreshValue(this, "value");
32170
- AtomBinder.refreshValue(this, "valueAsNumber");
32171
- AtomBinder.refreshValue(this, "custom");
32172
- this._isChanging = false;
32173
- }
32174
- get valueAsNumber() {
32175
- var _a;
32176
- const v = this.value;
32177
- if (!v || v === "custom") {
32178
- return 0;
32179
- }
32180
- return (_a = this.values.findIndex(item => item.name === v)) !== null && _a !== void 0 ? _a : 0;
32181
- }
32182
- set valueAsNumber(v) {
32183
- var _a;
32184
- this.value = ((_a = this.values[v]) === null || _a === void 0 ? void 0 : _a.name) || this._old;
32185
- }
32186
- constructor(p) {
32187
- this._value = "";
32188
- this._isChanging = false;
32189
- this._old = "";
32190
- this.values = p.values.filter(x => x.name !== "custom");
32191
- this._old = this.values[0].name;
32192
- }
32193
- };
32155
+ _export("BindStyleCustom", BindStyleCustom = AtomControl.registerProperty("data-style-property", "value", (c, e, v) => {
32156
+ const editor = c;
32157
+ const pv = editor.selection.style(v);
32158
+ c.render(XNode.create("div", {
32159
+ "style-display": Bind.source(pv, s => s.source.value === "custom"),
32160
+ value: Bind.sourceTwoWays(pv, s => s.source.custom)
32161
+ }), e, c);
32162
+ }));
32163
+ styled.css`
32164
+
32165
+ display: grid;
32166
+ grid-template-columns: auto 1fr;
32167
+ grid-template-rows: auto auto;
32168
+ column-gap: 5px;
32169
+ & > label {
32170
+ grid-row: 1;
32171
+ grid-column: 1;
32172
+ }
32173
+
32174
+ & > [data-element=editor] {
32175
+ grid-row: 1;
32176
+ grid-column: 2;
32177
+ }
32178
+
32179
+ & > [data-element=custom] {
32180
+ grid-row: 2;
32181
+ grid-column: 1 / span 2;
32182
+ }
32183
+
32184
+ `.installGlobal("[data-element=property-editor]");
32194
32185
  }
32195
32186
  };
32196
32187
  });
@@ -32201,7 +32192,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
32201
32192
  System.register(["@web-atoms/core/dist/style/styled"], function (_export, _context) {
32202
32193
  "use strict";
32203
32194
 
32204
- var styled, StylerVariable, StylerPropertyOption, StylerProperty, camelToSnakeCase, prepareVariables, stylerVars, pair, createSet;
32195
+ var styled, StylerVariable, StylerPropertyOption, StylerProperty, camelToSnakeCase, prepareVariables, stylerVars, sizeVarList, pair, createSet, createVarSet;
32205
32196
  _export({
32206
32197
  StylerVariable: void 0,
32207
32198
  StylerPropertyOption: void 0,
@@ -32237,6 +32228,19 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
32237
32228
  sizeDefault: "10px",
32238
32229
  sizeLarger: "15px",
32239
32230
  sizeLarge: "20px",
32231
+ relSizeXS: "20rem",
32232
+ relSizeSmall: "24rem",
32233
+ relSizeMedium: "28rem",
32234
+ relSizeLarge: "32rem",
32235
+ relSizeXL: "36rem",
32236
+ relSize2XL: "42rem",
32237
+ relSize3XL: "48rem",
32238
+ relSize4XL: "56rem",
32239
+ relSize5XL: "64rem",
32240
+ relSize6XL: "72rem",
32241
+ relSize7XL: "80rem",
32242
+ relSizeFull: "100%",
32243
+ relSizeProse: "65ch",
32240
32244
  defaultColor: "canvas",
32241
32245
  defaultTextColor: "canvastext",
32242
32246
  borderColor: "lightgray",
@@ -32266,6 +32270,7 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
32266
32270
  menuColor: "#F0F0F0",
32267
32271
  linkColor: "blue"
32268
32272
  }));
32273
+ _export("sizeVarList", sizeVarList = [stylerVars.sizeTiny, stylerVars.sizeSmall, stylerVars.sizeSmaller, stylerVars.sizeDefault, stylerVars.sizeLarger, stylerVars.sizeLarge, stylerVars.relSizeXS, stylerVars.relSizeSmall, stylerVars.relSizeMedium, stylerVars.relSizeLarge, stylerVars.relSizeXL, stylerVars.relSize2XL, stylerVars.relSize3XL, stylerVars.relSize4XL, stylerVars.relSize5XL, stylerVars.relSize6XL, stylerVars.relSize7XL, stylerVars.relSizeFull, stylerVars.relSizeProse]);
32269
32274
  _export("StylerVariable", StylerVariable = class StylerVariable {
32270
32275
  constructor(name, value) {
32271
32276
  this.name = name;
@@ -32276,13 +32281,23 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
32276
32281
  }
32277
32282
  });
32278
32283
  _export("StylerPropertyOption", StylerPropertyOption = class StylerPropertyOption {
32279
- constructor(name, value) {
32284
+ constructor(name, value, description) {
32280
32285
  this.name = name;
32286
+ this.description = description;
32281
32287
  this.value = value.toString();
32282
32288
  }
32283
32289
  toString() {
32284
32290
  return this.value.split("\n").join("\n\t");
32285
32291
  }
32292
+ toPair() {
32293
+ const description = this.description;
32294
+ const label = description ? `${this.name} (${description})` : this.name;
32295
+ const value = this.name;
32296
+ return {
32297
+ label,
32298
+ value
32299
+ };
32300
+ }
32286
32301
  });
32287
32302
  _export("StylerProperty", StylerProperty = class StylerProperty {
32288
32303
  static create(key, styles) {
@@ -32294,7 +32309,7 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
32294
32309
  for (const k in values) {
32295
32310
  if (Object.prototype.hasOwnProperty.call(values, k)) {
32296
32311
  const element = values[k];
32297
- this.values.push(new StylerPropertyOption(k, element.expand(`[${this.key}=${k}]`)));
32312
+ this.values.push(new StylerPropertyOption(k, element.expand(`[${this.key}=${k}]`), element.description));
32298
32313
  }
32299
32314
  }
32300
32315
  }
@@ -32323,6 +32338,16 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
32323
32338
  }
32324
32339
  return r;
32325
32340
  });
32341
+ _export("createVarSet", createVarSet = (name, values, addCustom = true) => {
32342
+ const r = {};
32343
+ if (addCustom) {
32344
+ r.custom = styled.css`${name}: var(--styler-${name});`;
32345
+ }
32346
+ for (const iterator of values) {
32347
+ r[iterator.name] = styled.css`\t${name}: var(--${iterator.name});`.withDescription(iterator.value);
32348
+ }
32349
+ return r;
32350
+ });
32326
32351
  }
32327
32352
  };
32328
32353
  });
@@ -32330,6 +32355,37 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
32330
32355
 
32331
32356
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/Styler");
32332
32357
 
32358
+ System.register(["@web-atoms/core/dist/style/styled", "../Styler"], function (_export, _context) {
32359
+ "use strict";
32360
+
32361
+ var styled, StylerProperty, createVarSet, sizeVarList, stylerBorder;
32362
+ return {
32363
+ setters: [function (_webAtomsCoreDistStyleStyled) {
32364
+ styled = _webAtomsCoreDistStyleStyled.default;
32365
+ }, function (_Styler) {
32366
+ StylerProperty = _Styler.StylerProperty;
32367
+ createVarSet = _Styler.createVarSet;
32368
+ sizeVarList = _Styler.sizeVarList;
32369
+ }],
32370
+ execute: function () {
32371
+ _export("stylerBorder", stylerBorder = {
32372
+ stylerBorder: new StylerProperty("styler-border", {
32373
+ "none": styled.css`
32374
+ border: none !important;
32375
+ `,
32376
+ "lightgray": styled.css`
32377
+ border: solid 1px lightgray;
32378
+ `
32379
+ }),
32380
+ stylerBorderRadius: new StylerProperty("styler-border-radius", createVarSet("border-radius", sizeVarList))
32381
+ });
32382
+ }
32383
+ };
32384
+ });
32385
+ //# sourceMappingURL=border.js.map
32386
+
32387
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/border");
32388
+
32333
32389
  System.register(["../../Styler"], function (_export, _context) {
32334
32390
  "use strict";
32335
32391
 
@@ -32369,21 +32425,27 @@ System.register(["../../../Styler"], function (_export, _context) {
32369
32425
  System.register(["../../../Styler"], function (_export, _context) {
32370
32426
  "use strict";
32371
32427
 
32372
- var StylerProperty, createSet, pair, itemPositions;
32428
+ var StylerProperty, createSet, createVarSet, pair, sizeVarList, itemPositions;
32373
32429
  return {
32374
32430
  setters: [function (_Styler) {
32375
32431
  StylerProperty = _Styler.StylerProperty;
32376
32432
  createSet = _Styler.createSet;
32433
+ createVarSet = _Styler.createVarSet;
32377
32434
  pair = _Styler.pair;
32435
+ sizeVarList = _Styler.sizeVarList;
32378
32436
  }],
32379
32437
  execute: function () {
32380
32438
  _export("itemPositions", itemPositions = {
32381
32439
  stylerAlignContent: new StylerProperty("styler-align-content", createSet("align-content", ["center", "start", "end", "flex-start", "flex-end", "normal", "baseline", "space-between", "space-around", "space-evenly", "stretch", pair("safe-center", "safe center"), pair("unsafe-center", "unsafe center"), pair("first-baseline", "first baseline"), pair("last-baseline", "last baseline")])),
32382
32440
  stylerAlignItems: new StylerProperty("styler-align-items", createSet("align-items", ["normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", pair("first baseline"), pair("last baseline"), pair("safe center"), pair("unsafe center")])),
32383
32441
  stylerAlignSelf: new StylerProperty("styler-align-self", createSet("align-self", ["normal", "auto", "center", "start", "end", "self-start", "self-end", "flex-start", "flex-end", "baseline", pair("first baseline"), pair("last baseline"), "stretch", pair("safe center"), pair("unsafe center")])),
32384
- stylerFlexJustifyItems: new StylerProperty("styler-justify-items", createSet("justify-items", ["normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "left", "right", "baseline", pair("first baseline"), pair("last baseline"), pair("safe center"), pair("unsafe center"), pair("legacy right"), pair("legacy left"), pair("legacy center")])),
32442
+ stylerJustifyItems: new StylerProperty("styler-justify-items", createSet("justify-items", ["normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "left", "right", "baseline", pair("first baseline"), pair("last baseline"), pair("safe center"), pair("unsafe center"), pair("legacy right"), pair("legacy left"), pair("legacy center")])),
32385
32443
  stylerJustifyContent: new StylerProperty("styler-justify-content", createSet("justify-content", ["center", "start", "end", "flex-start", "flex-end", "left", "right", "normal", "space-between", "space-around", "space-evenly", "stretch", pair("safe center"), pair("unsafe center")])),
32386
- stylerJustifySelf: new StylerProperty("styler-justify-self", createSet("justify-self", ["auto", "normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "left", "right", "baseline", pair("first baseline"), pair("last baseline"), pair("safe center"), pair("unsafe center")]))
32444
+ stylerJustifySelf: new StylerProperty("styler-justify-self", createSet("justify-self", ["auto", "normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "left", "right", "baseline", pair("first baseline"), pair("last baseline"), pair("safe center"), pair("unsafe center")])),
32445
+ stylerGap: new StylerProperty("styler-gap", createVarSet("gap", sizeVarList)),
32446
+ stylerRowGap: new StylerProperty("styler-row-gap", createVarSet("row-gap", sizeVarList)),
32447
+ stylerColumnGap: new StylerProperty("styler-column-gap", createVarSet("column-gap", sizeVarList)),
32448
+ stylerFlexWrap: new StylerProperty("styler-flex-wrap", createSet("flex-wrap", ["none", "wrap"]))
32387
32449
  });
32388
32450
  }
32389
32451
  };
@@ -32468,6 +32530,32 @@ System.register(["@web-atoms/core/dist/style/styled", "../../Styler"], function
32468
32530
 
32469
32531
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layout/layout");
32470
32532
 
32533
+ System.register(["../Styler"], function (_export, _context) {
32534
+ "use strict";
32535
+
32536
+ var StylerProperty, createVarSet, sizeVarList, stylerSizes;
32537
+ return {
32538
+ setters: [function (_Styler) {
32539
+ StylerProperty = _Styler.StylerProperty;
32540
+ createVarSet = _Styler.createVarSet;
32541
+ sizeVarList = _Styler.sizeVarList;
32542
+ }],
32543
+ execute: function () {
32544
+ _export("stylerSizes", stylerSizes = {
32545
+ stylerWidth: new StylerProperty("styler-width", createVarSet("width", sizeVarList)),
32546
+ stylerMinWidth: new StylerProperty("styler-min-width", createVarSet("min-width", sizeVarList)),
32547
+ stylerMaxWidth: new StylerProperty("styler-max-width", createVarSet("max-width", sizeVarList)),
32548
+ stylerHeight: new StylerProperty("styler-height", createVarSet("height", sizeVarList)),
32549
+ stylerMinHeight: new StylerProperty("styler-min-height", createVarSet("min-height", sizeVarList)),
32550
+ stylerMaxHeight: new StylerProperty("styler-max-height", createVarSet("max-height", sizeVarList))
32551
+ });
32552
+ }
32553
+ };
32554
+ });
32555
+ //# sourceMappingURL=stylerSizes.js.map
32556
+
32557
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes");
32558
+
32471
32559
  System.register(["../../Styler"], function (_export, _context) {
32472
32560
  "use strict";
32473
32561
 
@@ -32490,15 +32578,17 @@ System.register(["../../Styler"], function (_export, _context) {
32490
32578
 
32491
32579
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/text/stylerText");
32492
32580
 
32493
- System.register(["./Styler", "./properties/layout/display", "./properties/layout/flex/flex", "./properties/layout/items-position/itemsPosition", "./properties/layout/layout", "./properties/text/stylerText"], function (_export, _context) {
32581
+ System.register(["./Styler", "./properties/border", "./properties/layout/display", "./properties/layout/flex/flex", "./properties/layout/items-position/itemsPosition", "./properties/layout/layout", "./properties/stylerSizes", "./properties/text/stylerText"], function (_export, _context) {
32494
32582
  "use strict";
32495
32583
 
32496
- var StylerVariable, stylerVars, stylerDisplay, stylerFlexDirection, itemPositions, stylerLayout, stylerText, StylerSet, vars;
32584
+ var StylerVariable, stylerVars, stylerBorder, stylerDisplay, stylerFlexDirection, itemPositions, stylerLayout, stylerSizes, stylerText, StylerSet, vars;
32497
32585
  _export("StylerSet", void 0);
32498
32586
  return {
32499
32587
  setters: [function (_Styler) {
32500
32588
  StylerVariable = _Styler.StylerVariable;
32501
32589
  stylerVars = _Styler.stylerVars;
32590
+ }, function (_propertiesBorder) {
32591
+ stylerBorder = _propertiesBorder.stylerBorder;
32502
32592
  }, function (_propertiesLayoutDisplay) {
32503
32593
  stylerDisplay = _propertiesLayoutDisplay.stylerDisplay;
32504
32594
  }, function (_propertiesLayoutFlexFlex) {
@@ -32507,6 +32597,8 @@ System.register(["./Styler", "./properties/layout/display", "./properties/layout
32507
32597
  itemPositions = _propertiesLayoutItemsPositionItemsPosition.itemPositions;
32508
32598
  }, function (_propertiesLayoutLayout) {
32509
32599
  stylerLayout = _propertiesLayoutLayout.stylerLayout;
32600
+ }, function (_propertiesStylerSizes) {
32601
+ stylerSizes = _propertiesStylerSizes.stylerSizes;
32510
32602
  }, function (_propertiesTextStylerText) {
32511
32603
  stylerText = _propertiesTextStylerText.stylerText;
32512
32604
  }],
@@ -32521,11 +32613,11 @@ System.register(["./Styler", "./properties/layout/display", "./properties/layout
32521
32613
  _export("StylerSet", StylerSet = class StylerSet {
32522
32614
  constructor() {
32523
32615
  this.vars = vars;
32524
- this.properties = Object.assign(Object.assign({
32616
+ this.properties = Object.assign(Object.assign(Object.assign(Object.assign({
32525
32617
  stylerLayout,
32526
32618
  stylerDisplay,
32527
32619
  stylerFlexDirection
32528
- }, itemPositions), stylerText);
32620
+ }, stylerBorder), itemPositions), stylerText), stylerSizes);
32529
32621
  }
32530
32622
  toString() {
32531
32623
  const properties = [];
@@ -32571,11 +32663,38 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
32571
32663
  }), XNode.create(DropDownProperty, {
32572
32664
  "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.currentStyle.display)),
32573
32665
  label: "Justify",
32574
- property: properties.stylerFlexJustifyItems
32666
+ property: properties.stylerJustifyItems
32575
32667
  }), XNode.create(DropDownProperty, {
32576
32668
  "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.currentStyle.display)),
32577
32669
  label: "Align",
32578
32670
  property: properties.stylerAlignItems
32671
+ }), XNode.create(DropDownProperty, {
32672
+ "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.currentStyle.display)),
32673
+ label: "Gap",
32674
+ property: properties.stylerGap
32675
+ }), XNode.create(DropDownProperty, {
32676
+ "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.currentStyle.display)),
32677
+ label: "Row Gap",
32678
+ property: properties.stylerRowGap
32679
+ }), XNode.create(DropDownProperty, {
32680
+ "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.currentStyle.display)),
32681
+ label: "Column Gap",
32682
+ property: properties.stylerColumnGap
32683
+ }), XNode.create(DropDownProperty, {
32684
+ "style-display": BindEditor.oneWay(e => /flex/i.test(e.selection.currentStyle.display)),
32685
+ label: "Wrap",
32686
+ property: properties.stylerFlexWrap
32687
+ }), XNode.create("hr", null), XNode.create("label", {
32688
+ "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.parentStyle.display)),
32689
+ text: BindEditor.oneWay(e => /flex/i.test(e.selection.parentStyle.display)) ? "Flex Child" : "Grid Child"
32690
+ }), XNode.create(DropDownProperty, {
32691
+ "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.parentStyle.display)),
32692
+ label: "Align",
32693
+ property: properties.stylerAlignSelf
32694
+ }), XNode.create(DropDownProperty, {
32695
+ "style-display": BindEditor.oneWay(e => /flex|grid/i.test(e.selection.parentStyle.display)),
32696
+ label: "Justify",
32697
+ property: properties.stylerJustifySelf
32579
32698
  }));
32580
32699
  }
32581
32700
  _export("default", LayoutEditor);
@@ -32673,10 +32792,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-at
32673
32792
  propertyValue: Bind.sourceTwoWays(pv, x => x.source.value),
32674
32793
  custom: Bind.sourceTwoWays(pv, x => x.source.custom),
32675
32794
  "data-element": "property-editor",
32676
- "data-layout": "vertical-flex-stretch-items"
32795
+ "data-display": "flex",
32796
+ "data-justify-items": "stretch"
32677
32797
  }, XNode.create("div", {
32678
32798
  "data-layout": "row"
32679
32799
  }, XNode.create("label", {
32800
+ "data-font-size": "small",
32680
32801
  text: Bind.oneWay(() => this.label)
32681
32802
  }), XNode.create("input", {
32682
32803
  type: "checkbox",
@@ -32747,1551 +32868,100 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../styler/StylerSet", ".
32747
32868
 
32748
32869
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor");
32749
32870
 
32750
- // This file is autogenerated.
32751
- // It's here at this path for backwards compatibility for links to it
32752
- // but the npm package now exports both CJS and ESM.
32753
- // See https://github.com/bgrins/TinyColor/ for instructions.
32754
- (function (global, factory) {
32755
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
32756
- typeof define === 'function' && define.amd ? define(factory) :
32757
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tinycolor = factory());
32758
- })(this, (function () { 'use strict';
32759
-
32760
- function _typeof(obj) {
32761
- "@babel/helpers - typeof";
32762
-
32763
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
32764
- return typeof obj;
32765
- } : function (obj) {
32766
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32767
- }, _typeof(obj);
32768
- }
32871
+ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../../styler/StylerSet", "../controls/SizeEditorControl"], function (_export, _context) {
32872
+ "use strict";
32769
32873
 
32770
- // https://github.com/bgrins/TinyColor
32771
- // Brian Grinstead, MIT License
32772
-
32773
- var trimLeft = /^\s+/;
32774
- var trimRight = /\s+$/;
32775
- function tinycolor(color, opts) {
32776
- color = color ? color : "";
32777
- opts = opts || {};
32778
-
32779
- // If input is already a tinycolor, return itself
32780
- if (color instanceof tinycolor) {
32781
- return color;
32782
- }
32783
- // If we are called as a function, call using new instead
32784
- if (!(this instanceof tinycolor)) {
32785
- return new tinycolor(color, opts);
32786
- }
32787
- var rgb = inputToRGB(color);
32788
- this._originalInput = color, this._r = rgb.r, this._g = rgb.g, this._b = rgb.b, this._a = rgb.a, this._roundA = Math.round(100 * this._a) / 100, this._format = opts.format || rgb.format;
32789
- this._gradientType = opts.gradientType;
32790
-
32791
- // Don't let the range of [0,255] come back in [0,1].
32792
- // Potentially lose a little bit of precision here, but will fix issues where
32793
- // .5 gets interpreted as half of the total, instead of half of 1
32794
- // If it was supposed to be 128, this was already taken care of by `inputToRgb`
32795
- if (this._r < 1) this._r = Math.round(this._r);
32796
- if (this._g < 1) this._g = Math.round(this._g);
32797
- if (this._b < 1) this._b = Math.round(this._b);
32798
- this._ok = rgb.ok;
32874
+ var XNode, DropDownProperty, ExpanderPropertyEditor, StylerSet, SizeEditorControl, properties;
32875
+ function BorderGroupEditor() {
32876
+ return XNode.create(ExpanderPropertyEditor, {
32877
+ label: "Border"
32878
+ }, XNode.create(DropDownProperty, {
32879
+ label: "Style",
32880
+ property: properties.stylerBorder
32881
+ }), XNode.create(SizeEditorControl, {
32882
+ label: "Radius",
32883
+ property: properties.stylerBorderRadius
32884
+ }));
32799
32885
  }
32800
- tinycolor.prototype = {
32801
- isDark: function isDark() {
32802
- return this.getBrightness() < 128;
32803
- },
32804
- isLight: function isLight() {
32805
- return !this.isDark();
32806
- },
32807
- isValid: function isValid() {
32808
- return this._ok;
32809
- },
32810
- getOriginalInput: function getOriginalInput() {
32811
- return this._originalInput;
32812
- },
32813
- getFormat: function getFormat() {
32814
- return this._format;
32815
- },
32816
- getAlpha: function getAlpha() {
32817
- return this._a;
32818
- },
32819
- getBrightness: function getBrightness() {
32820
- //http://www.w3.org/TR/AERT#color-contrast
32821
- var rgb = this.toRgb();
32822
- return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
32823
- },
32824
- getLuminance: function getLuminance() {
32825
- //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
32826
- var rgb = this.toRgb();
32827
- var RsRGB, GsRGB, BsRGB, R, G, B;
32828
- RsRGB = rgb.r / 255;
32829
- GsRGB = rgb.g / 255;
32830
- BsRGB = rgb.b / 255;
32831
- if (RsRGB <= 0.03928) R = RsRGB / 12.92;else R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
32832
- if (GsRGB <= 0.03928) G = GsRGB / 12.92;else G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
32833
- if (BsRGB <= 0.03928) B = BsRGB / 12.92;else B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
32834
- return 0.2126 * R + 0.7152 * G + 0.0722 * B;
32835
- },
32836
- setAlpha: function setAlpha(value) {
32837
- this._a = boundAlpha(value);
32838
- this._roundA = Math.round(100 * this._a) / 100;
32839
- return this;
32840
- },
32841
- toHsv: function toHsv() {
32842
- var hsv = rgbToHsv(this._r, this._g, this._b);
32843
- return {
32844
- h: hsv.h * 360,
32845
- s: hsv.s,
32846
- v: hsv.v,
32847
- a: this._a
32848
- };
32849
- },
32850
- toHsvString: function toHsvString() {
32851
- var hsv = rgbToHsv(this._r, this._g, this._b);
32852
- var h = Math.round(hsv.h * 360),
32853
- s = Math.round(hsv.s * 100),
32854
- v = Math.round(hsv.v * 100);
32855
- return this._a == 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this._roundA + ")";
32856
- },
32857
- toHsl: function toHsl() {
32858
- var hsl = rgbToHsl(this._r, this._g, this._b);
32859
- return {
32860
- h: hsl.h * 360,
32861
- s: hsl.s,
32862
- l: hsl.l,
32863
- a: this._a
32864
- };
32865
- },
32866
- toHslString: function toHslString() {
32867
- var hsl = rgbToHsl(this._r, this._g, this._b);
32868
- var h = Math.round(hsl.h * 360),
32869
- s = Math.round(hsl.s * 100),
32870
- l = Math.round(hsl.l * 100);
32871
- return this._a == 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this._roundA + ")";
32872
- },
32873
- toHex: function toHex(allow3Char) {
32874
- return rgbToHex(this._r, this._g, this._b, allow3Char);
32875
- },
32876
- toHexString: function toHexString(allow3Char) {
32877
- return "#" + this.toHex(allow3Char);
32878
- },
32879
- toHex8: function toHex8(allow4Char) {
32880
- return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
32881
- },
32882
- toHex8String: function toHex8String(allow4Char) {
32883
- return "#" + this.toHex8(allow4Char);
32884
- },
32885
- toRgb: function toRgb() {
32886
- return {
32887
- r: Math.round(this._r),
32888
- g: Math.round(this._g),
32889
- b: Math.round(this._b),
32890
- a: this._a
32891
- };
32892
- },
32893
- toRgbString: function toRgbString() {
32894
- return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
32895
- },
32896
- toPercentageRgb: function toPercentageRgb() {
32897
- return {
32898
- r: Math.round(bound01(this._r, 255) * 100) + "%",
32899
- g: Math.round(bound01(this._g, 255) * 100) + "%",
32900
- b: Math.round(bound01(this._b, 255) * 100) + "%",
32901
- a: this._a
32902
- };
32903
- },
32904
- toPercentageRgbString: function toPercentageRgbString() {
32905
- return this._a == 1 ? "rgb(" + Math.round(bound01(this._r, 255) * 100) + "%, " + Math.round(bound01(this._g, 255) * 100) + "%, " + Math.round(bound01(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(bound01(this._r, 255) * 100) + "%, " + Math.round(bound01(this._g, 255) * 100) + "%, " + Math.round(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
32906
- },
32907
- toName: function toName() {
32908
- if (this._a === 0) {
32909
- return "transparent";
32910
- }
32911
- if (this._a < 1) {
32912
- return false;
32913
- }
32914
- return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
32915
- },
32916
- toFilter: function toFilter(secondColor) {
32917
- var hex8String = "#" + rgbaToArgbHex(this._r, this._g, this._b, this._a);
32918
- var secondHex8String = hex8String;
32919
- var gradientType = this._gradientType ? "GradientType = 1, " : "";
32920
- if (secondColor) {
32921
- var s = tinycolor(secondColor);
32922
- secondHex8String = "#" + rgbaToArgbHex(s._r, s._g, s._b, s._a);
32923
- }
32924
- return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
32925
- },
32926
- toString: function toString(format) {
32927
- var formatSet = !!format;
32928
- format = format || this._format;
32929
- var formattedString = false;
32930
- var hasAlpha = this._a < 1 && this._a >= 0;
32931
- var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
32932
- if (needsAlphaFormat) {
32933
- // Special case for "transparent", all other non-alpha formats
32934
- // will return rgba when there is transparency.
32935
- if (format === "name" && this._a === 0) {
32936
- return this.toName();
32937
- }
32938
- return this.toRgbString();
32939
- }
32940
- if (format === "rgb") {
32941
- formattedString = this.toRgbString();
32942
- }
32943
- if (format === "prgb") {
32944
- formattedString = this.toPercentageRgbString();
32945
- }
32946
- if (format === "hex" || format === "hex6") {
32947
- formattedString = this.toHexString();
32948
- }
32949
- if (format === "hex3") {
32950
- formattedString = this.toHexString(true);
32951
- }
32952
- if (format === "hex4") {
32953
- formattedString = this.toHex8String(true);
32954
- }
32955
- if (format === "hex8") {
32956
- formattedString = this.toHex8String();
32957
- }
32958
- if (format === "name") {
32959
- formattedString = this.toName();
32960
- }
32961
- if (format === "hsl") {
32962
- formattedString = this.toHslString();
32963
- }
32964
- if (format === "hsv") {
32965
- formattedString = this.toHsvString();
32966
- }
32967
- return formattedString || this.toHexString();
32968
- },
32969
- clone: function clone() {
32970
- return tinycolor(this.toString());
32971
- },
32972
- _applyModification: function _applyModification(fn, args) {
32973
- var color = fn.apply(null, [this].concat([].slice.call(args)));
32974
- this._r = color._r;
32975
- this._g = color._g;
32976
- this._b = color._b;
32977
- this.setAlpha(color._a);
32978
- return this;
32979
- },
32980
- lighten: function lighten() {
32981
- return this._applyModification(_lighten, arguments);
32982
- },
32983
- brighten: function brighten() {
32984
- return this._applyModification(_brighten, arguments);
32985
- },
32986
- darken: function darken() {
32987
- return this._applyModification(_darken, arguments);
32988
- },
32989
- desaturate: function desaturate() {
32990
- return this._applyModification(_desaturate, arguments);
32991
- },
32992
- saturate: function saturate() {
32993
- return this._applyModification(_saturate, arguments);
32994
- },
32995
- greyscale: function greyscale() {
32996
- return this._applyModification(_greyscale, arguments);
32997
- },
32998
- spin: function spin() {
32999
- return this._applyModification(_spin, arguments);
33000
- },
33001
- _applyCombination: function _applyCombination(fn, args) {
33002
- return fn.apply(null, [this].concat([].slice.call(args)));
33003
- },
33004
- analogous: function analogous() {
33005
- return this._applyCombination(_analogous, arguments);
33006
- },
33007
- complement: function complement() {
33008
- return this._applyCombination(_complement, arguments);
33009
- },
33010
- monochromatic: function monochromatic() {
33011
- return this._applyCombination(_monochromatic, arguments);
33012
- },
33013
- splitcomplement: function splitcomplement() {
33014
- return this._applyCombination(_splitcomplement, arguments);
33015
- },
33016
- // Disabled until https://github.com/bgrins/TinyColor/issues/254
33017
- // polyad: function (number) {
33018
- // return this._applyCombination(polyad, [number]);
33019
- // },
33020
- triad: function triad() {
33021
- return this._applyCombination(polyad, [3]);
33022
- },
33023
- tetrad: function tetrad() {
33024
- return this._applyCombination(polyad, [4]);
32886
+ _export("default", BorderGroupEditor);
32887
+ return {
32888
+ setters: [function (_webAtomsCoreDistCoreXNode) {
32889
+ XNode = _webAtomsCoreDistCoreXNode.default;
32890
+ }, function (_controlsPropertyEditor) {
32891
+ DropDownProperty = _controlsPropertyEditor.DropDownProperty;
32892
+ ExpanderPropertyEditor = _controlsPropertyEditor.ExpanderPropertyEditor;
32893
+ }, function (_stylerStylerSet) {
32894
+ StylerSet = _stylerStylerSet.StylerSet;
32895
+ }, function (_controlsSizeEditorControl) {
32896
+ SizeEditorControl = _controlsSizeEditorControl.default;
32897
+ }],
32898
+ execute: function () {
32899
+ ({
32900
+ properties
32901
+ } = StylerSet.instance);
33025
32902
  }
33026
32903
  };
32904
+ });
32905
+ //# sourceMappingURL=BorderGroupEditor.js.map
33027
32906
 
33028
- // If input is an object, force 1 into "1.0" to handle ratios properly
33029
- // String input requires "1.0" as input, so 1 will be treated as 1
33030
- tinycolor.fromRatio = function (color, opts) {
33031
- if (_typeof(color) == "object") {
33032
- var newColor = {};
33033
- for (var i in color) {
33034
- if (color.hasOwnProperty(i)) {
33035
- if (i === "a") {
33036
- newColor[i] = color[i];
33037
- } else {
33038
- newColor[i] = convertToPercentage(color[i]);
33039
- }
33040
- }
33041
- }
33042
- color = newColor;
33043
- }
33044
- return tinycolor(color, opts);
33045
- };
33046
-
33047
- // Given a string or object, convert that input to RGB
33048
- // Possible string inputs:
33049
- //
33050
- // "red"
33051
- // "#f00" or "f00"
33052
- // "#ff0000" or "ff0000"
33053
- // "#ff000000" or "ff000000"
33054
- // "rgb 255 0 0" or "rgb (255, 0, 0)"
33055
- // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
33056
- // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
33057
- // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
33058
- // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
33059
- // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
33060
- // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
33061
- //
33062
- function inputToRGB(color) {
33063
- var rgb = {
33064
- r: 0,
33065
- g: 0,
33066
- b: 0
33067
- };
33068
- var a = 1;
33069
- var s = null;
33070
- var v = null;
33071
- var l = null;
33072
- var ok = false;
33073
- var format = false;
33074
- if (typeof color == "string") {
33075
- color = stringInputToObject(color);
33076
- }
33077
- if (_typeof(color) == "object") {
33078
- if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
33079
- rgb = rgbToRgb(color.r, color.g, color.b);
33080
- ok = true;
33081
- format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
33082
- } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
33083
- s = convertToPercentage(color.s);
33084
- v = convertToPercentage(color.v);
33085
- rgb = hsvToRgb(color.h, s, v);
33086
- ok = true;
33087
- format = "hsv";
33088
- } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
33089
- s = convertToPercentage(color.s);
33090
- l = convertToPercentage(color.l);
33091
- rgb = hslToRgb(color.h, s, l);
33092
- ok = true;
33093
- format = "hsl";
33094
- }
33095
- if (color.hasOwnProperty("a")) {
33096
- a = color.a;
33097
- }
33098
- }
33099
- a = boundAlpha(a);
33100
- return {
33101
- ok: ok,
33102
- format: color.format || format,
33103
- r: Math.min(255, Math.max(rgb.r, 0)),
33104
- g: Math.min(255, Math.max(rgb.g, 0)),
33105
- b: Math.min(255, Math.max(rgb.b, 0)),
33106
- a: a
33107
- };
33108
- }
33109
-
33110
- // Conversion Functions
33111
- // --------------------
33112
-
33113
- // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
33114
- // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
33115
-
33116
- // `rgbToRgb`
33117
- // Handle bounds / percentage checking to conform to CSS color spec
33118
- // <http://www.w3.org/TR/css3-color/>
33119
- // *Assumes:* r, g, b in [0, 255] or [0, 1]
33120
- // *Returns:* { r, g, b } in [0, 255]
33121
- function rgbToRgb(r, g, b) {
33122
- return {
33123
- r: bound01(r, 255) * 255,
33124
- g: bound01(g, 255) * 255,
33125
- b: bound01(b, 255) * 255
33126
- };
33127
- }
33128
-
33129
- // `rgbToHsl`
33130
- // Converts an RGB color value to HSL.
33131
- // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
33132
- // *Returns:* { h, s, l } in [0,1]
33133
- function rgbToHsl(r, g, b) {
33134
- r = bound01(r, 255);
33135
- g = bound01(g, 255);
33136
- b = bound01(b, 255);
33137
- var max = Math.max(r, g, b),
33138
- min = Math.min(r, g, b);
33139
- var h,
33140
- s,
33141
- l = (max + min) / 2;
33142
- if (max == min) {
33143
- h = s = 0; // achromatic
33144
- } else {
33145
- var d = max - min;
33146
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
33147
- switch (max) {
33148
- case r:
33149
- h = (g - b) / d + (g < b ? 6 : 0);
33150
- break;
33151
- case g:
33152
- h = (b - r) / d + 2;
33153
- break;
33154
- case b:
33155
- h = (r - g) / d + 4;
33156
- break;
33157
- }
33158
- h /= 6;
33159
- }
33160
- return {
33161
- h: h,
33162
- s: s,
33163
- l: l
33164
- };
33165
- }
33166
-
33167
- // `hslToRgb`
33168
- // Converts an HSL color value to RGB.
33169
- // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
33170
- // *Returns:* { r, g, b } in the set [0, 255]
33171
- function hslToRgb(h, s, l) {
33172
- var r, g, b;
33173
- h = bound01(h, 360);
33174
- s = bound01(s, 100);
33175
- l = bound01(l, 100);
33176
- function hue2rgb(p, q, t) {
33177
- if (t < 0) t += 1;
33178
- if (t > 1) t -= 1;
33179
- if (t < 1 / 6) return p + (q - p) * 6 * t;
33180
- if (t < 1 / 2) return q;
33181
- if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
33182
- return p;
33183
- }
33184
- if (s === 0) {
33185
- r = g = b = l; // achromatic
33186
- } else {
33187
- var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
33188
- var p = 2 * l - q;
33189
- r = hue2rgb(p, q, h + 1 / 3);
33190
- g = hue2rgb(p, q, h);
33191
- b = hue2rgb(p, q, h - 1 / 3);
33192
- }
33193
- return {
33194
- r: r * 255,
33195
- g: g * 255,
33196
- b: b * 255
33197
- };
33198
- }
33199
-
33200
- // `rgbToHsv`
33201
- // Converts an RGB color value to HSV
33202
- // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
33203
- // *Returns:* { h, s, v } in [0,1]
33204
- function rgbToHsv(r, g, b) {
33205
- r = bound01(r, 255);
33206
- g = bound01(g, 255);
33207
- b = bound01(b, 255);
33208
- var max = Math.max(r, g, b),
33209
- min = Math.min(r, g, b);
33210
- var h,
33211
- s,
33212
- v = max;
33213
- var d = max - min;
33214
- s = max === 0 ? 0 : d / max;
33215
- if (max == min) {
33216
- h = 0; // achromatic
33217
- } else {
33218
- switch (max) {
33219
- case r:
33220
- h = (g - b) / d + (g < b ? 6 : 0);
33221
- break;
33222
- case g:
33223
- h = (b - r) / d + 2;
33224
- break;
33225
- case b:
33226
- h = (r - g) / d + 4;
33227
- break;
33228
- }
33229
- h /= 6;
33230
- }
33231
- return {
33232
- h: h,
33233
- s: s,
33234
- v: v
33235
- };
33236
- }
33237
-
33238
- // `hsvToRgb`
33239
- // Converts an HSV color value to RGB.
33240
- // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
33241
- // *Returns:* { r, g, b } in the set [0, 255]
33242
- function hsvToRgb(h, s, v) {
33243
- h = bound01(h, 360) * 6;
33244
- s = bound01(s, 100);
33245
- v = bound01(v, 100);
33246
- var i = Math.floor(h),
33247
- f = h - i,
33248
- p = v * (1 - s),
33249
- q = v * (1 - f * s),
33250
- t = v * (1 - (1 - f) * s),
33251
- mod = i % 6,
33252
- r = [v, q, p, p, t, v][mod],
33253
- g = [t, v, v, q, p, p][mod],
33254
- b = [p, p, t, v, v, q][mod];
33255
- return {
33256
- r: r * 255,
33257
- g: g * 255,
33258
- b: b * 255
33259
- };
33260
- }
33261
-
33262
- // `rgbToHex`
33263
- // Converts an RGB color to hex
33264
- // Assumes r, g, and b are contained in the set [0, 255]
33265
- // Returns a 3 or 6 character hex
33266
- function rgbToHex(r, g, b, allow3Char) {
33267
- var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
33268
-
33269
- // Return a 3 character hex if possible
33270
- if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
33271
- return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
33272
- }
33273
- return hex.join("");
33274
- }
33275
-
33276
- // `rgbaToHex`
33277
- // Converts an RGBA color plus alpha transparency to hex
33278
- // Assumes r, g, b are contained in the set [0, 255] and
33279
- // a in [0, 1]. Returns a 4 or 8 character rgba hex
33280
- function rgbaToHex(r, g, b, a, allow4Char) {
33281
- var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)), pad2(convertDecimalToHex(a))];
33282
-
33283
- // Return a 4 character hex if possible
33284
- if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
33285
- return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
33286
- }
33287
- return hex.join("");
33288
- }
33289
-
33290
- // `rgbaToArgbHex`
33291
- // Converts an RGBA color to an ARGB Hex8 string
33292
- // Rarely used, but required for "toFilter()"
33293
- function rgbaToArgbHex(r, g, b, a) {
33294
- var hex = [pad2(convertDecimalToHex(a)), pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
33295
- return hex.join("");
33296
- }
33297
-
33298
- // `equals`
33299
- // Can be called with any tinycolor input
33300
- tinycolor.equals = function (color1, color2) {
33301
- if (!color1 || !color2) return false;
33302
- return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
33303
- };
33304
- tinycolor.random = function () {
33305
- return tinycolor.fromRatio({
33306
- r: Math.random(),
33307
- g: Math.random(),
33308
- b: Math.random()
33309
- });
33310
- };
33311
-
33312
- // Modification Functions
33313
- // ----------------------
33314
- // Thanks to less.js for some of the basics here
33315
- // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
32907
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor");
33316
32908
 
33317
- function _desaturate(color, amount) {
33318
- amount = amount === 0 ? 0 : amount || 10;
33319
- var hsl = tinycolor(color).toHsl();
33320
- hsl.s -= amount / 100;
33321
- hsl.s = clamp01(hsl.s);
33322
- return tinycolor(hsl);
33323
- }
33324
- function _saturate(color, amount) {
33325
- amount = amount === 0 ? 0 : amount || 10;
33326
- var hsl = tinycolor(color).toHsl();
33327
- hsl.s += amount / 100;
33328
- hsl.s = clamp01(hsl.s);
33329
- return tinycolor(hsl);
33330
- }
33331
- function _greyscale(color) {
33332
- return tinycolor(color).desaturate(100);
33333
- }
33334
- function _lighten(color, amount) {
33335
- amount = amount === 0 ? 0 : amount || 10;
33336
- var hsl = tinycolor(color).toHsl();
33337
- hsl.l += amount / 100;
33338
- hsl.l = clamp01(hsl.l);
33339
- return tinycolor(hsl);
33340
- }
33341
- function _brighten(color, amount) {
33342
- amount = amount === 0 ? 0 : amount || 10;
33343
- var rgb = tinycolor(color).toRgb();
33344
- rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
33345
- rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
33346
- rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
33347
- return tinycolor(rgb);
33348
- }
33349
- function _darken(color, amount) {
33350
- amount = amount === 0 ? 0 : amount || 10;
33351
- var hsl = tinycolor(color).toHsl();
33352
- hsl.l -= amount / 100;
33353
- hsl.l = clamp01(hsl.l);
33354
- return tinycolor(hsl);
33355
- }
33356
-
33357
- // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
33358
- // Values outside of this range will be wrapped into this range.
33359
- function _spin(color, amount) {
33360
- var hsl = tinycolor(color).toHsl();
33361
- var hue = (hsl.h + amount) % 360;
33362
- hsl.h = hue < 0 ? 360 + hue : hue;
33363
- return tinycolor(hsl);
33364
- }
33365
-
33366
- // Combination Functions
33367
- // ---------------------
33368
- // Thanks to jQuery xColor for some of the ideas behind these
33369
- // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
33370
-
33371
- function _complement(color) {
33372
- var hsl = tinycolor(color).toHsl();
33373
- hsl.h = (hsl.h + 180) % 360;
33374
- return tinycolor(hsl);
33375
- }
33376
- function polyad(color, number) {
33377
- if (isNaN(number) || number <= 0) {
33378
- throw new Error("Argument to polyad must be a positive number");
33379
- }
33380
- var hsl = tinycolor(color).toHsl();
33381
- var result = [tinycolor(color)];
33382
- var step = 360 / number;
33383
- for (var i = 1; i < number; i++) {
33384
- result.push(tinycolor({
33385
- h: (hsl.h + i * step) % 360,
33386
- s: hsl.s,
33387
- l: hsl.l
33388
- }));
33389
- }
33390
- return result;
33391
- }
33392
- function _splitcomplement(color) {
33393
- var hsl = tinycolor(color).toHsl();
33394
- var h = hsl.h;
33395
- return [tinycolor(color), tinycolor({
33396
- h: (h + 72) % 360,
33397
- s: hsl.s,
33398
- l: hsl.l
33399
- }), tinycolor({
33400
- h: (h + 216) % 360,
33401
- s: hsl.s,
33402
- l: hsl.l
33403
- })];
33404
- }
33405
- function _analogous(color, results, slices) {
33406
- results = results || 6;
33407
- slices = slices || 30;
33408
- var hsl = tinycolor(color).toHsl();
33409
- var part = 360 / slices;
33410
- var ret = [tinycolor(color)];
33411
- for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results;) {
33412
- hsl.h = (hsl.h + part) % 360;
33413
- ret.push(tinycolor(hsl));
33414
- }
33415
- return ret;
33416
- }
33417
- function _monochromatic(color, results) {
33418
- results = results || 6;
33419
- var hsv = tinycolor(color).toHsv();
33420
- var h = hsv.h,
33421
- s = hsv.s,
33422
- v = hsv.v;
33423
- var ret = [];
33424
- var modification = 1 / results;
33425
- while (results--) {
33426
- ret.push(tinycolor({
33427
- h: h,
33428
- s: s,
33429
- v: v
33430
- }));
33431
- v = (v + modification) % 1;
33432
- }
33433
- return ret;
33434
- }
33435
-
33436
- // Utility Functions
33437
- // ---------------------
33438
-
33439
- tinycolor.mix = function (color1, color2, amount) {
33440
- amount = amount === 0 ? 0 : amount || 50;
33441
- var rgb1 = tinycolor(color1).toRgb();
33442
- var rgb2 = tinycolor(color2).toRgb();
33443
- var p = amount / 100;
33444
- var rgba = {
33445
- r: (rgb2.r - rgb1.r) * p + rgb1.r,
33446
- g: (rgb2.g - rgb1.g) * p + rgb1.g,
33447
- b: (rgb2.b - rgb1.b) * p + rgb1.b,
33448
- a: (rgb2.a - rgb1.a) * p + rgb1.a
33449
- };
33450
- return tinycolor(rgba);
33451
- };
33452
-
33453
- // Readability Functions
33454
- // ---------------------
33455
- // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
33456
-
33457
- // `contrast`
33458
- // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
33459
- tinycolor.readability = function (color1, color2) {
33460
- var c1 = tinycolor(color1);
33461
- var c2 = tinycolor(color2);
33462
- return (Math.max(c1.getLuminance(), c2.getLuminance()) + 0.05) / (Math.min(c1.getLuminance(), c2.getLuminance()) + 0.05);
33463
- };
33464
-
33465
- // `isReadable`
33466
- // Ensure that foreground and background color combinations meet WCAG2 guidelines.
33467
- // The third argument is an optional Object.
33468
- // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
33469
- // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
33470
- // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
33471
-
33472
- // *Example*
33473
- // tinycolor.isReadable("#000", "#111") => false
33474
- // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
33475
- tinycolor.isReadable = function (color1, color2, wcag2) {
33476
- var readability = tinycolor.readability(color1, color2);
33477
- var wcag2Parms, out;
33478
- out = false;
33479
- wcag2Parms = validateWCAG2Parms(wcag2);
33480
- switch (wcag2Parms.level + wcag2Parms.size) {
33481
- case "AAsmall":
33482
- case "AAAlarge":
33483
- out = readability >= 4.5;
33484
- break;
33485
- case "AAlarge":
33486
- out = readability >= 3;
33487
- break;
33488
- case "AAAsmall":
33489
- out = readability >= 7;
33490
- break;
33491
- }
33492
- return out;
33493
- };
33494
-
33495
- // `mostReadable`
33496
- // Given a base color and a list of possible foreground or background
33497
- // colors for that base, returns the most readable color.
33498
- // Optionally returns Black or White if the most readable color is unreadable.
33499
- // *Example*
33500
- // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
33501
- // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
33502
- // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
33503
- // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
33504
- tinycolor.mostReadable = function (baseColor, colorList, args) {
33505
- var bestColor = null;
33506
- var bestScore = 0;
33507
- var readability;
33508
- var includeFallbackColors, level, size;
33509
- args = args || {};
33510
- includeFallbackColors = args.includeFallbackColors;
33511
- level = args.level;
33512
- size = args.size;
33513
- for (var i = 0; i < colorList.length; i++) {
33514
- readability = tinycolor.readability(baseColor, colorList[i]);
33515
- if (readability > bestScore) {
33516
- bestScore = readability;
33517
- bestColor = tinycolor(colorList[i]);
33518
- }
33519
- }
33520
- if (tinycolor.isReadable(baseColor, bestColor, {
33521
- level: level,
33522
- size: size
33523
- }) || !includeFallbackColors) {
33524
- return bestColor;
33525
- } else {
33526
- args.includeFallbackColors = false;
33527
- return tinycolor.mostReadable(baseColor, ["#fff", "#000"], args);
33528
- }
33529
- };
33530
-
33531
- // Big List of Colors
33532
- // ------------------
33533
- // <https://www.w3.org/TR/css-color-4/#named-colors>
33534
- var names = tinycolor.names = {
33535
- aliceblue: "f0f8ff",
33536
- antiquewhite: "faebd7",
33537
- aqua: "0ff",
33538
- aquamarine: "7fffd4",
33539
- azure: "f0ffff",
33540
- beige: "f5f5dc",
33541
- bisque: "ffe4c4",
33542
- black: "000",
33543
- blanchedalmond: "ffebcd",
33544
- blue: "00f",
33545
- blueviolet: "8a2be2",
33546
- brown: "a52a2a",
33547
- burlywood: "deb887",
33548
- burntsienna: "ea7e5d",
33549
- cadetblue: "5f9ea0",
33550
- chartreuse: "7fff00",
33551
- chocolate: "d2691e",
33552
- coral: "ff7f50",
33553
- cornflowerblue: "6495ed",
33554
- cornsilk: "fff8dc",
33555
- crimson: "dc143c",
33556
- cyan: "0ff",
33557
- darkblue: "00008b",
33558
- darkcyan: "008b8b",
33559
- darkgoldenrod: "b8860b",
33560
- darkgray: "a9a9a9",
33561
- darkgreen: "006400",
33562
- darkgrey: "a9a9a9",
33563
- darkkhaki: "bdb76b",
33564
- darkmagenta: "8b008b",
33565
- darkolivegreen: "556b2f",
33566
- darkorange: "ff8c00",
33567
- darkorchid: "9932cc",
33568
- darkred: "8b0000",
33569
- darksalmon: "e9967a",
33570
- darkseagreen: "8fbc8f",
33571
- darkslateblue: "483d8b",
33572
- darkslategray: "2f4f4f",
33573
- darkslategrey: "2f4f4f",
33574
- darkturquoise: "00ced1",
33575
- darkviolet: "9400d3",
33576
- deeppink: "ff1493",
33577
- deepskyblue: "00bfff",
33578
- dimgray: "696969",
33579
- dimgrey: "696969",
33580
- dodgerblue: "1e90ff",
33581
- firebrick: "b22222",
33582
- floralwhite: "fffaf0",
33583
- forestgreen: "228b22",
33584
- fuchsia: "f0f",
33585
- gainsboro: "dcdcdc",
33586
- ghostwhite: "f8f8ff",
33587
- gold: "ffd700",
33588
- goldenrod: "daa520",
33589
- gray: "808080",
33590
- green: "008000",
33591
- greenyellow: "adff2f",
33592
- grey: "808080",
33593
- honeydew: "f0fff0",
33594
- hotpink: "ff69b4",
33595
- indianred: "cd5c5c",
33596
- indigo: "4b0082",
33597
- ivory: "fffff0",
33598
- khaki: "f0e68c",
33599
- lavender: "e6e6fa",
33600
- lavenderblush: "fff0f5",
33601
- lawngreen: "7cfc00",
33602
- lemonchiffon: "fffacd",
33603
- lightblue: "add8e6",
33604
- lightcoral: "f08080",
33605
- lightcyan: "e0ffff",
33606
- lightgoldenrodyellow: "fafad2",
33607
- lightgray: "d3d3d3",
33608
- lightgreen: "90ee90",
33609
- lightgrey: "d3d3d3",
33610
- lightpink: "ffb6c1",
33611
- lightsalmon: "ffa07a",
33612
- lightseagreen: "20b2aa",
33613
- lightskyblue: "87cefa",
33614
- lightslategray: "789",
33615
- lightslategrey: "789",
33616
- lightsteelblue: "b0c4de",
33617
- lightyellow: "ffffe0",
33618
- lime: "0f0",
33619
- limegreen: "32cd32",
33620
- linen: "faf0e6",
33621
- magenta: "f0f",
33622
- maroon: "800000",
33623
- mediumaquamarine: "66cdaa",
33624
- mediumblue: "0000cd",
33625
- mediumorchid: "ba55d3",
33626
- mediumpurple: "9370db",
33627
- mediumseagreen: "3cb371",
33628
- mediumslateblue: "7b68ee",
33629
- mediumspringgreen: "00fa9a",
33630
- mediumturquoise: "48d1cc",
33631
- mediumvioletred: "c71585",
33632
- midnightblue: "191970",
33633
- mintcream: "f5fffa",
33634
- mistyrose: "ffe4e1",
33635
- moccasin: "ffe4b5",
33636
- navajowhite: "ffdead",
33637
- navy: "000080",
33638
- oldlace: "fdf5e6",
33639
- olive: "808000",
33640
- olivedrab: "6b8e23",
33641
- orange: "ffa500",
33642
- orangered: "ff4500",
33643
- orchid: "da70d6",
33644
- palegoldenrod: "eee8aa",
33645
- palegreen: "98fb98",
33646
- paleturquoise: "afeeee",
33647
- palevioletred: "db7093",
33648
- papayawhip: "ffefd5",
33649
- peachpuff: "ffdab9",
33650
- peru: "cd853f",
33651
- pink: "ffc0cb",
33652
- plum: "dda0dd",
33653
- powderblue: "b0e0e6",
33654
- purple: "800080",
33655
- rebeccapurple: "663399",
33656
- red: "f00",
33657
- rosybrown: "bc8f8f",
33658
- royalblue: "4169e1",
33659
- saddlebrown: "8b4513",
33660
- salmon: "fa8072",
33661
- sandybrown: "f4a460",
33662
- seagreen: "2e8b57",
33663
- seashell: "fff5ee",
33664
- sienna: "a0522d",
33665
- silver: "c0c0c0",
33666
- skyblue: "87ceeb",
33667
- slateblue: "6a5acd",
33668
- slategray: "708090",
33669
- slategrey: "708090",
33670
- snow: "fffafa",
33671
- springgreen: "00ff7f",
33672
- steelblue: "4682b4",
33673
- tan: "d2b48c",
33674
- teal: "008080",
33675
- thistle: "d8bfd8",
33676
- tomato: "ff6347",
33677
- turquoise: "40e0d0",
33678
- violet: "ee82ee",
33679
- wheat: "f5deb3",
33680
- white: "fff",
33681
- whitesmoke: "f5f5f5",
33682
- yellow: "ff0",
33683
- yellowgreen: "9acd32"
33684
- };
33685
-
33686
- // Make it easy to access colors via `hexNames[hex]`
33687
- var hexNames = tinycolor.hexNames = flip(names);
33688
-
33689
- // Utilities
33690
- // ---------
33691
-
33692
- // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
33693
- function flip(o) {
33694
- var flipped = {};
33695
- for (var i in o) {
33696
- if (o.hasOwnProperty(i)) {
33697
- flipped[o[i]] = i;
33698
- }
33699
- }
33700
- return flipped;
33701
- }
33702
-
33703
- // Return a valid alpha value [0,1] with all invalid values being set to 1
33704
- function boundAlpha(a) {
33705
- a = parseFloat(a);
33706
- if (isNaN(a) || a < 0 || a > 1) {
33707
- a = 1;
33708
- }
33709
- return a;
33710
- }
33711
-
33712
- // Take input from [0, n] and return it as [0, 1]
33713
- function bound01(n, max) {
33714
- if (isOnePointZero(n)) n = "100%";
33715
- var processPercent = isPercentage(n);
33716
- n = Math.min(max, Math.max(0, parseFloat(n)));
33717
-
33718
- // Automatically convert percentage into number
33719
- if (processPercent) {
33720
- n = parseInt(n * max, 10) / 100;
33721
- }
33722
-
33723
- // Handle floating point rounding errors
33724
- if (Math.abs(n - max) < 0.000001) {
33725
- return 1;
33726
- }
33727
-
33728
- // Convert into [0, 1] range if it isn't already
33729
- return n % max / parseFloat(max);
33730
- }
33731
-
33732
- // Force a number between 0 and 1
33733
- function clamp01(val) {
33734
- return Math.min(1, Math.max(0, val));
33735
- }
33736
-
33737
- // Parse a base-16 hex value into a base-10 integer
33738
- function parseIntFromHex(val) {
33739
- return parseInt(val, 16);
33740
- }
33741
-
33742
- // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
33743
- // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
33744
- function isOnePointZero(n) {
33745
- return typeof n == "string" && n.indexOf(".") != -1 && parseFloat(n) === 1;
33746
- }
33747
-
33748
- // Check to see if string passed in is a percentage
33749
- function isPercentage(n) {
33750
- return typeof n === "string" && n.indexOf("%") != -1;
33751
- }
33752
-
33753
- // Force a hex value to have 2 characters
33754
- function pad2(c) {
33755
- return c.length == 1 ? "0" + c : "" + c;
33756
- }
33757
-
33758
- // Replace a decimal with it's percentage value
33759
- function convertToPercentage(n) {
33760
- if (n <= 1) {
33761
- n = n * 100 + "%";
33762
- }
33763
- return n;
33764
- }
33765
-
33766
- // Converts a decimal to a hex value
33767
- function convertDecimalToHex(d) {
33768
- return Math.round(parseFloat(d) * 255).toString(16);
33769
- }
33770
- // Converts a hex value to a decimal
33771
- function convertHexToDecimal(h) {
33772
- return parseIntFromHex(h) / 255;
33773
- }
33774
- var matchers = function () {
33775
- // <http://www.w3.org/TR/css3-values/#integers>
33776
- var CSS_INTEGER = "[-\\+]?\\d+%?";
33777
-
33778
- // <http://www.w3.org/TR/css3-values/#number-value>
33779
- var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
33780
-
33781
- // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
33782
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
33783
-
33784
- // Actual matching.
33785
- // Parentheses and commas are optional, but not required.
33786
- // Whitespace can take the place of commas or opening paren
33787
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
33788
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
33789
- return {
33790
- CSS_UNIT: new RegExp(CSS_UNIT),
33791
- rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
33792
- rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
33793
- hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
33794
- hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
33795
- hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
33796
- hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
33797
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
33798
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
33799
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
33800
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
33801
- };
33802
- }();
33803
-
33804
- // `isValidCSSUnit`
33805
- // Take in a single string / number and check to see if it looks like a CSS unit
33806
- // (see `matchers` above for definition).
33807
- function isValidCSSUnit(color) {
33808
- return !!matchers.CSS_UNIT.exec(color);
33809
- }
33810
-
33811
- // `stringInputToObject`
33812
- // Permissive string parsing. Take in a number of formats, and output an object
33813
- // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
33814
- function stringInputToObject(color) {
33815
- color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase();
33816
- var named = false;
33817
- if (names[color]) {
33818
- color = names[color];
33819
- named = true;
33820
- } else if (color == "transparent") {
33821
- return {
33822
- r: 0,
33823
- g: 0,
33824
- b: 0,
33825
- a: 0,
33826
- format: "name"
33827
- };
33828
- }
33829
-
33830
- // Try to match string input using regular expressions.
33831
- // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
33832
- // Just return an object and let the conversion functions handle that.
33833
- // This way the result will be the same whether the tinycolor is initialized with string or object.
33834
- var match;
33835
- if (match = matchers.rgb.exec(color)) {
33836
- return {
33837
- r: match[1],
33838
- g: match[2],
33839
- b: match[3]
33840
- };
33841
- }
33842
- if (match = matchers.rgba.exec(color)) {
33843
- return {
33844
- r: match[1],
33845
- g: match[2],
33846
- b: match[3],
33847
- a: match[4]
33848
- };
33849
- }
33850
- if (match = matchers.hsl.exec(color)) {
33851
- return {
33852
- h: match[1],
33853
- s: match[2],
33854
- l: match[3]
33855
- };
33856
- }
33857
- if (match = matchers.hsla.exec(color)) {
33858
- return {
33859
- h: match[1],
33860
- s: match[2],
33861
- l: match[3],
33862
- a: match[4]
33863
- };
33864
- }
33865
- if (match = matchers.hsv.exec(color)) {
33866
- return {
33867
- h: match[1],
33868
- s: match[2],
33869
- v: match[3]
33870
- };
33871
- }
33872
- if (match = matchers.hsva.exec(color)) {
33873
- return {
33874
- h: match[1],
33875
- s: match[2],
33876
- v: match[3],
33877
- a: match[4]
33878
- };
33879
- }
33880
- if (match = matchers.hex8.exec(color)) {
33881
- return {
33882
- r: parseIntFromHex(match[1]),
33883
- g: parseIntFromHex(match[2]),
33884
- b: parseIntFromHex(match[3]),
33885
- a: convertHexToDecimal(match[4]),
33886
- format: named ? "name" : "hex8"
33887
- };
33888
- }
33889
- if (match = matchers.hex6.exec(color)) {
33890
- return {
33891
- r: parseIntFromHex(match[1]),
33892
- g: parseIntFromHex(match[2]),
33893
- b: parseIntFromHex(match[3]),
33894
- format: named ? "name" : "hex"
33895
- };
33896
- }
33897
- if (match = matchers.hex4.exec(color)) {
33898
- return {
33899
- r: parseIntFromHex(match[1] + "" + match[1]),
33900
- g: parseIntFromHex(match[2] + "" + match[2]),
33901
- b: parseIntFromHex(match[3] + "" + match[3]),
33902
- a: convertHexToDecimal(match[4] + "" + match[4]),
33903
- format: named ? "name" : "hex8"
33904
- };
33905
- }
33906
- if (match = matchers.hex3.exec(color)) {
33907
- return {
33908
- r: parseIntFromHex(match[1] + "" + match[1]),
33909
- g: parseIntFromHex(match[2] + "" + match[2]),
33910
- b: parseIntFromHex(match[3] + "" + match[3]),
33911
- format: named ? "name" : "hex"
33912
- };
33913
- }
33914
- return false;
33915
- }
33916
- function validateWCAG2Parms(parms) {
33917
- // return valid WCAG2 parms for isReadable.
33918
- // If input parms are invalid, return {"level":"AA", "size":"small"}
33919
- var level, size;
33920
- parms = parms || {
33921
- level: "AA",
33922
- size: "small"
33923
- };
33924
- level = (parms.level || "AA").toUpperCase();
33925
- size = (parms.size || "small").toLowerCase();
33926
- if (level !== "AA" && level !== "AAA") {
33927
- level = "AA";
33928
- }
33929
- if (size !== "small" && size !== "large") {
33930
- size = "small";
33931
- }
33932
- return {
33933
- level: level,
33934
- size: size
33935
- };
33936
- }
33937
-
33938
- return tinycolor;
33939
-
33940
- }));
33941
-
33942
-
33943
- AmdLoader.instance.setup("tinycolor2/tinycolor");
33944
-
33945
- System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/StringHelper", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "tinycolor2/tinycolor", "@web-atoms/core/dist/core/AtomDisposableList"], function (_export, _context) {
33946
- "use strict";
33947
-
33948
- var __decorate, __metadata, Bind, BindableProperty, StringHelper, XNode, styled, AtomControl, descendentElementIterator, tc1, AtomDisposableList, ColorEditor, tc;
33949
- _export("default", void 0);
33950
- return {
33951
- setters: [function (_tslib) {
33952
- __decorate = _tslib.__decorate;
33953
- __metadata = _tslib.__metadata;
33954
- }, function (_webAtomsCoreDistCoreBind) {
33955
- Bind = _webAtomsCoreDistCoreBind.default;
33956
- }, function (_webAtomsCoreDistCoreBindableProperty) {
33957
- BindableProperty = _webAtomsCoreDistCoreBindableProperty.BindableProperty;
33958
- }, function (_webAtomsCoreDistCoreStringHelper) {
33959
- StringHelper = _webAtomsCoreDistCoreStringHelper.StringHelper;
33960
- }, function (_webAtomsCoreDistCoreXNode) {
33961
- XNode = _webAtomsCoreDistCoreXNode.default;
33962
- }, function (_webAtomsCoreDistStyleStyled) {
33963
- styled = _webAtomsCoreDistStyleStyled.default;
33964
- }, function (_webAtomsCoreDistWebControlsAtomControl) {
33965
- AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
33966
- }, function (_webAtomsCoreDistWebCoreAtomUI) {
33967
- descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
33968
- }, function (_tinycolor2Tinycolor) {
33969
- tc1 = _tinycolor2Tinycolor;
33970
- }, function (_webAtomsCoreDistCoreAtomDisposableList) {
33971
- AtomDisposableList = _webAtomsCoreDistCoreAtomDisposableList.AtomDisposableList;
33972
- }],
33973
- execute: function () {
33974
- tc = tc1;
33975
- styled.css`
33976
-
33977
- display: grid;
33978
- grid-template-rows: auto auto auto auto auto auto;
33979
- grid-template-columns: 1fr 30px;
33980
- gap: 5px;
33981
- position: relative;
33982
-
33983
- & > * {
33984
- grid-column: 1 / span 2;
33985
- }
33986
-
33987
- &:not([data-show-editor=true]) > :not([data-color-element]) {
33988
- display: none;
33989
- }
33990
-
33991
- & > input[type=range] {
33992
- height: 10px;
33993
- border: 0;
33994
- margin-top: 5px;
33995
- margin-bottom: 5px;
33996
- border-radius: 5px;
33997
- -webkit-appearance: none;
33998
- appearance: none;
33999
- &:focus {
34000
- outline: none;
34001
- }
34002
- &::-moz-range-thumb{
34003
- outline: none !important;
34004
- background-color: var(--current-color) !important;
34005
- -webkit-appearance: none !important;
34006
- color: var(--current-color) !important;
34007
- height: 20px !important;
34008
- width: 20px !important;
34009
- cursor: pointer !important;
34010
- border-radius: 20px !important;
34011
- appearance: none !important;
34012
- }
34013
- &::-ms-thumb {
34014
- outline: none !important;
34015
- background-color: var(--current-color) !important;
34016
- -webkit-appearance: none !important;
34017
- color: var(--current-color) !important;
34018
- height: 20px !important;
34019
- width: 20px !important;
34020
- cursor: pointer !important;
34021
- border-radius: 20px !important;
34022
- appearance: none !important;
34023
- }
34024
- &::-webkit-slider-thumb {
34025
- outline: none !important;
34026
- background-color: var(--current-color) !important;
34027
- -webkit-appearance: none !important;
34028
- color: var(--current-color) !important;
34029
- height: 20px !important;
34030
- width: 20px !important;
34031
- cursor: pointer !important;
34032
- border-radius: 20px !important;
34033
- appearance: none !important;
34034
- }
34035
- }
34036
-
34037
- & > [data-element=color-input] {
34038
- grid-row: 1;
34039
- grid-column: 1;
34040
- }
34041
- & > [data-element=picker] {
34042
- grid-row: 1;
34043
- grid-column: 2;
34044
- }
34045
-
34046
- & > [data-element=color-area] {
34047
- grid-row: 2;
34048
- width: 100%;
34049
- min-width: 200px;
34050
- height: 100px;
34051
- background-image: linear-gradient(rgba(0,0,0,0),#000),linear-gradient(90deg,#fff, var(--current-color, currentColor) );
34052
- }
34053
- & > [data-element=color-marker] {
34054
- grid-row: 2;
34055
- border-radius: 5px;
34056
- position: absolute;
34057
- height: 10px;
34058
- width: 10px;
34059
- transform: translate3d(-5px, -5px,0);
34060
- box-shadow: 0 0 1px 2px white;
34061
- border: solid 2px gray;
34062
- pointer-events: none;
34063
- }
34064
- & > [data-element=hue-slider] {
34065
- grid-row: 3;
34066
- color: var(--current-color);
34067
- background-image: linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
34068
- }
34069
- & > [data-element=alpha-slider-bg] {
34070
- grid-row: 4;
34071
- appearance: none;
34072
- border-radius: 5px;
34073
- margin: 5px;
34074
- height: 10px;
34075
- background-position: 0 0, 4px 4px;
34076
- background-size: 8px 8px;
34077
- background-image: repeating-linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%,#aaa),repeating-linear-gradient(45deg,#aaa 25%,#fff 25%,#fff 75%,#aaa 75%,#aaa);
34078
- }
34079
- & > [data-element=alpha-slider-span] {
34080
- grid-row: 4;
34081
- border-radius: 5px;
34082
- margin: 5px;
34083
- height: 10px;
34084
- background-image: linear-gradient(to right, var(--alpha-color), var(--current-color, currentColor) );
34085
- }
34086
- & > [data-element=alpha-slider] {
34087
- grid-row: 4;
34088
- color: var(--current-color);
34089
- background-color: transparent;
34090
- z-index: 4;
34091
-
34092
- }
34093
- & > [data-element=picker] {
34094
- grid-row: 1;
34095
- grid-column: 2;
34096
- width: 20px;
34097
- height: 20px;
34098
- border-radius: 20px;
34099
- align-self: center;
34100
- justify-self: center;
34101
- }
34102
- `.installGlobal("[data-color-editor=color-editor]");
34103
- _export("default", ColorEditor = class ColorEditor extends AtomControl {
34104
- constructor() {
34105
- super(...arguments);
34106
- this.alpha = 100;
34107
- this.isOpen = false;
34108
- this.lastX = 0;
34109
- this.lastY = 0;
34110
- this.hue = 360;
34111
- }
34112
- onPropertyChanged(name) {
34113
- if (name === "color") {
34114
- this.parseColor();
34115
- }
34116
- }
34117
- preCreate() {
34118
- this.color = "";
34119
- this.isColorChanging = false;
34120
- this.element.setAttribute("data-color-editor", "color-editor");
34121
- this.render(XNode.create("div", {
34122
- "data-show-editor": Bind.oneWay(() => this.isOpen)
34123
- }, XNode.create("input", {
34124
- "data-color-element": "true",
34125
- "event-click": () => this.isOpen = !this.isOpen,
34126
- "data-element": "color-input",
34127
- type: "text",
34128
- value: Bind.twoWaysImmediate(() => this.color)
34129
- }), XNode.create("div", {
34130
- "data-element": "picker",
34131
- "event-click": () => this.isOpen = !this.isOpen
34132
- }), XNode.create("div", {
34133
- "data-element": "color-area",
34134
- "event-pointerdown": e => this.colorAreaPointerDown(e),
34135
- "event-click": e => this.updateColorPosition(e)
34136
- }), XNode.create("div", {
34137
- "data-element": "color-marker"
34138
- }), XNode.create("input", {
34139
- "data-element": "hue-slider",
34140
- class: "color-slider-range",
34141
- min: "0",
34142
- max: "360",
34143
- step: "1",
34144
- "event-input": () => this.updateHue(),
34145
- type: "range",
34146
- value: Bind.oneWay(() => this.hue)
34147
- }), XNode.create("div", {
34148
- "data-element": "alpha-slider-bg"
34149
- }), XNode.create("div", {
34150
- "data-element": "alpha-slider-span"
34151
- }), XNode.create("input", {
34152
- "data-element": "alpha-slider",
34153
- class: "color-slider-range",
34154
- min: "0",
34155
- max: "100",
34156
- step: "1",
34157
- "event-input": () => this.updateAlpha(),
34158
- type: "range",
34159
- value: Bind.oneWay(() => this.alpha)
34160
- })));
34161
- for (const e of descendentElementIterator(this.element)) {
34162
- const type = e.getAttribute("data-element");
34163
- if (type) {
34164
- this[StringHelper.fromHyphenToCamel(type)] = e;
34165
- }
34166
- }
34167
- }
34168
- colorAreaPointerDown(e) {
34169
- const list = new AtomDisposableList();
34170
- const target = e.currentTarget;
34171
- target.setPointerCapture(e.pointerId);
34172
- list.add(() => target.releasePointerCapture(e.pointerId));
34173
- list.add(this.bindEvent(target, "pointermove", ce => {
34174
- this.updateColorPosition(ce);
34175
- }));
34176
- list.add(this.bindEvent(target, "pointerup", ce => {
34177
- this.updateColorPosition(ce);
34178
- list.dispose();
34179
- }));
34180
- }
34181
- updateColorPosition(e) {
34182
- let x = e.offsetX;
34183
- let y = e.offsetY;
34184
- const {
34185
- colorArea,
34186
- colorMarker
34187
- } = this;
34188
- x = x < 0 ? 0 : x > colorArea.offsetWidth ? colorArea.offsetWidth : x;
34189
- y = y < 0 ? 0 : y > colorArea.offsetHeight ? colorArea.offsetHeight : y;
34190
- colorMarker.style.left = `${x}px`;
34191
- colorMarker.style.top = `${y}px`;
34192
- this.lastX = x;
34193
- this.lastY = y;
34194
- this.updateColor();
34195
- }
34196
- updateColor() {
34197
- const {
34198
- hueSlider,
34199
- colorArea,
34200
- alphaSlider,
34201
- lastX: x,
34202
- lastY: y
34203
- } = this;
34204
- const hsva = {
34205
- h: hueSlider.value * 1,
34206
- s: x / colorArea.offsetWidth * 100,
34207
- v: 100 - y / colorArea.offsetHeight * 100,
34208
- a: alphaSlider.value / 100
34209
- };
34210
- const rgba = tc(hsva).toHex8String();
34211
- this.isColorChanging = true;
34212
- this.color = rgba;
34213
- this.isColorChanging = false;
34214
- this.picker.style.backgroundColor = rgba;
34215
- }
34216
- updateHue() {
34217
- const hue = this.hueSlider.value * 1;
34218
- this.hue = hue;
34219
- this.element.style.setProperty("--current-color", `hsla(${hue}, 100%, 50%, 100%)`);
34220
- this.updateColor();
34221
- this.updateAlpha();
34222
- }
34223
- updateAlpha() {
34224
- const alpha = this.alphaSlider.value * 1;
34225
- this.alpha = alpha;
34226
- const hue = this.hue;
34227
- this.element.style.setProperty("--alpha-color", `hsla(${hue}, 100%, 50%, 0)`);
34228
- this.updateColor();
34229
- }
34230
- parseColor() {
34231
- if (this.isColorChanging) {
34232
- return;
34233
- }
34234
- const color = tc(this.color);
34235
- const a = color.getAlpha();
34236
- this.alpha = a * 100;
34237
- color.setAlpha(0);
34238
- const hsl = color.toHsl();
34239
- this.hue = hsl.h;
34240
- if (this.hueSlider) {
34241
- this.hueSlider.value = this.hue + "";
34242
- this.alphaSlider.value = this.alpha + "";
34243
- this.updateColor();
34244
- }
34245
- this.element.style.setProperty("--current-color", `hsla(${hsl.h}, 100%, 50%, 100%)`);
34246
- this.element.style.setProperty("--alpha-color", `hsla(${hsl.h}, 100%, 50%, 0)`);
34247
- this.isColorChanging = true;
34248
- this.color = color.toHex8String();
34249
- this.isColorChanging = false;
34250
- }
34251
- });
34252
- __decorate([BindableProperty, __metadata("design:type", String)], ColorEditor.prototype, "color", void 0);
34253
- __decorate([BindableProperty, __metadata("design:type", Number)], ColorEditor.prototype, "alpha", void 0);
34254
- __decorate([BindableProperty, __metadata("design:type", Boolean)], ColorEditor.prototype, "isOpen", void 0);
34255
- }
34256
- };
34257
- });
34258
- //# sourceMappingURL=ColorEditor.js.map
34259
-
34260
- AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/controls/ColorEditor");
34261
-
34262
- System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../controls/ColorEditor"], function (_export, _context) {
32909
+ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../../styler/StylerSet"], function (_export, _context) {
34263
32910
  "use strict";
34264
32911
 
34265
- var XNode, ExpanderPropertyEditor, ColorEditor;
34266
- function ColorGroupEditor() {
32912
+ var XNode, DropDownProperty, ExpanderPropertyEditor, StylerSet, properties;
32913
+ function SizeGroupEditor() {
34267
32914
  return XNode.create(ExpanderPropertyEditor, {
34268
- label: "Colors"
34269
- }, XNode.create(ColorEditor, null));
32915
+ label: "Sizes"
32916
+ }, XNode.create(DropDownProperty, {
32917
+ label: "Width",
32918
+ property: properties.stylerWidth
32919
+ }), XNode.create(DropDownProperty, {
32920
+ label: "Height",
32921
+ property: properties.stylerHeight
32922
+ }), XNode.create(DropDownProperty, {
32923
+ label: "Min Width",
32924
+ property: properties.stylerMinWidth
32925
+ }), XNode.create(DropDownProperty, {
32926
+ label: "Min Height",
32927
+ property: properties.stylerMinHeight
32928
+ }), XNode.create(DropDownProperty, {
32929
+ label: "Max Width",
32930
+ property: properties.stylerMaxWidth
32931
+ }), XNode.create(DropDownProperty, {
32932
+ label: "Max Height",
32933
+ property: properties.stylerMaxHeight
32934
+ }));
34270
32935
  }
34271
- _export("default", ColorGroupEditor);
32936
+ _export("default", SizeGroupEditor);
34272
32937
  return {
34273
32938
  setters: [function (_webAtomsCoreDistCoreXNode) {
34274
32939
  XNode = _webAtomsCoreDistCoreXNode.default;
34275
32940
  }, function (_controlsPropertyEditor) {
32941
+ DropDownProperty = _controlsPropertyEditor.DropDownProperty;
34276
32942
  ExpanderPropertyEditor = _controlsPropertyEditor.ExpanderPropertyEditor;
34277
- }, function (_controlsColorEditor) {
34278
- ColorEditor = _controlsColorEditor.default;
32943
+ }, function (_stylerStylerSet) {
32944
+ StylerSet = _stylerStylerSet.StylerSet;
34279
32945
  }],
34280
- execute: function () {}
32946
+ execute: function () {
32947
+ ({
32948
+ properties
32949
+ } = StylerSet.instance);
32950
+ }
34281
32951
  };
34282
32952
  });
34283
- //# sourceMappingURL=ColorGroupEditor.js.map
32953
+ //# sourceMappingURL=SizeGroupEditor.js.map
34284
32954
 
34285
- AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/ColorGroupEditor");
32955
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor");
34286
32956
 
34287
- System.register(["@web-atoms/core/dist/core/XNode", "./groups/LayoutEditor", "./groups/TextPropertyEditor", "./groups/ColorGroupEditor"], function (_export, _context) {
32957
+ System.register(["@web-atoms/core/dist/core/XNode", "./groups/LayoutEditor", "./groups/TextPropertyEditor", "./groups/BorderGroupEditor", "./groups/SizeGroupEditor"], function (_export, _context) {
34288
32958
  "use strict";
34289
32959
 
34290
- var XNode, LayoutEditor, TextPropertyEditor, ColorGroupEditor;
32960
+ var XNode, LayoutEditor, TextPropertyEditor, BorderGroupEditor, SizeGroupEditor;
34291
32961
  function Properties() {
34292
32962
  return XNode.create("div", {
34293
32963
  "data-layout": "vertical-flex-stretch-items"
34294
- }, XNode.create(LayoutEditor, null), XNode.create(ColorGroupEditor, null), XNode.create(TextPropertyEditor, null));
32964
+ }, XNode.create(LayoutEditor, null), XNode.create(SizeGroupEditor, null), XNode.create(BorderGroupEditor, null), XNode.create(TextPropertyEditor, null));
34295
32965
  }
34296
32966
  _export("default", Properties);
34297
32967
  return {
@@ -34301,8 +32971,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "./groups/LayoutEditor", "./
34301
32971
  LayoutEditor = _groupsLayoutEditor.default;
34302
32972
  }, function (_groupsTextPropertyEditor) {
34303
32973
  TextPropertyEditor = _groupsTextPropertyEditor.default;
34304
- }, function (_groupsColorGroupEditor) {
34305
- ColorGroupEditor = _groupsColorGroupEditor.default;
32974
+ }, function (_groupsBorderGroupEditor) {
32975
+ BorderGroupEditor = _groupsBorderGroupEditor.default;
32976
+ }, function (_groupsSizeGroupEditor) {
32977
+ SizeGroupEditor = _groupsSizeGroupEditor.default;
34306
32978
  }],
34307
32979
  execute: function () {}
34308
32980
  };
@@ -34325,6 +32997,11 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
34325
32997
  get element() {
34326
32998
  return this.e;
34327
32999
  }
33000
+ get parentStyle() {
33001
+ var _a, _b, _c, _d;
33002
+ const pe = (_a = this.e) === null || _a === void 0 ? void 0 : _a.parentElement;
33003
+ return (_b = this.cachedParentStyle) !== null && _b !== void 0 ? _b : this.cachedParentStyle = pe && this.editor.htmlDocument ? (_d = (_c = this.editor.htmlDocument) === null || _c === void 0 ? void 0 : _c.defaultView) === null || _d === void 0 ? void 0 : _d.getComputedStyle(pe) : {};
33004
+ }
34328
33005
  get currentStyle() {
34329
33006
  var _a, _b, _c;
34330
33007
  return (_a = this.cachedStyle) !== null && _a !== void 0 ? _a : this.cachedStyle = this.e && this.editor.htmlDocument ? (_c = (_b = this.editor.htmlDocument) === null || _b === void 0 ? void 0 : _b.defaultView) === null || _c === void 0 ? void 0 : _c.getComputedStyle(this.e) : {};
@@ -34337,7 +33014,9 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
34337
33014
  this.mo = new MutationObserver(() => {
34338
33015
  AtomBinder.refreshValue(this, "element");
34339
33016
  this.cachedStyle = null;
33017
+ this.cachedParentStyle = null;
34340
33018
  AtomBinder.refreshValue(this, "currentStyle");
33019
+ AtomBinder.refreshValue(this, "parentStyle");
34341
33020
  for (const iterator of this.styles.values()) {
34342
33021
  AtomBinder.refreshValue(iterator, "value");
34343
33022
  AtomBinder.refreshValue(iterator, "custom");
@@ -34366,6 +33045,11 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
34366
33045
  }
34367
33046
  owner.editor.commit();
34368
33047
  AtomBinder.refreshValue(this, "value");
33048
+ setTimeout(() => {
33049
+ AtomBinder.refreshValue(this, "custom");
33050
+ AtomBinder.refreshValue(owner, "currentStyle");
33051
+ AtomBinder.refreshValue(owner, "parentStyle");
33052
+ }, 1);
34369
33053
  },
34370
33054
  get custom() {
34371
33055
  var _a, _b, _c;
@@ -34395,7 +33079,9 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
34395
33079
  this.e = e;
34396
33080
  AtomBinder.refreshValue(this, "element");
34397
33081
  this.cachedStyle = null;
33082
+ this.cachedParentStyle = null;
34398
33083
  AtomBinder.refreshValue(this, "currentStyle");
33084
+ AtomBinder.refreshValue(this, "parentStyle");
34399
33085
  this.mo.observe(e, {
34400
33086
  attributes: true
34401
33087
  });
@@ -35594,9 +34280,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
35594
34280
  _export("default", WebSiteFolderEditor = class WebSiteFolderEditor extends PopupWindowPage {
35595
34281
  init() {
35596
34282
  return __awaiter(this, void 0, void 0, function* () {
34283
+ this.title = "Create Website Folder";
35597
34284
  this.model = WebSiteFolder.create({
35598
34285
  folder: AppFile.create({
35599
- name: "Web Site",
34286
+ name: "",
35600
34287
  isFolder: true,
35601
34288
  contentType: "application/site"
35602
34289
  }),
@@ -35605,8 +34292,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
35605
34292
  this.renderer = XNode.create("div", null, XNode.create(Form, null, XNode.create(FormField, {
35606
34293
  label: "Name"
35607
34294
  }, XNode.create("input", {
34295
+ autofocus: true,
35608
34296
  value: Bind.twoWaysImmediate(() => this.model.folder.name)
35609
- })), XNode.create("div", {
34297
+ })), XNode.create("div", null, "We recommend using the host name as folder name, e.g. akashkava.com"), XNode.create("div", {
35610
34298
  "data-layout": "command-row"
35611
34299
  }, XNode.create("button", {
35612
34300
  "data-submit-event": "save-web-site"