jodit 4.11.4 → 4.11.6
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/CHANGELOG.md +16 -0
- package/es2015/jodit.css +17 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +14 -14
- package/es2015/jodit.js +64 -6
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +14 -14
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +17 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +64 -6
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +17 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +4 -4
- package/es2021.en/jodit.js +64 -6
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +23 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +76 -12
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/ui/progress-bar/progress-bar.d.ts +9 -0
- package/esm/core/ui/progress-bar/progress-bar.js +53 -0
- package/esm/types/toolbar.d.ts +10 -0
- package/package.json +1 -1
- package/types/core/ui/progress-bar/progress-bar.d.ts +9 -0
- package/types/types/toolbar.d.ts +10 -0
package/es2021.en/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.11.
|
|
4
|
+
* Version: v4.11.6
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1758,7 +1758,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1758
1758
|
* ```
|
|
1759
1759
|
* @packageDocumentation
|
|
1760
1760
|
* @module constants
|
|
1761
|
-
*/ const APP_VERSION = "4.11.
|
|
1761
|
+
*/ const APP_VERSION = "4.11.6";
|
|
1762
1762
|
// prettier-ignore
|
|
1763
1763
|
const ES = "es2021";
|
|
1764
1764
|
const IS_ES_MODERN = true;
|
|
@@ -15720,8 +15720,13 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_9__.UIGro
|
|
|
15720
15720
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15721
15721
|
/* harmony export */ ProgressBar: function() { return /* binding */ ProgressBar; }
|
|
15722
15722
|
/* harmony export */ });
|
|
15723
|
-
/* harmony import */ var
|
|
15724
|
-
/* harmony import */ var
|
|
15723
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
15724
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
|
|
15725
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
|
|
15726
|
+
/* harmony import */ var jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23599);
|
|
15727
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
|
|
15728
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(96007);
|
|
15729
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29434);
|
|
15725
15730
|
/*!
|
|
15726
15731
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15727
15732
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15733,7 +15738,12 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_9__.UIGro
|
|
|
15733
15738
|
*/
|
|
15734
15739
|
|
|
15735
15740
|
|
|
15736
|
-
|
|
15741
|
+
|
|
15742
|
+
|
|
15743
|
+
|
|
15744
|
+
|
|
15745
|
+
|
|
15746
|
+
class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__.UIElement {
|
|
15737
15747
|
/** @override */ className() {
|
|
15738
15748
|
return 'ProgressBar';
|
|
15739
15749
|
}
|
|
@@ -15748,17 +15758,65 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__.UIE
|
|
|
15748
15758
|
return this;
|
|
15749
15759
|
}
|
|
15750
15760
|
hide() {
|
|
15751
|
-
|
|
15761
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.container);
|
|
15752
15762
|
return this;
|
|
15753
15763
|
}
|
|
15754
15764
|
progress(percentage) {
|
|
15755
15765
|
this.container.style.width = percentage.toFixed(2) + '%';
|
|
15756
15766
|
return this;
|
|
15757
15767
|
}
|
|
15768
|
+
showFileUploadAnimation(from, to) {
|
|
15769
|
+
this.__cleanUpAnimation();
|
|
15770
|
+
const box = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.getContainer)(this.j, ProgressBar);
|
|
15771
|
+
const pos = (0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_3__.position)(this.j.container, this.j);
|
|
15772
|
+
const el = this.j.c.div(this.getFullElName('file-animation'));
|
|
15773
|
+
const iconSvg = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_6__.Icon.get('file', '');
|
|
15774
|
+
if (iconSvg) {
|
|
15775
|
+
el.innerHTML = iconSvg;
|
|
15776
|
+
}
|
|
15777
|
+
const start = from ?? {
|
|
15778
|
+
x: pos.width / 2,
|
|
15779
|
+
y: 0
|
|
15780
|
+
};
|
|
15781
|
+
const end = to ?? {
|
|
15782
|
+
x: start.x + 60,
|
|
15783
|
+
y: start.y - 80
|
|
15784
|
+
};
|
|
15785
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(el, {
|
|
15786
|
+
left: pos.left + start.x,
|
|
15787
|
+
top: pos.top + start.y
|
|
15788
|
+
});
|
|
15789
|
+
box.appendChild(el);
|
|
15790
|
+
this.__animationElement = el;
|
|
15791
|
+
// Force reflow before starting transition
|
|
15792
|
+
// eslint-disable-next-line no-unused-expressions
|
|
15793
|
+
el.offsetWidth;
|
|
15794
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(el, {
|
|
15795
|
+
left: pos.left + end.x,
|
|
15796
|
+
top: pos.top + end.y,
|
|
15797
|
+
opacity: 0,
|
|
15798
|
+
transform: 'scale(0.4)'
|
|
15799
|
+
});
|
|
15800
|
+
const onEnd = ()=>{
|
|
15801
|
+
el.removeEventListener('transitionend', onEnd);
|
|
15802
|
+
this.__cleanUpAnimation();
|
|
15803
|
+
};
|
|
15804
|
+
el.addEventListener('transitionend', onEnd);
|
|
15805
|
+
}
|
|
15806
|
+
__cleanUpAnimation() {
|
|
15807
|
+
if (this.__animationElement) {
|
|
15808
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.__animationElement);
|
|
15809
|
+
this.__animationElement = null;
|
|
15810
|
+
}
|
|
15811
|
+
}
|
|
15758
15812
|
destruct() {
|
|
15813
|
+
this.__cleanUpAnimation();
|
|
15759
15814
|
this.hide();
|
|
15760
15815
|
return super.destruct();
|
|
15761
15816
|
}
|
|
15817
|
+
constructor(...args){
|
|
15818
|
+
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__animationElement", null);
|
|
15819
|
+
}
|
|
15762
15820
|
}
|
|
15763
15821
|
|
|
15764
15822
|
|