@univerjs-pro/sheets-print 0.2.7 → 0.2.8

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/index.css CHANGED
@@ -1 +1 @@
1
- .univer-sheets-print{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%}.univer-sheets-print-limit{margin:var(--margin-base) auto;text-align:center}.univer-sheets-print-header{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:64px;padding-right:var(--padding-lg);padding-left:var(--padding-lg);background:rgb(var(--color-white));border-bottom:1px solid rgb(var(--border-color))}.univer-sheets-print-header-left{margin-left:var(--margin-xs);font-size:var(--font-size-lg);font-weight:500;font-style:normal;line-height:normal;color:rgb(var(--color-black))}.univer-sheets-print-header-right{position:relative}.univer-sheets-print-header-right :first-child{margin-right:var(--margin-xs)}.univer-sheets-print-content{overflow:hidden;display:flex;flex:1 1 0;flex-direction:row;box-sizing:border-box}.univer-sheets-print-content-preview{position:relative;overflow:hidden;flex:1 1 0;box-sizing:border-box}.univer-sheets-print-content-preview-page{position:relative;flex:0 0 auto;margin:28px auto;background-color:rgb(var(--color-white));box-shadow:var(--box-shadow-lg)}.univer-sheets-print-content-preview-control{position:absolute;right:var(--margin-base);bottom:var(--margin-base)}.univer-sheets-print-content-preview-control-item{cursor:pointer;z-index:100;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-top:var(--margin-xs);background-color:rgb(var(--color-white));border-radius:50%;box-shadow:var(--box-shadow-base)}.univer-sheets-print-content-setting{flex:0 0 auto;box-sizing:border-box;width:312px;height:100%;background:rgb(var(--color-white))}.univer-sheets-print-content-setting-form{padding:16px}
1
+ .univer-sheets-print{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden}.univer-sheets-print-limit{margin:var(--margin-base) auto;text-align:center}.univer-sheets-print-header{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:64px;padding-right:var(--padding-lg);padding-left:var(--padding-lg);background:rgb(var(--color-white));border-bottom:1px solid rgb(var(--border-color))}.univer-sheets-print-header-left{margin-left:var(--margin-xs);font-size:var(--font-size-lg);font-weight:500;font-style:normal;line-height:normal;color:rgb(var(--color-black))}.univer-sheets-print-header-right{position:relative}.univer-sheets-print-header-right :first-child{margin-right:var(--margin-xs)}.univer-sheets-print-content{overflow:hidden;display:flex;flex-direction:column;flex:1 1 0;flex-direction:row;box-sizing:border-box}.univer-sheets-print-content-preview{position:relative;overflow:hidden;flex:1 1 0;box-sizing:border-box;display:flex;flex-direction:column}.univer-sheets-print-content-preview-list{flex:1 1 0;overflow:auto;scrollbar-color:#73737366 transparent;scrollbar-gutter:stable;scrollbar-width:thin}.univer-sheets-print-content-preview-page{position:relative;flex:0 0 auto;margin:28px auto 0;background-color:rgb(var(--color-white));box-shadow:var(--box-shadow-lg)}.univer-sheets-print-content-preview-control{position:absolute;right:var(--margin-base);bottom:var(--margin-base);z-index:100}.univer-sheets-print-content-preview-control-item{cursor:pointer;z-index:100;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-top:var(--margin-xs);background-color:rgb(var(--color-white));border-radius:50%;box-shadow:var(--box-shadow-base)}.univer-sheets-print-content-setting{flex:0 0 auto;box-sizing:border-box;width:312px;height:100%;background:rgb(var(--color-white))}.univer-sheets-print-content-setting-form{padding:16px}
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const SheetPrintOpenOperation: ICommand;
4
3
  export declare const CancelSheetPrintOperation: ICommand;
5
4
  export declare const ConfirmSheetPrintOperation: ICommand;
@@ -1,4 +1,3 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare function convertDataURL2File(data: string, type: string): Blob;
4
3
  export declare const SheetScreenShotOperation: ICommand;
@@ -1,5 +1,4 @@
1
1
  import { PrintAlign, PrintDirection, PrintPaperMargin, PrintPaperSize, PrintScale } from '@univerjs-pro/print';
2
-
3
2
  export declare enum PrintArea {
4
3
  CurrentSheet = "CurrentSheet",
5
4
  workbook = "Workbook",
@@ -1,5 +1,4 @@
1
1
  import { IAccessor } from '@univerjs/core';
2
2
  import { IMenuButtonItem } from '@univerjs/ui';
3
-
4
3
  export declare function PrintMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
5
4
  export declare function ScreenshotMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -2,7 +2,6 @@ import { Disposable, ICommandService } from '@univerjs/core';
2
2
  import { ComponentManager, IGlobalZoneService } from '@univerjs/ui';
3
3
  import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
4
4
  import { SheetPrintClientService } from '../services/sheet-print.service';
5
-
6
5
  export declare class SheetPrintController extends Disposable {
7
6
  private readonly _printService;
8
7
  private readonly _commandService;
@@ -1,3 +1,2 @@
1
1
  import { IShortcutItem } from '@univerjs/ui';
2
-
3
2
  export declare const PrintShortcut: IShortcutItem;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,6 +1,5 @@
1
1
  import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
2
  import { MenuConfig, ComponentManager, IMenuService, IShortcutService } from '@univerjs/ui';
3
-
4
3
  export interface IUniverSheetsPrintConfig {
5
4
  menu: MenuConfig;
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { HTTPService } from '@univerjs/network';
2
2
  import { IConfigService } from '@univerjs/core';
3
-
4
3
  export declare const DEFAULT_PRINT_LIMIT = 3;
5
4
  export declare const QUOTAS_URL_KEY = "QUOTAS_URL_KEY";
6
5
  export declare class SheetPrintLicenseService {
@@ -5,7 +5,6 @@ import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
5
5
  import { Observable } from 'rxjs';
6
6
  import { IPrintMargin } from '@univerjs-pro/print';
7
7
  import { ISheetPrintLayoutConfig, ISheetPrintRenderConfig } from '../common/types';
8
-
9
8
  export interface IPrintSheetInfo {
10
9
  unitId: string;
11
10
  subUnitId: string;
@@ -4,7 +4,6 @@ import { IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { ISheetPrintRenderConfig } from '../common/types';
5
5
  import { ISheetPrintLayoutInfo, ISheetPrintManagerService } from './sheet-print-manager.service';
6
6
  import { SheetPrintLicenseService } from './sheet-print-license.service';
7
-
8
7
  export declare class SheetPrintClientService {
9
8
  private readonly _sheetPrintLicenseService;
10
9
  private readonly _injector;
@@ -2,7 +2,6 @@ import { IAccessor, IFreeze, IRange, Disposable } from '@univerjs/core';
2
2
  import { Engine } from '@univerjs/engine-render';
3
3
  import { IPrintMargin } from '@univerjs-pro/print';
4
4
  import { ISheetPrintRenderConfig } from '../../common/types';
5
-
6
5
  export interface IPrintSheetPageInfo {
7
6
  unitId: string;
8
7
  subUnitId: string;
@@ -48,6 +47,7 @@ export declare class SheetPrintCanvasView extends Disposable {
48
47
  private get paperSize();
49
48
  private get margin();
50
49
  private _initRenderer;
50
+ clearMemory(): void;
51
51
  setPreviewScale(previewScale: number): void;
52
52
  updateConfig(config: IPrintSheetPageInfo): void;
53
53
  markDirty(dirty: boolean): void;
@@ -1,9 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { IPrintSheetPageInfo } from './sheet-print-canvas-view';
3
-
4
3
  export interface ISheetPrintPageViewProps {
5
4
  page: number;
6
5
  previewScale: number;
7
6
  config: IPrintSheetPageInfo;
8
7
  }
9
- export declare const SheetPrintPagePreview: (props: ISheetPrintPageViewProps) => React.JSX.Element;
8
+ export declare const DEFAULT_WIDTH = 794;
9
+ export declare const SheetPrintPagePreview: React.ForwardRefExoticComponent<ISheetPrintPageViewProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const SheetPrintView: () => React.JSX.Element;