@univerjs-pro/sheets-pivot-ui 0.2.7
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/README.md +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/index.css +1 -0
- package/lib/locale/en-US.json +89 -0
- package/lib/locale/ru-RU.json +89 -0
- package/lib/locale/vi-VN.json +89 -0
- package/lib/locale/zh-CN.json +89 -0
- package/lib/locale/zh-TW.json +89 -0
- package/lib/types/commands/commands/add-pivot-field.command.d.ts +4 -0
- package/lib/types/commands/commands/add-pivot-table.command.d.ts +4 -0
- package/lib/types/commands/commands/move-pivot-field.command.d.ts +4 -0
- package/lib/types/commands/commands/remove-pivot-field.command.d.ts +4 -0
- package/lib/types/commands/commands/set-pivot-collapse.command.d.ts +4 -0
- package/lib/types/commands/commands/set-pivot-filter.command.d.ts +4 -0
- package/lib/types/commands/commands/set-pivot-sort.command.d.ts +4 -0
- package/lib/types/commands/commands/update-pivot-setting.command.d.ts +4 -0
- package/lib/types/commands/commands/update-pivot-source.command.d.ts +4 -0
- package/lib/types/commands/commands/update-value-position.command.d.ts +4 -0
- package/lib/types/commands/operations/open-pivot-filter-panel.operation.d.ts +4 -0
- package/lib/types/commands/operations/open-pivot-range-panel.operation.d.ts +3 -0
- package/lib/types/commands/operations/open-pivot-setting-dialog.operation.d.ts +4 -0
- package/lib/types/commands/operations/open-pivot-table-panel.operation.d.ts +4 -0
- package/lib/types/const.d.ts +13 -0
- package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +13 -0
- package/lib/types/controllers/sheets-pivot-confirm.controller.d.ts +20 -0
- package/lib/types/controllers/sheets-pivot-edit.controller.d.ts +16 -0
- package/lib/types/controllers/sheets-pivot-menu.controller.d.ts +11 -0
- package/lib/types/controllers/sheets-pivot-panel.controller.d.ts +18 -0
- package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +23 -0
- package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +10 -0
- package/lib/types/controllers/sheets-pivot-render.controller.d.ts +21 -0
- package/lib/types/controllers/sheets-pivot-table-menu.controller.d.ts +13 -0
- package/lib/types/index.d.ts +15 -0
- package/lib/types/locale/en-US.d.ts +4 -0
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +90 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/plugin.d.ts +20 -0
- package/lib/types/services/sheets-pivot-ui.service.d.ts +44 -0
- package/lib/types/type.d.ts +97 -0
- package/lib/types/util.d.ts +12 -0
- package/lib/types/views/components/PivotFilterPanel.d.ts +10 -0
- package/lib/types/views/components/PivotNumfmtDialog.d.ts +14 -0
- package/lib/types/views/components/PivotPanel.d.ts +13 -0
- package/lib/types/views/components/PivotPanelArea.d.ts +14 -0
- package/lib/types/views/components/PivotPanelSourceRange.d.ts +11 -0
- package/lib/types/views/components/PivotSourceList.d.ts +16 -0
- package/lib/types/views/components/PivotTableRangeSelector.d.ts +25 -0
- package/lib/types/views/components/SettingDialog.d.ts +15 -0
- package/lib/types/views/components/const.d.ts +24 -0
- package/lib/types/views/components/util.d.ts +78 -0
- package/lib/types/views/menu.d.ts +4 -0
- package/lib/types/views/widgets/drawing.d.ts +9 -0
- package/lib/types/views/widgets/icons.d.ts +5 -0
- package/lib/types/views/widgets/pivot-button.shape.d.ts +35 -0
- package/lib/umd/index.js +1 -0
- package/package.json +111 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
import { UniverRenderingContext2D } from '@univerjs/engine-render';
|
2
|
+
|
3
|
+
export declare const PIVOT_BUTTON_EMPTY: Path2D;
|
4
|
+
export declare class PivotButton {
|
5
|
+
static drawNoSetting(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string): void;
|
6
|
+
static drawExpand(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string, cellHeight: number): void;
|
7
|
+
static drawCollapse(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string, cellHeight: number): void;
|
8
|
+
static drawIconByPath(ctx: UniverRenderingContext2D, pathData: string[], fgColor: string, bgColor: string): void;
|
9
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { PivotCellStyleTypeEnum } from '@univerjs-pro/pivot-engine';
|
2
|
+
import { ICommandService, IContextService, ThemeService } from '@univerjs/core';
|
3
|
+
import { IMouseEvent, IPointerEvent, IShapeProps, UniverRenderingContext2D, Shape } from '@univerjs/engine-render';
|
4
|
+
|
5
|
+
export declare const PIVOT_ICON_SIZE = 16;
|
6
|
+
export declare const PIVOT_PADDING_SIZE = 1;
|
7
|
+
export declare const PIVOT_EXPEND_SIZE = 12;
|
8
|
+
export declare const PIVOT_EXPAND_LEFT_PADDING = 4;
|
9
|
+
export declare const FILTER_BUTTON_TYPE_SET: Set<PivotCellStyleTypeEnum>;
|
10
|
+
export interface ISheetsPivotTableButtonShapeProps extends IShapeProps {
|
11
|
+
cellWidth: number;
|
12
|
+
cellHeight: number;
|
13
|
+
pivotParams: {
|
14
|
+
col: number;
|
15
|
+
row: number;
|
16
|
+
unitId: string;
|
17
|
+
subUnitId: string;
|
18
|
+
buttonType: PivotCellStyleTypeEnum;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
export declare class SheetsPivotTableButtonShape extends Shape<ISheetsPivotTableButtonShapeProps> {
|
22
|
+
private readonly _contextService;
|
23
|
+
private readonly _commandService;
|
24
|
+
private readonly _themeService;
|
25
|
+
private _cellWidth;
|
26
|
+
private _cellHeight;
|
27
|
+
private _hovered;
|
28
|
+
private _pivotParams?;
|
29
|
+
constructor(key: string, props: ISheetsPivotTableButtonShapeProps, _contextService: IContextService, _commandService: ICommandService, _themeService: ThemeService);
|
30
|
+
setShapeProps(props: Partial<ISheetsPivotTableButtonShapeProps>): void;
|
31
|
+
onPointerDown(evt: IPointerEvent | IMouseEvent): void;
|
32
|
+
onPointerEnter(): void;
|
33
|
+
onPointerLeave(): void;
|
34
|
+
protected _draw(ctx: UniverRenderingContext2D): void;
|
35
|
+
}
|