jodit-pro 4.13.35 → 4.13.37
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +199 -109
- package/es2015/jodit.min.js +10 -10
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.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 +5 -5
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- 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/image-editor-pro/image-editor-pro.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/templates/templates.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 +8 -8
- package/es2021/jodit.js +199 -109
- package/es2021/jodit.min.js +8 -8
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.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 +8 -8
- package/es2021.en/jodit.js +199 -109
- package/es2021.en/jodit.min.js +8 -8
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.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 +216 -113
- 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 +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.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/package.json +1 -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.13.
|
|
4
|
+
* Version: v4.13.37
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2299,7 +2299,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2299
2299
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2300
2300
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2301
2301
|
}
|
|
2302
|
-
var APP_VERSION = "4.13.
|
|
2302
|
+
var APP_VERSION = "4.13.37";
|
|
2303
2303
|
// prettier-ignore
|
|
2304
2304
|
var ES = "es5";
|
|
2305
2305
|
var IS_ES_MODERN = false;
|
|
@@ -40379,26 +40379,27 @@ var instance = function instance(j) {
|
|
|
40379
40379
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
40380
40380
|
/* harmony export */ });
|
|
40381
40381
|
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
40382
|
-
/* harmony import */ var
|
|
40383
|
-
/* harmony import */ var
|
|
40384
|
-
/* harmony import */ var
|
|
40385
|
-
/* harmony import */ var
|
|
40386
|
-
/* harmony import */ var
|
|
40387
|
-
/* harmony import */ var
|
|
40388
|
-
/* harmony import */ var
|
|
40389
|
-
/* harmony import */ var
|
|
40390
|
-
/* harmony import */ var
|
|
40391
|
-
/* harmony import */ var
|
|
40392
|
-
/* harmony import */ var
|
|
40393
|
-
/* harmony import */ var
|
|
40394
|
-
/* harmony import */ var
|
|
40395
|
-
/* harmony import */ var
|
|
40396
|
-
/* harmony import */ var
|
|
40397
|
-
/* harmony import */ var
|
|
40398
|
-
/* harmony import */ var
|
|
40399
|
-
/* harmony import */ var
|
|
40400
|
-
/* harmony import */ var
|
|
40401
|
-
/* harmony import */ var
|
|
40382
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
40383
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45219);
|
|
40384
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33433);
|
|
40385
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87325);
|
|
40386
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37133);
|
|
40387
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
40388
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68345);
|
|
40389
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23282);
|
|
40390
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(19306);
|
|
40391
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72430);
|
|
40392
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(70799);
|
|
40393
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(56175);
|
|
40394
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(87058);
|
|
40395
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(38837);
|
|
40396
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29960);
|
|
40397
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(37790);
|
|
40398
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62843);
|
|
40399
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(72157);
|
|
40400
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(12153);
|
|
40401
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(56917);
|
|
40402
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(21491);
|
|
40402
40403
|
function _array_like_to_array(arr, len) {
|
|
40403
40404
|
if (len == null || len > arr.length) len = arr.length;
|
|
40404
40405
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -40601,6 +40602,7 @@ function _is_native_reflect_construct() {
|
|
|
40601
40602
|
|
|
40602
40603
|
|
|
40603
40604
|
|
|
40605
|
+
|
|
40604
40606
|
|
|
40605
40607
|
|
|
40606
40608
|
var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
@@ -40615,21 +40617,21 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40615
40617
|
]);
|
|
40616
40618
|
_this.control = control;
|
|
40617
40619
|
_this.target = target;
|
|
40618
|
-
_this.state = _object_spread_props(_object_spread({}, (0,
|
|
40620
|
+
_this.state = _object_spread_props(_object_spread({}, (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButtonState)()), {
|
|
40619
40621
|
theme: 'toolbar',
|
|
40620
40622
|
currentValue: '',
|
|
40621
40623
|
hasTrigger: false
|
|
40622
40624
|
});
|
|
40623
40625
|
_this.openedPopup = null;
|
|
40624
40626
|
var button = _this.getElm('button');
|
|
40625
|
-
(0,
|
|
40627
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_14__.assert)(button, 'Element button should exists');
|
|
40626
40628
|
_this.button = button;
|
|
40627
40629
|
Object.defineProperty(button, 'component', {
|
|
40628
40630
|
value: _this,
|
|
40629
40631
|
configurable: true
|
|
40630
40632
|
});
|
|
40631
40633
|
var trigger = _this.getElm('trigger');
|
|
40632
|
-
(0,
|
|
40634
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_14__.assert)(trigger, 'Element trigger should exists');
|
|
40633
40635
|
_this.trigger = trigger;
|
|
40634
40636
|
trigger.remove();
|
|
40635
40637
|
// Prevent lost focus
|
|
@@ -40670,7 +40672,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40670
40672
|
_get(_get_prototype_of(ToolbarButton.prototype), "updateAriaLabel", this).call(this);
|
|
40671
40673
|
if (this.trigger) {
|
|
40672
40674
|
var i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
40673
|
-
(0,
|
|
40675
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
40674
40676
|
}
|
|
40675
40677
|
}
|
|
40676
40678
|
},
|
|
@@ -40679,7 +40681,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40679
40681
|
get: /**
|
|
40680
40682
|
* Get parent toolbar
|
|
40681
40683
|
*/ function get() {
|
|
40682
|
-
var ToolbarCollection = (0,
|
|
40684
|
+
var ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_4__.getComponentClass)('ToolbarCollection');
|
|
40683
40685
|
return this.closest(ToolbarCollection);
|
|
40684
40686
|
}
|
|
40685
40687
|
},
|
|
@@ -40707,7 +40709,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40707
40709
|
*/ key: "__calculateActivatedStatus",
|
|
40708
40710
|
value: function __calculateActivatedStatus(tc) {
|
|
40709
40711
|
var _a, _b;
|
|
40710
|
-
if ((0,
|
|
40712
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_9__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
40711
40713
|
return false;
|
|
40712
40714
|
}
|
|
40713
40715
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -40737,14 +40739,14 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40737
40739
|
{
|
|
40738
40740
|
key: "onChangeActivated",
|
|
40739
40741
|
value: function onChangeActivated() {
|
|
40740
|
-
(0,
|
|
40742
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
40741
40743
|
_get(_get_prototype_of(ToolbarButton.prototype), "onChangeActivated", this).call(this);
|
|
40742
40744
|
}
|
|
40743
40745
|
},
|
|
40744
40746
|
{
|
|
40745
40747
|
key: "onChangeText",
|
|
40746
40748
|
value: function onChangeText() {
|
|
40747
|
-
if ((0,
|
|
40749
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(this.control.template)) {
|
|
40748
40750
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
40749
40751
|
} else {
|
|
40750
40752
|
_get(_get_prototype_of(ToolbarButton.prototype), "onChangeText", this).call(this);
|
|
@@ -40755,7 +40757,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40755
40757
|
{
|
|
40756
40758
|
key: "onChangeTabIndex",
|
|
40757
40759
|
value: function onChangeTabIndex() {
|
|
40758
|
-
(0,
|
|
40760
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
40761
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
40759
40762
|
}
|
|
40760
40763
|
},
|
|
40761
40764
|
{
|
|
@@ -40771,7 +40774,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40771
40774
|
configurable: true
|
|
40772
40775
|
});
|
|
40773
40776
|
container.appendChild(button);
|
|
40774
|
-
var trigger = this.j.c.fromHTML('<span role="button" aria-haspopup="true" aria-expanded="false" class="'.concat(cn, '__trigger">').concat(
|
|
40777
|
+
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_19__.Icon.get('chevron'), "</span>"));
|
|
40775
40778
|
// For caching
|
|
40776
40779
|
button.appendChild(trigger);
|
|
40777
40780
|
return container;
|
|
@@ -40790,7 +40793,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40790
40793
|
if (this.state.hasTrigger) {
|
|
40791
40794
|
this.container.appendChild(this.trigger);
|
|
40792
40795
|
} else {
|
|
40793
|
-
|
|
40796
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(this.trigger);
|
|
40794
40797
|
}
|
|
40795
40798
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
40796
40799
|
}
|
|
@@ -40799,9 +40802,9 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40799
40802
|
/** @override */ key: "onChangeDisabled",
|
|
40800
40803
|
value: function onChangeDisabled() {
|
|
40801
40804
|
var disabled = this.state.disabled ? 'disabled' : null;
|
|
40802
|
-
(0,
|
|
40803
|
-
(0,
|
|
40804
|
-
(0,
|
|
40805
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'disabled', disabled);
|
|
40806
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.button, 'disabled', disabled);
|
|
40807
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.container, 'disabled', disabled);
|
|
40805
40808
|
}
|
|
40806
40809
|
},
|
|
40807
40810
|
{
|
|
@@ -40814,7 +40817,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40814
40817
|
state.name = ctr.name;
|
|
40815
40818
|
this.__initIconFromControl();
|
|
40816
40819
|
if (ctr.tooltip) {
|
|
40817
|
-
state.tooltip = (0,
|
|
40820
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
40818
40821
|
}
|
|
40819
40822
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
40820
40823
|
}
|
|
@@ -40825,12 +40828,12 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40825
40828
|
var _a;
|
|
40826
40829
|
var _this = this, ctr = _this.control, state = _this.state;
|
|
40827
40830
|
var textIcons = this.j.o.textIcons;
|
|
40828
|
-
if (textIcons === true || (0,
|
|
40829
|
-
state.icon = (0,
|
|
40831
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
40832
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButtonState)().icon;
|
|
40830
40833
|
state.text = ctr.text || ctr.name;
|
|
40831
40834
|
return;
|
|
40832
40835
|
}
|
|
40833
|
-
if (!(0,
|
|
40836
|
+
if (!(0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(ctr.icon) && ctr.icon != null) {
|
|
40834
40837
|
state.icon = {
|
|
40835
40838
|
name: ctr.icon.name || ctr.name,
|
|
40836
40839
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -40843,7 +40846,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40843
40846
|
state.icon.iconURL = ctr.iconURL;
|
|
40844
40847
|
} else {
|
|
40845
40848
|
var name = ctr.icon || ctr.name;
|
|
40846
|
-
state.icon.name =
|
|
40849
|
+
state.icon.name = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_19__.Icon.exists(name) || ((_a = this.j.o.extraIcons) === null || _a === void 0 ? void 0 : _a[name]) ? name : '';
|
|
40847
40850
|
}
|
|
40848
40851
|
if (!ctr.iconURL && !state.icon.name) {
|
|
40849
40852
|
state.text = ctr.text || ctr.name;
|
|
@@ -40862,23 +40865,23 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40862
40865
|
return;
|
|
40863
40866
|
}
|
|
40864
40867
|
var _this1 = this, ctr = _this1.control;
|
|
40865
|
-
(0,
|
|
40868
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-expanded', true);
|
|
40866
40869
|
e.buffer = {
|
|
40867
40870
|
actionTrigger: this
|
|
40868
40871
|
};
|
|
40869
40872
|
if (ctr.list) {
|
|
40870
40873
|
return this.__openControlList(ctr);
|
|
40871
40874
|
}
|
|
40872
|
-
if ((0,
|
|
40875
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.popup)) {
|
|
40873
40876
|
var popup = this.openPopup();
|
|
40874
40877
|
popup.parentElement = this;
|
|
40875
40878
|
try {
|
|
40876
|
-
if (this.j.e.fire((0,
|
|
40879
|
+
if (this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_13__.camelCase)("before-".concat(ctr.name, "-open-popup")), this.target, ctr, popup) !== false) {
|
|
40877
40880
|
var target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
40878
40881
|
var elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
40879
40882
|
if (elm) {
|
|
40880
|
-
popup.setContent((0,
|
|
40881
|
-
return (0,
|
|
40883
|
+
popup.setContent((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(function() {
|
|
40884
|
+
return (0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_12__.position)(_this.container);
|
|
40882
40885
|
}, false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
40883
40886
|
} else {
|
|
40884
40887
|
this.__closePopup();
|
|
@@ -40892,8 +40895,22 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40892
40895
|
* Fired after the popup was opened for some control button
|
|
40893
40896
|
*/ /**
|
|
40894
40897
|
* Close all opened popups
|
|
40895
|
-
*/ this.j.e.fire((0,
|
|
40898
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_13__.camelCase)("after-".concat(ctr.name, "-open-popup")), popup.container);
|
|
40899
|
+
}
|
|
40900
|
+
}
|
|
40901
|
+
},
|
|
40902
|
+
{
|
|
40903
|
+
key: "onTriggerKeyDown",
|
|
40904
|
+
value: function onTriggerKeyDown(e) {
|
|
40905
|
+
if (this.state.disabled || ![
|
|
40906
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ENTER,
|
|
40907
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_SPACE,
|
|
40908
|
+
' '
|
|
40909
|
+
].includes(e.key)) {
|
|
40910
|
+
return;
|
|
40896
40911
|
}
|
|
40912
|
+
e.preventDefault();
|
|
40913
|
+
this.trigger.click();
|
|
40897
40914
|
}
|
|
40898
40915
|
},
|
|
40899
40916
|
{
|
|
@@ -40904,24 +40921,24 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40904
40921
|
var _this = this;
|
|
40905
40922
|
var _a;
|
|
40906
40923
|
var controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = function getControl(key) {
|
|
40907
|
-
return (0,
|
|
40924
|
+
return (0,_core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_18__.findControlType)(key, controls);
|
|
40908
40925
|
};
|
|
40909
40926
|
var list = control.list;
|
|
40910
40927
|
var menu = this.openPopup();
|
|
40911
|
-
var toolbar = (0,
|
|
40928
|
+
var toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_21__.makeCollection)(this.j);
|
|
40912
40929
|
menu.parentElement = this;
|
|
40913
40930
|
toolbar.parentElement = menu;
|
|
40914
40931
|
toolbar.mode = 'vertical';
|
|
40915
40932
|
var isListItem = function isListItem(key) {
|
|
40916
|
-
return (0,
|
|
40933
|
+
return (0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_10__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
40917
40934
|
};
|
|
40918
40935
|
var getButton = function getButton(key, value) {
|
|
40919
|
-
if ((0,
|
|
40936
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(value) && getControl(value)) {
|
|
40920
40937
|
return _object_spread({
|
|
40921
40938
|
name: value.toString()
|
|
40922
40939
|
}, getControl(value));
|
|
40923
40940
|
}
|
|
40924
|
-
if ((0,
|
|
40941
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(key) && getControl(key)) {
|
|
40925
40942
|
return _object_spread({
|
|
40926
40943
|
name: key.toString()
|
|
40927
40944
|
}, getControl(key), (typeof value === "undefined" ? "undefined" : _type_of(value)) === 'object' ? value : {});
|
|
@@ -40953,16 +40970,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40953
40970
|
value
|
|
40954
40971
|
])
|
|
40955
40972
|
};
|
|
40956
|
-
if ((0,
|
|
40973
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(value)) {
|
|
40957
40974
|
childControl.text = value;
|
|
40958
40975
|
}
|
|
40959
40976
|
return childControl;
|
|
40960
40977
|
};
|
|
40961
|
-
toolbar.build((0,
|
|
40978
|
+
toolbar.build((0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_7__.isArray)(list) ? list.map(getButton) : (0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_16__.keys)(list, false).map(function(key) {
|
|
40962
40979
|
return getButton(key, list[key]);
|
|
40963
40980
|
}), this.target);
|
|
40964
40981
|
menu.setContent(toolbar).open(function() {
|
|
40965
|
-
return (0,
|
|
40982
|
+
return (0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_12__.position)(_this.container);
|
|
40966
40983
|
}, false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
40967
40984
|
this.state.activated = true;
|
|
40968
40985
|
}
|
|
@@ -40973,7 +40990,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40973
40990
|
if (!this.openedPopup) {
|
|
40974
40991
|
return;
|
|
40975
40992
|
}
|
|
40976
|
-
if (!e || !
|
|
40993
|
+
if (!e || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isNode(e.target) || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
40977
40994
|
this.__closePopup();
|
|
40978
40995
|
}
|
|
40979
40996
|
}
|
|
@@ -40982,7 +40999,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40982
40999
|
key: "openPopup",
|
|
40983
41000
|
value: function openPopup() {
|
|
40984
41001
|
this.__closePopup();
|
|
40985
|
-
this.openedPopup = new
|
|
41002
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_20__.Popup(this.j, false);
|
|
40986
41003
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
40987
41004
|
return this.openedPopup;
|
|
40988
41005
|
}
|
|
@@ -40997,7 +41014,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
40997
41014
|
this.openedPopup.destruct();
|
|
40998
41015
|
this.openedPopup = null;
|
|
40999
41016
|
if (this.trigger) {
|
|
41000
|
-
(0,
|
|
41017
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-expanded', false);
|
|
41001
41018
|
}
|
|
41002
41019
|
}
|
|
41003
41020
|
}
|
|
@@ -41009,7 +41026,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
41009
41026
|
value: function onClick(originalEvent) {
|
|
41010
41027
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
41011
41028
|
var _this = this, ctr = _this.control;
|
|
41012
|
-
if ((0,
|
|
41029
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.exec)) {
|
|
41013
41030
|
var target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
41014
41031
|
var result = ctr.exec(this.j, target, {
|
|
41015
41032
|
control: ctr,
|
|
@@ -41033,11 +41050,11 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
41033
41050
|
if (ctr.list) {
|
|
41034
41051
|
return this.__openControlList(ctr);
|
|
41035
41052
|
}
|
|
41036
|
-
if ((0,
|
|
41053
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.popup)) {
|
|
41037
41054
|
return this.onTriggerClick(originalEvent);
|
|
41038
41055
|
}
|
|
41039
41056
|
if (ctr.command || ctr.name) {
|
|
41040
|
-
(0,
|
|
41057
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_16__.call)((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_9__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
41041
41058
|
this.j.e.fire('closeAllPopups');
|
|
41042
41059
|
}
|
|
41043
41060
|
}
|
|
@@ -41051,26 +41068,29 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
41051
41068
|
}
|
|
41052
41069
|
]);
|
|
41053
41070
|
return ToolbarButton;
|
|
41054
|
-
}(
|
|
41071
|
+
}(_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButton);
|
|
41055
41072
|
__decorate([
|
|
41056
|
-
|
|
41073
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
|
|
41057
41074
|
], ToolbarButton.prototype, "createContainer", null);
|
|
41058
41075
|
__decorate([
|
|
41059
|
-
(0,
|
|
41076
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('state.hasTrigger', {
|
|
41060
41077
|
immediately: false
|
|
41061
41078
|
})
|
|
41062
41079
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
41063
41080
|
__decorate([
|
|
41064
|
-
(0,
|
|
41081
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('trigger:click')
|
|
41065
41082
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
41066
41083
|
__decorate([
|
|
41067
|
-
|
|
41084
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('trigger:keydown')
|
|
41085
|
+
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
41086
|
+
__decorate([
|
|
41087
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
41068
41088
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
41069
41089
|
__decorate([
|
|
41070
|
-
|
|
41090
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
41071
41091
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
41072
41092
|
ToolbarButton = __decorate([
|
|
41073
|
-
|
|
41093
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_4__.component
|
|
41074
41094
|
], ToolbarButton);
|
|
41075
41095
|
|
|
41076
41096
|
|
|
@@ -65367,10 +65387,36 @@ var UISearch = /*#__PURE__*/ function(UIElement) {
|
|
|
65367
65387
|
_this.replaceButton = replaceBtn;
|
|
65368
65388
|
_this.currentBox = current;
|
|
65369
65389
|
_this.countBox = count;
|
|
65390
|
+
var closeAction = function closeAction() {
|
|
65391
|
+
return _this.close();
|
|
65392
|
+
};
|
|
65393
|
+
var replaceAction = function replaceAction() {
|
|
65394
|
+
return void jodit.e.fire(_this, 'pressReplaceButton');
|
|
65395
|
+
};
|
|
65396
|
+
var nextAction = function nextAction() {
|
|
65397
|
+
return void jodit.e.fire('searchNext');
|
|
65398
|
+
};
|
|
65399
|
+
var prevAction = function prevAction() {
|
|
65400
|
+
return void jodit.e.fire('searchPrevious');
|
|
65401
|
+
};
|
|
65402
|
+
// Pointer activation is handled on `pointerdown` (returning `false`
|
|
65403
|
+
// there keeps the focus and selection intact), but activating a
|
|
65404
|
+
// native button from the keyboard (Enter/Space) fires only `click`
|
|
65405
|
+
// with `detail === 0` — handle that path separately. Pointer clicks
|
|
65406
|
+
// arrive with `detail >= 1`, so the action does not run twice.
|
|
65407
|
+
// See https://github.com/xdan/jodit/issues/1440
|
|
65408
|
+
var onKeyboardActivate = function onKeyboardActivate(action) {
|
|
65409
|
+
return function(e) {
|
|
65410
|
+
if (!e.detail) {
|
|
65411
|
+
e.preventDefault();
|
|
65412
|
+
action();
|
|
65413
|
+
}
|
|
65414
|
+
};
|
|
65415
|
+
};
|
|
65370
65416
|
jodit.e.on(_this.closeButton, 'pointerdown', function() {
|
|
65371
|
-
|
|
65417
|
+
closeAction();
|
|
65372
65418
|
return false;
|
|
65373
|
-
}).on(_this.queryInput, 'input', function() {
|
|
65419
|
+
}).on(_this.closeButton, 'click', onKeyboardActivate(closeAction)).on(_this.queryInput, 'input', function() {
|
|
65374
65420
|
_this.currentIndex = 0;
|
|
65375
65421
|
}).on(_this.queryInput, 'pointerdown', function() {
|
|
65376
65422
|
if (jodit.s.isFocused()) {
|
|
@@ -65378,15 +65424,15 @@ var UISearch = /*#__PURE__*/ function(UIElement) {
|
|
|
65378
65424
|
_this.selInfo = jodit.s.save();
|
|
65379
65425
|
}
|
|
65380
65426
|
}).on(_this.replaceButton, 'pointerdown', function() {
|
|
65381
|
-
|
|
65427
|
+
replaceAction();
|
|
65382
65428
|
return false;
|
|
65383
|
-
}).on(next, 'pointerdown', function() {
|
|
65384
|
-
|
|
65429
|
+
}).on(_this.replaceButton, 'click', onKeyboardActivate(replaceAction)).on(next, 'pointerdown', function() {
|
|
65430
|
+
nextAction();
|
|
65385
65431
|
return false;
|
|
65386
|
-
}).on(prev, 'pointerdown', function() {
|
|
65387
|
-
|
|
65432
|
+
}).on(next, 'click', onKeyboardActivate(nextAction)).on(prev, 'pointerdown', function() {
|
|
65433
|
+
prevAction();
|
|
65388
65434
|
return false;
|
|
65389
|
-
}).on(_this.queryInput, 'input', function() {
|
|
65435
|
+
}).on(prev, 'click', onKeyboardActivate(prevAction)).on(_this.queryInput, 'input', function() {
|
|
65390
65436
|
_this.setMod('empty-query', !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.trim)(_this.queryInput.value).length);
|
|
65391
65437
|
}).on(_this.queryInput, 'keydown', function() {
|
|
65392
65438
|
var debounced = _this.j.async.debounce(function(e) {
|
|
@@ -72553,12 +72599,13 @@ function findCell(editor, key) {
|
|
|
72553
72599
|
/***/ 40329:
|
|
72554
72600
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
72555
72601
|
|
|
72556
|
-
/* harmony import */ var
|
|
72557
|
-
/* harmony import */ var
|
|
72558
|
-
/* harmony import */ var
|
|
72559
|
-
/* harmony import */ var
|
|
72560
|
-
/* harmony import */ var
|
|
72561
|
-
/* harmony import */ var
|
|
72602
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
72603
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
72604
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
72605
|
+
/* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43555);
|
|
72606
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
72607
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
72608
|
+
/* harmony import */ var _table_svg_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6091);
|
|
72562
72609
|
/*!
|
|
72563
72610
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
72564
72611
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -72569,13 +72616,14 @@ function findCell(editor, key) {
|
|
|
72569
72616
|
|
|
72570
72617
|
|
|
72571
72618
|
|
|
72572
|
-
|
|
72619
|
+
|
|
72620
|
+
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.table = {
|
|
72573
72621
|
splitBlockOnInsertTable: true,
|
|
72574
72622
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
72575
72623
|
useExtraClassesOptions: false
|
|
72576
72624
|
};
|
|
72577
|
-
|
|
72578
|
-
|
|
72625
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__.Icon.set('table', _table_svg_js__WEBPACK_IMPORTED_MODULE_6__["default"]);
|
|
72626
|
+
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.table = {
|
|
72579
72627
|
data: {
|
|
72580
72628
|
cols: 10,
|
|
72581
72629
|
rows: 10,
|
|
@@ -72605,19 +72653,25 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72605
72653
|
};
|
|
72606
72654
|
var form = editor.c.fromHTML('<form class="jodit-form jodit-form__inserter">' + '<div class="jodit-form__table-creator-box">' + '<div class="jodit-form__container"></div>' + '<div class="jodit-form__options">' + generateExtraClasses() + '</div>' + '</div>' + '<label class="jodit-form__center">' + '<span>1</span> × <span>1</span>' + '</label>' + '</form>'), rows = form.querySelectorAll('span')[0], cols = form.querySelectorAll('span')[1], blocksContainer = form.querySelector('.jodit-form__container'), options = form.querySelector('.jodit-form__options'), cells = [];
|
|
72607
72655
|
var cnt = default_rows_count * default_cols_count;
|
|
72656
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(blocksContainer, {
|
|
72657
|
+
role: 'grid',
|
|
72658
|
+
ariaLabel: 'Table size',
|
|
72659
|
+
ariaRowcount: default_rows_count,
|
|
72660
|
+
ariaColcount: default_cols_count
|
|
72661
|
+
});
|
|
72608
72662
|
for(var i = 0; i < cnt; i += 1){
|
|
72609
72663
|
if (!cells[i]) {
|
|
72664
|
+
var row = Math.floor(i / default_cols_count) + 1, col = i % default_cols_count + 1;
|
|
72610
72665
|
cells.push(editor.c.element('span', {
|
|
72611
|
-
dataIndex: i
|
|
72666
|
+
dataIndex: i,
|
|
72667
|
+
role: 'gridcell',
|
|
72668
|
+
tabindex: i === 0 ? 0 : -1,
|
|
72669
|
+
ariaLabel: "".concat(row, " by ").concat(col)
|
|
72612
72670
|
}));
|
|
72613
72671
|
}
|
|
72614
72672
|
}
|
|
72615
|
-
var
|
|
72616
|
-
var
|
|
72617
|
-
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(dv, 'span')) {
|
|
72618
|
-
return;
|
|
72619
|
-
}
|
|
72620
|
-
var k = index === undefined || isNaN(index) ? parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(dv, '-index') || '0', 10) : index || 0;
|
|
72673
|
+
var highlightCell = function highlightCell(cell) {
|
|
72674
|
+
var k = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(cell, '-index') || '0', 10);
|
|
72621
72675
|
var rows_count = Math.ceil((k + 1) / default_cols_count), cols_count = k % default_cols_count + 1;
|
|
72622
72676
|
for(var i = 0; i < cells.length; i += 1){
|
|
72623
72677
|
if (cols_count >= i % default_cols_count + 1 && rows_count >= Math.ceil((i + 1) / default_cols_count)) {
|
|
@@ -72629,14 +72683,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72629
72683
|
cols.textContent = cols_count.toString();
|
|
72630
72684
|
rows.textContent = rows_count.toString();
|
|
72631
72685
|
};
|
|
72632
|
-
|
|
72633
|
-
var
|
|
72634
|
-
e.preventDefault();
|
|
72635
|
-
e.stopImmediatePropagation();
|
|
72636
|
-
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(dv, 'span')) {
|
|
72637
|
-
return;
|
|
72638
|
-
}
|
|
72639
|
-
var k = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(dv, '-index') || '0', 10);
|
|
72686
|
+
var insertTable = function insertTable(cell) {
|
|
72687
|
+
var k = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(cell, '-index') || '0', 10);
|
|
72640
72688
|
var rows_count = Math.ceil((k + 1) / default_cols_count), cols_count = k % default_cols_count + 1;
|
|
72641
72689
|
var crt = editor.createInside, tbody = crt.element('tbody'), table = crt.element('table');
|
|
72642
72690
|
table.appendChild(tbody);
|
|
@@ -72648,7 +72696,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72648
72696
|
if (!first_td) {
|
|
72649
72697
|
first_td = td;
|
|
72650
72698
|
}
|
|
72651
|
-
(0,
|
|
72699
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(td, 'width', (100 / cols_count).toFixed(4) + '%');
|
|
72652
72700
|
td.appendChild(crt.element('br'));
|
|
72653
72701
|
tr.appendChild(crt.text('\n'));
|
|
72654
72702
|
tr.appendChild(crt.text('\t'));
|
|
@@ -72657,7 +72705,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72657
72705
|
tbody.appendChild(crt.text('\n'));
|
|
72658
72706
|
tbody.appendChild(tr);
|
|
72659
72707
|
}
|
|
72660
|
-
(0,
|
|
72708
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.$$)('input[type=checkbox]:checked', options).forEach(function(input) {
|
|
72661
72709
|
input.value.split(/[\s]+/).forEach(function(className) {
|
|
72662
72710
|
table.classList.add(className);
|
|
72663
72711
|
});
|
|
@@ -72666,15 +72714,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72666
72714
|
editor.s.removeMarkers();
|
|
72667
72715
|
editor.editor.normalize();
|
|
72668
72716
|
editor.history.snapshot.restore(snapshot);
|
|
72669
|
-
var block =
|
|
72670
|
-
if (block &&
|
|
72671
|
-
|
|
72717
|
+
var block = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.furthest(editor.s.current(), _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
|
|
72718
|
+
if (block && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block)) {
|
|
72719
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.replace(block, table, undefined, false, true);
|
|
72672
72720
|
} else {
|
|
72673
72721
|
if (block) {
|
|
72674
72722
|
var fake = crt.text('\n');
|
|
72675
72723
|
if (!editor.o.table.splitBlockOnInsertTable) {
|
|
72676
|
-
|
|
72677
|
-
|
|
72724
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, fake);
|
|
72725
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(fake, table);
|
|
72678
72726
|
} else {
|
|
72679
72727
|
var range = editor.s.range;
|
|
72680
72728
|
range.collapse(false);
|
|
@@ -72683,9 +72731,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72683
72731
|
editor.s.selectRange(range);
|
|
72684
72732
|
var firstPart = editor.s.splitSelection(block, fake);
|
|
72685
72733
|
if (firstPart) {
|
|
72686
|
-
|
|
72734
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(firstPart, table);
|
|
72687
72735
|
} else {
|
|
72688
|
-
|
|
72736
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, table);
|
|
72689
72737
|
}
|
|
72690
72738
|
}
|
|
72691
72739
|
} else {
|
|
@@ -72694,17 +72742,72 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
72694
72742
|
}
|
|
72695
72743
|
if (first_td) {
|
|
72696
72744
|
editor.s.setCursorIn(first_td);
|
|
72697
|
-
(0,
|
|
72745
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);
|
|
72698
72746
|
}
|
|
72699
72747
|
close();
|
|
72748
|
+
};
|
|
72749
|
+
editor.e.on(blocksContainer, 'mousemove', function(e) {
|
|
72750
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'span')) {
|
|
72751
|
+
highlightCell(e.target);
|
|
72752
|
+
}
|
|
72753
|
+
}).on(blocksContainer, 'touchstart mousedown', function(e) {
|
|
72754
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'span')) {
|
|
72755
|
+
return;
|
|
72756
|
+
}
|
|
72757
|
+
e.preventDefault();
|
|
72758
|
+
e.stopImmediatePropagation();
|
|
72759
|
+
insertTable(e.target);
|
|
72760
|
+
}).on(blocksContainer, 'keydown', function(e) {
|
|
72761
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'span')) {
|
|
72762
|
+
return;
|
|
72763
|
+
}
|
|
72764
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER) {
|
|
72765
|
+
e.preventDefault();
|
|
72766
|
+
e.stopImmediatePropagation();
|
|
72767
|
+
insertTable(e.target);
|
|
72768
|
+
return;
|
|
72769
|
+
}
|
|
72770
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
72771
|
+
e.preventDefault();
|
|
72772
|
+
e.stopImmediatePropagation();
|
|
72773
|
+
close();
|
|
72774
|
+
return;
|
|
72775
|
+
}
|
|
72776
|
+
var index = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(e.target, '-index') || '0', 10), row = Math.floor(index / default_cols_count), col = index % default_cols_count;
|
|
72777
|
+
var nextIndex = index;
|
|
72778
|
+
switch(e.key){
|
|
72779
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT:
|
|
72780
|
+
nextIndex = col > 0 ? index - 1 : index;
|
|
72781
|
+
break;
|
|
72782
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT:
|
|
72783
|
+
nextIndex = col < default_cols_count - 1 ? index + 1 : index;
|
|
72784
|
+
break;
|
|
72785
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP:
|
|
72786
|
+
nextIndex = row > 0 ? index - default_cols_count : index;
|
|
72787
|
+
break;
|
|
72788
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN:
|
|
72789
|
+
nextIndex = row < default_rows_count - 1 ? index + default_cols_count : index;
|
|
72790
|
+
break;
|
|
72791
|
+
default:
|
|
72792
|
+
return;
|
|
72793
|
+
}
|
|
72794
|
+
e.preventDefault();
|
|
72795
|
+
e.stopImmediatePropagation();
|
|
72796
|
+
if (nextIndex !== index) {
|
|
72797
|
+
cells[index].tabIndex = -1;
|
|
72798
|
+
cells[nextIndex].tabIndex = 0;
|
|
72799
|
+
cells[nextIndex].focus();
|
|
72800
|
+
highlightCell(cells[nextIndex]);
|
|
72801
|
+
}
|
|
72700
72802
|
});
|
|
72701
72803
|
if (button && button.parentElement) {
|
|
72702
72804
|
for(var i1 = 0; i1 < default_rows_count; i1 += 1){
|
|
72703
|
-
var
|
|
72805
|
+
var row1 = editor.c.div();
|
|
72806
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(row1, 'role', 'row');
|
|
72704
72807
|
for(var j = 0; j < default_cols_count; j += 1){
|
|
72705
|
-
|
|
72808
|
+
row1.appendChild(cells[i1 * default_cols_count + j]);
|
|
72706
72809
|
}
|
|
72707
|
-
blocksContainer.appendChild(
|
|
72810
|
+
blocksContainer.appendChild(row1);
|
|
72708
72811
|
}
|
|
72709
72812
|
if (cells[0]) {
|
|
72710
72813
|
cells[0].className = 'hovered';
|