@univerjs-pro/engine-pivot 0.22.1 → 0.23.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.
@@ -161,6 +161,22 @@ export interface IPivotTableOptions {
161
161
  * Whether to repeat the item labels in the pivot table
162
162
  */
163
163
  repeatRowLabels?: boolean;
164
+ /**
165
+ * Whether to show subtotal and grand total, if showSubtotal is false, the subtotal and grand total will not be calculated and rendered, if showGrandTotal is false, the grand total will not be calculated and rendered
166
+ */
167
+ showRowSubtotal?: boolean;
168
+ /**
169
+ * Whether to show grand total in row, if showRowGrandTotal is false, the grand total in row will not be calculated and rendered
170
+ */
171
+ showRowGrandTotal?: boolean;
172
+ /**
173
+ * Whether to show subtotal in column, if showColSubtotal is false, the subtotal in column will not be calculated and rendered
174
+ */
175
+ showColSubtotal?: boolean;
176
+ /**
177
+ * Whether to show grand total in column, if showColGrandTotal is false, the grand total in column will not be calculated and rendered
178
+ */
179
+ showColGrandTotal?: boolean;
164
180
  }
165
181
  export interface INodeSizeInfo {
166
182
  /**
@@ -203,6 +219,10 @@ export interface IPivotLayoutCtx {
203
219
  collapseInfo: Record<string, boolean | Record<string, boolean>>;
204
220
  repeatRowLabels: boolean;
205
221
  valueFilterMap: Record<string, IValueFilterInfoItem>;
222
+ showRowSubtotal: boolean;
223
+ showRowGrandTotal: boolean;
224
+ showColSubtotal: boolean;
225
+ showColGrandTotal: boolean;
206
226
  }
207
227
  export interface IPageViewItemRange {
208
228
  row: number;