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/es5/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
|
*/
|
|
@@ -3840,7 +3840,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3840
3840
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3841
3841
|
*/
|
|
3842
3842
|
|
|
3843
|
-
var APP_VERSION = "4.2.
|
|
3843
|
+
var APP_VERSION = "4.2.19";
|
|
3844
3844
|
// prettier-ignore
|
|
3845
3845
|
var ES = "es5";
|
|
3846
3846
|
var IS_ES_MODERN = false;
|
|
@@ -15756,6 +15756,7 @@ var UIButtonState = function () {
|
|
|
15756
15756
|
return ({
|
|
15757
15757
|
size: 'middle',
|
|
15758
15758
|
type: 'button',
|
|
15759
|
+
role: 'button',
|
|
15759
15760
|
name: '',
|
|
15760
15761
|
value: '',
|
|
15761
15762
|
variant: 'initial',
|
|
@@ -15833,6 +15834,9 @@ var UIButton = /** @class */ (function (_super) {
|
|
|
15833
15834
|
UIButton.prototype.onChangeType = function () {
|
|
15834
15835
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'type', this.state.type);
|
|
15835
15836
|
};
|
|
15837
|
+
UIButton.prototype.onChangeRole = function () {
|
|
15838
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'role', this.state.role);
|
|
15839
|
+
};
|
|
15836
15840
|
/**
|
|
15837
15841
|
* Set size from a parent list
|
|
15838
15842
|
*/
|
|
@@ -15944,6 +15948,9 @@ var UIButton = /** @class */ (function (_super) {
|
|
|
15944
15948
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
15945
15949
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.type', { immediately: false })
|
|
15946
15950
|
], UIButton.prototype, "onChangeType", null);
|
|
15951
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
15952
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.role', { immediately: false })
|
|
15953
|
+
], UIButton.prototype, "onChangeRole", null);
|
|
15947
15954
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
15948
15955
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('parentElement')
|
|
15949
15956
|
], UIButton.prototype, "updateSize", null);
|
|
@@ -16162,6 +16169,19 @@ var UIButtonGroup = /** @class */ (function (_super) {
|
|
|
16162
16169
|
|
|
16163
16170
|
|
|
16164
16171
|
|
|
16172
|
+
var WINDOW_EVENTS_ON_HIDE = [
|
|
16173
|
+
'scroll.tooltip',
|
|
16174
|
+
'joditCloseDialog',
|
|
16175
|
+
'mouseleave.tooltip'
|
|
16176
|
+
];
|
|
16177
|
+
var JODIT_EVENTS_ON_HIDE = [
|
|
16178
|
+
'escape.tooltip',
|
|
16179
|
+
'change.tooltip',
|
|
16180
|
+
'changePlace.tooltip',
|
|
16181
|
+
'afterOpenPopup.tooltip',
|
|
16182
|
+
'hidePopup.tooltip',
|
|
16183
|
+
'closeAllPopups.tooltip'
|
|
16184
|
+
];
|
|
16165
16185
|
var UITooltip = /** @class */ (function (_super) {
|
|
16166
16186
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__extends */ .C6)(UITooltip, _super);
|
|
16167
16187
|
function UITooltip(view) {
|
|
@@ -16175,7 +16195,7 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
16175
16195
|
view.o.showTooltip &&
|
|
16176
16196
|
!view.o.useNativeTooltip) {
|
|
16177
16197
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, function () {
|
|
16178
|
-
// TODO Move it inside
|
|
16198
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
16179
16199
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(_this.j, UITooltip_1).appendChild(_this.container);
|
|
16180
16200
|
view.e.on(view.container, 'mouseenter.tooltip', _this.__onMouseEnter, {
|
|
16181
16201
|
capture: true
|
|
@@ -16191,44 +16211,28 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
16191
16211
|
UITooltip.prototype.render = function () {
|
|
16192
16212
|
return '<div><div class="&__content"></div></div>';
|
|
16193
16213
|
};
|
|
16194
|
-
UITooltip.prototype.
|
|
16214
|
+
UITooltip.prototype.__addListenersOnEnter = function () {
|
|
16195
16215
|
if (this.__listenClose) {
|
|
16196
16216
|
return;
|
|
16197
16217
|
}
|
|
16198
16218
|
this.__listenClose = true;
|
|
16199
16219
|
var view = this.j;
|
|
16200
16220
|
view.e
|
|
16201
|
-
.on(view.ow,
|
|
16202
|
-
.on(
|
|
16203
|
-
.on(view.container, 'mouseleave.tooltip', this.
|
|
16204
|
-
.on([
|
|
16205
|
-
'escape.tooltip',
|
|
16206
|
-
'change.tooltip',
|
|
16207
|
-
'changePlace.tooltip',
|
|
16208
|
-
'afterOpenPopup.tooltip',
|
|
16209
|
-
'hidePopup.tooltip',
|
|
16210
|
-
'closeAllPopups.tooltip'
|
|
16211
|
-
], this.__hide)
|
|
16212
|
-
.on(view.container, 'mouseleave', this.__onMouseLeave, {
|
|
16221
|
+
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
16222
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
16223
|
+
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
16213
16224
|
capture: true
|
|
16214
16225
|
});
|
|
16215
16226
|
};
|
|
16216
|
-
UITooltip.prototype.
|
|
16227
|
+
UITooltip.prototype.__removeListenersOnLeave = function () {
|
|
16217
16228
|
if (!this.__listenClose) {
|
|
16218
16229
|
return;
|
|
16219
16230
|
}
|
|
16220
16231
|
this.__listenClose = false;
|
|
16221
16232
|
var view = this.j;
|
|
16222
16233
|
view.e
|
|
16223
|
-
.off(view.ow,
|
|
16224
|
-
.off(
|
|
16225
|
-
'escape.tooltip',
|
|
16226
|
-
'change.tooltip',
|
|
16227
|
-
'changePlace.tooltip',
|
|
16228
|
-
'afterOpenPopup.tooltip',
|
|
16229
|
-
'hidePopup.tooltip',
|
|
16230
|
-
'closeAllPopups.tooltip'
|
|
16231
|
-
], this.__hide)
|
|
16234
|
+
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
16235
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
16232
16236
|
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
16233
16237
|
};
|
|
16234
16238
|
UITooltip.prototype.__onMouseLeave = function (e) {
|
|
@@ -16254,32 +16258,31 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
16254
16258
|
return;
|
|
16255
16259
|
}
|
|
16256
16260
|
this.__currentTarget = e.target;
|
|
16257
|
-
var
|
|
16258
|
-
this.
|
|
16259
|
-
|
|
16260
|
-
return
|
|
16261
|
+
var target = e.target;
|
|
16262
|
+
this.__open(function () {
|
|
16263
|
+
var pos = (0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_7__/* .position */ .G)(target);
|
|
16264
|
+
return {
|
|
16261
16265
|
x: pos.left + pos.width / 2,
|
|
16262
16266
|
y: pos.top + pos.height
|
|
16263
|
-
}
|
|
16267
|
+
};
|
|
16264
16268
|
}, tooltip);
|
|
16265
16269
|
};
|
|
16266
|
-
UITooltip.prototype.
|
|
16270
|
+
UITooltip.prototype.__open = function (getPoint, content) {
|
|
16267
16271
|
var _this = this;
|
|
16268
|
-
|
|
16272
|
+
this.__addListenersOnEnter();
|
|
16273
|
+
this.__isOpened = true;
|
|
16269
16274
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
16270
16275
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16274
|
-
|
|
16276
|
+
var to = this.j.o.showTooltipDelay || this.j.defaultTimeout;
|
|
16277
|
+
if (!to) {
|
|
16278
|
+
this.__show(getPoint, content);
|
|
16279
|
+
return;
|
|
16280
|
+
}
|
|
16281
|
+
this.__delayShowTimeout = this.j.async.setTimeout(function () { return _this.__show(getPoint, content); }, to);
|
|
16275
16282
|
};
|
|
16276
|
-
UITooltip.prototype.
|
|
16283
|
+
UITooltip.prototype.__show = function (getPoint, content) {
|
|
16277
16284
|
this.setMod('visible', true);
|
|
16278
16285
|
this.getElm('content').innerHTML = content;
|
|
16279
|
-
this.__isOpened = true;
|
|
16280
|
-
this.__setPosition(getPoint);
|
|
16281
|
-
};
|
|
16282
|
-
UITooltip.prototype.__setPosition = function (getPoint) {
|
|
16283
16286
|
var point = getPoint();
|
|
16284
16287
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
16285
16288
|
left: point.x,
|
|
@@ -16289,24 +16292,26 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
16289
16292
|
UITooltip.prototype.__hide = function () {
|
|
16290
16293
|
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
16291
16294
|
this.j.async.clearTimeout(this.__hideTimeout);
|
|
16292
|
-
this.
|
|
16295
|
+
this.__removeListenersOnLeave();
|
|
16293
16296
|
if (this.__isOpened) {
|
|
16294
16297
|
this.__isOpened = false;
|
|
16295
16298
|
this.setMod('visible', false);
|
|
16299
|
+
this.getElm('content').innerHTML = '';
|
|
16296
16300
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(this.container, {
|
|
16297
16301
|
left: -5000
|
|
16298
16302
|
});
|
|
16299
16303
|
}
|
|
16300
16304
|
};
|
|
16301
16305
|
UITooltip.prototype.__hideDelay = function () {
|
|
16306
|
+
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
16307
|
+
this.j.async.clearTimeout(this.__hideTimeout);
|
|
16302
16308
|
if (!this.__isOpened) {
|
|
16303
16309
|
return;
|
|
16304
16310
|
}
|
|
16305
|
-
this.j.async.clearTimeout(this.__delayShowTimeout);
|
|
16306
16311
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
16307
16312
|
};
|
|
16308
16313
|
UITooltip.prototype.destruct = function () {
|
|
16309
|
-
this.j.e.off(this.j.container, 'mouseenter', this.__onMouseEnter);
|
|
16314
|
+
this.j.e.off(this.j.container, 'mouseenter.tooltip', this.__onMouseEnter);
|
|
16310
16315
|
this.__hide();
|
|
16311
16316
|
_super.prototype.destruct.call(this);
|
|
16312
16317
|
};
|
|
@@ -28301,8 +28306,8 @@ function val(elm, selector, value) {
|
|
|
28301
28306
|
/* harmony export */ });
|
|
28302
28307
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
28303
28308
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
28304
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
28305
28309
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41959);
|
|
28310
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97099);
|
|
28306
28311
|
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76185);
|
|
28307
28312
|
/*!
|
|
28308
28313
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -28344,8 +28349,16 @@ function val(elm, selector, value) {
|
|
|
28344
28349
|
* ```
|
|
28345
28350
|
*/
|
|
28346
28351
|
var TabsWidget = function (jodit, tabs, state) {
|
|
28347
|
-
var box = jodit.c.div('jodit-tabs')
|
|
28348
|
-
var
|
|
28352
|
+
var box = jodit.c.div('jodit-tabs');
|
|
28353
|
+
var tabBox = jodit.c.div('jodit-tabs__wrapper');
|
|
28354
|
+
var buttons = jodit.c.div('jodit-tabs__buttons');
|
|
28355
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(buttons, {
|
|
28356
|
+
role: 'tablist',
|
|
28357
|
+
'aria-orientation': 'horizontal'
|
|
28358
|
+
});
|
|
28359
|
+
var nameToTab = {};
|
|
28360
|
+
var buttonList = [];
|
|
28361
|
+
var firstTab = '';
|
|
28349
28362
|
box.appendChild(buttons);
|
|
28350
28363
|
box.appendChild(tabBox);
|
|
28351
28364
|
var setActive = function (tab) {
|
|
@@ -28353,21 +28366,25 @@ var TabsWidget = function (jodit, tabs, state) {
|
|
|
28353
28366
|
return;
|
|
28354
28367
|
}
|
|
28355
28368
|
buttonList.forEach(function (b) {
|
|
28356
|
-
b.state.variant = 'initial';
|
|
28357
28369
|
b.state.activated = false;
|
|
28358
28370
|
});
|
|
28359
|
-
(
|
|
28360
|
-
|
|
28371
|
+
Object.values(nameToTab).forEach(function (_a) {
|
|
28372
|
+
var tab = _a.tab;
|
|
28373
|
+
return tab.classList.remove('jodit-tab_active');
|
|
28361
28374
|
});
|
|
28362
|
-
nameToTab[tab].button.state.variant = 'outline';
|
|
28363
28375
|
nameToTab[tab].button.state.activated = true;
|
|
28364
28376
|
nameToTab[tab].tab.classList.add('jodit-tab_active');
|
|
28365
28377
|
};
|
|
28366
28378
|
tabs.forEach(function (_a) {
|
|
28367
28379
|
var icon = _a.icon, name = _a.name, content = _a.content;
|
|
28368
|
-
var tab = jodit.c.div('jodit-tab')
|
|
28380
|
+
var tab = jodit.c.div('jodit-tab');
|
|
28381
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(tab, {
|
|
28382
|
+
role: 'tabpanel'
|
|
28383
|
+
});
|
|
28384
|
+
var button = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .Button */ .$n)(jodit, icon || name, name);
|
|
28385
|
+
button.state.role = 'tab';
|
|
28369
28386
|
// Stop lose the focus
|
|
28370
|
-
jodit.e.on(button.container, '
|
|
28387
|
+
jodit.e.on(button.container, 'pointerdown', function (e) {
|
|
28371
28388
|
return e.preventDefault();
|
|
28372
28389
|
});
|
|
28373
28390
|
if (!firstTab) {
|
|
@@ -28399,13 +28416,10 @@ var TabsWidget = function (jodit, tabs, state) {
|
|
|
28399
28416
|
button: button,
|
|
28400
28417
|
tab: tab
|
|
28401
28418
|
};
|
|
28402
|
-
tabCount += 1;
|
|
28403
28419
|
});
|
|
28404
|
-
|
|
28405
|
-
|
|
28406
|
-
|
|
28407
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('a', buttons).forEach(function (a) {
|
|
28408
|
-
a.style.width = (100 / tabCount).toFixed(10) + '%';
|
|
28420
|
+
Object.values(nameToTab).forEach(function (_a) {
|
|
28421
|
+
var button = _a.button;
|
|
28422
|
+
button.container.style.width = (100 / tabs.length).toFixed(10) + '%';
|
|
28409
28423
|
});
|
|
28410
28424
|
var tab = !state || !state.activeTab || !nameToTab[state.activeTab]
|
|
28411
28425
|
? firstTab
|