@rowsncolumns/spreadsheet 10.11.0 → 10.14.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 (202) hide show
  1. package/dist/cjs/api/split-pane.d.ts +1 -0
  2. package/dist/cjs/api/split-pane.d.ts.map +1 -1
  3. package/dist/cjs/api/split-pane.js +5 -1
  4. package/dist/cjs/atoms/calculated-column-fill.atom.d.ts +6 -2
  5. package/dist/cjs/atoms/calculated-column-fill.atom.d.ts.map +1 -1
  6. package/dist/cjs/atoms/calculated-column-fill.atom.js +6 -2
  7. package/dist/cjs/atoms/cell-input-context.atom.d.ts.map +1 -1
  8. package/dist/cjs/atoms/fill-options.atom.d.ts +5 -0
  9. package/dist/cjs/atoms/fill-options.atom.d.ts.map +1 -1
  10. package/dist/cjs/atoms/table-auto-expansion.atom.d.ts +5 -2
  11. package/dist/cjs/atoms/table-auto-expansion.atom.d.ts.map +1 -1
  12. package/dist/cjs/atoms/table-auto-expansion.atom.js +5 -2
  13. package/dist/cjs/components/autocorrect-options-smart-tag/index.d.ts +37 -0
  14. package/dist/cjs/components/autocorrect-options-smart-tag/index.d.ts.map +1 -0
  15. package/dist/cjs/components/autocorrect-options-smart-tag/index.js +84 -0
  16. package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
  17. package/dist/cjs/components/canvas-grid/index.js +388 -123
  18. package/dist/cjs/components/canvas-grid/typings.d.ts +45 -0
  19. package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
  20. package/dist/cjs/components/embeds/chart-component.d.ts +9 -0
  21. package/dist/cjs/components/embeds/chart-component.d.ts.map +1 -1
  22. package/dist/cjs/components/embeds/embed-component.d.ts +9 -0
  23. package/dist/cjs/components/embeds/embed-component.d.ts.map +1 -1
  24. package/dist/cjs/components/embeds/embed-component.js +13 -114
  25. package/dist/cjs/components/embeds/embed-draggable.d.ts +17 -2
  26. package/dist/cjs/components/embeds/embed-draggable.d.ts.map +1 -1
  27. package/dist/cjs/components/embeds/embed-draggable.js +336 -25
  28. package/dist/cjs/components/embeds/object-focus.d.ts +32 -0
  29. package/dist/cjs/components/embeds/object-focus.d.ts.map +1 -0
  30. package/dist/cjs/components/embeds/object-focus.js +140 -0
  31. package/dist/cjs/components/embeds/page-gaps.d.ts +67 -0
  32. package/dist/cjs/components/embeds/page-gaps.d.ts.map +1 -0
  33. package/dist/cjs/components/embeds/page-gaps.js +159 -0
  34. package/dist/cjs/components/embeds/pane-copy.d.ts +35 -0
  35. package/dist/cjs/components/embeds/pane-copy.d.ts.map +1 -0
  36. package/dist/cjs/components/embeds/pane-copy.js +29 -0
  37. package/dist/cjs/components/embeds/slicer-component.d.ts +9 -0
  38. package/dist/cjs/components/embeds/slicer-component.d.ts.map +1 -1
  39. package/dist/cjs/components/embeds/text-box-view.d.ts +18 -0
  40. package/dist/cjs/components/embeds/text-box-view.d.ts.map +1 -0
  41. package/dist/cjs/components/embeds/text-box-view.js +130 -0
  42. package/dist/cjs/components/filter-box/filter-by-color.d.ts.map +1 -1
  43. package/dist/cjs/components/filter-box/filter-by-color.js +10 -3
  44. package/dist/cjs/components/filter-box/index.d.ts.map +1 -1
  45. package/dist/cjs/components/filter-box/index.js +5 -1
  46. package/dist/cjs/components/print-preview/page-block.d.ts +46 -0
  47. package/dist/cjs/components/print-preview/page-block.d.ts.map +1 -1
  48. package/dist/cjs/components/print-preview/page-block.js +111 -6
  49. package/dist/cjs/components/print-preview/print-cells.d.ts +5 -0
  50. package/dist/cjs/components/print-preview/print-cells.d.ts.map +1 -1
  51. package/dist/cjs/components/print-preview/print-cells.js +1 -0
  52. package/dist/cjs/components/print-preview/print-preview-dialog.d.ts +16 -2
  53. package/dist/cjs/components/print-preview/print-preview-dialog.d.ts.map +1 -1
  54. package/dist/cjs/components/print-preview/print-preview-dialog.js +246 -14
  55. package/dist/cjs/components/print-preview/settings.d.ts +8 -0
  56. package/dist/cjs/components/print-preview/settings.d.ts.map +1 -1
  57. package/dist/cjs/components/print-preview/settings.js +4 -1
  58. package/dist/cjs/components/print-preview/sheet-page-setup.d.ts.map +1 -1
  59. package/dist/cjs/components/print-preview/sheet-page-setup.js +14 -2
  60. package/dist/cjs/components/selection/fill-options-menu.d.ts +8 -1
  61. package/dist/cjs/components/selection/fill-options-menu.d.ts.map +1 -1
  62. package/dist/cjs/components/selection/fill-options-menu.js +5 -3
  63. package/dist/cjs/components/selection/index.d.ts +1 -1
  64. package/dist/cjs/components/selection/index.d.ts.map +1 -1
  65. package/dist/cjs/components/selection/index.js +5 -6
  66. package/dist/cjs/components/selection/types.d.ts +13 -8
  67. package/dist/cjs/components/selection/types.d.ts.map +1 -1
  68. package/dist/cjs/components/sheet-background/index.d.ts +26 -0
  69. package/dist/cjs/components/sheet-background/index.d.ts.map +1 -0
  70. package/dist/cjs/components/sheet-background/index.js +106 -0
  71. package/dist/cjs/components/sort-range-dialog/index.d.ts.map +1 -1
  72. package/dist/cjs/components/sort-range-dialog/index.js +6 -3
  73. package/dist/cjs/hooks/object-clipboard-payload.d.ts +58 -0
  74. package/dist/cjs/hooks/object-clipboard-payload.d.ts.map +1 -0
  75. package/dist/cjs/hooks/object-clipboard-payload.js +488 -0
  76. package/dist/cjs/hooks/object-spec-schema.generated.d.ts +24 -0
  77. package/dist/cjs/hooks/object-spec-schema.generated.d.ts.map +1 -0
  78. package/dist/cjs/hooks/object-spec-schema.generated.js +4779 -0
  79. package/dist/cjs/hooks/use-chart-clipboard.d.ts +55 -9
  80. package/dist/cjs/hooks/use-chart-clipboard.d.ts.map +1 -1
  81. package/dist/cjs/hooks/use-chart-clipboard.js +307 -55
  82. package/dist/cjs/hooks/use-embeds-charts.d.ts +12 -1
  83. package/dist/cjs/hooks/use-embeds-charts.d.ts.map +1 -1
  84. package/dist/cjs/hooks/use-embeds-charts.js +86 -17
  85. package/dist/cjs/hooks/use-grid-children.d.ts +4 -2
  86. package/dist/cjs/hooks/use-grid-children.d.ts.map +1 -1
  87. package/dist/cjs/hooks/use-grid-children.js +74 -16
  88. package/dist/cjs/hooks/use-selection-renderer.d.ts +16 -5
  89. package/dist/cjs/hooks/use-selection-renderer.d.ts.map +1 -1
  90. package/dist/cjs/hooks/use-selection-renderer.js +59 -32
  91. package/dist/cjs/hooks/use-shown-notes.d.ts +11 -1
  92. package/dist/cjs/hooks/use-shown-notes.d.ts.map +1 -1
  93. package/dist/cjs/hooks/use-shown-notes.js +34 -12
  94. package/dist/cjs/index.d.ts +2 -0
  95. package/dist/cjs/index.d.ts.map +1 -1
  96. package/dist/cjs/index.js +1 -0
  97. package/dist/cjs/release-date.js +1 -1
  98. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  99. package/dist/cjs/types.d.ts +64 -0
  100. package/dist/cjs/types.d.ts.map +1 -1
  101. package/dist/esm/api/split-pane.d.ts +1 -0
  102. package/dist/esm/api/split-pane.d.ts.map +1 -1
  103. package/dist/esm/api/split-pane.js +5 -1
  104. package/dist/esm/atoms/calculated-column-fill.atom.d.ts +6 -2
  105. package/dist/esm/atoms/calculated-column-fill.atom.d.ts.map +1 -1
  106. package/dist/esm/atoms/calculated-column-fill.atom.js +6 -2
  107. package/dist/esm/atoms/cell-input-context.atom.d.ts.map +1 -1
  108. package/dist/esm/atoms/fill-options.atom.d.ts +5 -0
  109. package/dist/esm/atoms/fill-options.atom.d.ts.map +1 -1
  110. package/dist/esm/atoms/table-auto-expansion.atom.d.ts +5 -2
  111. package/dist/esm/atoms/table-auto-expansion.atom.d.ts.map +1 -1
  112. package/dist/esm/atoms/table-auto-expansion.atom.js +5 -2
  113. package/dist/esm/components/autocorrect-options-smart-tag/index.d.ts +37 -0
  114. package/dist/esm/components/autocorrect-options-smart-tag/index.d.ts.map +1 -0
  115. package/dist/esm/components/autocorrect-options-smart-tag/index.js +87 -0
  116. package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
  117. package/dist/esm/components/canvas-grid/index.js +307 -59
  118. package/dist/esm/components/canvas-grid/typings.d.ts +45 -0
  119. package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
  120. package/dist/esm/components/embeds/chart-component.d.ts +9 -0
  121. package/dist/esm/components/embeds/chart-component.d.ts.map +1 -1
  122. package/dist/esm/components/embeds/embed-component.d.ts +9 -0
  123. package/dist/esm/components/embeds/embed-component.d.ts.map +1 -1
  124. package/dist/esm/components/embeds/embed-component.js +12 -113
  125. package/dist/esm/components/embeds/embed-draggable.d.ts +17 -2
  126. package/dist/esm/components/embeds/embed-draggable.d.ts.map +1 -1
  127. package/dist/esm/components/embeds/embed-draggable.js +327 -19
  128. package/dist/esm/components/embeds/object-focus.d.ts +32 -0
  129. package/dist/esm/components/embeds/object-focus.d.ts.map +1 -0
  130. package/dist/esm/components/embeds/object-focus.js +118 -0
  131. package/dist/esm/components/embeds/page-gaps.d.ts +67 -0
  132. package/dist/esm/components/embeds/page-gaps.d.ts.map +1 -0
  133. package/dist/esm/components/embeds/page-gaps.js +86 -0
  134. package/dist/esm/components/embeds/pane-copy.d.ts +35 -0
  135. package/dist/esm/components/embeds/pane-copy.d.ts.map +1 -0
  136. package/dist/esm/components/embeds/pane-copy.js +22 -0
  137. package/dist/esm/components/embeds/slicer-component.d.ts +9 -0
  138. package/dist/esm/components/embeds/slicer-component.d.ts.map +1 -1
  139. package/dist/esm/components/embeds/text-box-view.d.ts +18 -0
  140. package/dist/esm/components/embeds/text-box-view.d.ts.map +1 -0
  141. package/dist/esm/components/embeds/text-box-view.js +118 -0
  142. package/dist/esm/components/filter-box/filter-by-color.d.ts.map +1 -1
  143. package/dist/esm/components/filter-box/filter-by-color.js +9 -2
  144. package/dist/esm/components/filter-box/index.d.ts.map +1 -1
  145. package/dist/esm/components/filter-box/index.js +5 -1
  146. package/dist/esm/components/print-preview/page-block.d.ts +46 -0
  147. package/dist/esm/components/print-preview/page-block.d.ts.map +1 -1
  148. package/dist/esm/components/print-preview/page-block.js +122 -4
  149. package/dist/esm/components/print-preview/print-cells.d.ts +5 -0
  150. package/dist/esm/components/print-preview/print-cells.d.ts.map +1 -1
  151. package/dist/esm/components/print-preview/print-cells.js +1 -0
  152. package/dist/esm/components/print-preview/print-preview-dialog.d.ts +16 -2
  153. package/dist/esm/components/print-preview/print-preview-dialog.d.ts.map +1 -1
  154. package/dist/esm/components/print-preview/print-preview-dialog.js +195 -4
  155. package/dist/esm/components/print-preview/settings.d.ts +8 -0
  156. package/dist/esm/components/print-preview/settings.d.ts.map +1 -1
  157. package/dist/esm/components/print-preview/settings.js +4 -1
  158. package/dist/esm/components/print-preview/sheet-page-setup.d.ts.map +1 -1
  159. package/dist/esm/components/print-preview/sheet-page-setup.js +14 -0
  160. package/dist/esm/components/selection/fill-options-menu.d.ts +8 -1
  161. package/dist/esm/components/selection/fill-options-menu.d.ts.map +1 -1
  162. package/dist/esm/components/selection/fill-options-menu.js +5 -3
  163. package/dist/esm/components/selection/index.d.ts +1 -1
  164. package/dist/esm/components/selection/index.d.ts.map +1 -1
  165. package/dist/esm/components/selection/index.js +5 -6
  166. package/dist/esm/components/selection/types.d.ts +13 -8
  167. package/dist/esm/components/selection/types.d.ts.map +1 -1
  168. package/dist/esm/components/sheet-background/index.d.ts +26 -0
  169. package/dist/esm/components/sheet-background/index.d.ts.map +1 -0
  170. package/dist/esm/components/sheet-background/index.js +93 -0
  171. package/dist/esm/components/sort-range-dialog/index.d.ts.map +1 -1
  172. package/dist/esm/components/sort-range-dialog/index.js +5 -2
  173. package/dist/esm/hooks/object-clipboard-payload.d.ts +58 -0
  174. package/dist/esm/hooks/object-clipboard-payload.d.ts.map +1 -0
  175. package/dist/esm/hooks/object-clipboard-payload.js +404 -0
  176. package/dist/esm/hooks/object-spec-schema.generated.d.ts +24 -0
  177. package/dist/esm/hooks/object-spec-schema.generated.d.ts.map +1 -0
  178. package/dist/esm/hooks/object-spec-schema.generated.js +4776 -0
  179. package/dist/esm/hooks/use-chart-clipboard.d.ts +55 -9
  180. package/dist/esm/hooks/use-chart-clipboard.d.ts.map +1 -1
  181. package/dist/esm/hooks/use-chart-clipboard.js +298 -53
  182. package/dist/esm/hooks/use-embeds-charts.d.ts +12 -1
  183. package/dist/esm/hooks/use-embeds-charts.d.ts.map +1 -1
  184. package/dist/esm/hooks/use-embeds-charts.js +83 -16
  185. package/dist/esm/hooks/use-grid-children.d.ts +4 -2
  186. package/dist/esm/hooks/use-grid-children.d.ts.map +1 -1
  187. package/dist/esm/hooks/use-grid-children.js +59 -16
  188. package/dist/esm/hooks/use-selection-renderer.d.ts +16 -5
  189. package/dist/esm/hooks/use-selection-renderer.d.ts.map +1 -1
  190. package/dist/esm/hooks/use-selection-renderer.js +54 -28
  191. package/dist/esm/hooks/use-shown-notes.d.ts +11 -1
  192. package/dist/esm/hooks/use-shown-notes.d.ts.map +1 -1
  193. package/dist/esm/hooks/use-shown-notes.js +23 -12
  194. package/dist/esm/index.d.ts +2 -0
  195. package/dist/esm/index.d.ts.map +1 -1
  196. package/dist/esm/index.js +1 -0
  197. package/dist/esm/release-date.js +1 -1
  198. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  199. package/dist/esm/types.d.ts +64 -0
  200. package/dist/esm/types.d.ts.map +1 -1
  201. package/dist/spreadsheet.min.css +1 -1
  202. package/package.json +4 -4
@@ -8,6 +8,11 @@ export type PrintCellInfo = {
8
8
  blocksSpill: boolean;
9
9
  /** The picture the cell shows (`=IMAGE()`'s result or an in-cell image). */
10
10
  imageUrl?: string;
11
+ /**
12
+ * The cell's value is an error (`#DIV/0!`, `#N/A`, …) — what Page Setup ▸
13
+ * Sheet ▸ "Cell errors as" substitutes for.
14
+ */
15
+ isError: boolean;
11
16
  };
12
17
  export declare const describePrintCell: (cell: CellData | null | undefined, formattedValue: string | null | undefined) => PrintCellInfo;
13
18
  //# sourceMappingURL=print-cells.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"print-cells.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/print-cells.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EAGR,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAUpC,MAAM,MAAM,aAAa,GAAG;IAC1B,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,yFAAyF;IACzF,MAAM,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,WAAW,EAAE,OAAO,CAAC;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,QAAQ,GAAG,IAAI,GAAG,SAAS,EACjC,gBAAgB,MAAM,GAAG,IAAI,GAAG,SAAS,KACxC,aA4BF,CAAC"}
1
+ {"version":3,"file":"print-cells.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/print-cells.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EAGR,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAUpC,MAAM,MAAM,aAAa,GAAG;IAC1B,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,yFAAyF;IACzF,MAAM,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,WAAW,EAAE,OAAO,CAAC;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAUF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,QAAQ,GAAG,IAAI,GAAG,SAAS,EACjC,gBAAgB,MAAM,GAAG,IAAI,GAAG,SAAS,KACxC,aA6BF,CAAC"}
@@ -25,6 +25,7 @@ export const describePrintCell = (cell, formattedValue) => {
25
25
  return {
26
26
  defaultAlignment,
27
27
  imageUrl,
28
+ isError: getExtendedValueError(effectiveValue) !== undefined,
28
29
  spills: !imageUrl && !isNumber && !isNilOrBlank(formattedValue),
29
30
  blocksSpill: blocksOverflow({
30
31
  formattedValue,
@@ -1,7 +1,8 @@
1
1
  import type { CellData, CellFormat } from "@rowsncolumns/common-types";
2
- import type { SelectionArea } from "@rowsncolumns/grid";
2
+ import { type SelectionArea } from "@rowsncolumns/grid";
3
3
  import React from "react";
4
- import type { EmbeddedChart, Sheet } from "../../types";
4
+ import type { BandedRange, EmbeddedChart, EmbeddedObject, Sheet } from "../../types";
5
+ import type { SpreadsheetTheme } from "../canvas-grid/typings";
5
6
  import { type PrintComment } from "./print-comments";
6
7
  import { type PrintSettings } from "./settings";
7
8
  export type PrintPreviewDialogProps = {
@@ -53,6 +54,19 @@ export type PrintPreviewDialogProps = {
53
54
  * no renderer to capture and prints as a titled frame.
54
55
  */
55
56
  charts?: EmbeddedChart[];
57
+ /**
58
+ * The workbook's pictures and shapes — same array the grid renders. Each prints on the page its
59
+ * anchor cell lands on: a picture from its image, a shape from its geometry, fill and outline.
60
+ * Shape text, text boxes, form controls, OLE objects and linked pictures are not drawn.
61
+ */
62
+ embeds?: EmbeddedObject[];
63
+ /**
64
+ * The banded ranges the grid draws (tables' styles included): their fills, font colours and
65
+ * borders print under each cell's own format, as on screen.
66
+ */
67
+ bandedRanges?: BandedRange[];
68
+ /** The workbook theme, for table styles and shapes in theme colours. */
69
+ theme?: SpreadsheetTheme;
56
70
  /**
57
71
  * The sheet's threaded comments, for "Comments and notes ▸ At end of sheet" (each thread with its
58
72
  * replies, Excel's printout). Omitted: the list carries the cells' notes only.
@@ -1 +1 @@
1
- {"version":3,"file":"print-preview-dialog.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/print-preview-dialog.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EAEX,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAaxD,OAAO,KAMN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAIL,KAAK,YAAY,EAIlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAWL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AM,EAAE,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAuGF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAu5BhE,CAAC"}
1
+ {"version":3,"file":"print-preview-dialog.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/print-preview-dialog.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EAEX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAaxE,OAAO,KAMN,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,cAAc,EAOd,KAAK,EACN,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EAIL,KAAK,YAAY,EAIlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAWL,KAAK,aAAa,EAMnB,MAAM,YAAY,CAAC;AAmBpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,iBAAiB,EAAE,CACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,KAChB,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAC/B,kBAAkB,EAAE,CAClB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,KAChB,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC1D,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC7D;;;;OAIG;IACH,WAAW,CAAC,EAAE,CACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,KAChB,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,wEAAwE;IACxE,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,YAAY,EAAE,CAAC;IAC3D,4FAA4F;IAC5F,eAAe,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACzC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAsLF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA4iChE,CAAC"}
@@ -9,12 +9,15 @@
9
9
  // `frozenColumnCount`, per-row/column metadata sizes) or passed
10
10
  // alongside (`getFormattedValue`, `getEffectiveFormat`, …) — no
11
11
  // adapter object, no nested PrintSheet construction.
12
+ import { cellIdentifier } from "@rowsncolumns/grid";
12
13
  import { Cross2Icon } from "@rowsncolumns/icons";
13
14
  import { Button, IconButton, Select, SelectContent, SelectItem, SelectPortal, SelectTrigger, SelectValue, usePortalContainer, } from "@rowsncolumns/ui";
14
15
  import React, { useCallback, useEffect, useMemo, useRef, useState, } from "react";
15
16
  import { createPortal } from "react-dom";
16
17
  import { useGetChartActions } from "../../atoms/chart-actions.atom";
17
- import { DEFAULT_COLUMN_WIDTH, DEFAULT_ROW_HEIGHT } from "../../config";
18
+ import { getBandedCells } from "../../api/banded-ranges";
19
+ import { DEFAULT_COLUMN_WIDTH, DEFAULT_ROW_HEIGHT, defaultSpreadsheetTheme, } from "../../config";
20
+ import { getStringifiedColor } from "../../themes";
18
21
  import { PageBlock } from "./page-block";
19
22
  import { describePrintCell } from "./print-cells";
20
23
  import { collectPrintCommentEntries, COMMENT_LINE_HEIGHT, paginatePrintComments, PrintCommentsPage, } from "./print-comments";
@@ -22,6 +25,14 @@ import { runPrint } from "./run-print";
22
25
  import { DEFAULT_PRINT_SETTINGS, PAPER_SIZES, printedHeadingsSize, resolveContentArea, resolveMargins, resolvePageDimensions, } from "./settings";
23
26
  import { pageHeaderFooter, planHasHeaderFooter, printedPageNumber, printSettingsFromSheet, resolveHeaderFooter, sheetPrintPlan, } from "./sheet-page-setup";
24
27
  import { computePageLayout, measureRange, placeChartsOnPages, resolveScale, } from "./use-page-layout";
28
+ /**
29
+ * A form control's Format Control ▸ Properties ▸ Print object is cleared (`<controlPr print>`
30
+ * false). Excel's default prints it.
31
+ */
32
+ const isPrintObjectCleared = (spec) => {
33
+ const print = spec.controlProperties?.print?.toLowerCase();
34
+ return print === "0" || print === "false";
35
+ };
25
36
  /** A PNG blob as a `data:` URL — the print iframe needs no live object URLs. */
26
37
  const blobToDataUrl = (blob) => new Promise((resolve) => {
27
38
  const reader = new FileReader();
@@ -29,6 +40,62 @@ const blobToDataUrl = (blob) => new Promise((resolve) => {
29
40
  reader.onerror = () => resolve(undefined);
30
41
  reader.readAsDataURL(blob);
31
42
  });
43
+ /**
44
+ * An object's size in sheet px: its own width / height, or, for one anchored to two cells
45
+ * (`toCell`), the span between its anchors.
46
+ */
47
+ const objectSize = (overlay, getColumnWidth, getRowHeight) => {
48
+ const to = overlay.toCell;
49
+ if (!to) {
50
+ return { width: overlay.widthPixels ?? undefined, height: overlay.heightPixels ?? undefined };
51
+ }
52
+ const { anchorCell } = overlay;
53
+ let width = (overlay.toOffsetXPixels ?? 0) - (overlay.offsetXPixels ?? 0);
54
+ for (let c = anchorCell.columnIndex; c < to.columnIndex; c++)
55
+ width += getColumnWidth(c);
56
+ let height = (overlay.toOffsetYPixels ?? 0) - (overlay.offsetYPixels ?? 0);
57
+ for (let r = anchorCell.rowIndex; r < to.rowIndex; r++)
58
+ height += getRowHeight(r);
59
+ return { width: Math.max(1, width), height: Math.max(1, height) };
60
+ };
61
+ /** `format` with its theme colours (fill, font, borders) turned into CSS colours. */
62
+ const resolveFormatColors = (format, theme) => {
63
+ const borders = format.borders
64
+ ? Object.fromEntries(Object.entries(format.borders).map(([side, border]) => [
65
+ side,
66
+ border ? { ...border, color: getStringifiedColor(border.color, theme) } : border,
67
+ ]))
68
+ : undefined;
69
+ return {
70
+ ...format,
71
+ ...(format.backgroundColor !== undefined
72
+ ? { backgroundColor: getStringifiedColor(format.backgroundColor, theme) }
73
+ : {}),
74
+ ...(format.textFormat
75
+ ? {
76
+ textFormat: {
77
+ ...format.textFormat,
78
+ ...(format.textFormat.color !== undefined
79
+ ? { color: getStringifiedColor(format.textFormat.color, theme) }
80
+ : {}),
81
+ },
82
+ }
83
+ : {}),
84
+ ...(borders ? { borders: borders } : {}),
85
+ };
86
+ };
87
+ /** A banded range's format under a cell's own: the cell's fill, font and borders win. */
88
+ const layerFormat = (banded, own) => ({
89
+ ...banded,
90
+ ...own,
91
+ backgroundColor: own?.backgroundColor ?? banded.backgroundColor,
92
+ textFormat: { ...banded.textFormat, ...definedEntries(own?.textFormat) },
93
+ borders: { ...banded.borders, ...definedEntries(own?.borders) },
94
+ });
95
+ /** The entries of `value` that are set (an explicit `undefined` does not hide the band's). */
96
+ const definedEntries = (value) => value
97
+ ? Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== undefined && entry !== null))
98
+ : {};
32
99
  const resolveSheet = (sheet, options) => {
33
100
  const defaultColumnWidth = sheet.defaultColumnWidth ?? DEFAULT_COLUMN_WIDTH;
34
101
  const defaultRowHeight = sheet.defaultRowHeight ?? DEFAULT_ROW_HEIGHT;
@@ -74,7 +141,7 @@ const repeatBands = (sheet, settings) => {
74
141
  const labelClass = "text-xs font-medium text-rnc-foreground/80 mb-1 block";
75
142
  const fieldRowClass = "mb-3";
76
143
  const controlClass = "w-full text-xs border border-solid border-rnc-border rounded-sm px-2 py-1.5 bg-rnc-background text-rnc-foreground focus:outline-none focus:ring-1 focus:ring-ring";
77
- export const PrintPreviewDialog = ({ isOpen, onClose, sheets, activeSheetId, selections, title, getFormattedValue, getEffectiveFormat, getDataRowCount, getDataColumnCount, getCellData, charts, getComments, defaultSettings, activeSheetIds, onSaveAsPdf, }) => {
144
+ export const PrintPreviewDialog = ({ isOpen, onClose, sheets, activeSheetId, selections, title, getFormattedValue, getEffectiveFormat, getDataRowCount, getDataColumnCount, getCellData, charts, embeds, bandedRanges, theme = defaultSpreadsheetTheme, getComments, defaultSettings, activeSheetIds, onSaveAsPdf, }) => {
78
145
  const [settings, setSettings] = useState(() => ({
79
146
  ...DEFAULT_PRINT_SETTINGS,
80
147
  ...defaultSettings,
@@ -297,6 +364,119 @@ export const PrintPreviewDialog = ({ isOpen, onClose, sheets, activeSheetId, sel
297
364
  }
298
365
  return bySheetAndPage;
299
366
  }, [charts, sheetsForScope, pages, settings.repeatFrozenRows, settings.repeatFrozenColumns]);
367
+ // Pictures, shapes, text boxes and form controls: on the page their anchor lands on, like
368
+ // charts. A form control whose Print object box is cleared (`<controlPr print="0">`) stays off.
369
+ const printedObjects = useMemo(() => {
370
+ const bySheetAndPage = new Map();
371
+ const printable = (embeds ?? []).filter((embed) => !embed.hidden &&
372
+ embed.position?.overlayPosition?.anchorCell &&
373
+ ((embed.spec.type === "image" &&
374
+ Boolean(embed.spec.imageUrl)) ||
375
+ embed.spec.type === "shape" ||
376
+ embed.spec.type === "textbox" ||
377
+ (embed.spec.type === "formControl" &&
378
+ !isPrintObjectCleared(embed.spec))));
379
+ if (!printable.length)
380
+ return bySheetAndPage;
381
+ const byId = new Map(printable.map((embed) => [String(embed.embedId), embed]));
382
+ for (const sheet of sheetsForScope) {
383
+ const bounds = sheet.printBounds ?? {
384
+ startRow: 1,
385
+ endRow: Math.max(1, sheet.rowCount),
386
+ startColumn: 1,
387
+ endColumn: Math.max(1, sheet.columnCount),
388
+ };
389
+ const placed = placeChartsOnPages({
390
+ charts: printable.map((embed) => {
391
+ const overlay = embed.position.overlayPosition;
392
+ const size = objectSize(overlay, sheet.getColumnWidth, sheet.getRowHeight);
393
+ return {
394
+ chartId: embed.embedId,
395
+ sheetId: embed.position.sheetId,
396
+ anchorCell: overlay.anchorCell,
397
+ offsetXPixels: overlay.offsetXPixels,
398
+ offsetYPixels: overlay.offsetYPixels,
399
+ widthPixels: size.width,
400
+ heightPixels: size.height,
401
+ };
402
+ }),
403
+ sheetId: sheet.sheetId,
404
+ blocks: pages.filter((page) => page.sheet === sheet).map((page) => page.block),
405
+ startRow: bounds.startRow,
406
+ startColumn: bounds.startColumn,
407
+ repeatRows: settings.repeatFrozenRows && sheet.frozenRows ? sheet.frozenRows : 0,
408
+ repeatColumns: settings.repeatFrozenColumns && sheet.frozenColumns
409
+ ? sheet.frozenColumns
410
+ : 0,
411
+ getColumnWidth: sheet.getColumnWidth,
412
+ getRowHeight: sheet.getRowHeight,
413
+ });
414
+ for (const [pageIndex, list] of placed) {
415
+ bySheetAndPage.set(`${sheet.sheetId}:${pageIndex}`, list.flatMap((frame) => {
416
+ const embed = byId.get(frame.chartId);
417
+ if (!embed)
418
+ return [];
419
+ const rotation = embed.rotation ?? undefined;
420
+ switch (embed.spec.type) {
421
+ case "image":
422
+ return [
423
+ {
424
+ ...frame,
425
+ rotation,
426
+ kind: "image",
427
+ imageUrl: embed.spec.imageUrl,
428
+ crop: embed.spec.crop,
429
+ brightness: embed.spec.brightness,
430
+ contrast: embed.spec.contrast,
431
+ transparency: embed.spec.transparency,
432
+ },
433
+ ];
434
+ case "textbox":
435
+ return [
436
+ { ...frame, rotation, kind: "textbox", spec: embed.spec },
437
+ ];
438
+ case "formControl":
439
+ return [
440
+ {
441
+ ...frame,
442
+ rotation,
443
+ kind: "formControl",
444
+ spec: embed.spec,
445
+ },
446
+ ];
447
+ default:
448
+ return [{ ...frame, rotation, kind: "shape", spec: embed.spec }];
449
+ }
450
+ }));
451
+ }
452
+ }
453
+ return bySheetAndPage;
454
+ }, [embeds, sheetsForScope, pages, settings.repeatFrozenRows, settings.repeatFrozenColumns]);
455
+ // Table styles and banded ranges, per sheet, with their theme colours resolved (print draws
456
+ // only explicit colours), under each cell's own format.
457
+ const bandedBySheet = useMemo(() => {
458
+ const bySheet = new Map();
459
+ if (!bandedRanges?.length)
460
+ return bySheet;
461
+ for (const sheet of sheets) {
462
+ if (!bandedRanges.some((banded) => banded.range.sheetId === sheet.sheetId))
463
+ continue;
464
+ const hiddenRow = (r) => Boolean(sheet.rowMetadata?.[r]?.hiddenByUser || sheet.rowMetadata?.[r]?.hiddenByFilter);
465
+ const hiddenColumn = (c) => Boolean(sheet.columnMetadata?.[c]?.hiddenByUser);
466
+ const cells = getBandedCells(bandedRanges, theme, sheet.sheetId, hiddenRow, hiddenColumn);
467
+ const resolved = new Map();
468
+ for (const [key, format] of cells) {
469
+ resolved.set(key, resolveFormatColors(format, theme));
470
+ }
471
+ bySheet.set(sheet.sheetId, resolved);
472
+ }
473
+ return bySheet;
474
+ }, [bandedRanges, sheets, theme]);
475
+ const getPrintedFormat = useCallback((sheetId, rowIndex, columnIndex) => {
476
+ const own = getEffectiveFormat(sheetId, rowIndex, columnIndex);
477
+ const banded = bandedBySheet.get(sheetId)?.get(cellIdentifier(rowIndex, columnIndex));
478
+ return banded ? layerFormat(banded, own) : own;
479
+ }, [getEffectiveFormat, bandedBySheet]);
300
480
  // Single Date snapshot reused by every page so the printed copies
301
481
  // agree on "now" — Google Sheets does the same so a multi-page print
302
482
  // doesn't tick over a minute mid-document.
@@ -421,12 +601,12 @@ export const PrintPreviewDialog = ({ isOpen, onClose, sheets, activeSheetId, sel
421
601
  i + 1,
422
602
  " of ",
423
603
  pages.length),
424
- React.createElement(PageBlock, { block: block, pageWidth: pageDims.width, pageHeight: pageDims.height, margins: margins, scale: computeScaleForSheet(sheet), showGridlines: settings.showGridlines, showHeadings: settings.showHeadings, showNotes: settings.showNotes, rightToLeft: sheet.rightToLeft, horizontalAlignment: settings.horizontalAlignment, verticalAlignment: settings.verticalAlignment, sheetId: sheet.sheetId, getFormattedValue: getFormattedValue, getEffectiveFormat: getEffectiveFormat, getColumnWidth: sheet.getColumnWidth, getRowHeight: sheet.getRowHeight, merges: sheet.merges, hasNote: hasNote, getCellInfo: getCellInfo, charts: printedCharts
604
+ React.createElement(PageBlock, { block: block, pageWidth: pageDims.width, pageHeight: pageDims.height, margins: margins, scale: computeScaleForSheet(sheet), showGridlines: settings.showGridlines, showHeadings: settings.showHeadings, showNotes: settings.showNotes, printErrors: settings.errors, rightToLeft: sheet.rightToLeft, horizontalAlignment: settings.horizontalAlignment, verticalAlignment: settings.verticalAlignment, sheetId: sheet.sheetId, getFormattedValue: getFormattedValue, getEffectiveFormat: getPrintedFormat, getColumnWidth: sheet.getColumnWidth, getRowHeight: sheet.getRowHeight, merges: sheet.merges, hasNote: hasNote, getCellInfo: getCellInfo, charts: printedCharts
425
605
  .get(`${sheet.sheetId}:${block.index}`)
426
606
  ?.map((chart) => ({
427
607
  ...chart,
428
608
  imageUrl: chartImages[chart.chartId],
429
- })), frozenRowStart: repeat.rows?.start, frozenRowEnd: repeat.rows?.end, frozenColumnStart: repeat.columns?.start, frozenColumnEnd: repeat.columns?.end, headerFooter: fieldsOn || planHasHeaderFooter(sheet.plan)
609
+ })), objects: printedObjects.get(`${sheet.sheetId}:${block.index}`), theme: theme, frozenRowStart: repeat.rows?.start, frozenRowEnd: repeat.rows?.end, frozenColumnStart: repeat.columns?.start, frozenColumnEnd: repeat.columns?.end, headerFooter: fieldsOn || planHasHeaderFooter(sheet.plan)
430
610
  ? {
431
611
  fields: settings.headerFooter,
432
612
  workbookTitle: title,
@@ -532,6 +712,17 @@ export const PrintPreviewDialog = ({ isOpen, onClose, sheets, activeSheetId, sel
532
712
  React.createElement(SelectItem, { value: "none" }, "(None)"),
533
713
  React.createElement(SelectItem, { value: "at-end" }, "At end of sheet"),
534
714
  React.createElement(SelectItem, { value: "as-displayed" }, "As displayed on sheet"))))),
715
+ React.createElement("div", { className: fieldRowClass },
716
+ React.createElement("label", { className: labelClass }, "Cell errors as"),
717
+ React.createElement(Select, { value: settings.errors, onValueChange: (v) => setField("errors", v) },
718
+ React.createElement(SelectTrigger, { "aria-label": "Cell errors as" },
719
+ React.createElement(SelectValue, null)),
720
+ React.createElement(SelectPortal, null,
721
+ React.createElement(SelectContent, { className: "z-[101]" },
722
+ React.createElement(SelectItem, { value: "displayed" }, "displayed"),
723
+ React.createElement(SelectItem, { value: "blank" }, "<blank>"),
724
+ React.createElement(SelectItem, { value: "dash" }, "--"),
725
+ React.createElement(SelectItem, { value: "NA" }, "#N/A"))))),
535
726
  React.createElement("div", { className: fieldRowClass },
536
727
  React.createElement("label", { className: labelClass }, "Page order"),
537
728
  React.createElement(Select, { value: settings.pageOrder, onValueChange: (v) => setField("pageOrder", v) },
@@ -1,3 +1,4 @@
1
+ import type { PrintErrorMode } from "../../types";
1
2
  import type { PrintCommentsMode } from "./print-comments";
2
3
  export declare const DPI = 96;
3
4
  export type PaperSizeId = "letter" | "tabloid" | "legal" | "statement" | "executive" | "folio" | "a3" | "a4" | "a5" | "b4" | "b5" | "ledger" | "note" | "quarto" | "10x14" | "11x17" | "a6" | "b6-jis" | "japanese-postcard" | "envelope-10" | "envelope-9" | "envelope-monarch" | "envelope-dl" | "envelope-c5" | "envelope-c4" | "envelope-c6" | "envelope-b5" | "us-std-fanfold";
@@ -106,6 +107,13 @@ export type PrintSettings = {
106
107
  * turns `showNotes` on).
107
108
  */
108
109
  comments: PrintCommentsMode;
110
+ /**
111
+ * Excel's Page Setup ▸ Sheet ▸ "Cell errors as": what an error cell prints
112
+ * — the error token itself (`displayed`, Excel's default), nothing
113
+ * (`blank`), `--` (`dash`) or `#N/A` (`NA`). Printing only; the cell keeps
114
+ * its value.
115
+ */
116
+ errors: PrintErrorMode;
109
117
  pageOrder: PageOrder;
110
118
  horizontalAlignment: PrintAlignment;
111
119
  verticalAlignment: PrintVerticalAlignment;
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQ1D,eAAO,MAAM,GAAG,KAAK,CAAC;AAKtB,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,SAAS,GACT,OAAO,GACP,WAAW,GACX,WAAW,GACX,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,IAAI,GACJ,QAAQ,GACR,mBAAmB,GACnB,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,gBAAgB,CAAC;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,WAAW,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAuBF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAuGtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAA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EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAqBjC,CAAC"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQ1D,eAAO,MAAM,GAAG,KAAK,CAAC;AAKtB,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,SAAS,GACT,OAAO,GACP,WAAW,GACX,WAAW,GACX,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,IAAI,GACJ,QAAQ,GACR,mBAAmB,GACnB,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,gBAAgB,CAAC;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,WAAW,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAuBF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAuGtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;CAAqC,CAAC;AAEjE,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,GAAI,UAAU,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC;;;;;;CACf,CAAC;AAEnE,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEnD,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,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;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,mBAAmB,EAAE,cAAc,CAAC;IACpC,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,YAAY,EAAE,kBAAkB,CAAC;IACjC;;;;;OAKG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,aA2BpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,aAAa,KAAG,OASzD,CAAC;AAEF,yCAAyC;AACzC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,aAAa,KAAG,OAGxD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,aAAa,KACtB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAkBtD,CAAC;AAkBF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,aAAa,EACvB,UAAS;IACP,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,OAAO,CAAC;CACxB,KACL;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAqBjC,CAAC"}
@@ -171,7 +171,10 @@ export const DEFAULT_PRINT_SETTINGS = {
171
171
  showHeadings: false,
172
172
  showNotes: false,
173
173
  comments: "none",
174
- pageOrder: "over-then-down",
174
+ errors: "displayed",
175
+ // Excel's default page order (Page Setup ▸ Sheet ▸ "Down, then over"), and what a sheet's
176
+ // stored page setup without a page order already gave.
177
+ pageOrder: "down-then-over",
175
178
  horizontalAlignment: "left",
176
179
  verticalAlignment: "top",
177
180
  headerFooter: {
@@ -1 +1 @@
1
- {"version":3,"file":"sheet-page-setup.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/sheet-page-setup.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AAuCpB;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,kBAAkB,GAAG,IAAI,GAAG,SAAS,EAC7C,MAAM,aAAa,KAClB,aA8CF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,cAAc,GAAG;IAC3B,2EAA2E;IAC3E,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,iEAAiE;IACjE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,iGAAiG;IACjG,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,QAAQ,kBAAkB,GAAG,IAAI,GAAG,SAAS,KAC5C,cA4BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,cAAc,EACpB,SAAS,MAAM,KACd;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CASpC,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,GAAI,MAAM,cAAc,KAAG,OAQ1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,cAAc,EACpB,SAAS,MAAM,EACf,UAAU,MAAM,KACf,MAC2E,CAAC;AAE/E,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,SAAS,mBAAmB,KAC3B,oBAAoB,GAAG,SAgEzB,CAAC"}
1
+ {"version":3,"file":"sheet-page-setup.d.ts","sourceRoot":"","sources":["../../../../components/print-preview/sheet-page-setup.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AA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MAAM,CAAC,EAAE,MAAM,CAAA;CASpC,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,GAAI,MAAM,cAAc,KAAG,OAQ1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,cAAc,EACpB,SAAS,MAAM,EACf,UAAU,MAAM,KACf,MAC2E,CAAC;AAE/E,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,SAAS,mBAAmB,KAC3B,oBAAoB,GAAG,SAgEzB,CAAC"}
@@ -84,8 +84,22 @@ export const printSettingsFromSheet = (stored, base) => {
84
84
  pageOrder: setup.pageOrder === "overThenDown" ? "over-then-down" : "down-then-over",
85
85
  horizontalAlignment: options.horizontalCentered ? "center" : "left",
86
86
  verticalAlignment: options.verticalCentered ? "middle" : "top",
87
+ // Page Setup ▸ Sheet ▸ Comments and Cell errors as, as the sheet stores
88
+ // them; a sheet that names neither keeps the host's defaults. `asDisplayed`
89
+ // also turns the cell markers on, which is what "as displayed on sheet"
90
+ // means here.
91
+ comments: (setup.cellComments && COMMENTS_BY_CELL_COMMENTS[setup.cellComments]) ||
92
+ base.comments,
93
+ showNotes: setup.cellComments === "asDisplayed" ? true : base.showNotes,
94
+ errors: setup.errors ?? base.errors,
87
95
  };
88
96
  };
97
+ /** `<pageSetup cellComments>` → the preview's comments mode. */
98
+ const COMMENTS_BY_CELL_COMMENTS = {
99
+ none: "none",
100
+ asDisplayed: "as-displayed",
101
+ atEnd: "at-end",
102
+ };
89
103
  export const sheetPrintPlan = (stored) => {
90
104
  const titles = stored?.printTitles;
91
105
  return {
@@ -23,6 +23,13 @@ export type FillOptionsMenuProps = {
23
23
  onOpenSeriesDialog?(): void;
24
24
  /** Menu dismissed without a choice. */
25
25
  onClose?(): void;
26
+ /**
27
+ * Whether the list is open, when the caller keeps it (the grid does, in its fill-options state,
28
+ * so the list stays as it was when the button is drawn again in another pane). Kept here when
29
+ * omitted: open at once for the right-drag menu, closed for the smart tag.
30
+ */
31
+ open?: boolean;
32
+ onOpenChange?(open: boolean): void;
26
33
  };
27
34
  /**
28
35
  * Excel's fill-type chooser. Two skins over one list: the Auto Fill Options
@@ -31,5 +38,5 @@ export type FillOptionsMenuProps = {
31
38
  * release, adds Linear/Growth Trend and Series…). "Flash Fill" (a vertical drag on a host that
32
39
  * runs Flash Fill) re-fills the target from the source rows as examples.
33
40
  */
34
- export declare const FillOptionsMenu: ({ x, y, width, height, mode, fillType, hasDates, canFlashFill, onChooseFillType, onOpenSeriesDialog, onClose, }: FillOptionsMenuProps) => React.JSX.Element;
41
+ export declare const FillOptionsMenu: ({ x, y, width, height, mode, fillType, hasDates, canFlashFill, onChooseFillType, onOpenSeriesDialog, onClose, open: openProp, onOpenChange, }: FillOptionsMenuProps) => React.JSX.Element;
35
42
  //# sourceMappingURL=fill-options-menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fill-options-menu.d.ts","sourceRoot":"","sources":["../../../../components/selection/fill-options-menu.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,6EAA6E;IAC7E,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,WAAW,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AAO,GAAG,IAAI,CAAC;CACpC,CAAC;AAyBF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,+IAc7B,oBAAoB,sBAkFtB,CAAC"}
@@ -26,8 +26,9 @@ const TREND_ENTRIES = [
26
26
  * release, adds Linear/Growth Trend and Series…). "Flash Fill" (a vertical drag on a host that
27
27
  * runs Flash Fill) re-fills the target from the source rows as examples.
28
28
  */
29
- export const FillOptionsMenu = ({ x, y, width, height, mode, fillType, hasDates, canFlashFill, onChooseFillType, onOpenSeriesDialog, onClose, }) => {
30
- const [open, setOpen] = useState(mode === "menu");
29
+ export const FillOptionsMenu = ({ x, y, width, height, mode, fillType, hasDates, canFlashFill, onChooseFillType, onOpenSeriesDialog, onClose, open: openProp, onOpenChange, }) => {
30
+ const [ownOpen, setOwnOpen] = useState(mode === "menu");
31
+ const open = openProp ?? ownOpen;
31
32
  const isMenu = mode === "menu";
32
33
  // Radix fires `onSelect` and then closes; a close that follows a choice is
33
34
  // not a cancel.
@@ -40,7 +41,8 @@ export const FillOptionsMenu = ({ x, y, width, height, mode, fillType, hasDates,
40
41
  ];
41
42
  return (React.createElement("div", { className: "absolute pointer-events-auto flex items-start justify-start", style: { left: x + width, top: y + height }, onMouseDown: (e) => e.stopPropagation(), "data-testid": "fill-options" },
42
43
  React.createElement(DropdownMenu, { modal: false, open: open, onOpenChange: (next) => {
43
- setOpen(next);
44
+ setOwnOpen(next);
45
+ onOpenChange?.(next);
44
46
  if (!next && isMenu && !choseRef.current)
45
47
  onClose?.();
46
48
  if (!next)
@@ -5,5 +5,5 @@ import type { SelectionNewProps } from "./types";
5
5
  * @param param0
6
6
  * @returns
7
7
  */
8
- export declare const Selection: React.MemoExoticComponent<({ x, y, width, height, fillHandleSize, showFillHandle, offset, stroke, strokeLeftColor, strokeTopColor, strokeRightColor, strokeBottomColor, strokeWidth, strokeTopWidth, strokeRightWidth, strokeBottomWidth, strokeLeftWidth, strokeStyle, fillOpacity, draggable, isDragging, borderCoverWidth, type, range, title, keepTitleWithinBounds, keepTitleWithinVerticalBounds, flipTitleToBottom, table, pivotTable, onMouseDownTitle, onMouseDownResizeHandle, onMouseDownMoveHandle, TitleComponent, onMouseDown, onRequestEditTable, onRequestEditPivotTable, onFlashEnd, zIndex, index, id, showResizeHandles, resizeHandleBorderColor, resizeHandleSize, fill, duration, selectionCount, enableMagicFill, sheetId, activeCell, selection, MagicFillComponent, metadata, readonly, showPasteMenu, onSplitTextToColumns, onChoosePasteOption, agentSuggestion, isHovered, MagicFillContent, QuickEdit, PasteMenu, FillOptionsMenu, fillOptions, onChooseFillType, onOpenFillSeriesDialog, onCloseFillOptions, InsertOptionsSmartTag, insertOptions, onChooseInsertOption, tableAutoExpansion, onChooseTableAutoExpansionOption, flashFillOptions, onChooseFlashFillOption, calculatedColumnFill, onChooseCalculatedColumnOption, errorCheck, errorCheckMenuOpen, onErrorCheckMenuOpenChange, onChooseErrorCheckOption, SuggestionAction, onRemoveQuickEdit, onAddQuickEdit, }: SelectionNewProps) => React.JSX.Element>;
8
+ export declare const Selection: React.MemoExoticComponent<({ x, y, width, height, fillHandleSize, showFillHandle, offset, stroke, strokeLeftColor, strokeTopColor, strokeRightColor, strokeBottomColor, strokeWidth, strokeTopWidth, strokeRightWidth, strokeBottomWidth, strokeLeftWidth, strokeStyle, fillOpacity, draggable, isDragging, borderCoverWidth, type, range, title, keepTitleWithinBounds, keepTitleWithinVerticalBounds, flipTitleToBottom, table, pivotTable, onMouseDownTitle, onMouseDownResizeHandle, onMouseDownMoveHandle, TitleComponent, onMouseDown, onRequestEditTable, onRequestEditPivotTable, onFlashEnd, zIndex, index, id, showResizeHandles, resizeHandleBorderColor, resizeHandleSize, fill, duration, selectionCount, enableMagicFill, sheetId, activeCell, selection, MagicFillComponent, metadata, readonly, showPasteMenu, onSplitTextToColumns, onChoosePasteOption, agentSuggestion, isHovered, MagicFillContent, QuickEdit, PasteMenu, FillOptionsMenu, fillOptions, onChooseFillType, onOpenFillSeriesDialog, onCloseFillOptions, onFillOptionsOpenChange, InsertOptionsSmartTag, insertOptions, onChooseInsertOption, tableAutoExpansion, onChooseTableAutoExpansionOption, flashFillOptions, onChooseFlashFillOption, calculatedColumnFill, onChooseCalculatedColumnOption, errorCheck, errorCheckMenuOpen, onErrorCheckMenuOpenChange, onChooseErrorCheckOption, SuggestionAction, onRemoveQuickEdit, onAddQuickEdit, }: SelectionNewProps) => React.JSX.Element>;
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/selection/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAe,MAAM,OAAO,CAAC;AAmBpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,SAAS,60CAqFjB,iBAAiB,uBAyZrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/selection/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAe,MAAM,OAAO,CAAC;AAkBpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,SAAS,s2CAsFjB,iBAAiB,uBAmZrB,CAAC"}
@@ -1,10 +1,9 @@
1
1
  import { useIsInRtlMirrorLayer } from "@rowsncolumns/grid";
2
2
  import React, { memo } from "react";
3
- import { CalculatedColumnSmartTag } from "../calculated-column-smart-tag";
3
+ import { AutoCorrectOptionsSmartTag } from "../autocorrect-options-smart-tag";
4
4
  import { ErrorCheckSmartTag } from "../error-check-smart-tag";
5
5
  import { InsertOptionsSmartTag as DefaultInsertOptionsSmartTag } from "../insert-options-smart-tag";
6
6
  import { FlashFillOptionsSmartTag } from "../flash-fill-options-smart-tag";
7
- import { TableAutoExpansionSmartTag } from "../table-auto-expansion-smart-tag";
8
7
  import { FillOptionsMenu as DefaultFillOptionsMenu } from "./fill-options-menu";
9
8
  import { MagicFill } from "./magic-fill";
10
9
  import { PasteMenu as DefaultPasteMenu } from "./paste-menu";
@@ -17,7 +16,7 @@ import { SelectionTitle } from "./title";
17
16
  * @param param0
18
17
  * @returns
19
18
  */
20
- export const Selection = memo(({ x = 0, y = 0, width = 0, height = 0, fillHandleSize = 8, showFillHandle, offset = 0, stroke, strokeLeftColor = stroke, strokeTopColor = stroke, strokeRightColor = stroke, strokeBottomColor = stroke, strokeWidth = 0, strokeTopWidth = strokeWidth, strokeRightWidth = strokeWidth, strokeBottomWidth = strokeWidth, strokeLeftWidth = strokeWidth, strokeStyle = "solid", fillOpacity = 1, draggable, isDragging, borderCoverWidth = 5, type, range, title, keepTitleWithinBounds, keepTitleWithinVerticalBounds, flipTitleToBottom, table, pivotTable, onMouseDownTitle, onMouseDownResizeHandle, onMouseDownMoveHandle, TitleComponent = SelectionTitle, onMouseDown, onRequestEditTable, onRequestEditPivotTable, onFlashEnd, zIndex, index, id, showResizeHandles, resizeHandleBorderColor, resizeHandleSize = 6, fill, duration, selectionCount, enableMagicFill, sheetId, activeCell, selection, MagicFillComponent = MagicFill, metadata, readonly, showPasteMenu, onSplitTextToColumns, onChoosePasteOption, agentSuggestion, isHovered, MagicFillContent, QuickEdit = DefaultQuickEdit, PasteMenu = DefaultPasteMenu, FillOptionsMenu = DefaultFillOptionsMenu, fillOptions, onChooseFillType, onOpenFillSeriesDialog, onCloseFillOptions, InsertOptionsSmartTag = DefaultInsertOptionsSmartTag, insertOptions, onChooseInsertOption, tableAutoExpansion, onChooseTableAutoExpansionOption, flashFillOptions, onChooseFlashFillOption, calculatedColumnFill, onChooseCalculatedColumnOption, errorCheck, errorCheckMenuOpen = false, onErrorCheckMenuOpenChange, onChooseErrorCheckOption, SuggestionAction = DefaultSuggestionAction, onRemoveQuickEdit, onAddQuickEdit, }) => {
19
+ export const Selection = memo(({ x = 0, y = 0, width = 0, height = 0, fillHandleSize = 8, showFillHandle, offset = 0, stroke, strokeLeftColor = stroke, strokeTopColor = stroke, strokeRightColor = stroke, strokeBottomColor = stroke, strokeWidth = 0, strokeTopWidth = strokeWidth, strokeRightWidth = strokeWidth, strokeBottomWidth = strokeWidth, strokeLeftWidth = strokeWidth, strokeStyle = "solid", fillOpacity = 1, draggable, isDragging, borderCoverWidth = 5, type, range, title, keepTitleWithinBounds, keepTitleWithinVerticalBounds, flipTitleToBottom, table, pivotTable, onMouseDownTitle, onMouseDownResizeHandle, onMouseDownMoveHandle, TitleComponent = SelectionTitle, onMouseDown, onRequestEditTable, onRequestEditPivotTable, onFlashEnd, zIndex, index, id, showResizeHandles, resizeHandleBorderColor, resizeHandleSize = 6, fill, duration, selectionCount, enableMagicFill, sheetId, activeCell, selection, MagicFillComponent = MagicFill, metadata, readonly, showPasteMenu, onSplitTextToColumns, onChoosePasteOption, agentSuggestion, isHovered, MagicFillContent, QuickEdit = DefaultQuickEdit, PasteMenu = DefaultPasteMenu, FillOptionsMenu = DefaultFillOptionsMenu, fillOptions, onChooseFillType, onOpenFillSeriesDialog, onCloseFillOptions, onFillOptionsOpenChange, InsertOptionsSmartTag = DefaultInsertOptionsSmartTag, insertOptions, onChooseInsertOption, tableAutoExpansion, onChooseTableAutoExpansionOption, flashFillOptions, onChooseFlashFillOption, calculatedColumnFill, onChooseCalculatedColumnOption, errorCheck, errorCheckMenuOpen = false, onErrorCheckMenuOpenChange, onChooseErrorCheckOption, SuggestionAction = DefaultSuggestionAction, onRemoveQuickEdit, onAddQuickEdit, }) => {
21
20
  const unmirror = useIsInRtlMirrorLayer();
22
21
  // Show paste menu
23
22
  const finalShowPasteMenu = !showPasteMenu
@@ -218,11 +217,11 @@ export const Selection = memo(({ x = 0, y = 0, width = 0, height = 0, fillHandle
218
217
  (type === "activeCell" && selectionCount === 0)) ? (React.createElement(MagicFillComponent, { sheetId: sheetId, x: x, y: y, height: height, width: width, type: type, activeCell: activeCell, selection: selection, isHovered: isHovered, MagicFillContent: MagicFillContent, onAddQuickEdit: onAddQuickEdit, backgroundColor: stroke })) : null,
219
218
  type === "quickedit" ? (React.createElement(QuickEdit, { x: x, y: y, width: width, height: height, range: range, sheetId: sheetId, onRemoveQuickEdit: onRemoveQuickEdit })) : null,
220
219
  finalShowPasteMenu && (React.createElement(PasteMenu, { x: x + fillHandleSize / 2, y: y + fillHandleSize / 2, width: width, height: height, onSplitTextToColumns: onSplitTextToColumns, onChoosePasteOption: onChoosePasteOption })),
221
- fillOptions && type === "selection" && onChooseFillType ? (React.createElement(FillOptionsMenu, { x: x + fillHandleSize / 2, y: y + fillHandleSize / 2, width: width, height: height, mode: fillOptions.mode, fillType: fillOptions.fillType, hasDates: fillOptions.hasDates, canFlashFill: fillOptions.canFlashFill, onChooseFillType: onChooseFillType, onOpenSeriesDialog: onOpenFillSeriesDialog, onClose: onCloseFillOptions })) : null,
220
+ fillOptions && type === "selection" && onChooseFillType ? (React.createElement(FillOptionsMenu, { x: x + fillHandleSize / 2, y: y + fillHandleSize / 2, width: width, height: height, mode: fillOptions.mode, fillType: fillOptions.fillType, hasDates: fillOptions.hasDates, canFlashFill: fillOptions.canFlashFill, onChooseFillType: onChooseFillType, onOpenSeriesDialog: onOpenFillSeriesDialog, onClose: onCloseFillOptions, open: fillOptions.open, onOpenChange: onFillOptionsOpenChange })) : null,
222
221
  insertOptions && onChooseInsertOption ? (React.createElement(InsertOptionsSmartTag, { x: x, y: y + fillHandleSize / 2, width: width, height: height, axis: insertOptions.axis, option: insertOptions.option, onChooseOption: onChooseInsertOption })) : null,
223
- tableAutoExpansion && onChooseTableAutoExpansionOption ? (React.createElement(TableAutoExpansionSmartTag, { x: x, y: y + fillHandleSize / 2, width: width, height: height, canStop: tableAutoExpansion.canStop, onChooseOption: onChooseTableAutoExpansionOption })) : null,
222
+ (tableAutoExpansion && onChooseTableAutoExpansionOption) ||
223
+ (calculatedColumnFill && onChooseCalculatedColumnOption) ? (React.createElement(AutoCorrectOptionsSmartTag, { x: x, y: y, width: width, height: height, tableAutoExpansion: tableAutoExpansion, onChooseTableAutoExpansionOption: onChooseTableAutoExpansionOption, calculatedColumn: calculatedColumnFill, onChooseCalculatedColumnOption: onChooseCalculatedColumnOption })) : null,
224
224
  flashFillOptions && onChooseFlashFillOption ? (React.createElement(FlashFillOptionsSmartTag, { x: x, y: y, width: width, height: height, changedCount: flashFillOptions.changedCount, blankCount: flashFillOptions.blankCount, onChooseOption: onChooseFlashFillOption })) : null,
225
- calculatedColumnFill && onChooseCalculatedColumnOption ? (React.createElement(CalculatedColumnSmartTag, { x: x, y: y + fillHandleSize / 2, width: width, height: height, kind: calculatedColumnFill.kind, canStop: calculatedColumnFill.canStop, onChooseOption: onChooseCalculatedColumnOption })) : null,
226
225
  errorCheck &&
227
226
  type === "activeCell" &&
228
227
  onChooseErrorCheckOption &&
@@ -3,6 +3,7 @@ import type { SelectionProps } from "@rowsncolumns/grid";
3
3
  import type { ElementType } from "react";
4
4
  import type { Maybe, PivotTable, SheetRange } from "../../types";
5
5
  import type { AutoFillType, TableView } from "../../types";
6
+ import type { AutoCorrectOptionsSmartTagProps } from "../autocorrect-options-smart-tag";
6
7
  import type { CalculatedColumnSmartTagProps } from "../calculated-column-smart-tag";
7
8
  import type { SelectionAttributes } from "../canvas-grid/typings";
8
9
  import type { ErrorCheckSmartTagProps } from "../error-check-smart-tag";
@@ -42,8 +43,10 @@ export type SelectionNewProps = SelectionProps<SelectionAttributes> & {
42
43
  * Pending Auto Fill Options / right-drag fill menu for THIS selection
43
44
  * (present only on the selection whose range is the fill target).
44
45
  */
45
- fillOptions?: Pick<FillOptionsMenuProps, "mode" | "fillType" | "hasDates" | "canFlashFill">;
46
+ fillOptions?: Pick<FillOptionsMenuProps, "mode" | "fillType" | "hasDates" | "canFlashFill" | "open">;
46
47
  onChooseFillType?(fillType: AutoFillType): void;
48
+ /** The fill-options list opened or closed (see `FillOptionsMenuProps.open`). */
49
+ onFillOptionsOpenChange?(open: boolean): void;
47
50
  onOpenFillSeriesDialog?(): void;
48
51
  onCloseFillOptions?(): void;
49
52
  InsertOptionsSmartTag?: React.ComponentType<InsertOptionsSmartTagProps>;
@@ -54,10 +57,12 @@ export type SelectionNewProps = SelectionProps<SelectionAttributes> & {
54
57
  insertOptions?: Pick<InsertOptionsSmartTagProps, "axis" | "option">;
55
58
  onChooseInsertOption?: InsertOptionsSmartTagProps["onChooseOption"];
56
59
  /**
57
- * Pending AutoCorrect smart tag for THIS selection (present only on the active cell right after a
58
- * table auto-expanded): "Undo Table AutoExpansion" / "Stop Automatically Expanding Tables".
60
+ * Pending AutoCorrect smart tag after a table auto-expanded, on the cell the growth was written
61
+ * from (the grid's AutoCorrect anchor): which of "Undo Table AutoExpansion" / "Stop Automatically
62
+ * Expanding Tables" the host can carry out. Drawn as one button with `calculatedColumnFill`'s
63
+ * entries when both are pending.
59
64
  */
60
- tableAutoExpansion?: Pick<TableAutoExpansionSmartTagProps, "canStop">;
65
+ tableAutoExpansion?: AutoCorrectOptionsSmartTagProps["tableAutoExpansion"];
61
66
  onChooseTableAutoExpansionOption?: TableAutoExpansionSmartTagProps["onChooseOption"];
62
67
  /**
63
68
  * Pending Flash Fill Options smart tag for THIS selection (present only on the active cell a
@@ -66,11 +71,11 @@ export type SelectionNewProps = SelectionProps<SelectionAttributes> & {
66
71
  flashFillOptions?: Pick<FlashFillOptionsSmartTagProps, "changedCount" | "blankCount">;
67
72
  onChooseFlashFillOption?: FlashFillOptionsSmartTagProps["onChooseOption"];
68
73
  /**
69
- * Pending AutoCorrect smart tag for THIS selection (the active cell right after a formula typed
70
- * into a table column): "Undo Calculated Column" / "Overwrite all cells in this column with this
71
- * formula" / "Stop automatically creating calculated columns".
74
+ * Pending AutoCorrect smart tag after a formula typed into a table column, on that cell: which
75
+ * of "Undo Calculated Column" / "Overwrite all cells in this column with this formula" / "Stop
76
+ * automatically creating calculated columns" the host can carry out.
72
77
  */
73
- calculatedColumnFill?: Pick<CalculatedColumnSmartTagProps, "kind" | "canStop">;
78
+ calculatedColumnFill?: AutoCorrectOptionsSmartTagProps["calculatedColumn"];
74
79
  onChooseCalculatedColumnOption?: CalculatedColumnSmartTagProps["onChooseOption"];
75
80
  /**
76
81
  * Excel's error-checking smart tag for THIS selection (present only on the active cell, when it
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../components/selection/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,GAAG;IACpE,gBAAgB,CA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