@univerjs/sheets-ui 0.6.10-nightly.202504151606 → 0.6.10-nightly.202504161609
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 +18 -18
- package/lib/es/index.js +943 -912
- package/lib/index.js +943 -912
- package/lib/types/facade/f-workbook.d.ts +1 -1
- package/lib/types/services/print-interceptor.service.d.ts +20 -6
- package/lib/umd/index.js +20 -20
- package/package.json +17 -12
|
@@ -56,7 +56,7 @@ export interface IFWorkbookSheetsUIMixin {
|
|
|
56
56
|
* title: (
|
|
57
57
|
* <>
|
|
58
58
|
* <Button onClick={() => { console.log('Cancel clicked') }}>Cancel</Button>
|
|
59
|
-
* <Button
|
|
59
|
+
* <Button variant="primary" onClick={() => { console.log('Confirm clicked') }} style={{marginLeft: '10px'}}>Confirm</Button>
|
|
60
60
|
* </>
|
|
61
61
|
* )
|
|
62
62
|
* },
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import { IRange, Disposable, InterceptorManager } from '@univerjs/core';
|
|
2
|
-
import { Scene } from '@univerjs/engine-render';
|
|
3
|
-
interface
|
|
1
|
+
import { DisposableCollection, IRange, Worksheet, Disposable, InterceptorManager } from '@univerjs/core';
|
|
2
|
+
import { Engine, Scene, Spreadsheet, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
3
|
+
interface ISheetPrintContext {
|
|
4
4
|
unitId: string;
|
|
5
5
|
subUnitId: string;
|
|
6
|
+
scene: Scene;
|
|
7
|
+
engine: Engine;
|
|
8
|
+
root: HTMLElement;
|
|
9
|
+
worksheet: Worksheet;
|
|
10
|
+
skeleton: SpreadsheetSkeleton;
|
|
11
|
+
offset: {
|
|
12
|
+
offsetX: number;
|
|
13
|
+
offsetY: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface ISheetPrintComponentContext extends ISheetPrintContext {
|
|
17
|
+
spreadsheet: Spreadsheet;
|
|
6
18
|
}
|
|
7
19
|
export declare class SheetPrintInterceptorService extends Disposable {
|
|
8
20
|
readonly interceptor: InterceptorManager<{
|
|
9
|
-
PRINTING_RANGE: import('@univerjs/core').IInterceptor<IRange,
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
PRINTING_RANGE: import('@univerjs/core').IInterceptor<IRange, {
|
|
22
|
+
unitId: string;
|
|
23
|
+
subUnitId: string;
|
|
12
24
|
}>;
|
|
25
|
+
PRINTING_COMPONENT_COLLECT: import('@univerjs/core').IInterceptor<undefined, ISheetPrintComponentContext>;
|
|
26
|
+
PRINTING_DOM_COLLECT: import('@univerjs/core').IInterceptor<DisposableCollection, ISheetPrintContext>;
|
|
13
27
|
}>;
|
|
14
28
|
constructor();
|
|
15
29
|
}
|