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/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.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
|
*/
|
|
@@ -7338,6 +7338,27 @@ ToolbarCollection = __decorate([
|
|
|
7338
7338
|
|
|
7339
7339
|
|
|
7340
7340
|
|
|
7341
|
+
/***/ }),
|
|
7342
|
+
|
|
7343
|
+
/***/ 11691:
|
|
7344
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
7345
|
+
|
|
7346
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
7347
|
+
/*!
|
|
7348
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
7349
|
+
* See LICENSE.md in the project root for license information.
|
|
7350
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
7351
|
+
*/
|
|
7352
|
+
|
|
7353
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
7354
|
+
sources: [],
|
|
7355
|
+
maxItems: 50,
|
|
7356
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
7357
|
+
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
7358
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
7359
|
+
};
|
|
7360
|
+
|
|
7361
|
+
|
|
7341
7362
|
/***/ }),
|
|
7342
7363
|
|
|
7343
7364
|
/***/ 11787:
|
|
@@ -12120,7 +12141,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12120
12141
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
12121
12142
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
12122
12143
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
12123
|
-
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
12124
12144
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
12125
12145
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
12126
12146
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -12215,7 +12235,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12215
12235
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
12216
12236
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
12217
12237
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
12218
|
-
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
12219
12238
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
12220
12239
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
12221
12240
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -21613,121 +21632,6 @@ function uniqueMax(array) {
|
|
|
21613
21632
|
}
|
|
21614
21633
|
|
|
21615
21634
|
|
|
21616
|
-
/***/ }),
|
|
21617
|
-
|
|
21618
|
-
/***/ 39942:
|
|
21619
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21620
|
-
|
|
21621
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21622
|
-
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
21623
|
-
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
21624
|
-
/* harmony export */ });
|
|
21625
|
-
/*!
|
|
21626
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21627
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
21628
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
21629
|
-
*/ /**
|
|
21630
|
-
* Reconciles two arrays and returns the differences
|
|
21631
|
-
* @param oldArray - The original array
|
|
21632
|
-
* @param newArray - The new array to compare against
|
|
21633
|
-
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
21634
|
-
* @returns Object containing added, removed, kept and moved items
|
|
21635
|
-
*
|
|
21636
|
-
* @example
|
|
21637
|
-
* ```typescript
|
|
21638
|
-
* const old = [1, 2, 3, 4];
|
|
21639
|
-
* const new = [2, 4, 5, 1];
|
|
21640
|
-
* const result = reconcileArrays(old, new);
|
|
21641
|
-
* // result.added = [5]
|
|
21642
|
-
* // result.removed = [3]
|
|
21643
|
-
* // result.kept = [2, 4, 1]
|
|
21644
|
-
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
21645
|
-
* ```
|
|
21646
|
-
*
|
|
21647
|
-
* @example
|
|
21648
|
-
* ```typescript
|
|
21649
|
-
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
21650
|
-
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
21651
|
-
* const result = reconcileArrays(old, new, item => item.id);
|
|
21652
|
-
* // result.added = [{id: 3, name: 'c'}]
|
|
21653
|
-
* // result.removed = [{id: 1, name: 'a'}]
|
|
21654
|
-
* ```
|
|
21655
|
-
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
21656
|
-
const getKey = keyFn || ((item)=>item);
|
|
21657
|
-
const oldMap = new Map();
|
|
21658
|
-
const newMap = new Map();
|
|
21659
|
-
oldArray.forEach((item, index)=>{
|
|
21660
|
-
oldMap.set(getKey(item), {
|
|
21661
|
-
item,
|
|
21662
|
-
index
|
|
21663
|
-
});
|
|
21664
|
-
});
|
|
21665
|
-
newArray.forEach((item, index)=>{
|
|
21666
|
-
newMap.set(getKey(item), {
|
|
21667
|
-
item,
|
|
21668
|
-
index
|
|
21669
|
-
});
|
|
21670
|
-
});
|
|
21671
|
-
const added = [];
|
|
21672
|
-
const removed = [];
|
|
21673
|
-
const kept = [];
|
|
21674
|
-
const moved = [];
|
|
21675
|
-
// Find removed items
|
|
21676
|
-
oldMap.forEach((value, key)=>{
|
|
21677
|
-
if (!newMap.has(key)) {
|
|
21678
|
-
removed.push(value.item);
|
|
21679
|
-
}
|
|
21680
|
-
});
|
|
21681
|
-
// Find added items and track kept/moved items
|
|
21682
|
-
newMap.forEach((value, key)=>{
|
|
21683
|
-
const oldItem = oldMap.get(key);
|
|
21684
|
-
if (!oldItem) {
|
|
21685
|
-
added.push(value.item);
|
|
21686
|
-
} else {
|
|
21687
|
-
kept.push(value.item);
|
|
21688
|
-
if (oldItem.index !== value.index) {
|
|
21689
|
-
moved.push({
|
|
21690
|
-
item: value.item,
|
|
21691
|
-
from: oldItem.index,
|
|
21692
|
-
to: value.index
|
|
21693
|
-
});
|
|
21694
|
-
}
|
|
21695
|
-
}
|
|
21696
|
-
});
|
|
21697
|
-
return {
|
|
21698
|
-
added,
|
|
21699
|
-
removed,
|
|
21700
|
-
kept,
|
|
21701
|
-
moved
|
|
21702
|
-
};
|
|
21703
|
-
}
|
|
21704
|
-
/**
|
|
21705
|
-
* Applies reconciliation patches to transform one array into another
|
|
21706
|
-
* @param oldArray - The original array to transform
|
|
21707
|
-
* @param newArray - The target array structure
|
|
21708
|
-
* @param keyFn - Optional function to generate unique keys for items
|
|
21709
|
-
* @returns New array matching the structure of newArray
|
|
21710
|
-
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
21711
|
-
const result = reconcileArrays(oldArray, newArray, keyFn);
|
|
21712
|
-
const output = [];
|
|
21713
|
-
// Build the new array based on newArray order
|
|
21714
|
-
newArray.forEach((item)=>{
|
|
21715
|
-
const key = keyFn ? keyFn(item) : item;
|
|
21716
|
-
const isNew = result.added.some((addedItem)=>(keyFn ? keyFn(addedItem) : addedItem) === key);
|
|
21717
|
-
if (isNew) {
|
|
21718
|
-
output.push(item);
|
|
21719
|
-
} else {
|
|
21720
|
-
// Use the old item reference if it exists
|
|
21721
|
-
const oldItem = oldArray.find((oldItem)=>(keyFn ? keyFn(oldItem) : oldItem) === key);
|
|
21722
|
-
if (oldItem !== undefined) {
|
|
21723
|
-
output.push(oldItem);
|
|
21724
|
-
}
|
|
21725
|
-
}
|
|
21726
|
-
});
|
|
21727
|
-
return output;
|
|
21728
|
-
}
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
21635
|
/***/ }),
|
|
21732
21636
|
|
|
21733
21637
|
/***/ 39955:
|
|
@@ -27139,8 +27043,10 @@ function persistent(target, propertyKey) {
|
|
|
27139
27043
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27140
27044
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
27141
27045
|
/* harmony export */ });
|
|
27142
|
-
/* harmony import */ var
|
|
27143
|
-
/* harmony import */ var
|
|
27046
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
27047
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
27048
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
27049
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
27144
27050
|
/*!
|
|
27145
27051
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
27146
27052
|
* See LICENSE.md in the project root for license information.
|
|
@@ -27149,19 +27055,24 @@ function persistent(target, propertyKey) {
|
|
|
27149
27055
|
|
|
27150
27056
|
|
|
27151
27057
|
|
|
27152
|
-
|
|
27058
|
+
|
|
27059
|
+
|
|
27060
|
+
let AutocompleteItem = class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
27153
27061
|
/** @override */
|
|
27154
27062
|
className() {
|
|
27155
27063
|
return 'AutocompleteItem';
|
|
27156
27064
|
}
|
|
27157
|
-
constructor(jodit, item) {
|
|
27065
|
+
constructor(jodit, item, onClick) {
|
|
27158
27066
|
var _a;
|
|
27159
27067
|
super(jodit);
|
|
27160
27068
|
this.item = item;
|
|
27069
|
+
this.onClick = onClick;
|
|
27070
|
+
this.value = '';
|
|
27161
27071
|
const { container } = this;
|
|
27162
|
-
|
|
27072
|
+
this.value = item.value;
|
|
27073
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
27163
27074
|
const elm = item.itemRenderer(item);
|
|
27164
|
-
if ((0,
|
|
27075
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
27165
27076
|
container.innerHTML = elm;
|
|
27166
27077
|
}
|
|
27167
27078
|
else {
|
|
@@ -27172,7 +27083,24 @@ class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODUL
|
|
|
27172
27083
|
container.innerText = (_a = item.title) !== null && _a !== void 0 ? _a : item.value;
|
|
27173
27084
|
}
|
|
27174
27085
|
}
|
|
27175
|
-
|
|
27086
|
+
onClickPrevent(e) {
|
|
27087
|
+
e.preventDefault();
|
|
27088
|
+
e.stopPropagation();
|
|
27089
|
+
}
|
|
27090
|
+
onClickHandler() {
|
|
27091
|
+
this.onClick(this.value);
|
|
27092
|
+
}
|
|
27093
|
+
};
|
|
27094
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
27095
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
27096
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
27097
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
27098
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
27099
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
27100
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
27101
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
27102
|
+
], AutocompleteItem);
|
|
27103
|
+
|
|
27176
27104
|
|
|
27177
27105
|
|
|
27178
27106
|
/***/ }),
|
|
@@ -39349,16 +39277,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39349
39277
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
39350
39278
|
|
|
39351
39279
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
39352
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
39280
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_2__.$; },
|
|
39353
39281
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
39354
|
-
/* harmony export */
|
|
39355
|
-
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
39356
|
-
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
39282
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_1__.u; }
|
|
39357
39283
|
/* harmony export */ });
|
|
39358
39284
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
39359
|
-
/* harmony import */ var
|
|
39360
|
-
/* harmony import */ var
|
|
39361
|
-
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
39285
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46559);
|
|
39286
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
39362
39287
|
/*!
|
|
39363
39288
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39364
39289
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39370,7 +39295,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39370
39295
|
|
|
39371
39296
|
|
|
39372
39297
|
|
|
39373
|
-
|
|
39374
39298
|
/***/ }),
|
|
39375
39299
|
|
|
39376
39300
|
/***/ 77183:
|
|
@@ -40465,33 +40389,52 @@ let Autocomplete = class Autocomplete extends jodit_esm_core_ui_group_group__WEB
|
|
|
40465
40389
|
super(...arguments);
|
|
40466
40390
|
this.elements = [];
|
|
40467
40391
|
this.currentSelection = -1;
|
|
40392
|
+
this.__previousList = [];
|
|
40468
40393
|
}
|
|
40469
40394
|
/** @override */
|
|
40470
40395
|
className() {
|
|
40471
40396
|
return 'Autocomplete';
|
|
40472
40397
|
}
|
|
40473
|
-
onChangeSelection(
|
|
40474
|
-
var _a;
|
|
40475
|
-
|
|
40476
|
-
this.elements[this.currentSelection].setMod('active', true);
|
|
40477
|
-
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
40398
|
+
onChangeSelection() {
|
|
40399
|
+
var _a, _b;
|
|
40400
|
+
this.elements.forEach((elm) => elm.setMod('active', false));
|
|
40401
|
+
(_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.setMod('active', true);
|
|
40402
|
+
(_b = this.elements[this.currentSelection]) === null || _b === void 0 ? void 0 : _b.container.scrollIntoView(false);
|
|
40478
40403
|
}
|
|
40479
40404
|
build(list) {
|
|
40480
|
-
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
|
|
40484
|
-
|
|
40485
|
-
|
|
40486
|
-
|
|
40487
|
-
.
|
|
40488
|
-
|
|
40405
|
+
var _a;
|
|
40406
|
+
const currentValue = (_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.item.value;
|
|
40407
|
+
const removed = [];
|
|
40408
|
+
let elementIndex = -1;
|
|
40409
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
40410
|
+
elementIndex += 1;
|
|
40411
|
+
if (this.__previousList[i] != null &&
|
|
40412
|
+
list[i].value === this.__previousList[i].value) {
|
|
40413
|
+
continue;
|
|
40414
|
+
}
|
|
40415
|
+
if (this.elements[elementIndex]) {
|
|
40416
|
+
removed.push(this.elements[elementIndex]);
|
|
40417
|
+
elementIndex += 1;
|
|
40418
|
+
}
|
|
40419
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], (value) => {
|
|
40420
|
+
this.currentSelection = list.findIndex((item) => item.value === value);
|
|
40489
40421
|
this.select();
|
|
40490
40422
|
});
|
|
40491
|
-
this.append(item);
|
|
40423
|
+
this.append(item, elementIndex);
|
|
40424
|
+
}
|
|
40425
|
+
for (let fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
40426
|
+
removed.push(this.elements[fromIndex]);
|
|
40427
|
+
}
|
|
40428
|
+
removed.forEach((item) => {
|
|
40429
|
+
this.remove(item);
|
|
40430
|
+
item.destruct();
|
|
40492
40431
|
});
|
|
40493
|
-
this.currentSelection
|
|
40494
|
-
this.
|
|
40432
|
+
const previosSelection = this.currentSelection;
|
|
40433
|
+
this.currentSelection = Math.max(0, list.findIndex((elm) => elm.value === currentValue));
|
|
40434
|
+
if (previosSelection === this.currentSelection) {
|
|
40435
|
+
this.onChangeSelection();
|
|
40436
|
+
}
|
|
40437
|
+
this.__previousList = [...list];
|
|
40495
40438
|
}
|
|
40496
40439
|
selectNext() {
|
|
40497
40440
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -44587,7 +44530,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44587
44530
|
* ```
|
|
44588
44531
|
* @packageDocumentation
|
|
44589
44532
|
* @module constants
|
|
44590
|
-
*/ const APP_VERSION = "4.6.
|
|
44533
|
+
*/ const APP_VERSION = "4.6.20";
|
|
44591
44534
|
// prettier-ignore
|
|
44592
44535
|
const ES = "es2015";
|
|
44593
44536
|
const IS_ES_MODERN = true;
|
|
@@ -47538,9 +47481,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47538
47481
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
47539
47482
|
/* harmony export */ });
|
|
47540
47483
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
47541
|
-
/* harmony import */ var
|
|
47542
|
-
/* harmony import */ var
|
|
47543
|
-
/* harmony import */ var
|
|
47484
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
47485
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
47486
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
47544
47487
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
47545
47488
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
47546
47489
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -47564,26 +47507,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47564
47507
|
|
|
47565
47508
|
|
|
47566
47509
|
|
|
47567
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
47568
|
-
sources: [],
|
|
47569
|
-
maxItems: 50,
|
|
47570
|
-
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
47571
|
-
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
47572
|
-
insertValueRenderer: (item) => item.value + ' '
|
|
47573
|
-
};
|
|
47574
47510
|
class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .Plugin */ .k {
|
|
47575
|
-
constructor(
|
|
47576
|
-
super(
|
|
47511
|
+
constructor() {
|
|
47512
|
+
super(...arguments);
|
|
47577
47513
|
/** @override */
|
|
47578
47514
|
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
47579
47515
|
this.sources = [];
|
|
47580
47516
|
}
|
|
47517
|
+
get list() {
|
|
47518
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
47519
|
+
}
|
|
47520
|
+
get popup() {
|
|
47521
|
+
const popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
47522
|
+
popup.setMod('padding', false);
|
|
47523
|
+
popup.setContent(this.list.container);
|
|
47524
|
+
this.jodit.e.on(popup, 'beforeClose', () => {
|
|
47525
|
+
this.list.currentSelection = 0;
|
|
47526
|
+
});
|
|
47527
|
+
return popup;
|
|
47528
|
+
}
|
|
47581
47529
|
/** @override */
|
|
47582
47530
|
afterInit(jodit) {
|
|
47583
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
47584
|
-
this.popup.setMod('padding', false);
|
|
47585
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
47586
|
-
this.popup.setContent(this.list.container);
|
|
47587
47531
|
jodit.e
|
|
47588
47532
|
.on('select.autocomplete', (item) => {
|
|
47589
47533
|
let insertValue = item.value;
|
|
@@ -47593,7 +47537,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
47593
47537
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
47594
47538
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
47595
47539
|
}
|
|
47596
|
-
(0,
|
|
47540
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
47597
47541
|
this.j.s.setCursorAfter(insertValue);
|
|
47598
47542
|
this.j.synchronizeValues();
|
|
47599
47543
|
this.popup.close();
|
|
@@ -47631,7 +47575,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
47631
47575
|
const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
47632
47576
|
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
47633
47577
|
: null;
|
|
47634
|
-
const query = range && (0,
|
|
47578
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
47635
47579
|
if (query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length) {
|
|
47636
47580
|
const result = yield this.onAutoComplete(query);
|
|
47637
47581
|
if (result.length) {
|
|
@@ -47742,6 +47686,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
47742
47686
|
beforeDestruct(jodit) {
|
|
47743
47687
|
jodit.e
|
|
47744
47688
|
.off(this.list)
|
|
47689
|
+
.off(this.popup)
|
|
47745
47690
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
47746
47691
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
47747
47692
|
.off('.autocomplete');
|
|
@@ -47751,6 +47696,12 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
47751
47696
|
}
|
|
47752
47697
|
/** @override */
|
|
47753
47698
|
autocomplete.requires = ['enter', 'license'];
|
|
47699
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
47700
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
47701
|
+
], autocomplete.prototype, "list", null);
|
|
47702
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
47703
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
47704
|
+
], autocomplete.prototype, "popup", null);
|
|
47754
47705
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
47755
47706
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
47756
47707
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|