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/es2021/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.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
|
*/
|
|
@@ -7196,6 +7196,27 @@ ToolbarCollection = __decorate([
|
|
|
7196
7196
|
|
|
7197
7197
|
|
|
7198
7198
|
|
|
7199
|
+
/***/ }),
|
|
7200
|
+
|
|
7201
|
+
/***/ 11691:
|
|
7202
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
7203
|
+
|
|
7204
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
7205
|
+
/*!
|
|
7206
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
7207
|
+
* See LICENSE.md in the project root for license information.
|
|
7208
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
7209
|
+
*/
|
|
7210
|
+
|
|
7211
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
7212
|
+
sources: [],
|
|
7213
|
+
maxItems: 50,
|
|
7214
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
7215
|
+
itemRenderer: (item) => item.title ?? item.value,
|
|
7216
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
7217
|
+
};
|
|
7218
|
+
|
|
7219
|
+
|
|
7199
7220
|
/***/ }),
|
|
7200
7221
|
|
|
7201
7222
|
/***/ 11787:
|
|
@@ -11730,7 +11751,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11730
11751
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
11731
11752
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
11732
11753
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
11733
|
-
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
11734
11754
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
11735
11755
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
11736
11756
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -11825,7 +11845,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11825
11845
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
11826
11846
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
11827
11847
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
11828
|
-
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
11829
11848
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
11830
11849
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
11831
11850
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -20951,121 +20970,6 @@ function uniqueMax(array) {
|
|
|
20951
20970
|
}
|
|
20952
20971
|
|
|
20953
20972
|
|
|
20954
|
-
/***/ }),
|
|
20955
|
-
|
|
20956
|
-
/***/ 39942:
|
|
20957
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20958
|
-
|
|
20959
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20960
|
-
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
20961
|
-
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
20962
|
-
/* harmony export */ });
|
|
20963
|
-
/*!
|
|
20964
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20965
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
20966
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
20967
|
-
*/ /**
|
|
20968
|
-
* Reconciles two arrays and returns the differences
|
|
20969
|
-
* @param oldArray - The original array
|
|
20970
|
-
* @param newArray - The new array to compare against
|
|
20971
|
-
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
20972
|
-
* @returns Object containing added, removed, kept and moved items
|
|
20973
|
-
*
|
|
20974
|
-
* @example
|
|
20975
|
-
* ```typescript
|
|
20976
|
-
* const old = [1, 2, 3, 4];
|
|
20977
|
-
* const new = [2, 4, 5, 1];
|
|
20978
|
-
* const result = reconcileArrays(old, new);
|
|
20979
|
-
* // result.added = [5]
|
|
20980
|
-
* // result.removed = [3]
|
|
20981
|
-
* // result.kept = [2, 4, 1]
|
|
20982
|
-
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
20983
|
-
* ```
|
|
20984
|
-
*
|
|
20985
|
-
* @example
|
|
20986
|
-
* ```typescript
|
|
20987
|
-
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
20988
|
-
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
20989
|
-
* const result = reconcileArrays(old, new, item => item.id);
|
|
20990
|
-
* // result.added = [{id: 3, name: 'c'}]
|
|
20991
|
-
* // result.removed = [{id: 1, name: 'a'}]
|
|
20992
|
-
* ```
|
|
20993
|
-
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
20994
|
-
const getKey = keyFn || ((item)=>item);
|
|
20995
|
-
const oldMap = new Map();
|
|
20996
|
-
const newMap = new Map();
|
|
20997
|
-
oldArray.forEach((item, index)=>{
|
|
20998
|
-
oldMap.set(getKey(item), {
|
|
20999
|
-
item,
|
|
21000
|
-
index
|
|
21001
|
-
});
|
|
21002
|
-
});
|
|
21003
|
-
newArray.forEach((item, index)=>{
|
|
21004
|
-
newMap.set(getKey(item), {
|
|
21005
|
-
item,
|
|
21006
|
-
index
|
|
21007
|
-
});
|
|
21008
|
-
});
|
|
21009
|
-
const added = [];
|
|
21010
|
-
const removed = [];
|
|
21011
|
-
const kept = [];
|
|
21012
|
-
const moved = [];
|
|
21013
|
-
// Find removed items
|
|
21014
|
-
oldMap.forEach((value, key)=>{
|
|
21015
|
-
if (!newMap.has(key)) {
|
|
21016
|
-
removed.push(value.item);
|
|
21017
|
-
}
|
|
21018
|
-
});
|
|
21019
|
-
// Find added items and track kept/moved items
|
|
21020
|
-
newMap.forEach((value, key)=>{
|
|
21021
|
-
const oldItem = oldMap.get(key);
|
|
21022
|
-
if (!oldItem) {
|
|
21023
|
-
added.push(value.item);
|
|
21024
|
-
} else {
|
|
21025
|
-
kept.push(value.item);
|
|
21026
|
-
if (oldItem.index !== value.index) {
|
|
21027
|
-
moved.push({
|
|
21028
|
-
item: value.item,
|
|
21029
|
-
from: oldItem.index,
|
|
21030
|
-
to: value.index
|
|
21031
|
-
});
|
|
21032
|
-
}
|
|
21033
|
-
}
|
|
21034
|
-
});
|
|
21035
|
-
return {
|
|
21036
|
-
added,
|
|
21037
|
-
removed,
|
|
21038
|
-
kept,
|
|
21039
|
-
moved
|
|
21040
|
-
};
|
|
21041
|
-
}
|
|
21042
|
-
/**
|
|
21043
|
-
* Applies reconciliation patches to transform one array into another
|
|
21044
|
-
* @param oldArray - The original array to transform
|
|
21045
|
-
* @param newArray - The target array structure
|
|
21046
|
-
* @param keyFn - Optional function to generate unique keys for items
|
|
21047
|
-
* @returns New array matching the structure of newArray
|
|
21048
|
-
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
21049
|
-
const result = reconcileArrays(oldArray, newArray, keyFn);
|
|
21050
|
-
const output = [];
|
|
21051
|
-
// Build the new array based on newArray order
|
|
21052
|
-
newArray.forEach((item)=>{
|
|
21053
|
-
const key = keyFn ? keyFn(item) : item;
|
|
21054
|
-
const isNew = result.added.some((addedItem)=>(keyFn ? keyFn(addedItem) : addedItem) === key);
|
|
21055
|
-
if (isNew) {
|
|
21056
|
-
output.push(item);
|
|
21057
|
-
} else {
|
|
21058
|
-
// Use the old item reference if it exists
|
|
21059
|
-
const oldItem = oldArray.find((oldItem)=>(keyFn ? keyFn(oldItem) : oldItem) === key);
|
|
21060
|
-
if (oldItem !== undefined) {
|
|
21061
|
-
output.push(oldItem);
|
|
21062
|
-
}
|
|
21063
|
-
}
|
|
21064
|
-
});
|
|
21065
|
-
return output;
|
|
21066
|
-
}
|
|
21067
|
-
|
|
21068
|
-
|
|
21069
20973
|
/***/ }),
|
|
21070
20974
|
|
|
21071
20975
|
/***/ 39955:
|
|
@@ -26421,8 +26325,10 @@ function persistent(target, propertyKey) {
|
|
|
26421
26325
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26422
26326
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
26423
26327
|
/* harmony export */ });
|
|
26424
|
-
/* harmony import */ var
|
|
26425
|
-
/* harmony import */ var
|
|
26328
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
26329
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
26330
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
26331
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
26426
26332
|
/*!
|
|
26427
26333
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
26428
26334
|
* See LICENSE.md in the project root for license information.
|
|
@@ -26431,18 +26337,23 @@ function persistent(target, propertyKey) {
|
|
|
26431
26337
|
|
|
26432
26338
|
|
|
26433
26339
|
|
|
26434
|
-
|
|
26340
|
+
|
|
26341
|
+
|
|
26342
|
+
let AutocompleteItem = class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
26435
26343
|
/** @override */
|
|
26436
26344
|
className() {
|
|
26437
26345
|
return 'AutocompleteItem';
|
|
26438
26346
|
}
|
|
26439
|
-
constructor(jodit, item) {
|
|
26347
|
+
constructor(jodit, item, onClick) {
|
|
26440
26348
|
super(jodit);
|
|
26441
26349
|
this.item = item;
|
|
26350
|
+
this.onClick = onClick;
|
|
26351
|
+
this.value = '';
|
|
26442
26352
|
const { container } = this;
|
|
26443
|
-
|
|
26353
|
+
this.value = item.value;
|
|
26354
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
26444
26355
|
const elm = item.itemRenderer(item);
|
|
26445
|
-
if ((0,
|
|
26356
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
26446
26357
|
container.innerHTML = elm;
|
|
26447
26358
|
}
|
|
26448
26359
|
else {
|
|
@@ -26453,7 +26364,24 @@ class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODUL
|
|
|
26453
26364
|
container.innerText = item.title ?? item.value;
|
|
26454
26365
|
}
|
|
26455
26366
|
}
|
|
26456
|
-
|
|
26367
|
+
onClickPrevent(e) {
|
|
26368
|
+
e.preventDefault();
|
|
26369
|
+
e.stopPropagation();
|
|
26370
|
+
}
|
|
26371
|
+
onClickHandler() {
|
|
26372
|
+
this.onClick(this.value);
|
|
26373
|
+
}
|
|
26374
|
+
};
|
|
26375
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26376
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
26377
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
26378
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26379
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
26380
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
26381
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26382
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
26383
|
+
], AutocompleteItem);
|
|
26384
|
+
|
|
26457
26385
|
|
|
26458
26386
|
|
|
26459
26387
|
/***/ }),
|
|
@@ -38393,16 +38321,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38393
38321
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38394
38322
|
|
|
38395
38323
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38396
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
38324
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_2__.$; },
|
|
38397
38325
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
38398
|
-
/* harmony export */
|
|
38399
|
-
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
38400
|
-
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
38326
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_1__.u; }
|
|
38401
38327
|
/* harmony export */ });
|
|
38402
38328
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
38403
|
-
/* harmony import */ var
|
|
38404
|
-
/* harmony import */ var
|
|
38405
|
-
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
38329
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46559);
|
|
38330
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
38406
38331
|
/*!
|
|
38407
38332
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38408
38333
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38414,7 +38339,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38414
38339
|
|
|
38415
38340
|
|
|
38416
38341
|
|
|
38417
|
-
|
|
38418
38342
|
/***/ }),
|
|
38419
38343
|
|
|
38420
38344
|
/***/ 77183:
|
|
@@ -39458,32 +39382,50 @@ let Autocomplete = class Autocomplete extends jodit_esm_core_ui_group_group__WEB
|
|
|
39458
39382
|
super(...arguments);
|
|
39459
39383
|
this.elements = [];
|
|
39460
39384
|
this.currentSelection = -1;
|
|
39385
|
+
this.__previousList = [];
|
|
39461
39386
|
}
|
|
39462
39387
|
/** @override */
|
|
39463
39388
|
className() {
|
|
39464
39389
|
return 'Autocomplete';
|
|
39465
39390
|
}
|
|
39466
|
-
onChangeSelection(
|
|
39467
|
-
|
|
39468
|
-
this.elements[this.currentSelection]
|
|
39469
|
-
this.elements[this.currentSelection]
|
|
39391
|
+
onChangeSelection() {
|
|
39392
|
+
this.elements.forEach((elm) => elm.setMod('active', false));
|
|
39393
|
+
this.elements[this.currentSelection]?.setMod('active', true);
|
|
39394
|
+
this.elements[this.currentSelection]?.container.scrollIntoView(false);
|
|
39470
39395
|
}
|
|
39471
39396
|
build(list) {
|
|
39472
|
-
this.
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39477
|
-
|
|
39478
|
-
|
|
39479
|
-
|
|
39480
|
-
|
|
39397
|
+
const currentValue = this.elements[this.currentSelection]?.item.value;
|
|
39398
|
+
const removed = [];
|
|
39399
|
+
let elementIndex = -1;
|
|
39400
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
39401
|
+
elementIndex += 1;
|
|
39402
|
+
if (this.__previousList[i] != null &&
|
|
39403
|
+
list[i].value === this.__previousList[i].value) {
|
|
39404
|
+
continue;
|
|
39405
|
+
}
|
|
39406
|
+
if (this.elements[elementIndex]) {
|
|
39407
|
+
removed.push(this.elements[elementIndex]);
|
|
39408
|
+
elementIndex += 1;
|
|
39409
|
+
}
|
|
39410
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], (value) => {
|
|
39411
|
+
this.currentSelection = list.findIndex((item) => item.value === value);
|
|
39481
39412
|
this.select();
|
|
39482
39413
|
});
|
|
39483
|
-
this.append(item);
|
|
39414
|
+
this.append(item, elementIndex);
|
|
39415
|
+
}
|
|
39416
|
+
for (let fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
39417
|
+
removed.push(this.elements[fromIndex]);
|
|
39418
|
+
}
|
|
39419
|
+
removed.forEach((item) => {
|
|
39420
|
+
this.remove(item);
|
|
39421
|
+
item.destruct();
|
|
39484
39422
|
});
|
|
39485
|
-
this.currentSelection
|
|
39486
|
-
this.
|
|
39423
|
+
const previosSelection = this.currentSelection;
|
|
39424
|
+
this.currentSelection = Math.max(0, list.findIndex((elm) => elm.value === currentValue));
|
|
39425
|
+
if (previosSelection === this.currentSelection) {
|
|
39426
|
+
this.onChangeSelection();
|
|
39427
|
+
}
|
|
39428
|
+
this.__previousList = [...list];
|
|
39487
39429
|
}
|
|
39488
39430
|
selectNext() {
|
|
39489
39431
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -43475,7 +43417,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43475
43417
|
* ```
|
|
43476
43418
|
* @packageDocumentation
|
|
43477
43419
|
* @module constants
|
|
43478
|
-
*/ const APP_VERSION = "4.6.
|
|
43420
|
+
*/ const APP_VERSION = "4.6.20";
|
|
43479
43421
|
// prettier-ignore
|
|
43480
43422
|
const ES = "es2021";
|
|
43481
43423
|
const IS_ES_MODERN = true;
|
|
@@ -46319,9 +46261,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46319
46261
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
46320
46262
|
/* harmony export */ });
|
|
46321
46263
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
46322
|
-
/* harmony import */ var
|
|
46323
|
-
/* harmony import */ var
|
|
46324
|
-
/* harmony import */ var
|
|
46264
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
46265
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
46266
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
46325
46267
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
46326
46268
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
46327
46269
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -46345,26 +46287,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46345
46287
|
|
|
46346
46288
|
|
|
46347
46289
|
|
|
46348
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
46349
|
-
sources: [],
|
|
46350
|
-
maxItems: 50,
|
|
46351
|
-
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
46352
|
-
itemRenderer: (item) => item.title ?? item.value,
|
|
46353
|
-
insertValueRenderer: (item) => item.value + ' '
|
|
46354
|
-
};
|
|
46355
46290
|
class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .Plugin */ .k {
|
|
46356
|
-
constructor(
|
|
46357
|
-
super(
|
|
46291
|
+
constructor() {
|
|
46292
|
+
super(...arguments);
|
|
46358
46293
|
/** @override */
|
|
46359
46294
|
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
46360
46295
|
this.sources = [];
|
|
46361
46296
|
}
|
|
46297
|
+
get list() {
|
|
46298
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
46299
|
+
}
|
|
46300
|
+
get popup() {
|
|
46301
|
+
const popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
46302
|
+
popup.setMod('padding', false);
|
|
46303
|
+
popup.setContent(this.list.container);
|
|
46304
|
+
this.jodit.e.on(popup, 'beforeClose', () => {
|
|
46305
|
+
this.list.currentSelection = 0;
|
|
46306
|
+
});
|
|
46307
|
+
return popup;
|
|
46308
|
+
}
|
|
46362
46309
|
/** @override */
|
|
46363
46310
|
afterInit(jodit) {
|
|
46364
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
46365
|
-
this.popup.setMod('padding', false);
|
|
46366
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
46367
|
-
this.popup.setContent(this.list.container);
|
|
46368
46311
|
jodit.e
|
|
46369
46312
|
.on('select.autocomplete', (item) => {
|
|
46370
46313
|
let insertValue = item.value;
|
|
@@ -46374,7 +46317,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46374
46317
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
46375
46318
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
46376
46319
|
}
|
|
46377
|
-
(0,
|
|
46320
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
46378
46321
|
this.j.s.setCursorAfter(insertValue);
|
|
46379
46322
|
this.j.synchronizeValues();
|
|
46380
46323
|
this.popup.close();
|
|
@@ -46410,7 +46353,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46410
46353
|
const range = this.j.s.sel?.rangeCount
|
|
46411
46354
|
? this.j.s.sel?.getRangeAt(0)
|
|
46412
46355
|
: null;
|
|
46413
|
-
const query = range && (0,
|
|
46356
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
46414
46357
|
if (query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length) {
|
|
46415
46358
|
const result = await this.onAutoComplete(query);
|
|
46416
46359
|
if (result.length) {
|
|
@@ -46517,6 +46460,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46517
46460
|
beforeDestruct(jodit) {
|
|
46518
46461
|
jodit.e
|
|
46519
46462
|
.off(this.list)
|
|
46463
|
+
.off(this.popup)
|
|
46520
46464
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
46521
46465
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
46522
46466
|
.off('.autocomplete');
|
|
@@ -46526,6 +46470,12 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46526
46470
|
}
|
|
46527
46471
|
/** @override */
|
|
46528
46472
|
autocomplete.requires = ['enter', 'license'];
|
|
46473
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46474
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
46475
|
+
], autocomplete.prototype, "list", null);
|
|
46476
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46477
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
46478
|
+
], autocomplete.prototype, "popup", null);
|
|
46529
46479
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46530
46480
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
46531
46481
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|