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.en/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
|
*/
|
|
@@ -6961,6 +6961,27 @@ ToolbarCollection = __decorate([
|
|
|
6961
6961
|
|
|
6962
6962
|
|
|
6963
6963
|
|
|
6964
|
+
/***/ }),
|
|
6965
|
+
|
|
6966
|
+
/***/ 11691:
|
|
6967
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
6968
|
+
|
|
6969
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
6970
|
+
/*!
|
|
6971
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6972
|
+
* See LICENSE.md in the project root for license information.
|
|
6973
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6974
|
+
*/
|
|
6975
|
+
|
|
6976
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
6977
|
+
sources: [],
|
|
6978
|
+
maxItems: 50,
|
|
6979
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
6980
|
+
itemRenderer: (item) => item.title ?? item.value,
|
|
6981
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
6982
|
+
};
|
|
6983
|
+
|
|
6984
|
+
|
|
6964
6985
|
/***/ }),
|
|
6965
6986
|
|
|
6966
6987
|
/***/ 11787:
|
|
@@ -11370,7 +11391,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11370
11391
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
11371
11392
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
11372
11393
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
11373
|
-
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
11374
11394
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
11375
11395
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
11376
11396
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -11465,7 +11485,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11465
11485
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
11466
11486
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
11467
11487
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
11468
|
-
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
11469
11488
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
11470
11489
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
11471
11490
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -20151,121 +20170,6 @@ function uniqueMax(array) {
|
|
|
20151
20170
|
}
|
|
20152
20171
|
|
|
20153
20172
|
|
|
20154
|
-
/***/ }),
|
|
20155
|
-
|
|
20156
|
-
/***/ 39942:
|
|
20157
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20158
|
-
|
|
20159
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20160
|
-
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
20161
|
-
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
20162
|
-
/* harmony export */ });
|
|
20163
|
-
/*!
|
|
20164
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20165
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
20166
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
20167
|
-
*/ /**
|
|
20168
|
-
* Reconciles two arrays and returns the differences
|
|
20169
|
-
* @param oldArray - The original array
|
|
20170
|
-
* @param newArray - The new array to compare against
|
|
20171
|
-
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
20172
|
-
* @returns Object containing added, removed, kept and moved items
|
|
20173
|
-
*
|
|
20174
|
-
* @example
|
|
20175
|
-
* ```typescript
|
|
20176
|
-
* const old = [1, 2, 3, 4];
|
|
20177
|
-
* const new = [2, 4, 5, 1];
|
|
20178
|
-
* const result = reconcileArrays(old, new);
|
|
20179
|
-
* // result.added = [5]
|
|
20180
|
-
* // result.removed = [3]
|
|
20181
|
-
* // result.kept = [2, 4, 1]
|
|
20182
|
-
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
20183
|
-
* ```
|
|
20184
|
-
*
|
|
20185
|
-
* @example
|
|
20186
|
-
* ```typescript
|
|
20187
|
-
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
20188
|
-
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
20189
|
-
* const result = reconcileArrays(old, new, item => item.id);
|
|
20190
|
-
* // result.added = [{id: 3, name: 'c'}]
|
|
20191
|
-
* // result.removed = [{id: 1, name: 'a'}]
|
|
20192
|
-
* ```
|
|
20193
|
-
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
20194
|
-
const getKey = keyFn || ((item)=>item);
|
|
20195
|
-
const oldMap = new Map();
|
|
20196
|
-
const newMap = new Map();
|
|
20197
|
-
oldArray.forEach((item, index)=>{
|
|
20198
|
-
oldMap.set(getKey(item), {
|
|
20199
|
-
item,
|
|
20200
|
-
index
|
|
20201
|
-
});
|
|
20202
|
-
});
|
|
20203
|
-
newArray.forEach((item, index)=>{
|
|
20204
|
-
newMap.set(getKey(item), {
|
|
20205
|
-
item,
|
|
20206
|
-
index
|
|
20207
|
-
});
|
|
20208
|
-
});
|
|
20209
|
-
const added = [];
|
|
20210
|
-
const removed = [];
|
|
20211
|
-
const kept = [];
|
|
20212
|
-
const moved = [];
|
|
20213
|
-
// Find removed items
|
|
20214
|
-
oldMap.forEach((value, key)=>{
|
|
20215
|
-
if (!newMap.has(key)) {
|
|
20216
|
-
removed.push(value.item);
|
|
20217
|
-
}
|
|
20218
|
-
});
|
|
20219
|
-
// Find added items and track kept/moved items
|
|
20220
|
-
newMap.forEach((value, key)=>{
|
|
20221
|
-
const oldItem = oldMap.get(key);
|
|
20222
|
-
if (!oldItem) {
|
|
20223
|
-
added.push(value.item);
|
|
20224
|
-
} else {
|
|
20225
|
-
kept.push(value.item);
|
|
20226
|
-
if (oldItem.index !== value.index) {
|
|
20227
|
-
moved.push({
|
|
20228
|
-
item: value.item,
|
|
20229
|
-
from: oldItem.index,
|
|
20230
|
-
to: value.index
|
|
20231
|
-
});
|
|
20232
|
-
}
|
|
20233
|
-
}
|
|
20234
|
-
});
|
|
20235
|
-
return {
|
|
20236
|
-
added,
|
|
20237
|
-
removed,
|
|
20238
|
-
kept,
|
|
20239
|
-
moved
|
|
20240
|
-
};
|
|
20241
|
-
}
|
|
20242
|
-
/**
|
|
20243
|
-
* Applies reconciliation patches to transform one array into another
|
|
20244
|
-
* @param oldArray - The original array to transform
|
|
20245
|
-
* @param newArray - The target array structure
|
|
20246
|
-
* @param keyFn - Optional function to generate unique keys for items
|
|
20247
|
-
* @returns New array matching the structure of newArray
|
|
20248
|
-
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
20249
|
-
const result = reconcileArrays(oldArray, newArray, keyFn);
|
|
20250
|
-
const output = [];
|
|
20251
|
-
// Build the new array based on newArray order
|
|
20252
|
-
newArray.forEach((item)=>{
|
|
20253
|
-
const key = keyFn ? keyFn(item) : item;
|
|
20254
|
-
const isNew = result.added.some((addedItem)=>(keyFn ? keyFn(addedItem) : addedItem) === key);
|
|
20255
|
-
if (isNew) {
|
|
20256
|
-
output.push(item);
|
|
20257
|
-
} else {
|
|
20258
|
-
// Use the old item reference if it exists
|
|
20259
|
-
const oldItem = oldArray.find((oldItem)=>(keyFn ? keyFn(oldItem) : oldItem) === key);
|
|
20260
|
-
if (oldItem !== undefined) {
|
|
20261
|
-
output.push(oldItem);
|
|
20262
|
-
}
|
|
20263
|
-
}
|
|
20264
|
-
});
|
|
20265
|
-
return output;
|
|
20266
|
-
}
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
20173
|
/***/ }),
|
|
20270
20174
|
|
|
20271
20175
|
/***/ 39955:
|
|
@@ -25329,8 +25233,10 @@ function persistent(target, propertyKey) {
|
|
|
25329
25233
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25330
25234
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
25331
25235
|
/* harmony export */ });
|
|
25332
|
-
/* harmony import */ var
|
|
25333
|
-
/* harmony import */ var
|
|
25236
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
25237
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
25238
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
25239
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
25334
25240
|
/*!
|
|
25335
25241
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
25336
25242
|
* See LICENSE.md in the project root for license information.
|
|
@@ -25339,18 +25245,23 @@ function persistent(target, propertyKey) {
|
|
|
25339
25245
|
|
|
25340
25246
|
|
|
25341
25247
|
|
|
25342
|
-
|
|
25248
|
+
|
|
25249
|
+
|
|
25250
|
+
let AutocompleteItem = class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
25343
25251
|
/** @override */
|
|
25344
25252
|
className() {
|
|
25345
25253
|
return 'AutocompleteItem';
|
|
25346
25254
|
}
|
|
25347
|
-
constructor(jodit, item) {
|
|
25255
|
+
constructor(jodit, item, onClick) {
|
|
25348
25256
|
super(jodit);
|
|
25349
25257
|
this.item = item;
|
|
25258
|
+
this.onClick = onClick;
|
|
25259
|
+
this.value = '';
|
|
25350
25260
|
const { container } = this;
|
|
25351
|
-
|
|
25261
|
+
this.value = item.value;
|
|
25262
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
25352
25263
|
const elm = item.itemRenderer(item);
|
|
25353
|
-
if ((0,
|
|
25264
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
25354
25265
|
container.innerHTML = elm;
|
|
25355
25266
|
}
|
|
25356
25267
|
else {
|
|
@@ -25361,7 +25272,24 @@ class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODUL
|
|
|
25361
25272
|
container.innerText = item.title ?? item.value;
|
|
25362
25273
|
}
|
|
25363
25274
|
}
|
|
25364
|
-
|
|
25275
|
+
onClickPrevent(e) {
|
|
25276
|
+
e.preventDefault();
|
|
25277
|
+
e.stopPropagation();
|
|
25278
|
+
}
|
|
25279
|
+
onClickHandler() {
|
|
25280
|
+
this.onClick(this.value);
|
|
25281
|
+
}
|
|
25282
|
+
};
|
|
25283
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
25284
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
25285
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
25286
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
25287
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
25288
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
25289
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
25290
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
25291
|
+
], AutocompleteItem);
|
|
25292
|
+
|
|
25365
25293
|
|
|
25366
25294
|
|
|
25367
25295
|
/***/ }),
|
|
@@ -36709,16 +36637,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('justify
|
|
|
36709
36637
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
36710
36638
|
|
|
36711
36639
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
36712
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
36640
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_2__.$; },
|
|
36713
36641
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
36714
|
-
/* harmony export */
|
|
36715
|
-
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
36716
|
-
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
36642
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_1__.u; }
|
|
36717
36643
|
/* harmony export */ });
|
|
36718
36644
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
36719
|
-
/* harmony import */ var
|
|
36720
|
-
/* harmony import */ var
|
|
36721
|
-
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
36645
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46559);
|
|
36646
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
36722
36647
|
/*!
|
|
36723
36648
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36724
36649
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36730,7 +36655,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('justify
|
|
|
36730
36655
|
|
|
36731
36656
|
|
|
36732
36657
|
|
|
36733
|
-
|
|
36734
36658
|
/***/ }),
|
|
36735
36659
|
|
|
36736
36660
|
/***/ 77183:
|
|
@@ -37758,32 +37682,50 @@ let Autocomplete = class Autocomplete extends jodit_esm_core_ui_group_group__WEB
|
|
|
37758
37682
|
super(...arguments);
|
|
37759
37683
|
this.elements = [];
|
|
37760
37684
|
this.currentSelection = -1;
|
|
37685
|
+
this.__previousList = [];
|
|
37761
37686
|
}
|
|
37762
37687
|
/** @override */
|
|
37763
37688
|
className() {
|
|
37764
37689
|
return 'Autocomplete';
|
|
37765
37690
|
}
|
|
37766
|
-
onChangeSelection(
|
|
37767
|
-
|
|
37768
|
-
this.elements[this.currentSelection]
|
|
37769
|
-
this.elements[this.currentSelection]
|
|
37691
|
+
onChangeSelection() {
|
|
37692
|
+
this.elements.forEach((elm) => elm.setMod('active', false));
|
|
37693
|
+
this.elements[this.currentSelection]?.setMod('active', true);
|
|
37694
|
+
this.elements[this.currentSelection]?.container.scrollIntoView(false);
|
|
37770
37695
|
}
|
|
37771
37696
|
build(list) {
|
|
37772
|
-
this.
|
|
37773
|
-
|
|
37774
|
-
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37779
|
-
|
|
37780
|
-
|
|
37697
|
+
const currentValue = this.elements[this.currentSelection]?.item.value;
|
|
37698
|
+
const removed = [];
|
|
37699
|
+
let elementIndex = -1;
|
|
37700
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
37701
|
+
elementIndex += 1;
|
|
37702
|
+
if (this.__previousList[i] != null &&
|
|
37703
|
+
list[i].value === this.__previousList[i].value) {
|
|
37704
|
+
continue;
|
|
37705
|
+
}
|
|
37706
|
+
if (this.elements[elementIndex]) {
|
|
37707
|
+
removed.push(this.elements[elementIndex]);
|
|
37708
|
+
elementIndex += 1;
|
|
37709
|
+
}
|
|
37710
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], (value) => {
|
|
37711
|
+
this.currentSelection = list.findIndex((item) => item.value === value);
|
|
37781
37712
|
this.select();
|
|
37782
37713
|
});
|
|
37783
|
-
this.append(item);
|
|
37714
|
+
this.append(item, elementIndex);
|
|
37715
|
+
}
|
|
37716
|
+
for (let fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
37717
|
+
removed.push(this.elements[fromIndex]);
|
|
37718
|
+
}
|
|
37719
|
+
removed.forEach((item) => {
|
|
37720
|
+
this.remove(item);
|
|
37721
|
+
item.destruct();
|
|
37784
37722
|
});
|
|
37785
|
-
this.currentSelection
|
|
37786
|
-
this.
|
|
37723
|
+
const previosSelection = this.currentSelection;
|
|
37724
|
+
this.currentSelection = Math.max(0, list.findIndex((elm) => elm.value === currentValue));
|
|
37725
|
+
if (previosSelection === this.currentSelection) {
|
|
37726
|
+
this.onChangeSelection();
|
|
37727
|
+
}
|
|
37728
|
+
this.__previousList = [...list];
|
|
37787
37729
|
}
|
|
37788
37730
|
selectNext() {
|
|
37789
37731
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -41722,7 +41664,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41722
41664
|
* ```
|
|
41723
41665
|
* @packageDocumentation
|
|
41724
41666
|
* @module constants
|
|
41725
|
-
*/ const APP_VERSION = "4.6.
|
|
41667
|
+
*/ const APP_VERSION = "4.6.20";
|
|
41726
41668
|
// prettier-ignore
|
|
41727
41669
|
const ES = "es2021";
|
|
41728
41670
|
const IS_ES_MODERN = true;
|
|
@@ -44497,9 +44439,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44497
44439
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
44498
44440
|
/* harmony export */ });
|
|
44499
44441
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
44500
|
-
/* harmony import */ var
|
|
44501
|
-
/* harmony import */ var
|
|
44502
|
-
/* harmony import */ var
|
|
44442
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
44443
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
44444
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
44503
44445
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
44504
44446
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
44505
44447
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -44523,26 +44465,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44523
44465
|
|
|
44524
44466
|
|
|
44525
44467
|
|
|
44526
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
44527
|
-
sources: [],
|
|
44528
|
-
maxItems: 50,
|
|
44529
|
-
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
44530
|
-
itemRenderer: (item) => item.title ?? item.value,
|
|
44531
|
-
insertValueRenderer: (item) => item.value + ' '
|
|
44532
|
-
};
|
|
44533
44468
|
class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .Plugin */ .k {
|
|
44534
|
-
constructor(
|
|
44535
|
-
super(
|
|
44469
|
+
constructor() {
|
|
44470
|
+
super(...arguments);
|
|
44536
44471
|
/** @override */
|
|
44537
44472
|
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
44538
44473
|
this.sources = [];
|
|
44539
44474
|
}
|
|
44475
|
+
get list() {
|
|
44476
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
44477
|
+
}
|
|
44478
|
+
get popup() {
|
|
44479
|
+
const popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
44480
|
+
popup.setMod('padding', false);
|
|
44481
|
+
popup.setContent(this.list.container);
|
|
44482
|
+
this.jodit.e.on(popup, 'beforeClose', () => {
|
|
44483
|
+
this.list.currentSelection = 0;
|
|
44484
|
+
});
|
|
44485
|
+
return popup;
|
|
44486
|
+
}
|
|
44540
44487
|
/** @override */
|
|
44541
44488
|
afterInit(jodit) {
|
|
44542
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
44543
|
-
this.popup.setMod('padding', false);
|
|
44544
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
44545
|
-
this.popup.setContent(this.list.container);
|
|
44546
44489
|
jodit.e
|
|
44547
44490
|
.on('select.autocomplete', (item) => {
|
|
44548
44491
|
let insertValue = item.value;
|
|
@@ -44552,7 +44495,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44552
44495
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
44553
44496
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
44554
44497
|
}
|
|
44555
|
-
(0,
|
|
44498
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
44556
44499
|
this.j.s.setCursorAfter(insertValue);
|
|
44557
44500
|
this.j.synchronizeValues();
|
|
44558
44501
|
this.popup.close();
|
|
@@ -44588,7 +44531,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44588
44531
|
const range = this.j.s.sel?.rangeCount
|
|
44589
44532
|
? this.j.s.sel?.getRangeAt(0)
|
|
44590
44533
|
: null;
|
|
44591
|
-
const query = range && (0,
|
|
44534
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
44592
44535
|
if (query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length) {
|
|
44593
44536
|
const result = await this.onAutoComplete(query);
|
|
44594
44537
|
if (result.length) {
|
|
@@ -44695,6 +44638,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44695
44638
|
beforeDestruct(jodit) {
|
|
44696
44639
|
jodit.e
|
|
44697
44640
|
.off(this.list)
|
|
44641
|
+
.off(this.popup)
|
|
44698
44642
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
44699
44643
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
44700
44644
|
.off('.autocomplete');
|
|
@@ -44704,6 +44648,12 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44704
44648
|
}
|
|
44705
44649
|
/** @override */
|
|
44706
44650
|
autocomplete.requires = ['enter', 'license'];
|
|
44651
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44652
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
44653
|
+
], autocomplete.prototype, "list", null);
|
|
44654
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44655
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
44656
|
+
], autocomplete.prototype, "popup", null);
|
|
44707
44657
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44708
44658
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
44709
44659
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|