@univerjs/sheets-ui 0.6.10-experimental.20250428-ab93895 → 0.6.10-experimental.20250428-63779a3
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 +1 -1
- package/lib/es/index.js +7 -0
- package/lib/index.js +7 -0
- package/lib/types/services/print-interceptor.service.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -22196,6 +22196,7 @@ const XM = zn("PRINTING_RANGE"), jM = zn("PRINTING_COMPONENT_COLLECT"), YM = zn(
|
|
|
22196
22196
|
class Ep extends ae {
|
|
22197
22197
|
constructor() {
|
|
22198
22198
|
super();
|
|
22199
|
+
w(this, "_printComponentMap", /* @__PURE__ */ new Map());
|
|
22199
22200
|
w(this, "interceptor", new Ei({
|
|
22200
22201
|
PRINTING_RANGE: XM,
|
|
22201
22202
|
PRINTING_COMPONENT_COLLECT: jM,
|
|
@@ -22212,6 +22213,12 @@ class Ep extends ae {
|
|
|
22212
22213
|
handler: (t) => t
|
|
22213
22214
|
}));
|
|
22214
22215
|
}
|
|
22216
|
+
registerPrintComponent(t, r) {
|
|
22217
|
+
this._printComponentMap.set(t, r);
|
|
22218
|
+
}
|
|
22219
|
+
getPrintComponent(t) {
|
|
22220
|
+
return this._printComponentMap.get(t);
|
|
22221
|
+
}
|
|
22215
22222
|
}
|
|
22216
22223
|
class ZM extends Ud {
|
|
22217
22224
|
constructor(t, r, i, o) {
|
package/lib/index.js
CHANGED
|
@@ -22196,6 +22196,7 @@ const XM = zn("PRINTING_RANGE"), jM = zn("PRINTING_COMPONENT_COLLECT"), YM = zn(
|
|
|
22196
22196
|
class Ep extends ae {
|
|
22197
22197
|
constructor() {
|
|
22198
22198
|
super();
|
|
22199
|
+
w(this, "_printComponentMap", /* @__PURE__ */ new Map());
|
|
22199
22200
|
w(this, "interceptor", new Ei({
|
|
22200
22201
|
PRINTING_RANGE: XM,
|
|
22201
22202
|
PRINTING_COMPONENT_COLLECT: jM,
|
|
@@ -22212,6 +22213,12 @@ class Ep extends ae {
|
|
|
22212
22213
|
handler: (t) => t
|
|
22213
22214
|
}));
|
|
22214
22215
|
}
|
|
22216
|
+
registerPrintComponent(t, r) {
|
|
22217
|
+
this._printComponentMap.set(t, r);
|
|
22218
|
+
}
|
|
22219
|
+
getPrintComponent(t) {
|
|
22220
|
+
return this._printComponentMap.get(t);
|
|
22221
|
+
}
|
|
22215
22222
|
}
|
|
22216
22223
|
class ZM extends Ud {
|
|
22217
22224
|
constructor(t, r, i, o) {
|
|
@@ -17,6 +17,7 @@ interface ISheetPrintComponentContext extends ISheetPrintContext {
|
|
|
17
17
|
spreadsheet: Spreadsheet;
|
|
18
18
|
}
|
|
19
19
|
export declare class SheetPrintInterceptorService extends Disposable {
|
|
20
|
+
private _printComponentMap;
|
|
20
21
|
readonly interceptor: InterceptorManager<{
|
|
21
22
|
PRINTING_RANGE: import('@univerjs/core').IInterceptor<IRange, {
|
|
22
23
|
unitId: string;
|
|
@@ -26,5 +27,7 @@ export declare class SheetPrintInterceptorService extends Disposable {
|
|
|
26
27
|
PRINTING_DOM_COLLECT: import('@univerjs/core').IInterceptor<DisposableCollection, ISheetPrintContext>;
|
|
27
28
|
}>;
|
|
28
29
|
constructor();
|
|
30
|
+
registerPrintComponent(componentKey: string, printingComponentKey: string): void;
|
|
31
|
+
getPrintComponent(componentKey: string): string | undefined;
|
|
29
32
|
}
|
|
30
33
|
export {};
|