@sheetxl/sdk 0.6.1 → 0.6.3

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 (86) hide show
  1. package/browser/cjs/{C3C2jYHm94FL4qTg.cjs → B7aSrdNhAu3YPmKY.cjs} +1 -1
  2. package/browser/cjs/{DeUctYAvux2YZWvl.cjs → BX5T3MKMPhtGCuWI.cjs} +1 -1
  3. package/browser/cjs/{DIwJW1nj1WXpQ_MU.cjs → Bem8IEdD3zw5V2Il.cjs} +1 -1
  4. package/browser/cjs/{aljC3j1EM5st9ua_.cjs → Bse8YStFOPTm75yq.cjs} +1 -1
  5. package/browser/cjs/{DA7lUsUw2lxUL-VV.cjs → BuqJzhXsgW7u5MYG.cjs} +1 -1
  6. package/browser/cjs/{Cyxa9b2WirgdoFZl.cjs → C-78O5T-glBvYaQL.cjs} +1 -1
  7. package/browser/cjs/{CXZ9TPiALO_TjW70.cjs → C37EQ6wTy6zRi0b_.cjs} +1 -1
  8. package/browser/cjs/{PDSwyurYhISoatcG.cjs → C6QXyjy1PGyEX68F.cjs} +1 -1
  9. package/browser/cjs/{CYEX8hbFS9-wUHB2.cjs → C8jkUk-iY0bu9Bc2.cjs} +1 -1
  10. package/browser/cjs/{DlCkB521kTdFnfy9.cjs → CTdOZfswQOKeCaPF.cjs} +1 -1
  11. package/browser/cjs/{DJlD3gSYHnBWf8Iq.cjs → CqF41LKo7R0Hyf2h.cjs} +1 -1
  12. package/browser/cjs/{DZ6roGct8QixrO8V.cjs → D36nRoLYLx7i_aS9.cjs} +1 -1
  13. package/browser/cjs/{DJZIT-c6sFYHuUK4.cjs → D5KrA2TSGsH7WBpn.cjs} +1 -1
  14. package/browser/cjs/Du7q96hwiHKCBYsI.cjs +54 -0
  15. package/browser/cjs/{BOM_T79e0S1Cxi-x.cjs → Hf8USYcItoojGATA.cjs} +3 -3
  16. package/browser/cjs/{CRFNYD6qijrA2jS0.cjs → IKg7k-beNg74DZ3L.cjs} +2 -2
  17. package/browser/cjs/{oyWJFwh00VEdmUXv.cjs → I_VfhXNyTWVzJH17.cjs} +1 -1
  18. package/browser/cjs/{2LZKOqV0ujP2JW5B.cjs → M-THW9W66wtKo2hj.cjs} +1 -1
  19. package/browser/cjs/{C2vEZRkecRC9hXoi.cjs → MMqKicnyH0WnMgQt.cjs} +1 -1
  20. package/browser/cjs/{DJcaUPo2LSLMI6Fz.cjs → OpUBKLAOF1oHKqjb.cjs} +1 -1
  21. package/browser/cjs/{_M36HAfC5L8lXYIO.cjs → RcN6zAGgrwyHOrlO.cjs} +1 -1
  22. package/browser/cjs/{D6PXWt-1RWxjYwc3.cjs → fStg4-9fenwnVE6E.cjs} +1 -1
  23. package/browser/cjs/index.cjs +2 -2
  24. package/browser/cjs/{CEeRwc5pKiUIr_jp.cjs → j3ddmq8gezG5RCdi.cjs} +1 -1
  25. package/browser/cjs/{CZ3zPU8Fjuqgt6bY.cjs → jTv-mLbezNGe8EUD.cjs} +1 -1
  26. package/browser/cjs/{C5fuxEco7AS1E1Du.cjs → km9cnbV7di2dq2Ff.cjs} +1 -1
  27. package/browser/cjs/{C0XW-ufmIb7nA0J_.cjs → o89elSRRIGLs0hvL.cjs} +1 -1
  28. package/browser/cjs/{DhtbqKYKn2Tx6TrD.cjs → zsHrQ-zbAlQ0tA9v.cjs} +2 -2
  29. package/browser/esm/{D8pKeBukEKPSGeCJ.mjs → B5_hE71PsStnzdBO.mjs} +1 -1
  30. package/browser/esm/{CweKWHzl_f9Ro6fl.mjs → BBFQTm4WF6ZdLn_s.mjs} +1 -1
  31. package/{node/esm/Tug6XGizvXCeAReI.mjs → browser/esm/BMC24Q0xN7guTENW.mjs} +1 -1
  32. package/browser/esm/{Dk06G5EVeJ2gE0s0.mjs → BNN5q2NnsatyJlGR.mjs} +1 -1
  33. package/browser/esm/{DgSvoDX7PxtW0TWD.mjs → BjlYIWEgeSyv4wz2.mjs} +1 -1
  34. package/{node/esm/BXXJ3BHQ50wW4iiy.mjs → browser/esm/CDenTnFR8DqmqdbH.mjs} +1 -1
  35. package/{node/esm/M-1rQzhMOpcNAa1F.mjs → browser/esm/CYKwEkvT1JA24zbO.mjs} +1 -1
  36. package/browser/esm/{C_ldPzJO-DVjZI7Q.mjs → CaZEU1k6epwCB3xV.mjs} +1 -1
  37. package/browser/esm/{CHsmFoS1aVcecltM.mjs → Cq00SglUWB2ucZOS.mjs} +1 -1
  38. package/browser/esm/{DEhkKxHaCUGyAMrV.mjs → Cu1x26RQdb96IZj5.mjs} +1 -1
  39. package/browser/esm/{DY5HEUs8FVZmOZhV.mjs → Cwn1pv316wS8Tvhm.mjs} +4798 -4782
  40. package/{node/esm/CSH2zWHecpRA_Bly.mjs → browser/esm/DLYGMNx8kQI4xeo2.mjs} +1 -1
  41. package/browser/esm/{D6LceS4fqPThU3tU.mjs → DLbtnQx_HH3gYRiU.mjs} +1 -1
  42. package/browser/esm/{5eHjqVtC6TBnoZuw.mjs → DMEYBbUqMiMm4APB.mjs} +1 -1
  43. package/browser/esm/{DwKEGL9J5647vV5C.mjs → DeNVVj-Te4OSmVxj.mjs} +1 -1
  44. package/{node/esm/DINQMvJEBk4gJZM6.mjs → browser/esm/DeXdulcbXtPSKIC5.mjs} +1 -1
  45. package/browser/esm/{BCwfDLzTKJtUVSRA.mjs → DlLVTu3Y-FMfbu_n.mjs} +2 -2
  46. package/{node/esm/jz_LN9vDv0DRqXbz.mjs → browser/esm/DvNHjmU-XB5SN2Ye.mjs} +1 -1
  47. package/browser/esm/{CfN09sTMCQMp2UIE.mjs → E_I8C2Lp5z4JCaQs.mjs} +2 -2
  48. package/browser/esm/{BrfIP0so9sDg6Wk3.mjs → OfmoZFR3Nv7IR8ba.mjs} +1 -1
  49. package/browser/esm/{BBO5ZGR2cHd2mBF5.mjs → Vo2gdpW5nSPwZTqF.mjs} +1 -1
  50. package/browser/esm/{D0toz5m0zBOFhhhU.mjs → YZlMulquudnZjDrf.mjs} +1 -1
  51. package/browser/esm/{BUp0T_S9aFhtssZK.mjs → bxvj7SfTPz4IgjJ3.mjs} +3 -3
  52. package/browser/esm/{hlaV-bRZKEn5rk8Y.mjs → hvRiRIKk-vLVqy9h.mjs} +1 -1
  53. package/browser/esm/index.mjs +2 -2
  54. package/browser/esm/{DjBIhbf2dwY_NeUt.mjs → reTbqkUQn_8r1Gjg.mjs} +1 -1
  55. package/{node/esm/DyLXzieM66-sKSqC.mjs → browser/esm/tAdsxJ6GZTOjbZaj.mjs} +1 -1
  56. package/{node/esm/CQSkpKe1fVXBNmeZ.mjs → browser/esm/zaWM4ZhyMWMFvdi0.mjs} +1 -1
  57. package/node/esm/{D8pKeBukEKPSGeCJ.mjs → B5_hE71PsStnzdBO.mjs} +1 -1
  58. package/node/esm/{CweKWHzl_f9Ro6fl.mjs → BBFQTm4WF6ZdLn_s.mjs} +1 -1
  59. package/{browser/esm/Tug6XGizvXCeAReI.mjs → node/esm/BMC24Q0xN7guTENW.mjs} +1 -1
  60. package/node/esm/{ytVtw8tvIzD_LYG3.mjs → BgSDlYglpSKo1A5s.mjs} +1 -1
  61. package/node/esm/{Cn-ov1_U63lqIuhg.mjs → BjCfh27EcOZz63HB.mjs} +1 -1
  62. package/node/esm/{DgSvoDX7PxtW0TWD.mjs → BjlYIWEgeSyv4wz2.mjs} +1 -1
  63. package/{browser/esm/BXXJ3BHQ50wW4iiy.mjs → node/esm/CDenTnFR8DqmqdbH.mjs} +1 -1
  64. package/node/esm/{CEy_WVmAh486DeN-.mjs → CDp7CZJ27n55UJJS.mjs} +1 -1
  65. package/node/esm/{Ct_Jxyw-arjPJcEP.mjs → CKx5g_8FfhAJva_D.mjs} +1 -1
  66. package/{browser/esm/M-1rQzhMOpcNAa1F.mjs → node/esm/CYKwEkvT1JA24zbO.mjs} +1 -1
  67. package/node/esm/{BwsGshQ3-QxflmBU.mjs → Cfnn9kiE5KnRR-z4.mjs} +1 -1
  68. package/node/esm/{NgOa-b9Qm38LhMrH.mjs → DKWxioBweqUuAjwR.mjs} +1 -1
  69. package/{browser/esm/CSH2zWHecpRA_Bly.mjs → node/esm/DLYGMNx8kQI4xeo2.mjs} +1 -1
  70. package/node/esm/{D6LceS4fqPThU3tU.mjs → DLbtnQx_HH3gYRiU.mjs} +1 -1
  71. package/node/esm/{5eHjqVtC6TBnoZuw.mjs → DMEYBbUqMiMm4APB.mjs} +1 -1
  72. package/node/esm/{D2HTOL97LPyg7njw.mjs → DZBZ7kYNW5bcZ7tQ.mjs} +1 -1
  73. package/node/esm/{DwKEGL9J5647vV5C.mjs → DeNVVj-Te4OSmVxj.mjs} +1 -1
  74. package/{browser/esm/DINQMvJEBk4gJZM6.mjs → node/esm/DeXdulcbXtPSKIC5.mjs} +1 -1
  75. package/{browser/esm/jz_LN9vDv0DRqXbz.mjs → node/esm/DvNHjmU-XB5SN2Ye.mjs} +1 -1
  76. package/node/esm/{DXUJDvPTBBG4XfiL.mjs → P1-6wk2bFx0eAYQd.mjs} +2 -2
  77. package/node/esm/{COCd0JHZMHpTOoWw.mjs → d1Ola8sUNmUZOmTN.mjs} +1 -1
  78. package/node/esm/{hlaV-bRZKEn5rk8Y.mjs → hvRiRIKk-vLVqy9h.mjs} +1 -1
  79. package/node/esm/index.mjs +2993 -2967
  80. package/node/esm/{DjBIhbf2dwY_NeUt.mjs → reTbqkUQn_8r1Gjg.mjs} +1 -1
  81. package/{browser/esm/DyLXzieM66-sKSqC.mjs → node/esm/tAdsxJ6GZTOjbZaj.mjs} +1 -1
  82. package/{browser/esm/CQSkpKe1fVXBNmeZ.mjs → node/esm/zaWM4ZhyMWMFvdi0.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +43 -9
  85. package/types/scripting.d.ts +76 -34
  86. package/browser/cjs/DZ4Yx4TmV6-xPnYw.cjs +0 -54
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.1
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.3
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.1
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.3
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.1
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.3
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/sdk",
3
3
  "description": "SDK - A high-performance, embeddable spreadsheet engine.",
4
- "version": "0.6.1",
4
+ "version": "0.6.3",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -31,9 +31,9 @@
31
31
  "automation"
32
32
  ],
33
33
  "dependencies": {
34
- "@sheetxl/primitives": "^0.6.1",
35
- "@sheetxl/scripting": "^0.6.1",
36
- "@sheetxl/utils": "^0.6.1",
34
+ "@sheetxl/primitives": "^0.6.3",
35
+ "@sheetxl/scripting": "^0.6.3",
36
+ "@sheetxl/utils": "^0.6.3",
37
37
  "bahttext": "^2.3.0",
38
38
  "bessel": "^1.0.2",
39
39
  "chalk": "^5.5.0",
package/types/index.d.ts CHANGED
@@ -3162,6 +3162,14 @@ export declare namespace ICalculation {
3162
3162
  * A single unit of data and meta data within an `ICellRange`, located at a specific row and column.
3163
3163
  */
3164
3164
  export declare interface ICell {
3165
+ /**
3166
+ * Returns the range of the cell.
3167
+ *
3168
+ * @remarks
3169
+ * Returns a range for a single cell.
3170
+ * Temporary cells will have to return InvalidRange
3171
+ */
3172
+ getRange(): ICellRange;
3165
3173
  /**
3166
3174
  * Returns the value of the cell.
3167
3175
  *
@@ -3393,9 +3401,8 @@ export declare interface ICell {
3393
3401
  select(options?: ITypes.SelectOptions): Promise<boolean>;
3394
3402
  /**
3395
3403
  * Returns the Sheet.
3396
- * @template S - The callback return type.
3397
3404
  */
3398
- getSource<S>(): S;
3405
+ getSheet(): ISheet;
3399
3406
  /**
3400
3407
  * For runtime type checking.
3401
3408
  */
@@ -4282,12 +4289,14 @@ export declare interface ICellRange {
4282
4289
  */
4283
4290
  getMerges(): IRange.Coords[];
4284
4291
  /**
4285
- * A convenience method to get the top left `ICell`.
4292
+ * Returns a cell in the range.
4293
+ *
4294
+ * @param address The address of the cell to retrieve. This must be within the range bounds. Default Value the 'top left'
4286
4295
  *
4287
4296
  * @see
4288
4297
  * {@link ICellRange.getCells}
4289
4298
  */
4290
- getCell(): ICell;
4299
+ getCell(address?: ICell.Address): ICell;
4291
4300
  /**
4292
4301
  * Return a 2D array of {@link ICell | cells} in the shape of the range.
4293
4302
  *
@@ -4542,6 +4551,15 @@ export declare interface ICellRange {
4542
4551
  * {@link ICellRange.setValues}
4543
4552
  */
4544
4553
  setValue(value: ICellRange.ValuesUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
4554
+ /**
4555
+ * Set the formula for a range.
4556
+ *
4557
+ * @remarks
4558
+ * Identical behavior to setValue. Exists for ergonomics
4559
+ * @see
4560
+ * {@link ICellRange.setValue}
4561
+ */
4562
+ setFormula(value: ICellRange.ValuesUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
4545
4563
  /**
4546
4564
  * Re-evaluates and formulas within the range.
4547
4565
  * @param full If `true` then all formulas will be recalculated.
@@ -4851,9 +4869,8 @@ export declare interface ICellRange {
4851
4869
  isEmpty(): boolean;
4852
4870
  /**
4853
4871
  * Returns the Sheet.
4854
- * @template S - The callback return type.
4855
4872
  */
4856
- getSource<S>(): S;
4873
+ getSheet(): ISheet;
4857
4874
  /**
4858
4875
  * The IRange.Coords.
4859
4876
  */
@@ -5784,9 +5801,9 @@ export declare interface ICellRanges {
5784
5801
  */
5785
5802
  getMerges(): IRange.Coords[];
5786
5803
  /**
5787
- * {@inheritDoc ICellRange.getSource}
5804
+ * {@inheritDoc ICellRange.getSheet}
5788
5805
  */
5789
- getSource<S>(): S;
5806
+ getSheet(): ISheet;
5790
5807
  /**
5791
5808
  * {@inheritDoc ICellRange.getStyleUpdater}
5792
5809
  */
@@ -11453,6 +11470,12 @@ export declare interface ISheet extends ITransaction.ITransactional, IListener.I
11453
11470
  * @param options Options for the ranges.
11454
11471
  */
11455
11472
  getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
11473
+ /**
11474
+ * Returns a {@link ICell} at the specified address.
11475
+ *
11476
+ * @param address Address of the cell.
11477
+ */
11478
+ getCell(address: ICell.Address): ICell;
11456
11479
  /**
11457
11480
  * Returns an {@link ICellRanges}. An {@link ICellRanges} is an ordered list of
11458
11481
  * {@link ICellRange}s. These are used to interact with a set of contiguous 2D ranges.
@@ -12160,7 +12183,7 @@ export declare interface ISheetCollection extends ICollection<ISheet> {
12160
12183
  /**
12161
12184
  * Add an `ISheet` to the collection.
12162
12185
  */
12163
- add(options?: ISheetCollection.AddOptions): ISheet;
12186
+ add(options?: ISheetCollection.AddOptions | string | number): ISheet;
12164
12187
  /**
12165
12188
  * Returns sheets that match the filter criteria.
12166
12189
  *
@@ -16805,6 +16828,13 @@ export declare interface IWorkbook extends ITransaction.ITransactional, IListene
16805
16828
  * Returns the collection of sheets within the workbook.
16806
16829
  */
16807
16830
  getSheets(): ISheetCollection;
16831
+ /**
16832
+ * Adds a new sheet to the workbook.
16833
+ *
16834
+ * @remarks
16835
+ * This is a convenience method that wraps `getSheets().add`.
16836
+ */
16837
+ addSheet(options?: ISheetCollection.AddOptions | string | number): ISheet;
16808
16838
  /**
16809
16839
  * Returns the sheet at the given offset.
16810
16840
  *
@@ -18371,6 +18401,8 @@ export declare class Sheet implements ISheet {
18371
18401
  /* Excluded from this release type: _createRanges */
18372
18402
  /** {@inheritDoc ISheet.getRange} */
18373
18403
  getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
18404
+ /** {@inheritDoc ISheet.getCell} */
18405
+ getCell(address: ICell.Address): ICell;
18374
18406
  /** {@inheritDoc ISheet.getRange} */
18375
18407
  getRanges(address: ICellRanges.Address, options?: ICellRange.GetRangeOptions): ICellRanges;
18376
18408
  /** {@inheritDoc ISheet.getSelectedRange} */
@@ -20539,6 +20571,8 @@ export declare class Workbook implements IWorkbook {
20539
20571
  getSheetAt(index: number, visibility?: ISheet.Visibility): ISheet;
20540
20572
  /** {@inheritDoc IWorkbook.getSheets} */
20541
20573
  getSheets(): ISheetCollection;
20574
+ /** {@inheritDoc IWorkbook.addSheet} */
20575
+ addSheet(options?: ISheetCollection.AddOptions | string | number): ISheet;
20542
20576
  protected _getSheets(visibility?: ISheet.Visibility): ISheet[];
20543
20577
  protected _getSheetRefs(visibility?: ISheet.Visibility): SheetRef[];
20544
20578
  /* Excluded from this release type: _getSheetRef */
@@ -15519,6 +15519,12 @@ declare module "sheet/ISheet" {
15519
15519
  * @param options Options for the ranges.
15520
15520
  */
15521
15521
  getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
15522
+ /**
15523
+ * Returns a {@link ICell} at the specified address.
15524
+ *
15525
+ * @param address Address of the cell.
15526
+ */
15527
+ getCell(address: ICell.Address): ICell;
15522
15528
  /**
15523
15529
  * Returns an {@link ICellRanges}. An {@link ICellRanges} is an ordered list of
15524
15530
  * {@link ICellRange}s. These are used to interact with a set of contiguous 2D ranges.
@@ -17944,13 +17950,16 @@ declare module "sheet/SheetCell" {
17944
17950
  protected _styleConditional: IStyle;
17945
17951
  constructor(options: SheetCellOptions, coords: IRange.CellCoords, type?: ScalarType, value?: Scalar, rs?: RangeState.Intersection, p?: IRange.CellCoords, // prev
17946
17952
  n?: IRange.CellCoords);
17953
+ /** {@inheritDoc ICell.getRange} */
17954
+ getRange(): ICellRange;
17955
+ /** {@inheritDoc ICell.isEqual} */
17947
17956
  isEqual(other: ICell): boolean;
17948
17957
  /** {@inheritDoc ICell.getCoords} */
17949
17958
  getCoords(): IRange.CellCoords;
17950
17959
  /** {@inheritDoc ICell.getA1} */
17951
17960
  getA1(): string;
17952
- /** {@inheritDoc ICell.getSource} */
17953
- getSource<ISheet>(): ISheet;
17961
+ /** {@inheritDoc ICell.getSheet} */
17962
+ getSheet(): ISheet;
17954
17963
  /** {@inheritDoc ICell.select} */
17955
17964
  select(options?: ITypes.SelectOptions): Promise<boolean>;
17956
17965
  /** {@inheritDoc ICell.getColumnFilter} */
@@ -23982,11 +23991,20 @@ declare module "cell/ICell" {
23982
23991
  import type { IStyle } from "style/index";
23983
23992
  import type { ICellRange } from "cellRange/index";
23984
23993
  import type { ICalculation } from "calculation/index";
23994
+ import type { ISheet } from "sheet/index";
23985
23995
  import type { ICellProtection } from "cell/ICellProtection";
23986
23996
  /**
23987
23997
  * A single unit of data and meta data within an `ICellRange`, located at a specific row and column.
23988
23998
  */
23989
23999
  export interface ICell {
24000
+ /**
24001
+ * Returns the range of the cell.
24002
+ *
24003
+ * @remarks
24004
+ * Returns a range for a single cell.
24005
+ * Temporary cells will have to return InvalidRange
24006
+ */
24007
+ getRange(): ICellRange;
23990
24008
  /**
23991
24009
  * Returns the value of the cell.
23992
24010
  *
@@ -24218,9 +24236,8 @@ declare module "cell/ICell" {
24218
24236
  select(options?: ITypes.SelectOptions): Promise<boolean>;
24219
24237
  /**
24220
24238
  * Returns the Sheet.
24221
- * @template S - The callback return type.
24222
24239
  */
24223
- getSource<S>(): S;
24240
+ getSheet(): ISheet;
24224
24241
  /**
24225
24242
  * For runtime type checking.
24226
24243
  */
@@ -26240,6 +26257,7 @@ declare module "cellRange/ICellRanges" {
26240
26257
  import type { ITransaction } from "transaction/index";
26241
26258
  import type { IStyle } from "style/index";
26242
26259
  import type { ICell } from "cell/index";
26260
+ import type { ISheet } from "sheet/index";
26243
26261
  import type { ICellRange } from "cellRange/ICellRange";
26244
26262
  /**
26245
26263
  * An `ICellRanges` is a collection of {@link ICellRange}s.
@@ -26252,9 +26270,9 @@ declare module "cellRange/ICellRanges" {
26252
26270
  */
26253
26271
  getMerges(): IRange.Coords[];
26254
26272
  /**
26255
- * {@inheritDoc ICellRange.getSource}
26273
+ * {@inheritDoc ICellRange.getSheet}
26256
26274
  */
26257
- getSource<S>(): S;
26275
+ getSheet(): ISheet;
26258
26276
  /**
26259
26277
  * {@inheritDoc ICellRange.getStyleUpdater}
26260
26278
  */
@@ -26834,6 +26852,7 @@ declare module "cellRange/ICellRange" {
26834
26852
  import type { ISort } from "sort/index";
26835
26853
  import type { IAutoFill } from "autoFill/index";
26836
26854
  import type { IStyle } from "style/index";
26855
+ import { ISheet } from "sheet/index";
26837
26856
  import { ICell } from "cell/index";
26838
26857
  import type { ICellRanges } from "cellRange/ICellRanges";
26839
26858
  import type { ICellHeaderRange } from "cellRange/ICellHeaderRange";
@@ -26879,12 +26898,14 @@ declare module "cellRange/ICellRange" {
26879
26898
  */
26880
26899
  getMerges(): IRange.Coords[];
26881
26900
  /**
26882
- * A convenience method to get the top left `ICell`.
26901
+ * Returns a cell in the range.
26902
+ *
26903
+ * @param address The address of the cell to retrieve. This must be within the range bounds. Default Value the 'top left'
26883
26904
  *
26884
26905
  * @see
26885
26906
  * {@link ICellRange.getCells}
26886
26907
  */
26887
- getCell(): ICell;
26908
+ getCell(address?: ICell.Address): ICell;
26888
26909
  /**
26889
26910
  * Return a 2D array of {@link ICell | cells} in the shape of the range.
26890
26911
  *
@@ -27139,6 +27160,15 @@ declare module "cellRange/ICellRange" {
27139
27160
  * {@link ICellRange.setValues}
27140
27161
  */
27141
27162
  setValue(value: ICellRange.ValuesUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
27163
+ /**
27164
+ * Set the formula for a range.
27165
+ *
27166
+ * @remarks
27167
+ * Identical behavior to setValue. Exists for ergonomics
27168
+ * @see
27169
+ * {@link ICellRange.setValue}
27170
+ */
27171
+ setFormula(value: ICellRange.ValuesUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
27142
27172
  /**
27143
27173
  * Re-evaluates and formulas within the range.
27144
27174
  * @param full If `true` then all formulas will be recalculated.
@@ -27448,9 +27478,8 @@ declare module "cellRange/ICellRange" {
27448
27478
  isEmpty(): boolean;
27449
27479
  /**
27450
27480
  * Returns the Sheet.
27451
- * @template S - The callback return type.
27452
27481
  */
27453
- getSource<S>(): S;
27482
+ getSheet(): ISheet;
27454
27483
  /**
27455
27484
  * The IRange.Coords.
27456
27485
  */
@@ -29587,7 +29616,7 @@ declare module "sheet/ISheetCollection" {
29587
29616
  /**
29588
29617
  * Add an `ISheet` to the collection.
29589
29618
  */
29590
- add(options?: ISheetCollection.AddOptions): ISheet;
29619
+ add(options?: ISheetCollection.AddOptions | string | number): ISheet;
29591
29620
  /**
29592
29621
  * Returns sheets that match the filter criteria.
29593
29622
  *
@@ -31929,11 +31958,12 @@ declare module "sheet/protection/SheetProtection" {
31929
31958
  }
31930
31959
  declare module "sheet/SheetRanges" {
31931
31960
  import { Scalar, IRange } from '@sheetxl/primitives';
31932
- import { ITransaction } from "transaction/index";
31933
- import { IListener } from "listener/index";
31934
- import { ICell } from "cell/index";
31935
- import { ICellRanges, ICellRange } from "cellRange/index";
31936
- import { IStyle } from "style/index";
31961
+ import type { ITransaction } from "transaction/index";
31962
+ import type { IListener } from "listener/index";
31963
+ import type { ICell } from "cell/index";
31964
+ import type { ICellRanges, ICellRange } from "cellRange/index";
31965
+ import type { IStyle } from "style/index";
31966
+ import type { ISheet } from "sheet/index";
31937
31967
  export interface SheetRangesOptions {
31938
31968
  excludeHidden?: boolean;
31939
31969
  readOnly?: string;
@@ -32030,8 +32060,8 @@ declare module "sheet/SheetRanges" {
32030
32060
  isInvalid(): boolean;
32031
32061
  /** {@inheritDoc ICellRanges.getA1} */
32032
32062
  getA1(): string;
32033
- /** {@inheritDoc ICellRanges.getSource} */
32034
- getSource<S>(): S;
32063
+ /** {@inheritDoc ICellRanges.getSheet} */
32064
+ getSheet(): ISheet;
32035
32065
  /** {@inheritDoc ICellRanges.doBatch} */
32036
32066
  doBatch<R>(callback: (commit: ITransaction.ICommit) => R | Promise<R>, options?: string | ITransaction.OperationOptions): R | Promise<R>;
32037
32067
  get [Symbol.toStringTag](): string;
@@ -32045,12 +32075,13 @@ declare module "sheet/SheetRange" {
32045
32075
  import { Scalar, ScalarUpdate, JSScalar, IRange } from '@sheetxl/primitives';
32046
32076
  import { ITransaction } from "transaction/index";
32047
32077
  import { IListener } from "listener/index";
32048
- import { ICell } from "cell/index";
32049
- import { ICellRange, ICellRanges, ICellHeaderRange } from "cellRange/index";
32050
- import { IComment } from "comment/index";
32051
- import { IStyle } from "style/index";
32052
- import { IHyperlink } from "hyperlink/index";
32053
- import { ISort } from "sort/index";
32078
+ import type { ICell } from "cell/index";
32079
+ import type { ICellRange, ICellRanges, ICellHeaderRange } from "cellRange/index";
32080
+ import type { IComment } from "comment/index";
32081
+ import type { IStyle } from "style/index";
32082
+ import type { IHyperlink } from "hyperlink/index";
32083
+ import type { ISort } from "sort/index";
32084
+ import type { ISheet } from "sheet/ISheet";
32054
32085
  import { Sheet } from "sheet/Sheet";
32055
32086
  export interface SheetRangeOptions {
32056
32087
  excludeHidden?: boolean;
@@ -32091,10 +32122,12 @@ declare module "sheet/SheetRange" {
32091
32122
  protected _validateWrite(): void;
32092
32123
  /** {@inheritDoc ICellRange.updateCells} */
32093
32124
  updateCells(value: ICellRange.Update, options?: ICellRange.UpdateCellsOptions, updateCoords?: IRange.Coords): this;
32094
- /** {@inheritDoc ICellRange.setValue} */
32095
- setValue(value: ScalarUpdate, options?: ICellRange.SetValuesOptions): this;
32096
32125
  /** {@inheritDoc ICellRange.setValues} */
32097
32126
  setValues(value: ICellRange.ValuesUpdate, options?: ICellRange.SetValuesOptions): this;
32127
+ /** {@inheritDoc ICellRange.setValue} */
32128
+ setValue(value: ScalarUpdate, options?: ICellRange.SetValuesOptions): this;
32129
+ /** {@inheritDoc ICellRange.setFormula} */
32130
+ setFormula(value: ScalarUpdate, options?: ICellRange.SetValuesOptions): this;
32098
32131
  /** @internal */
32099
32132
  protected _setValueOrValues(value: ICellRange.ValuesUpdate, options?: ICellRange.SetValuesOptions): this;
32100
32133
  /** {@inheritDoc ICellRange.getValues} */
@@ -32106,7 +32139,7 @@ declare module "sheet/SheetRange" {
32106
32139
  /** {@inheritDoc ICellRange.getCells} */
32107
32140
  getCells(options?: ICellRange.GetValuesOptions): ICell[][];
32108
32141
  /** {@inheritDoc ICellRange.getCell} */
32109
- getCell(): ICell;
32142
+ getCell(address?: ICell.Address): ICell;
32110
32143
  /** {@inheritDoc ICellRange.select} */
32111
32144
  select(options?: ICellRange.SelectOptions): Promise<this>;
32112
32145
  /** {@inheritDoc ICellRange.find} */
@@ -32193,8 +32226,8 @@ declare module "sheet/SheetRange" {
32193
32226
  addListener2(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
32194
32227
  /** {@inheritDoc ICellRange.addListener} */
32195
32228
  addListener(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
32196
- /** {@inheritDoc ICellRange.getSource} */
32197
- getSource<S>(): S;
32229
+ /** {@inheritDoc ICellRange.getSheet} */
32230
+ getSheet(): ISheet;
32198
32231
  /** {@inheritDoc ICellRange.autoFill} */
32199
32232
  autoFill(destination: ICellRange.Address, options?: ICellRange.AutoFillOptions): this;
32200
32233
  /** {@inheritDoc ICellRange.autoFit} */
@@ -32205,8 +32238,6 @@ declare module "sheet/SheetRange" {
32205
32238
  setHyperlink(hyperlink: IHyperlink.Update, options?: ITransaction.OperationOptions): this;
32206
32239
  /** {@inheritDoc ICellRange.setComments} */
32207
32240
  setComments(comments: IComment.Properties, options?: ITransaction.OperationOptions): this;
32208
- /** {@inheritDoc ICellRange.setFormula} */
32209
- setFormula(formula: string, options?: ITransaction.OperationOptions): this;
32210
32241
  /** {@inheritDoc ICellRange.updateStyle} */
32211
32242
  updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
32212
32243
  /** {@inheritDoc ICellRange.getStyleUpdater} */
@@ -32240,7 +32271,7 @@ declare module "sheet/SheetRange" {
32240
32271
  }
32241
32272
  declare module "sheet/Sheet" {
32242
32273
  import { Scalar, JSScalar, IRange } from '@sheetxl/primitives';
32243
- import { Dimensions, Bounds, CoordUtils } from '@sheetxl/utils';
32274
+ import { Dimensions, type Bounds, CoordUtils } from '@sheetxl/utils';
32244
32275
  import { ITypes, ICollection, IProperties } from "type/index";
32245
32276
  import type { IListener } from "listener/index";
32246
32277
  import { type ITransaction } from "transaction/index";
@@ -32523,6 +32554,8 @@ declare module "sheet/Sheet" {
32523
32554
  protected _createRanges(coords: readonly IRange.Coords[], getOptions?: ICellRange.GetRangeOptions, readOnly?: string): ICellRanges;
32524
32555
  /** {@inheritDoc ISheet.getRange} */
32525
32556
  getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
32557
+ /** {@inheritDoc ISheet.getCell} */
32558
+ getCell(address: ICell.Address): ICell;
32526
32559
  /** {@inheritDoc ISheet.getRange} */
32527
32560
  getRanges(address: ICellRanges.Address, options?: ICellRange.GetRangeOptions): ICellRanges;
32528
32561
  /** {@inheritDoc ISheet.getSelectedRange} */
@@ -33153,6 +33186,13 @@ declare module "workbook/IWorkbook" {
33153
33186
  * Returns the collection of sheets within the workbook.
33154
33187
  */
33155
33188
  getSheets(): ISheetCollection;
33189
+ /**
33190
+ * Adds a new sheet to the workbook.
33191
+ *
33192
+ * @remarks
33193
+ * This is a convenience method that wraps `getSheets().add`.
33194
+ */
33195
+ addSheet(options?: ISheetCollection.AddOptions | string | number): ISheet;
33156
33196
  /**
33157
33197
  * Returns the sheet at the given offset.
33158
33198
  *
@@ -33776,7 +33816,7 @@ declare module "sheet/SheetCollection" {
33776
33816
  private _get;
33777
33817
  constructor(add: (options: ISheetCollection.AddOptions) => ISheet, get: (name?: string, visibility?: ISheet.Visibility) => ISheet[]);
33778
33818
  /** {@inheritDoc ISheetCollection.add} */
33779
- add(options?: ISheetCollection.AddOptions): ISheet;
33819
+ add(options?: ISheetCollection.AddOptions | string | number): ISheet;
33780
33820
  /** {@inheritDoc ISheetCollection.getItems} */
33781
33821
  getItems(options?: ISheetCollection.GetItemsOptions): ISheet[];
33782
33822
  /** {@inheritDoc ISheetCollection.getByName} */
@@ -34023,6 +34063,8 @@ declare module "workbook/Workbook" {
34023
34063
  getSheetAt(index: number, visibility?: ISheet.Visibility): ISheet;
34024
34064
  /** {@inheritDoc IWorkbook.getSheets} */
34025
34065
  getSheets(): ISheetCollection;
34066
+ /** {@inheritDoc IWorkbook.addSheet} */
34067
+ addSheet(options?: ISheetCollection.AddOptions | string | number): ISheet;
34026
34068
  protected _getSheets(visibility?: ISheet.Visibility): ISheet[];
34027
34069
  protected _getSheetRefs(visibility?: ISheet.Visibility): SheetRef[];
34028
34070
  /** @internal */
@@ -34034,7 +34076,7 @@ declare module "workbook/Workbook" {
34034
34076
  /** {@inheritDoc IWorkbook.isValidSheetNameCharacter} */
34035
34077
  isValidSheetNameCharacter(character: string): boolean;
34036
34078
  /** @internal */
34037
- protected _addSheetOptions(options?: ISheetCollection.AddOptions): ISheet;
34079
+ protected _addSheetOptions(options?: ISheetCollection.AddOptions | string | number): ISheet;
34038
34080
  /** @internal */
34039
34081
  protected _nextSheetName(sheetName?: string): string;
34040
34082
  /** @internal */