jodit-pro 4.2.18 → 4.2.20
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/es2018/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.20
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2443,7 +2443,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2443
2443
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2444
2444
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2445
2445
|
*/
|
|
2446
|
-
const APP_VERSION = "4.2.
|
|
2446
|
+
const APP_VERSION = "4.2.20";
|
|
2447
2447
|
// prettier-ignore
|
|
2448
2448
|
const ES = "es2018";
|
|
2449
2449
|
const IS_ES_MODERN = true;
|
|
@@ -13705,6 +13705,7 @@ class Mods {
|
|
|
13705
13705
|
const UIButtonState = () => ({
|
|
13706
13706
|
size: 'middle',
|
|
13707
13707
|
type: 'button',
|
|
13708
|
+
role: 'button',
|
|
13708
13709
|
name: '',
|
|
13709
13710
|
value: '',
|
|
13710
13711
|
variant: 'initial',
|
|
@@ -13753,6 +13754,9 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13753
13754
|
onChangeType() {
|
|
13754
13755
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'type', this.state.type);
|
|
13755
13756
|
}
|
|
13757
|
+
onChangeRole() {
|
|
13758
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'role', this.state.role);
|
|
13759
|
+
}
|
|
13756
13760
|
/**
|
|
13757
13761
|
* Set size from a parent list
|
|
13758
13762
|
*/
|
|
@@ -13882,6 +13886,9 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13882
13886
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13883
13887
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.type', { immediately: false })
|
|
13884
13888
|
], UIButton.prototype, "onChangeType", null);
|
|
13889
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13890
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.role', { immediately: false })
|
|
13891
|
+
], UIButton.prototype, "onChangeRole", null);
|
|
13885
13892
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13886
13893
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('parentElement')
|
|
13887
13894
|
], UIButton.prototype, "updateSize", null);
|
|
@@ -14093,6 +14100,19 @@ var UITooltip_1;
|
|
|
14093
14100
|
|
|
14094
14101
|
|
|
14095
14102
|
|
|
14103
|
+
const WINDOW_EVENTS_ON_HIDE = [
|
|
14104
|
+
'scroll.tooltip',
|
|
14105
|
+
'joditCloseDialog',
|
|
14106
|
+
'mouseleave.tooltip'
|
|
14107
|
+
];
|
|
14108
|
+
const JODIT_EVENTS_ON_HIDE = [
|
|
14109
|
+
'escape.tooltip',
|
|
14110
|
+
'change.tooltip',
|
|
14111
|
+
'changePlace.tooltip',
|
|
14112
|
+
'afterOpenPopup.tooltip',
|
|
14113
|
+
'hidePopup.tooltip',
|
|
14114
|
+
'closeAllPopups.tooltip'
|
|
14115
|
+
];
|
|
14096
14116
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
14097
14117
|
className() {
|
|
14098
14118
|
return 'UITooltip';
|
|
@@ -14111,7 +14131,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14111
14131
|
view.o.showTooltip &&
|
|
14112
14132
|
!view.o.useNativeTooltip) {
|
|
14113
14133
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, () => {
|
|
14114
|
-
// TODO Move it inside
|
|
14134
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14115
14135
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14116
14136
|
view.e.on(view.container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14117
14137
|
capture: true
|
|
@@ -14119,44 +14139,28 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14119
14139
|
});
|
|
14120
14140
|
}
|
|
14121
14141
|
}
|
|
14122
|
-
|
|
14142
|
+
__addListenersOnEnter() {
|
|
14123
14143
|
if (this.__listenClose) {
|
|
14124
14144
|
return;
|
|
14125
14145
|
}
|
|
14126
14146
|
this.__listenClose = true;
|
|
14127
14147
|
const view = this.j;
|
|
14128
14148
|
view.e
|
|
14129
|
-
.on(view.ow,
|
|
14130
|
-
.on(
|
|
14131
|
-
.on(view.container, 'mouseleave.tooltip', this.
|
|
14132
|
-
.on([
|
|
14133
|
-
'escape.tooltip',
|
|
14134
|
-
'change.tooltip',
|
|
14135
|
-
'changePlace.tooltip',
|
|
14136
|
-
'afterOpenPopup.tooltip',
|
|
14137
|
-
'hidePopup.tooltip',
|
|
14138
|
-
'closeAllPopups.tooltip'
|
|
14139
|
-
], this.__hide)
|
|
14140
|
-
.on(view.container, 'mouseleave', this.__onMouseLeave, {
|
|
14149
|
+
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14150
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14151
|
+
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14141
14152
|
capture: true
|
|
14142
14153
|
});
|
|
14143
14154
|
}
|
|
14144
|
-
|
|
14155
|
+
__removeListenersOnLeave() {
|
|
14145
14156
|
if (!this.__listenClose) {
|
|
14146
14157
|
return;
|
|
14147
14158
|
}
|
|
14148
14159
|
this.__listenClose = false;
|
|
14149
14160
|
const view = this.j;
|
|
14150
14161
|
view.e
|
|
14151
|
-
.off(view.ow,
|
|
14152
|
-
.off(
|
|
14153
|
-
'escape.tooltip',
|
|
14154
|
-
'change.tooltip',
|
|
14155
|
-
'changePlace.tooltip',
|
|
14156
|
-
'afterOpenPopup.tooltip',
|
|
14157
|
-
'hidePopup.tooltip',
|
|
14158
|
-
'closeAllPopups.tooltip'
|
|
14159
|
-
], this.__hide)
|
|
14162
|
+
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14163
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14160
14164
|
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14161
14165
|
}
|
|
14162
14166
|
__onMouseLeave(e) {
|
|
@@ -14182,29 +14186,30 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14182
14186
|
return;
|
|
14183
14187
|
}
|
|
14184
14188
|
this.__currentTarget = e.target;
|
|
14185
|
-
const
|
|
14186
|
-
this.
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14189
|
+
const target = e.target;
|
|
14190
|
+
this.__open(() => {
|
|
14191
|
+
const pos = (0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_6__/* .position */ .G)(target);
|
|
14192
|
+
return {
|
|
14193
|
+
x: pos.left + pos.width / 2,
|
|
14194
|
+
y: pos.top + pos.height
|
|
14195
|
+
};
|
|
14196
|
+
}, tooltip);
|
|
14197
|
+
}
|
|
14198
|
+
__open(getPoint, content) {
|
|
14199
|
+
this.__addListenersOnEnter();
|
|
14200
|
+
this.__isOpened = true;
|
|
14194
14201
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14195
14202
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
|
|
14203
|
+
const to = this.j.o.showTooltipDelay || this.j.defaultTimeout;
|
|
14204
|
+
if (!to) {
|
|
14205
|
+
this.__show(getPoint, content);
|
|
14206
|
+
return;
|
|
14207
|
+
}
|
|
14208
|
+
this.__delayShowTimeout = this.j.async.setTimeout(() => this.__show(getPoint, content), to);
|
|
14200
14209
|
}
|
|
14201
|
-
|
|
14210
|
+
__show(getPoint, content) {
|
|
14202
14211
|
this.setMod('visible', true);
|
|
14203
14212
|
this.getElm('content').innerHTML = content;
|
|
14204
|
-
this.__isOpened = true;
|
|
14205
|
-
this.__setPosition(getPoint);
|
|
14206
|
-
}
|
|
14207
|
-
__setPosition(getPoint) {
|
|
14208
14213
|
const point = getPoint();
|
|
14209
14214
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
14210
14215
|
left: point.x,
|
|
@@ -14214,24 +14219,26 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14214
14219
|
__hide() {
|
|
14215
14220
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14216
14221
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14217
|
-
this.
|
|
14222
|
+
this.__removeListenersOnLeave();
|
|
14218
14223
|
if (this.__isOpened) {
|
|
14219
14224
|
this.__isOpened = false;
|
|
14220
14225
|
this.setMod('visible', false);
|
|
14226
|
+
this.getElm('content').innerHTML = '';
|
|
14221
14227
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
14222
14228
|
left: -5000
|
|
14223
14229
|
});
|
|
14224
14230
|
}
|
|
14225
14231
|
}
|
|
14226
14232
|
__hideDelay() {
|
|
14233
|
+
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14234
|
+
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14227
14235
|
if (!this.__isOpened) {
|
|
14228
14236
|
return;
|
|
14229
14237
|
}
|
|
14230
|
-
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14231
14238
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14232
14239
|
}
|
|
14233
14240
|
destruct() {
|
|
14234
|
-
this.j.e.off(this.j.container, 'mouseenter', this.__onMouseEnter);
|
|
14241
|
+
this.j.e.off(this.j.container, 'mouseenter.tooltip', this.__onMouseEnter);
|
|
14235
14242
|
this.__hide();
|
|
14236
14243
|
super.destruct();
|
|
14237
14244
|
}
|
|
@@ -25616,8 +25623,8 @@ function val(elm, selector, value) {
|
|
|
25616
25623
|
/* harmony export */ });
|
|
25617
25624
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
25618
25625
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
25619
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
25620
25626
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41959);
|
|
25627
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97099);
|
|
25621
25628
|
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76185);
|
|
25622
25629
|
/*!
|
|
25623
25630
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -25659,8 +25666,16 @@ function val(elm, selector, value) {
|
|
|
25659
25666
|
* ```
|
|
25660
25667
|
*/
|
|
25661
25668
|
const TabsWidget = (jodit, tabs, state) => {
|
|
25662
|
-
const box = jodit.c.div('jodit-tabs')
|
|
25663
|
-
|
|
25669
|
+
const box = jodit.c.div('jodit-tabs');
|
|
25670
|
+
const tabBox = jodit.c.div('jodit-tabs__wrapper');
|
|
25671
|
+
const buttons = jodit.c.div('jodit-tabs__buttons');
|
|
25672
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(buttons, {
|
|
25673
|
+
role: 'tablist',
|
|
25674
|
+
'aria-orientation': 'horizontal'
|
|
25675
|
+
});
|
|
25676
|
+
const nameToTab = {};
|
|
25677
|
+
const buttonList = [];
|
|
25678
|
+
let firstTab = '';
|
|
25664
25679
|
box.appendChild(buttons);
|
|
25665
25680
|
box.appendChild(tabBox);
|
|
25666
25681
|
const setActive = (tab) => {
|
|
@@ -25668,20 +25683,21 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25668
25683
|
return;
|
|
25669
25684
|
}
|
|
25670
25685
|
buttonList.forEach(b => {
|
|
25671
|
-
b.state.variant = 'initial';
|
|
25672
25686
|
b.state.activated = false;
|
|
25673
25687
|
});
|
|
25674
|
-
(
|
|
25675
|
-
a.classList.remove('jodit-tab_active');
|
|
25676
|
-
});
|
|
25677
|
-
nameToTab[tab].button.state.variant = 'outline';
|
|
25688
|
+
Object.values(nameToTab).forEach(({ tab }) => tab.classList.remove('jodit-tab_active'));
|
|
25678
25689
|
nameToTab[tab].button.state.activated = true;
|
|
25679
25690
|
nameToTab[tab].tab.classList.add('jodit-tab_active');
|
|
25680
25691
|
};
|
|
25681
25692
|
tabs.forEach(({ icon, name, content }) => {
|
|
25682
|
-
const tab = jodit.c.div('jodit-tab')
|
|
25693
|
+
const tab = jodit.c.div('jodit-tab');
|
|
25694
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(tab, {
|
|
25695
|
+
role: 'tabpanel'
|
|
25696
|
+
});
|
|
25697
|
+
const button = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .Button */ .$n)(jodit, icon || name, name);
|
|
25698
|
+
button.state.role = 'tab';
|
|
25683
25699
|
// Stop lose the focus
|
|
25684
|
-
jodit.e.on(button.container, '
|
|
25700
|
+
jodit.e.on(button.container, 'pointerdown', (e) => e.preventDefault());
|
|
25685
25701
|
if (!firstTab) {
|
|
25686
25702
|
firstTab = name;
|
|
25687
25703
|
}
|
|
@@ -25711,13 +25727,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25711
25727
|
button,
|
|
25712
25728
|
tab
|
|
25713
25729
|
};
|
|
25714
|
-
tabCount += 1;
|
|
25715
25730
|
});
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
}
|
|
25719
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('a', buttons).forEach(a => {
|
|
25720
|
-
a.style.width = (100 / tabCount).toFixed(10) + '%';
|
|
25731
|
+
Object.values(nameToTab).forEach(({ button }) => {
|
|
25732
|
+
button.container.style.width = (100 / tabs.length).toFixed(10) + '%';
|
|
25721
25733
|
});
|
|
25722
25734
|
const tab = !state || !state.activeTab || !nameToTab[state.activeTab]
|
|
25723
25735
|
? firstTab
|