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/es2015/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 = "es2015";
|
|
2449
2449
|
const IS_ES_MODERN = true;
|
|
@@ -13680,6 +13680,7 @@ class Mods {
|
|
|
13680
13680
|
const UIButtonState = () => ({
|
|
13681
13681
|
size: 'middle',
|
|
13682
13682
|
type: 'button',
|
|
13683
|
+
role: 'button',
|
|
13683
13684
|
name: '',
|
|
13684
13685
|
value: '',
|
|
13685
13686
|
variant: 'initial',
|
|
@@ -13728,6 +13729,9 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13728
13729
|
onChangeType() {
|
|
13729
13730
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'type', this.state.type);
|
|
13730
13731
|
}
|
|
13732
|
+
onChangeRole() {
|
|
13733
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'role', this.state.role);
|
|
13734
|
+
}
|
|
13731
13735
|
/**
|
|
13732
13736
|
* Set size from a parent list
|
|
13733
13737
|
*/
|
|
@@ -13857,6 +13861,9 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13857
13861
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13858
13862
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.type', { immediately: false })
|
|
13859
13863
|
], UIButton.prototype, "onChangeType", null);
|
|
13864
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13865
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.role', { immediately: false })
|
|
13866
|
+
], UIButton.prototype, "onChangeRole", null);
|
|
13860
13867
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
13861
13868
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('parentElement')
|
|
13862
13869
|
], UIButton.prototype, "updateSize", null);
|
|
@@ -14068,6 +14075,19 @@ var UITooltip_1;
|
|
|
14068
14075
|
|
|
14069
14076
|
|
|
14070
14077
|
|
|
14078
|
+
const WINDOW_EVENTS_ON_HIDE = [
|
|
14079
|
+
'scroll.tooltip',
|
|
14080
|
+
'joditCloseDialog',
|
|
14081
|
+
'mouseleave.tooltip'
|
|
14082
|
+
];
|
|
14083
|
+
const JODIT_EVENTS_ON_HIDE = [
|
|
14084
|
+
'escape.tooltip',
|
|
14085
|
+
'change.tooltip',
|
|
14086
|
+
'changePlace.tooltip',
|
|
14087
|
+
'afterOpenPopup.tooltip',
|
|
14088
|
+
'hidePopup.tooltip',
|
|
14089
|
+
'closeAllPopups.tooltip'
|
|
14090
|
+
];
|
|
14071
14091
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
14072
14092
|
className() {
|
|
14073
14093
|
return 'UITooltip';
|
|
@@ -14086,7 +14106,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14086
14106
|
view.o.showTooltip &&
|
|
14087
14107
|
!view.o.useNativeTooltip) {
|
|
14088
14108
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, () => {
|
|
14089
|
-
// TODO Move it inside
|
|
14109
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14090
14110
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14091
14111
|
view.e.on(view.container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14092
14112
|
capture: true
|
|
@@ -14094,44 +14114,28 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14094
14114
|
});
|
|
14095
14115
|
}
|
|
14096
14116
|
}
|
|
14097
|
-
|
|
14117
|
+
__addListenersOnEnter() {
|
|
14098
14118
|
if (this.__listenClose) {
|
|
14099
14119
|
return;
|
|
14100
14120
|
}
|
|
14101
14121
|
this.__listenClose = true;
|
|
14102
14122
|
const view = this.j;
|
|
14103
14123
|
view.e
|
|
14104
|
-
.on(view.ow,
|
|
14105
|
-
.on(
|
|
14106
|
-
.on(view.container, 'mouseleave.tooltip', this.
|
|
14107
|
-
.on([
|
|
14108
|
-
'escape.tooltip',
|
|
14109
|
-
'change.tooltip',
|
|
14110
|
-
'changePlace.tooltip',
|
|
14111
|
-
'afterOpenPopup.tooltip',
|
|
14112
|
-
'hidePopup.tooltip',
|
|
14113
|
-
'closeAllPopups.tooltip'
|
|
14114
|
-
], this.__hide)
|
|
14115
|
-
.on(view.container, 'mouseleave', this.__onMouseLeave, {
|
|
14124
|
+
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14125
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14126
|
+
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14116
14127
|
capture: true
|
|
14117
14128
|
});
|
|
14118
14129
|
}
|
|
14119
|
-
|
|
14130
|
+
__removeListenersOnLeave() {
|
|
14120
14131
|
if (!this.__listenClose) {
|
|
14121
14132
|
return;
|
|
14122
14133
|
}
|
|
14123
14134
|
this.__listenClose = false;
|
|
14124
14135
|
const view = this.j;
|
|
14125
14136
|
view.e
|
|
14126
|
-
.off(view.ow,
|
|
14127
|
-
.off(
|
|
14128
|
-
'escape.tooltip',
|
|
14129
|
-
'change.tooltip',
|
|
14130
|
-
'changePlace.tooltip',
|
|
14131
|
-
'afterOpenPopup.tooltip',
|
|
14132
|
-
'hidePopup.tooltip',
|
|
14133
|
-
'closeAllPopups.tooltip'
|
|
14134
|
-
], this.__hide)
|
|
14137
|
+
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14138
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14135
14139
|
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14136
14140
|
}
|
|
14137
14141
|
__onMouseLeave(e) {
|
|
@@ -14157,29 +14161,30 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14157
14161
|
return;
|
|
14158
14162
|
}
|
|
14159
14163
|
this.__currentTarget = e.target;
|
|
14160
|
-
const
|
|
14161
|
-
this.
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14164
|
+
const target = e.target;
|
|
14165
|
+
this.__open(() => {
|
|
14166
|
+
const pos = (0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_6__/* .position */ .G)(target);
|
|
14167
|
+
return {
|
|
14168
|
+
x: pos.left + pos.width / 2,
|
|
14169
|
+
y: pos.top + pos.height
|
|
14170
|
+
};
|
|
14171
|
+
}, tooltip);
|
|
14172
|
+
}
|
|
14173
|
+
__open(getPoint, content) {
|
|
14174
|
+
this.__addListenersOnEnter();
|
|
14175
|
+
this.__isOpened = true;
|
|
14169
14176
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14170
14177
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14178
|
+
const to = this.j.o.showTooltipDelay || this.j.defaultTimeout;
|
|
14179
|
+
if (!to) {
|
|
14180
|
+
this.__show(getPoint, content);
|
|
14181
|
+
return;
|
|
14182
|
+
}
|
|
14183
|
+
this.__delayShowTimeout = this.j.async.setTimeout(() => this.__show(getPoint, content), to);
|
|
14175
14184
|
}
|
|
14176
|
-
|
|
14185
|
+
__show(getPoint, content) {
|
|
14177
14186
|
this.setMod('visible', true);
|
|
14178
14187
|
this.getElm('content').innerHTML = content;
|
|
14179
|
-
this.__isOpened = true;
|
|
14180
|
-
this.__setPosition(getPoint);
|
|
14181
|
-
}
|
|
14182
|
-
__setPosition(getPoint) {
|
|
14183
14188
|
const point = getPoint();
|
|
14184
14189
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
14185
14190
|
left: point.x,
|
|
@@ -14189,24 +14194,26 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14189
14194
|
__hide() {
|
|
14190
14195
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14191
14196
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14192
|
-
this.
|
|
14197
|
+
this.__removeListenersOnLeave();
|
|
14193
14198
|
if (this.__isOpened) {
|
|
14194
14199
|
this.__isOpened = false;
|
|
14195
14200
|
this.setMod('visible', false);
|
|
14201
|
+
this.getElm('content').innerHTML = '';
|
|
14196
14202
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
14197
14203
|
left: -5000
|
|
14198
14204
|
});
|
|
14199
14205
|
}
|
|
14200
14206
|
}
|
|
14201
14207
|
__hideDelay() {
|
|
14208
|
+
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14209
|
+
this.j.async.clearTimeout(this.__hideTimeout);
|
|
14202
14210
|
if (!this.__isOpened) {
|
|
14203
14211
|
return;
|
|
14204
14212
|
}
|
|
14205
|
-
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
14206
14213
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14207
14214
|
}
|
|
14208
14215
|
destruct() {
|
|
14209
|
-
this.j.e.off(this.j.container, 'mouseenter', this.__onMouseEnter);
|
|
14216
|
+
this.j.e.off(this.j.container, 'mouseenter.tooltip', this.__onMouseEnter);
|
|
14210
14217
|
this.__hide();
|
|
14211
14218
|
super.destruct();
|
|
14212
14219
|
}
|
|
@@ -25535,8 +25542,8 @@ function val(elm, selector, value) {
|
|
|
25535
25542
|
/* harmony export */ });
|
|
25536
25543
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
25537
25544
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
25538
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
25539
25545
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41959);
|
|
25546
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97099);
|
|
25540
25547
|
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76185);
|
|
25541
25548
|
/*!
|
|
25542
25549
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -25578,8 +25585,16 @@ function val(elm, selector, value) {
|
|
|
25578
25585
|
* ```
|
|
25579
25586
|
*/
|
|
25580
25587
|
const TabsWidget = (jodit, tabs, state) => {
|
|
25581
|
-
const box = jodit.c.div('jodit-tabs')
|
|
25582
|
-
|
|
25588
|
+
const box = jodit.c.div('jodit-tabs');
|
|
25589
|
+
const tabBox = jodit.c.div('jodit-tabs__wrapper');
|
|
25590
|
+
const buttons = jodit.c.div('jodit-tabs__buttons');
|
|
25591
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(buttons, {
|
|
25592
|
+
role: 'tablist',
|
|
25593
|
+
'aria-orientation': 'horizontal'
|
|
25594
|
+
});
|
|
25595
|
+
const nameToTab = {};
|
|
25596
|
+
const buttonList = [];
|
|
25597
|
+
let firstTab = '';
|
|
25583
25598
|
box.appendChild(buttons);
|
|
25584
25599
|
box.appendChild(tabBox);
|
|
25585
25600
|
const setActive = (tab) => {
|
|
@@ -25587,20 +25602,21 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25587
25602
|
return;
|
|
25588
25603
|
}
|
|
25589
25604
|
buttonList.forEach(b => {
|
|
25590
|
-
b.state.variant = 'initial';
|
|
25591
25605
|
b.state.activated = false;
|
|
25592
25606
|
});
|
|
25593
|
-
(
|
|
25594
|
-
a.classList.remove('jodit-tab_active');
|
|
25595
|
-
});
|
|
25596
|
-
nameToTab[tab].button.state.variant = 'outline';
|
|
25607
|
+
Object.values(nameToTab).forEach(({ tab }) => tab.classList.remove('jodit-tab_active'));
|
|
25597
25608
|
nameToTab[tab].button.state.activated = true;
|
|
25598
25609
|
nameToTab[tab].tab.classList.add('jodit-tab_active');
|
|
25599
25610
|
};
|
|
25600
25611
|
tabs.forEach(({ icon, name, content }) => {
|
|
25601
|
-
const tab = jodit.c.div('jodit-tab')
|
|
25612
|
+
const tab = jodit.c.div('jodit-tab');
|
|
25613
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(tab, {
|
|
25614
|
+
role: 'tabpanel'
|
|
25615
|
+
});
|
|
25616
|
+
const button = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .Button */ .$n)(jodit, icon || name, name);
|
|
25617
|
+
button.state.role = 'tab';
|
|
25602
25618
|
// Stop lose the focus
|
|
25603
|
-
jodit.e.on(button.container, '
|
|
25619
|
+
jodit.e.on(button.container, 'pointerdown', (e) => e.preventDefault());
|
|
25604
25620
|
if (!firstTab) {
|
|
25605
25621
|
firstTab = name;
|
|
25606
25622
|
}
|
|
@@ -25630,13 +25646,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25630
25646
|
button,
|
|
25631
25647
|
tab
|
|
25632
25648
|
};
|
|
25633
|
-
tabCount += 1;
|
|
25634
25649
|
});
|
|
25635
|
-
|
|
25636
|
-
|
|
25637
|
-
}
|
|
25638
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('a', buttons).forEach(a => {
|
|
25639
|
-
a.style.width = (100 / tabCount).toFixed(10) + '%';
|
|
25650
|
+
Object.values(nameToTab).forEach(({ button }) => {
|
|
25651
|
+
button.container.style.width = (100 / tabs.length).toFixed(10) + '%';
|
|
25640
25652
|
});
|
|
25641
25653
|
const tab = !state || !state.activeTab || !nameToTab[state.activeTab]
|
|
25642
25654
|
? firstTab
|