ooxml-core 1.9.0 → 1.10.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 (126) hide show
  1. package/dist/PptxHandler-5UURGJEV.mjs +2 -0
  2. package/dist/{PptxHandler-EX4WBIQQ.mjs → PptxHandler-ADEFY476.mjs} +2 -2
  3. package/dist/PptxHandler-U5XB2HUE.cjs +11 -0
  4. package/dist/automation/index.cjs +744 -192
  5. package/dist/automation/index.mjs +744 -192
  6. package/dist/{chunk-SWF7KVL5.cjs → chunk-3N6XMMTT.cjs} +1365 -1062
  7. package/dist/{chunk-FIELY5PI.mjs → chunk-5NVJN4E6.mjs} +30 -2
  8. package/dist/{chunk-IGOA57LE.mjs → chunk-A6P7G3UK.mjs} +1 -1
  9. package/dist/{chunk-CPKNMQLX.cjs → chunk-AWIDASUW.cjs} +25 -2
  10. package/dist/{chunk-SVQZXP3F.mjs → chunk-CBNKBVX5.mjs} +25 -2
  11. package/dist/{chunk-OXHMZS7B.mjs → chunk-CCHYFCPD.mjs} +649 -172
  12. package/dist/{chunk-OB277ZGE.mjs → chunk-R6KSBNKX.mjs} +27 -1
  13. package/dist/{chunk-AT66SA5M.cjs → chunk-S6DOCMQC.cjs} +28 -0
  14. package/dist/{chunk-WSO4T2LJ.mjs → chunk-WUE5ZHU3.mjs} +26 -3
  15. package/dist/{chunk-LCS3J3QI.mjs → chunk-ZE53K7DH.mjs} +474 -171
  16. package/dist/{chunk-M76PHYRR.mjs → chunk-ZOUGMAZG.mjs} +1 -1
  17. package/dist/docx/layout/adapt-table.d.ts +2 -2
  18. package/dist/docx/layout/adapt-table.d.ts.map +1 -1
  19. package/dist/docx/layout/flow-table.d.ts.map +1 -1
  20. package/dist/docx/layout/index.cjs +477 -75
  21. package/dist/docx/layout/index.mjs +477 -76
  22. package/dist/docx/layout/nested-frame-profile.d.ts +9 -0
  23. package/dist/docx/layout/nested-frame-profile.d.ts.map +1 -0
  24. package/dist/docx/layout/page-cursor.d.ts +2 -0
  25. package/dist/docx/layout/page-cursor.d.ts.map +1 -1
  26. package/dist/docx/layout/result.d.ts +13 -0
  27. package/dist/docx/layout/result.d.ts.map +1 -1
  28. package/dist/docx/layout/table-border-layout.d.ts +16 -0
  29. package/dist/docx/layout/table-border-layout.d.ts.map +1 -0
  30. package/dist/docx/layout/table-cell-layout.d.ts +2 -1
  31. package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
  32. package/dist/docx/layout/table-content.d.ts +4 -0
  33. package/dist/docx/layout/table-content.d.ts.map +1 -0
  34. package/dist/docx/layout/table-footnotes.d.ts +5 -0
  35. package/dist/docx/layout/table-footnotes.d.ts.map +1 -1
  36. package/dist/docx/layout/table-frames.d.ts +4 -0
  37. package/dist/docx/layout/table-frames.d.ts.map +1 -0
  38. package/dist/docx/layout/table-layout.d.ts +8 -3
  39. package/dist/docx/layout/table-layout.d.ts.map +1 -1
  40. package/dist/docx/layout/table-note-completion.d.ts +5 -0
  41. package/dist/docx/layout/table-note-completion.d.ts.map +1 -0
  42. package/dist/docx/layout/table-note-stories.d.ts +6 -0
  43. package/dist/docx/layout/table-note-stories.d.ts.map +1 -0
  44. package/dist/pptx/automation/index.cjs +535 -182
  45. package/dist/pptx/automation/index.d.ts +4 -4
  46. package/dist/pptx/automation/index.mjs +5 -5
  47. package/dist/pptx/chunks/{index-BZh-IMkN.d.ts → index-Cuxtr76Y.d.ts} +17 -3
  48. package/dist/pptx/chunks/index-Cuxtr76Y.d.ts.map +1 -0
  49. package/dist/pptx/chunks/{index-B4cnSPNz.d.ts → index-DUCGeZh7.d.ts} +65 -5
  50. package/dist/pptx/chunks/index-DUCGeZh7.d.ts.map +1 -0
  51. package/dist/pptx/chunks/{smart-art-Q2kZQtHh.d.ts → smart-art-D-sXa_Nb.d.ts} +11 -1
  52. package/dist/pptx/chunks/smart-art-D-sXa_Nb.d.ts.map +1 -0
  53. package/dist/pptx/chunks/{text-operations-BLodkuXE.d.ts → text-operations-BqHmLaLA.d.ts} +26 -2
  54. package/dist/pptx/chunks/text-operations-BqHmLaLA.d.ts.map +1 -0
  55. package/dist/pptx/cli/index.cjs +535 -182
  56. package/dist/pptx/cli/index.d.ts +1 -1
  57. package/dist/pptx/cli/index.mjs +4 -4
  58. package/dist/pptx/converter/index.cjs +1 -0
  59. package/dist/pptx/converter/index.d.ts +1 -1
  60. package/dist/pptx/converter/index.mjs +2 -2
  61. package/dist/pptx/editor/render/collaboration-live-patch-target.cjs +2 -2
  62. package/dist/pptx/editor/render/collaboration-live-patch-target.mjs +1 -1
  63. package/dist/pptx/editor/render/find-replace.cjs +18 -18
  64. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  65. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  66. package/dist/pptx/editor/render/remap-text.cjs +2 -2
  67. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  68. package/dist/pptx/editor/render/remap-text.mjs +1 -1
  69. package/dist/pptx/editor/render/slide-operations.cjs +8 -8
  70. package/dist/pptx/editor/render/slide-operations.mjs +2 -2
  71. package/dist/pptx/index.cjs +762 -182
  72. package/dist/pptx/index.d.ts +5 -5
  73. package/dist/pptx/index.mjs +5 -5
  74. package/dist/pptx/smartart-layouts/index.d.ts +1 -1
  75. package/dist/teams/index.cjs +486 -114
  76. package/dist/teams/index.mjs +486 -114
  77. package/dist/visio/date-cache.d.ts +3 -0
  78. package/dist/visio/date-cache.d.ts.map +1 -0
  79. package/dist/visio/edit-text-field.d.ts.map +1 -1
  80. package/dist/visio/index.cjs +131 -22
  81. package/dist/visio/index.mjs +131 -22
  82. package/dist/visio/shape-metadata.d.ts.map +1 -1
  83. package/dist/visio/text-field-display.d.ts.map +1 -1
  84. package/dist/visio/text-field-fraction.d.ts +3 -0
  85. package/dist/visio/text-field-fraction.d.ts.map +1 -0
  86. package/dist/visio/text-field-numeric.d.ts +1 -1
  87. package/dist/visio/text-field-numeric.d.ts.map +1 -1
  88. package/dist/visio/text-field-system-date.d.ts +4 -0
  89. package/dist/visio/text-field-system-date.d.ts.map +1 -0
  90. package/dist/visio/text-fields.d.ts +1 -0
  91. package/dist/visio/text-fields.d.ts.map +1 -1
  92. package/dist/visio/ui/index.cjs +132 -22
  93. package/dist/visio/ui/index.mjs +132 -22
  94. package/dist/visio/ui/text-field-catalog.d.ts.map +1 -1
  95. package/dist/xlsx/edit/pivots.d.ts.map +1 -1
  96. package/dist/xlsx/index.cjs +614 -170
  97. package/dist/xlsx/index.mjs +614 -170
  98. package/dist/xlsx/load/index.cjs +575 -163
  99. package/dist/xlsx/load/index.mjs +575 -163
  100. package/dist/xlsx/model-pivots.d.ts +23 -2
  101. package/dist/xlsx/model-pivots.d.ts.map +1 -1
  102. package/dist/xlsx/pivot/admission.d.ts.map +1 -1
  103. package/dist/xlsx/pivot/aggregate.d.ts +3 -1
  104. package/dist/xlsx/pivot/aggregate.d.ts.map +1 -1
  105. package/dist/xlsx/pivot/data.d.ts +1 -1
  106. package/dist/xlsx/pivot/data.d.ts.map +1 -1
  107. package/dist/xlsx/pivot/hierarchy-first.d.ts +21 -0
  108. package/dist/xlsx/pivot/hierarchy-first.d.ts.map +1 -0
  109. package/dist/xlsx/pivot/hierarchy.d.ts +2 -4
  110. package/dist/xlsx/pivot/hierarchy.d.ts.map +1 -1
  111. package/dist/xlsx/pivot/measures.d.ts +13 -0
  112. package/dist/xlsx/pivot/measures.d.ts.map +1 -0
  113. package/dist/xlsx/pivot/read.d.ts.map +1 -1
  114. package/dist/xlsx/pivot/table-xml.d.ts.map +1 -1
  115. package/dist/xlsx/pivot/values-axis.d.ts +9 -0
  116. package/dist/xlsx/pivot/values-axis.d.ts.map +1 -0
  117. package/dist/xlsx/ui/commands/i18n/pivots.d.ts.map +1 -1
  118. package/dist/xlsx/ui/index.cjs +547 -127
  119. package/dist/xlsx/ui/index.mjs +547 -127
  120. package/package.json +1 -1
  121. package/dist/PptxHandler-AT7FVG5Q.mjs +0 -2
  122. package/dist/PptxHandler-VFSCECPL.cjs +0 -11
  123. package/dist/pptx/chunks/index-B4cnSPNz.d.ts.map +0 -1
  124. package/dist/pptx/chunks/index-BZh-IMkN.d.ts.map +0 -1
  125. package/dist/pptx/chunks/smart-art-Q2kZQtHh.d.ts.map +0 -1
  126. package/dist/pptx/chunks/text-operations-BLodkuXE.d.ts.map +0 -1
@@ -2,7 +2,17 @@ import type { CellRange } from './address.js';
2
2
  import type { CellValue } from './model.js';
3
3
  export type PivotAggregate = 'sum' | 'count' | 'average' | 'min' | 'max';
4
4
  export type PivotLayout = 'tabular' | 'compact' | 'outline';
5
- /** A worksheet-range pivot with up to two row fields and one value field. */
5
+ export interface PivotValueField {
6
+ field: string;
7
+ aggregate: PivotAggregate;
8
+ caption: string;
9
+ }
10
+ export interface PivotValueFieldOptions {
11
+ field: string;
12
+ aggregate?: PivotAggregate;
13
+ caption?: string;
14
+ }
15
+ /** A worksheet-range pivot with up to two row fields and sixteen measures. */
6
16
  export interface PivotTable {
7
17
  name: string;
8
18
  /** Qualified A1 source range, rewritten with the workbook's other references. */
@@ -19,6 +29,12 @@ export interface PivotTable {
19
29
  valueField: string;
20
30
  aggregate: PivotAggregate;
21
31
  valueCaption: string;
32
+ /** Extra measures in Values axis order. The existing value fields remain the primary measure. */
33
+ additionalValues?: PivotValueField[];
34
+ /** Values on rows require multiple measures and one or two real row fields. */
35
+ valuesAxis?: 'columns' | 'rows';
36
+ /** Row Values follow both real fields by default, or sit between/before two real fields. */
37
+ valuesPosition?: 'last' | 'between' | 'first';
22
38
  /** Cached source fields and records. Refresh replaces these together with the output cells. */
23
39
  fields: string[];
24
40
  records: CellValue[][];
@@ -39,8 +55,13 @@ export interface PivotTableOptions {
39
55
  repeatLabels?: boolean;
40
56
  columnField?: string;
41
57
  valueField: string;
58
+ additionalValues?: PivotValueFieldOptions[];
59
+ valuesAxis?: 'columns' | 'rows';
60
+ valuesPosition?: 'last' | 'between' | 'first';
42
61
  aggregate?: PivotAggregate;
43
62
  name?: string;
44
63
  }
45
- export type PivotTablePatch = Partial<Pick<PivotTable, 'rowField' | 'layout' | 'subtotalPosition' | 'secondRowField' | 'subtotals' | 'repeatLabels' | 'columnField' | 'valueField' | 'aggregate'>>;
64
+ export type PivotTablePatch = Partial<Pick<PivotTable, 'rowField' | 'layout' | 'subtotalPosition' | 'secondRowField' | 'subtotals' | 'repeatLabels' | 'columnField' | 'valueField' | 'aggregate' | 'valuesAxis' | 'valuesPosition'>> & {
65
+ additionalValues?: PivotValueFieldOptions[];
66
+ };
46
67
  //# sourceMappingURL=model-pivots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-pivots.d.ts","sourceRoot":"","sources":["../../xlsx/model-pivots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D,6EAA6E;AAC7E,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,cAAc,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,+FAA+F;IAC/F,MAAM,EAAE,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MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAC5C,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAC9C,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CACpC,IAAI,CACH,UAAU,EACR,UAAU,GACV,QAAQ,GACR,kBAAkB,GAClB,gBAAgB,GAChB,WAAW,GACX,cAAc,GACd,aAAa,GACb,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,gBAAgB,CAClB,CACD,GAAG;IAAE,gBAAgB,CAAC,EAAE,sBAAsB,EAAE,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"admission.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/admission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAqJhE,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAG/E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAM5D"}
1
+ {"version":3,"file":"admission.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/admission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAuJhE,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAG/E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAM5D"}
@@ -11,9 +11,11 @@ export interface PivotGrid {
11
11
  rowEntries?: {
12
12
  indices: number[];
13
13
  type?: 'default' | 'grand';
14
+ measure?: number;
14
15
  }[];
16
+ firstHeaderRow?: number;
15
17
  }
16
- /** Tabular output, including grand totals computed from source records (not averages of cells). */
18
+ /** Pivot output, including grand totals computed from source records (not averages of cells). */
17
19
  export declare function pivotGrid(pivot: PivotTable): PivotGrid;
18
20
  export declare function pivotTableAt(sheet: Worksheet, at: CellAddress): PivotTable | undefined;
19
21
  //# sourceMappingURL=aggregate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/aggregate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,MAAM,UAAU,CAAC;AAsBlB,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;IACtB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;KAAE,EAAE,CAAC;CACjE;AAED,mGAAmG;AACnG,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAiEtD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,GAAG,UAAU,GAAG,SAAS,CAEtF"}
1
+ {"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/aggregate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAK3E,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;IACtB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iGAAiG;AACjG,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CA6HtD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,GAAG,UAAU,GAAG,SAAS,CAEtF"}
@@ -7,6 +7,6 @@ export declare function pivotValueKey(value: CellValue): string;
7
7
  export declare function pivotItems(pivot: PivotTable, field: string): CellValue[];
8
8
  /** Native PivotTable labels display booleans and errors as text; numeric items remain numeric. */
9
9
  export declare function pivotItemLabel(value: CellValue): CellValue;
10
- export declare function validatePivotFields(pivot: Pick<PivotTable, 'fields' | 'rowField' | 'layout' | 'subtotalPosition' | 'secondRowField' | 'subtotals' | 'repeatLabels' | 'columnField' | 'valueField' | 'aggregate'>): void;
10
+ export declare function validatePivotFields(pivot: Pick<PivotTable, 'fields' | 'rowField' | 'layout' | 'subtotalPosition' | 'secondRowField' | 'subtotals' | 'repeatLabels' | 'columnField' | 'valueField' | 'aggregate' | 'valueCaption' | 'additionalValues' | 'sourceXml' | 'valuesAxis' | 'valuesPosition'>): void;
11
11
  export declare function pivotCaption(aggregate: PivotTable['aggregate'], field: string): string;
12
12
  //# sourceMappingURL=data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/data.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIvF,eAAO,MAAM,gBAAgB,YAAI,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAEnF,0FAA0F;AAC1F,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACZ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC,CAuBnD;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAMtD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CA4BxE;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAI1D;AAED,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,IAAI,CACV,UAA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Y,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtF"}
@@ -0,0 +1,21 @@
1
+ import type { CellValue, PivotTable } from '../model.js';
2
+ import type { PivotGrid } from './aggregate.js';
3
+ type Entry = NonNullable<PivotGrid['rowEntries']>[number];
4
+ /** First Values reuse the hierarchy's indexed tuples and column aggregate buckets. */
5
+ export declare function appendFirstPivotValues(pivot: PivotTable, context: {
6
+ rowItems: CellValue[];
7
+ secondRowItems: CellValue[];
8
+ columnItems: CellValue[];
9
+ children: Map<string, Set<string>>;
10
+ innerIndices: Map<string, number>;
11
+ groups: Map<string, CellValue[][]>;
12
+ details: Map<string, CellValue[][]>;
13
+ buckets: Map<string, CellValue[][]>;
14
+ width: number;
15
+ rowLabels: number;
16
+ top: boolean;
17
+ bottom: boolean;
18
+ append(labels: CellValue[], numbers: CellValue[], entry: Entry, indent?: number): void;
19
+ }): void;
20
+ export {};
21
+ //# sourceMappingURL=hierarchy-first.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hierarchy-first.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/hierarchy-first.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,KAAK,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1D,sFAAsF;AACtF,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE;IACR,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACnC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IACpC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvF,GACC,IAAI,CA4EN"}
@@ -1,7 +1,5 @@
1
- import type { CellValue, PivotAggregate, PivotTable } from '../model.js';
1
+ import type { PivotTable } from '../model.js';
2
2
  import type { PivotGrid } from './aggregate.js';
3
- type Aggregate = (records: readonly CellValue[][], field: number, type: PivotAggregate) => CellValue;
4
3
  /** Two-field report layouts share the same indexed tuples and aggregate buckets. */
5
- export declare function hierarchicalPivotGrid(pivot: PivotTable, aggregate: Aggregate): PivotGrid;
6
- export {};
4
+ export declare function hierarchicalPivotGrid(pivot: PivotTable): PivotGrid;
7
5
  //# sourceMappingURL=hierarchy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/hierarchy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,KAAK,SAAS,GAAG,CAChB,OAAO,EAAE,SAAS,SAAS,EAAE,EAAE,EAC/B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,cAAc,KAChB,SAAS,CAAC;AAGf,oFAAoF;AACpF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,SAAS,CAkIxF"}
1
+ {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/hierarchy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAa7C,oFAAoF;AACpF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAmPlE"}
@@ -0,0 +1,13 @@
1
+ import { type CellValue, type PivotTable, type PivotValueField, type PivotValueFieldOptions } from '../model.js';
2
+ export declare const pivotMeasures: (pivot: Pick<PivotTable, 'valueField' | 'aggregate' | 'valueCaption' | 'additionalValues'>) => PivotValueField[];
3
+ export declare function normalizedPivotMeasures(values: readonly PivotValueFieldOptions[]): PivotValueField[];
4
+ export declare const pivotMeasureNumber: (pivot: Pick<PivotTable, 'fields'>, records: readonly CellValue[][], measure: PivotValueField) => CellValue;
5
+ export declare const pivotNumbers: (pivot: PivotTable, records: readonly CellValue[][]) => CellValue[];
6
+ /** Allocation-free header dimensions, including one totals column for every measure. */
7
+ export declare function pivotHeaderDimensions(pivot: Pick<PivotTable, 'columnField' | 'additionalValues' | 'valuesAxis'>, columnItems: number, rowLabels: number): {
8
+ rows: number;
9
+ width: number;
10
+ };
11
+ /** Values follows the optional column field; native totals have one column per measure. */
12
+ export declare function pivotHeaders(pivot: PivotTable, columns: readonly CellValue[], labels: CellValue[], label: (value: CellValue) => CellValue): CellValue[][];
13
+ //# sourceMappingURL=measures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measures.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/measures.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KA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e,CAC9B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC7B,IAAI,CA8DN"}
1
+ {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/read.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgD,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA6NnD,0FAA0F;AAC1F,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC7B,IAAI,CA8DN"}
@@ -1 +1 @@
1
- {"version":3,"file":"table-xml.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/table-xml.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,mGAAmG;AACnG,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,MAAM,CA2F/F"}
1
+ {"version":3,"file":"table-xml.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/table-xml.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,mGAAmG;AACnG,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,MAAM,CAqI/F"}
@@ -0,0 +1,9 @@
1
+ import type { XmlElement } from '../../xml/index.js';
2
+ export declare function pivotFieldIndex(field: XmlElement | undefined): number;
3
+ /** Native leading or between-field row Values carry an explicit position matching their axis slot. */
4
+ export declare function pivotValueIndex(root: XmlElement, axis: readonly XmlElement[]): number;
5
+ /** Native Values-on-columns entries, with each measure nested inside each column item. */
6
+ export declare function pivotValueAxisItems(measures: number, columns?: number): string;
7
+ /** Values follow the column field, or sit last/between/before two real row fields. */
8
+ export declare function supportedPivotAxes(rows: readonly XmlElement[], columns: readonly XmlElement[], measures: number, valuesOnRows: boolean): boolean;
9
+ //# sourceMappingURL=values-axis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"values-axis.d.ts","sourceRoot":"","sources":["../../../xlsx/pivot/values-axis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAKrE;AAED,sGAAsG;AACtG,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,CAQrF;AACD,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAkB9E;AAED,sFAAsF;AACtF,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,SAAS,UAAU,EAAE,EAC3B,OAAO,EAAE,SAAS,UAAU,EAAE,EAC9B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,OAAO,GACnB,OAAO,CAmBT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pivots.d.ts","sourceRoot":"","sources":["../../../../../xlsx/ui/commands/i18n/pivots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,aAAa,EAAE,YA2G3B,CAAC"}
1
+ {"version":3,"file":"pivots.d.ts","sourceRoot":"","sources":["../../../../../xlsx/ui/commands/i18n/pivots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,aAAa,EAAE,YAmM3B,CAAC"}