@social-mail/social-mail-client 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js +25 -4
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +220 -239
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +4 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/controls/html/InlineHtmlEditorWithToolbar.tsx +33 -2
|
@@ -1864,7 +1864,7 @@ const UMD = new UMDClass();
|
|
|
1864
1864
|
|
|
1865
1865
|
AmdLoader.instance.register(
|
|
1866
1866
|
["@social-mail/social-mail-client","@web-atoms/core","reflect-metadata","@web-atoms/web-controls","@web-atoms/date-time","@web-atoms/entity","@web-atoms/data-styles"],
|
|
1867
|
-
["@social-mail/social-mail-client/dist/web/AppIndex","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/Pack","@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp","@web-atoms/web-controls/dist/mobile-app/MobileApp","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/di/DISingleton","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/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/web/commands/AppCommands","@social-mail/social-mail-client/dist/web/page/home/HomePage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@web-atoms/core/dist/di/DITransient","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@web-atoms/web-controls/dist/basic/Form","@social-mail/social-mail-client/dist/common/controls/form/RequiredFormField","@web-atoms/web-controls/dist/basic/FormField","@web-atoms/web-controls/dist/basic/styles/form-field-style","@web-atoms/web-controls/dist/basic/PasswordBox","@web-atoms/web-controls/dist/basic/styles/password-box-style","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/common/SocialMailApp","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/web/page/mails/MailsPage","@web-atoms/web-controls/dist/basic/DropDown","@web-atoms/web-controls/dist/basic/styles/drop-down-style","@social-mail/social-mail-client/dist/web/page/mails/service/MailService","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/web/page/mails/ConversationPage","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@social-mail/social-mail-client/dist/web/page/mails/ComposeMailPage","@social-mail/social-mail-client/dist/common/controls/html/InlineHtmlEditorWithToolbar","@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor","@web-atoms/data-styles/data-styles","@web-atoms/web-controls/dist/html-editor/commands/AddImage","@web-atoms/web-controls/dist/html-editor/commands/CommandButton","@web-atoms/web-controls/dist/html-editor/commands/HtmlCommands","@web-atoms/web-controls/dist/html-editor/commands/Toolbar","@web-atoms/web-controls/dist/html-editor/commands/Bold","@web-atoms/web-controls/dist/html-editor/commands/Command","@web-atoms/web-controls/dist/html-editor/commands/Italic","@web-atoms/web-controls/dist/html-editor/commands/Underline","@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough","@web-atoms/web-controls/dist/html-editor/commands/Align","@web-atoms/web-controls/dist/basic/PopupButton","@web-atoms/web-controls/dist/basic/styles/popup-button-style","@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule","@web-atoms/web-controls/dist/html-editor/commands/Separator","@web-atoms/web-controls/dist/html-editor/commands/Headings","@web-atoms/web-controls/dist/html-editor/commands/ChangeColor","@web-atoms/web-controls/dist/html-editor/commands/ChangeFont","@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize","@web-atoms/web-controls/dist/html-editor/commands/NumberedList","@web-atoms/web-controls/dist/html-editor/commands/UnorderedList","@web-atoms/web-controls/dist/html-editor/commands/IndentLess","@web-atoms/web-controls/dist/html-editor/commands/IndentMore","@web-atoms/web-controls/dist/html-editor/commands/
|
|
1867
|
+
["@social-mail/social-mail-client/dist/web/AppIndex","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/Pack","@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp","@web-atoms/web-controls/dist/mobile-app/MobileApp","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/di/DISingleton","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/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/web/commands/AppCommands","@social-mail/social-mail-client/dist/web/page/home/HomePage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@web-atoms/core/dist/di/DITransient","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@web-atoms/web-controls/dist/basic/Form","@social-mail/social-mail-client/dist/common/controls/form/RequiredFormField","@web-atoms/web-controls/dist/basic/FormField","@web-atoms/web-controls/dist/basic/styles/form-field-style","@web-atoms/web-controls/dist/basic/PasswordBox","@web-atoms/web-controls/dist/basic/styles/password-box-style","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/common/SocialMailApp","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/web/page/mails/MailsPage","@web-atoms/web-controls/dist/basic/DropDown","@web-atoms/web-controls/dist/basic/styles/drop-down-style","@social-mail/social-mail-client/dist/web/page/mails/service/MailService","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/web/page/mails/ConversationPage","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@social-mail/social-mail-client/dist/web/page/mails/ComposeMailPage","@social-mail/social-mail-client/dist/common/controls/html/InlineHtmlEditorWithToolbar","@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor","@web-atoms/data-styles/data-styles","@web-atoms/web-controls/dist/html-editor/commands/AddImage","@web-atoms/web-controls/dist/html-editor/commands/CommandButton","@web-atoms/web-controls/dist/html-editor/commands/HtmlCommands","@web-atoms/web-controls/dist/html-editor/commands/Toolbar","@web-atoms/web-controls/dist/html-editor/commands/Bold","@web-atoms/web-controls/dist/html-editor/commands/Command","@web-atoms/web-controls/dist/html-editor/commands/Italic","@web-atoms/web-controls/dist/html-editor/commands/Underline","@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough","@web-atoms/web-controls/dist/html-editor/commands/Align","@web-atoms/web-controls/dist/basic/PopupButton","@web-atoms/web-controls/dist/basic/styles/popup-button-style","@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule","@web-atoms/web-controls/dist/html-editor/commands/Separator","@web-atoms/web-controls/dist/html-editor/commands/Headings","@web-atoms/web-controls/dist/html-editor/commands/ChangeColor","@web-atoms/web-controls/dist/html-editor/commands/ChangeFont","@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize","@web-atoms/web-controls/dist/html-editor/commands/NumberedList","@web-atoms/web-controls/dist/html-editor/commands/UnorderedList","@web-atoms/web-controls/dist/html-editor/commands/IndentLess","@web-atoms/web-controls/dist/html-editor/commands/IndentMore","@web-atoms/web-controls/dist/html-editor/commands/AddLink","@web-atoms/core/dist/web/controls/AtomToggleButtonBar","@web-atoms/core/dist/web/styles/AtomToggleButtonBarStyle","@web-atoms/core/dist/web/styles/AtomListBoxStyle","@web-atoms/core/dist/web/controls/AtomListBox","@web-atoms/core/dist/web/controls/AtomItemsControl","@web-atoms/core/dist/core/AtomEnumerator","@web-atoms/core/dist/core/AtomList","@web-atoms/web-controls/dist/html-editor/commands/Unlink","@web-atoms/web-controls/dist/html-editor/commands/RemoveFormat","@web-atoms/web-controls/dist/html-editor/commands/Source","@web-atoms/web-controls/dist/basic/UploadEvent","@social-mail/social-mail-client/dist/services/files/LocalFileService","@web-atoms/web-controls/dist/basic/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/style/GlobalStyle","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@social-mail/social-mail-client/dist/services/UserService","@social-mail/social-mail-client/dist/common/pages/user/LoginPage","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/web/drawer/AppDrawer","@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"]);
|
|
1868
1868
|
|
|
1869
1869
|
System.register([], function (_export, _context) {
|
|
1870
1870
|
"use strict";
|
|
@@ -18667,240 +18667,6 @@ System.register(["./Command"], function (_export, _context) {
|
|
|
18667
18667
|
|
|
18668
18668
|
AmdLoader.instance.setup("@web-atoms/web-controls/dist/html-editor/commands/IndentMore");
|
|
18669
18669
|
|
|
18670
|
-
System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core/Command", "@web-atoms/core/dist/core/StringHelper", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/services/PopupService"], function (_export, _context) {
|
|
18671
|
-
"use strict";
|
|
18672
|
-
|
|
18673
|
-
var __rest, App, Command, StringHelper, AtomControl, PopupService, UploadEvent, acceptCache, isFileType, previousFile, uploadCommand, id;
|
|
18674
|
-
_export("default", void 0);
|
|
18675
|
-
return {
|
|
18676
|
-
setters: [function (_tslib) {
|
|
18677
|
-
__rest = _tslib.__rest;
|
|
18678
|
-
}, function (_webAtomsCoreDistApp) {
|
|
18679
|
-
App = _webAtomsCoreDistApp.App;
|
|
18680
|
-
}, function (_webAtomsCoreDistCoreCommand) {
|
|
18681
|
-
Command = _webAtomsCoreDistCoreCommand.default;
|
|
18682
|
-
}, function (_webAtomsCoreDistCoreStringHelper) {
|
|
18683
|
-
StringHelper = _webAtomsCoreDistCoreStringHelper.StringHelper;
|
|
18684
|
-
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
18685
|
-
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
18686
|
-
}, function (_webAtomsCoreDistWebServicesPopupService) {
|
|
18687
|
-
PopupService = _webAtomsCoreDistWebServicesPopupService.default;
|
|
18688
|
-
}],
|
|
18689
|
-
execute: function () {
|
|
18690
|
-
acceptCache = {};
|
|
18691
|
-
_export("isFileType", isFileType = acceptType => {
|
|
18692
|
-
var _a;
|
|
18693
|
-
function isFileTypeFactory(accept) {
|
|
18694
|
-
if (!accept || accept === "*/*") {
|
|
18695
|
-
return () => true;
|
|
18696
|
-
}
|
|
18697
|
-
const types = accept.split(/\,/g).map(x => {
|
|
18698
|
-
x = x.trim();
|
|
18699
|
-
if (x.startsWith(".")) {
|
|
18700
|
-
return file => file.name.endsWith(x);
|
|
18701
|
-
}
|
|
18702
|
-
if (x.endsWith("/*")) {
|
|
18703
|
-
const prefix = x.substring(0, x.length - 1);
|
|
18704
|
-
return file => file.type.startsWith(prefix);
|
|
18705
|
-
}
|
|
18706
|
-
return file => file.type === x;
|
|
18707
|
-
});
|
|
18708
|
-
return file => {
|
|
18709
|
-
for (const iterator of types) {
|
|
18710
|
-
if (iterator(file)) {
|
|
18711
|
-
return true;
|
|
18712
|
-
}
|
|
18713
|
-
}
|
|
18714
|
-
return false;
|
|
18715
|
-
};
|
|
18716
|
-
}
|
|
18717
|
-
return (_a = acceptCache[acceptType]) !== null && _a !== void 0 ? _a : acceptCache[acceptType] = isFileTypeFactory(acceptType);
|
|
18718
|
-
});
|
|
18719
|
-
uploadCommand = Command.create({
|
|
18720
|
-
name: "upload-command"
|
|
18721
|
-
});
|
|
18722
|
-
window.addEventListener(uploadCommand.eventName, ce => {
|
|
18723
|
-
if (ce.defaultPrevented) {
|
|
18724
|
-
return;
|
|
18725
|
-
}
|
|
18726
|
-
const element = ce.target;
|
|
18727
|
-
const authorize = element.getAttribute("data-authorize");
|
|
18728
|
-
if (authorize === "true") {
|
|
18729
|
-
if (!App.authorize()) {
|
|
18730
|
-
return;
|
|
18731
|
-
}
|
|
18732
|
-
}
|
|
18733
|
-
const multiple = element.getAttribute("data-multiple") === "true";
|
|
18734
|
-
const extra = element.extra;
|
|
18735
|
-
const upload = element.getAttribute("data-upload") === "true";
|
|
18736
|
-
const uploadEvent = StringHelper.fromHyphenToCamel(element.getAttribute("data-upload-event"));
|
|
18737
|
-
const chain = [];
|
|
18738
|
-
let start = element;
|
|
18739
|
-
while (start) {
|
|
18740
|
-
chain.push(start);
|
|
18741
|
-
start = start.parentElement;
|
|
18742
|
-
}
|
|
18743
|
-
previousFile === null || previousFile === void 0 ? void 0 : previousFile.remove();
|
|
18744
|
-
const file = document.createElement("input");
|
|
18745
|
-
file.type = "file";
|
|
18746
|
-
file.multiple = multiple;
|
|
18747
|
-
const accept = element.getAttribute("data-accept") || "*/*";
|
|
18748
|
-
file.accept = accept;
|
|
18749
|
-
const capture = element.getAttribute("data-capture");
|
|
18750
|
-
if (capture) {
|
|
18751
|
-
file.capture = capture;
|
|
18752
|
-
}
|
|
18753
|
-
file.style.position = "absolute";
|
|
18754
|
-
file.style.left = "-1000px";
|
|
18755
|
-
file.style.top = "-1000px";
|
|
18756
|
-
document.body.append(file);
|
|
18757
|
-
previousFile = file;
|
|
18758
|
-
const maxSize = parseInt(element.getAttribute("data-max-size") || "0", 10);
|
|
18759
|
-
const forceType = element.getAttribute("data-force-type") === "true";
|
|
18760
|
-
file.addEventListener("change", () => {
|
|
18761
|
-
let files = Array.from(file.files);
|
|
18762
|
-
let msg = "";
|
|
18763
|
-
if (forceType || maxSize) {
|
|
18764
|
-
const validated = [];
|
|
18765
|
-
const checkFileType = isFileType(accept);
|
|
18766
|
-
for (const iterator of files) {
|
|
18767
|
-
if (maxSize && iterator.size > maxSize) {
|
|
18768
|
-
msg += `Size of ${iterator.name} is more than ${maxSize}`;
|
|
18769
|
-
continue;
|
|
18770
|
-
}
|
|
18771
|
-
if (forceType) {
|
|
18772
|
-
if (!checkFileType(iterator)) {
|
|
18773
|
-
msg += `${iterator.name} is invalid file.`;
|
|
18774
|
-
continue;
|
|
18775
|
-
}
|
|
18776
|
-
}
|
|
18777
|
-
validated.push(iterator);
|
|
18778
|
-
}
|
|
18779
|
-
files = validated;
|
|
18780
|
-
}
|
|
18781
|
-
file.remove();
|
|
18782
|
-
previousFile = null;
|
|
18783
|
-
chain.reverse();
|
|
18784
|
-
while (chain.length) {
|
|
18785
|
-
const root = chain.pop();
|
|
18786
|
-
if (root.isConnected) {
|
|
18787
|
-
const control = AtomControl.from(root);
|
|
18788
|
-
if (msg) {
|
|
18789
|
-
control.app.runAsync(() => PopupService.alert({
|
|
18790
|
-
message: msg
|
|
18791
|
-
}));
|
|
18792
|
-
if (files.length === 0) {
|
|
18793
|
-
return;
|
|
18794
|
-
}
|
|
18795
|
-
}
|
|
18796
|
-
if (upload) {
|
|
18797
|
-
const doUploadEvent = new CustomEvent("uploadRequested", {
|
|
18798
|
-
detail: {
|
|
18799
|
-
files,
|
|
18800
|
-
extra,
|
|
18801
|
-
uploadEvent
|
|
18802
|
-
},
|
|
18803
|
-
bubbles: true,
|
|
18804
|
-
cancelable: true
|
|
18805
|
-
});
|
|
18806
|
-
root.dispatchEvent(doUploadEvent);
|
|
18807
|
-
if (doUploadEvent.defaultPrevented) {
|
|
18808
|
-
return;
|
|
18809
|
-
}
|
|
18810
|
-
}
|
|
18811
|
-
root.dispatchEvent(new CustomEvent(uploadEvent, {
|
|
18812
|
-
detail: {
|
|
18813
|
-
files,
|
|
18814
|
-
extra
|
|
18815
|
-
},
|
|
18816
|
-
bubbles: true
|
|
18817
|
-
}));
|
|
18818
|
-
break;
|
|
18819
|
-
}
|
|
18820
|
-
}
|
|
18821
|
-
});
|
|
18822
|
-
setTimeout(() => {
|
|
18823
|
-
file.dispatchEvent(new MouseEvent("click"));
|
|
18824
|
-
});
|
|
18825
|
-
});
|
|
18826
|
-
id = 1;
|
|
18827
|
-
_export("default", UploadEvent = class UploadEvent {
|
|
18828
|
-
static AttachUploadAction(_a) {
|
|
18829
|
-
var {
|
|
18830
|
-
uploadEvent = "filesAvailable",
|
|
18831
|
-
accept = "*/*",
|
|
18832
|
-
capture,
|
|
18833
|
-
multiple = false,
|
|
18834
|
-
forceType = true,
|
|
18835
|
-
maxSize = 524288000,
|
|
18836
|
-
extra,
|
|
18837
|
-
upload = true,
|
|
18838
|
-
authorize = true,
|
|
18839
|
-
ariaLabel = "Upload"
|
|
18840
|
-
} = _a,
|
|
18841
|
-
others = __rest(_a, ["uploadEvent", "accept", "capture", "multiple", "forceType", "maxSize", "extra", "upload", "authorize", "ariaLabel"]);
|
|
18842
|
-
return Object.assign(Object.assign({}, others), {
|
|
18843
|
-
"data-click-command": uploadCommand.name,
|
|
18844
|
-
"data-upload-event": uploadEvent,
|
|
18845
|
-
"data-accept": accept,
|
|
18846
|
-
"data-multiple": multiple ? "true" : "false",
|
|
18847
|
-
"data-capture": capture,
|
|
18848
|
-
"data-upload": upload ? "true" : "false",
|
|
18849
|
-
"data-force-type": forceType ? "true" : "false",
|
|
18850
|
-
"data-max-size": maxSize ? maxSize.toString() : undefined,
|
|
18851
|
-
"data-authorize": authorize.toString(),
|
|
18852
|
-
"aria-label": ariaLabel,
|
|
18853
|
-
extra
|
|
18854
|
-
});
|
|
18855
|
-
}
|
|
18856
|
-
});
|
|
18857
|
-
}
|
|
18858
|
-
};
|
|
18859
|
-
});
|
|
18860
|
-
//# sourceMappingURL=UploadEvent.js.map
|
|
18861
|
-
|
|
18862
|
-
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/UploadEvent");
|
|
18863
|
-
|
|
18864
|
-
System.register(["@web-atoms/core/dist/core/XNode", "../../basic/UploadEvent"], function (_export, _context) {
|
|
18865
|
-
"use strict";
|
|
18866
|
-
|
|
18867
|
-
var XNode, UploadEvent;
|
|
18868
|
-
function AttachFile({
|
|
18869
|
-
accept = "image/*",
|
|
18870
|
-
maxSize = 1024 * 1024 * 5,
|
|
18871
|
-
authorize = true,
|
|
18872
|
-
capture = null,
|
|
18873
|
-
ariaLabel = "upload"
|
|
18874
|
-
}) {
|
|
18875
|
-
return XNode.create("button", Object.assign({
|
|
18876
|
-
title: "Insert Image",
|
|
18877
|
-
class: "command"
|
|
18878
|
-
}, UploadEvent.AttachUploadAction({
|
|
18879
|
-
accept,
|
|
18880
|
-
forceType: true,
|
|
18881
|
-
maxSize,
|
|
18882
|
-
authorize,
|
|
18883
|
-
capture,
|
|
18884
|
-
multiple: false,
|
|
18885
|
-
ariaLabel
|
|
18886
|
-
})), XNode.create("i", {
|
|
18887
|
-
class: "ri-attachment-2"
|
|
18888
|
-
}));
|
|
18889
|
-
}
|
|
18890
|
-
_export("default", AttachFile);
|
|
18891
|
-
return {
|
|
18892
|
-
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
18893
|
-
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
18894
|
-
}, function (_basicUploadEvent) {
|
|
18895
|
-
UploadEvent = _basicUploadEvent.default;
|
|
18896
|
-
}],
|
|
18897
|
-
execute: function () {}
|
|
18898
|
-
};
|
|
18899
|
-
});
|
|
18900
|
-
//# sourceMappingURL=AttachFile.js.map
|
|
18901
|
-
|
|
18902
|
-
AmdLoader.instance.setup("@web-atoms/web-controls/dist/html-editor/commands/AttachFile");
|
|
18903
|
-
|
|
18904
18670
|
System.register(["./AtomStyle"], function (_export, _context) {
|
|
18905
18671
|
"use strict";
|
|
18906
18672
|
|
|
@@ -20330,6 +20096,200 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
20330
20096
|
|
|
20331
20097
|
AmdLoader.instance.setup("@web-atoms/web-controls/dist/html-editor/commands/Source");
|
|
20332
20098
|
|
|
20099
|
+
System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core/Command", "@web-atoms/core/dist/core/StringHelper", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/services/PopupService"], function (_export, _context) {
|
|
20100
|
+
"use strict";
|
|
20101
|
+
|
|
20102
|
+
var __rest, App, Command, StringHelper, AtomControl, PopupService, UploadEvent, acceptCache, isFileType, previousFile, uploadCommand, id;
|
|
20103
|
+
_export("default", void 0);
|
|
20104
|
+
return {
|
|
20105
|
+
setters: [function (_tslib) {
|
|
20106
|
+
__rest = _tslib.__rest;
|
|
20107
|
+
}, function (_webAtomsCoreDistApp) {
|
|
20108
|
+
App = _webAtomsCoreDistApp.App;
|
|
20109
|
+
}, function (_webAtomsCoreDistCoreCommand) {
|
|
20110
|
+
Command = _webAtomsCoreDistCoreCommand.default;
|
|
20111
|
+
}, function (_webAtomsCoreDistCoreStringHelper) {
|
|
20112
|
+
StringHelper = _webAtomsCoreDistCoreStringHelper.StringHelper;
|
|
20113
|
+
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
20114
|
+
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
20115
|
+
}, function (_webAtomsCoreDistWebServicesPopupService) {
|
|
20116
|
+
PopupService = _webAtomsCoreDistWebServicesPopupService.default;
|
|
20117
|
+
}],
|
|
20118
|
+
execute: function () {
|
|
20119
|
+
acceptCache = {};
|
|
20120
|
+
_export("isFileType", isFileType = acceptType => {
|
|
20121
|
+
var _a;
|
|
20122
|
+
function isFileTypeFactory(accept) {
|
|
20123
|
+
if (!accept || accept === "*/*") {
|
|
20124
|
+
return () => true;
|
|
20125
|
+
}
|
|
20126
|
+
const types = accept.split(/\,/g).map(x => {
|
|
20127
|
+
x = x.trim();
|
|
20128
|
+
if (x.startsWith(".")) {
|
|
20129
|
+
return file => file.name.endsWith(x);
|
|
20130
|
+
}
|
|
20131
|
+
if (x.endsWith("/*")) {
|
|
20132
|
+
const prefix = x.substring(0, x.length - 1);
|
|
20133
|
+
return file => file.type.startsWith(prefix);
|
|
20134
|
+
}
|
|
20135
|
+
return file => file.type === x;
|
|
20136
|
+
});
|
|
20137
|
+
return file => {
|
|
20138
|
+
for (const iterator of types) {
|
|
20139
|
+
if (iterator(file)) {
|
|
20140
|
+
return true;
|
|
20141
|
+
}
|
|
20142
|
+
}
|
|
20143
|
+
return false;
|
|
20144
|
+
};
|
|
20145
|
+
}
|
|
20146
|
+
return (_a = acceptCache[acceptType]) !== null && _a !== void 0 ? _a : acceptCache[acceptType] = isFileTypeFactory(acceptType);
|
|
20147
|
+
});
|
|
20148
|
+
uploadCommand = Command.create({
|
|
20149
|
+
name: "upload-command"
|
|
20150
|
+
});
|
|
20151
|
+
window.addEventListener(uploadCommand.eventName, ce => {
|
|
20152
|
+
if (ce.defaultPrevented) {
|
|
20153
|
+
return;
|
|
20154
|
+
}
|
|
20155
|
+
const element = ce.target;
|
|
20156
|
+
const authorize = element.getAttribute("data-authorize");
|
|
20157
|
+
if (authorize === "true") {
|
|
20158
|
+
if (!App.authorize()) {
|
|
20159
|
+
return;
|
|
20160
|
+
}
|
|
20161
|
+
}
|
|
20162
|
+
const multiple = element.getAttribute("data-multiple") === "true";
|
|
20163
|
+
const extra = element.extra;
|
|
20164
|
+
const upload = element.getAttribute("data-upload") === "true";
|
|
20165
|
+
const uploadEvent = StringHelper.fromHyphenToCamel(element.getAttribute("data-upload-event"));
|
|
20166
|
+
const chain = [];
|
|
20167
|
+
let start = element;
|
|
20168
|
+
while (start) {
|
|
20169
|
+
chain.push(start);
|
|
20170
|
+
start = start.parentElement;
|
|
20171
|
+
}
|
|
20172
|
+
previousFile === null || previousFile === void 0 ? void 0 : previousFile.remove();
|
|
20173
|
+
const file = document.createElement("input");
|
|
20174
|
+
file.type = "file";
|
|
20175
|
+
file.multiple = multiple;
|
|
20176
|
+
const accept = element.getAttribute("data-accept") || "*/*";
|
|
20177
|
+
file.accept = accept;
|
|
20178
|
+
const capture = element.getAttribute("data-capture");
|
|
20179
|
+
if (capture) {
|
|
20180
|
+
file.capture = capture;
|
|
20181
|
+
}
|
|
20182
|
+
file.style.position = "absolute";
|
|
20183
|
+
file.style.left = "-1000px";
|
|
20184
|
+
file.style.top = "-1000px";
|
|
20185
|
+
document.body.append(file);
|
|
20186
|
+
previousFile = file;
|
|
20187
|
+
const maxSize = parseInt(element.getAttribute("data-max-size") || "0", 10);
|
|
20188
|
+
const forceType = element.getAttribute("data-force-type") === "true";
|
|
20189
|
+
file.addEventListener("change", () => {
|
|
20190
|
+
let files = Array.from(file.files);
|
|
20191
|
+
let msg = "";
|
|
20192
|
+
if (forceType || maxSize) {
|
|
20193
|
+
const validated = [];
|
|
20194
|
+
const checkFileType = isFileType(accept);
|
|
20195
|
+
for (const iterator of files) {
|
|
20196
|
+
if (maxSize && iterator.size > maxSize) {
|
|
20197
|
+
msg += `Size of ${iterator.name} is more than ${maxSize}`;
|
|
20198
|
+
continue;
|
|
20199
|
+
}
|
|
20200
|
+
if (forceType) {
|
|
20201
|
+
if (!checkFileType(iterator)) {
|
|
20202
|
+
msg += `${iterator.name} is invalid file.`;
|
|
20203
|
+
continue;
|
|
20204
|
+
}
|
|
20205
|
+
}
|
|
20206
|
+
validated.push(iterator);
|
|
20207
|
+
}
|
|
20208
|
+
files = validated;
|
|
20209
|
+
}
|
|
20210
|
+
file.remove();
|
|
20211
|
+
previousFile = null;
|
|
20212
|
+
chain.reverse();
|
|
20213
|
+
while (chain.length) {
|
|
20214
|
+
const root = chain.pop();
|
|
20215
|
+
if (root.isConnected) {
|
|
20216
|
+
const control = AtomControl.from(root);
|
|
20217
|
+
if (msg) {
|
|
20218
|
+
control.app.runAsync(() => PopupService.alert({
|
|
20219
|
+
message: msg
|
|
20220
|
+
}));
|
|
20221
|
+
if (files.length === 0) {
|
|
20222
|
+
return;
|
|
20223
|
+
}
|
|
20224
|
+
}
|
|
20225
|
+
if (upload) {
|
|
20226
|
+
const doUploadEvent = new CustomEvent("uploadRequested", {
|
|
20227
|
+
detail: {
|
|
20228
|
+
files,
|
|
20229
|
+
extra,
|
|
20230
|
+
uploadEvent
|
|
20231
|
+
},
|
|
20232
|
+
bubbles: true,
|
|
20233
|
+
cancelable: true
|
|
20234
|
+
});
|
|
20235
|
+
root.dispatchEvent(doUploadEvent);
|
|
20236
|
+
if (doUploadEvent.defaultPrevented) {
|
|
20237
|
+
return;
|
|
20238
|
+
}
|
|
20239
|
+
}
|
|
20240
|
+
root.dispatchEvent(new CustomEvent(uploadEvent, {
|
|
20241
|
+
detail: {
|
|
20242
|
+
files,
|
|
20243
|
+
extra
|
|
20244
|
+
},
|
|
20245
|
+
bubbles: true
|
|
20246
|
+
}));
|
|
20247
|
+
break;
|
|
20248
|
+
}
|
|
20249
|
+
}
|
|
20250
|
+
});
|
|
20251
|
+
setTimeout(() => {
|
|
20252
|
+
file.dispatchEvent(new MouseEvent("click"));
|
|
20253
|
+
});
|
|
20254
|
+
});
|
|
20255
|
+
id = 1;
|
|
20256
|
+
_export("default", UploadEvent = class UploadEvent {
|
|
20257
|
+
static AttachUploadAction(_a) {
|
|
20258
|
+
var {
|
|
20259
|
+
uploadEvent = "filesAvailable",
|
|
20260
|
+
accept = "*/*",
|
|
20261
|
+
capture,
|
|
20262
|
+
multiple = false,
|
|
20263
|
+
forceType = true,
|
|
20264
|
+
maxSize = 524288000,
|
|
20265
|
+
extra,
|
|
20266
|
+
upload = true,
|
|
20267
|
+
authorize = true,
|
|
20268
|
+
ariaLabel = "Upload"
|
|
20269
|
+
} = _a,
|
|
20270
|
+
others = __rest(_a, ["uploadEvent", "accept", "capture", "multiple", "forceType", "maxSize", "extra", "upload", "authorize", "ariaLabel"]);
|
|
20271
|
+
return Object.assign(Object.assign({}, others), {
|
|
20272
|
+
"data-click-command": uploadCommand.name,
|
|
20273
|
+
"data-upload-event": uploadEvent,
|
|
20274
|
+
"data-accept": accept,
|
|
20275
|
+
"data-multiple": multiple ? "true" : "false",
|
|
20276
|
+
"data-capture": capture,
|
|
20277
|
+
"data-upload": upload ? "true" : "false",
|
|
20278
|
+
"data-force-type": forceType ? "true" : "false",
|
|
20279
|
+
"data-max-size": maxSize ? maxSize.toString() : undefined,
|
|
20280
|
+
"data-authorize": authorize.toString(),
|
|
20281
|
+
"aria-label": ariaLabel,
|
|
20282
|
+
extra
|
|
20283
|
+
});
|
|
20284
|
+
}
|
|
20285
|
+
});
|
|
20286
|
+
}
|
|
20287
|
+
};
|
|
20288
|
+
});
|
|
20289
|
+
//# sourceMappingURL=UploadEvent.js.map
|
|
20290
|
+
|
|
20291
|
+
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/UploadEvent");
|
|
20292
|
+
|
|
20333
20293
|
System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core/types", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/services/PopupWindow", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/web/services/PopupService"], function (_export, _context) {
|
|
20334
20294
|
"use strict";
|
|
20335
20295
|
|
|
@@ -20545,10 +20505,32 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
|
|
|
20545
20505
|
|
|
20546
20506
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/services/files/LocalFileService");
|
|
20547
20507
|
|
|
20548
|
-
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Toolbar", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "@web-atoms/web-controls/dist/html-editor/commands/Headings", "@web-atoms/web-controls/dist/html-editor/commands/ChangeColor", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFont", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize", "@web-atoms/web-controls/dist/html-editor/commands/NumberedList", "@web-atoms/web-controls/dist/html-editor/commands/UnorderedList", "@web-atoms/web-controls/dist/html-editor/commands/IndentLess", "@web-atoms/web-controls/dist/html-editor/commands/IndentMore", "@web-atoms/web-controls/dist/html-editor/commands/
|
|
20508
|
+
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Toolbar", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "@web-atoms/web-controls/dist/html-editor/commands/Headings", "@web-atoms/web-controls/dist/html-editor/commands/ChangeColor", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFont", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize", "@web-atoms/web-controls/dist/html-editor/commands/NumberedList", "@web-atoms/web-controls/dist/html-editor/commands/UnorderedList", "@web-atoms/web-controls/dist/html-editor/commands/IndentLess", "@web-atoms/web-controls/dist/html-editor/commands/IndentMore", "@web-atoms/web-controls/dist/html-editor/commands/AddLink", "@web-atoms/web-controls/dist/html-editor/commands/Unlink", "@web-atoms/web-controls/dist/html-editor/commands/RemoveFormat", "@web-atoms/web-controls/dist/html-editor/commands/Source", "@web-atoms/web-controls/dist/basic/UploadEvent", "../../../services/files/LocalFileService", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/core/InjectProperty"], function (_export, _context) {
|
|
20549
20509
|
"use strict";
|
|
20550
20510
|
|
|
20551
|
-
var __awaiter, __decorate, __metadata, XNode, InlineHtmlEditor, Toolbar, Bold, Italic, Underline, StrikeThrough, Align, HorizontalRule, Separator, Headings, ChangeColor, ChangeFont, ChangeFontSize, NumberedList, UnorderedList, IndentLess, IndentMore,
|
|
20511
|
+
var __awaiter, __decorate, __metadata, XNode, InlineHtmlEditor, Toolbar, Bold, Italic, Underline, StrikeThrough, Align, HorizontalRule, Separator, Headings, ChangeColor, ChangeFont, ChangeFontSize, NumberedList, UnorderedList, IndentLess, IndentMore, AddLink, Unlink, RemoveFormat, Source, UploadEvent, LocalFileService, acceptDocumentAndMedia, AtomControl, InjectProperty, MailHtmlEditor, link, onAttachImage;
|
|
20512
|
+
function AttachFile({
|
|
20513
|
+
accept = acceptDocumentAndMedia,
|
|
20514
|
+
maxSize = 1024 * 1024 * 10,
|
|
20515
|
+
authorize = true,
|
|
20516
|
+
capture = null,
|
|
20517
|
+
ariaLabel = "upload"
|
|
20518
|
+
}) {
|
|
20519
|
+
return XNode.create("button", Object.assign({
|
|
20520
|
+
title: "Insert Image",
|
|
20521
|
+
class: "command"
|
|
20522
|
+
}, UploadEvent.AttachUploadAction({
|
|
20523
|
+
accept,
|
|
20524
|
+
forceType: true,
|
|
20525
|
+
maxSize,
|
|
20526
|
+
authorize,
|
|
20527
|
+
capture,
|
|
20528
|
+
multiple: false,
|
|
20529
|
+
ariaLabel
|
|
20530
|
+
})), XNode.create("i", {
|
|
20531
|
+
class: "ri-attachment-2"
|
|
20532
|
+
}));
|
|
20533
|
+
}
|
|
20552
20534
|
function AttachImage({
|
|
20553
20535
|
accept = "image/*",
|
|
20554
20536
|
maxSize = 1024 * 1024 * 5,
|
|
@@ -20623,8 +20605,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
20623
20605
|
IndentLess = _webAtomsWebControlsDistHtmlEditorCommandsIndentLess.default;
|
|
20624
20606
|
}, function (_webAtomsWebControlsDistHtmlEditorCommandsIndentMore) {
|
|
20625
20607
|
IndentMore = _webAtomsWebControlsDistHtmlEditorCommandsIndentMore.default;
|
|
20626
|
-
}, function (_webAtomsWebControlsDistHtmlEditorCommandsAttachFile) {
|
|
20627
|
-
AttachFile = _webAtomsWebControlsDistHtmlEditorCommandsAttachFile.default;
|
|
20628
20608
|
}, function (_webAtomsWebControlsDistHtmlEditorCommandsAddLink) {
|
|
20629
20609
|
AddLink = _webAtomsWebControlsDistHtmlEditorCommandsAddLink.default;
|
|
20630
20610
|
}, function (_webAtomsWebControlsDistHtmlEditorCommandsUnlink) {
|
|
@@ -20637,6 +20617,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
20637
20617
|
UploadEvent = _webAtomsWebControlsDistBasicUploadEvent.default;
|
|
20638
20618
|
}, function (_servicesFilesLocalFileService) {
|
|
20639
20619
|
LocalFileService = _servicesFilesLocalFileService.default;
|
|
20620
|
+
acceptDocumentAndMedia = _servicesFilesLocalFileService.acceptDocumentAndMedia;
|
|
20640
20621
|
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
20641
20622
|
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
20642
20623
|
}, function (_webAtomsCoreDistCoreInjectProperty) {
|