jodit-pro 4.2.18 → 4.2.19
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 +47 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +75 -63
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- 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/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.css +47 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +75 -63
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +47 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +75 -63
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- 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/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 +47 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +75 -63
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- 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/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 +77 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +74 -60
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.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/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/package.json +1 -1
package/es2021/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.2.
|
|
4
|
+
* Version: v4.2.19
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2444,7 +2444,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2444
2444
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2445
2445
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2446
2446
|
*/
|
|
2447
|
-
const APP_VERSION = "4.2.
|
|
2447
|
+
const APP_VERSION = "4.2.19";
|
|
2448
2448
|
// prettier-ignore
|
|
2449
2449
|
const ES = "es2021";
|
|
2450
2450
|
const IS_ES_MODERN = true;
|
|
@@ -13665,6 +13665,7 @@ class Mods {
|
|
|
13665
13665
|
const UIButtonState = () => ({
|
|
13666
13666
|
size: 'middle',
|
|
13667
13667
|
type: 'button',
|
|
13668
|
+
role: 'button',
|
|
13668
13669
|
name: '',
|
|
13669
13670
|
value: '',
|
|
13670
13671
|
variant: 'initial',
|
|
@@ -13713,6 +13714,9 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13713
13714
|
onChangeType() {
|
|
13714
13715
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'type', this.state.type);
|
|
13715
13716
|
}
|
|
13717
|
+
onChangeRole() {
|
|
13718
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'role', this.state.role);
|
|
13719
|
+
}
|
|
13716
13720
|
/**
|
|
13717
13721
|
* Set size from a parent list
|
|
13718
13722
|
*/
|
|
@@ -13842,6 +13846,9 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13842
13846
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13843
13847
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.type', { immediately: false })
|
|
13844
13848
|
], UIButton.prototype, "onChangeType", null);
|
|
13849
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13850
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.role', { immediately: false })
|
|
13851
|
+
], UIButton.prototype, "onChangeRole", null);
|
|
13845
13852
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13846
13853
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('parentElement')
|
|
13847
13854
|
], UIButton.prototype, "updateSize", null);
|
|
@@ -14051,6 +14058,19 @@ var UITooltip_1;
|
|
|
14051
14058
|
|
|
14052
14059
|
|
|
14053
14060
|
|
|
14061
|
+
const WINDOW_EVENTS_ON_HIDE = [
|
|
14062
|
+
'scroll.tooltip',
|
|
14063
|
+
'joditCloseDialog',
|
|
14064
|
+
'mouseleave.tooltip'
|
|
14065
|
+
];
|
|
14066
|
+
const JODIT_EVENTS_ON_HIDE = [
|
|
14067
|
+
'escape.tooltip',
|
|
14068
|
+
'change.tooltip',
|
|
14069
|
+
'changePlace.tooltip',
|
|
14070
|
+
'afterOpenPopup.tooltip',
|
|
14071
|
+
'hidePopup.tooltip',
|
|
14072
|
+
'closeAllPopups.tooltip'
|
|
14073
|
+
];
|
|
14054
14074
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
14055
14075
|
className() {
|
|
14056
14076
|
return 'UITooltip';
|
|
@@ -14069,7 +14089,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14069
14089
|
view.o.showTooltip &&
|
|
14070
14090
|
!view.o.useNativeTooltip) {
|
|
14071
14091
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, () => {
|
|
14072
|
-
// TODO Move it inside
|
|
14092
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14073
14093
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14074
14094
|
view.e.on(view.container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14075
14095
|
capture: true
|
|
@@ -14077,44 +14097,28 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14077
14097
|
});
|
|
14078
14098
|
}
|
|
14079
14099
|
}
|
|
14080
|
-
|
|
14100
|
+
__addListenersOnEnter() {
|
|
14081
14101
|
if (this.__listenClose) {
|
|
14082
14102
|
return;
|
|
14083
14103
|
}
|
|
14084
14104
|
this.__listenClose = true;
|
|
14085
14105
|
const view = this.j;
|
|
14086
14106
|
view.e
|
|
14087
|
-
.on(view.ow,
|
|
14088
|
-
.on(
|
|
14089
|
-
.on(view.container, 'mouseleave.tooltip', this.
|
|
14090
|
-
.on([
|
|
14091
|
-
'escape.tooltip',
|
|
14092
|
-
'change.tooltip',
|
|
14093
|
-
'changePlace.tooltip',
|
|
14094
|
-
'afterOpenPopup.tooltip',
|
|
14095
|
-
'hidePopup.tooltip',
|
|
14096
|
-
'closeAllPopups.tooltip'
|
|
14097
|
-
], this.__hide)
|
|
14098
|
-
.on(view.container, 'mouseleave', this.__onMouseLeave, {
|
|
14107
|
+
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14108
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14109
|
+
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14099
14110
|
capture: true
|
|
14100
14111
|
});
|
|
14101
14112
|
}
|
|
14102
|
-
|
|
14113
|
+
__removeListenersOnLeave() {
|
|
14103
14114
|
if (!this.__listenClose) {
|
|
14104
14115
|
return;
|
|
14105
14116
|
}
|
|
14106
14117
|
this.__listenClose = false;
|
|
14107
14118
|
const view = this.j;
|
|
14108
14119
|
view.e
|
|
14109
|
-
.off(view.ow,
|
|
14110
|
-
.off(
|
|
14111
|
-
'escape.tooltip',
|
|
14112
|
-
'change.tooltip',
|
|
14113
|
-
'changePlace.tooltip',
|
|
14114
|
-
'afterOpenPopup.tooltip',
|
|
14115
|
-
'hidePopup.tooltip',
|
|
14116
|
-
'closeAllPopups.tooltip'
|
|
14117
|
-
], this.__hide)
|
|
14120
|
+
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14121
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14118
14122
|
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14119
14123
|
}
|
|
14120
14124
|
__onMouseLeave(e) {
|
|
@@ -14140,29 +14144,30 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14140
14144
|
return;
|
|
14141
14145
|
}
|
|
14142
14146
|
this.__currentTarget = e.target;
|
|
14143
|
-
const
|
|
14144
|
-
this.
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14147
|
+
const target = e.target;
|
|
14148
|
+
this.__open(() => {
|
|
14149
|
+
const pos = (0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_6__/* .position */ .G)(target);
|
|
14150
|
+
return {
|
|
14151
|
+
x: pos.left + pos.width / 2,
|
|
14152
|
+
y: pos.top + pos.height
|
|
14153
|
+
};
|
|
14154
|
+
}, tooltip);
|
|
14155
|
+
}
|
|
14156
|
+
__open(getPoint, content) {
|
|
14157
|
+
this.__addListenersOnEnter();
|
|
14158
|
+
this.__isOpened = true;
|
|
14152
14159
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14153
14160
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14161
|
+
const to = this.j.o.showTooltipDelay || this.j.defaultTimeout;
|
|
14162
|
+
if (!to) {
|
|
14163
|
+
this.__show(getPoint, content);
|
|
14164
|
+
return;
|
|
14165
|
+
}
|
|
14166
|
+
this.__delayShowTimeout = this.j.async.setTimeout(() => this.__show(getPoint, content), to);
|
|
14158
14167
|
}
|
|
14159
|
-
|
|
14168
|
+
__show(getPoint, content) {
|
|
14160
14169
|
this.setMod('visible', true);
|
|
14161
14170
|
this.getElm('content').innerHTML = content;
|
|
14162
|
-
this.__isOpened = true;
|
|
14163
|
-
this.__setPosition(getPoint);
|
|
14164
|
-
}
|
|
14165
|
-
__setPosition(getPoint) {
|
|
14166
14171
|
const point = getPoint();
|
|
14167
14172
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
14168
14173
|
left: point.x,
|
|
@@ -14172,24 +14177,26 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14172
14177
|
__hide() {
|
|
14173
14178
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14174
14179
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14175
|
-
this.
|
|
14180
|
+
this.__removeListenersOnLeave();
|
|
14176
14181
|
if (this.__isOpened) {
|
|
14177
14182
|
this.__isOpened = false;
|
|
14178
14183
|
this.setMod('visible', false);
|
|
14184
|
+
this.getElm('content').innerHTML = '';
|
|
14179
14185
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
14180
14186
|
left: -5000
|
|
14181
14187
|
});
|
|
14182
14188
|
}
|
|
14183
14189
|
}
|
|
14184
14190
|
__hideDelay() {
|
|
14191
|
+
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14192
|
+
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14185
14193
|
if (!this.__isOpened) {
|
|
14186
14194
|
return;
|
|
14187
14195
|
}
|
|
14188
|
-
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14189
14196
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14190
14197
|
}
|
|
14191
14198
|
destruct() {
|
|
14192
|
-
this.j.e.off(this.j.container, 'mouseenter', this.__onMouseEnter);
|
|
14199
|
+
this.j.e.off(this.j.container, 'mouseenter.tooltip', this.__onMouseEnter);
|
|
14193
14200
|
this.__hide();
|
|
14194
14201
|
super.destruct();
|
|
14195
14202
|
}
|
|
@@ -25532,8 +25539,8 @@ function val(elm, selector, value) {
|
|
|
25532
25539
|
/* harmony export */ });
|
|
25533
25540
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
25534
25541
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
25535
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
25536
25542
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41959);
|
|
25543
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97099);
|
|
25537
25544
|
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76185);
|
|
25538
25545
|
/*!
|
|
25539
25546
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -25575,8 +25582,16 @@ function val(elm, selector, value) {
|
|
|
25575
25582
|
* ```
|
|
25576
25583
|
*/
|
|
25577
25584
|
const TabsWidget = (jodit, tabs, state) => {
|
|
25578
|
-
const box = jodit.c.div('jodit-tabs')
|
|
25579
|
-
|
|
25585
|
+
const box = jodit.c.div('jodit-tabs');
|
|
25586
|
+
const tabBox = jodit.c.div('jodit-tabs__wrapper');
|
|
25587
|
+
const buttons = jodit.c.div('jodit-tabs__buttons');
|
|
25588
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(buttons, {
|
|
25589
|
+
role: 'tablist',
|
|
25590
|
+
'aria-orientation': 'horizontal'
|
|
25591
|
+
});
|
|
25592
|
+
const nameToTab = {};
|
|
25593
|
+
const buttonList = [];
|
|
25594
|
+
let firstTab = '';
|
|
25580
25595
|
box.appendChild(buttons);
|
|
25581
25596
|
box.appendChild(tabBox);
|
|
25582
25597
|
const setActive = (tab) => {
|
|
@@ -25584,20 +25599,21 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25584
25599
|
return;
|
|
25585
25600
|
}
|
|
25586
25601
|
buttonList.forEach(b => {
|
|
25587
|
-
b.state.variant = 'initial';
|
|
25588
25602
|
b.state.activated = false;
|
|
25589
25603
|
});
|
|
25590
|
-
(
|
|
25591
|
-
a.classList.remove('jodit-tab_active');
|
|
25592
|
-
});
|
|
25593
|
-
nameToTab[tab].button.state.variant = 'outline';
|
|
25604
|
+
Object.values(nameToTab).forEach(({ tab }) => tab.classList.remove('jodit-tab_active'));
|
|
25594
25605
|
nameToTab[tab].button.state.activated = true;
|
|
25595
25606
|
nameToTab[tab].tab.classList.add('jodit-tab_active');
|
|
25596
25607
|
};
|
|
25597
25608
|
tabs.forEach(({ icon, name, content }) => {
|
|
25598
|
-
const tab = jodit.c.div('jodit-tab')
|
|
25609
|
+
const tab = jodit.c.div('jodit-tab');
|
|
25610
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(tab, {
|
|
25611
|
+
role: 'tabpanel'
|
|
25612
|
+
});
|
|
25613
|
+
const button = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .Button */ .$n)(jodit, icon || name, name);
|
|
25614
|
+
button.state.role = 'tab';
|
|
25599
25615
|
// Stop lose the focus
|
|
25600
|
-
jodit.e.on(button.container, '
|
|
25616
|
+
jodit.e.on(button.container, 'pointerdown', (e) => e.preventDefault());
|
|
25601
25617
|
if (!firstTab) {
|
|
25602
25618
|
firstTab = name;
|
|
25603
25619
|
}
|
|
@@ -25627,13 +25643,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25627
25643
|
button,
|
|
25628
25644
|
tab
|
|
25629
25645
|
};
|
|
25630
|
-
tabCount += 1;
|
|
25631
25646
|
});
|
|
25632
|
-
|
|
25633
|
-
|
|
25634
|
-
}
|
|
25635
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('a', buttons).forEach(a => {
|
|
25636
|
-
a.style.width = (100 / tabCount).toFixed(10) + '%';
|
|
25647
|
+
Object.values(nameToTab).forEach(({ button }) => {
|
|
25648
|
+
button.container.style.width = (100 / tabs.length).toFixed(10) + '%';
|
|
25637
25649
|
});
|
|
25638
25650
|
const tab = !state || !state.activeTab || !nameToTab[state.activeTab]
|
|
25639
25651
|
? firstTab
|