@univerjs-pro/sheets-pivot-ui 0.2.12 → 0.2.14

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.
@@ -93,7 +93,8 @@
93
93
  "emptySourceRange": "Data source range is empty",
94
94
  "invalidSize": "Data source range is invalid",
95
95
  "mergeCellError": "Cannot insert merged cells into pivot table",
96
- "editCellError": "Cannot edit cells in pivot table"
96
+ "editCellError": "Cannot edit cells in pivot table",
97
+ "permissionError": "Cannot edit pivot table in a protected sheet"
97
98
  }
98
99
  }
99
100
  }
@@ -93,7 +93,8 @@
93
93
  "emptySourceRange": "Источник данных пуст",
94
94
  "invalidSize": "Недопустимый размер источника данных",
95
95
  "mergeCellError": "Невозможно вставить сводную таблицу в объединенные ячейки",
96
- "editCellError": "Невозможно редактировать ячейки в сводной таблице"
96
+ "editCellError": "Невозможно редактировать ячейки в сводной таблице",
97
+ "permissionError": "Невозможно редактировать сводную таблицу в защищенном листе"
97
98
  }
98
99
  }
99
100
  }
@@ -93,7 +93,8 @@
93
93
  "emptySourceRange": "Vui lòng chọn nguồn dữ liệu",
94
94
  "invalidSize": "Kích thước dữ liệu không hợp lệ",
95
95
  "mergeCellError": "Không thể chèn ô đã gộp vào bảng Pivot",
96
- "editCellError": "Không thể chỉnh sửa ô trong bảng Pivot"
96
+ "editCellError": "Không thể chỉnh sửa ô trong bảng Pivot",
97
+ "permissionError": "Không thể chỉnh sửa bảng Pivot trong bảng đã được bảo vệ"
97
98
  }
98
99
  }
99
100
  }
@@ -93,7 +93,8 @@
93
93
  "emptySourceRange": "数据源范围为空",
94
94
  "invalidSize": "数据源范围不合法",
95
95
  "mergeCellError": "无法在透视表区域添加合并单元格",
96
- "editCellError": "无法编辑透视表中的单元格"
96
+ "editCellError": "无法编辑透视表中的单元格",
97
+ "permissionError": "编辑区域开启了保护,不允许编辑该区域"
97
98
  }
98
99
  }
99
100
  }
@@ -93,7 +93,8 @@
93
93
  "emptySourceRange": "請選擇數據源",
94
94
  "invalidSize": "無效的數據大小",
95
95
  "mergeCellError": "合併單元格無法插入數據透視表",
96
- "editCellError": "無法編輯數據透視表中的單元格"
96
+ "editCellError": "無法編輯數據透視表中的單元格",
97
+ "permissionError": "無法編輯受保護的工作表中的數據透視表"
97
98
  }
98
99
  }
99
100
  }
@@ -1,5 +1,5 @@
1
1
  import { SheetsPivotTableAdaptorModel } from '@univerjs-pro/sheets-pivot';
2
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
+ import { Disposable, ICommandService, Injector, IPermissionService, IUniverInstanceService } from '@univerjs/core';
3
3
  import { SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { IDialogService, IRangeSelectorService, ISidebarService } from '@univerjs/ui';
5
5
  export declare class SheetsPivotTablePanelController extends Disposable {
@@ -10,10 +10,12 @@ export declare class SheetsPivotTablePanelController extends Disposable {
10
10
  private readonly _sidebarService;
11
11
  private _rangeSelectorService;
12
12
  private _dialogService;
13
+ private _injector;
14
+ private _permissionService;
13
15
  private _pivotTableId;
14
16
  private _pivotTablePanelVisible$;
15
17
  pivotTablePanelVisible$: import('rxjs').Observable<boolean>;
16
- constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _dialogService: IDialogService);
18
+ constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _dialogService: IDialogService, _injector: Injector, _permissionService: IPermissionService);
17
19
  private _setPivotTableId;
18
20
  private _initPanelOpen;
19
21
  private _initSheetChange;
@@ -0,0 +1,7 @@
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,6 +1,6 @@
1
- import { Workbook, Disposable, ICommandService, Injector } from '@univerjs/core';
1
+ import { Workbook, Disposable, ICommandService, Injector, IPermissionService } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
- import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
3
+ import { SheetPermissionInterceptorBaseController, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
4
4
  import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
5
5
  import { ComponentManager } from '@univerjs/ui';
6
6
  export declare class SheetsPivotRenderController extends Disposable implements IRenderModule {
@@ -11,8 +11,10 @@ export declare class SheetsPivotRenderController extends Disposable implements I
11
11
  private _componentManager;
12
12
  private readonly _sheetsPivotTableConfigModel;
13
13
  private readonly _commandService;
14
+ private readonly _sheetPermissionInterceptorBaseController;
15
+ private readonly _permissionService;
14
16
  private _pivotButtonShapesArr;
15
- constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _componentManager: ComponentManager, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _commandService: ICommandService);
17
+ constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _componentManager: ComponentManager, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _commandService: ICommandService, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController, _permissionService: IPermissionService);
16
18
  private _initButtonRender;
17
19
  private _initSkeleton;
18
20
  private _initListener;
@@ -94,6 +94,7 @@ declare const locale: {
94
94
  invalidSize: string;
95
95
  mergeCellError: string;
96
96
  editCellError: string;
97
+ permissionError: string;
97
98
  };
98
99
  };
99
100
  };
@@ -9,7 +9,7 @@ export declare class UniverSheetsPivotTableUIPlugin extends Plugin {
9
9
  private readonly _configService;
10
10
  static pluginName: string;
11
11
  static type: UniverInstanceType;
12
- constructor(_config: Partial<IUniverSheetsPivotUIConfig>, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _configService: IConfigService);
12
+ constructor(_config: Partial<IUniverSheetsPivotUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _configService: IConfigService);
13
13
  onStarting(): void;
14
14
  onReady(): void;
15
15
  private _registerRenderModules;
@@ -3,6 +3,7 @@ import { IPivotCellPositionInfo, SheetsPivotTableConfigModel } from '@univerjs-p
3
3
  import { IMutationInfo, IRange, Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
4
4
  import { ISetRangeValuesMutationParams, SheetInterceptorService } from '@univerjs/sheets';
5
5
  import { IConfirmService } from '@univerjs/ui';
6
+ import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
6
7
  export declare class SheetsPivotTableUIService extends Disposable {
7
8
  private readonly _injector;
8
9
  private readonly _sheetInterceptorService;
@@ -10,7 +11,8 @@ export declare class SheetsPivotTableUIService extends Disposable {
10
11
  private readonly _localeService;
11
12
  private readonly _univerInstanceService;
12
13
  private readonly _sheetsPivotTableConfigModel;
13
- constructor(_injector: Injector, _sheetInterceptorService: SheetInterceptorService, _confirmService: IConfirmService, _localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
14
+ private readonly _sheetPermissionInterceptorBaseController;
15
+ constructor(_injector: Injector, _sheetInterceptorService: SheetInterceptorService, _confirmService: IConfirmService, _localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
14
16
  confirmCheckByView(cellInfo: IPivotCellPositionInfo, view: PivotView, isEmpty: boolean): Promise<{
15
17
  perform: boolean;
16
18
  mutations: import('@univerjs/core').IUndoRedoCommandInfosByInterceptor;