jodit-pro 4.6.15 → 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/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.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -11736,6 +11736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11736
11736
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
11737
11737
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
11738
11738
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
11739
|
+
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
11739
11740
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
11740
11741
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
11741
11742
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -11830,6 +11831,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11830
11831
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
11831
11832
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
11832
11833
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
11834
|
+
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
11833
11835
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
11834
11836
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
11835
11837
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -20959,6 +20961,121 @@ function uniqueMax(array) {
|
|
|
20959
20961
|
}
|
|
20960
20962
|
|
|
20961
20963
|
|
|
20964
|
+
/***/ }),
|
|
20965
|
+
|
|
20966
|
+
/***/ 39942:
|
|
20967
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20968
|
+
|
|
20969
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20970
|
+
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
20971
|
+
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
20972
|
+
/* harmony export */ });
|
|
20973
|
+
/*!
|
|
20974
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20975
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
20976
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
20977
|
+
*/ /**
|
|
20978
|
+
* Reconciles two arrays and returns the differences
|
|
20979
|
+
* @param oldArray - The original array
|
|
20980
|
+
* @param newArray - The new array to compare against
|
|
20981
|
+
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
20982
|
+
* @returns Object containing added, removed, kept and moved items
|
|
20983
|
+
*
|
|
20984
|
+
* @example
|
|
20985
|
+
* ```typescript
|
|
20986
|
+
* const old = [1, 2, 3, 4];
|
|
20987
|
+
* const new = [2, 4, 5, 1];
|
|
20988
|
+
* const result = reconcileArrays(old, new);
|
|
20989
|
+
* // result.added = [5]
|
|
20990
|
+
* // result.removed = [3]
|
|
20991
|
+
* // result.kept = [2, 4, 1]
|
|
20992
|
+
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
20993
|
+
* ```
|
|
20994
|
+
*
|
|
20995
|
+
* @example
|
|
20996
|
+
* ```typescript
|
|
20997
|
+
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
20998
|
+
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
20999
|
+
* const result = reconcileArrays(old, new, item => item.id);
|
|
21000
|
+
* // result.added = [{id: 3, name: 'c'}]
|
|
21001
|
+
* // result.removed = [{id: 1, name: 'a'}]
|
|
21002
|
+
* ```
|
|
21003
|
+
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
21004
|
+
const getKey = keyFn || ((item)=>item);
|
|
21005
|
+
const oldMap = new Map();
|
|
21006
|
+
const newMap = new Map();
|
|
21007
|
+
oldArray.forEach((item, index)=>{
|
|
21008
|
+
oldMap.set(getKey(item), {
|
|
21009
|
+
item,
|
|
21010
|
+
index
|
|
21011
|
+
});
|
|
21012
|
+
});
|
|
21013
|
+
newArray.forEach((item, index)=>{
|
|
21014
|
+
newMap.set(getKey(item), {
|
|
21015
|
+
item,
|
|
21016
|
+
index
|
|
21017
|
+
});
|
|
21018
|
+
});
|
|
21019
|
+
const added = [];
|
|
21020
|
+
const removed = [];
|
|
21021
|
+
const kept = [];
|
|
21022
|
+
const moved = [];
|
|
21023
|
+
// Find removed items
|
|
21024
|
+
oldMap.forEach((value, key)=>{
|
|
21025
|
+
if (!newMap.has(key)) {
|
|
21026
|
+
removed.push(value.item);
|
|
21027
|
+
}
|
|
21028
|
+
});
|
|
21029
|
+
// Find added items and track kept/moved items
|
|
21030
|
+
newMap.forEach((value, key)=>{
|
|
21031
|
+
const oldItem = oldMap.get(key);
|
|
21032
|
+
if (!oldItem) {
|
|
21033
|
+
added.push(value.item);
|
|
21034
|
+
} else {
|
|
21035
|
+
kept.push(value.item);
|
|
21036
|
+
if (oldItem.index !== value.index) {
|
|
21037
|
+
moved.push({
|
|
21038
|
+
item: value.item,
|
|
21039
|
+
from: oldItem.index,
|
|
21040
|
+
to: value.index
|
|
21041
|
+
});
|
|
21042
|
+
}
|
|
21043
|
+
}
|
|
21044
|
+
});
|
|
21045
|
+
return {
|
|
21046
|
+
added,
|
|
21047
|
+
removed,
|
|
21048
|
+
kept,
|
|
21049
|
+
moved
|
|
21050
|
+
};
|
|
21051
|
+
}
|
|
21052
|
+
/**
|
|
21053
|
+
* Applies reconciliation patches to transform one array into another
|
|
21054
|
+
* @param oldArray - The original array to transform
|
|
21055
|
+
* @param newArray - The target array structure
|
|
21056
|
+
* @param keyFn - Optional function to generate unique keys for items
|
|
21057
|
+
* @returns New array matching the structure of newArray
|
|
21058
|
+
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
21059
|
+
const result = reconcileArrays(oldArray, newArray, keyFn);
|
|
21060
|
+
const output = [];
|
|
21061
|
+
// Build the new array based on newArray order
|
|
21062
|
+
newArray.forEach((item)=>{
|
|
21063
|
+
const key = keyFn ? keyFn(item) : item;
|
|
21064
|
+
const isNew = result.added.some((addedItem)=>(keyFn ? keyFn(addedItem) : addedItem) === key);
|
|
21065
|
+
if (isNew) {
|
|
21066
|
+
output.push(item);
|
|
21067
|
+
} else {
|
|
21068
|
+
// Use the old item reference if it exists
|
|
21069
|
+
const oldItem = oldArray.find((oldItem)=>(keyFn ? keyFn(oldItem) : oldItem) === key);
|
|
21070
|
+
if (oldItem !== undefined) {
|
|
21071
|
+
output.push(oldItem);
|
|
21072
|
+
}
|
|
21073
|
+
}
|
|
21074
|
+
});
|
|
21075
|
+
return output;
|
|
21076
|
+
}
|
|
21077
|
+
|
|
21078
|
+
|
|
20962
21079
|
/***/ }),
|
|
20963
21080
|
|
|
20964
21081
|
/***/ 39955:
|
|
@@ -31626,8 +31743,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31626
31743
|
/* harmony import */ var _decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
31627
31744
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
31628
31745
|
/* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
31629
|
-
/* harmony import */ var
|
|
31630
|
-
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48538);
|
|
31746
|
+
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48538);
|
|
31631
31747
|
/*!
|
|
31632
31748
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
31633
31749
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -31644,8 +31760,7 @@ var UIGroup_1;
|
|
|
31644
31760
|
|
|
31645
31761
|
|
|
31646
31762
|
|
|
31647
|
-
|
|
31648
|
-
let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
31763
|
+
let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .D {
|
|
31649
31764
|
className() {
|
|
31650
31765
|
return 'UIGroup';
|
|
31651
31766
|
}
|
|
@@ -31674,23 +31789,33 @@ let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
31674
31789
|
this.elements.forEach((elm)=>elm.update());
|
|
31675
31790
|
this.setMod('size', this.buttonSize);
|
|
31676
31791
|
}
|
|
31677
|
-
|
|
31678
|
-
|
|
31679
|
-
|
|
31680
|
-
|
|
31681
|
-
|
|
31792
|
+
append(elms, distElementOrIndex) {
|
|
31793
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isArray)(elms)) {
|
|
31794
|
+
if (typeof distElementOrIndex === 'number') {
|
|
31795
|
+
throw new Error('You can not use index when append array of elements');
|
|
31796
|
+
}
|
|
31797
|
+
elms.forEach((item)=>this.append(item, distElementOrIndex));
|
|
31682
31798
|
return this;
|
|
31683
31799
|
}
|
|
31684
|
-
|
|
31800
|
+
const elm = elms;
|
|
31801
|
+
let index = undefined;
|
|
31802
|
+
if (typeof distElementOrIndex === 'number') {
|
|
31803
|
+
index = Math.min(Math.max(0, distElementOrIndex), this.elements.length);
|
|
31804
|
+
this.elements.splice(index, 0, elm);
|
|
31805
|
+
} else {
|
|
31806
|
+
this.elements.push(elm);
|
|
31807
|
+
}
|
|
31685
31808
|
if (elm.name) {
|
|
31686
31809
|
elm.container.classList.add(this.getFullElName(elm.name));
|
|
31687
31810
|
}
|
|
31688
|
-
if (
|
|
31689
|
-
const distElm = this.getElm(
|
|
31690
|
-
|
|
31811
|
+
if (distElementOrIndex && typeof distElementOrIndex === 'string') {
|
|
31812
|
+
const distElm = this.getElm(distElementOrIndex);
|
|
31813
|
+
if (distElm == null) {
|
|
31814
|
+
throw new Error('Element does not exist');
|
|
31815
|
+
}
|
|
31691
31816
|
distElm.appendChild(elm.container);
|
|
31692
31817
|
} else {
|
|
31693
|
-
this.appendChildToContainer(elm.container);
|
|
31818
|
+
this.appendChildToContainer(elm.container, index);
|
|
31694
31819
|
}
|
|
31695
31820
|
elm.parentElement = this;
|
|
31696
31821
|
return this;
|
|
@@ -31702,8 +31827,12 @@ let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
31702
31827
|
}
|
|
31703
31828
|
/**
|
|
31704
31829
|
* Allow set another container for the box of all children
|
|
31705
|
-
*/ appendChildToContainer(childContainer) {
|
|
31706
|
-
this.container.
|
|
31830
|
+
*/ appendChildToContainer(childContainer, index) {
|
|
31831
|
+
if (index === undefined || index < 0 || index > this.elements.length - 1 || this.container.children[index] == null) {
|
|
31832
|
+
this.container.appendChild(childContainer);
|
|
31833
|
+
} else {
|
|
31834
|
+
this.container.insertBefore(childContainer, this.container.children[index]);
|
|
31835
|
+
}
|
|
31707
31836
|
}
|
|
31708
31837
|
/**
|
|
31709
31838
|
* Remove element from group
|
|
@@ -38277,13 +38406,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38277
38406
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38278
38407
|
|
|
38279
38408
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38280
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
38409
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_3__.$; },
|
|
38281
38410
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
38282
|
-
/* harmony export */
|
|
38411
|
+
/* harmony export */ ft: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.f; },
|
|
38412
|
+
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
38413
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
38283
38414
|
/* harmony export */ });
|
|
38284
38415
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
38285
|
-
/* harmony import */ var
|
|
38286
|
-
/* harmony import */ var
|
|
38416
|
+
/* harmony import */ var _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39942);
|
|
38417
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46559);
|
|
38418
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
38287
38419
|
/*!
|
|
38288
38420
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38289
38421
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38295,6 +38427,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38295
38427
|
|
|
38296
38428
|
|
|
38297
38429
|
|
|
38430
|
+
|
|
38298
38431
|
/***/ }),
|
|
38299
38432
|
|
|
38300
38433
|
/***/ 77183:
|
|
@@ -43356,7 +43489,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43356
43489
|
* ```
|
|
43357
43490
|
* @packageDocumentation
|
|
43358
43491
|
* @module constants
|
|
43359
|
-
*/ const APP_VERSION = "4.6.
|
|
43492
|
+
*/ const APP_VERSION = "4.6.16";
|
|
43360
43493
|
// prettier-ignore
|
|
43361
43494
|
const ES = "es2018";
|
|
43362
43495
|
const IS_ES_MODERN = true;
|