@univerjs-pro/sheets-pivot 0.2.7 → 0.2.9
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +0 -1
- package/lib/types/commands/command/util.d.ts +1 -2
- package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/change-apply-util.d.ts +2 -2
- package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/update-field-position.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/update-value-position.mutation.d.ts +0 -1
- package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +0 -1
- package/lib/types/const/const.d.ts +2 -3
- package/lib/types/const/template.d.ts +0 -1
- package/lib/types/const/type.d.ts +16 -5
- package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +0 -1
- package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +0 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/models/sheets-pivot-config-model.d.ts +1 -2
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +5 -4
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +5 -3
- package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +1 -2
- package/lib/types/models/view-util.d.ts +1 -2
- package/lib/types/plugin.d.ts +0 -2
- package/lib/types/services/sheets-pivot-rpc.service.d.ts +0 -1
- package/lib/types/services/sheets-pivot-table.service.d.ts +0 -1
- package/lib/types/util.d.ts +1 -2
- package/lib/umd/index.js +1 -1
- package/package.json +12 -13
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IPivotTableChangeSet } from '@univerjs-pro/pivot
|
|
1
|
+
import { IPivotTableChangeSet } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { ICommandService, IMutationInfo } from '@univerjs/core';
|
|
3
|
-
|
|
4
3
|
interface IPivotHostInfo {
|
|
5
4
|
pivotTableId: string;
|
|
6
5
|
unitId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IPivotTableSnapshot } from '@univerjs-pro/pivot
|
|
1
|
+
import { IPivotTableSnapshot, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { IAddPivotFieldMutationParams, IRemovePivotFieldMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams } from '../../const/type';
|
|
3
|
-
|
|
3
|
+
export declare function getFieldListByArea(config: IPivotTableSnapshot, area: PivotTableFiledAreaEnum): string[];
|
|
4
4
|
export declare function applyAddFieldChangeSet(config: IPivotTableSnapshot, change: IAddPivotFieldMutationParams): void;
|
|
5
5
|
export declare function applyRemoveFieldChangeSet(config: IPivotTableSnapshot, change: IRemovePivotFieldMutationParams): void;
|
|
6
6
|
export declare function applyRenameFieldChangeSet(config: IPivotTableSnapshot, change: IRenamePivotFieldMutationParams): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMutation } from '@univerjs/core';
|
|
2
|
-
import { IGetPivotDataLocalMutationParams, ISendInitPivotTextLocalMutationParams, ISendPivotDataLocalMutationParams, ISendPivotViewLocalMutationParams } from '../../const/type';
|
|
3
|
-
|
|
2
|
+
import { IGetPivotDataLocalMutationParams, ISendInitPivotTextLocalMutationParams, ISendPivotConfigLocalMutationParams, ISendPivotDataLocalMutationParams, ISendPivotViewLocalMutationParams } from '../../const/type';
|
|
4
3
|
export declare const GetPivotDataLocalMutation: IMutation<IGetPivotDataLocalMutationParams>;
|
|
5
4
|
export declare const SendPivotDataLocalMutation: IMutation<ISendPivotDataLocalMutationParams>;
|
|
6
5
|
export declare const SendPivotViewLocalMutation: IMutation<ISendPivotViewLocalMutationParams>;
|
|
6
|
+
export declare const SendPivotConfigLocalMutation: IMutation<ISendPivotConfigLocalMutationParams>;
|
|
7
7
|
export declare const SendInitPivotTextLocalMutation: IMutation<ISendInitPivotTextLocalMutationParams>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/pivot
|
|
1
|
+
import { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { Injector, IRange } from '@univerjs/core';
|
|
3
3
|
import { default as zhCN } from '../locale/zh-CN';
|
|
4
4
|
import { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
|
|
5
|
-
|
|
6
5
|
export declare const SHEET_PIVOT_TABLE_PLUGIN = "SHEET_PIVOT_TABLE_PLUGIN";
|
|
7
6
|
export declare const BLANK_ROW_COUNT = 1;
|
|
8
7
|
export declare const BLANK_COL_COUNT = 1;
|
|
@@ -46,7 +45,7 @@ export declare const defaultEmptyPivotDataCellStyle: {
|
|
|
46
45
|
export declare const defaultThemeStyle: IThemeStyle;
|
|
47
46
|
export declare const generatorAdjustPositionData: (injector: Injector, data: PivotView, pivotTableConfig: IPivotTableConfig, textInfo: Record<string, string>) => IAdjustPivotTableRes;
|
|
48
47
|
export declare function transFromCellValue(cellData: IPivotViewCellData, isValue: boolean, format: string | undefined, textInfo: Record<string, string>): IPivotViewValueType;
|
|
49
|
-
export declare function transformErrorValue(value: IPivotViewValueType): string | number | import('@univerjs-pro/pivot
|
|
48
|
+
export declare function transformErrorValue(value: IPivotViewValueType): string | number | import('@univerjs-pro/engine-pivot').IPivotViewPrefixValue | undefined;
|
|
50
49
|
export declare function getAdjustRangesPosition(startCell: {
|
|
51
50
|
row: number;
|
|
52
51
|
col: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/pivot
|
|
1
|
+
import { IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { CellValueType, ICellData, IRange, IStyleData, IUnitRangeName, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
3
|
import { PivotDisplayDataType, PositionType } from './const';
|
|
4
|
-
|
|
5
4
|
export interface IPivotTableConfigChangeInfo {
|
|
6
5
|
unitId: string;
|
|
7
6
|
subUnitId: string;
|
|
@@ -11,7 +10,8 @@ export interface IPivotTableConfigChangeInfo {
|
|
|
11
10
|
}
|
|
12
11
|
export declare enum CollectionChangeEnum {
|
|
13
12
|
add = "add",
|
|
14
|
-
delete = "delete"
|
|
13
|
+
delete = "delete",
|
|
14
|
+
update = "update"
|
|
15
15
|
}
|
|
16
16
|
export type IUnitRangeNameWithSubUnitId = IUnitRangeName & {
|
|
17
17
|
subUnitId: string;
|
|
@@ -23,13 +23,15 @@ export interface ICollectionChangeInfo {
|
|
|
23
23
|
unitId?: string;
|
|
24
24
|
subUnitId?: string;
|
|
25
25
|
targetCellInfo?: IPivotCellPositionInfo;
|
|
26
|
+
oldSourceRangeInfo?: IUnitRangeNameWithSubUnitId;
|
|
26
27
|
}
|
|
27
28
|
export interface IAddPivotTableParams {
|
|
28
29
|
pivotTableConfig: IPivotTableConfig;
|
|
29
30
|
}
|
|
30
31
|
export interface IAddPivotTableCommandParams {
|
|
31
32
|
positionType: PositionType;
|
|
32
|
-
|
|
33
|
+
pivotTableId?: string;
|
|
34
|
+
pivotTableConfig: Omit<IPivotTableConfig, 'fieldsConfig'>;
|
|
33
35
|
}
|
|
34
36
|
export interface IUpdatePivotTableSourceRangeMutationParams {
|
|
35
37
|
pivotTableId: string;
|
|
@@ -283,7 +285,7 @@ export interface IGetPivotPanelDataParams {
|
|
|
283
285
|
pivotTableId: string;
|
|
284
286
|
}
|
|
285
287
|
export interface IGetAddPivotFieldDataParams {
|
|
286
|
-
|
|
288
|
+
dataFieldId: string;
|
|
287
289
|
fieldArea: PivotTableFiledAreaEnum;
|
|
288
290
|
index: number;
|
|
289
291
|
}
|
|
@@ -417,6 +419,14 @@ export interface ISendPivotViewLocalMutationParams {
|
|
|
417
419
|
batch?: ISendPivotViewItemLocalParams[];
|
|
418
420
|
collectionConfig?: Record<string, IDataFieldManagerJSON>;
|
|
419
421
|
}
|
|
422
|
+
export interface ISendPivotConfigLocalMutationParams {
|
|
423
|
+
unitId: string;
|
|
424
|
+
subUnitId: string;
|
|
425
|
+
oldSubUnitId: string;
|
|
426
|
+
pivotTableId: string;
|
|
427
|
+
pivotTableConfig: IPivotTableConfig;
|
|
428
|
+
collectionConfig: IDataFieldManagerJSON;
|
|
429
|
+
}
|
|
420
430
|
export interface ISendInitPivotTextLocalMutationParams {
|
|
421
431
|
textInfo: Record<string, string>;
|
|
422
432
|
}
|
|
@@ -476,6 +486,7 @@ export interface IPivotFieldConfig {
|
|
|
476
486
|
export interface IValueFieldConfig {
|
|
477
487
|
field: number;
|
|
478
488
|
subTotalType?: PivotSubtotalTypeEnum;
|
|
489
|
+
formatString?: string;
|
|
479
490
|
}
|
|
480
491
|
export interface IAddPivotTableWithConfigCommandParams {
|
|
481
492
|
sourceDataInfo: {
|
|
@@ -2,7 +2,6 @@ import { Disposable, ICommandService, IConfigService } from '@univerjs/core';
|
|
|
2
2
|
import { IAllRuntimeData, IFeatureDirtyRangeType, IRuntimeUnitDataType, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
|
|
3
3
|
import { SheetsPivotDataSourceModel } from '../models/sheets-pivot-data-source-model';
|
|
4
4
|
import { ICurrentDataMatrix, IPivotCellPositionInfo, IUnitRangeNameWithSubUnitId } from '../const/type';
|
|
5
|
-
|
|
6
5
|
interface IPivotDirtyViewInfo {
|
|
7
6
|
unitId: string;
|
|
8
7
|
subUnitId: string;
|
|
@@ -3,7 +3,6 @@ import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
|
|
|
3
3
|
import { SheetsPivotRPCService } from '../services/sheets-pivot-rpc.service';
|
|
4
4
|
import { SheetsPivotTableAdaptorModel } from '../models/sheets-pivot-table-adaptor-model';
|
|
5
5
|
import { SheetsPivotTableConfigModel } from '../models/sheets-pivot-config-model';
|
|
6
|
-
|
|
7
6
|
export declare class SheetsPivotRPCController extends Disposable {
|
|
8
7
|
private readonly _commandService;
|
|
9
8
|
private readonly _sheetsPivotRpcService;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -26,3 +26,4 @@ export { SheetsPivotTableAdaptorModel } from './models/sheets-pivot-table-adapto
|
|
|
26
26
|
export { getPivotCellInfo, getPivotTableInfo } from './util';
|
|
27
27
|
export { defaultThemeStyle, transFromCellValue } from './const/const';
|
|
28
28
|
export { applyChangeSet } from './commands/command/util';
|
|
29
|
+
export { getFieldListByArea } from './commands/mutations/change-apply-util';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Nullable, ObjectMatrix, Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IDataFieldManagerJSON, IPivotRangesInfo, IPivotTableCellData, IPivotTableConfig, IPivotTableMatrixInfo, IPivotTableRangeInfo } from '../const/type';
|
|
3
|
-
|
|
4
3
|
export declare class SheetsPivotTableConfigModel extends Disposable {
|
|
5
4
|
private _injector;
|
|
6
5
|
private _commandService;
|
|
@@ -31,7 +30,7 @@ export declare class SheetsPivotTableConfigModel extends Disposable {
|
|
|
31
30
|
getTargetByPivotId(unitId: string, subUnitId: string, pivotTableId: string): import('../const/type').IPivotCellPositionInfo | undefined;
|
|
32
31
|
getSubUnitPivotConfigs(unitId: string, subUnitId: string): Map<string, IPivotTableConfig> | undefined;
|
|
33
32
|
updateConfigCache(unitId: string, subUnitId: string, pivotTableId: string, pivotTableConfig: Nullable<IPivotTableConfig>): void;
|
|
34
|
-
getCollection(unitId: string, pivotTableId: string): import('@univerjs-pro/pivot
|
|
33
|
+
getCollection(unitId: string, pivotTableId: string): import('@univerjs-pro/engine-pivot').IFieldsCollectionJSON | undefined;
|
|
35
34
|
updateCollectionConfig(unitId: string, collectionConfig: IDataFieldManagerJSON): void;
|
|
36
35
|
private _ensurePivotMap;
|
|
37
36
|
private _ensurePivotTableRangeInfo;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ICellData, IRange, IUnitRangeName, IUniverInstanceService, Nullable, ObjectMatrix, Styles, Worksheet } from '@univerjs/core';
|
|
2
|
-
import { IDataFieldValue, IFieldsCollectionJSON, DataField, DataFieldManager, FieldsCollection } from '@univerjs-pro/pivot
|
|
2
|
+
import { IDataFieldValue, IFieldsCollectionJSON, DataField, DataFieldManager, FieldsCollection } from '@univerjs-pro/engine-pivot';
|
|
3
3
|
import { IRuntimeUnitDataType } from '@univerjs/engine-formula';
|
|
4
4
|
import { ICurrentDataMatrix, IDataFieldManagerJSON, IPivotCellPositionInfo, IUnitRangeNameWithSubUnitId } from '../const/type';
|
|
5
5
|
import { SheetsPivotDataSourceModel } from './sheets-pivot-data-source-model';
|
|
6
|
-
|
|
7
6
|
interface IFeatureDirtyRangeType {
|
|
8
7
|
[unitId: string]: Nullable<{
|
|
9
8
|
[sheetId: string]: IRange[];
|
|
@@ -18,12 +17,13 @@ export declare class SheetsPivotDataFieldManager extends DataFieldManager {
|
|
|
18
17
|
_host: SheetsPivotDataSourceModel;
|
|
19
18
|
constructor(host: SheetsPivotDataSourceModel, univerInstanceService: IUniverInstanceService);
|
|
20
19
|
initDataRanges(): void;
|
|
21
|
-
getAutoDisplayNameFunction(): (baseName: string, subtotalType: import('@univerjs-pro/pivot
|
|
20
|
+
getAutoDisplayNameFunction(): (baseName: string, subtotalType: import('@univerjs-pro/engine-pivot').PivotSubtotalTypeEnum) => string;
|
|
22
21
|
deleteDataField(dataFieldId: string): void;
|
|
23
22
|
removeCollectionImp(token: string): void;
|
|
24
23
|
getRangeKey(rangeInfo: IUnitRangeName, colIndex: number): string;
|
|
25
24
|
getDataFieldByRangeKey(rangeKey: string): DataField;
|
|
26
25
|
setRangeKeyMap(rangeKey: string, dataFieldId: string): void;
|
|
26
|
+
updateRangeKeyMap(oldRangeKey: string, newRangeKey: string): void;
|
|
27
27
|
addCollectionByJSON(token: string, collectionJSON: IFieldsCollectionJSON, sourceRangeInfo: IUnitRangeNameWithSubUnitId, targetCellInfo: IPivotCellPositionInfo): {
|
|
28
28
|
collection: FieldsCollection;
|
|
29
29
|
updateDataFieldList: {
|
|
@@ -53,6 +53,7 @@ export declare class SheetsPivotDataFieldManager extends DataFieldManager {
|
|
|
53
53
|
uniqueDataFieldName(name: IDataFieldValue, colIndex: number): string;
|
|
54
54
|
getCollection(token: string): FieldsCollection;
|
|
55
55
|
addCollection(token: string, collection: FieldsCollection, sourceRangeInfo: IUnitRangeNameWithSubUnitId, targetCellInfo: IPivotCellPositionInfo): void;
|
|
56
|
+
handleMoveRange(token: string, sourceRangeInfo: IUnitRangeNameWithSubUnitId): void;
|
|
56
57
|
getPivotDirtyViewInfo(): {
|
|
57
58
|
runtimeCellData: IRuntimeUnitDataType;
|
|
58
59
|
dirtyRanges: IFeatureDirtyRangeType;
|
|
@@ -90,7 +91,7 @@ export declare class SheetsPivotDataFieldManager extends DataFieldManager {
|
|
|
90
91
|
adjustSheetCellData(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): IDataFieldValue;
|
|
91
92
|
getRangeData(dataRangeInfo: IUnitRangeName): {
|
|
92
93
|
header: (string | null)[];
|
|
93
|
-
data: (string | number | boolean | import('@univerjs-pro/pivot
|
|
94
|
+
data: (string | number | boolean | import('@univerjs-pro/engine-pivot').IDateValue | null | undefined)[][];
|
|
94
95
|
};
|
|
95
96
|
toJSON(): IDataFieldManagerJSON;
|
|
96
97
|
fromJSON(jsonData: IDataFieldManagerJSON): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IUnitRangeName, Nullable, Disposable, ICommandService, IConfigService, Injector, IResourceManagerService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
|
|
2
|
-
import { DataField, FieldsCollection, IFieldsCollectionJSON, IPivotTableSnapshot, PivotView, PivotTable } from '@univerjs-pro/pivot
|
|
3
|
-
import {
|
|
2
|
+
import { DataField, FieldsCollection, IFieldsCollectionJSON, IPivotTableSnapshot, PivotView, PivotTable } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import { IMoveRangeMutationParams } from '@univerjs/sheets';
|
|
4
|
+
import { ICollectionChangeInfo, IDataFieldManagerJSON, IPivotCellPositionInfo, IPivotMutationDirtyViewInfo, IPivotTableConfig, IPivotTableJson, IPivotWorkerItemCache, ISendPivotConfigLocalMutationParams, IUnitRangeNameWithSubUnitId, PivotTableOperationEnum } from '../const/type';
|
|
4
5
|
import { SheetsPivotDataFieldManager } from './sheets-pivot-data-field-manager';
|
|
5
6
|
import { IViewTranslateCtx } from './view-util';
|
|
6
|
-
|
|
7
7
|
export declare class SheetsPivotDataSourceModel extends Disposable {
|
|
8
8
|
private readonly _injector;
|
|
9
9
|
private readonly _univerInstanceService;
|
|
@@ -61,6 +61,7 @@ export declare class SheetsPivotDataSourceModel extends Disposable {
|
|
|
61
61
|
'sheets-pivot.emptyPivot.values': string;
|
|
62
62
|
};
|
|
63
63
|
setTextInfo(textInfo: Record<string, string>): void;
|
|
64
|
+
handleMoveRange(params: IMoveRangeMutationParams): void;
|
|
64
65
|
broadcastCollectionChange(info: ICollectionChangeInfo): void;
|
|
65
66
|
getDataFieldManager(unitId: string): SheetsPivotDataFieldManager;
|
|
66
67
|
getCollection(unitId: string, token: string): FieldsCollection;
|
|
@@ -71,6 +72,7 @@ export declare class SheetsPivotDataSourceModel extends Disposable {
|
|
|
71
72
|
private _updatePivotTableInstanceCache;
|
|
72
73
|
private _deletePivotTableInstanceCache;
|
|
73
74
|
private _ensureViewDataMap;
|
|
75
|
+
updateConfig(info: ISendPivotConfigLocalMutationParams): void;
|
|
74
76
|
updateView(unitId: string, subUnitId: string, type: PivotTableOperationEnum, pivotTableId: string, view: Nullable<PivotView>, pivotConfig: Nullable<IPivotTableConfig>, collectionConfig?: IDataFieldManagerJSON, ignoreDirty?: boolean): void;
|
|
75
77
|
/**
|
|
76
78
|
* - the function is used to save the dirty view data and range for formula calculation
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Nullable, Disposable, Injector, IUniverInstanceService, LocaleService, ObjectMatrix } from '@univerjs/core';
|
|
2
2
|
import { IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfigChangeInfo, PivotTableOperationEnum } from '../const/type';
|
|
3
3
|
import { SheetsPivotTableConfigModel } from './sheets-pivot-config-model';
|
|
4
|
-
|
|
5
4
|
export declare class SheetsPivotTableAdaptorModel extends Disposable {
|
|
6
5
|
private _localeService;
|
|
7
6
|
private _injector;
|
|
@@ -35,7 +34,7 @@ export declare class SheetsPivotTableAdaptorModel extends Disposable {
|
|
|
35
34
|
private _ensurePivotItemRenderInfoCache;
|
|
36
35
|
private _ensurePivotItemRenderValueMatrixCache;
|
|
37
36
|
getPivotTableCellData(unitId: string, subUnitId: string, row: number, col: number): IPivotTableCellData | undefined;
|
|
38
|
-
getPivotTableIdByCell(unitId: string, subUnitId: string,
|
|
37
|
+
getPivotTableIdByCell(unitId: string, subUnitId: string, row: number, col: number): string | undefined;
|
|
39
38
|
getSubUnitPivotMatrix(unitId: string, subUnitId: string): ObjectMatrix<Nullable<IPivotTableCellData>>;
|
|
40
39
|
getPivotItemRenderInfoCache(unitId: string, subUnitId: string, pivotTableId: string): IPivotRenderCache | undefined;
|
|
41
40
|
deleteUnitId(unitId: string): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { PivotView } from '@univerjs-pro/pivot
|
|
1
|
+
import { PivotView } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
3
|
import { IPivotCellPositionInfo, IPivotRangesInfo, IPivotTableCellData } from '../const/type';
|
|
4
|
-
|
|
5
4
|
export interface IViewTranslateCtx {
|
|
6
5
|
view: Nullable<PivotView>;
|
|
7
6
|
pivotTableId: string;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { DataSyncPrimaryController } from '@univerjs/rpc';
|
|
3
3
|
import { IUniverSheetsConfig } from '@univerjs/sheets';
|
|
4
|
-
|
|
5
4
|
interface IUniverSheetsPivotConfig extends IUniverSheetsConfig {
|
|
6
|
-
isServer?: boolean;
|
|
7
5
|
}
|
|
8
6
|
export declare class UniverSheetsPivotTablePlugin extends Plugin {
|
|
9
7
|
private _config;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
2
2
|
import { IGetPivotDataLocalMutationParams, ISendPivotDataLocalMutationParams } from '../const/type';
|
|
3
|
-
|
|
4
3
|
export declare class SheetsPivotRPCService extends Disposable {
|
|
5
4
|
private readonly _injector;
|
|
6
5
|
private readonly _commandService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
2
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
3
|
import { SheetsPivotTableAdaptorModel } from '../models/sheets-pivot-table-adaptor-model';
|
|
4
|
-
|
|
5
4
|
export declare class SheetsPivotTableService extends Disposable {
|
|
6
5
|
private _sheetInterceptorService;
|
|
7
6
|
private _sheetsPivotTableAdaptorModel;
|
package/lib/types/util.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Injector, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
2
|
-
import { ILabelViewHeaderMapItem, IPivotViewInfo, PivotTable, PivotSubtotalTypeEnum } from '@univerjs-pro/pivot
|
|
2
|
+
import { ILabelViewHeaderMapItem, IPivotViewInfo, PivotTable, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
3
3
|
import { IPivotPanelDataInfo, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig } from './const/type';
|
|
4
4
|
import { SheetsPivotDataSourceModel } from './models/sheets-pivot-data-source-model';
|
|
5
|
-
|
|
6
5
|
export declare const generateDefaultEmptyCache: (textOptions: {
|
|
7
6
|
filter: string;
|
|
8
7
|
row: string;
|