@univerjs-pro/sheets-pivot-ui 0.4.1 → 0.4.2-nightly.202410301606

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 (51) hide show
  1. package/README.md +33 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/locale/en-US.js +1 -0
  4. package/lib/locale/fa-IR.js +1 -0
  5. package/lib/locale/ru-RU.js +1 -0
  6. package/lib/locale/vi-VN.js +1 -0
  7. package/lib/locale/zh-CN.js +1 -0
  8. package/lib/locale/zh-TW.js +1 -0
  9. package/lib/types/const.d.ts +0 -1
  10. package/lib/types/controllers/sheets-pivot-confirm.controller.d.ts +1 -3
  11. package/lib/types/controllers/sheets-pivot-intercept-ui.controller.d.ts +16 -0
  12. package/lib/types/controllers/sheets-pivot-render.controller.d.ts +1 -1
  13. package/lib/types/index.d.ts +0 -10
  14. package/lib/types/type.d.ts +2 -72
  15. package/lib/types/util.d.ts +1 -4
  16. package/lib/types/views/components/PivotFilterPanel.d.ts +1 -1
  17. package/lib/types/views/components/PivotSourceList.d.ts +1 -1
  18. package/lib/types/views/components/util.d.ts +1 -1
  19. package/lib/types/views/menu.d.ts +1 -1
  20. package/lib/types/views/widgets/pivot-button.shape.d.ts +2 -2
  21. package/lib/umd/index.js +1 -1
  22. package/lib/umd/locale/en-US.js +1 -0
  23. package/lib/umd/locale/fa-IR.js +1 -0
  24. package/lib/umd/locale/ru-RU.js +1 -0
  25. package/lib/umd/locale/vi-VN.js +1 -0
  26. package/lib/umd/locale/zh-CN.js +1 -0
  27. package/lib/umd/locale/zh-TW.js +1 -0
  28. package/package.json +30 -28
  29. package/lib/cjs/index.js +0 -1
  30. package/lib/locale/en-US.json +0 -100
  31. package/lib/locale/fa-IR.json +0 -100
  32. package/lib/locale/ru-RU.json +0 -100
  33. package/lib/locale/vi-VN.json +0 -100
  34. package/lib/locale/zh-CN.json +0 -100
  35. package/lib/locale/zh-TW.json +0 -100
  36. package/lib/types/commands/commands/add-pivot-field.command.d.ts +0 -3
  37. package/lib/types/commands/commands/add-pivot-table.command.d.ts +0 -3
  38. package/lib/types/commands/commands/move-pivot-field.command.d.ts +0 -3
  39. package/lib/types/commands/commands/pivot-drill-down.command.d.ts +0 -3
  40. package/lib/types/commands/commands/remove-pivot-field.command.d.ts +0 -3
  41. package/lib/types/commands/commands/set-pivot-collapse.command.d.ts +0 -3
  42. package/lib/types/commands/commands/set-pivot-filter.command.d.ts +0 -3
  43. package/lib/types/commands/commands/set-pivot-sort.command.d.ts +0 -3
  44. package/lib/types/commands/commands/update-pivot-setting.command.d.ts +0 -3
  45. package/lib/types/commands/commands/update-pivot-source.command.d.ts +0 -3
  46. package/lib/types/commands/commands/update-value-position.command.d.ts +0 -3
  47. package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +0 -12
  48. package/lib/types/controllers/sheets-pivot-permission.controller.d.ts +0 -7
  49. package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +0 -22
  50. package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +0 -9
  51. package/lib/types/services/sheets-pivot-ui.service.d.ts +0 -45
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IUpdatePivotTableSourceRangeCommandParams } from '../../type';
3
- export declare const UpdatePivotTableSourceRangeCommand: ICommand<IUpdatePivotTableSourceRangeCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IUpdatePivotValuePositionCommandParams } from '../../type';
3
- export declare const UpdatePivotValuePositionCommand: ICommand<IUpdatePivotValuePositionCommandParams>;
@@ -1,12 +0,0 @@
1
- import { Disposable, DisposableCollection, IUniverInstanceService } from '@univerjs/core';
2
- import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
3
- import { SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotClearController extends Disposable {
5
- private readonly _univerInstanceService;
6
- private readonly _sheetInterceptorService;
7
- private readonly _sheetsSelectionsService;
8
- private readonly _sheetsPivotTableConfigModel;
9
- disposableCollection: DisposableCollection;
10
- constructor(_univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _sheetsSelectionsService: SheetsSelectionsService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
11
- private _initClearSelectionCommandInterceptor;
12
- }
@@ -1,7 +0,0 @@
1
- import { Disposable, ICommandService, IPermissionService } from '@univerjs/core';
2
- export declare class SheetsPivotPrintController extends Disposable {
3
- private readonly _permissionService;
4
- private readonly _commandService;
5
- constructor(_permissionService: IPermissionService, _commandService: ICommandService);
6
- private _initPermissionWithPivot;
7
- }
@@ -1,22 +0,0 @@
1
- import { IMutationInfo, Disposable, DisposableCollection, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
2
- import { IMoveRangeCommandParams, RefRangeService, SheetInterceptorService } from '@univerjs/sheets';
3
- import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- import { SheetsPivotTableUIService } from '../services/sheets-pivot-ui.service';
5
- export declare class SheetsPivotRefRangeController extends Disposable {
6
- private readonly _injector;
7
- private readonly _sheetsPivotTableUIService;
8
- private readonly _refRangeService;
9
- private readonly _commandService;
10
- private readonly _univerInstanceService;
11
- private readonly _sheetsPivotTableConfigModel;
12
- private readonly _sheetsPivotTableAdaptorModel;
13
- private readonly _sheetInterceptorService;
14
- disposableCollection: DisposableCollection;
15
- constructor(_injector: Injector, _sheetsPivotTableUIService: SheetsPivotTableUIService, _refRangeService: RefRangeService, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetInterceptorService: SheetInterceptorService);
16
- private _onRefRangeChange;
17
- private _refRangeHandle;
18
- getRefRangeMutationsByMoveRange(params: IMoveRangeCommandParams, unitId: string, subUnitId: string): {
19
- redos: IMutationInfo[];
20
- undos: IMutationInfo[];
21
- };
22
- }
@@ -1,9 +0,0 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
3
- import { SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotRemoveSheetController extends Disposable {
5
- private readonly _sheetInterceptorService;
6
- private readonly _sheetsPivotTableConfigModel;
7
- constructor(_sheetInterceptorService: SheetInterceptorService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
8
- private _initRemoveSheetCommandInterceptor;
9
- }
@@ -1,45 +0,0 @@
1
- import { IMutationInfo, IRange, Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { ISetRangeValuesMutationParams, SheetInterceptorService } from '@univerjs/sheets';
3
- import { PivotView } from '@univerjs-pro/engine-pivot';
4
- import { IPivotCellPositionInfo, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
5
- import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
6
- import { IConfirmService } from '@univerjs/ui';
7
- export declare class SheetsPivotTableUIService extends Disposable {
8
- private readonly _injector;
9
- private readonly _sheetInterceptorService;
10
- private readonly _confirmService;
11
- private readonly _localeService;
12
- private readonly _univerInstanceService;
13
- private readonly _sheetsPivotTableConfigModel;
14
- private readonly _sheetPermissionInterceptorBaseController;
15
- constructor(_injector: Injector, _sheetInterceptorService: SheetInterceptorService, _confirmService: IConfirmService, _localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
16
- confirmCheckByView(cellInfo: IPivotCellPositionInfo, view: PivotView, isEmpty: boolean): Promise<{
17
- perform: boolean;
18
- mutations: import('@univerjs/core').IUndoRedoCommandInfosByInterceptor;
19
- }>;
20
- getEmptyPivotRanges(cellInfo: IPivotCellPositionInfo): {
21
- startRow: number;
22
- endRow: number;
23
- startColumn: number;
24
- endColumn: number;
25
- }[];
26
- getAutoFitColumnsMutations(view: PivotView, cellInfo: IPivotCellPositionInfo): {
27
- undos: IMutationInfo<object>[];
28
- redos: IMutationInfo<object>[];
29
- };
30
- getInsertRowColMutations(view: PivotView, cellInfo: IPivotCellPositionInfo, isEmpty: boolean): {
31
- undos: IMutationInfo<object>[];
32
- redos: IMutationInfo<object>[];
33
- };
34
- generateSetRangeValueMutations(injector: Injector, unitId: string, subUnitId: string, ranges: IRange[]): {
35
- setRangeValueUndoMutation: {
36
- id: string;
37
- params: ISetRangeValuesMutationParams;
38
- };
39
- setRangeValueRedoMutation: {
40
- id: string;
41
- params: ISetRangeValuesMutationParams;
42
- };
43
- shouldClear: boolean;
44
- };
45
- }