@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.
Files changed (59) hide show
  1. package/README.md +1 -0
  2. package/lib/cjs/index.js +1 -0
  3. package/lib/es/index.js +1 -0
  4. package/lib/index.css +1 -0
  5. package/lib/locale/en-US.json +89 -0
  6. package/lib/locale/ru-RU.json +89 -0
  7. package/lib/locale/vi-VN.json +89 -0
  8. package/lib/locale/zh-CN.json +89 -0
  9. package/lib/locale/zh-TW.json +89 -0
  10. package/lib/types/commands/commands/add-pivot-field.command.d.ts +4 -0
  11. package/lib/types/commands/commands/add-pivot-table.command.d.ts +4 -0
  12. package/lib/types/commands/commands/move-pivot-field.command.d.ts +4 -0
  13. package/lib/types/commands/commands/remove-pivot-field.command.d.ts +4 -0
  14. package/lib/types/commands/commands/set-pivot-collapse.command.d.ts +4 -0
  15. package/lib/types/commands/commands/set-pivot-filter.command.d.ts +4 -0
  16. package/lib/types/commands/commands/set-pivot-sort.command.d.ts +4 -0
  17. package/lib/types/commands/commands/update-pivot-setting.command.d.ts +4 -0
  18. package/lib/types/commands/commands/update-pivot-source.command.d.ts +4 -0
  19. package/lib/types/commands/commands/update-value-position.command.d.ts +4 -0
  20. package/lib/types/commands/operations/open-pivot-filter-panel.operation.d.ts +4 -0
  21. package/lib/types/commands/operations/open-pivot-range-panel.operation.d.ts +3 -0
  22. package/lib/types/commands/operations/open-pivot-setting-dialog.operation.d.ts +4 -0
  23. package/lib/types/commands/operations/open-pivot-table-panel.operation.d.ts +4 -0
  24. package/lib/types/const.d.ts +13 -0
  25. package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +13 -0
  26. package/lib/types/controllers/sheets-pivot-confirm.controller.d.ts +20 -0
  27. package/lib/types/controllers/sheets-pivot-edit.controller.d.ts +16 -0
  28. package/lib/types/controllers/sheets-pivot-menu.controller.d.ts +11 -0
  29. package/lib/types/controllers/sheets-pivot-panel.controller.d.ts +18 -0
  30. package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +23 -0
  31. package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +10 -0
  32. package/lib/types/controllers/sheets-pivot-render.controller.d.ts +21 -0
  33. package/lib/types/controllers/sheets-pivot-table-menu.controller.d.ts +13 -0
  34. package/lib/types/index.d.ts +15 -0
  35. package/lib/types/locale/en-US.d.ts +4 -0
  36. package/lib/types/locale/ru-RU.d.ts +4 -0
  37. package/lib/types/locale/vi-VN.d.ts +4 -0
  38. package/lib/types/locale/zh-CN.d.ts +90 -0
  39. package/lib/types/locale/zh-TW.d.ts +4 -0
  40. package/lib/types/plugin.d.ts +20 -0
  41. package/lib/types/services/sheets-pivot-ui.service.d.ts +44 -0
  42. package/lib/types/type.d.ts +97 -0
  43. package/lib/types/util.d.ts +12 -0
  44. package/lib/types/views/components/PivotFilterPanel.d.ts +10 -0
  45. package/lib/types/views/components/PivotNumfmtDialog.d.ts +14 -0
  46. package/lib/types/views/components/PivotPanel.d.ts +13 -0
  47. package/lib/types/views/components/PivotPanelArea.d.ts +14 -0
  48. package/lib/types/views/components/PivotPanelSourceRange.d.ts +11 -0
  49. package/lib/types/views/components/PivotSourceList.d.ts +16 -0
  50. package/lib/types/views/components/PivotTableRangeSelector.d.ts +25 -0
  51. package/lib/types/views/components/SettingDialog.d.ts +15 -0
  52. package/lib/types/views/components/const.d.ts +24 -0
  53. package/lib/types/views/components/util.d.ts +78 -0
  54. package/lib/types/views/menu.d.ts +4 -0
  55. package/lib/types/views/widgets/drawing.d.ts +9 -0
  56. package/lib/types/views/widgets/icons.d.ts +5 -0
  57. package/lib/types/views/widgets/pivot-button.shape.d.ts +35 -0
  58. package/lib/umd/index.js +1 -0
  59. 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,5 @@
1
+ export declare const filterPartial: string[];
2
+ export declare const filteredSortAsc: string[];
3
+ export declare const filteredSortDesc: string[];
4
+ export declare const filterNoneSortAsc: string[];
5
+ export declare const filterNoneSortDesc: string[];
@@ -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
+ }