@univerjs/core 0.10.4 → 0.10.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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +7 -7
- package/lib/es/facade.js +14 -14
- package/lib/es/index.js +1726 -1697
- package/lib/facade.js +14 -14
- package/lib/index.js +1726 -1697
- package/lib/types/shared/object-matrix.d.ts +4 -0
- package/lib/types/sheets/styles.d.ts +2 -0
- package/lib/types/sheets/workbook.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +7 -7
- package/package.json +5 -5
package/lib/es/facade.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var F = Object.defineProperty;
|
|
2
2
|
var W = (i, e, t) => e in i ? F(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var d = (i, e, t) => W(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Disposable as I, Inject as p, Injector as _, AbsoluteRefType as q, UniverInstanceType as R, LifecycleStages as f, DataValidationType as G, DataValidationErrorStyle as J, DataValidationRenderMode as K, DataValidationOperator as Q, DataValidationStatus as X, CommandType as Y, BaselineOffset as Z, BooleanNumber as k, HorizontalAlign as ee, TextDecoration as te, TextDirection as re, VerticalAlign as ie, WrapStrategy as ne, BorderType as oe, BorderStyleTypes as se, AutoFillSeries as ce, ColorType as ae, CommonHideTypes as de, CopyPasteType as le, DeleteDirection as pe, DeveloperMetadataVisibility as he, Dimension as ue, Direction as ge, InterpolationPointType as ye, LocaleType as ve, MentionType as fe, ProtectionType as _e, RelativeDate as me, SheetTypes as Ee, ThemeColorType as
|
|
5
|
-
import { filter as
|
|
4
|
+
import { Disposable as I, Inject as p, Injector as _, AbsoluteRefType as q, UniverInstanceType as R, LifecycleStages as f, DataValidationType as G, DataValidationErrorStyle as J, DataValidationRenderMode as K, DataValidationOperator as Q, DataValidationStatus as X, CommandType as Y, BaselineOffset as Z, BooleanNumber as k, HorizontalAlign as ee, TextDecoration as te, TextDirection as re, VerticalAlign as ie, WrapStrategy as ne, BorderType as oe, BorderStyleTypes as se, AutoFillSeries as ce, ColorType as ae, CommonHideTypes as de, CopyPasteType as le, DeleteDirection as pe, DeveloperMetadataVisibility as he, Dimension as ue, Direction as ge, InterpolationPointType as ye, LocaleType as ve, MentionType as fe, ProtectionType as _e, RelativeDate as me, SheetTypes as Ee, ThemeColorType as be, LifecycleService as M, toDisposable as l, ICommandService as g, UndoCommand as h, IUndoRedoService as E, RedoCommand as u, Registry as Se, UserManagerService as Ce, Rectangle as De, numfmt as xe, Tools as Te, IUniverInstanceService as N, Univer as we, CanceledError as x, ThemeService as Re, LocaleService as z, ColorBuilder as je, RichTextBuilder as Oe, RichTextValue as Pe, ParagraphStyleBuilder as Be, ParagraphStyleValue as He, TextStyleBuilder as Ue, TextStyleValue as Ve, TextDecorationBuilder as Ie } from "@univerjs/core";
|
|
5
|
+
import { filter as b } from "rxjs";
|
|
6
6
|
class $ extends I {
|
|
7
7
|
/**
|
|
8
8
|
* @ignore
|
|
@@ -115,7 +115,7 @@ let C = class extends $ {
|
|
|
115
115
|
* ```
|
|
116
116
|
*/
|
|
117
117
|
setBytes(i) {
|
|
118
|
-
return this._blob = new Blob([i]), this;
|
|
118
|
+
return this._blob = new Blob([i.buffer]), this;
|
|
119
119
|
}
|
|
120
120
|
setDataFromString(i, e) {
|
|
121
121
|
const t = e != null ? e : "text/plain", r = new Blob([i], { type: t });
|
|
@@ -535,7 +535,7 @@ const y = class y {
|
|
|
535
535
|
* ```
|
|
536
536
|
*/
|
|
537
537
|
get ThemeColorType() {
|
|
538
|
-
return
|
|
538
|
+
return be;
|
|
539
539
|
}
|
|
540
540
|
};
|
|
541
541
|
/**
|
|
@@ -737,28 +737,28 @@ let P = class extends $ {
|
|
|
737
737
|
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {})` as instead
|
|
738
738
|
*/
|
|
739
739
|
onStarting(i) {
|
|
740
|
-
return l(this._lifecycleService.lifecycle$.pipe(
|
|
740
|
+
return l(this._lifecycleService.lifecycle$.pipe(b((e) => e === f.Starting)).subscribe(i));
|
|
741
741
|
}
|
|
742
742
|
/**
|
|
743
743
|
* @param callback
|
|
744
744
|
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {})` as instead
|
|
745
745
|
*/
|
|
746
746
|
onReady(i) {
|
|
747
|
-
return l(this._lifecycleService.lifecycle$.pipe(
|
|
747
|
+
return l(this._lifecycleService.lifecycle$.pipe(b((e) => e === f.Ready)).subscribe(i));
|
|
748
748
|
}
|
|
749
749
|
/**
|
|
750
750
|
* @param callback
|
|
751
751
|
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {})` as instead
|
|
752
752
|
*/
|
|
753
753
|
onRendered(i) {
|
|
754
|
-
return l(this._lifecycleService.lifecycle$.pipe(
|
|
754
|
+
return l(this._lifecycleService.lifecycle$.pipe(b((e) => e === f.Rendered)).subscribe(i));
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
757
757
|
* @param callback
|
|
758
758
|
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {})` as instead
|
|
759
759
|
*/
|
|
760
760
|
onSteady(i) {
|
|
761
|
-
return l(this._lifecycleService.lifecycle$.pipe(
|
|
761
|
+
return l(this._lifecycleService.lifecycle$.pipe(b((e) => e === f.Steady)).subscribe(i));
|
|
762
762
|
}
|
|
763
763
|
/**
|
|
764
764
|
* @param callback
|
|
@@ -833,7 +833,7 @@ class Ge {
|
|
|
833
833
|
d(this, "_eventHandlerRegisted", /* @__PURE__ */ new Map());
|
|
834
834
|
}
|
|
835
835
|
_ensureEventRegistry(e) {
|
|
836
|
-
return this._eventRegistry.has(e) || this._eventRegistry.set(e, new
|
|
836
|
+
return this._eventRegistry.has(e) || this._eventRegistry.set(e, new Se()), this._eventRegistry.get(e);
|
|
837
837
|
}
|
|
838
838
|
registerEventHandler(e, t) {
|
|
839
839
|
const r = this._eventHandlerMap.get(e);
|
|
@@ -981,7 +981,7 @@ var Qe = Object.getOwnPropertyDescriptor, Xe = (i, e, t, r) => {
|
|
|
981
981
|
for (var n = r > 1 ? void 0 : r ? Qe(e, t) : e, o = i.length - 1, s; o >= 0; o--)
|
|
982
982
|
(s = i[o]) && (n = s(n) || n);
|
|
983
983
|
return n;
|
|
984
|
-
},
|
|
984
|
+
}, S = (i, e) => (t, r) => e(t, r, i);
|
|
985
985
|
const w = Symbol("initializers");
|
|
986
986
|
let V = class extends I {
|
|
987
987
|
constructor(e, t, r, n) {
|
|
@@ -1449,10 +1449,10 @@ let V = class extends I {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
1451
|
V = Xe([
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1452
|
+
S(0, p(_)),
|
|
1453
|
+
S(1, g),
|
|
1454
|
+
S(2, N),
|
|
1455
|
+
S(3, p(M))
|
|
1456
1456
|
], V);
|
|
1457
1457
|
export {
|
|
1458
1458
|
$ as FBase,
|