jodit-pro 4.6.14 → 4.6.16
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 +155 -22
- 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 +155 -22
- 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 +155 -22
- 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 +155 -22
- 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 +163 -24
- 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/package.json +1 -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.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -12120,6 +12120,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12120
12120
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
12121
12121
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
12122
12122
|
/* 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; },
|
|
12123
12124
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
12124
12125
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
12125
12126
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -12214,6 +12215,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12214
12215
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
12215
12216
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
12216
12217
|
/* 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; },
|
|
12217
12219
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
12218
12220
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
12219
12221
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -21611,6 +21613,121 @@ function uniqueMax(array) {
|
|
|
21611
21613
|
}
|
|
21612
21614
|
|
|
21613
21615
|
|
|
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
|
+
|
|
21614
21731
|
/***/ }),
|
|
21615
21732
|
|
|
21616
21733
|
/***/ 39955:
|
|
@@ -32519,8 +32636,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32519
32636
|
/* harmony import */ var _decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
32520
32637
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
32521
32638
|
/* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
32522
|
-
/* harmony import */ var
|
|
32523
|
-
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48538);
|
|
32639
|
+
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48538);
|
|
32524
32640
|
/*!
|
|
32525
32641
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32526
32642
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32537,8 +32653,7 @@ var UIGroup_1;
|
|
|
32537
32653
|
|
|
32538
32654
|
|
|
32539
32655
|
|
|
32540
|
-
|
|
32541
|
-
let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
32656
|
+
let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .D {
|
|
32542
32657
|
className() {
|
|
32543
32658
|
return 'UIGroup';
|
|
32544
32659
|
}
|
|
@@ -32567,23 +32682,33 @@ let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
32567
32682
|
this.elements.forEach((elm)=>elm.update());
|
|
32568
32683
|
this.setMod('size', this.buttonSize);
|
|
32569
32684
|
}
|
|
32570
|
-
|
|
32571
|
-
|
|
32572
|
-
|
|
32573
|
-
|
|
32574
|
-
|
|
32685
|
+
append(elms, distElementOrIndex) {
|
|
32686
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isArray)(elms)) {
|
|
32687
|
+
if (typeof distElementOrIndex === 'number') {
|
|
32688
|
+
throw new Error('You can not use index when append array of elements');
|
|
32689
|
+
}
|
|
32690
|
+
elms.forEach((item)=>this.append(item, distElementOrIndex));
|
|
32575
32691
|
return this;
|
|
32576
32692
|
}
|
|
32577
|
-
|
|
32693
|
+
const elm = elms;
|
|
32694
|
+
let index = undefined;
|
|
32695
|
+
if (typeof distElementOrIndex === 'number') {
|
|
32696
|
+
index = Math.min(Math.max(0, distElementOrIndex), this.elements.length);
|
|
32697
|
+
this.elements.splice(index, 0, elm);
|
|
32698
|
+
} else {
|
|
32699
|
+
this.elements.push(elm);
|
|
32700
|
+
}
|
|
32578
32701
|
if (elm.name) {
|
|
32579
32702
|
elm.container.classList.add(this.getFullElName(elm.name));
|
|
32580
32703
|
}
|
|
32581
|
-
if (
|
|
32582
|
-
const distElm = this.getElm(
|
|
32583
|
-
|
|
32704
|
+
if (distElementOrIndex && typeof distElementOrIndex === 'string') {
|
|
32705
|
+
const distElm = this.getElm(distElementOrIndex);
|
|
32706
|
+
if (distElm == null) {
|
|
32707
|
+
throw new Error('Element does not exist');
|
|
32708
|
+
}
|
|
32584
32709
|
distElm.appendChild(elm.container);
|
|
32585
32710
|
} else {
|
|
32586
|
-
this.appendChildToContainer(elm.container);
|
|
32711
|
+
this.appendChildToContainer(elm.container, index);
|
|
32587
32712
|
}
|
|
32588
32713
|
elm.parentElement = this;
|
|
32589
32714
|
return this;
|
|
@@ -32595,8 +32720,12 @@ let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
32595
32720
|
}
|
|
32596
32721
|
/**
|
|
32597
32722
|
* Allow set another container for the box of all children
|
|
32598
|
-
*/ appendChildToContainer(childContainer) {
|
|
32599
|
-
this.container.
|
|
32723
|
+
*/ appendChildToContainer(childContainer, index) {
|
|
32724
|
+
if (index === undefined || index < 0 || index > this.elements.length - 1 || this.container.children[index] == null) {
|
|
32725
|
+
this.container.appendChild(childContainer);
|
|
32726
|
+
} else {
|
|
32727
|
+
this.container.insertBefore(childContainer, this.container.children[index]);
|
|
32728
|
+
}
|
|
32600
32729
|
}
|
|
32601
32730
|
/**
|
|
32602
32731
|
* Remove element from group
|
|
@@ -39220,13 +39349,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39220
39349
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
39221
39350
|
|
|
39222
39351
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
39223
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
39352
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_3__.$; },
|
|
39224
39353
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
39225
|
-
/* harmony export */
|
|
39354
|
+
/* harmony export */ ft: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.f; },
|
|
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; }
|
|
39226
39357
|
/* harmony export */ });
|
|
39227
39358
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
39228
|
-
/* harmony import */ var
|
|
39229
|
-
/* harmony import */ var
|
|
39359
|
+
/* harmony import */ var _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39942);
|
|
39360
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46559);
|
|
39361
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
39230
39362
|
/*!
|
|
39231
39363
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39232
39364
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39238,6 +39370,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39238
39370
|
|
|
39239
39371
|
|
|
39240
39372
|
|
|
39373
|
+
|
|
39241
39374
|
/***/ }),
|
|
39242
39375
|
|
|
39243
39376
|
/***/ 77183:
|
|
@@ -44454,7 +44587,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44454
44587
|
* ```
|
|
44455
44588
|
* @packageDocumentation
|
|
44456
44589
|
* @module constants
|
|
44457
|
-
*/ const APP_VERSION = "4.6.
|
|
44590
|
+
*/ const APP_VERSION = "4.6.16";
|
|
44458
44591
|
// prettier-ignore
|
|
44459
44592
|
const ES = "es2015";
|
|
44460
44593
|
const IS_ES_MODERN = true;
|