jodit-pro 4.9.22 → 4.9.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/CHANGELOG.md +63 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +44 -44
- package/es2015/jodit.js +229 -101
- package/es2015/jodit.min.js +7 -7
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +193 -161
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +30 -30
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +30 -30
- package/es2018/jodit.min.js +16 -16
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +32 -32
- package/es2021/jodit.js +229 -101
- package/es2021/jodit.min.js +24 -24
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +83 -83
- package/es2021.en/jodit.js +229 -101
- package/es2021.en/jodit.min.js +10 -10
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +249 -105
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +221 -174
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
- package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
- package/types/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
- package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.9.
|
|
4
|
+
* Version: v4.9.27
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -5571,7 +5571,7 @@ function _ts_values(o) {
|
|
|
5571
5571
|
key: "temporaryList",
|
|
5572
5572
|
value: /**
|
|
5573
5573
|
* Get temporary list
|
|
5574
|
-
* @deprecated
|
|
5574
|
+
* @deprecated Just do not use it, it is not needed anymore
|
|
5575
5575
|
*/ function temporaryList(root) {
|
|
5576
5576
|
return (0,_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll("[".concat(_constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, "]")));
|
|
5577
5577
|
}
|
|
@@ -11056,7 +11056,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
11056
11056
|
key: "onChangeText",
|
|
11057
11057
|
value: function onChangeText() {
|
|
11058
11058
|
this.text.textContent = this.jodit.i18n(this.state.text);
|
|
11059
|
-
this.
|
|
11059
|
+
this.updateAriaLabel();
|
|
11060
11060
|
}
|
|
11061
11061
|
},
|
|
11062
11062
|
{
|
|
@@ -11094,12 +11094,12 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
11094
11094
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'title', i8nTooltip);
|
|
11095
11095
|
}
|
|
11096
11096
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
11097
|
-
this.
|
|
11097
|
+
this.updateAriaLabel();
|
|
11098
11098
|
}
|
|
11099
11099
|
},
|
|
11100
11100
|
{
|
|
11101
|
-
key: "
|
|
11102
|
-
value: function
|
|
11101
|
+
key: "updateAriaLabel",
|
|
11102
|
+
value: function updateAriaLabel() {
|
|
11103
11103
|
var hasText = this.state.text.trim().length > 0;
|
|
11104
11104
|
var i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
11105
11105
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
@@ -11762,6 +11762,12 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
11762
11762
|
return 'ToolbarCollection';
|
|
11763
11763
|
}
|
|
11764
11764
|
},
|
|
11765
|
+
{
|
|
11766
|
+
key: "getRole",
|
|
11767
|
+
value: function getRole() {
|
|
11768
|
+
return 'toolbar';
|
|
11769
|
+
}
|
|
11770
|
+
},
|
|
11765
11771
|
{
|
|
11766
11772
|
key: "firstButton",
|
|
11767
11773
|
get: /**
|
|
@@ -11911,9 +11917,14 @@ ToolbarCollection = __decorate([
|
|
|
11911
11917
|
/* harmony export */ "default": function() { return /* binding */ DataProvider; }
|
|
11912
11918
|
/* harmony export */ });
|
|
11913
11919
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
11914
|
-
/* harmony import */ var
|
|
11915
|
-
/* harmony import */ var
|
|
11916
|
-
/* harmony import */ var
|
|
11920
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
11921
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23282);
|
|
11922
|
+
/* harmony import */ var _core_helpers_normalize_normalize_relative_path_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70091);
|
|
11923
|
+
/* harmony import */ var _core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68934);
|
|
11924
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89890);
|
|
11925
|
+
/* harmony import */ var _core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3703);
|
|
11926
|
+
/* harmony import */ var _core_request_ajax_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54079);
|
|
11927
|
+
/* harmony import */ var _builders_item_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(159);
|
|
11917
11928
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11918
11929
|
try {
|
|
11919
11930
|
var info = gen[key](arg);
|
|
@@ -12014,6 +12025,10 @@ function _object_spread_props(target, source) {
|
|
|
12014
12025
|
}
|
|
12015
12026
|
return target;
|
|
12016
12027
|
}
|
|
12028
|
+
function _type_of(obj) {
|
|
12029
|
+
"@swc/helpers - typeof";
|
|
12030
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
12031
|
+
}
|
|
12017
12032
|
function _ts_generator(thisArg, body) {
|
|
12018
12033
|
var f, y, t, _ = {
|
|
12019
12034
|
label: 0,
|
|
@@ -12117,7 +12132,18 @@ function _ts_generator(thisArg, body) {
|
|
|
12117
12132
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12118
12133
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
12119
12134
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
12120
|
-
*/
|
|
12135
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
12136
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12137
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12138
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12139
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12140
|
+
};
|
|
12141
|
+
|
|
12142
|
+
|
|
12143
|
+
|
|
12144
|
+
|
|
12145
|
+
|
|
12146
|
+
|
|
12121
12147
|
|
|
12122
12148
|
|
|
12123
12149
|
|
|
@@ -12166,13 +12192,13 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12166
12192
|
ajax === null || ajax === void 0 ? void 0 : ajax.abort();
|
|
12167
12193
|
instances.delete(name);
|
|
12168
12194
|
}
|
|
12169
|
-
var opts = (0,
|
|
12195
|
+
var opts = (0,_core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__.ConfigProto)(this.options[name] !== undefined ? this.options[name] : {}, (0,_core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__.ConfigProto)({
|
|
12170
12196
|
onProgress: this.progressHandler
|
|
12171
12197
|
}, this.o.ajax));
|
|
12172
12198
|
if (opts.prepareData) {
|
|
12173
12199
|
opts.data = opts.prepareData.call(this, opts.data);
|
|
12174
12200
|
}
|
|
12175
|
-
var ajax1 = new
|
|
12201
|
+
var ajax1 = new _core_request_ajax_js__WEBPACK_IMPORTED_MODULE_7__.Ajax(opts);
|
|
12176
12202
|
instances.set(name, ajax1);
|
|
12177
12203
|
var promise = ajax1.send();
|
|
12178
12204
|
promise.finally(function() {
|
|
@@ -12220,7 +12246,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12220
12246
|
2,
|
|
12221
12247
|
this.get('permissions').then(function(resp) {
|
|
12222
12248
|
if (_this.parent.isInDestruct) {
|
|
12223
|
-
throw (0,
|
|
12249
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.abort)();
|
|
12224
12250
|
}
|
|
12225
12251
|
var process = _this.o.permissions.process;
|
|
12226
12252
|
if (!process) {
|
|
@@ -12251,7 +12277,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12251
12277
|
var rule = 'allow' + action;
|
|
12252
12278
|
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
12253
12279
|
if (!possibleRules.has(rule)) {
|
|
12254
|
-
throw (0,
|
|
12280
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Wrong action ' + action);
|
|
12255
12281
|
}
|
|
12256
12282
|
}
|
|
12257
12283
|
var presetValue = this.o.permissionsPresets[rule];
|
|
@@ -12292,7 +12318,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12292
12318
|
var _this = this;
|
|
12293
12319
|
var mods = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12294
12320
|
return this.__items(path, source, mods, function(resp) {
|
|
12295
|
-
return _this.
|
|
12321
|
+
return _this.__generateItemsList(resp.data.sources, mods);
|
|
12296
12322
|
});
|
|
12297
12323
|
}
|
|
12298
12324
|
},
|
|
@@ -12310,15 +12336,15 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12310
12336
|
};
|
|
12311
12337
|
return this.__items(path, source, mods, function(resp) {
|
|
12312
12338
|
return {
|
|
12313
|
-
items: _this.
|
|
12339
|
+
items: _this.__generateItemsList(resp.data.sources, mods),
|
|
12314
12340
|
loadedTotal: calcTotal(resp.data.sources)
|
|
12315
12341
|
};
|
|
12316
12342
|
});
|
|
12317
12343
|
}
|
|
12318
12344
|
},
|
|
12319
12345
|
{
|
|
12320
|
-
key: "
|
|
12321
|
-
value: function
|
|
12346
|
+
key: "__generateItemsList",
|
|
12347
|
+
value: function __generateItemsList(sources) {
|
|
12322
12348
|
var _this = this;
|
|
12323
12349
|
var mods = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12324
12350
|
var elements = [];
|
|
@@ -12332,14 +12358,14 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12332
12358
|
sources.forEach(function(source) {
|
|
12333
12359
|
if (source.files && source.files.length) {
|
|
12334
12360
|
var sort = _this.o.sort;
|
|
12335
|
-
if ((0,
|
|
12361
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(sort) && mods.sortBy) {
|
|
12336
12362
|
source.files.sort(function(a, b) {
|
|
12337
12363
|
return sort(a, b, mods.sortBy);
|
|
12338
12364
|
});
|
|
12339
12365
|
}
|
|
12340
12366
|
source.files.forEach(function(item) {
|
|
12341
12367
|
if (inFilter(item) && canBeFile(item)) {
|
|
12342
|
-
elements.push(
|
|
12368
|
+
elements.push(_builders_item_js__WEBPACK_IMPORTED_MODULE_8__.FileBrowserItem.create(_object_spread_props(_object_spread({}, item), {
|
|
12343
12369
|
sourceName: source.name,
|
|
12344
12370
|
source: source
|
|
12345
12371
|
})));
|
|
@@ -12359,7 +12385,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12359
12385
|
switch(_state.label){
|
|
12360
12386
|
case 0:
|
|
12361
12387
|
_this = this;
|
|
12362
|
-
path = (0,
|
|
12388
|
+
path = (0,_core_helpers_normalize_normalize_relative_path_js__WEBPACK_IMPORTED_MODULE_3__.normalizeRelativePath)(path);
|
|
12363
12389
|
if (!this.o.folder) {
|
|
12364
12390
|
return [
|
|
12365
12391
|
2,
|
|
@@ -12398,12 +12424,12 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12398
12424
|
*/ key: "getPathByUrl",
|
|
12399
12425
|
value: function getPathByUrl(url) {
|
|
12400
12426
|
var _this = this;
|
|
12401
|
-
(0,
|
|
12427
|
+
(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_6__.set)('options.getLocalFileByUrl.data.url', url, this);
|
|
12402
12428
|
return this.get('getLocalFileByUrl').then(function(resp) {
|
|
12403
12429
|
if (_this.isSuccess(resp)) {
|
|
12404
12430
|
return resp.data;
|
|
12405
12431
|
}
|
|
12406
|
-
throw (0,
|
|
12432
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(_this.getMessage(resp));
|
|
12407
12433
|
});
|
|
12408
12434
|
}
|
|
12409
12435
|
},
|
|
@@ -12419,7 +12445,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12419
12445
|
var _this = this;
|
|
12420
12446
|
var create = this.o.create;
|
|
12421
12447
|
if (!create) {
|
|
12422
|
-
throw (0,
|
|
12448
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set Create api options');
|
|
12423
12449
|
}
|
|
12424
12450
|
create.data.source = source;
|
|
12425
12451
|
create.data.path = path;
|
|
@@ -12428,7 +12454,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12428
12454
|
if (_this.isSuccess(resp)) {
|
|
12429
12455
|
return true;
|
|
12430
12456
|
}
|
|
12431
|
-
throw (0,
|
|
12457
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(_this.getMessage(resp));
|
|
12432
12458
|
});
|
|
12433
12459
|
}
|
|
12434
12460
|
},
|
|
@@ -12444,7 +12470,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12444
12470
|
var mode = isFile ? 'fileMove' : 'folderMove';
|
|
12445
12471
|
var option = this.options[mode];
|
|
12446
12472
|
if (!option) {
|
|
12447
|
-
throw (0,
|
|
12473
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set Move api options');
|
|
12448
12474
|
}
|
|
12449
12475
|
option.data.from = filepath;
|
|
12450
12476
|
option.data.path = path;
|
|
@@ -12453,7 +12479,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12453
12479
|
if (_this.isSuccess(resp)) {
|
|
12454
12480
|
return true;
|
|
12455
12481
|
}
|
|
12456
|
-
throw (0,
|
|
12482
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(_this.getMessage(resp));
|
|
12457
12483
|
});
|
|
12458
12484
|
}
|
|
12459
12485
|
},
|
|
@@ -12464,12 +12490,12 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12464
12490
|
* @param path - Relative path
|
|
12465
12491
|
* @param file - The filename
|
|
12466
12492
|
* @param source - Source
|
|
12467
|
-
*/ key: "
|
|
12468
|
-
value: function
|
|
12493
|
+
*/ key: "__remove",
|
|
12494
|
+
value: function __remove(action, path, file, source) {
|
|
12469
12495
|
var _this = this;
|
|
12470
12496
|
var fr = this.o[action];
|
|
12471
12497
|
if (!fr) {
|
|
12472
|
-
throw (0,
|
|
12498
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set "'.concat(action, '" api options'));
|
|
12473
12499
|
}
|
|
12474
12500
|
fr.data.path = path;
|
|
12475
12501
|
fr.data.name = file;
|
|
@@ -12491,7 +12517,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12491
12517
|
* @param source - Source
|
|
12492
12518
|
*/ key: "fileRemove",
|
|
12493
12519
|
value: function fileRemove(path, file, source) {
|
|
12494
|
-
return this.
|
|
12520
|
+
return this.__remove('fileRemove', path, file, source);
|
|
12495
12521
|
}
|
|
12496
12522
|
},
|
|
12497
12523
|
{
|
|
@@ -12503,7 +12529,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12503
12529
|
* @param source - Source
|
|
12504
12530
|
*/ key: "folderRemove",
|
|
12505
12531
|
value: function folderRemove(path, file, source) {
|
|
12506
|
-
return this.
|
|
12532
|
+
return this.__remove('folderRemove', path, file, source);
|
|
12507
12533
|
}
|
|
12508
12534
|
},
|
|
12509
12535
|
{
|
|
@@ -12514,12 +12540,12 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12514
12540
|
* @param name - Old name
|
|
12515
12541
|
* @param newname - New name
|
|
12516
12542
|
* @param source - Source
|
|
12517
|
-
*/ key: "
|
|
12518
|
-
value: function
|
|
12543
|
+
*/ key: "__rename",
|
|
12544
|
+
value: function __rename(action, path, name, newname, source) {
|
|
12519
12545
|
var _this = this;
|
|
12520
12546
|
var fr = this.o[action];
|
|
12521
12547
|
if (!fr) {
|
|
12522
|
-
throw (0,
|
|
12548
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set "'.concat(action, '" api options'));
|
|
12523
12549
|
}
|
|
12524
12550
|
fr.data.path = path;
|
|
12525
12551
|
fr.data.name = name;
|
|
@@ -12538,7 +12564,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12538
12564
|
* Rename folder
|
|
12539
12565
|
*/ key: "folderRename",
|
|
12540
12566
|
value: function folderRename(path, name, newname, source) {
|
|
12541
|
-
return this.
|
|
12567
|
+
return this.__rename('folderRename', path, name, newname, source);
|
|
12542
12568
|
}
|
|
12543
12569
|
},
|
|
12544
12570
|
{
|
|
@@ -12546,12 +12572,12 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12546
12572
|
* Rename file
|
|
12547
12573
|
*/ key: "fileRename",
|
|
12548
12574
|
value: function fileRename(path, name, newname, source) {
|
|
12549
|
-
return this.
|
|
12575
|
+
return this.__rename('fileRename', path, name, newname, source);
|
|
12550
12576
|
}
|
|
12551
12577
|
},
|
|
12552
12578
|
{
|
|
12553
|
-
key: "
|
|
12554
|
-
value: function
|
|
12579
|
+
key: "__changeImage",
|
|
12580
|
+
value: function __changeImage(type, path, source, name, newname, box) {
|
|
12555
12581
|
if (!this.o[type]) {
|
|
12556
12582
|
this.o[type] = {
|
|
12557
12583
|
data: {}
|
|
@@ -12580,7 +12606,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12580
12606
|
* Send command to server to crop image
|
|
12581
12607
|
*/ key: "crop",
|
|
12582
12608
|
value: function crop(path, source, name, newname, box) {
|
|
12583
|
-
return this.
|
|
12609
|
+
return this.__changeImage('crop', path, source, name, newname, box);
|
|
12584
12610
|
}
|
|
12585
12611
|
},
|
|
12586
12612
|
{
|
|
@@ -12588,7 +12614,7 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12588
12614
|
* Send command to server to resize image
|
|
12589
12615
|
*/ key: "resize",
|
|
12590
12616
|
value: function resize(path, source, name, newname, box) {
|
|
12591
|
-
return this.
|
|
12617
|
+
return this.__changeImage('resize', path, source, name, newname, box);
|
|
12592
12618
|
}
|
|
12593
12619
|
},
|
|
12594
12620
|
{
|
|
@@ -12616,6 +12642,60 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
12616
12642
|
return DataProvider;
|
|
12617
12643
|
}();
|
|
12618
12644
|
|
|
12645
|
+
__decorate([
|
|
12646
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12647
|
+
], DataProvider.prototype, "onProgress", null);
|
|
12648
|
+
__decorate([
|
|
12649
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12650
|
+
], DataProvider.prototype, "permissions", null);
|
|
12651
|
+
__decorate([
|
|
12652
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12653
|
+
], DataProvider.prototype, "canI", null);
|
|
12654
|
+
__decorate([
|
|
12655
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12656
|
+
], DataProvider.prototype, "items", null);
|
|
12657
|
+
__decorate([
|
|
12658
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12659
|
+
], DataProvider.prototype, "itemsEx", null);
|
|
12660
|
+
__decorate([
|
|
12661
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12662
|
+
], DataProvider.prototype, "tree", null);
|
|
12663
|
+
__decorate([
|
|
12664
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12665
|
+
], DataProvider.prototype, "getPathByUrl", null);
|
|
12666
|
+
__decorate([
|
|
12667
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12668
|
+
], DataProvider.prototype, "createFolder", null);
|
|
12669
|
+
__decorate([
|
|
12670
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12671
|
+
], DataProvider.prototype, "move", null);
|
|
12672
|
+
__decorate([
|
|
12673
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12674
|
+
], DataProvider.prototype, "fileRemove", null);
|
|
12675
|
+
__decorate([
|
|
12676
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12677
|
+
], DataProvider.prototype, "folderRemove", null);
|
|
12678
|
+
__decorate([
|
|
12679
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12680
|
+
], DataProvider.prototype, "folderRename", null);
|
|
12681
|
+
__decorate([
|
|
12682
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12683
|
+
], DataProvider.prototype, "fileRename", null);
|
|
12684
|
+
__decorate([
|
|
12685
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12686
|
+
], DataProvider.prototype, "crop", null);
|
|
12687
|
+
__decorate([
|
|
12688
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12689
|
+
], DataProvider.prototype, "resize", null);
|
|
12690
|
+
__decorate([
|
|
12691
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12692
|
+
], DataProvider.prototype, "getMessage", null);
|
|
12693
|
+
__decorate([
|
|
12694
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12695
|
+
], DataProvider.prototype, "isSuccess", null);
|
|
12696
|
+
__decorate([
|
|
12697
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
12698
|
+
], DataProvider.prototype, "destruct", null);
|
|
12619
12699
|
|
|
12620
12700
|
|
|
12621
12701
|
/***/ }),
|
|
@@ -18847,6 +18927,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18847
18927
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.buildQuery; },
|
|
18848
18928
|
/* harmony export */ call: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.call; },
|
|
18849
18929
|
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.callPromise; },
|
|
18930
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.callThis; },
|
|
18850
18931
|
/* harmony export */ camelCase: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.camelCase; },
|
|
18851
18932
|
/* harmony export */ cleanFromWord: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.cleanFromWord; },
|
|
18852
18933
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.clearAlign; },
|
|
@@ -20642,11 +20723,17 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20642
20723
|
}
|
|
20643
20724
|
_create_class(UIList, [
|
|
20644
20725
|
{
|
|
20645
|
-
|
|
20726
|
+
key: "className",
|
|
20646
20727
|
value: function className() {
|
|
20647
20728
|
return 'UIList';
|
|
20648
20729
|
}
|
|
20649
20730
|
},
|
|
20731
|
+
{
|
|
20732
|
+
key: "getRole",
|
|
20733
|
+
value: function getRole() {
|
|
20734
|
+
return 'list';
|
|
20735
|
+
}
|
|
20736
|
+
},
|
|
20650
20737
|
{
|
|
20651
20738
|
key: "__onChangeMode",
|
|
20652
20739
|
value: function __onChangeMode() {
|
|
@@ -20657,8 +20744,10 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20657
20744
|
/**
|
|
20658
20745
|
* Make new group and append it in list of elements
|
|
20659
20746
|
*/ key: "makeGroup",
|
|
20660
|
-
value: function makeGroup() {
|
|
20661
|
-
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit
|
|
20747
|
+
value: function makeGroup(role) {
|
|
20748
|
+
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit, [], role ? {
|
|
20749
|
+
role: role
|
|
20750
|
+
} : undefined);
|
|
20662
20751
|
}
|
|
20663
20752
|
},
|
|
20664
20753
|
{
|
|
@@ -20698,7 +20787,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20698
20787
|
items = (0,_helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_4__.splitArray)(items);
|
|
20699
20788
|
this.clear();
|
|
20700
20789
|
var lastBtnSeparator = false;
|
|
20701
|
-
var line = this.makeGroup();
|
|
20790
|
+
var line = this.makeGroup('group');
|
|
20702
20791
|
this.append(line);
|
|
20703
20792
|
line.setMod('line', true);
|
|
20704
20793
|
var group;
|
|
@@ -20706,7 +20795,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20706
20795
|
var elm = null;
|
|
20707
20796
|
switch(control.name){
|
|
20708
20797
|
case '\n':
|
|
20709
|
-
line = _this.makeGroup();
|
|
20798
|
+
line = _this.makeGroup('group');
|
|
20710
20799
|
line.setMod('line', true);
|
|
20711
20800
|
group = _this.makeGroup();
|
|
20712
20801
|
line.append(group);
|
|
@@ -30443,6 +30532,7 @@ var ToolbarEditorCollection = /*#__PURE__*/ function(ToolbarCollection) {
|
|
|
30443
30532
|
*/ key: "prependInvisibleInput",
|
|
30444
30533
|
value: function prependInvisibleInput(container) {
|
|
30445
30534
|
var input = this.j.create.element('input', {
|
|
30535
|
+
name: 'jodit-toolbar-focus-helper_' + this.j.id,
|
|
30446
30536
|
tabIndex: -1,
|
|
30447
30537
|
disabled: true,
|
|
30448
30538
|
style: 'width: 0; height:0; position: absolute; visibility: hidden;'
|
|
@@ -30739,6 +30829,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
30739
30829
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30740
30830
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
30741
30831
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
30832
|
+
/* harmony export */ callThis: function() { return /* binding */ callThis; },
|
|
30742
30833
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
30743
30834
|
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
30744
30835
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
@@ -30797,6 +30888,20 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
30797
30888
|
}
|
|
30798
30889
|
return func.apply(void 0, _to_consumable_array(args));
|
|
30799
30890
|
}
|
|
30891
|
+
/**
|
|
30892
|
+
* Call function with parameters
|
|
30893
|
+
*
|
|
30894
|
+
* @example
|
|
30895
|
+
* ```js
|
|
30896
|
+
* const f = Math.random();
|
|
30897
|
+
* Jodit.modules.Helpers.call(f > 0.5 ? Math.ceil : Math.floor, f);
|
|
30898
|
+
* ```
|
|
30899
|
+
*/ function callThis(func, thisArg) {
|
|
30900
|
+
for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
|
|
30901
|
+
args[_key - 2] = arguments[_key];
|
|
30902
|
+
}
|
|
30903
|
+
return func.apply(thisArg, args);
|
|
30904
|
+
}
|
|
30800
30905
|
/**
|
|
30801
30906
|
* Mark element for debugging
|
|
30802
30907
|
*/ function markOwner(jodit, elm) {
|
|
@@ -34472,6 +34577,7 @@ function _sliced_to_array(arr, i) {
|
|
|
34472
34577
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query_js__WEBPACK_IMPORTED_MODULE_5__.buildQuery; },
|
|
34473
34578
|
/* harmony export */ call: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.call; },
|
|
34474
34579
|
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.callPromise; },
|
|
34580
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.callThis; },
|
|
34475
34581
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
34476
34582
|
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_9__.clearCenterAlign; },
|
|
34477
34583
|
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_18__.cns; },
|
|
@@ -37007,6 +37113,7 @@ var UIElement = UIElement_1 = /*#__PURE__*/ function(ViewComponent) {
|
|
|
37007
37113
|
_this.name = '';
|
|
37008
37114
|
_this.__parentElement = null;
|
|
37009
37115
|
_this.mods = {};
|
|
37116
|
+
_this.options = options;
|
|
37010
37117
|
_this.container = _this.createContainer(options);
|
|
37011
37118
|
var role = _this.getRole();
|
|
37012
37119
|
role && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(_this.container, 'role', role);
|
|
@@ -37020,7 +37127,8 @@ var UIElement = UIElement_1 = /*#__PURE__*/ function(ViewComponent) {
|
|
|
37020
37127
|
{
|
|
37021
37128
|
key: "getRole",
|
|
37022
37129
|
value: function getRole() {
|
|
37023
|
-
|
|
37130
|
+
var _a;
|
|
37131
|
+
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || '';
|
|
37024
37132
|
}
|
|
37025
37133
|
},
|
|
37026
37134
|
{
|
|
@@ -37462,11 +37570,16 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
37462
37570
|
/* harmony import */ var _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91907);
|
|
37463
37571
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
37464
37572
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
|
|
37465
|
-
/* harmony import */ var
|
|
37466
|
-
/* harmony import */ var
|
|
37467
|
-
/* harmony import */ var
|
|
37468
|
-
/* harmony import */ var
|
|
37469
|
-
/* harmony import */ var
|
|
37573
|
+
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
37574
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
|
|
37575
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
37576
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
37577
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
37578
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(37790);
|
|
37579
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62843);
|
|
37580
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6441);
|
|
37581
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62489);
|
|
37582
|
+
/* harmony import */ var _templates_form_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22461);
|
|
37470
37583
|
function _assert_this_initialized(self) {
|
|
37471
37584
|
if (self === void 0) {
|
|
37472
37585
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -37582,6 +37695,11 @@ var ImageEditor_1;
|
|
|
37582
37695
|
|
|
37583
37696
|
|
|
37584
37697
|
|
|
37698
|
+
|
|
37699
|
+
|
|
37700
|
+
|
|
37701
|
+
|
|
37702
|
+
|
|
37585
37703
|
var jie = 'jodit-image-editor';
|
|
37586
37704
|
var TABS = {
|
|
37587
37705
|
resize: 'resize',
|
|
@@ -37640,7 +37758,7 @@ var TABS = {
|
|
|
37640
37758
|
wn = nw * (h / nh);
|
|
37641
37759
|
hn = h;
|
|
37642
37760
|
}
|
|
37643
|
-
(0,
|
|
37761
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(_this.crop_box, {
|
|
37644
37762
|
width: wn,
|
|
37645
37763
|
height: hn
|
|
37646
37764
|
});
|
|
@@ -37658,8 +37776,8 @@ var TABS = {
|
|
|
37658
37776
|
} else {
|
|
37659
37777
|
_this.new_h = ImageEditor_1.calcValueByPercent(h, _this.o.cropDefaultHeight);
|
|
37660
37778
|
}
|
|
37661
|
-
(0,
|
|
37662
|
-
backgroundImage: 'url(' + (0,
|
|
37779
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(_this.cropHandler, {
|
|
37780
|
+
backgroundImage: 'url(' + (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(_this.cropImage, 'src') + ')',
|
|
37663
37781
|
width: _this.new_w,
|
|
37664
37782
|
height: _this.new_h,
|
|
37665
37783
|
left: w / 2 - _this.new_w / 2,
|
|
@@ -37672,8 +37790,8 @@ var TABS = {
|
|
|
37672
37790
|
return;
|
|
37673
37791
|
}
|
|
37674
37792
|
var ratioX = _this.cropImage.offsetWidth / _this.naturalWidth, ratioY = _this.cropImage.offsetHeight / _this.naturalHeight;
|
|
37675
|
-
_this.cropBox.x = (0,
|
|
37676
|
-
_this.cropBox.y = (0,
|
|
37793
|
+
_this.cropBox.x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(_this.cropHandler, 'left') / ratioX;
|
|
37794
|
+
_this.cropBox.y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(_this.cropHandler, 'top') / ratioY;
|
|
37677
37795
|
_this.cropBox.w = _this.cropHandler.offsetWidth / ratioX;
|
|
37678
37796
|
_this.cropBox.h = _this.cropHandler.offsetHeight / ratioY;
|
|
37679
37797
|
_this.sizes.textContent = _this.cropBox.w.toFixed(0) + 'x' + _this.cropBox.h.toFixed(0);
|
|
@@ -37684,7 +37802,7 @@ var TABS = {
|
|
|
37684
37802
|
};
|
|
37685
37803
|
_this.setHandlers = function() {
|
|
37686
37804
|
var self = _this;
|
|
37687
|
-
var _refs = (0,
|
|
37805
|
+
var _refs = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(_this.editor), widthInput = _refs.widthInput, heightInput = _refs.heightInput;
|
|
37688
37806
|
self.j.e.on([
|
|
37689
37807
|
self.editor.querySelector('.jodit_bottomright'),
|
|
37690
37808
|
self.cropHandler
|
|
@@ -37693,11 +37811,11 @@ var TABS = {
|
|
|
37693
37811
|
self.showCrop();
|
|
37694
37812
|
_this.j.e.fire(self.cropHandler, 'updatesize');
|
|
37695
37813
|
});
|
|
37696
|
-
self.j.e.on((0,
|
|
37814
|
+
self.j.e.on((0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(_this.editor.querySelectorAll(".".concat(jie, "__slider-title"))), 'click', _this.onTitleModeClick).on([
|
|
37697
37815
|
widthInput,
|
|
37698
37816
|
heightInput
|
|
37699
37817
|
], 'input', _this.onChangeSizeInput);
|
|
37700
|
-
var _refs1 = (0,
|
|
37818
|
+
var _refs1 = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(_this.editor), keepAspectRatioResize = _refs1.keepAspectRatioResize, keepAspectRatioCrop = _refs1.keepAspectRatioCrop;
|
|
37701
37819
|
if (keepAspectRatioResize) {
|
|
37702
37820
|
keepAspectRatioResize.addEventListener('change', function() {
|
|
37703
37821
|
_this.resizeUseRatio = keepAspectRatioResize.checked;
|
|
@@ -37709,7 +37827,7 @@ var TABS = {
|
|
|
37709
37827
|
});
|
|
37710
37828
|
}
|
|
37711
37829
|
self.j.e.on(self.resizeHandler, 'updatesize', function() {
|
|
37712
|
-
(0,
|
|
37830
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.resizeHandler, {
|
|
37713
37831
|
top: 0,
|
|
37714
37832
|
left: 0,
|
|
37715
37833
|
width: self.image.offsetWidth || self.naturalWidth,
|
|
@@ -37720,7 +37838,7 @@ var TABS = {
|
|
|
37720
37838
|
if (!self.cropImage) {
|
|
37721
37839
|
return;
|
|
37722
37840
|
}
|
|
37723
|
-
var new_x = (0,
|
|
37841
|
+
var new_x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left'), new_y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top'), new_width = self.cropHandler.offsetWidth, new_height = self.cropHandler.offsetHeight;
|
|
37724
37842
|
if (new_x < 0) {
|
|
37725
37843
|
new_x = 0;
|
|
37726
37844
|
}
|
|
@@ -37739,7 +37857,7 @@ var TABS = {
|
|
|
37739
37857
|
new_width = new_height * self.ratio;
|
|
37740
37858
|
}
|
|
37741
37859
|
}
|
|
37742
|
-
(0,
|
|
37860
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, {
|
|
37743
37861
|
width: new_width,
|
|
37744
37862
|
height: new_height,
|
|
37745
37863
|
left: new_x,
|
|
@@ -37758,7 +37876,7 @@ var TABS = {
|
|
|
37758
37876
|
switch(button){
|
|
37759
37877
|
case self.buttons.saveas:
|
|
37760
37878
|
self.j.prompt('Enter new name', 'Save in new file', function(name) {
|
|
37761
|
-
if (!(0,
|
|
37879
|
+
if (!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)(name)) {
|
|
37762
37880
|
self.j.alert('The name should not be empty');
|
|
37763
37881
|
return false;
|
|
37764
37882
|
}
|
|
@@ -37774,7 +37892,7 @@ var TABS = {
|
|
|
37774
37892
|
break;
|
|
37775
37893
|
case self.buttons.reset:
|
|
37776
37894
|
if (self.activeTab === TABS.resize) {
|
|
37777
|
-
(0,
|
|
37895
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, {
|
|
37778
37896
|
width: null,
|
|
37779
37897
|
height: null
|
|
37780
37898
|
});
|
|
@@ -37789,18 +37907,24 @@ var TABS = {
|
|
|
37789
37907
|
});
|
|
37790
37908
|
});
|
|
37791
37909
|
};
|
|
37792
|
-
_this.options = editor && editor.o && editor.o.imageeditor ? editor.o.imageeditor :
|
|
37910
|
+
_this.options = editor && editor.o && editor.o.imageeditor ? editor.o.imageeditor : _config_js__WEBPACK_IMPORTED_MODULE_10__.Config.defaultOptions.imageeditor;
|
|
37793
37911
|
var o = _this.options;
|
|
37794
37912
|
_this.resizeUseRatio = o.resizeUseRatio;
|
|
37795
37913
|
_this.cropUseRatio = o.cropUseRatio;
|
|
37796
37914
|
_this.buttons = {
|
|
37797
|
-
reset: (0,
|
|
37798
|
-
save: (0,
|
|
37799
|
-
saveas: (0,
|
|
37915
|
+
reset: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(_this.j, 'update', 'Reset'),
|
|
37916
|
+
save: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(_this.j, 'save', 'Save'),
|
|
37917
|
+
saveas: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(_this.j, {
|
|
37918
|
+
icon: {
|
|
37919
|
+
name: 'save'
|
|
37920
|
+
},
|
|
37921
|
+
name: 'save-as',
|
|
37922
|
+
text: 'Save as ...'
|
|
37923
|
+
})
|
|
37800
37924
|
};
|
|
37801
37925
|
_this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
37802
|
-
_this.editor = (0,
|
|
37803
|
-
var _refs = (0,
|
|
37926
|
+
_this.editor = (0,_templates_form_js__WEBPACK_IMPORTED_MODULE_12__.form)(_this.j, _this.options);
|
|
37927
|
+
var _refs = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(_this.editor), resizeBox = _refs.resizeBox, cropBox = _refs.cropBox;
|
|
37804
37928
|
_this.resize_box = resizeBox;
|
|
37805
37929
|
_this.crop_box = cropBox;
|
|
37806
37930
|
_this.sizes = _this.editor.querySelector(".".concat(jie, "__area.").concat(jie, "__area_crop .jodit-image-editor__sizes"));
|
|
@@ -37873,9 +37997,9 @@ var TABS = {
|
|
|
37873
37997
|
return this.j.async.promise(function(resolve) {
|
|
37874
37998
|
var timestamp = new Date().getTime();
|
|
37875
37999
|
_this.image = _this.j.c.element('img');
|
|
37876
|
-
(0,
|
|
37877
|
-
(0,
|
|
37878
|
-
(0,
|
|
38000
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)('img,.jodit-icon_loader', _this.resize_box).forEach(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove);
|
|
38001
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)('img,.jodit-icon_loader', _this.crop_box).forEach(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove);
|
|
38002
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(_this.cropHandler, 'background', 'transparent');
|
|
37879
38003
|
_this.onSave = save;
|
|
37880
38004
|
_this.resize_box.appendChild(_this.j.c.element('i', {
|
|
37881
38005
|
class: 'jodit-icon_loader'
|
|
@@ -37890,7 +38014,7 @@ var TABS = {
|
|
|
37890
38014
|
}
|
|
37891
38015
|
_this.image.setAttribute('src', url);
|
|
37892
38016
|
_this._dialog.open();
|
|
37893
|
-
var _refs = (0,
|
|
38017
|
+
var _refs = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(_this.editor), widthInput = _refs.widthInput, heightInput = _refs.heightInput;
|
|
37894
38018
|
var onload = function onload1() {
|
|
37895
38019
|
if (_this.isDestructed) {
|
|
37896
38020
|
return;
|
|
@@ -37904,7 +38028,7 @@ var TABS = {
|
|
|
37904
38028
|
_this.resize_box.appendChild(_this.image);
|
|
37905
38029
|
_this.cropImage = _this.image.cloneNode(true);
|
|
37906
38030
|
_this.crop_box.appendChild(_this.cropImage);
|
|
37907
|
-
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove.apply(null, (0,
|
|
38031
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove.apply(null, (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)('.jodit-icon_loader', _this.editor));
|
|
37908
38032
|
if (_this.activeTab === TABS.crop) {
|
|
37909
38033
|
_this.showCrop();
|
|
37910
38034
|
}
|
|
@@ -37929,11 +38053,11 @@ var TABS = {
|
|
|
37929
38053
|
if (!slide) {
|
|
37930
38054
|
return;
|
|
37931
38055
|
}
|
|
37932
|
-
(0,
|
|
38056
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)(".".concat(jie, "__slider,.").concat(jie, "__area"), self.editor).forEach(function(elm) {
|
|
37933
38057
|
return elm.classList.remove("".concat(jie, "_active"));
|
|
37934
38058
|
});
|
|
37935
38059
|
slide.classList.add("".concat(jie, "_active"));
|
|
37936
|
-
this.activeTab = (0,
|
|
38060
|
+
this.activeTab = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(slide, '-area') || TABS.resize;
|
|
37937
38061
|
var tab = self.editor.querySelector(".".concat(jie, "__area.").concat(jie, "__area_") + self.activeTab);
|
|
37938
38062
|
if (tab) {
|
|
37939
38063
|
tab.classList.add("".concat(jie, "_active"));
|
|
@@ -37946,14 +38070,14 @@ var TABS = {
|
|
|
37946
38070
|
{
|
|
37947
38071
|
key: "onChangeSizeInput",
|
|
37948
38072
|
value: function onChangeSizeInput(e) {
|
|
37949
|
-
var self = this, input = e.target, _refs = (0,
|
|
38073
|
+
var self = this, input = e.target, _refs = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor), widthInput = _refs.widthInput, heightInput = _refs.heightInput, isWidth = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(input, 'data-ref') === 'widthInput', x = parseInt(input.value, 10), minX = isWidth ? self.o.min_width : self.o.min_height, minY = !isWidth ? self.o.min_width : self.o.min_height;
|
|
37950
38074
|
var y;
|
|
37951
38075
|
if (x > minX) {
|
|
37952
|
-
(0,
|
|
38076
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, isWidth ? 'width' : 'height', x);
|
|
37953
38077
|
if (self.resizeUseRatio) {
|
|
37954
38078
|
y = isWidth ? Math.round(x / self.ratio) : Math.round(x * self.ratio);
|
|
37955
38079
|
if (y > minY) {
|
|
37956
|
-
(0,
|
|
38080
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, !isWidth ? 'width' : 'height', y);
|
|
37957
38081
|
if (isWidth) {
|
|
37958
38082
|
heightInput.value = y.toString();
|
|
37959
38083
|
} else {
|
|
@@ -37976,8 +38100,8 @@ var TABS = {
|
|
|
37976
38100
|
self.start_x = e.clientX;
|
|
37977
38101
|
self.start_y = e.clientY;
|
|
37978
38102
|
if (self.activeTab === TABS.crop) {
|
|
37979
|
-
self.top_x = (0,
|
|
37980
|
-
self.top_y = (0,
|
|
38103
|
+
self.top_x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left');
|
|
38104
|
+
self.top_y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top');
|
|
37981
38105
|
self.width = self.cropHandler.offsetWidth;
|
|
37982
38106
|
self.height = self.cropHandler.offsetHeight;
|
|
37983
38107
|
} else {
|
|
@@ -38004,7 +38128,7 @@ var TABS = {
|
|
|
38004
38128
|
if (!self.clicked) {
|
|
38005
38129
|
return;
|
|
38006
38130
|
}
|
|
38007
|
-
var _refs = (0,
|
|
38131
|
+
var _refs = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor), widthInput = _refs.widthInput, heightInput = _refs.heightInput;
|
|
38008
38132
|
self.diff_x = e.clientX - self.start_x;
|
|
38009
38133
|
self.diff_y = e.clientY - self.start_y;
|
|
38010
38134
|
if (self.activeTab === TABS.resize && self.resizeUseRatio || self.activeTab === TABS.crop && self.cropUseRatio) {
|
|
@@ -38021,11 +38145,11 @@ var TABS = {
|
|
|
38021
38145
|
}
|
|
38022
38146
|
if (self.activeTab === TABS.resize) {
|
|
38023
38147
|
if (self.new_w > self.o.resizeMinWidth) {
|
|
38024
|
-
(0,
|
|
38148
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, 'width', self.new_w + 'px');
|
|
38025
38149
|
widthInput.value = self.new_w.toString();
|
|
38026
38150
|
}
|
|
38027
38151
|
if (self.new_h > self.o.resizeMinHeight) {
|
|
38028
|
-
(0,
|
|
38152
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, 'height', self.new_h + 'px');
|
|
38029
38153
|
heightInput.value = self.new_h.toString();
|
|
38030
38154
|
}
|
|
38031
38155
|
this.j.e.fire(self.resizeHandler, 'updatesize');
|
|
@@ -38037,7 +38161,7 @@ var TABS = {
|
|
|
38037
38161
|
if (self.top_y + self.new_h > self.cropImage.offsetHeight) {
|
|
38038
38162
|
self.new_h = self.cropImage.offsetHeight - self.top_y;
|
|
38039
38163
|
}
|
|
38040
|
-
(0,
|
|
38164
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, {
|
|
38041
38165
|
width: self.new_w,
|
|
38042
38166
|
height: self.new_h
|
|
38043
38167
|
});
|
|
@@ -38045,11 +38169,11 @@ var TABS = {
|
|
|
38045
38169
|
if (self.top_x + self.diff_x + self.cropHandler.offsetWidth > self.cropImage.offsetWidth) {
|
|
38046
38170
|
self.diff_x = self.cropImage.offsetWidth - self.top_x - self.cropHandler.offsetWidth;
|
|
38047
38171
|
}
|
|
38048
|
-
(0,
|
|
38172
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left', self.top_x + self.diff_x);
|
|
38049
38173
|
if (self.top_y + self.diff_y + self.cropHandler.offsetHeight > self.cropImage.offsetHeight) {
|
|
38050
38174
|
self.diff_y = self.cropImage.offsetHeight - self.top_y - self.cropHandler.offsetHeight;
|
|
38051
38175
|
}
|
|
38052
|
-
(0,
|
|
38176
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top', self.top_y + self.diff_y);
|
|
38053
38177
|
}
|
|
38054
38178
|
this.j.e.fire(self.cropHandler, 'updatesize');
|
|
38055
38179
|
}
|
|
@@ -38119,7 +38243,7 @@ ImageEditor = ImageEditor_1 = __decorate([
|
|
|
38119
38243
|
*/ function openImageEditor(href, name, path, source, onSuccess, onFailed) {
|
|
38120
38244
|
var _this = this;
|
|
38121
38245
|
return this.getInstance('ImageEditor', this.o).open(href, function(newname, box, success, failed) {
|
|
38122
|
-
return (0,
|
|
38246
|
+
return (0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_8__.call)(box.action === 'resize' ? _this.dataProvider.resize : _this.dataProvider.crop, path, source, name, newname, box.box).then(function(ok) {
|
|
38123
38247
|
if (ok) {
|
|
38124
38248
|
success();
|
|
38125
38249
|
if (onSuccess) {
|
|
@@ -47670,7 +47794,8 @@ var UIGroup = UIGroup_1 = /*#__PURE__*/ function(UIElement) {
|
|
|
47670
47794
|
{
|
|
47671
47795
|
key: "getRole",
|
|
47672
47796
|
value: function getRole() {
|
|
47673
|
-
|
|
47797
|
+
var _a;
|
|
47798
|
+
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || 'list';
|
|
47674
47799
|
}
|
|
47675
47800
|
},
|
|
47676
47801
|
{
|
|
@@ -58161,6 +58286,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58161
58286
|
return 'listitem';
|
|
58162
58287
|
}
|
|
58163
58288
|
},
|
|
58289
|
+
{
|
|
58290
|
+
key: "updateAriaLabel",
|
|
58291
|
+
value: function updateAriaLabel() {
|
|
58292
|
+
_get(_get_prototype_of(ToolbarButton.prototype), "updateAriaLabel", this).call(this);
|
|
58293
|
+
if (this.trigger) {
|
|
58294
|
+
var i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
58295
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
58296
|
+
}
|
|
58297
|
+
}
|
|
58298
|
+
},
|
|
58164
58299
|
{
|
|
58165
58300
|
key: "toolbar",
|
|
58166
58301
|
get: /**
|
|
@@ -58257,7 +58392,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58257
58392
|
value: this
|
|
58258
58393
|
});
|
|
58259
58394
|
container.appendChild(button);
|
|
58260
|
-
var trigger = this.j.c.fromHTML('<span role="
|
|
58395
|
+
var trigger = this.j.c.fromHTML('<span role="button" aria-haspopup="true" aria-expanded="false" class="'.concat(cn, '__trigger">').concat(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__.Icon.get('chevron'), "</span>"));
|
|
58261
58396
|
// For caching
|
|
58262
58397
|
button.appendChild(trigger);
|
|
58263
58398
|
return container;
|
|
@@ -58332,6 +58467,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58332
58467
|
return;
|
|
58333
58468
|
}
|
|
58334
58469
|
var _this1 = this, ctr = _this1.control;
|
|
58470
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'aria-expanded', true);
|
|
58335
58471
|
e.buffer = {
|
|
58336
58472
|
actionTrigger: this
|
|
58337
58473
|
};
|
|
@@ -58465,6 +58601,9 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58465
58601
|
this.openedPopup.close();
|
|
58466
58602
|
this.openedPopup.destruct();
|
|
58467
58603
|
this.openedPopup = null;
|
|
58604
|
+
if (this.trigger) {
|
|
58605
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'aria-expanded', false);
|
|
58606
|
+
}
|
|
58468
58607
|
}
|
|
58469
58608
|
}
|
|
58470
58609
|
},
|
|
@@ -64303,7 +64442,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
64303
64442
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
64304
64443
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
64305
64444
|
}
|
|
64306
|
-
var APP_VERSION = "4.9.
|
|
64445
|
+
var APP_VERSION = "4.9.27";
|
|
64307
64446
|
// prettier-ignore
|
|
64308
64447
|
var ES = "es5";
|
|
64309
64448
|
var IS_ES_MODERN = false;
|
|
@@ -65078,11 +65217,13 @@ ToolbarSelect = __decorate([
|
|
|
65078
65217
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
65079
65218
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
65080
65219
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
65081
|
-
/* harmony import */ var
|
|
65082
|
-
/* harmony import */ var
|
|
65083
|
-
/* harmony import */ var
|
|
65084
|
-
/* harmony import */ var
|
|
65085
|
-
/* harmony import */ var
|
|
65220
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49055);
|
|
65221
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29960);
|
|
65222
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76078);
|
|
65223
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
|
|
65224
|
+
/* harmony import */ var _modules_context_menu_context_menu_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80870);
|
|
65225
|
+
/* harmony import */ var _modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(21491);
|
|
65226
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(86012);
|
|
65086
65227
|
function _assert_this_initialized(self) {
|
|
65087
65228
|
if (self === void 0) {
|
|
65088
65229
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -65242,6 +65383,8 @@ function _is_native_reflect_construct() {
|
|
|
65242
65383
|
|
|
65243
65384
|
|
|
65244
65385
|
|
|
65386
|
+
|
|
65387
|
+
|
|
65245
65388
|
/**
|
|
65246
65389
|
* Show a path to a current element in status bar
|
|
65247
65390
|
*/ var xpath = /*#__PURE__*/ function(Plugin) {
|
|
@@ -65253,7 +65396,7 @@ function _is_native_reflect_construct() {
|
|
|
65253
65396
|
_this = _call_super(this, xpath, arguments);
|
|
65254
65397
|
_this.onContext = function(bindElement, event) {
|
|
65255
65398
|
if (!_this.menu) {
|
|
65256
|
-
_this.menu = new
|
|
65399
|
+
_this.menu = new _modules_context_menu_context_menu_js__WEBPACK_IMPORTED_MODULE_7__.ContextMenu(_this.j);
|
|
65257
65400
|
}
|
|
65258
65401
|
_this.menu.show(event.clientX, event.clientY, [
|
|
65259
65402
|
{
|
|
@@ -65280,7 +65423,7 @@ function _is_native_reflect_construct() {
|
|
|
65280
65423
|
};
|
|
65281
65424
|
_this.onSelectPath = function(bindElement, event) {
|
|
65282
65425
|
_this.j.s.focus();
|
|
65283
|
-
var path = (0,
|
|
65426
|
+
var path = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(event.target, '-path') || '/';
|
|
65284
65427
|
if (path === '/') {
|
|
65285
65428
|
_this.j.execCommand('selectall');
|
|
65286
65429
|
return false;
|
|
@@ -65296,7 +65439,7 @@ function _is_native_reflect_construct() {
|
|
|
65296
65439
|
return false;
|
|
65297
65440
|
};
|
|
65298
65441
|
_this.tpl = function(bindElement, path, name, title) {
|
|
65299
|
-
var item = _this.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(path, '" title="').concat(title, '" tabindex="-1"\'>').concat((0,
|
|
65442
|
+
var item = _this.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(path, '" title="').concat(title, '" tabindex="-1"\'>').concat((0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__.trim)(name), "</a></span>"));
|
|
65300
65443
|
var a = item.firstChild;
|
|
65301
65444
|
_this.j.e.on(a, 'click', _this.onSelectPath.bind(_this, bindElement)).on(a, 'contextmenu', _this.onContext.bind(_this, bindElement));
|
|
65302
65445
|
return item;
|
|
@@ -65309,7 +65452,7 @@ function _is_native_reflect_construct() {
|
|
|
65309
65452
|
};
|
|
65310
65453
|
_this.appendSelectAll = function() {
|
|
65311
65454
|
_this.removeSelectAll();
|
|
65312
|
-
_this.selectAllButton = (0,
|
|
65455
|
+
_this.selectAllButton = (0,_modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__.makeButton)(_this.j, _object_spread({
|
|
65313
65456
|
name: 'selectall'
|
|
65314
65457
|
}, _this.j.o.controls.selectall));
|
|
65315
65458
|
_this.selectAllButton.state.size = 'tiny';
|
|
@@ -65328,7 +65471,7 @@ function _is_native_reflect_construct() {
|
|
|
65328
65471
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.up(current, function(elm) {
|
|
65329
65472
|
if (elm && _this.j.editor !== elm && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(elm) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isComment(elm)) {
|
|
65330
65473
|
name = elm.nodeName.toLowerCase();
|
|
65331
|
-
xpth = (0,
|
|
65474
|
+
xpth = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_5__.getXPathByElement)(elm, _this.j.editor).replace(/^\//, '');
|
|
65332
65475
|
li = _this.tpl(elm, xpth, name, _this.j.i18n('Select %s', name));
|
|
65333
65476
|
_this.container && _this.container.insertBefore(li, _this.container.firstChild);
|
|
65334
65477
|
}
|
|
@@ -65346,6 +65489,7 @@ function _is_native_reflect_construct() {
|
|
|
65346
65489
|
var _this = this;
|
|
65347
65490
|
if (this.j.o.showXPathInStatusbar) {
|
|
65348
65491
|
this.container = this.j.c.div('jodit-xpath');
|
|
65492
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(this.container, 'role', 'list');
|
|
65349
65493
|
var init = function init() {
|
|
65350
65494
|
if (!_this.j.o.showXPathInStatusbar || !_this.container) {
|
|
65351
65495
|
return;
|
|
@@ -65360,7 +65504,7 @@ function _is_native_reflect_construct() {
|
|
|
65360
65504
|
_this.appendSelectAll();
|
|
65361
65505
|
}
|
|
65362
65506
|
};
|
|
65363
|
-
this.j.e.off('.xpath').on('
|
|
65507
|
+
this.j.e.off('.xpath').on('pointerup.xpath change.xpath keydown.xpath changeSelection.xpath', this.calcPath).on('afterSetMode.xpath afterInit.xpath changePlace.xpath', init);
|
|
65364
65508
|
init();
|
|
65365
65509
|
this.calcPath();
|
|
65366
65510
|
}
|
|
@@ -65381,7 +65525,7 @@ function _is_native_reflect_construct() {
|
|
|
65381
65525
|
}
|
|
65382
65526
|
]);
|
|
65383
65527
|
return xpath;
|
|
65384
|
-
}(_wrap_native_super(
|
|
65528
|
+
}(_wrap_native_super(_core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin));
|
|
65385
65529
|
_core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
65386
65530
|
|
|
65387
65531
|
|