@univerjs/core 0.9.3 → 0.9.4-nightly.202507290713
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/lib/cjs/index.js +3 -3
- package/lib/es/index.js +8 -8
- package/lib/index.js +8 -8
- package/lib/umd/index.js +3 -3
- package/package.json +4 -4
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -5703,7 +5703,7 @@ function ko(e, t = {}) {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
const c = +(o || 0) * 1, h = +(a || 0) * 1, d = +(l || 0) * 1;
|
|
5705
5705
|
return {
|
|
5706
|
-
v: (u * 60 * 60 + c * 60 + h + d) / (
|
|
5706
|
+
v: (u * 60 * 60 + c * 60 + h + d) / (3600 * 24),
|
|
5707
5707
|
z: (i.length === 2 ? "hh" : "h") + ":mm" + (a ? ":ss" : "") + (s ? " AM/PM" : "")
|
|
5708
5708
|
};
|
|
5709
5709
|
}
|
|
@@ -6152,7 +6152,7 @@ function Ta(e, t, n, r) {
|
|
|
6152
6152
|
L.short && !r ? m.push("AP"[V]) : m.push(w.ampm[V]);
|
|
6153
6153
|
} else if (k === "hour-elap") {
|
|
6154
6154
|
e < 0 && m.push(w.negative);
|
|
6155
|
-
const V = h * 24 + Math.floor(Math.abs(d) /
|
|
6155
|
+
const V = h * 24 + Math.floor(Math.abs(d) / 3600);
|
|
6156
6156
|
m.push(String(Math.abs(V)).padStart(L.pad, "0"));
|
|
6157
6157
|
} else if (k === "min-elap") {
|
|
6158
6158
|
e < 0 && m.push(w.negative);
|
|
@@ -11804,9 +11804,9 @@ class Fg extends Po {
|
|
|
11804
11804
|
updateDocumentDataPageSize(n, r) {
|
|
11805
11805
|
const { documentStyle: s } = this.snapshot;
|
|
11806
11806
|
if (!s.pageSize) {
|
|
11807
|
-
|
|
11808
|
-
width: n,
|
|
11809
|
-
height: r
|
|
11807
|
+
s.pageSize = {
|
|
11808
|
+
width: n != null ? n : Number.POSITIVE_INFINITY,
|
|
11809
|
+
height: r != null ? r : Number.POSITIVE_INFINITY
|
|
11810
11810
|
};
|
|
11811
11811
|
return;
|
|
11812
11812
|
}
|
|
@@ -11820,9 +11820,9 @@ class Fg extends Po {
|
|
|
11820
11820
|
c.size.width = i, c.size.height = o, c.positionH.posOffset = a, c.positionV.posOffset = l;
|
|
11821
11821
|
}
|
|
11822
11822
|
setZoomRatio(n = 1) {
|
|
11823
|
-
this.snapshot.settings
|
|
11823
|
+
this.snapshot.settings ? this.snapshot.settings.zoomRatio = n : this.snapshot.settings = {
|
|
11824
11824
|
zoomRatio: n
|
|
11825
|
-
}
|
|
11825
|
+
};
|
|
11826
11826
|
}
|
|
11827
11827
|
setDisabled(n) {
|
|
11828
11828
|
this.snapshot.disabled = n;
|
|
@@ -15683,7 +15683,7 @@ class pE extends Ve {
|
|
|
15683
15683
|
}
|
|
15684
15684
|
}
|
|
15685
15685
|
var oc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(oc || {}), EE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(EE || {});
|
|
15686
|
-
const _l = ht("core.image-io.service"), CE = "0.9.
|
|
15686
|
+
const _l = ht("core.image-io.service"), CE = "0.9.4-nightly.202507290713", RE = {
|
|
15687
15687
|
version: CE
|
|
15688
15688
|
};
|
|
15689
15689
|
function IE(e = "", t = As.ZH_CN, n = "") {
|
package/lib/index.js
CHANGED
|
@@ -5703,7 +5703,7 @@ function ko(e, t = {}) {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
const c = +(o || 0) * 1, h = +(a || 0) * 1, d = +(l || 0) * 1;
|
|
5705
5705
|
return {
|
|
5706
|
-
v: (u * 60 * 60 + c * 60 + h + d) / (
|
|
5706
|
+
v: (u * 60 * 60 + c * 60 + h + d) / (3600 * 24),
|
|
5707
5707
|
z: (i.length === 2 ? "hh" : "h") + ":mm" + (a ? ":ss" : "") + (s ? " AM/PM" : "")
|
|
5708
5708
|
};
|
|
5709
5709
|
}
|
|
@@ -6152,7 +6152,7 @@ function Ta(e, t, n, r) {
|
|
|
6152
6152
|
L.short && !r ? m.push("AP"[V]) : m.push(w.ampm[V]);
|
|
6153
6153
|
} else if (k === "hour-elap") {
|
|
6154
6154
|
e < 0 && m.push(w.negative);
|
|
6155
|
-
const V = h * 24 + Math.floor(Math.abs(d) /
|
|
6155
|
+
const V = h * 24 + Math.floor(Math.abs(d) / 3600);
|
|
6156
6156
|
m.push(String(Math.abs(V)).padStart(L.pad, "0"));
|
|
6157
6157
|
} else if (k === "min-elap") {
|
|
6158
6158
|
e < 0 && m.push(w.negative);
|
|
@@ -11804,9 +11804,9 @@ class Fg extends Po {
|
|
|
11804
11804
|
updateDocumentDataPageSize(n, r) {
|
|
11805
11805
|
const { documentStyle: s } = this.snapshot;
|
|
11806
11806
|
if (!s.pageSize) {
|
|
11807
|
-
|
|
11808
|
-
width: n,
|
|
11809
|
-
height: r
|
|
11807
|
+
s.pageSize = {
|
|
11808
|
+
width: n != null ? n : Number.POSITIVE_INFINITY,
|
|
11809
|
+
height: r != null ? r : Number.POSITIVE_INFINITY
|
|
11810
11810
|
};
|
|
11811
11811
|
return;
|
|
11812
11812
|
}
|
|
@@ -11820,9 +11820,9 @@ class Fg extends Po {
|
|
|
11820
11820
|
c.size.width = i, c.size.height = o, c.positionH.posOffset = a, c.positionV.posOffset = l;
|
|
11821
11821
|
}
|
|
11822
11822
|
setZoomRatio(n = 1) {
|
|
11823
|
-
this.snapshot.settings
|
|
11823
|
+
this.snapshot.settings ? this.snapshot.settings.zoomRatio = n : this.snapshot.settings = {
|
|
11824
11824
|
zoomRatio: n
|
|
11825
|
-
}
|
|
11825
|
+
};
|
|
11826
11826
|
}
|
|
11827
11827
|
setDisabled(n) {
|
|
11828
11828
|
this.snapshot.disabled = n;
|
|
@@ -15683,7 +15683,7 @@ class pE extends Ve {
|
|
|
15683
15683
|
}
|
|
15684
15684
|
}
|
|
15685
15685
|
var oc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(oc || {}), EE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(EE || {});
|
|
15686
|
-
const _l = ht("core.image-io.service"), CE = "0.9.
|
|
15686
|
+
const _l = ht("core.image-io.service"), CE = "0.9.4-nightly.202507290713", RE = {
|
|
15687
15687
|
version: CE
|
|
15688
15688
|
};
|
|
15689
15689
|
function IE(e = "", t = As.ZH_CN, n = "") {
|