@univerjs-pro/sheets-pivot-ui 0.4.2-nightly.202411071606 → 0.4.2-nightly.202411081606

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 (68) hide show
  1. package/lib/cjs/index.js +1 -0
  2. package/lib/cjs/locale/en-US.js +1 -0
  3. package/lib/cjs/locale/fa-IR.js +1 -0
  4. package/lib/cjs/locale/ru-RU.js +1 -0
  5. package/lib/cjs/locale/vi-VN.js +1 -0
  6. package/lib/cjs/locale/zh-CN.js +1 -0
  7. package/lib/cjs/locale/zh-TW.js +1 -0
  8. package/lib/es/index.js +1 -1
  9. package/lib/es/locale/en-US.js +1 -0
  10. package/lib/es/locale/fa-IR.js +1 -0
  11. package/lib/es/locale/ru-RU.js +1 -0
  12. package/lib/es/locale/vi-VN.js +1 -0
  13. package/lib/es/locale/zh-CN.js +1 -0
  14. package/lib/es/locale/zh-TW.js +1 -0
  15. package/lib/types/index.d.ts +63 -5
  16. package/lib/umd/index.js +1 -1
  17. package/lib/umd/locale/en-US.js +1 -1
  18. package/lib/umd/locale/fa-IR.js +1 -1
  19. package/lib/umd/locale/ru-RU.js +1 -1
  20. package/lib/umd/locale/vi-VN.js +1 -1
  21. package/lib/umd/locale/zh-CN.js +1 -1
  22. package/lib/umd/locale/zh-TW.js +1 -1
  23. package/package.json +31 -25
  24. package/lib/locale/en-US.js +0 -1
  25. package/lib/locale/fa-IR.js +0 -1
  26. package/lib/locale/ru-RU.js +0 -1
  27. package/lib/locale/vi-VN.js +0 -1
  28. package/lib/locale/zh-CN.js +0 -1
  29. package/lib/locale/zh-TW.js +0 -1
  30. package/lib/types/commands/operations/open-pivot-filter-panel.operation.d.ts +0 -3
  31. package/lib/types/commands/operations/open-pivot-range-panel.operation.d.ts +0 -2
  32. package/lib/types/commands/operations/open-pivot-setting-dialog.operation.d.ts +0 -3
  33. package/lib/types/commands/operations/open-pivot-table-panel.operation.d.ts +0 -3
  34. package/lib/types/const.d.ts +0 -17
  35. package/lib/types/controllers/config.schema.d.ts +0 -7
  36. package/lib/types/controllers/menu.schema.d.ts +0 -2
  37. package/lib/types/controllers/sheets-pivot-confirm.controller.d.ts +0 -17
  38. package/lib/types/controllers/sheets-pivot-edit.controller.d.ts +0 -13
  39. package/lib/types/controllers/sheets-pivot-intercept-ui.controller.d.ts +0 -16
  40. package/lib/types/controllers/sheets-pivot-menu.controller.d.ts +0 -9
  41. package/lib/types/controllers/sheets-pivot-paint-format.controller.d.ts +0 -12
  42. package/lib/types/controllers/sheets-pivot-panel.controller.d.ts +0 -23
  43. package/lib/types/controllers/sheets-pivot-print.controller.d.ts +0 -10
  44. package/lib/types/controllers/sheets-pivot-render.controller.d.ts +0 -21
  45. package/lib/types/controllers/sheets-pivot-toolbar.controller.d.ts +0 -10
  46. package/lib/types/locale/en-US.d.ts +0 -3
  47. package/lib/types/locale/fa-IR.d.ts +0 -3
  48. package/lib/types/locale/ru-RU.d.ts +0 -3
  49. package/lib/types/locale/vi-VN.d.ts +0 -3
  50. package/lib/types/locale/zh-CN.d.ts +0 -101
  51. package/lib/types/locale/zh-TW.d.ts +0 -3
  52. package/lib/types/plugin.d.ts +0 -19
  53. package/lib/types/type.d.ts +0 -30
  54. package/lib/types/util.d.ts +0 -8
  55. package/lib/types/views/components/PivotFilterPanel.d.ts +0 -9
  56. package/lib/types/views/components/PivotNumfmtDialog.d.ts +0 -13
  57. package/lib/types/views/components/PivotPanel.d.ts +0 -19
  58. package/lib/types/views/components/PivotPanelArea.d.ts +0 -19
  59. package/lib/types/views/components/PivotPanelSourceRange.d.ts +0 -10
  60. package/lib/types/views/components/PivotSourceList.d.ts +0 -18
  61. package/lib/types/views/components/PivotTableRangeSelector.d.ts +0 -24
  62. package/lib/types/views/components/SettingDialog.d.ts +0 -14
  63. package/lib/types/views/components/const.d.ts +0 -24
  64. package/lib/types/views/components/util.d.ts +0 -87
  65. package/lib/types/views/menu.d.ts +0 -3
  66. package/lib/types/views/widgets/drawing.d.ts +0 -8
  67. package/lib/types/views/widgets/icons.d.ts +0 -5
  68. package/lib/types/views/widgets/pivot-button.shape.d.ts +0 -35
@@ -1,17 +0,0 @@
1
- export declare const UNIVER_SHEET_PIVOT_PANEL = "UNIVER_SHEET_PIVOT_PANEL";
2
- export declare const UNIVER_SHEET_PIVOT_PANEL_ID = "UNIVER_SHEET_PIVOT_PANEL_ID";
3
- export declare const UNIVER_SHEET_PIVOT_FILTER_PANEL = "UNIVER_SHEET_PIVOT_FILTER_PANEL";
4
- export declare const UNIVER_SHEET_PIVOT_FILTER_PANEL_ID = "UNIVER_SHEET_PIVOT_FILTER_PANEL_ID";
5
- export declare const UNIVER_SHEET_PIVOT_FIELD_SETTING = "UNIVER_SHEET_PIVOT_FIELD_SETTING";
6
- export declare const UNIVER_SHEET_PIVOT_FIELD_SETTING_ID = "UNIVER_SHEET_PIVOT_FIELD_SETTING_ID";
7
- export declare const UNIVER_SHEET_PIVOT_FIELD_NUMFMT = "UNIVER_SHEET_PIVOT_FIELD_NUMFMT";
8
- export declare const UNIVER_SHEET_PIVOT_FIELD_NUMFMT_ID = "UNIVER_SHEET_PIVOT_FIELD_NUMFMT_ID";
9
- export declare const DEFAULT_EMPTY_PIVOT_ROW_COUNT = 14;
10
- export declare const DEFAULT_EMPTY_PIVOT_COL_COUNT = 6;
11
- export declare const PIVOT_TABLE_ICON_KEY = "PIVOT_TABLE_ICON_KEY";
12
- export declare const PIVOT_TABLE_BACK_KEY = "PIVOT_TABLE_BACK_KEY";
13
- export declare enum PivotFilterStatus {
14
- HasFilter = "HasFilter",
15
- NotFilter = "NotFilter"
16
- }
17
- export declare const PANEL_WIDTH = 346;
@@ -1,7 +0,0 @@
1
- import { MenuConfig } from '@univerjs/ui';
2
- export declare const PLUGIN_CONFIG_KEY = "sheets-pivot-ui.config";
3
- export declare const configSymbol: unique symbol;
4
- export interface IUniverSheetsPivotUIConfig {
5
- menu?: MenuConfig;
6
- }
7
- export declare const defaultPluginConfig: IUniverSheetsPivotUIConfig;
@@ -1,2 +0,0 @@
1
- import { MenuSchemaType } from '@univerjs/ui';
2
- export declare const menuSchema: MenuSchemaType;
@@ -1,17 +0,0 @@
1
- import { Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
3
- import { IConfirmService, IMessageService } from '@univerjs/ui';
4
- import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
5
- export declare class SheetsPivotConfirmController extends Disposable {
6
- private readonly _injector;
7
- private readonly _univerInstanceService;
8
- private readonly _sheetsPivotTableAdaptorModel;
9
- private readonly _sheetInterceptorService;
10
- private readonly _confirmService;
11
- private readonly _localeService;
12
- private readonly _sheetsPivotTableConfigModel;
13
- private readonly _messageService;
14
- constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetInterceptorService: SheetInterceptorService, _confirmService: IConfirmService, _localeService: LocaleService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _messageService: IMessageService);
15
- private _initMoveRangeConfirmCheck;
16
- private _initRowColOperationCheck;
17
- }
@@ -1,13 +0,0 @@
1
- import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { SheetsSelectionsService } from '@univerjs/sheets';
3
- import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotTableEditController extends Disposable {
5
- private readonly _sheetsSelectionsService;
6
- private readonly _univerInstanceService;
7
- private readonly _sheetsPivotTableAdaptorModel;
8
- private readonly _commandService;
9
- private _sheetsPivotTableConfigModel;
10
- private readonly _localeService;
11
- constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _localeService: LocaleService);
12
- private _initEditListener;
13
- }
@@ -1,16 +0,0 @@
1
- import { Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
3
- import { IConfirmService } from '@univerjs/ui';
4
- import { SheetsPivotTableConfigModel, SheetsPivotTableService } from '@univerjs-pro/sheets-pivot';
5
- export declare class SheetsPivotTableUIInterceptController extends Disposable {
6
- private readonly _localeService;
7
- private readonly _sheetInterceptorService;
8
- private readonly _injector;
9
- private readonly _confirmService;
10
- private readonly _univerInstanceService;
11
- private readonly _sheetsPivotTableConfigModel;
12
- private readonly _sheetsPivotTableService;
13
- constructor(_localeService: LocaleService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector, _confirmService: IConfirmService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetsPivotTableService: SheetsPivotTableService);
14
- private _getPivotAppliedRanges;
15
- private _initUIInterceptListener;
16
- }
@@ -1,9 +0,0 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
- export declare class SheetsPivotMenuController extends Disposable {
4
- protected readonly _menuManagerService: IMenuManagerService;
5
- private readonly _componentManager;
6
- constructor(_menuManagerService: IMenuManagerService, _componentManager: ComponentManager);
7
- private _initComponents;
8
- private _initMenu;
9
- }
@@ -1,12 +0,0 @@
1
- import { Disposable, LocaleService } from '@univerjs/core';
2
- import { IFormatPainterService } from '@univerjs/sheets-ui';
3
- import { IMessageService } from '@univerjs/ui';
4
- import { SheetsPivotTableAdaptorModel } from '@univerjs-pro/sheets-pivot';
5
- export declare class SheetsPivotTableFormatPaintController extends Disposable {
6
- private readonly _sheetsPivotTableAdaptorModel;
7
- private _formatPainterService;
8
- private readonly _messageService;
9
- private readonly _localeService;
10
- constructor(_sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _formatPainterService: IFormatPainterService, _messageService: IMessageService, _localeService: LocaleService);
11
- private _initFormatPainterListener;
12
- }
@@ -1,23 +0,0 @@
1
- import { Disposable, ICommandService, Injector, IPermissionService, IUniverInstanceService } from '@univerjs/core';
2
- import { IRangeSelectorService } from '@univerjs/docs-ui';
3
- import { SheetsSelectionsService } from '@univerjs/sheets';
4
- import { IDialogService, ISidebarService } from '@univerjs/ui';
5
- import { SheetsPivotTableAdaptorModel } from '@univerjs-pro/sheets-pivot';
6
- export declare class SheetsPivotTablePanelController extends Disposable {
7
- private readonly _sheetsSelectionsService;
8
- private readonly _univerInstanceService;
9
- private readonly _sheetsPivotTableAdaptorModel;
10
- private readonly _commandService;
11
- private readonly _sidebarService;
12
- private _rangeSelectorService;
13
- private _dialogService;
14
- private _injector;
15
- private _permissionService;
16
- private _pivotTableId;
17
- private _pivotTablePanelVisible$;
18
- pivotTablePanelVisible$: import('rxjs').Observable<boolean>;
19
- constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _dialogService: IDialogService, _injector: Injector, _permissionService: IPermissionService);
20
- private _setPivotTableId;
21
- private _initPanelOpen;
22
- private _initSheetChange;
23
- }
@@ -1,10 +0,0 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
3
- import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotPrintController extends Disposable {
5
- private readonly _sheetPrintInterceptorService;
6
- private readonly _sheetsPivotTableAdaptorModel;
7
- private readonly _sheetsPivotTableConfigModel;
8
- constructor(_sheetPrintInterceptorService: SheetPrintInterceptorService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
9
- private _initPrintArea;
10
- }
@@ -1,21 +0,0 @@
1
- import { Workbook, Disposable, ICommandService, Injector, IPermissionService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
- import { SheetPermissionInterceptorBaseController, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
4
- import { ComponentManager } from '@univerjs/ui';
5
- import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
6
- export declare class SheetsPivotRenderController extends Disposable implements IRenderModule {
7
- private readonly _context;
8
- private readonly _injector;
9
- private readonly _sheetsPivotTableAdaptorModel;
10
- private _sheetSkeletonManagerService;
11
- private _componentManager;
12
- private readonly _sheetsPivotTableConfigModel;
13
- private readonly _commandService;
14
- private readonly _sheetPermissionInterceptorBaseController;
15
- private readonly _permissionService;
16
- private _pivotButtonShapesArr;
17
- constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _componentManager: ComponentManager, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _commandService: ICommandService, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController, _permissionService: IPermissionService);
18
- private _initButtonRender;
19
- private _initSkeleton;
20
- private _initListener;
21
- }
@@ -1,10 +0,0 @@
1
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { MergeCellController } from '@univerjs/sheets';
3
- import { SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotToolbarController extends Disposable {
5
- private _mergeCellController;
6
- private _univerInstanceService;
7
- private readonly _sheetsPivotTableConfigModel;
8
- constructor(_mergeCellController: MergeCellController, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
9
- private _initMenuInterceptor;
10
- }
@@ -1,3 +0,0 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
3
- export default locale;
@@ -1,3 +0,0 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
3
- export default locale;
@@ -1,3 +0,0 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
3
- export default locale;
@@ -1,3 +0,0 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
3
- export default locale;
@@ -1,101 +0,0 @@
1
- declare const locale: {
2
- 'sheets-pivot-panel': {
3
- title: string;
4
- sourceRangeLabel: string;
5
- sourceRangePlaceholder: string;
6
- sourceFieldTile: string;
7
- sourceFieldDescription: string;
8
- filter: string;
9
- column: string;
10
- row: string;
11
- value: string;
12
- multipleValue: string;
13
- filterDesc: string;
14
- columnDesc: string;
15
- rowDesc: string;
16
- valueDesc: string;
17
- addToFilter: string;
18
- addToColumn: string;
19
- addToRow: string;
20
- addToValue: string;
21
- removeField: string;
22
- filterField: string;
23
- fieldSettings: string;
24
- moveToRow: string;
25
- moveToColumn: string;
26
- dialog: {
27
- fieldName: string;
28
- sourceName: string;
29
- summarizeBy: string;
30
- format: string;
31
- ok: string;
32
- cancel: string;
33
- filter: {
34
- ascending: string;
35
- descending: string;
36
- selectAll: string;
37
- clearFilter: string;
38
- blank: string;
39
- cancel: string;
40
- confirm: string;
41
- };
42
- numfmt: {
43
- general: string;
44
- accounting: string;
45
- currency: string;
46
- date: string;
47
- thousandthPercentile: string;
48
- fieldSetting: string;
49
- formatTypes: string;
50
- confirm: string;
51
- cancel: string;
52
- generalDesc: string;
53
- accountingDesc: string;
54
- currencyDesc: string;
55
- dateDesc: string;
56
- thousandthPercentileDesc: string;
57
- decimalPlaces: string;
58
- currencyTypes: string;
59
- negativeNumberTypes: string;
60
- dateTypes: string;
61
- };
62
- source: {
63
- insertPivotTable: string;
64
- sourceData: string;
65
- position: string;
66
- newSheet: string;
67
- existingSheet: string;
68
- intersect: string;
69
- };
70
- };
71
- subtotal: {
72
- average: string;
73
- count: string;
74
- countNums: string;
75
- max: string;
76
- min: string;
77
- product: string;
78
- stdDev: string;
79
- stdDevp: string;
80
- sum: string;
81
- var: string;
82
- varp: string;
83
- };
84
- subTotalText: string;
85
- grandTotalText: string;
86
- perform: {
87
- info: string;
88
- confirm: string;
89
- cancel: string;
90
- rowColError: string;
91
- };
92
- msg: {
93
- emptySourceRange: string;
94
- invalidSize: string;
95
- mergeCellError: string;
96
- editCellError: string;
97
- permissionError: string;
98
- };
99
- };
100
- };
101
- export default locale;
@@ -1,3 +0,0 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
3
- export default locale;
@@ -1,19 +0,0 @@
1
- import { IUniverSheetsPivotUIConfig } from './controllers/config.schema';
2
- import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
- import { IRenderManagerService } from '@univerjs/engine-render';
4
- export declare class UniverSheetsPivotTableUIPlugin extends Plugin {
5
- private readonly _config;
6
- readonly _injector: Injector;
7
- private readonly _commandService;
8
- private readonly _renderManagerService;
9
- private readonly _configService;
10
- static pluginName: string;
11
- static type: UniverInstanceType;
12
- constructor(_config: Partial<IUniverSheetsPivotUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _configService: IConfigService);
13
- onStarting(): void;
14
- onReady(): void;
15
- onRendered(): void;
16
- onSteady(): void;
17
- private _registerRenderModules;
18
- private _initRegisterCommand;
19
- }
@@ -1,30 +0,0 @@
1
- import { IPivotTableFilterInfo, IPivotTableSortInfo, PivotDataFieldDataTypeEnum } from '@univerjs-pro/engine-pivot';
2
- import { IPivotPanelSourceList, IPivotPanelTableListItemBase } from '@univerjs-pro/sheets-pivot';
3
- export interface IOpenPivotTablePanelOperationParams {
4
- pivotTableId: string;
5
- }
6
- export interface IOpenPivotTableFilterPanelOperationParams {
7
- row: number;
8
- col: number;
9
- unitId: string;
10
- subUnitId: string;
11
- tableFieldId?: string;
12
- pivotTableId?: string;
13
- }
14
- export interface IOpenPivotTableFieldSettingDialogOperationParams {
15
- tableFieldId: string;
16
- pivotTableId: string;
17
- unitId: string;
18
- subUnitId: string;
19
- tableFieldInfo: IPivotPanelTableListItemBase;
20
- dataFieldInfo: IPivotPanelSourceList;
21
- }
22
- export interface IFilterItemInfo {
23
- tableFieldId: string;
24
- pivotTableId: string;
25
- items: string[];
26
- itemTypes: PivotDataFieldDataTypeEnum[];
27
- format?: string;
28
- filterInfo: IPivotTableFilterInfo | undefined;
29
- sortInfo: IPivotTableSortInfo | undefined;
30
- }
@@ -1,8 +0,0 @@
1
- import { PivotView } from '@univerjs-pro/engine-pivot';
2
- export declare function getPivotRowColCount(view: PivotView, startCell: {
3
- row: number;
4
- col: number;
5
- }, isEmpty: boolean): {
6
- rowCount: number;
7
- colCount: number;
8
- };
@@ -1,9 +0,0 @@
1
- import { IFilterItemInfo } from '../../type';
2
- import { default as React } from 'react';
3
- interface IPivotFilterPanelProps {
4
- unitId: string;
5
- subUnitId: string;
6
- filterItemInfo: IFilterItemInfo;
7
- }
8
- export declare function PivotFilterPanel(props: IPivotFilterPanelProps): React.JSX.Element | undefined;
9
- export {};
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IPivotPanelSourceList, IPivotPanelTableListItemBase } from '@univerjs-pro/sheets-pivot';
3
- interface IPivotNumfmtPanelProps {
4
- unitId: string;
5
- subUnitId: string;
6
- pivotTableId: string;
7
- tableFieldId: string;
8
- originPattern?: string;
9
- tableFieldInfo: IPivotPanelTableListItemBase;
10
- dataFieldInfo: IPivotPanelSourceList;
11
- }
12
- export declare const PivotNumfmtDialog: ({ unitId, subUnitId, pivotTableId, tableFieldId, originPattern, tableFieldInfo, dataFieldInfo }: IPivotNumfmtPanelProps) => React.JSX.Element;
13
- export {};
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DraggableLocation } from 'react-beautiful-dnd';
3
- import { IPivotPanelDataInfo } from '@univerjs-pro/sheets-pivot';
4
- import { Nullable } from '@univerjs/core';
5
- interface IPivotPanelProps {
6
- pivotTableId: string;
7
- version: number;
8
- setVersion: (version: number) => void;
9
- unitId: string;
10
- subUnitId: string;
11
- panelInfo: IPivotPanelDataInfo;
12
- }
13
- export type IDraggingInfo = Nullable<{
14
- draggingId: string;
15
- destination?: Nullable<DraggableLocation>;
16
- source?: Nullable<DraggableLocation>;
17
- }>;
18
- export declare function PivotPanel(props: IPivotPanelProps): React.JSX.Element | null;
19
- export {};
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IPivotPanelDataInfo, IPivotPanelTableListItemBase, IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
3
- import { PivotPanelAreaType } from './util';
4
- import { IDraggingInfo } from './PivotPanel';
5
- interface IPivotFieldAreaItemProps {
6
- areaType: PivotPanelAreaType;
7
- items: IPivotPanelTableListItemBase[];
8
- positionInfo: IPivotTableConfig['targetCellInfo'];
9
- pivotTableId: string;
10
- pivotTableInfo: IPivotPanelDataInfo;
11
- containerOffset: {
12
- top: number;
13
- left: number;
14
- };
15
- refreshHandler: () => void;
16
- draggingInfo: IDraggingInfo;
17
- }
18
- export declare function PivotFieldAreaItem(props: IPivotFieldAreaItemProps): React.JSX.Element;
19
- export {};
@@ -1,10 +0,0 @@
1
- import { IPivotTableConfig, IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
2
- import { default as React } from 'react';
3
- interface IPivotSourceRangeProps {
4
- sourceRangeInfo: IUnitRangeNameWithSubUnitId;
5
- pivotTableId: string;
6
- refreshHandler: () => void;
7
- positionInfo: IPivotTableConfig['targetCellInfo'];
8
- }
9
- export declare function PivotSourceRange(props: IPivotSourceRangeProps): React.JSX.Element;
10
- export {};
@@ -1,18 +0,0 @@
1
- import { IPivotPanelDataInfo, IPivotPanelSourceList } from '@univerjs-pro/sheets-pivot';
2
- import { default as React } from 'react';
3
- interface IPivotSourceListProps {
4
- sourceList: IPivotPanelSourceList[];
5
- refreshHandler: () => void;
6
- pivotTableId: string;
7
- pivotTableInfo: IPivotPanelDataInfo;
8
- unitId: string;
9
- subUnitId: string;
10
- sourceRef: React.RefObject<HTMLDivElement>;
11
- draggingId: string;
12
- containerOffset: {
13
- top: number;
14
- left: number;
15
- };
16
- }
17
- export declare function PivotSourceList(props: IPivotSourceListProps): React.JSX.Element;
18
- export {};
@@ -1,24 +0,0 @@
1
- import { IRange } from '@univerjs/core';
2
- import { PositionType } from '@univerjs-pro/sheets-pivot';
3
- import { default as React } from 'react';
4
- export interface IPivotTableRangeSelectorReturns {
5
- sourceRange: IRange;
6
- sourceSheetName: string;
7
- positionRange?: IRange;
8
- positionSheetName?: string;
9
- positionType: PositionType;
10
- }
11
- export interface IPivotTableRangeSelectorProps {
12
- unitId: string;
13
- subUnitId: string;
14
- sourceRange: IRange;
15
- sourceSheetName: string;
16
- positionRange: IRange | null;
17
- positionSheetName: string;
18
- onConfirm: (info: IPivotTableRangeSelectorReturns) => void;
19
- onCancel: () => void;
20
- }
21
- export declare function PivotTableRangeSelector(props: IPivotTableRangeSelectorProps): React.JSX.Element;
22
- export declare namespace PivotTableRangeSelector {
23
- var componentKey: string;
24
- }
@@ -1,14 +0,0 @@
1
- import { IPivotPanelSourceList, IPivotPanelTableListItemBase } from '@univerjs-pro/sheets-pivot';
2
- interface IPivotFilterPanelProps {
3
- pivotTableId: string;
4
- tableFieldId: string;
5
- unitId: string;
6
- subUnitId: string;
7
- closeFn: () => void;
8
- format?: string;
9
- tableFieldInfo: IPivotPanelTableListItemBase;
10
- dataFieldInfo: IPivotPanelSourceList;
11
- version: number;
12
- }
13
- export declare function PivotSettingDialog(props: IPivotFilterPanelProps): JSX.Element | undefined;
14
- export {};
@@ -1,24 +0,0 @@
1
- export declare const DateFormatList: {
2
- label: string;
3
- suffix: string;
4
- }[];
5
- export declare const ThousandsSeparatorFormatList: ({
6
- label: string;
7
- suffix: string;
8
- color?: undefined;
9
- } | {
10
- label: string;
11
- suffix: string;
12
- color: string;
13
- })[];
14
- export declare const CurrencyFormatList: ({
15
- label: (suffix: string) => string;
16
- suffix: (suffix: string) => string;
17
- color?: undefined;
18
- } | {
19
- label: (suffix: string) => string;
20
- suffix: (suffix: string) => string;
21
- color: string;
22
- })[];
23
- export declare const currencySymbols: string[];
24
- export declare const SHEET_PIVOT_PANEL_SOURCE_RANGE = "sheet.pivot-panel-source-range";
@@ -1,87 +0,0 @@
1
- import { ICommandService, IRange, Nullable, Worksheet } from '@univerjs/core';
2
- import { IPivotTableFilterInfo, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
3
- import { IPivotPanelDataInfo, IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
4
- import { DraggingStyle, NotDraggingStyle } from 'react-beautiful-dnd';
5
- import { PivotFilterStatus } from '../../const';
6
- export declare const PivotDropId = "PivotDropId";
7
- export declare const PivotMultipleValueId = "PivotMultipleValueId";
8
- interface IExecuteRemoveCommandCtx {
9
- pivotTableId: string;
10
- unitId: string;
11
- subUnitId: string;
12
- commandService: ICommandService;
13
- }
14
- export declare enum PivotPanelAreaType {
15
- Filter = "filter",
16
- Row = "row",
17
- Column = "column",
18
- Value = "value",
19
- Source = "source"
20
- }
21
- export declare function getDraggedStyle(isDragging: boolean): React.CSSProperties;
22
- interface IPivotPanelDragCtx {
23
- pivotTableInfo: IPivotPanelDataInfo;
24
- pivotTableId: string;
25
- commandService: ICommandService;
26
- unitId: string;
27
- subUnitId: string;
28
- }
29
- export declare enum PivotSourceRangeErrorEnum {
30
- EmptyRange = 0,
31
- InvalidSize = 1,
32
- Valid = 2
33
- }
34
- /**
35
- * - check if the range is valid for pivot source
36
- * @param {Worksheet} sheet - the sheet to check
37
- * @param {IRange} range -the range to check
38
- * @returns {boolean} - if the range is valid for pivot source
39
- */
40
- export declare function isValidPivotSourceRange(sheet: Worksheet, range: IRange): PivotSourceRangeErrorEnum;
41
- export declare function handlerDropItemOut(ctx: IPivotPanelDragCtx, dragId: string, from: PivotPanelAreaType): Promise<void>;
42
- export declare function handleUpdateSourceRange(commandService: ICommandService, pivotTableId: string, dataRangeInfo: IUnitRangeNameWithSubUnitId, unitId: string, subUnitId: string): Promise<void>;
43
- export declare function handlerDragEnd(ctx: IPivotPanelDragCtx, dragId: string, from: PivotPanelAreaType, to: PivotPanelAreaType, index: number): Promise<void>;
44
- export declare function executeRemoveCommand(ctx: IExecuteRemoveCommandCtx, fieldIds: string[]): Promise<void>;
45
- export declare function executeUpdateValuePositionCommand(ctx: IExecuteRemoveCommandCtx, position: PivotTableValuePositionEnum, index: number): Promise<void>;
46
- export declare function openFilterDialog(commandService: ICommandService, unitId: string, subUnitId: string, pivotTableId: string, tableFieldId: string): void;
47
- export declare function openFieldSettingDialog(commandService: ICommandService, pivotTableId: string, tableFieldId: string, unitId: string, subUnitId: string, pivotTableInfo: IPivotPanelDataInfo): void;
48
- interface ISummarizeListItem {
49
- type: PivotSubtotalTypeEnum;
50
- textKey: string;
51
- }
52
- export declare const SummarizeByList: ISummarizeListItem[];
53
- export declare const getDecimalFromPattern: (pattern: string, defaultValue?: number) => number;
54
- /**
55
- * Determines whether two pattern are equal, excluding differences in decimal places
56
- */
57
- export declare const isPatternEqualWithoutDecimal: (patternA: string, patternB: string) => boolean;
58
- export declare const getDecimalString: (length: number) => string;
59
- export declare const setPatternDecimal: (patterns: string, decimalLength: number) => string;
60
- export declare const isPatternHasDecimal: (pattern: string) => boolean;
61
- export declare const getCurrencyType: (pattern: string) => string | undefined;
62
- export declare const isGeneralPanel: (pattern: string) => boolean;
63
- export declare const isAccountingPanel: (pattern: string) => boolean;
64
- export declare const isCurrencyPanel: (pattern: string) => boolean;
65
- export declare const getDateFormatOptions: () => {
66
- label: string;
67
- value: string;
68
- }[];
69
- export declare const isDatePanel: (pattern: string) => boolean;
70
- export declare const getNumberFormatOptions: () => {
71
- label: string;
72
- value: string;
73
- color: string | undefined;
74
- }[];
75
- export declare const isThousandthPercentilePanel: (pattern: string) => boolean;
76
- export declare const getAreaFieldCount: (pivotTableInfo: IPivotPanelDataInfo, area: PivotTableFiledAreaEnum) => number;
77
- export declare const isPrefixName: (baseName: string, name: string, textInfo: Record<string, string>) => boolean;
78
- export declare const getPrefixName: (baseName: string, textInfo: Record<string, string>, subtotalType: PivotSubtotalTypeEnum) => string;
79
- export declare function getPivotFilterStatus(filterInfo: Nullable<IPivotTableFilterInfo>, additionalParams: {
80
- items?: string[];
81
- }): PivotFilterStatus;
82
- export declare const getDraggingCorrectedStyle: (isDragging: boolean, style: DraggingStyle | NotDraggingStyle | undefined, containerOffset: {
83
- top: number;
84
- left: number;
85
- }) => React.CSSProperties | null;
86
- export declare const getNotDraggedStyle: (draggableId: string, currentId: string) => React.CSSProperties | null;
87
- export {};
@@ -1,3 +0,0 @@
1
- import { IAccessor } from '@univerjs/core';
2
- import { IMenuItem } from '@univerjs/ui';
3
- export declare function sheetsPivotTableToolbarMenuFactory(accessor: IAccessor): IMenuItem;
@@ -1,8 +0,0 @@
1
- import { UniverRenderingContext2D } from '@univerjs/engine-render';
2
- export declare const PIVOT_BUTTON_EMPTY: Path2D;
3
- export declare class PivotButton {
4
- static drawNoSetting(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string): void;
5
- static drawExpand(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string, cellHeight: number): void;
6
- static drawCollapse(ctx: UniverRenderingContext2D, size: number, fgColor: string, bgColor: string, cellHeight: number): void;
7
- static drawIconByPath(ctx: UniverRenderingContext2D, pathData: string[], fgColor: string, bgColor: string): void;
8
- }
@@ -1,5 +0,0 @@
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[];