jodit-pro 4.6.17 → 4.6.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 +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +120 -169
- 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 +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +120 -169
- 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 +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +118 -168
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +118 -168
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +127 -176
- package/es5/jodit.min.css +2 -2
- 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/esm/config.d.ts +2 -2
- package/esm/plugins/autocomplete/autocomplete.d.ts +3 -14
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/config.d.ts +17 -0
- package/esm/plugins/autocomplete/config.js +6 -0
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +2 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/item.d.ts +5 -1
- package/esm/plugins/autocomplete/ui/item.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +2 -2
- package/types/plugins/autocomplete/autocomplete.d.ts +3 -14
- package/types/plugins/autocomplete/config.d.ts +17 -0
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +2 -1
- package/types/plugins/autocomplete/ui/item.d.ts +5 -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.6.
|
|
4
|
+
* Version: v4.6.20
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -10877,6 +10877,29 @@ ToolbarCollection = __decorate([
|
|
|
10877
10877
|
|
|
10878
10878
|
|
|
10879
10879
|
|
|
10880
|
+
/***/ }),
|
|
10881
|
+
|
|
10882
|
+
/***/ 11691:
|
|
10883
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
10884
|
+
|
|
10885
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
10886
|
+
/*!
|
|
10887
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
10888
|
+
* See LICENSE.md in the project root for license information.
|
|
10889
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
10890
|
+
*/
|
|
10891
|
+
|
|
10892
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
10893
|
+
sources: [],
|
|
10894
|
+
maxItems: 50,
|
|
10895
|
+
isMatchedQuery: function (query, value) {
|
|
10896
|
+
return value.toLowerCase().indexOf(query.toLowerCase()) === 0;
|
|
10897
|
+
},
|
|
10898
|
+
itemRenderer: function (item) { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
10899
|
+
insertValueRenderer: function (item) { return item.value + ' '; }
|
|
10900
|
+
};
|
|
10901
|
+
|
|
10902
|
+
|
|
10880
10903
|
/***/ }),
|
|
10881
10904
|
|
|
10882
10905
|
/***/ 11787:
|
|
@@ -17619,7 +17642,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17619
17642
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
17620
17643
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
17621
17644
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
17622
|
-
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
17623
17645
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
17624
17646
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
17625
17647
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -17714,7 +17736,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17714
17736
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
17715
17737
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
17716
17738
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
17717
|
-
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
17718
17739
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
17719
17740
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
17720
17741
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -30439,127 +30460,6 @@ function uniqueMax(array) {
|
|
|
30439
30460
|
}
|
|
30440
30461
|
|
|
30441
30462
|
|
|
30442
|
-
/***/ }),
|
|
30443
|
-
|
|
30444
|
-
/***/ 39942:
|
|
30445
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
30446
|
-
|
|
30447
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30448
|
-
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
30449
|
-
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
30450
|
-
/* harmony export */ });
|
|
30451
|
-
/*!
|
|
30452
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30453
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
30454
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30455
|
-
*/ /**
|
|
30456
|
-
* Reconciles two arrays and returns the differences
|
|
30457
|
-
* @param oldArray - The original array
|
|
30458
|
-
* @param newArray - The new array to compare against
|
|
30459
|
-
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
30460
|
-
* @returns Object containing added, removed, kept and moved items
|
|
30461
|
-
*
|
|
30462
|
-
* @example
|
|
30463
|
-
* ```typescript
|
|
30464
|
-
* const old = [1, 2, 3, 4];
|
|
30465
|
-
* const new = [2, 4, 5, 1];
|
|
30466
|
-
* const result = reconcileArrays(old, new);
|
|
30467
|
-
* // result.added = [5]
|
|
30468
|
-
* // result.removed = [3]
|
|
30469
|
-
* // result.kept = [2, 4, 1]
|
|
30470
|
-
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
30471
|
-
* ```
|
|
30472
|
-
*
|
|
30473
|
-
* @example
|
|
30474
|
-
* ```typescript
|
|
30475
|
-
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
30476
|
-
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
30477
|
-
* const result = reconcileArrays(old, new, item => item.id);
|
|
30478
|
-
* // result.added = [{id: 3, name: 'c'}]
|
|
30479
|
-
* // result.removed = [{id: 1, name: 'a'}]
|
|
30480
|
-
* ```
|
|
30481
|
-
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
30482
|
-
var getKey = keyFn || function(item) {
|
|
30483
|
-
return item;
|
|
30484
|
-
};
|
|
30485
|
-
var oldMap = new Map();
|
|
30486
|
-
var newMap = new Map();
|
|
30487
|
-
oldArray.forEach(function(item, index) {
|
|
30488
|
-
oldMap.set(getKey(item), {
|
|
30489
|
-
item: item,
|
|
30490
|
-
index: index
|
|
30491
|
-
});
|
|
30492
|
-
});
|
|
30493
|
-
newArray.forEach(function(item, index) {
|
|
30494
|
-
newMap.set(getKey(item), {
|
|
30495
|
-
item: item,
|
|
30496
|
-
index: index
|
|
30497
|
-
});
|
|
30498
|
-
});
|
|
30499
|
-
var added = [];
|
|
30500
|
-
var removed = [];
|
|
30501
|
-
var kept = [];
|
|
30502
|
-
var moved = [];
|
|
30503
|
-
// Find removed items
|
|
30504
|
-
oldMap.forEach(function(value, key) {
|
|
30505
|
-
if (!newMap.has(key)) {
|
|
30506
|
-
removed.push(value.item);
|
|
30507
|
-
}
|
|
30508
|
-
});
|
|
30509
|
-
// Find added items and track kept/moved items
|
|
30510
|
-
newMap.forEach(function(value, key) {
|
|
30511
|
-
var oldItem = oldMap.get(key);
|
|
30512
|
-
if (!oldItem) {
|
|
30513
|
-
added.push(value.item);
|
|
30514
|
-
} else {
|
|
30515
|
-
kept.push(value.item);
|
|
30516
|
-
if (oldItem.index !== value.index) {
|
|
30517
|
-
moved.push({
|
|
30518
|
-
item: value.item,
|
|
30519
|
-
from: oldItem.index,
|
|
30520
|
-
to: value.index
|
|
30521
|
-
});
|
|
30522
|
-
}
|
|
30523
|
-
}
|
|
30524
|
-
});
|
|
30525
|
-
return {
|
|
30526
|
-
added: added,
|
|
30527
|
-
removed: removed,
|
|
30528
|
-
kept: kept,
|
|
30529
|
-
moved: moved
|
|
30530
|
-
};
|
|
30531
|
-
}
|
|
30532
|
-
/**
|
|
30533
|
-
* Applies reconciliation patches to transform one array into another
|
|
30534
|
-
* @param oldArray - The original array to transform
|
|
30535
|
-
* @param newArray - The target array structure
|
|
30536
|
-
* @param keyFn - Optional function to generate unique keys for items
|
|
30537
|
-
* @returns New array matching the structure of newArray
|
|
30538
|
-
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
30539
|
-
var result = reconcileArrays(oldArray, newArray, keyFn);
|
|
30540
|
-
var output = [];
|
|
30541
|
-
// Build the new array based on newArray order
|
|
30542
|
-
newArray.forEach(function(item) {
|
|
30543
|
-
var key = keyFn ? keyFn(item) : item;
|
|
30544
|
-
var isNew = result.added.some(function(addedItem) {
|
|
30545
|
-
return (keyFn ? keyFn(addedItem) : addedItem) === key;
|
|
30546
|
-
});
|
|
30547
|
-
if (isNew) {
|
|
30548
|
-
output.push(item);
|
|
30549
|
-
} else {
|
|
30550
|
-
// Use the old item reference if it exists
|
|
30551
|
-
var oldItem = oldArray.find(function(oldItem) {
|
|
30552
|
-
return (keyFn ? keyFn(oldItem) : oldItem) === key;
|
|
30553
|
-
});
|
|
30554
|
-
if (oldItem !== undefined) {
|
|
30555
|
-
output.push(oldItem);
|
|
30556
|
-
}
|
|
30557
|
-
}
|
|
30558
|
-
});
|
|
30559
|
-
return output;
|
|
30560
|
-
}
|
|
30561
|
-
|
|
30562
|
-
|
|
30563
30463
|
/***/ }),
|
|
30564
30464
|
|
|
30565
30465
|
/***/ 39955:
|
|
@@ -37396,8 +37296,9 @@ function persistent(target, propertyKey) {
|
|
|
37396
37296
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
37397
37297
|
/* harmony export */ });
|
|
37398
37298
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
37399
|
-
/* harmony import */ var
|
|
37400
|
-
/* harmony import */ var
|
|
37299
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
37300
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
37301
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
37401
37302
|
/*!
|
|
37402
37303
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
37403
37304
|
* See LICENSE.md in the project root for license information.
|
|
@@ -37407,16 +37308,20 @@ function persistent(target, propertyKey) {
|
|
|
37407
37308
|
|
|
37408
37309
|
|
|
37409
37310
|
|
|
37311
|
+
|
|
37410
37312
|
var AutocompleteItem = /** @class */ (function (_super) {
|
|
37411
37313
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(AutocompleteItem, _super);
|
|
37412
|
-
function AutocompleteItem(jodit, item) {
|
|
37314
|
+
function AutocompleteItem(jodit, item, onClick) {
|
|
37413
37315
|
var _a;
|
|
37414
37316
|
var _this = _super.call(this, jodit) || this;
|
|
37415
37317
|
_this.item = item;
|
|
37318
|
+
_this.onClick = onClick;
|
|
37319
|
+
_this.value = '';
|
|
37416
37320
|
var container = _this.container;
|
|
37417
|
-
|
|
37321
|
+
_this.value = item.value;
|
|
37322
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
37418
37323
|
var elm = item.itemRenderer(item);
|
|
37419
|
-
if ((0,
|
|
37324
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
37420
37325
|
container.innerHTML = elm;
|
|
37421
37326
|
}
|
|
37422
37327
|
else {
|
|
@@ -37432,8 +37337,24 @@ var AutocompleteItem = /** @class */ (function (_super) {
|
|
|
37432
37337
|
AutocompleteItem.prototype.className = function () {
|
|
37433
37338
|
return 'AutocompleteItem';
|
|
37434
37339
|
};
|
|
37340
|
+
AutocompleteItem.prototype.onClickPrevent = function (e) {
|
|
37341
|
+
e.preventDefault();
|
|
37342
|
+
e.stopPropagation();
|
|
37343
|
+
};
|
|
37344
|
+
AutocompleteItem.prototype.onClickHandler = function () {
|
|
37345
|
+
this.onClick(this.value);
|
|
37346
|
+
};
|
|
37347
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
37348
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
37349
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
37350
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
37351
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
37352
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
37353
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
37354
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
37355
|
+
], AutocompleteItem);
|
|
37435
37356
|
return AutocompleteItem;
|
|
37436
|
-
}(
|
|
37357
|
+
}(jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D));
|
|
37437
37358
|
|
|
37438
37359
|
|
|
37439
37360
|
|
|
@@ -53947,16 +53868,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53947
53868
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
53948
53869
|
|
|
53949
53870
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53950
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
53871
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_2__.$; },
|
|
53951
53872
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
53952
|
-
/* harmony export */
|
|
53953
|
-
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
53954
|
-
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
53873
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_1__.u; }
|
|
53955
53874
|
/* harmony export */ });
|
|
53956
53875
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
53957
|
-
/* harmony import */ var
|
|
53958
|
-
/* harmony import */ var
|
|
53959
|
-
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
53876
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46559);
|
|
53877
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
53960
53878
|
/*!
|
|
53961
53879
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
53962
53880
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -53968,7 +53886,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53968
53886
|
|
|
53969
53887
|
|
|
53970
53888
|
|
|
53971
|
-
|
|
53972
53889
|
/***/ }),
|
|
53973
53890
|
|
|
53974
53891
|
/***/ 77183:
|
|
@@ -55242,35 +55159,54 @@ var Autocomplete = /** @class */ (function (_super) {
|
|
|
55242
55159
|
var _this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(arguments), false)) || this;
|
|
55243
55160
|
_this.elements = [];
|
|
55244
55161
|
_this.currentSelection = -1;
|
|
55162
|
+
_this.__previousList = [];
|
|
55245
55163
|
return _this;
|
|
55246
55164
|
}
|
|
55247
55165
|
/** @override */
|
|
55248
55166
|
Autocomplete.prototype.className = function () {
|
|
55249
55167
|
return 'Autocomplete';
|
|
55250
55168
|
};
|
|
55251
|
-
Autocomplete.prototype.onChangeSelection = function (
|
|
55252
|
-
var _a;
|
|
55253
|
-
|
|
55254
|
-
this.elements[this.currentSelection].setMod('active', true);
|
|
55255
|
-
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
55169
|
+
Autocomplete.prototype.onChangeSelection = function () {
|
|
55170
|
+
var _a, _b;
|
|
55171
|
+
this.elements.forEach(function (elm) { return elm.setMod('active', false); });
|
|
55172
|
+
(_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.setMod('active', true);
|
|
55173
|
+
(_b = this.elements[this.currentSelection]) === null || _b === void 0 ? void 0 : _b.container.scrollIntoView(false);
|
|
55256
55174
|
};
|
|
55257
55175
|
Autocomplete.prototype.build = function (list) {
|
|
55258
55176
|
var _this = this;
|
|
55259
|
-
|
|
55260
|
-
|
|
55261
|
-
|
|
55262
|
-
|
|
55263
|
-
|
|
55264
|
-
|
|
55265
|
-
|
|
55266
|
-
.
|
|
55267
|
-
|
|
55177
|
+
var _a;
|
|
55178
|
+
var currentValue = (_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.item.value;
|
|
55179
|
+
var removed = [];
|
|
55180
|
+
var elementIndex = -1;
|
|
55181
|
+
for (var i = 0; i < list.length; i += 1) {
|
|
55182
|
+
elementIndex += 1;
|
|
55183
|
+
if (this.__previousList[i] != null &&
|
|
55184
|
+
list[i].value === this.__previousList[i].value) {
|
|
55185
|
+
continue;
|
|
55186
|
+
}
|
|
55187
|
+
if (this.elements[elementIndex]) {
|
|
55188
|
+
removed.push(this.elements[elementIndex]);
|
|
55189
|
+
elementIndex += 1;
|
|
55190
|
+
}
|
|
55191
|
+
var item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], function (value) {
|
|
55192
|
+
_this.currentSelection = list.findIndex(function (item) { return item.value === value; });
|
|
55268
55193
|
_this.select();
|
|
55269
55194
|
});
|
|
55270
|
-
|
|
55195
|
+
this.append(item, elementIndex);
|
|
55196
|
+
}
|
|
55197
|
+
for (var fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
55198
|
+
removed.push(this.elements[fromIndex]);
|
|
55199
|
+
}
|
|
55200
|
+
removed.forEach(function (item) {
|
|
55201
|
+
_this.remove(item);
|
|
55202
|
+
item.destruct();
|
|
55271
55203
|
});
|
|
55272
|
-
this.currentSelection
|
|
55273
|
-
this.
|
|
55204
|
+
var previosSelection = this.currentSelection;
|
|
55205
|
+
this.currentSelection = Math.max(0, list.findIndex(function (elm) { return elm.value === currentValue; }));
|
|
55206
|
+
if (previosSelection === this.currentSelection) {
|
|
55207
|
+
this.onChangeSelection();
|
|
55208
|
+
}
|
|
55209
|
+
this.__previousList = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(list), false);
|
|
55274
55210
|
};
|
|
55275
55211
|
Autocomplete.prototype.selectNext = function () {
|
|
55276
55212
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -61485,7 +61421,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
61485
61421
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
61486
61422
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
61487
61423
|
}
|
|
61488
|
-
var APP_VERSION = "4.6.
|
|
61424
|
+
var APP_VERSION = "4.6.20";
|
|
61489
61425
|
// prettier-ignore
|
|
61490
61426
|
var ES = "es5";
|
|
61491
61427
|
var IS_ES_MODERN = false;
|
|
@@ -65657,9 +65593,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
65657
65593
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
65658
65594
|
/* harmony export */ });
|
|
65659
65595
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
65660
|
-
/* harmony import */ var
|
|
65661
|
-
/* harmony import */ var
|
|
65662
|
-
/* harmony import */ var
|
|
65596
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
65597
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
65598
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
65663
65599
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
65664
65600
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
65665
65601
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -65683,31 +65619,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
65683
65619
|
|
|
65684
65620
|
|
|
65685
65621
|
|
|
65686
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
65687
|
-
sources: [],
|
|
65688
|
-
maxItems: 50,
|
|
65689
|
-
isMatchedQuery: function (query, value) {
|
|
65690
|
-
return value.toLowerCase().indexOf(query.toLowerCase()) === 0;
|
|
65691
|
-
},
|
|
65692
|
-
itemRenderer: function (item) { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
65693
|
-
insertValueRenderer: function (item) { return item.value + ' '; }
|
|
65694
|
-
};
|
|
65695
65622
|
var autocomplete = /** @class */ (function (_super) {
|
|
65696
65623
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(autocomplete, _super);
|
|
65697
|
-
function autocomplete(
|
|
65698
|
-
var _this = _super.
|
|
65624
|
+
function autocomplete() {
|
|
65625
|
+
var _this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(arguments), false)) || this;
|
|
65699
65626
|
/** @override */
|
|
65700
65627
|
_this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
65701
65628
|
_this.sources = [];
|
|
65702
65629
|
return _this;
|
|
65703
65630
|
}
|
|
65631
|
+
Object.defineProperty(autocomplete.prototype, "list", {
|
|
65632
|
+
get: function () {
|
|
65633
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
65634
|
+
},
|
|
65635
|
+
enumerable: false,
|
|
65636
|
+
configurable: true
|
|
65637
|
+
});
|
|
65638
|
+
Object.defineProperty(autocomplete.prototype, "popup", {
|
|
65639
|
+
get: function () {
|
|
65640
|
+
var _this = this;
|
|
65641
|
+
var popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
65642
|
+
popup.setMod('padding', false);
|
|
65643
|
+
popup.setContent(this.list.container);
|
|
65644
|
+
this.jodit.e.on(popup, 'beforeClose', function () {
|
|
65645
|
+
_this.list.currentSelection = 0;
|
|
65646
|
+
});
|
|
65647
|
+
return popup;
|
|
65648
|
+
},
|
|
65649
|
+
enumerable: false,
|
|
65650
|
+
configurable: true
|
|
65651
|
+
});
|
|
65704
65652
|
/** @override */
|
|
65705
65653
|
autocomplete.prototype.afterInit = function (jodit) {
|
|
65706
65654
|
var _this = this;
|
|
65707
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
65708
|
-
this.popup.setMod('padding', false);
|
|
65709
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
65710
|
-
this.popup.setContent(this.list.container);
|
|
65711
65655
|
jodit.e
|
|
65712
65656
|
.on('select.autocomplete', function (item) {
|
|
65713
65657
|
var insertValue = item.value;
|
|
@@ -65717,7 +65661,7 @@ var autocomplete = /** @class */ (function (_super) {
|
|
|
65717
65661
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
65718
65662
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
65719
65663
|
}
|
|
65720
|
-
(0,
|
|
65664
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
65721
65665
|
_this.j.s.setCursorAfter(insertValue);
|
|
65722
65666
|
_this.j.synchronizeValues();
|
|
65723
65667
|
_this.popup.close();
|
|
@@ -65759,7 +65703,7 @@ var autocomplete = /** @class */ (function (_super) {
|
|
|
65759
65703
|
range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
65760
65704
|
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
65761
65705
|
: null;
|
|
65762
|
-
query = range && (0,
|
|
65706
|
+
query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
65763
65707
|
if (!(query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length)) return [3 /*break*/, 2];
|
|
65764
65708
|
return [4 /*yield*/, this.onAutoComplete(query)];
|
|
65765
65709
|
case 1:
|
|
@@ -65911,6 +65855,7 @@ var autocomplete = /** @class */ (function (_super) {
|
|
|
65911
65855
|
autocomplete.prototype.beforeDestruct = function (jodit) {
|
|
65912
65856
|
jodit.e
|
|
65913
65857
|
.off(this.list)
|
|
65858
|
+
.off(this.popup)
|
|
65914
65859
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
65915
65860
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
65916
65861
|
.off('.autocomplete');
|
|
@@ -65919,6 +65864,12 @@ var autocomplete = /** @class */ (function (_super) {
|
|
|
65919
65864
|
};
|
|
65920
65865
|
/** @override */
|
|
65921
65866
|
autocomplete.requires = ['enter', 'license'];
|
|
65867
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
65868
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
65869
|
+
], autocomplete.prototype, "list", null);
|
|
65870
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
65871
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
65872
|
+
], autocomplete.prototype, "popup", null);
|
|
65922
65873
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
65923
65874
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
65924
65875
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.20
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit-pro - PRO Version of Jodit Editor
|
|
10
10
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
11
|
-
* Version: v4.6.
|
|
11
|
+
* Version: v4.6.20
|
|
12
12
|
* Url: https://xdsoft.net/jodit/pro/
|
|
13
13
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
14
14
|
*/
|