jodit-pro-react 5.5.4 → 5.5.5
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.
|
@@ -1238,7 +1238,7 @@
|
|
|
1238
1238
|
opacity: .7;
|
|
1239
1239
|
position: absolute;
|
|
1240
1240
|
top: 0;
|
|
1241
|
-
z-index:
|
|
1241
|
+
z-index: var(--jd-z-index-tooltip);
|
|
1242
1242
|
}
|
|
1243
1243
|
.jodit-progress-bar div {
|
|
1244
1244
|
background: var(--jd-color-background-progress);
|
|
@@ -1269,6 +1269,25 @@
|
|
|
1269
1269
|
width: 20px;
|
|
1270
1270
|
clip: rect(-6px, 22px, 14px, var(--jd-padding-default));
|
|
1271
1271
|
}
|
|
1272
|
+
.jodit-progress-bar__file-animation {
|
|
1273
|
+
height: 32px;
|
|
1274
|
+
opacity: .8;
|
|
1275
|
+
pointer-events: none;
|
|
1276
|
+
position: fixed;
|
|
1277
|
+
transform: scale(1);
|
|
1278
|
+
transition:
|
|
1279
|
+
left .8s ease-in,
|
|
1280
|
+
top .8s ease-in,
|
|
1281
|
+
opacity .8s ease-in,
|
|
1282
|
+
transform .8s ease-in;
|
|
1283
|
+
width: 32px;
|
|
1284
|
+
z-index: 2147483647;
|
|
1285
|
+
}
|
|
1286
|
+
.jodit-progress-bar__file-animation svg {
|
|
1287
|
+
fill: var(--jd-color-background-progress);
|
|
1288
|
+
height: 100%;
|
|
1289
|
+
width: 100%;
|
|
1290
|
+
}
|
|
1272
1291
|
:root {
|
|
1273
1292
|
--jd-em-color-border:#b6d4fe;
|
|
1274
1293
|
--jd-em-color-bg:#cfe2ff;
|
|
@@ -8623,7 +8642,7 @@ svg.jodit-icon {
|
|
|
8623
8642
|
right: 0;
|
|
8624
8643
|
top: 0;
|
|
8625
8644
|
transition: width .3s linear;
|
|
8626
|
-
z-index:
|
|
8645
|
+
z-index: var(--jd-z-index-tooltip);
|
|
8627
8646
|
}
|
|
8628
8647
|
.jodit-ui-progress div {
|
|
8629
8648
|
background: var(--jd-color-background-progress);
|
|
@@ -8654,6 +8673,25 @@ svg.jodit-icon {
|
|
|
8654
8673
|
width: 20px;
|
|
8655
8674
|
clip: rect(-6px, 22px, 14px, var(--jd-padding-default));
|
|
8656
8675
|
}
|
|
8676
|
+
.jodit-ui-progress__file-animation {
|
|
8677
|
+
height: 32px;
|
|
8678
|
+
opacity: .8;
|
|
8679
|
+
pointer-events: none;
|
|
8680
|
+
position: fixed;
|
|
8681
|
+
transform: scale(1);
|
|
8682
|
+
transition:
|
|
8683
|
+
left .8s ease-in,
|
|
8684
|
+
top .8s ease-in,
|
|
8685
|
+
opacity .8s ease-in,
|
|
8686
|
+
transform .8s ease-in;
|
|
8687
|
+
width: 32px;
|
|
8688
|
+
z-index: 2147483647;
|
|
8689
|
+
}
|
|
8690
|
+
.jodit-ui-progress__file-animation svg {
|
|
8691
|
+
fill: var(--jd-color-background-progress);
|
|
8692
|
+
height: 100%;
|
|
8693
|
+
width: 100%;
|
|
8694
|
+
}
|
|
8657
8695
|
.jodit-ui-progress_hidden_true {
|
|
8658
8696
|
opacity: 0;
|
|
8659
8697
|
width: 0 !important;
|
|
@@ -182,7 +182,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
182
182
|
var init_constants = __esm({
|
|
183
183
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
184
184
|
"use strict";
|
|
185
|
-
APP_VERSION = "4.11.
|
|
185
|
+
APP_VERSION = "4.11.6";
|
|
186
186
|
ES = "es2020";
|
|
187
187
|
IS_ES_MODERN = true;
|
|
188
188
|
IS_ES_NEXT = true;
|
|
@@ -9769,7 +9769,14 @@ UIList = __decorate18([
|
|
|
9769
9769
|
|
|
9770
9770
|
// node_modules/jodit/esm/core/ui/progress-bar/progress-bar.js
|
|
9771
9771
|
init_dom();
|
|
9772
|
-
|
|
9772
|
+
init_global2();
|
|
9773
|
+
init_position();
|
|
9774
|
+
init_css();
|
|
9775
|
+
var ProgressBar = class _ProgressBar extends UIElement {
|
|
9776
|
+
constructor() {
|
|
9777
|
+
super(...arguments);
|
|
9778
|
+
this.__animationElement = null;
|
|
9779
|
+
}
|
|
9773
9780
|
/** @override */
|
|
9774
9781
|
className() {
|
|
9775
9782
|
return "ProgressBar";
|
|
@@ -9794,7 +9801,50 @@ var ProgressBar = class extends UIElement {
|
|
|
9794
9801
|
this.container.style.width = percentage.toFixed(2) + "%";
|
|
9795
9802
|
return this;
|
|
9796
9803
|
}
|
|
9804
|
+
showFileUploadAnimation(from, to) {
|
|
9805
|
+
this.__cleanUpAnimation();
|
|
9806
|
+
const box = getContainer(this.j, _ProgressBar);
|
|
9807
|
+
const pos = position(this.j.container, this.j);
|
|
9808
|
+
const el = this.j.c.div(this.getFullElName("file-animation"));
|
|
9809
|
+
const iconSvg = Icon.get("file", "");
|
|
9810
|
+
if (iconSvg) {
|
|
9811
|
+
el.innerHTML = iconSvg;
|
|
9812
|
+
}
|
|
9813
|
+
const start = from !== null && from !== void 0 ? from : {
|
|
9814
|
+
x: pos.width / 2,
|
|
9815
|
+
y: 0
|
|
9816
|
+
};
|
|
9817
|
+
const end = to !== null && to !== void 0 ? to : {
|
|
9818
|
+
x: start.x + 60,
|
|
9819
|
+
y: start.y - 80
|
|
9820
|
+
};
|
|
9821
|
+
css(el, {
|
|
9822
|
+
left: pos.left + start.x,
|
|
9823
|
+
top: pos.top + start.y
|
|
9824
|
+
});
|
|
9825
|
+
box.appendChild(el);
|
|
9826
|
+
this.__animationElement = el;
|
|
9827
|
+
el.offsetWidth;
|
|
9828
|
+
css(el, {
|
|
9829
|
+
left: pos.left + end.x,
|
|
9830
|
+
top: pos.top + end.y,
|
|
9831
|
+
opacity: 0,
|
|
9832
|
+
transform: "scale(0.4)"
|
|
9833
|
+
});
|
|
9834
|
+
const onEnd = () => {
|
|
9835
|
+
el.removeEventListener("transitionend", onEnd);
|
|
9836
|
+
this.__cleanUpAnimation();
|
|
9837
|
+
};
|
|
9838
|
+
el.addEventListener("transitionend", onEnd);
|
|
9839
|
+
}
|
|
9840
|
+
__cleanUpAnimation() {
|
|
9841
|
+
if (this.__animationElement) {
|
|
9842
|
+
Dom.safeRemove(this.__animationElement);
|
|
9843
|
+
this.__animationElement = null;
|
|
9844
|
+
}
|
|
9845
|
+
}
|
|
9797
9846
|
destruct() {
|
|
9847
|
+
this.__cleanUpAnimation();
|
|
9798
9848
|
this.hide();
|
|
9799
9849
|
return super.destruct();
|
|
9800
9850
|
}
|
package/build/esm/index.css
CHANGED
|
@@ -1238,7 +1238,7 @@
|
|
|
1238
1238
|
opacity: .7;
|
|
1239
1239
|
position: absolute;
|
|
1240
1240
|
top: 0;
|
|
1241
|
-
z-index:
|
|
1241
|
+
z-index: var(--jd-z-index-tooltip);
|
|
1242
1242
|
}
|
|
1243
1243
|
.jodit-progress-bar div {
|
|
1244
1244
|
background: var(--jd-color-background-progress);
|
|
@@ -1269,6 +1269,25 @@
|
|
|
1269
1269
|
width: 20px;
|
|
1270
1270
|
clip: rect(-6px, 22px, 14px, var(--jd-padding-default));
|
|
1271
1271
|
}
|
|
1272
|
+
.jodit-progress-bar__file-animation {
|
|
1273
|
+
height: 32px;
|
|
1274
|
+
opacity: .8;
|
|
1275
|
+
pointer-events: none;
|
|
1276
|
+
position: fixed;
|
|
1277
|
+
transform: scale(1);
|
|
1278
|
+
transition:
|
|
1279
|
+
left .8s ease-in,
|
|
1280
|
+
top .8s ease-in,
|
|
1281
|
+
opacity .8s ease-in,
|
|
1282
|
+
transform .8s ease-in;
|
|
1283
|
+
width: 32px;
|
|
1284
|
+
z-index: 2147483647;
|
|
1285
|
+
}
|
|
1286
|
+
.jodit-progress-bar__file-animation svg {
|
|
1287
|
+
fill: var(--jd-color-background-progress);
|
|
1288
|
+
height: 100%;
|
|
1289
|
+
width: 100%;
|
|
1290
|
+
}
|
|
1272
1291
|
:root {
|
|
1273
1292
|
--jd-em-color-border:#b6d4fe;
|
|
1274
1293
|
--jd-em-color-bg:#cfe2ff;
|
|
@@ -8623,7 +8642,7 @@ svg.jodit-icon {
|
|
|
8623
8642
|
right: 0;
|
|
8624
8643
|
top: 0;
|
|
8625
8644
|
transition: width .3s linear;
|
|
8626
|
-
z-index:
|
|
8645
|
+
z-index: var(--jd-z-index-tooltip);
|
|
8627
8646
|
}
|
|
8628
8647
|
.jodit-ui-progress div {
|
|
8629
8648
|
background: var(--jd-color-background-progress);
|
|
@@ -8654,6 +8673,25 @@ svg.jodit-icon {
|
|
|
8654
8673
|
width: 20px;
|
|
8655
8674
|
clip: rect(-6px, 22px, 14px, var(--jd-padding-default));
|
|
8656
8675
|
}
|
|
8676
|
+
.jodit-ui-progress__file-animation {
|
|
8677
|
+
height: 32px;
|
|
8678
|
+
opacity: .8;
|
|
8679
|
+
pointer-events: none;
|
|
8680
|
+
position: fixed;
|
|
8681
|
+
transform: scale(1);
|
|
8682
|
+
transition:
|
|
8683
|
+
left .8s ease-in,
|
|
8684
|
+
top .8s ease-in,
|
|
8685
|
+
opacity .8s ease-in,
|
|
8686
|
+
transform .8s ease-in;
|
|
8687
|
+
width: 32px;
|
|
8688
|
+
z-index: 2147483647;
|
|
8689
|
+
}
|
|
8690
|
+
.jodit-ui-progress__file-animation svg {
|
|
8691
|
+
fill: var(--jd-color-background-progress);
|
|
8692
|
+
height: 100%;
|
|
8693
|
+
width: 100%;
|
|
8694
|
+
}
|
|
8657
8695
|
.jodit-ui-progress_hidden_true {
|
|
8658
8696
|
opacity: 0;
|
|
8659
8697
|
width: 0 !important;
|