@univerjs-pro/engine-pivot 1.4.0 → 1.5.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.
@@ -1,8 +1,15 @@
1
1
  import type { PivotTable } from '../pivot/pivot-table';
2
2
  import type { NodeTree } from '../summary/node-tree';
3
3
  import type { SummaryManager } from '../summary/summary-manager';
4
- import type { IColumnNodeSizeInfo, INodeSizeInfo, IPivotLayoutCtx, IPivotTableLabelFieldQueryData, IPivotTableQueryData, IPivotViewValueType, PivotErrorTypeEnum } from '../types';
5
- import type { ColViewItem, PageViewItem } from './pivot-view';
4
+ import type { IColumnNodeSizeInfo, INodeSizeInfo, IPivotLayoutCtx, IPivotTableQueryData, IPivotViewValueType, PivotErrorTypeEnum } from '../types';
5
+ import type { PageViewItem, PivotViewItem } from './pivot-view';
6
+ import { PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum } from '../types';
7
+ interface IPivotPageFilterLabel {
8
+ displayName: string;
9
+ status: PivotCellStyleTypeEnum;
10
+ value?: string;
11
+ itemType?: PivotDataFieldDataTypeEnum;
12
+ }
6
13
  export declare class BaseLayout {
7
14
  /**
8
15
  *
@@ -12,8 +19,9 @@ export declare class BaseLayout {
12
19
  */
13
20
  static prepareLayoutCtx(pivotTable: PivotTable, summaryManager: SummaryManager, queryData: IPivotTableQueryData): IPivotLayoutCtx;
14
21
  static layoutPage(ctx: IPivotLayoutCtx): void;
15
- static layoutPageOverThenDown(filters: IPivotTableLabelFieldQueryData[], page: PageViewItem, pageWrap?: number): void;
16
- static layoutPageDownThenOver(filters: IPivotTableLabelFieldQueryData[], page: PageViewItem, pageWrap?: number): void;
22
+ private static _setPageFilterLabel;
23
+ static layoutPageOverThenDown(filters: IPivotPageFilterLabel[], page: PageViewItem, pageWrap?: number): void;
24
+ static layoutPageDownThenOver(filters: IPivotPageFilterLabel[], page: PageViewItem, pageWrap?: number): void;
17
25
  static layoutCol(ctx: IPivotLayoutCtx): void;
18
26
  static layoutCorner(_ctx: IPivotLayoutCtx): void;
19
27
  static layoutColHeader(ctx: IPivotLayoutCtx): void;
@@ -52,8 +60,9 @@ export declare class BaseLayout {
52
60
  static shouldMultipleTotal(hasMultiValue: boolean, nodeLevel: number, valueIndex: number): boolean;
53
61
  static shouldMultipleNode(hasMultiValue: boolean, nodeLevel: number, valueIndex: number): boolean;
54
62
  static getRowIndexForColHeader(nodeLevel: number, valueIndex: number, hasMultiValue: boolean): number;
55
- static setColLabelValue(colView: ColViewItem, row: number, col: number, value: IPivotViewValueType, isBlank: boolean, isOther: boolean): void;
63
+ static setLabelValue(view: PivotViewItem, row: number, col: number, value: IPivotViewValueType, isBlank: boolean, isOther: boolean): void;
56
64
  static layoutColNode(ctx: IPivotLayoutCtx, nodeTree: NodeTree, col: number, valueIds: string[]): IColumnNodeSizeInfo;
57
65
  static getMeasureIndex(isColMultiMeasure: boolean, valueIds: string[], measureIndexesMap: Record<string, number>): number;
58
66
  static updateColumnSubtotal(ctx: IPivotLayoutCtx, col: number, nodeTree: NodeTree, valueIds: string[], colPathMap: Record<string, number>): void;
59
67
  }
68
+ export {};
@@ -58,6 +58,8 @@ export interface IExcelDateGrouping {
58
58
  export interface IExcelDateGroupFieldSpec extends Omit<IExcelDateGrouping, 'units'> {
59
59
  unit: PivotExcelDateGroupUnit;
60
60
  groupByDate?: boolean;
61
+ /** Excel cache captions for the 366 recurring calendar days in leap-year order. */
62
+ dayLabels?: readonly string[];
61
63
  }
62
64
  export interface INumberGrouping {
63
65
  autoStart: boolean;