@sheetxl/sdk 0.7.6 → 0.7.8

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 (88) hide show
  1. package/LICENSE.md +1 -1
  2. package/browser/cjs/{DJeZQ4TP0COwx3O5.cjs → BHQy1gb6LhZAl6Po.cjs} +1 -1
  3. package/browser/cjs/{BZfhxke18dRksnQh.cjs → BNC-gBbT4dvaa3G9.cjs} +1 -1
  4. package/browser/cjs/{BuqLM2n-G-8Ui2F7.cjs → BVFC1rou7PF5DNr3.cjs} +3 -3
  5. package/browser/cjs/{cSC1y3rV2P0gjlRW.cjs → BmTuGdxhn_5I8tFP.cjs} +1 -1
  6. package/browser/cjs/{Cqy2wsiwafkaaIm8.cjs → BpmpLjQP8lrrZ9bj.cjs} +1 -1
  7. package/browser/cjs/{CJ-JCnqmrXv6jcq1.cjs → C4sjrhU-xsx7QwFH.cjs} +1 -1
  8. package/browser/cjs/{DbK-bmadwvDP96VG.cjs → CFpie_H5tCgDXJh1.cjs} +1 -1
  9. package/browser/cjs/{B3YChoE8uWYsB8po.cjs → CHuqHIX7C0ipGAw5.cjs} +1 -1
  10. package/browser/cjs/{BhHMwt5EMpxbIO1H.cjs → CJ1O5QhhXN5rFmrr.cjs} +1 -1
  11. package/browser/cjs/{Dv9NPjCDXh75BR6a.cjs → COrJDitada2AfwVh.cjs} +1 -1
  12. package/browser/cjs/{C_VnfNj8tvpyEYog.cjs → CcIMVlqeSUGyzTV7.cjs} +1 -1
  13. package/browser/cjs/{Dn8oMACSoivY4EOy.cjs → CeQLioAiRRCMsX3t.cjs} +2 -2
  14. package/browser/cjs/{lNxQ_AMcQbOPxqxj.cjs → Clo82K4OyZKvDAnj.cjs} +1 -1
  15. package/browser/cjs/{CaMZMnpoI0WtZTbE.cjs → CrIpyiNDE4xPwiE2.cjs} +1 -1
  16. package/browser/cjs/{DdsV7dwQvwbPY8fN.cjs → D-Um4SAnTUukordZ.cjs} +2 -2
  17. package/browser/cjs/{BZAZH_QaXxk759nf.cjs → D4XMz5zVt7JzjeGg.cjs} +1 -1
  18. package/browser/cjs/{C2_540YzBFF_QkDW.cjs → DS-XPvIFT799Sk86.cjs} +1 -1
  19. package/browser/cjs/{B2UodXpOUlHSIzTE.cjs → DT4OtrjNdc9FRZ-P.cjs} +1 -1
  20. package/browser/cjs/{DLCbJzSKGL4mz2Kg.cjs → DcJo52MjFgV8I8Ta.cjs} +1 -1
  21. package/browser/cjs/{CXkmHi9CjNO6gYPR.cjs → DdaHRXNO_ZxLwZbM.cjs} +1 -1
  22. package/browser/cjs/{gbRetbAohpiKzQhQ.cjs → DnpLGXBsJzbq-pmc.cjs} +1 -1
  23. package/browser/cjs/{gw50ngla3lsqtuyV.cjs → DtDe5E5dY_HtE5EF.cjs} +1 -1
  24. package/browser/cjs/{DAf36QsWu-aUG8NR.cjs → SGuEbr6odZVmA6EG.cjs} +1 -1
  25. package/browser/cjs/{CEtIcmQJ79QEYsHX.cjs → V2sm_Kj7jf1o3aR1.cjs} +1 -1
  26. package/browser/cjs/{BgiB4XbmHXoBeMWF.cjs → eHqmWoLopKR8v8xN.cjs} +1 -1
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/cjs/{GqxScT8Z6UJbzYyH.cjs → jb7k0jDKilOZAkL8.cjs} +1 -1
  29. package/browser/cjs/lndHXVXeKmcc3D0y.cjs +55 -0
  30. package/browser/esm/{DptxrjfOlvBGROOc.mjs → 3RkiE-w3ZH_JiEuq.mjs} +1 -1
  31. package/browser/esm/{BbFqDU0XLWpYAAWh.mjs → 678p2tUCC5HfAGB6.mjs} +3 -3
  32. package/browser/esm/{CFCLa0c2_SlLrvYp.mjs → 8JeL_zgx23qmX2k1.mjs} +1 -1
  33. package/browser/esm/{B9OX1POR2H9SGVs8.mjs → 8hSURctrRvEC3ksb.mjs} +1 -1
  34. package/browser/esm/{BvNa8CReZ1U0Evf2.mjs → B0REg73fTWmxU4ct.mjs} +1 -1
  35. package/browser/esm/{CUzLy8WK2Ct0bDsi.mjs → B4dxZEELu-6B7CQM.mjs} +1 -1
  36. package/browser/esm/{O4HYxW1CK9LJ59k4.mjs → B8-ALKPkqDueFVkU.mjs} +2 -2
  37. package/browser/esm/{Cn1dxSTCmglyaB2p.mjs → BXzGS93N2o22SPQ1.mjs} +1 -1
  38. package/browser/esm/{D-X8WkG0PAHeuAZ9.mjs → B_7lcJsW2uYGrhVA.mjs} +1 -1
  39. package/browser/esm/{B8luvRhebJCRtg4p.mjs → BfDpzeGzUkwXRfNO.mjs} +2 -2
  40. package/browser/esm/{CJDLBKcsUVm3wUZo.mjs → BvWwmU6UATF0gFDo.mjs} +5513 -5486
  41. package/browser/esm/{DaYq0AErpGzt0TDL.mjs → BzW6nWxe637Yelc3.mjs} +1 -1
  42. package/{node/esm/BLDtS5iA1exqm98u.mjs → browser/esm/CGre_shdAXilyAJI.mjs} +1 -1
  43. package/{node/esm/J9gqZ_riHTnXRbXR.mjs → browser/esm/CKYWp9D6b8445Qyx.mjs} +1 -1
  44. package/{node/esm/B2kJPp2FBeibEpKP.mjs → browser/esm/CVmB3eP3XO6oXnYA.mjs} +1 -1
  45. package/browser/esm/{BdFX2KKZjlTKZNcR.mjs → D58Hd1BhXgbBhTmR.mjs} +1 -1
  46. package/{node/esm/jJ7v5a6zu09dIALd.mjs → browser/esm/D6otx1PlsPPAA7uc.mjs} +1 -1
  47. package/browser/esm/{BmtqxNpwt0GsUDOk.mjs → D9YrxP69_e5WiUio.mjs} +1 -1
  48. package/{node/esm/Bofhu64WxcOCKHmw.mjs → browser/esm/DASVxFn5hFcbJRvm.mjs} +1 -1
  49. package/browser/esm/{Cl00c7N-0p_J9ueD.mjs → DYSW26k9CnaA4O3W.mjs} +1 -1
  50. package/browser/esm/{Cu--bFW0A9F3eOBg.mjs → DbExEFrt_CnfT9RE.mjs} +1 -1
  51. package/browser/esm/{CfHam9cHrr9o_pzU.mjs → DgIFvyuw8EldIkmi.mjs} +1 -1
  52. package/browser/esm/{C6uXPQDNQJQfUgTL.mjs → Dyu7SeRmnMns8k7P.mjs} +1 -1
  53. package/{node/esm/B9qammonvxPsV8Iu.mjs → browser/esm/H27XjL72qqYPRcXG.mjs} +1 -1
  54. package/{node/esm/Ciu-v7Am3JjYNeF3.mjs → browser/esm/Y-Q5dE8CWckVWgp1.mjs} +1 -1
  55. package/browser/esm/{3yGyCGozqXEE_Svv.mjs → Zp6rf0N0ANOu0W3C.mjs} +1 -1
  56. package/browser/esm/index.mjs +2 -2
  57. package/browser/esm/{CK44O-jioQqnJwi9.mjs → zOhwNujLCRmercSc.mjs} +1 -1
  58. package/licenses/dependencies.txt +1 -1
  59. package/node/esm/{DptxrjfOlvBGROOc.mjs → 3RkiE-w3ZH_JiEuq.mjs} +1 -1
  60. package/node/esm/{CEFyYUoqP_lZR6j6.mjs → 8dCADyj_MSUDg8IU.mjs} +1 -1
  61. package/node/esm/{BvNa8CReZ1U0Evf2.mjs → B0REg73fTWmxU4ct.mjs} +1 -1
  62. package/node/esm/{Cl09BvfaM01sYDXU.mjs → B20D5rs7WIV7hmx3.mjs} +2 -2
  63. package/node/esm/{D79WI4obIT9MT4N9.mjs → B5qvtL75d78s5PZl.mjs} +1 -1
  64. package/node/esm/{Bg_rTo4xKokET-4k.mjs → BRBVp1j0hqZrUm8F.mjs} +1 -1
  65. package/node/esm/{Cn1dxSTCmglyaB2p.mjs → BXzGS93N2o22SPQ1.mjs} +1 -1
  66. package/node/esm/{DaYq0AErpGzt0TDL.mjs → BzW6nWxe637Yelc3.mjs} +1 -1
  67. package/node/esm/{CjGou4cuFLy0BTGR.mjs → C1k5Lrz-x_8xlG-J.mjs} +1 -1
  68. package/{browser/esm/BLDtS5iA1exqm98u.mjs → node/esm/CGre_shdAXilyAJI.mjs} +1 -1
  69. package/{browser/esm/J9gqZ_riHTnXRbXR.mjs → node/esm/CKYWp9D6b8445Qyx.mjs} +1 -1
  70. package/{browser/esm/B2kJPp2FBeibEpKP.mjs → node/esm/CVmB3eP3XO6oXnYA.mjs} +1 -1
  71. package/node/esm/{GCNf-I5s0xvLW5do.mjs → D1RKIIWEy7bm0ij9.mjs} +1 -1
  72. package/{browser/esm/jJ7v5a6zu09dIALd.mjs → node/esm/D6otx1PlsPPAA7uc.mjs} +1 -1
  73. package/node/esm/{BmtqxNpwt0GsUDOk.mjs → D9YrxP69_e5WiUio.mjs} +1 -1
  74. package/{browser/esm/Bofhu64WxcOCKHmw.mjs → node/esm/DASVxFn5hFcbJRvm.mjs} +1 -1
  75. package/node/esm/{ChHVRl-XsyzH_zEo.mjs → DCwyRFJ_odQt1p5W.mjs} +1 -1
  76. package/node/esm/{Cl00c7N-0p_J9ueD.mjs → DYSW26k9CnaA4O3W.mjs} +1 -1
  77. package/node/esm/{CfHam9cHrr9o_pzU.mjs → DgIFvyuw8EldIkmi.mjs} +1 -1
  78. package/{browser/esm/B9qammonvxPsV8Iu.mjs → node/esm/H27XjL72qqYPRcXG.mjs} +1 -1
  79. package/{browser/esm/Ciu-v7Am3JjYNeF3.mjs → node/esm/Y-Q5dE8CWckVWgp1.mjs} +1 -1
  80. package/node/esm/{3yGyCGozqXEE_Svv.mjs → Zp6rf0N0ANOu0W3C.mjs} +1 -1
  81. package/node/esm/{BuYmvitBD4AXa0au.mjs → fJA55CheAPiMPPVG.mjs} +1 -1
  82. package/node/esm/index.mjs +3636 -3608
  83. package/node/esm/{4TCSsIA1FcFUpZq3.mjs → oZjh_m_aA_353-p9.mjs} +1 -1
  84. package/node/esm/{CK44O-jioQqnJwi9.mjs → zOhwNujLCRmercSc.mjs} +1 -1
  85. package/package.json +7 -7
  86. package/types/index.d.ts +80 -23
  87. package/types/scripting.d.ts +114 -54
  88. package/browser/cjs/bc5m0TQg7Iw3Onom.cjs +0 -55
@@ -1396,7 +1396,7 @@ declare module "type/ITypes" {
1396
1396
  *
1397
1397
  * @defaultValue false
1398
1398
  */
1399
- scrollIntoView?: globalThis.ScrollIntoViewOptions | boolean;
1399
+ scrollIntoView?: boolean | globalThis.ScrollIntoViewOptions;
1400
1400
  /**
1401
1401
  * If `true`, the selected element will automatically receive focus after being selected.
1402
1402
  *
@@ -14115,7 +14115,7 @@ declare module "calculation/formula/IFormulaParser" {
14115
14115
  }
14116
14116
  }
14117
14117
  declare module "utils/_RangeCoordUtils" {
14118
- import { CellCoords, RangeCoords, RangeOrientation } from '@sheetxl/utils';
14118
+ import { IRange } from '@sheetxl/primitives';
14119
14119
  /**
14120
14120
  * This is a more advanced use case of ranges that takes an array of ranges and uses an r-tree algo to
14121
14121
  * determine if the ranges intersects.
@@ -14123,7 +14123,7 @@ declare module "utils/_RangeCoordUtils" {
14123
14123
  * @param ranges
14124
14124
  * @returns A flag indicating if any of the ranges intersect.
14125
14125
  */
14126
- export const rangesArrayIntersect: (ranges: readonly RangeCoords[]) => boolean;
14126
+ export const rangesArrayIntersect: (ranges: readonly IRange.Coords[]) => boolean;
14127
14127
  /**
14128
14128
  * Rolls a potential 2d array into a single array.
14129
14129
  * @param array
@@ -14137,7 +14137,7 @@ declare module "utils/_RangeCoordUtils" {
14137
14137
  * Additional this takes an onVisit callback.
14138
14138
  */
14139
14139
  export const build2DArray: <T>(values: T[], width: number, onVisit?: (val: T) => T) => T[][];
14140
- export const removeRangesWithOffsets: (ranges: RangeCoords[], set: Set<number>) => RangeCoords[];
14140
+ export const removeRangesWithOffsets: (ranges: IRange.Coords[], set: Set<number>) => IRange.Coords[];
14141
14141
  /**
14142
14142
  * Returns true if the outer span intersects the inner span.
14143
14143
  * @remarks
@@ -14153,7 +14153,7 @@ declare module "utils/_RangeCoordUtils" {
14153
14153
  /**
14154
14154
  * Returns true if the range intersections in an orientation.
14155
14155
  */
14156
- export const isSplitRangeSpan: (outerRange: RangeCoords, innerRange: RangeCoords, isColumn: boolean) => boolean;
14156
+ export const isSplitRangeSpan: (outerRange: IRange.Coords, innerRange: IRange.Coords, isColumn: boolean) => boolean;
14157
14157
  /**
14158
14158
  * Subtract Range b from from a.
14159
14159
  *
@@ -14166,27 +14166,27 @@ declare module "utils/_RangeCoordUtils" {
14166
14166
  * * If no interaction then b will be returned.
14167
14167
  * * If beforeSplit === rangeToRemove then empty array is returned.
14168
14168
  */
14169
- export const subtractRange: (beforeSplit: RangeCoords, rangeToRemove: RangeCoords, orientation?: RangeOrientation) => RangeCoords[];
14169
+ export const subtractRange: (beforeSplit: IRange.Coords, rangeToRemove: IRange.Coords, orientation?: IRange.Orientation) => IRange.Coords[];
14170
14170
  /**
14171
14171
  * Visit ranges looking to see if range intersects. If so then onOverlap will be called.
14172
14172
  * @param range
14173
14173
  * @param ranges
14174
14174
  * @param onOverlap
14175
14175
  */
14176
- export const visitRangeIntersects: (ranges: RangeCoords[], range: RangeCoords, onOverlap: (range: RangeCoords, isSplit: boolean, index: number) => void) => void;
14176
+ export const visitRangeIntersects: (ranges: IRange.Coords[], range: IRange.Coords, onOverlap: (range: IRange.Coords, isSplit: boolean, index: number) => void) => void;
14177
14177
  /**
14178
14178
  * Returns a CellCoords that is the top left.
14179
14179
  * @param range A RangeCoord to check.
14180
14180
  */
14181
- export const topLeft: (range: RangeCoords | undefined) => CellCoords;
14182
- export const createColOffsetComparator: (aRange: RangeCoords, bRange: RangeCoords) => ((a: CellCoords, b: CellCoords) => number);
14183
- export const createRowOffsetComparator: (aRange: RangeCoords, bRange: RangeCoords) => ((a: CellCoords, b: CellCoords) => number);
14181
+ export const topLeft: (range: IRange.Coords | undefined) => IRange.CellCoords;
14182
+ export const createColOffsetComparator: (aRange: IRange.Coords, bRange: IRange.Coords) => ((a: IRange.CellCoords, b: IRange.CellCoords) => number);
14183
+ export const createRowOffsetComparator: (aRange: IRange.Coords, bRange: IRange.Coords) => ((a: IRange.CellCoords, b: IRange.CellCoords) => number);
14184
14184
  /**
14185
14185
  * Determines the copy coordinates trying to find the lcm.
14186
14186
  */
14187
- export const coordsLCM: (dest: RangeCoords, // destination (for top,left)
14188
- size: RangeCoords, // source (for sizing)
14189
- fit?: boolean, transpose?: boolean) => RangeCoords;
14187
+ export const coordsLCM: (dest: IRange.Coords, // destination (for top,left)
14188
+ size: IRange.Coords, // source (for sizing)
14189
+ fit?: boolean, transpose?: boolean) => IRange.Coords;
14190
14190
  }
14191
14191
  declare module "collections/RepeatingList" {
14192
14192
  import { IList, IListLike } from "collections/IList";
@@ -15093,8 +15093,7 @@ declare module "workbook/IWorkbook" {
15093
15093
  /**
15094
15094
  * Search the entire Workbook.
15095
15095
  *
15096
- * @param text The text to search for.
15097
- * @param options {@link ICellRange.FindOptions}
15096
+ * @param options The text to search for or {@link ICellRange.FindOptions}
15098
15097
  *
15099
15098
  * @remarks
15100
15099
  * Searches all sheets.
@@ -15102,7 +15101,7 @@ declare module "workbook/IWorkbook" {
15102
15101
  * @see
15103
15102
  * {@link ICellRange.find}
15104
15103
  */
15105
- find(text: string, options?: ICellRange.FindOptions): Iterator<ICell>;
15104
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
15106
15105
  /**
15107
15106
  * Replace all items in the iterator
15108
15107
  *
@@ -15133,6 +15132,7 @@ declare module "workbook/IWorkbook" {
15133
15132
  findValidSheetName(sheetName: string): string;
15134
15133
  /**
15135
15134
  * Indicate if the current character is a valid character for a sheetName.
15135
+ *
15136
15136
  * @param character The string to validate.
15137
15137
  */
15138
15138
  isValidSheetNameCharacter(character: string): boolean;
@@ -15176,6 +15176,7 @@ declare module "workbook/IWorkbook" {
15176
15176
  setTheme(theme: ITheme | null): ITheme;
15177
15177
  /**
15178
15178
  * Is date resolution 1904 instead of 1900 based.
15179
+ *
15179
15180
  * @see
15180
15181
  * {@link https://support.microsoft.com/en-us/office/date-systems-in-excel-e7fe7167-48a9-4b96-bb53-5612a800b487}
15181
15182
  */
@@ -19539,7 +19540,7 @@ declare module "sheet/clipboard/_ClipboardUtils" {
19539
19540
  */
19540
19541
  export const parseAsTable: (htmlDoc: Document, plainTextArray: string[][], parser: IHTMLParser.TableParser) => boolean;
19541
19542
  }
19542
- declare module "utils/CSSUtils" {
19543
+ declare module "utils/_CSSUtils" {
19543
19544
  import { TextDecoration as CSSTextDecoration } from 'csstype';
19544
19545
  import { Bounds } from '@sheetxl/utils';
19545
19546
  import { IColor } from "color/index";
@@ -19840,7 +19841,7 @@ declare module "sheet/header/_HeaderUtils" {
19840
19841
  export const createRunsFromSelection: (header: ISheetHeader, selection: IRangeSelection.Coords, maxRange: IRange.Coords) => ITypes.RunCoordValue<ISheetHeader.SelectedRun>[];
19841
19842
  }
19842
19843
  declare module "sheet/header/SheetCellHeader" {
19843
- import { RangeOrientation } from '@sheetxl/utils';
19844
+ import { IRange } from '@sheetxl/primitives';
19844
19845
  import { IStyle, IStyleCollection } from "style/index";
19845
19846
  import { ICell, ICellHeader } from "cell/index";
19846
19847
  import { ISheetHeader } from "sheet/header/ISheetHeader";
@@ -19871,7 +19872,7 @@ declare module "sheet/header/SheetCellHeader" {
19871
19872
  /** {@inheritDoc ICellHeader.getDisplayText} */
19872
19873
  getDisplayText(): string;
19873
19874
  /** {@inheritDoc ICellHeader.getOrientation} */
19874
- getOrientation(): RangeOrientation;
19875
+ getOrientation(): IRange.Orientation;
19875
19876
  /** {@inheritDoc ICellHeader.isHidden} */
19876
19877
  isHidden(): boolean;
19877
19878
  /** {@inheritDoc ICellHeader.isCustomSize} */
@@ -19964,7 +19965,7 @@ declare module "sheet/header/SheetHeader" {
19964
19965
  constructor(options: SheetHeader.ConstructorOptions);
19965
19966
  /** {@inheritDoc IListener.ISource.addListeners} */
19966
19967
  addListeners(listeners: ISheetHeader.IListeners, options?: IListener.Options): IListener.Remove;
19967
- protected _invalidSizes(): void;
19968
+ protected _invalidSizes(force?: boolean): void;
19968
19969
  protected _onHeaderChange(): void;
19969
19970
  /** {@inheritDoc ISheetHeader.getSheet} */
19970
19971
  getSheet(): ISheet;
@@ -21668,7 +21669,7 @@ declare module "sheet/SheetRanges" {
21668
21669
  /** {@inheritDoc ICellRanges.addListener} */
21669
21670
  addListener(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
21670
21671
  /** {@inheritDoc ICellRanges.find} */
21671
- find(findText: string, options?: ICellRange.FindOptions): Iterator<ICell>;
21672
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
21672
21673
  /** {@inheritDoc ICellRanges.getFlattened} */
21673
21674
  getFlattened(options?: ICellRange.GetFlattenOptions): this;
21674
21675
  /** {@inheritDoc ICellRanges.getVisible} */
@@ -21682,15 +21683,15 @@ declare module "sheet/SheetRanges" {
21682
21683
  /** {@inheritDoc ICellRanges.getStyle} */
21683
21684
  getStyle(): IStyle;
21684
21685
  /** {@inheritDoc ICellRanges.merge} */
21685
- merge(options?: ICellRange.MergeOptions | IRange.Orientations): this;
21686
+ merge(options?: IRange.Orientations | ICellRange.MergeOptions): this;
21686
21687
  /** {@inheritDoc ICellRanges.unmerge} */
21687
21688
  unmerge(options?: ITransaction.OperationOptions): this;
21688
21689
  /** {@inheritDoc ICellRanges.getMerges} */
21689
21690
  getMerges(): IRange.Coords[];
21690
21691
  /** {@inheritDoc ICellRanges.insert} */
21691
- insert(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
21692
+ insert(options?: IRange.Orientation | ICellRange.InsertOptions): this;
21692
21693
  /** {@inheritDoc ICellRanges.delete} */
21693
- delete(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
21694
+ delete(options?: IRange.Orientation | ICellRange.DeleteOptions): this;
21694
21695
  /** {@inheritDoc ICellRanges.insertFrom} */
21695
21696
  insertFrom(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): Promise<this | null>;
21696
21697
  /** {@inheritDoc ICellRanges.copyFrom} */
@@ -22223,9 +22224,9 @@ declare module "sheet/Sheet" {
22223
22224
  /** @internal */
22224
22225
  protected _insertFrom(ranges: readonly IRange.Coords[], source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): Promise<IRange.Coords>;
22225
22226
  /** @internal */
22226
- protected _insertCells(ranges: readonly IRange.Coords[], orientation: IRange.Orientation, options?: ITransaction.OperationOptions, coordValidator?: CoordUtils.CoordValidator): void;
22227
+ protected _insertCells(ranges: readonly IRange.Coords[], options?: IRange.Orientation | ICellRange.InsertOptions, coordValidator?: CoordUtils.CoordValidator): void;
22227
22228
  /** @internal */
22228
- protected _deleteCells(ranges: readonly IRange.Coords[], orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): void;
22229
+ protected _deleteCells(ranges: readonly IRange.Coords[], options?: IRange.Orientation | ICellRange.DeleteOptions): void;
22229
22230
  /**
22230
22231
  * Automatically adjusts row heights and column widths to fit cell content and styles.
22231
22232
  * - Merges and sorts input ranges for efficient processing.
@@ -22279,9 +22280,9 @@ declare module "sheet/Sheet" {
22279
22280
  /** {@inheritDoc ISheet.getSelectedCell} */
22280
22281
  getSelectedCell(): ICell;
22281
22282
  /** {@inheritDoc ISheet.find} */
22282
- find(text: string, options?: ICellRange.FindOptions): Iterator<ICell>;
22283
+ find(options?: string | ICellRange.FindOptions): Iterator<ICell>;
22283
22284
  /** @internal */
22284
- protected _find(ranges: readonly IRange.Coords[], findText: string, options?: ICellRange.FindOptions): Iterator<ICell>;
22285
+ protected _find(ranges: readonly IRange.Coords[], options: string | ICellRange.FindOptions): Iterator<ICell>;
22285
22286
  /** {@inheritDoc ISheet.isDate1904} */
22286
22287
  isDate1904(): boolean;
22287
22288
  /** @internal */
@@ -22293,7 +22294,7 @@ declare module "sheet/Sheet" {
22293
22294
  /** {@inheritDoc ISheet.getColumnWidthAsFontUnit} */
22294
22295
  getColumnWidthAsFontUnit(pixelWidth: number): number;
22295
22296
  /**
22296
- * col width in pixels
22297
+ * col width in character units
22297
22298
  * @internal
22298
22299
  */
22299
22300
  protected _defaultColWidth(): number;
@@ -22305,13 +22306,15 @@ declare module "sheet/Sheet" {
22305
22306
  /** {@inheritDoc ISheet.getProtection} */
22306
22307
  getProtection(): ISheetProtection;
22307
22308
  /** @internal */
22308
- protected _selectSheet(coords: IRange.Coords, scrollIntoView?: globalThis.ScrollIntoViewOptions | boolean): Promise<boolean>;
22309
+ protected _selectSheet(coords: IRange.Coords, scrollIntoView?: boolean | ICellRange.ScrollIntoViewOptions): Promise<boolean>;
22309
22310
  /** {@inheritDoc ISheet.scrollTo} */
22310
22311
  scrollTo(coords: Partial<IRange.Coords>, options?: ISheet.ScrollToOptions): Promise<boolean>;
22311
22312
  /** @internal */
22312
- protected _commitAndAutoSelect(trans: ITransaction, selection: Partial<IRangeSelection.Coords>, selectOptions?: boolean | ICellRange.SelectOptions, commitOptions?: ITransaction.StoreOperationOptions<CommitView>): Promise<IRange.Coords[]>;
22313
+ protected _resolveSelectOptions(selectOptions: boolean | ICellRange.SelectOptions, orientation: IRange.Orientation): ICellRange.SelectOptions;
22313
22314
  /** @internal */
22314
- protected _autoSelect(options?: boolean | ICellRange.SelectOptions, selection?: Partial<IRangeSelection.Coords>): Promise<IRange.Coords[]>;
22315
+ protected _commitAndAutoSelect(trans: ITransaction, selection: Partial<IRangeSelection.Coords>, selectOptions?: boolean | ICellRange.SelectOptions, commitOptions?: ITransaction.StoreOperationOptions<CommitView>, orientation?: IRange.Orientation): Promise<IRange.Coords[]>;
22316
+ /** @internal */
22317
+ protected _autoSelect(options?: boolean | ICellRange.SelectOptions, selection?: Partial<IRangeSelection.Coords>, orientation?: IRange.Orientation): Promise<IRange.Coords[]>;
22315
22318
  /** {@inheritDoc ISheet.getSelection} */
22316
22319
  getSelection(): IRangeSelection;
22317
22320
  /** {@inheritDoc ISheet.getView} */
@@ -22490,10 +22493,12 @@ declare module "sheet/SheetRange" {
22490
22493
  protected _deriveRange(address: ICellRange.Address, options: ICellRange.GetRangeOptions, callback?: (newCoords: IRange.Coords, origCoords: IRange.Coords) => IRange.Coords): this;
22491
22494
  /** @internal */
22492
22495
  protected _validateMaxSize(maxSize?: number): void;
22493
- /** {@inheritDoc ICellRange[Symbol.iterator]} */
22494
- [Symbol.iterator](): IterableIterator<Scalar>;
22495
22496
  /** {@inheritDoc ICellRange.entries} */
22496
22497
  entries(options?: ICellRange.IteratorOptions): IterableIterator<ICellRange.Entry>;
22498
+ /** {@inheritDoc ICellRange[Symbol.iterator]} */
22499
+ [Symbol.iterator](): IterableIterator<Scalar>;
22500
+ /** {@inheritDoc ICellRange.values} */
22501
+ values(options?: ICellRange.IteratorOptions): IterableIterator<Scalar>;
22497
22502
  /** {@inheritDoc ICellRange.forEach} */
22498
22503
  forEach<T>(callback: ICellRange.ForEachCallback, optionsIterator?: ICellRange.IteratorOptions): T | void;
22499
22504
  /** @internal */
@@ -22525,7 +22530,7 @@ declare module "sheet/SheetRange" {
22525
22530
  /** {@inheritDoc ICellRange.select} */
22526
22531
  select(options?: ICellRange.SelectOptions): Promise<this>;
22527
22532
  /** {@inheritDoc ICellRange.find} */
22528
- find(findText: string, options?: ICellRange.FindOptions): Iterator<ICell>;
22533
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
22529
22534
  /** {@inheritDoc ICellRange.getFixed} */
22530
22535
  getFixed(options: ICellRange.GetFixedOptions): this;
22531
22536
  /** {@inheritDoc ICellRange.getSurrounding} */
@@ -22627,13 +22632,13 @@ declare module "sheet/SheetRange" {
22627
22632
  /** {@inheritDoc ICellRange.unmerge} */
22628
22633
  unmerge(options?: ITransaction.OperationOptions): this;
22629
22634
  /** {@inheritDoc ICellRange.insert} */
22630
- insert(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
22635
+ insert(options?: IRange.Orientation | ICellRange.InsertOptions): this;
22631
22636
  /** {@inheritDoc ICellRange.insertFrom} */
22632
22637
  insertFrom(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): Promise<this | null>;
22633
22638
  /** {@inheritDoc ICellRange.copyFrom} */
22634
22639
  copyFrom(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.CopyOptions): Promise<this | null>;
22635
22640
  /** {@inheritDoc ICellRange.delete} */
22636
- delete(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
22641
+ delete(options?: IRange.Orientation | ICellRange.DeleteOptions): this;
22637
22642
  /** {@inheritDoc ICellRange.sort} */
22638
22643
  sort(options?: boolean | (ISort.RangeOptions & ITransaction.OperationOptions)): this;
22639
22644
  /** {@inheritDoc ICellRange.doBatch} */
@@ -22882,7 +22887,7 @@ declare module "workbook/Workbook" {
22882
22887
  /** @internal */
22883
22888
  protected _findOffsetForId(id: number, refs: SheetRef[]): number;
22884
22889
  /** {@inheritDoc IWorkbook.find} */
22885
- find(text: string, options?: ICellRange.FindOptions): Iterator<ICell>;
22890
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
22886
22891
  /** {@inheritDoc IWorkbook.replace} */
22887
22892
  replace(cells: Iterator<ICell>, replace: ICell.Update | ((original: ICell) => ICell.Update), options?: IWorkbook.ReplaceOptions): IWorkbook.ReplaceResults;
22888
22893
  /** @internal */
@@ -23408,7 +23413,7 @@ declare module "sheet/ISheet" {
23408
23413
  * @see
23409
23414
  * {@link ICellRange.find}
23410
23415
  */
23411
- find(text: string, options?: ICellRange.FindOptions): Iterator<ICell>;
23416
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
23412
23417
  /**
23413
23418
  * Enable and return an {@link IAutoFilter}.
23414
23419
  *
@@ -23802,7 +23807,7 @@ declare module "sheet/ISheet" {
23802
23807
  * @remarks
23803
23808
  * This should only be handled by one consumer.
23804
23809
  */
23805
- onRequestScrollIntoView?(source: ISheet, options: ScrollToOptions): Promise<boolean>;
23810
+ onRequestScrollIntoView?(source: ISheet, options: ISheet.ScrollToOptions): Promise<boolean>;
23806
23811
  /**
23807
23812
  * Request that the sheet become focused.
23808
23813
  * @returns A promise indicating if the focus was honored.
@@ -31595,7 +31600,7 @@ declare module "cellRange/ICellRanges" {
31595
31600
  /**
31596
31601
  * {@inheritDoc ICellRange.find}
31597
31602
  */
31598
- find(findText: string, options?: ICellRange.FindOptions): Iterator<ICell>;
31603
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
31599
31604
  /**
31600
31605
  * Iterates over the values, yielding each values in the collection.
31601
31606
  *
@@ -31631,7 +31636,7 @@ declare module "cellRange/ICellRanges" {
31631
31636
  /**
31632
31637
  * {@inheritDoc ICellRange.merge}
31633
31638
  */
31634
- merge(options?: ICellRange.MergeOptions | IRange.Orientations): this;
31639
+ merge(options?: IRange.Orientations | ICellRange.MergeOptions): this;
31635
31640
  /**
31636
31641
  * {@inheritDoc ICellRange.unmerge}
31637
31642
  */
@@ -31639,11 +31644,11 @@ declare module "cellRange/ICellRanges" {
31639
31644
  /**
31640
31645
  * {@inheritDoc ICellRange.insert}
31641
31646
  */
31642
- insert(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
31647
+ insert(options?: IRange.Orientation | ICellRange.InsertOptions): this;
31643
31648
  /**
31644
31649
  * {@inheritDoc ICellRange.delete}
31645
31650
  */
31646
- delete(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
31651
+ delete(options?: IRange.Orientation | ICellRange.DeleteOptions): this;
31647
31652
  /**
31648
31653
  * {@inheritDoc ICellRange.insertFrom}
31649
31654
  */
@@ -32438,6 +32443,7 @@ declare module "cellRange/ICellRange" {
32438
32443
  setValues(values: ICellRange.ValuesUpdate, options?: ICellRange.SetValuesOptions): this;
32439
32444
  /**
32440
32445
  * Provides a convenient method for setting values with a range of calls.
32446
+ *
32441
32447
  * @param update {@link ICellRange.Update}
32442
32448
  * @param options {@link ICellRange.UpdateCellsOptions}
32443
32449
  * @returns The current `ICellRange`.
@@ -32549,10 +32555,9 @@ declare module "cellRange/ICellRange" {
32549
32555
  /**
32550
32556
  * Returns an iterator of ICells that match the results.
32551
32557
  *
32552
- * @param text The text to search for.
32553
- * @param options {@link FindOptions}
32558
+ * @param options The text to search for or {@link FindOptions}
32554
32559
  */
32555
- find(text: string, options?: ICellRange.FindOptions): Iterator<ICell>;
32560
+ find(options: string | ICellRange.FindOptions): Iterator<ICell>;
32556
32561
  /**
32557
32562
  * Sort the given range.
32558
32563
  *
@@ -32570,28 +32575,28 @@ declare module "cellRange/ICellRange" {
32570
32575
  * By default the values will direction in whichever direction the selection shape is smaller.
32571
32576
  * For example a selection with a 5 column by 1 row will direction Down (rows).
32572
32577
  * Note - This will error if direction data will fall outsize of the max sheet size.
32573
- * @param orientation The direction in which to shift existing cells.
32578
+ * @param options The orientation or The direction in which to shift existing cells.
32574
32579
  * Defaults to the orientation where the range's dimension is smaller (e.g., shifts down if the range is wider than it is tall).
32575
32580
  * See {@link ICellRange.getDefaultShiftOrientation} for details on the default behavior.
32576
- * @param options {@link ITransaction.OperationOptions}
32581
+ * See {@link ITransaction.OperationOptions}
32577
32582
  * @throws `Error` If the insertion would cause data to exceed the maximum sheet size.
32578
32583
  * @returns Current `ICellRange`.
32579
32584
  */
32580
- insert(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
32585
+ insert(options?: IRange.Orientation | ICellRange.InsertOptions): this;
32581
32586
  /**
32582
32587
  * Delete the cells within the range and shifts the remaining cells to fill the gap.
32583
32588
  *
32584
- * @param orientation The direction in which to shift the remaining cells.
32585
- * Defaults to the orientation where the range's dimension is smaller (e.g., shifts left if the range is taller than it is wide).
32589
+ * @param options The orientation or The direction in which to shift existing cells.
32590
+ * Defaults to the orientation where the range's dimension is smaller (e.g., shifts down if the range is wider than it is tall).
32586
32591
  * See {@link ICellRange.getDefaultShiftOrientation} for details on the default behavior.
32587
- * @param options {@link ITransaction.OperationOptions}
32592
+ * See {@link ITransaction.OperationOptions}
32588
32593
  * @returns Current `ICellRange`.
32589
32594
  *
32590
32595
  * @remarks
32591
32596
  * This is different from clearing cells, which removes their content but doesn't affect the
32592
32597
  * overall sheet structure. Deleting cells results in a shift of the remaining data.
32593
32598
  */
32594
- delete(orientation?: IRange.Orientation, options?: ITransaction.OperationOptions): this;
32599
+ delete(options?: IRange.Orientation | ICellRange.DeleteOptions): this;
32595
32600
  /**
32596
32601
  * Returns a snapshot of the current range's data and formatting suitable for copying or archiving.
32597
32602
  *
@@ -32822,6 +32827,13 @@ declare module "cellRange/ICellRange" {
32822
32827
  * @returns An iterator that yields `[ICell.IteratorContext, Value]` tuples for each value within the range.
32823
32828
  */
32824
32829
  entries(options?: ICellRange.IteratorOptions): IterableIterator<ICellRange.Entry>;
32830
+ /**
32831
+ * Returns the values within the range, yielding each value.
32832
+ *
32833
+ * @param options Configuration options for the iterator, such as filtering or sorting.
32834
+ * @returns An iterator that yields `[ICell.IteratorContext, Value]` tuples for each value within the range.
32835
+ */
32836
+ values(options?: ICellRange.IteratorOptions): IterableIterator<Scalar>;
32825
32837
  /**
32826
32838
  * Iterates over the cells within the range, applying the provided callback function to each cell.
32827
32839
  *
@@ -32877,6 +32889,28 @@ declare module "cellRange/ICellRange" {
32877
32889
  */
32878
32890
  interface GetRangeOptions {
32879
32891
  }
32892
+ /**
32893
+ * Options for `ICellRange.delete`.
32894
+ */
32895
+ interface InsertOptions extends ITransaction.OperationOptions {
32896
+ /**
32897
+ * The direction in which to shift existing cells.
32898
+ * Defaults to the orientation where the range's dimension is smaller (e.g., shifts down if the range is wider than it is tall).
32899
+ * See {@link ICellRange.getDefaultShiftOrientation}
32900
+ */
32901
+ orientation?: IRange.Orientation;
32902
+ }
32903
+ /**
32904
+ * Options for `ICellRange.delete`.
32905
+ */
32906
+ interface DeleteOptions extends ITransaction.OperationOptions {
32907
+ /**
32908
+ * The direction in which to shift existing cells.
32909
+ * Defaults to the orientation where the range's dimension is smaller (e.g., shifts down if the range is wider than it is tall).
32910
+ * See {@link ICellRange.getDefaultShiftOrientation}
32911
+ */
32912
+ orientation?: IRange.Orientation;
32913
+ }
32880
32914
  /**
32881
32915
  * Shorthand for persisting.
32882
32916
  */
@@ -33342,6 +33376,12 @@ declare module "cellRange/ICellRange" {
33342
33376
  * Options for {@link ICellRange.find}.
33343
33377
  */
33344
33378
  interface FindOptions extends FindCriteria {
33379
+ /**
33380
+ * The text to search for.
33381
+ *
33382
+ * @required
33383
+ */
33384
+ text: string;
33345
33385
  /**
33346
33386
  * Provides custom logic for matching values during the find operation.
33347
33387
  *
@@ -33483,6 +33523,15 @@ declare module "cellRange/ICellRange" {
33483
33523
  * Alias type for count results by type.
33484
33524
  */
33485
33525
  type Counts = Partial<Record<ICell.Content, number>>;
33526
+ interface ScrollIntoViewOptions extends globalThis.ScrollIntoViewOptions {
33527
+ /**
33528
+ * If provided then will only scroll in the provided orientation.
33529
+ *
33530
+ * @remarks
33531
+ * This is useful for only scrolling vertically or horizontally for insert/deleteCells
33532
+ */
33533
+ orientation?: IRange.Orientation;
33534
+ }
33486
33535
  /**
33487
33536
  * Extends SelectionOptions to include the option to adjust the anchor cell.
33488
33537
  */
@@ -33496,6 +33545,17 @@ declare module "cellRange/ICellRange" {
33496
33545
  * If the current anchor is not within the current range this will be forced to `true`.
33497
33546
  */
33498
33547
  anchor?: boolean | Partial<IRange.CellCoords>;
33548
+ /**
33549
+ * If `true` or if a valid `ScrollIntoViewOptions` object is provided,
33550
+ * the selected element will be scrolled into view.
33551
+ *
33552
+ * @remarks
33553
+ * - If a `ScrollIntoViewOptions` object is provided, it will control the exact scrolling behavior.
33554
+ * - If `false` (or omitted), the selected element will not be scrolled into view.
33555
+ *
33556
+ * @defaultValue false
33557
+ */
33558
+ scrollIntoView?: boolean | ICellRange.ScrollIntoViewOptions;
33499
33559
  }
33500
33560
  /**
33501
33561
  * Options for customizing how values are retrieved from a range and returned as a 2D array.