jodit-pro 4.6.18 → 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 +116 -44
- 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 +116 -44
- 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 +114 -43
- 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 +114 -43
- 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 +123 -45
- 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/es2018/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
|
*/
|
|
@@ -7201,6 +7201,27 @@ ToolbarCollection = __decorate([
|
|
|
7201
7201
|
|
|
7202
7202
|
|
|
7203
7203
|
|
|
7204
|
+
/***/ }),
|
|
7205
|
+
|
|
7206
|
+
/***/ 11691:
|
|
7207
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
7208
|
+
|
|
7209
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
7210
|
+
/*!
|
|
7211
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
7212
|
+
* See LICENSE.md in the project root for license information.
|
|
7213
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
7214
|
+
*/
|
|
7215
|
+
|
|
7216
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
7217
|
+
sources: [],
|
|
7218
|
+
maxItems: 50,
|
|
7219
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
7220
|
+
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
7221
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
7222
|
+
};
|
|
7223
|
+
|
|
7224
|
+
|
|
7204
7225
|
/***/ }),
|
|
7205
7226
|
|
|
7206
7227
|
/***/ 11787:
|
|
@@ -26315,8 +26336,10 @@ function persistent(target, propertyKey) {
|
|
|
26315
26336
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26316
26337
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
26317
26338
|
/* harmony export */ });
|
|
26318
|
-
/* harmony import */ var
|
|
26319
|
-
/* harmony import */ var
|
|
26339
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
26340
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
26341
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
26342
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
26320
26343
|
/*!
|
|
26321
26344
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
26322
26345
|
* See LICENSE.md in the project root for license information.
|
|
@@ -26325,19 +26348,24 @@ function persistent(target, propertyKey) {
|
|
|
26325
26348
|
|
|
26326
26349
|
|
|
26327
26350
|
|
|
26328
|
-
|
|
26351
|
+
|
|
26352
|
+
|
|
26353
|
+
let AutocompleteItem = class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
26329
26354
|
/** @override */
|
|
26330
26355
|
className() {
|
|
26331
26356
|
return 'AutocompleteItem';
|
|
26332
26357
|
}
|
|
26333
|
-
constructor(jodit, item) {
|
|
26358
|
+
constructor(jodit, item, onClick) {
|
|
26334
26359
|
var _a;
|
|
26335
26360
|
super(jodit);
|
|
26336
26361
|
this.item = item;
|
|
26362
|
+
this.onClick = onClick;
|
|
26363
|
+
this.value = '';
|
|
26337
26364
|
const { container } = this;
|
|
26338
|
-
|
|
26365
|
+
this.value = item.value;
|
|
26366
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
26339
26367
|
const elm = item.itemRenderer(item);
|
|
26340
|
-
if ((0,
|
|
26368
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
26341
26369
|
container.innerHTML = elm;
|
|
26342
26370
|
}
|
|
26343
26371
|
else {
|
|
@@ -26348,7 +26376,24 @@ class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODUL
|
|
|
26348
26376
|
container.innerText = (_a = item.title) !== null && _a !== void 0 ? _a : item.value;
|
|
26349
26377
|
}
|
|
26350
26378
|
}
|
|
26351
|
-
|
|
26379
|
+
onClickPrevent(e) {
|
|
26380
|
+
e.preventDefault();
|
|
26381
|
+
e.stopPropagation();
|
|
26382
|
+
}
|
|
26383
|
+
onClickHandler() {
|
|
26384
|
+
this.onClick(this.value);
|
|
26385
|
+
}
|
|
26386
|
+
};
|
|
26387
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26388
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
26389
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
26390
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26391
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
26392
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
26393
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26394
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
26395
|
+
], AutocompleteItem);
|
|
26396
|
+
|
|
26352
26397
|
|
|
26353
26398
|
|
|
26354
26399
|
/***/ }),
|
|
@@ -39350,33 +39395,52 @@ let Autocomplete = class Autocomplete extends jodit_esm_core_ui_group_group__WEB
|
|
|
39350
39395
|
super(...arguments);
|
|
39351
39396
|
this.elements = [];
|
|
39352
39397
|
this.currentSelection = -1;
|
|
39398
|
+
this.__previousList = [];
|
|
39353
39399
|
}
|
|
39354
39400
|
/** @override */
|
|
39355
39401
|
className() {
|
|
39356
39402
|
return 'Autocomplete';
|
|
39357
39403
|
}
|
|
39358
|
-
onChangeSelection(
|
|
39359
|
-
var _a;
|
|
39360
|
-
|
|
39361
|
-
this.elements[this.currentSelection].setMod('active', true);
|
|
39362
|
-
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
39404
|
+
onChangeSelection() {
|
|
39405
|
+
var _a, _b;
|
|
39406
|
+
this.elements.forEach((elm) => elm.setMod('active', false));
|
|
39407
|
+
(_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.setMod('active', true);
|
|
39408
|
+
(_b = this.elements[this.currentSelection]) === null || _b === void 0 ? void 0 : _b.container.scrollIntoView(false);
|
|
39363
39409
|
}
|
|
39364
39410
|
build(list) {
|
|
39365
|
-
|
|
39366
|
-
|
|
39367
|
-
|
|
39368
|
-
|
|
39369
|
-
|
|
39370
|
-
|
|
39371
|
-
|
|
39372
|
-
.
|
|
39373
|
-
|
|
39411
|
+
var _a;
|
|
39412
|
+
const currentValue = (_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.item.value;
|
|
39413
|
+
const removed = [];
|
|
39414
|
+
let elementIndex = -1;
|
|
39415
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
39416
|
+
elementIndex += 1;
|
|
39417
|
+
if (this.__previousList[i] != null &&
|
|
39418
|
+
list[i].value === this.__previousList[i].value) {
|
|
39419
|
+
continue;
|
|
39420
|
+
}
|
|
39421
|
+
if (this.elements[elementIndex]) {
|
|
39422
|
+
removed.push(this.elements[elementIndex]);
|
|
39423
|
+
elementIndex += 1;
|
|
39424
|
+
}
|
|
39425
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], (value) => {
|
|
39426
|
+
this.currentSelection = list.findIndex((item) => item.value === value);
|
|
39374
39427
|
this.select();
|
|
39375
39428
|
});
|
|
39376
|
-
this.append(item);
|
|
39429
|
+
this.append(item, elementIndex);
|
|
39430
|
+
}
|
|
39431
|
+
for (let fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
39432
|
+
removed.push(this.elements[fromIndex]);
|
|
39433
|
+
}
|
|
39434
|
+
removed.forEach((item) => {
|
|
39435
|
+
this.remove(item);
|
|
39436
|
+
item.destruct();
|
|
39377
39437
|
});
|
|
39378
|
-
this.currentSelection
|
|
39379
|
-
this.
|
|
39438
|
+
const previosSelection = this.currentSelection;
|
|
39439
|
+
this.currentSelection = Math.max(0, list.findIndex((elm) => elm.value === currentValue));
|
|
39440
|
+
if (previosSelection === this.currentSelection) {
|
|
39441
|
+
this.onChangeSelection();
|
|
39442
|
+
}
|
|
39443
|
+
this.__previousList = [...list];
|
|
39380
39444
|
}
|
|
39381
39445
|
selectNext() {
|
|
39382
39446
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -43368,7 +43432,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43368
43432
|
* ```
|
|
43369
43433
|
* @packageDocumentation
|
|
43370
43434
|
* @module constants
|
|
43371
|
-
*/ const APP_VERSION = "4.6.
|
|
43435
|
+
*/ const APP_VERSION = "4.6.20";
|
|
43372
43436
|
// prettier-ignore
|
|
43373
43437
|
const ES = "es2018";
|
|
43374
43438
|
const IS_ES_MODERN = true;
|
|
@@ -46212,9 +46276,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46212
46276
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
46213
46277
|
/* harmony export */ });
|
|
46214
46278
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
46215
|
-
/* harmony import */ var
|
|
46216
|
-
/* harmony import */ var
|
|
46217
|
-
/* harmony import */ var
|
|
46279
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
46280
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
46281
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
46218
46282
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
46219
46283
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
46220
46284
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -46238,26 +46302,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46238
46302
|
|
|
46239
46303
|
|
|
46240
46304
|
|
|
46241
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
46242
|
-
sources: [],
|
|
46243
|
-
maxItems: 50,
|
|
46244
|
-
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
46245
|
-
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
46246
|
-
insertValueRenderer: (item) => item.value + ' '
|
|
46247
|
-
};
|
|
46248
46305
|
class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .Plugin */ .k {
|
|
46249
|
-
constructor(
|
|
46250
|
-
super(
|
|
46306
|
+
constructor() {
|
|
46307
|
+
super(...arguments);
|
|
46251
46308
|
/** @override */
|
|
46252
46309
|
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
46253
46310
|
this.sources = [];
|
|
46254
46311
|
}
|
|
46312
|
+
get list() {
|
|
46313
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
46314
|
+
}
|
|
46315
|
+
get popup() {
|
|
46316
|
+
const popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
46317
|
+
popup.setMod('padding', false);
|
|
46318
|
+
popup.setContent(this.list.container);
|
|
46319
|
+
this.jodit.e.on(popup, 'beforeClose', () => {
|
|
46320
|
+
this.list.currentSelection = 0;
|
|
46321
|
+
});
|
|
46322
|
+
return popup;
|
|
46323
|
+
}
|
|
46255
46324
|
/** @override */
|
|
46256
46325
|
afterInit(jodit) {
|
|
46257
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
46258
|
-
this.popup.setMod('padding', false);
|
|
46259
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
46260
|
-
this.popup.setContent(this.list.container);
|
|
46261
46326
|
jodit.e
|
|
46262
46327
|
.on('select.autocomplete', (item) => {
|
|
46263
46328
|
let insertValue = item.value;
|
|
@@ -46267,7 +46332,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46267
46332
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
46268
46333
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
46269
46334
|
}
|
|
46270
|
-
(0,
|
|
46335
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
46271
46336
|
this.j.s.setCursorAfter(insertValue);
|
|
46272
46337
|
this.j.synchronizeValues();
|
|
46273
46338
|
this.popup.close();
|
|
@@ -46304,7 +46369,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46304
46369
|
const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
46305
46370
|
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
46306
46371
|
: null;
|
|
46307
|
-
const query = range && (0,
|
|
46372
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
46308
46373
|
if (query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length) {
|
|
46309
46374
|
const result = await this.onAutoComplete(query);
|
|
46310
46375
|
if (result.length) {
|
|
@@ -46414,6 +46479,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46414
46479
|
beforeDestruct(jodit) {
|
|
46415
46480
|
jodit.e
|
|
46416
46481
|
.off(this.list)
|
|
46482
|
+
.off(this.popup)
|
|
46417
46483
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
46418
46484
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
46419
46485
|
.off('.autocomplete');
|
|
@@ -46423,6 +46489,12 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46423
46489
|
}
|
|
46424
46490
|
/** @override */
|
|
46425
46491
|
autocomplete.requires = ['enter', 'license'];
|
|
46492
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46493
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
46494
|
+
], autocomplete.prototype, "list", null);
|
|
46495
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46496
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
46497
|
+
], autocomplete.prototype, "popup", null);
|
|
46426
46498
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46427
46499
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
46428
46500
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|