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/es2015/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
|
*/
|
|
@@ -1764,7 +1764,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1764
1764
|
* ```
|
|
1765
1765
|
* @packageDocumentation
|
|
1766
1766
|
* @module constants
|
|
1767
|
-
*/ const APP_VERSION = "4.11.
|
|
1767
|
+
*/ const APP_VERSION = "4.11.6";
|
|
1768
1768
|
// prettier-ignore
|
|
1769
1769
|
const ES = "es2015";
|
|
1770
1770
|
const IS_ES_MODERN = true;
|
|
@@ -15834,8 +15834,13 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_11__.UIGr
|
|
|
15834
15834
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15835
15835
|
/* harmony export */ ProgressBar: function() { return /* binding */ ProgressBar; }
|
|
15836
15836
|
/* harmony export */ });
|
|
15837
|
-
/* harmony import */ var
|
|
15838
|
-
/* harmony import */ var
|
|
15837
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
15838
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
|
|
15839
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
|
|
15840
|
+
/* harmony import */ var jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23599);
|
|
15841
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
|
|
15842
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(96007);
|
|
15843
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29434);
|
|
15839
15844
|
/*!
|
|
15840
15845
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15841
15846
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15847,7 +15852,12 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_11__.UIGr
|
|
|
15847
15852
|
*/
|
|
15848
15853
|
|
|
15849
15854
|
|
|
15850
|
-
|
|
15855
|
+
|
|
15856
|
+
|
|
15857
|
+
|
|
15858
|
+
|
|
15859
|
+
|
|
15860
|
+
class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__.UIElement {
|
|
15851
15861
|
/** @override */ className() {
|
|
15852
15862
|
return 'ProgressBar';
|
|
15853
15863
|
}
|
|
@@ -15862,17 +15872,65 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__.UIE
|
|
|
15862
15872
|
return this;
|
|
15863
15873
|
}
|
|
15864
15874
|
hide() {
|
|
15865
|
-
|
|
15875
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.container);
|
|
15866
15876
|
return this;
|
|
15867
15877
|
}
|
|
15868
15878
|
progress(percentage) {
|
|
15869
15879
|
this.container.style.width = percentage.toFixed(2) + '%';
|
|
15870
15880
|
return this;
|
|
15871
15881
|
}
|
|
15882
|
+
showFileUploadAnimation(from, to) {
|
|
15883
|
+
this.__cleanUpAnimation();
|
|
15884
|
+
const box = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.getContainer)(this.j, ProgressBar);
|
|
15885
|
+
const pos = (0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_3__.position)(this.j.container, this.j);
|
|
15886
|
+
const el = this.j.c.div(this.getFullElName('file-animation'));
|
|
15887
|
+
const iconSvg = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_6__.Icon.get('file', '');
|
|
15888
|
+
if (iconSvg) {
|
|
15889
|
+
el.innerHTML = iconSvg;
|
|
15890
|
+
}
|
|
15891
|
+
const start = from !== null && from !== void 0 ? from : {
|
|
15892
|
+
x: pos.width / 2,
|
|
15893
|
+
y: 0
|
|
15894
|
+
};
|
|
15895
|
+
const end = to !== null && to !== void 0 ? to : {
|
|
15896
|
+
x: start.x + 60,
|
|
15897
|
+
y: start.y - 80
|
|
15898
|
+
};
|
|
15899
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(el, {
|
|
15900
|
+
left: pos.left + start.x,
|
|
15901
|
+
top: pos.top + start.y
|
|
15902
|
+
});
|
|
15903
|
+
box.appendChild(el);
|
|
15904
|
+
this.__animationElement = el;
|
|
15905
|
+
// Force reflow before starting transition
|
|
15906
|
+
// eslint-disable-next-line no-unused-expressions
|
|
15907
|
+
el.offsetWidth;
|
|
15908
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(el, {
|
|
15909
|
+
left: pos.left + end.x,
|
|
15910
|
+
top: pos.top + end.y,
|
|
15911
|
+
opacity: 0,
|
|
15912
|
+
transform: 'scale(0.4)'
|
|
15913
|
+
});
|
|
15914
|
+
const onEnd = ()=>{
|
|
15915
|
+
el.removeEventListener('transitionend', onEnd);
|
|
15916
|
+
this.__cleanUpAnimation();
|
|
15917
|
+
};
|
|
15918
|
+
el.addEventListener('transitionend', onEnd);
|
|
15919
|
+
}
|
|
15920
|
+
__cleanUpAnimation() {
|
|
15921
|
+
if (this.__animationElement) {
|
|
15922
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.__animationElement);
|
|
15923
|
+
this.__animationElement = null;
|
|
15924
|
+
}
|
|
15925
|
+
}
|
|
15872
15926
|
destruct() {
|
|
15927
|
+
this.__cleanUpAnimation();
|
|
15873
15928
|
this.hide();
|
|
15874
15929
|
return super.destruct();
|
|
15875
15930
|
}
|
|
15931
|
+
constructor(...args){
|
|
15932
|
+
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__animationElement", null);
|
|
15933
|
+
}
|
|
15876
15934
|
}
|
|
15877
15935
|
|
|
15878
15936
|
|