@univerjs-pro/sheets-pivot 0.17.0 → 0.18.0

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 (133) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/types/commands/command/add-pivot-field.command.d.ts +2 -2
  44. package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +2 -2
  45. package/lib/types/commands/command/add-pivot-table.command.d.ts +2 -2
  46. package/lib/types/commands/command/move-pivot-field.command.d.ts +2 -2
  47. package/lib/types/commands/command/move-pivot-table.command.d.ts +1 -1
  48. package/lib/types/commands/command/pivot-drill-down.command.d.ts +1 -1
  49. package/lib/types/commands/command/remove-pivot-field.command.d.ts +1 -1
  50. package/lib/types/commands/command/reset-pivot-fields-config.command.d.ts +2 -2
  51. package/lib/types/commands/command/set-pivot-collapse.command.d.ts +1 -1
  52. package/lib/types/commands/command/set-pivot-fields-config.command.d.ts +2 -2
  53. package/lib/types/commands/command/set-pivot-filter.command.d.ts +1 -1
  54. package/lib/types/commands/command/set-pivot-sort.command.d.ts +2 -2
  55. package/lib/types/commands/command/set-pivot-value-filter.command.d.ts +2 -2
  56. package/lib/types/commands/command/update-date-group.command.d.ts +2 -2
  57. package/lib/types/commands/command/update-pivot-setting.command.d.ts +3 -3
  58. package/lib/types/commands/command/update-pivot-source.command.d.ts +2 -2
  59. package/lib/types/commands/command/update-value-position.command.d.ts +2 -2
  60. package/lib/types/commands/command/util.d.ts +4 -4
  61. package/lib/types/commands/mutations/add-group-collection.mutation.d.ts +2 -2
  62. package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +2 -2
  63. package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +2 -2
  64. package/lib/types/commands/mutations/change-apply-util.d.ts +3 -2
  65. package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +2 -2
  66. package/lib/types/commands/mutations/remove-group-collection.mutation.d.ts +2 -2
  67. package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +2 -2
  68. package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +2 -2
  69. package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +2 -2
  70. package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +2 -2
  71. package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +2 -2
  72. package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +2 -2
  73. package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +2 -2
  74. package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +2 -2
  75. package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +2 -2
  76. package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +2 -2
  77. package/lib/types/commands/mutations/set-pivot-value-filter.mutation.d.ts +2 -2
  78. package/lib/types/commands/mutations/update-date-group.mutation.d.ts +2 -2
  79. package/lib/types/commands/mutations/update-field-position.mutation.d.ts +2 -2
  80. package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +2 -2
  81. package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +2 -2
  82. package/lib/types/commands/mutations/update-value-position.mutation.d.ts +2 -2
  83. package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +2 -2
  84. package/lib/types/const/const.d.ts +5 -5
  85. package/lib/types/const/template.d.ts +1 -1
  86. package/lib/types/const/type.d.ts +5 -5
  87. package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +3 -2
  88. package/lib/types/controllers/sheets-pivot-interceptor.controller.d.ts +4 -3
  89. package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +4 -2
  90. package/lib/types/facade/f-event.d.ts +3 -2
  91. package/lib/types/facade/f-generic-pivot-table.d.ts +4 -3
  92. package/lib/types/facade/f-pivot-table.d.ts +4 -3
  93. package/lib/types/facade/f-univer.d.ts +3 -3
  94. package/lib/types/facade/f-workbook.d.ts +2 -2
  95. package/lib/types/facade/type.d.ts +1 -1
  96. package/lib/types/facade/util.d.ts +2 -2
  97. package/lib/types/locale/ca-ES.d.ts +1 -1
  98. package/lib/types/locale/es-ES.d.ts +1 -1
  99. package/lib/types/locale/fa-IR.d.ts +1 -1
  100. package/lib/types/locale/fr-FR.d.ts +1 -1
  101. package/lib/types/locale/ja-JP.d.ts +1 -1
  102. package/lib/types/locale/ko-KR.d.ts +1 -1
  103. package/lib/types/locale/ru-RU.d.ts +1 -1
  104. package/lib/types/locale/sk-SK.d.ts +1 -1
  105. package/lib/types/locale/vi-VN.d.ts +1 -1
  106. package/lib/types/locale/zh-CN.d.ts +1 -1
  107. package/lib/types/locale/zh-TW.d.ts +1 -1
  108. package/lib/types/models/sheets-pivot-config-model.d.ts +7 -6
  109. package/lib/types/models/sheets-pivot-data-field-manager.d.ts +6 -5
  110. package/lib/types/models/sheets-pivot-data-source-model.d.ts +11 -8
  111. package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +5 -4
  112. package/lib/types/models/view-util.d.ts +4 -3
  113. package/lib/types/plugin.d.ts +1 -1
  114. package/lib/types/services/sheets-pivot-rpc.service.d.ts +1 -1
  115. package/lib/types/services/sheets-pivot-table.service.d.ts +4 -4
  116. package/lib/types/util.d.ts +6 -4
  117. package/lib/umd/facade.js +1 -1
  118. package/lib/umd/index.js +1 -1
  119. package/lib/umd/locale/ca-ES.js +1 -1
  120. package/lib/umd/locale/en-US.js +1 -1
  121. package/lib/umd/locale/es-ES.js +1 -1
  122. package/lib/umd/locale/fa-IR.js +1 -1
  123. package/lib/umd/locale/fr-FR.js +1 -1
  124. package/lib/umd/locale/ja-JP.js +1 -1
  125. package/lib/umd/locale/ko-KR.js +1 -1
  126. package/lib/umd/locale/ru-RU.js +1 -1
  127. package/lib/umd/locale/sk-SK.js +1 -1
  128. package/lib/umd/locale/vi-VN.js +1 -1
  129. package/lib/umd/locale/zh-CN.js +1 -1
  130. package/lib/umd/locale/zh-TW.js +1 -1
  131. package/package.json +14 -13
  132. package/lib/types/license/encrypted-func.d.ts +0 -1
  133. package/lib/types/license/reverse-mapping.d.ts +0 -65
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IRenamePivotFieldMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IRenamePivotFieldMutationParams } from '../../const/type';
3
3
  export declare const RenamePivotFieldMutation: IMutation<IRenamePivotFieldMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotCollapseMutation } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotCollapseMutation } from '../../const/type';
3
3
  export declare const SetPivotCollapseMutation: IMutation<ISetPivotCollapseMutation>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotFieldFormatMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotFieldFormatMutationParams } from '../../const/type';
3
3
  export declare const SetPivotFieldFormatMutation: IMutation<ISetPivotFieldFormatMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotFilterMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotFilterMutationParams } from '../../const/type';
3
3
  export declare const SetPivotFilterMutation: IMutation<ISetPivotFilterMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotOptionMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotOptionMutationParams } from '../../const/type';
3
3
  export declare const SetPivotOptionMutation: IMutation<ISetPivotOptionMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotPositionMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotPositionMutationParams } from '../../const/type';
3
3
  export declare const SetPivotPositionMutation: IMutation<ISetPivotPositionMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotSortMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotSortMutationParams } from '../../const/type';
3
3
  export declare const SetPivotSortMutation: IMutation<ISetPivotSortMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotSubtotalTypeMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotSubtotalTypeMutationParams } from '../../const/type';
3
3
  export declare const SetPivotSubtotalTypeMutation: IMutation<ISetPivotSubtotalTypeMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotValueFilterMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISetPivotValueFilterMutationParams } from '../../const/type';
3
3
  export declare const SetPivotValueFilterMutation: IMutation<ISetPivotValueFilterMutationParams>;
@@ -1,5 +1,5 @@
1
- import { PivotDateGroupFieldDateTypeEnum } from '@univerjs-pro/engine-pivot';
2
- import { IMutation } from '@univerjs/core';
1
+ import type { PivotDateGroupFieldDateTypeEnum } from '@univerjs-pro/engine-pivot';
2
+ import type { IMutation } from '@univerjs/core';
3
3
  interface IUpdateDateGroupMutationParams {
4
4
  unitId: string;
5
5
  subUnitId: string;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdateFieldPositionMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IUpdateFieldPositionMutationParams } from '../../const/type';
3
3
  export declare const UpdateFieldPositionMutation: IMutation<IUpdateFieldPositionMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdatePivotFieldSourceInfoMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IUpdatePivotFieldSourceInfoMutationParams } from '../../const/type';
3
3
  export declare const UpdatePivotFieldSourceInfoMutation: IMutation<IUpdatePivotFieldSourceInfoMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdatePivotTableSourceRangeMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IUpdatePivotTableSourceRangeMutationParams } from '../../const/type';
3
3
  export declare const UpdatePivotTableSourceRangeMutation: IMutation<IUpdatePivotTableSourceRangeMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdateValuePositionMutationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IUpdateValuePositionMutationParams } from '../../const/type';
3
3
  export declare const UpdateValuePositionMutation: IMutation<IUpdateValuePositionMutationParams>;
@@ -1,3 +1,3 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IPivotTableViewDirtyMarkOperationParams } from '../../const/type';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IPivotTableViewDirtyMarkOperationParams } from '../../const/type';
3
3
  export declare const PivotTableViewDirtyMarkOperation: IMutation<IPivotTableViewDirtyMarkOperationParams>;
@@ -1,7 +1,7 @@
1
- import { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
2
- import { Injector, IRange } from '@univerjs/core';
3
- import { default as zhCN } from '../locale/zh-CN';
4
- import { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
1
+ import type { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
2
+ import type { Injector, IRange } from '@univerjs/core';
3
+ import type zhCN from '../locale/zh-CN';
4
+ import type { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
5
5
  export declare const BUILD_TIMESTAMP: number;
6
6
  export declare const PIVOT_ICON_OFFSET = 16;
7
7
  export declare const DEFAULT_PIVOT_NUMBER = 1;
@@ -59,7 +59,7 @@ export declare const defaultEmptyPivotDataCellStyle: {
59
59
  export declare const defaultThemeStyle: IThemeStyle;
60
60
  export declare const generatorAdjustPositionData: (injector: Injector, data: PivotView, pivotTableConfig: IPivotTableConfig, textInfo: Record<string, string>) => IAdjustPivotTableRes;
61
61
  export declare function transFromCellValue(cellData: IPivotViewCellData, isValue: boolean, format: string | undefined, textInfo: Record<string, string>): IPivotViewValueType;
62
- export declare function transformErrorValue(value: IPivotViewValueType): string | number | import('@univerjs-pro/engine-pivot').IPivotViewPrefixValue | undefined;
62
+ export declare function transformErrorValue(value: IPivotViewValueType): string | number | import("@univerjs-pro/engine-pivot").IPivotViewPrefixValue | undefined;
63
63
  export declare function getAdjustRangesPosition(startCell: {
64
64
  row: number;
65
65
  col: number;
@@ -1,4 +1,4 @@
1
- import { IStyleData } from '@univerjs/core';
1
+ import type { IStyleData } from '@univerjs/core';
2
2
  export declare const template: {
3
3
  pageView: {
4
4
  rowCount: number;
@@ -1,14 +1,14 @@
1
- import { DataField, FieldsCollection, IBaseGroupFieldJSON, IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
2
- import { CellValueType, ICellData, IRange, IStyleData, IUndoRedoCommandInfosByInterceptor, IUnitRangeName, Nullable, ObjectMatrix } from '@univerjs/core';
3
- import { PivotDisplayDataType, PositionType } from './const';
1
+ import type { DataField, FieldsCollection, IBaseGroupFieldJSON, IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
2
+ import type { CellValueType, ICellData, IRange, IStyleData, IUndoRedoCommandInfosByInterceptor, IUnitRangeName, Nullable, ObjectMatrix } from '@univerjs/core';
3
+ import type { PivotDisplayDataType, PositionType } from './const';
4
4
  export interface IPivotPerformCheckParams {
5
5
  cellInfo: IPivotCellPositionInfo;
6
6
  view: PivotView;
7
7
  isEmpty: boolean;
8
8
  }
9
9
  export type IPivotGeneratedMutationsParams = IPivotPerformCheckParams;
10
- export declare const PIVOT_PERFORM_CHECK: import('@univerjs/core').IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
11
- export declare const PIVOT_MUTATION_GENERATE: import('@univerjs/core').IInterceptor<IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
10
+ export declare const PIVOT_PERFORM_CHECK: import("@univerjs/core").IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
11
+ export declare const PIVOT_MUTATION_GENERATE: import("@univerjs/core").IInterceptor<IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
12
12
  export interface IPivotTableConfigChangeInfo {
13
13
  unitId: string;
14
14
  subUnitId: string;
@@ -1,6 +1,7 @@
1
- import { IAllRuntimeData, IFeatureDirtyRangeType, IRuntimeUnitDataType, GlobalComputingStatusService, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
2
- import { ICurrentDataMatrix, IPivotCellPositionInfo, IUnitRangeNameWithSubUnitId } from '../const/type';
1
+ import type { IAllRuntimeData, IFeatureDirtyRangeType, IRuntimeUnitDataType } from '@univerjs/engine-formula';
2
+ import type { ICurrentDataMatrix, IPivotCellPositionInfo, IUnitRangeNameWithSubUnitId } from '../const/type';
3
3
  import { Disposable, ICommandService, Injector } from '@univerjs/core';
4
+ import { GlobalComputingStatusService, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
4
5
  import { SheetsPivotDataSourceModel } from '../models/sheets-pivot-data-source-model';
5
6
  interface IPivotDirtyViewInfo {
6
7
  unitId: string;
@@ -1,6 +1,7 @@
1
- import { PivotView } from '@univerjs-pro/engine-pivot';
2
- import { IMutationInfo, Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
3
- import { IPivotCellPositionInfo } from '../const/type';
1
+ import type { PivotView } from '@univerjs-pro/engine-pivot';
2
+ import type { IMutationInfo } from '@univerjs/core';
3
+ import type { IPivotCellPositionInfo } from '../const/type';
4
+ import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
4
5
  import { SheetInterceptorService } from '@univerjs/sheets';
5
6
  import { SheetsPivotTableConfigModel } from '../models/sheets-pivot-config-model';
6
7
  import { SheetsPivotTableService } from '../services/sheets-pivot-table.service';
@@ -1,5 +1,7 @@
1
- import { IMutationInfo, Disposable, DisposableCollection, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
2
- import { IMoveRangeCommandParams, RefRangeService, SheetInterceptorService } from '@univerjs/sheets';
1
+ import type { IMutationInfo } from '@univerjs/core';
2
+ import type { IMoveRangeCommandParams } from '@univerjs/sheets';
3
+ import { Disposable, DisposableCollection, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
4
+ import { RefRangeService, SheetInterceptorService } from '@univerjs/sheets';
3
5
  import { SheetsPivotTableConfigModel } from '../models/sheets-pivot-config-model';
4
6
  import { SheetsPivotTableAdaptorModel } from '../models/sheets-pivot-table-adaptor-model';
5
7
  export declare class SheetsPivotRefRangeController extends Disposable {
@@ -1,5 +1,6 @@
1
- import { IAddPivotFieldCommandParams, IMovePivotFieldCommandParams, IPivotTableAddedEventParams, IPivotTableMovedEventParams, IPivotTableRemovedEventParams, IPivotTableRenderedEventParams, IRemovePivotFieldCommandParams, ISetPivotCollapseCommandParams, ISetPivotFilterCommandParams, ISetPivotSortCommandParams, IUpdatePivotFieldSettingCommandParams, IUpdatePivotValuePositionCommandParams } from '@univerjs-pro/sheets-pivot';
2
- import { IEventBase, FEventName } from '@univerjs/core/facade';
1
+ import type { IAddPivotFieldCommandParams, IMovePivotFieldCommandParams, IPivotTableAddedEventParams, IPivotTableMovedEventParams, IPivotTableRemovedEventParams, IPivotTableRenderedEventParams, IRemovePivotFieldCommandParams, ISetPivotCollapseCommandParams, ISetPivotFilterCommandParams, ISetPivotSortCommandParams, IUpdatePivotFieldSettingCommandParams, IUpdatePivotValuePositionCommandParams } from '@univerjs-pro/sheets-pivot';
2
+ import type { IEventBase } from '@univerjs/core/facade';
3
+ import { FEventName } from '@univerjs/core/facade';
3
4
  /**
4
5
  * @ignore
5
6
  */
@@ -1,6 +1,7 @@
1
- import { IDataFieldValue, IPivotTableOptions, IPivotViewValueType, PivotTable, PivotTableLabelField, PivotTableValueField, DataFieldManager, PivotDataFieldDataTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
2
- import { Injector } from '@univerjs/core';
3
- import { IDataFieldDataArray, IDimensionInfo, IFGenericPivotFilterOptions, IPivotTableCubeConfig, IPivotTableValueOptions } from './type';
1
+ import type { IDataFieldValue, IPivotTableOptions, IPivotViewValueType, PivotTable, PivotTableLabelField, PivotTableValueField } from '@univerjs-pro/engine-pivot';
2
+ import type { Injector } from '@univerjs/core';
3
+ import type { IDataFieldDataArray, IDimensionInfo, IFGenericPivotFilterOptions, IPivotTableCubeConfig, IPivotTableValueOptions } from './type';
4
+ import { DataFieldManager, PivotDataFieldDataTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
4
5
  /**
5
6
  * Pivot table class (not dependent on workbook)
6
7
  * @hideconstructor
@@ -1,6 +1,7 @@
1
- import { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableValuePositionEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
2
- import { IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
3
- import { Injector, IRange, Nullable } from '@univerjs/core';
1
+ import type { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
2
+ import type { IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
3
+ import type { Injector, IRange, Nullable } from '@univerjs/core';
4
+ import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
4
5
  interface IPivotTableDataFieldInfo {
5
6
  id: string;
6
7
  name: string;
@@ -1,6 +1,6 @@
1
- import { DataFieldManager } from '@univerjs-pro/engine-pivot';
2
- import { Injector } from '@univerjs/core';
3
- import { IDataFieldDataArray } from './type';
1
+ import type { DataFieldManager } from '@univerjs-pro/engine-pivot';
2
+ import type { Injector } from '@univerjs/core';
3
+ import type { IDataFieldDataArray } from './type';
4
4
  import { FUniver } from '@univerjs/core/facade';
5
5
  import { FGenericPivotTable } from './f-generic-pivot-table';
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { IPivotCellPositionInfo, PositionType } from '@univerjs-pro/sheets-pivot';
2
- import { IUnitRangeName } from '@univerjs/core';
1
+ import type { IPivotCellPositionInfo, PositionType } from '@univerjs-pro/sheets-pivot';
2
+ import type { IUnitRangeName } from '@univerjs/core';
3
3
  import { FWorkbook } from '@univerjs/sheets/facade';
4
4
  import { FPivotTable } from './f-pivot-table';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { IDataFieldValue, PivotFilterTypeEnum, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
1
+ import type { IDataFieldValue, PivotFilterTypeEnum, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
2
2
  /**
3
3
  * Configuration options for the pivot table cube.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { IPivotViewValueType, PivotTable, PivotView } from '@univerjs-pro/engine-pivot';
2
- import { IPivotTableCubeConfig } from './type';
1
+ import type { IPivotViewValueType, PivotTable, PivotView } from '@univerjs-pro/engine-pivot';
2
+ import type { IPivotTableCubeConfig } from './type';
3
3
  export declare const DEFAULT_DATE_FORMAT = "YYYY-MM-DD";
4
4
  export declare function unixToExcel(unixTimestamp: number): number;
5
5
  export declare function generatePivotViewDimensionArr(pivot: PivotTable, view: PivotView, isZhCN: boolean, config: IPivotTableCubeConfig): {
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as enUS } from './en-US';
1
+ import type enUS from './en-US';
2
2
  declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,6 +1,7 @@
1
- import { IFieldsCollectionJSON } from '@univerjs-pro/engine-pivot';
2
- import { Nullable, ObjectMatrix, Disposable, ICommandService, IConfigService, Injector, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
3
- import { IDataFieldManagerJSON, IPivotCellPositionInfo, IPivotRangesInfo, IPivotTableCellData, IPivotTableConfig, IPivotTableMatrixInfo, IPivotTableRangeInfo } from '../const/type';
1
+ import type { IFieldsCollectionJSON } from '@univerjs-pro/engine-pivot';
2
+ import type { Nullable, ObjectMatrix } from '@univerjs/core';
3
+ import type { IDataFieldManagerJSON, IPivotCellPositionInfo, IPivotRangesInfo, IPivotTableCellData, IPivotTableConfig, IPivotTableMatrixInfo, IPivotTableRangeInfo } from '../const/type';
4
+ import { Disposable, ICommandService, IConfigService, Injector, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
4
5
  export declare class SheetsPivotTableConfigModel extends Disposable {
5
6
  private _injector;
6
7
  private _commandService;
@@ -13,16 +14,16 @@ export declare class SheetsPivotTableConfigModel extends Disposable {
13
14
  private _pivotTableMatrixInfo;
14
15
  private _configVersion$;
15
16
  private _pivotInitCompleted$;
16
- pivotInitCompleted$: import('rxjs').Observable<boolean>;
17
+ pivotInitCompleted$: import("rxjs").Observable<boolean>;
17
18
  private _pivotConfigChange$;
18
- pivotConfigChange$: import('rxjs').Observable<{
19
+ pivotConfigChange$: import("rxjs").Observable<{
19
20
  unitId: string;
20
21
  subUnitId: string;
21
22
  pivotTableId: string;
22
23
  pivotTableConfig: Nullable<IPivotTableConfig>;
23
24
  }>;
24
25
  private _textInfo;
25
- configVersion$: import('rxjs').Observable<number>;
26
+ configVersion$: import("rxjs").Observable<number>;
26
27
  constructor(_injector: Injector, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _resourceManagerService: IResourceManagerService, _configService: IConfigService);
27
28
  private _initUnitDisposed;
28
29
  setPivotInitCompleted(): void;
@@ -1,8 +1,9 @@
1
- import { IDataFieldValue, IFieldsCollectionJSON, PivotSubtotalTypeEnum, DataField, DataFieldManager, FieldsCollection } from '@univerjs-pro/engine-pivot';
2
- import { ICellData, IRange, IUnitRangeName, IUniverInstanceService, Nullable, ObjectMatrix, Styles, Worksheet } from '@univerjs/core';
3
- import { IRuntimeUnitDataType } from '@univerjs/engine-formula';
4
- import { ICurrentDataMatrix, IDataFieldManagerJSON, IPivotCellPositionInfo, IUnitRangeNameWithSubUnitId, IUpdateInfo } from '../const/type';
5
- import { SheetsPivotDataSourceModel } from './sheets-pivot-data-source-model';
1
+ import type { IDataFieldValue, IFieldsCollectionJSON, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
2
+ import type { ICellData, IRange, IUnitRangeName, IUniverInstanceService, Nullable, ObjectMatrix, Styles, Worksheet } from '@univerjs/core';
3
+ import type { IRuntimeUnitDataType } from '@univerjs/engine-formula';
4
+ import type { ICurrentDataMatrix, IDataFieldManagerJSON, IPivotCellPositionInfo, IUnitRangeNameWithSubUnitId, IUpdateInfo } from '../const/type';
5
+ import type { SheetsPivotDataSourceModel } from './sheets-pivot-data-source-model';
6
+ import { DataField, DataFieldManager, FieldsCollection } from '@univerjs-pro/engine-pivot';
6
7
  interface IFeatureDirtyRangeType {
7
8
  [unitId: string]: Nullable<{
8
9
  [sheetId: string]: IRange[];
@@ -1,8 +1,11 @@
1
- import { DataField, FieldsCollection, IFieldsCollectionJSON, IPivotTableSnapshot, PivotView, PivotTable } from '@univerjs-pro/engine-pivot';
2
- import { IUnitRangeName, Nullable, Disposable, ICommandService, Injector, IResourceManagerService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
3
- import { IMoveRangeMutationParams } from '@univerjs/sheets';
4
- import { ICollectionChangeInfo, IDataFieldManagerJSON, IPivotCellPositionInfo, IPivotMutationDirtyViewInfo, IPivotTableConfig, IPivotTableJson, IPivotWorkerItemCache, ISendPivotConfigLocalMutationParams, IUnitRangeNameWithSubUnitId, IUpdateInfo, PivotTableOperationEnum } from '../const/type';
5
- import { IViewTranslateCtx } from './view-util';
1
+ import type { DataField, FieldsCollection, IFieldsCollectionJSON, IPivotTableSnapshot, PivotView } from '@univerjs-pro/engine-pivot';
2
+ import type { IUnitRangeName, Nullable } from '@univerjs/core';
3
+ import type { IMoveRangeMutationParams } from '@univerjs/sheets';
4
+ import type { ICollectionChangeInfo, IDataFieldManagerJSON, IPivotCellPositionInfo, IPivotMutationDirtyViewInfo, IPivotTableConfig, IPivotTableJson, IPivotWorkerItemCache, ISendPivotConfigLocalMutationParams, IUnitRangeNameWithSubUnitId, IUpdateInfo } from '../const/type';
5
+ import type { IViewTranslateCtx } from './view-util';
6
+ import { PivotTable } from '@univerjs-pro/engine-pivot';
7
+ import { Disposable, ICommandService, Injector, IResourceManagerService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
8
+ import { PivotTableOperationEnum } from '../const/type';
6
9
  import { SheetsPivotDataFieldManager } from './sheets-pivot-data-field-manager';
7
10
  export declare class SheetsPivotDataSourceModel extends Disposable {
8
11
  private readonly _injector;
@@ -15,15 +18,15 @@ export declare class SheetsPivotDataSourceModel extends Disposable {
15
18
  private _viewData;
16
19
  private _textInfo;
17
20
  private _collectionChange$;
18
- collectionChange$: import('rxjs').Observable<ICollectionChangeInfo>;
21
+ collectionChange$: import("rxjs").Observable<ICollectionChangeInfo>;
19
22
  private _viewData$;
20
- viewData$: import('rxjs').Observable<{
23
+ viewData$: import("rxjs").Observable<{
21
24
  unitId: string;
22
25
  subUnitId: string;
23
26
  pivotTableId: string;
24
27
  }>;
25
28
  private _fieldsCollectionChange$;
26
- fieldsCollectionChange$: import('rxjs').Observable<Record<string, FieldsCollection>>;
29
+ fieldsCollectionChange$: import("rxjs").Observable<Record<string, FieldsCollection>>;
27
30
  private _dataFieldManagerCollection;
28
31
  needSameDeleteModel: {
29
32
  deleteUnitId: (unitId: string) => void;
@@ -1,5 +1,6 @@
1
- import { IRange, Nullable, Disposable, Injector, IUniverInstanceService, LocaleService, ObjectMatrix } from '@univerjs/core';
2
- import { IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfigChangeInfo, IPivotViewUpdateInfo } from '../const/type';
1
+ import type { IRange, Nullable } from '@univerjs/core';
2
+ import type { IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfigChangeInfo, IPivotViewUpdateInfo } from '../const/type';
3
+ import { Disposable, Injector, IUniverInstanceService, LocaleService, ObjectMatrix } from '@univerjs/core';
3
4
  import { IExclusiveRangeService } from '@univerjs/sheets';
4
5
  import { SheetsPivotTableConfigModel } from './sheets-pivot-config-model';
5
6
  export declare class SheetsPivotTableAdaptorModel extends Disposable {
@@ -11,12 +12,12 @@ export declare class SheetsPivotTableAdaptorModel extends Disposable {
11
12
  private _pivotRenderInfoCache;
12
13
  private _pivotRenderValueMatrixCache;
13
14
  private _markDirty$;
14
- markDirty$: import('rxjs').Observable<{
15
+ markDirty$: import("rxjs").Observable<{
15
16
  unitId: string;
16
17
  subUnitId: string;
17
18
  }>;
18
19
  private _viewUpdate$;
19
- viewUpdate$: import('rxjs').Observable<IPivotViewUpdateInfo>;
20
+ viewUpdate$: import("rxjs").Observable<IPivotViewUpdateInfo>;
20
21
  private _textInfo;
21
22
  constructor(_localeService: LocaleService, _injector: Injector, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _univerInstanceService: IUniverInstanceService, _exclusiveRangeService: IExclusiveRangeService);
22
23
  private _initUnitDisposed;
@@ -1,6 +1,7 @@
1
- import { PivotView } from '@univerjs-pro/engine-pivot';
2
- import { Nullable, ObjectMatrix } from '@univerjs/core';
3
- import { IPivotCellPositionInfo, IPivotRangesInfo, IPivotTableCellData } from '../const/type';
1
+ import type { PivotView } from '@univerjs-pro/engine-pivot';
2
+ import type { Nullable } from '@univerjs/core';
3
+ import type { IPivotCellPositionInfo, IPivotRangesInfo, IPivotTableCellData } from '../const/type';
4
+ import { ObjectMatrix } from '@univerjs/core';
4
5
  export interface IViewTranslateCtx {
5
6
  view: Nullable<PivotView>;
6
7
  pivotTableId: string;
@@ -1,4 +1,4 @@
1
- import { IUniverSheetsPivotConfig } from './controllers/config.schema';
1
+ import type { IUniverSheetsPivotConfig } from './controllers/config.schema';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  import { DataSyncPrimaryController } from '@univerjs/rpc';
4
4
  export declare class UniverSheetsPivotTablePlugin extends Plugin {
@@ -1,4 +1,4 @@
1
- import { IGetPivotDataLocalMutationParams, ISendPivotDataLocalMutationParams } from '../const/type';
1
+ import type { IGetPivotDataLocalMutationParams, ISendPivotDataLocalMutationParams } from '../const/type';
2
2
  import { Disposable, ICommandService } from '@univerjs/core';
3
3
  export declare class SheetsPivotRPCService extends Disposable {
4
4
  private readonly _commandService;
@@ -1,4 +1,4 @@
1
- import { IPivotPerformCheckParams } from '../const/type';
1
+ import type { IPivotPerformCheckParams } from '../const/type';
2
2
  import { AsyncInterceptorManager, Disposable, InterceptorManager } from '@univerjs/core';
3
3
  import { SheetInterceptorService } from '@univerjs/sheets';
4
4
  import { SheetsPivotTableAdaptorModel } from '../models/sheets-pivot-table-adaptor-model';
@@ -6,13 +6,13 @@ export declare class SheetsPivotTableService extends Disposable {
6
6
  private _sheetInterceptorService;
7
7
  private _sheetsPivotTableAdaptorModel;
8
8
  readonly asyncInterceptor: AsyncInterceptorManager<{
9
- PIVOT_PERFORM_CHECK: import('@univerjs/core').IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
9
+ PIVOT_PERFORM_CHECK: import("@univerjs/core").IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
10
10
  }>;
11
11
  readonly interceptor: InterceptorManager<{
12
- PIVOT_MUTATION_GENERATE: import('@univerjs/core').IInterceptor<import('@univerjs/core').IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
12
+ PIVOT_MUTATION_GENERATE: import("@univerjs/core").IInterceptor<import("@univerjs/core").IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
13
13
  }>;
14
14
  constructor(_sheetInterceptorService: SheetInterceptorService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel);
15
15
  private _init;
16
- getPivotPerformCheck(params: IPivotPerformCheckParams): Promise<import('@univerjs/core').Nullable<boolean>>;
16
+ getPivotPerformCheck(params: IPivotPerformCheckParams): Promise<import("@univerjs/core").Nullable<boolean>>;
17
17
  private _initViewModelBySheetInterceptor;
18
18
  }
@@ -1,7 +1,9 @@
1
- import { ILabelViewHeaderMapItem, IPivotTableSnapshot, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
2
- import { IAccessor, IMutationInfo, Injector, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
3
- import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
4
- import { IGetPivotDataLocalMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig } from './const/type';
1
+ import type { ILabelViewHeaderMapItem, IPivotTableSnapshot, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
2
+ import type { IAccessor, IMutationInfo, Injector, IRange, Nullable } from '@univerjs/core';
3
+ import type { ISetRangeValuesMutationParams } from '@univerjs/sheets';
4
+ import type { IGetPivotDataLocalMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig } from './const/type';
5
+ import { PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
6
+ import { ObjectMatrix } from '@univerjs/core';
5
7
  import { SheetsPivotDataSourceModel } from './models/sheets-pivot-data-source-model';
6
8
  export declare const generateDefaultEmptyCache: (textOptions: {
7
9
  filter: string;