@sheetxl/sdk 0.7.12 → 0.7.13

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/{CmCdKX0dS361BDF_.cjs → 84Qf-nDnKiLQ7HBc.cjs} +1 -1
  2. package/browser/cjs/{D908eIvK1UZZam0d.cjs → B7jslq9oFR6njKnW.cjs} +1 -1
  3. package/browser/cjs/{e2MkfbbzEhKy8YyW.cjs → BRkze9nkXD-OqXPT.cjs} +1 -1
  4. package/browser/cjs/{BosMy9ewpwF9NuGB.cjs → BWZocbfJ9j-b4EWY.cjs} +1 -1
  5. package/browser/cjs/{D_0CPRkAn_JdC7QW.cjs → BibVdFisqTXEG0Y9.cjs} +1 -1
  6. package/browser/cjs/{CQeXdseMKMBAVqkr.cjs → BuldQ3tfFYodOk9H.cjs} +1 -1
  7. package/browser/cjs/{C4IRg2q0tpytF4VU.cjs → C9AVwqTuY33VzH4e.cjs} +3 -3
  8. package/browser/cjs/{BSm1vufvss-H9NbR.cjs → CDWlJ97tWSqdWRrC.cjs} +1 -1
  9. package/browser/cjs/{BwbyX4MNaa1zIjER.cjs → CFvba6QKlCV7_Kvg.cjs} +1 -1
  10. package/browser/cjs/{CzRnWLos_wVaK8Fw.cjs → CKFAjAwy-5z8a99W.cjs} +1 -1
  11. package/browser/cjs/{BtThYQ_xJKRRyHva.cjs → CWcLBz5wacAKZ65z.cjs} +1 -1
  12. package/browser/cjs/{ToviSt9hOTH-9baV.cjs → CXsCIuAjTadPMZ2k.cjs} +1 -1
  13. package/browser/cjs/{Bkzf07hHXxJshocL.cjs → CY7qa68VhzxfCks0.cjs} +1 -1
  14. package/browser/cjs/{vzFUQnmdHHRhq6jV.cjs → CbHx0iP74qQiiFGA.cjs} +2 -2
  15. package/browser/cjs/{D08eDP1nShWTKp9c.cjs → CgnB_AUJ9_aLjrjf.cjs} +1 -1
  16. package/browser/cjs/{B2USJzhMx0gKp_xB.cjs → D0rqCTa18JiwtkFg.cjs} +1 -1
  17. package/browser/cjs/{DbXxA7VgCTQL8GVr.cjs → D9ALzAAPbqKp0qG4.cjs} +1 -1
  18. package/browser/cjs/{E6VF-dQbtwGm8ZKJ.cjs → DBL1LvXwFpR7MLsM.cjs} +1 -1
  19. package/browser/cjs/{DyjC8TEGJk-hny2D.cjs → DYOYeMed2UXw1HaH.cjs} +1 -1
  20. package/browser/cjs/{DRD2V03RHZ3FhUo9.cjs → DgKonEP5su-An4tv.cjs} +1 -1
  21. package/browser/cjs/{1CfjeWL6bDBG9-ag.cjs → Djw2mPk9DA_xDR48.cjs} +2 -2
  22. package/browser/cjs/{YjLWaeMwa9C_R1s5.cjs → DrE0C6ruqS4-YkDG.cjs} +1 -1
  23. package/browser/cjs/{D5f6Io_7gWntl6eJ.cjs → FmMGqD2eGNSxs_tp.cjs} +1 -1
  24. package/browser/cjs/{DrKICIc8x71fjYk9.cjs → N8D-AiKZvmSpJoyk.cjs} +1 -1
  25. package/browser/cjs/{ClKtiswJz42sFi44.cjs → NwQUH5RlCwVclTou.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{CKzpvrOe3DiGVZcc.cjs → m-BThCiOY0U2UHKz.cjs} +1 -1
  28. package/browser/cjs/rCv0GyYPZv7sdNXw.cjs +55 -0
  29. package/{node/esm/CTnYczv8sdymPont.mjs → browser/esm/B0zJo_YhAJZgLFb2.mjs} +1 -1
  30. package/browser/esm/{CcrvxZgcfX9XaIQ5.mjs → B1mQhILY_Ee8mZj6.mjs} +1 -1
  31. package/browser/esm/{Dw7XkqUHobOgiSxg.mjs → B6s60UZeDi9sgRHT.mjs} +1 -1
  32. package/browser/esm/{dXzMDWrDA5Lwl6Mj.mjs → B8TYkzlDKU9Ggkas.mjs} +1 -1
  33. package/browser/esm/{CaxUhEKBf5-rWlgP.mjs → BTrXUcjikfiXBuQs.mjs} +1 -1
  34. package/browser/esm/{BvMu0XjKqyboy-lE.mjs → BUh4gZOH8Uxd-hWh.mjs} +5485 -5337
  35. package/browser/esm/{DkKcmgQirssZLyAt.mjs → BXMGu5NmEgJKrpDn.mjs} +2 -2
  36. package/browser/esm/{C333Bk9rZ2_V-1cQ.mjs → BelRhaFYXfqn3xBt.mjs} +1 -1
  37. package/browser/esm/{DHM5MROBjTGyyJxE.mjs → BqrAMV-sxGrw_IGy.mjs} +1 -1
  38. package/{node/esm/Cq8Z_7xKAy_l-nRD.mjs → browser/esm/Byme5OT9_LV09DwE.mjs} +1 -1
  39. package/{node/esm/C2TJUuObLI3XbkGW.mjs → browser/esm/C-rY9IQnclqMvLhW.mjs} +1 -1
  40. package/browser/esm/{Bj-vyyFRt_LQ3p4k.mjs → C3UqdgBtXrjr9U7B.mjs} +1 -1
  41. package/{node/esm/wGQlPDrRhZBNmqXr.mjs → browser/esm/CZzcgxj1VfTcHOLD.mjs} +1 -1
  42. package/browser/esm/{Dy616gUfJgTEn2Lk.mjs → CsjFegG9ZsVPWgLy.mjs} +1 -1
  43. package/browser/esm/{BpvAje6jcdacLYbX.mjs → Cz5dfo_pXqz_RSCW.mjs} +1 -1
  44. package/browser/esm/{BM-O3SE_q7zMdUWU.mjs → D2aynnS_ZvhUymlW.mjs} +2 -2
  45. package/browser/esm/{DBqZtOc04qqODM6B.mjs → D5SlMU39knV0sfaE.mjs} +1 -1
  46. package/browser/esm/{D9emWaogFZ_qGmes.mjs → DECRnCXvKcFm5UW_.mjs} +3 -3
  47. package/browser/esm/{Cya5XpqQkpsIhhU6.mjs → DPGNTew-J9BDfx7H.mjs} +1 -1
  48. package/{node/esm/C9rJUO6w8U4r-ZLU.mjs → browser/esm/DVs7wiZMt1NvmibL.mjs} +1 -1
  49. package/{node/esm/jAZwRNd8wzT9q-Kf.mjs → browser/esm/DdFgB4nRiWb-x8MU.mjs} +1 -1
  50. package/browser/esm/{z5RyyAq0YqPAgm3C.mjs → DmzWhWp1sSLTOJmk.mjs} +1 -1
  51. package/browser/esm/{D5rbSNG1lRMqamJK.mjs → DrgyAIoXbBJ7XEJz.mjs} +1 -1
  52. package/browser/esm/{TQ7P4hzcSvakAO7N.mjs → JBuDAROw1IhzpBDK.mjs} +1 -1
  53. package/browser/esm/{DFPhSySbg8tF2p3h.mjs → SAWt7fxsw4YrVlsO.mjs} +1 -1
  54. package/browser/esm/{DyrGEURqMZbZUei0.mjs → czwXw8arBOM78nIR.mjs} +1 -1
  55. package/browser/esm/index.mjs +2 -2
  56. package/browser/esm/{CSrVbEwBx2NnAYvL.mjs → obyONN_ql1eCkYqn.mjs} +1 -1
  57. package/{browser/esm/CTnYczv8sdymPont.mjs → node/esm/B0zJo_YhAJZgLFb2.mjs} +1 -1
  58. package/node/esm/{CcrvxZgcfX9XaIQ5.mjs → B1mQhILY_Ee8mZj6.mjs} +1 -1
  59. package/node/esm/{BmoVFEKACjsgqtqW.mjs → BSchhHzd9LhOSQyh.mjs} +2 -2
  60. package/node/esm/{CaxUhEKBf5-rWlgP.mjs → BTrXUcjikfiXBuQs.mjs} +1 -1
  61. package/node/esm/{DHM5MROBjTGyyJxE.mjs → BqrAMV-sxGrw_IGy.mjs} +1 -1
  62. package/{browser/esm/Cq8Z_7xKAy_l-nRD.mjs → node/esm/Byme5OT9_LV09DwE.mjs} +1 -1
  63. package/{browser/esm/C2TJUuObLI3XbkGW.mjs → node/esm/C-rY9IQnclqMvLhW.mjs} +1 -1
  64. package/{browser/esm/wGQlPDrRhZBNmqXr.mjs → node/esm/CZzcgxj1VfTcHOLD.mjs} +1 -1
  65. package/node/esm/{Dy616gUfJgTEn2Lk.mjs → CsjFegG9ZsVPWgLy.mjs} +1 -1
  66. package/node/esm/{BpvAje6jcdacLYbX.mjs → Cz5dfo_pXqz_RSCW.mjs} +1 -1
  67. package/node/esm/{DBqZtOc04qqODM6B.mjs → D5SlMU39knV0sfaE.mjs} +1 -1
  68. package/node/esm/{BGDBKHouRITQ69Y_.mjs → D76Ug5nx4id19sWo.mjs} +1 -1
  69. package/node/esm/{Ci5zjsTKJE1WXg-8.mjs → DBCmVfDXH2Gjy1gb.mjs} +1 -1
  70. package/node/esm/{C3dNwSBxZydPNIa6.mjs → DGPSmLySgorgnRpF.mjs} +1 -1
  71. package/{browser/esm/C9rJUO6w8U4r-ZLU.mjs → node/esm/DVs7wiZMt1NvmibL.mjs} +1 -1
  72. package/{browser/esm/jAZwRNd8wzT9q-Kf.mjs → node/esm/DdFgB4nRiWb-x8MU.mjs} +1 -1
  73. package/node/esm/{CGUEDkuo3-Y2_wZV.mjs → DpSNP5QMfZvpJ_wv.mjs} +1 -1
  74. package/node/esm/{D5rbSNG1lRMqamJK.mjs → DrgyAIoXbBJ7XEJz.mjs} +1 -1
  75. package/node/esm/{SG4_v0bpY55xYUOj.mjs → DvtObSijnfKp4hVX.mjs} +1 -1
  76. package/node/esm/{TQ7P4hzcSvakAO7N.mjs → JBuDAROw1IhzpBDK.mjs} +1 -1
  77. package/node/esm/{DFPhSySbg8tF2p3h.mjs → SAWt7fxsw4YrVlsO.mjs} +1 -1
  78. package/node/esm/{OmF7uWO8nNEAcgRL.mjs → YEoEG9HlehI4GxoO.mjs} +1 -1
  79. package/node/esm/index.mjs +2748 -2614
  80. package/node/esm/{BOC_DgdvRX0-0ZaJ.mjs → jQQyFKgcBYKkYy5u.mjs} +1 -1
  81. package/node/esm/{ClxQXzVr71QV--QR.mjs → ne4Ow4B53KelbGbA.mjs} +1 -1
  82. package/node/esm/{CSrVbEwBx2NnAYvL.mjs → obyONN_ql1eCkYqn.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +205 -65
  85. package/types/scripting.d.ts +609 -400
  86. package/browser/cjs/ibSKVNiJ2VncQNAS.cjs +0 -55
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.12
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.13
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.7.12
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.13
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.7.12
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.13
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.7.12",
4
+ "version": "0.7.13",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -43,9 +43,9 @@
43
43
  "automation"
44
44
  ],
45
45
  "dependencies": {
46
- "@sheetxl/primitives": "^0.7.12",
47
- "@sheetxl/scripting": "^0.7.12",
48
- "@sheetxl/utils": "^0.7.12",
46
+ "@sheetxl/primitives": "^0.7.13",
47
+ "@sheetxl/scripting": "^0.7.13",
48
+ "@sheetxl/utils": "^0.7.13",
49
49
  "bahttext": "^2.3.0",
50
50
  "bessel": "^1.0.2",
51
51
  "chalk": "^5.6.2",
package/types/index.d.ts CHANGED
@@ -3975,29 +3975,41 @@ export declare interface ICellHeaderRange {
3975
3975
  /**
3976
3976
  * The RunCoords for the range.
3977
3977
  */
3978
- getCoords(): RunCoords;
3978
+ getCoords(): ICellHeaderRange.Coords;
3979
3979
  /**
3980
3980
  * Iterate over cells headers.
3981
+ *
3981
3982
  * @remarks
3982
3983
  * * Callbacks can return a 'break' value to stop the visit.
3983
3984
  */
3984
3985
  forEach<T = any>(callback: ICellHeaderRange.ForEachCallback<T>, options?: ICellHeaderRange.IteratorOptions): T | void;
3985
3986
  /**
3986
3987
  * Returns the header at a location relative to the range.
3988
+ *
3987
3989
  * @param index
3988
3990
  */
3989
3991
  at(index: number): ICellHeader;
3990
3992
  /**
3991
3993
  * Set the size of the headers.
3992
- * @param size
3994
+ *
3995
+ * @param size This can be a number of a string with units
3993
3996
  * @param options {@link ICellHeaderRange.SetSizeOptions}
3994
3997
  */
3995
3998
  setSize(size?: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
3996
3999
  /**
3997
4000
  * Hides or show the columns for the given range.
4001
+ *
3998
4002
  * @defaultValue false
3999
4003
  */
4000
4004
  setHidden(hidden?: boolean): this;
4005
+ /**
4006
+ * Provides a convenient method for setting values with a range of calls.
4007
+ *
4008
+ * @remarks
4009
+ * If an array is provided then values will be in row-major order and will
4010
+ * repeat if the range is larger than the array
4011
+ */
4012
+ updateHeaders(values: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
4001
4013
  /**
4002
4014
  * Returns the data ranges for headers that contain information.
4003
4015
  *
@@ -4014,6 +4026,10 @@ export declare interface ICellHeaderRange {
4014
4026
  * Returns the number of headers included in the range.
4015
4027
  */
4016
4028
  getCount(): number;
4029
+ /**
4030
+ * Returns the number of headers.
4031
+ */
4032
+ getHeaderCount(): number;
4017
4033
  /**
4018
4034
  * Returns the number of visible headers in the range.
4019
4035
  */
@@ -4028,6 +4044,7 @@ export declare interface ICellHeaderRange {
4028
4044
  getOrientation(): IRange.Orientation;
4029
4045
  /**
4030
4046
  * Similar to {@link forEach} but only spans that are different.
4047
+ *
4031
4048
  * @remarks
4032
4049
  * * Callbacks can return a 'break' value to stop the visit.
4033
4050
  */
@@ -4039,20 +4056,13 @@ export declare interface ICellHeaderRange {
4039
4056
  * * If there are no hidden headers this will still be called once.
4040
4057
  */
4041
4058
  forEachVisibleSpan<T = any>(callback: ICellHeaderRange.ForEachVisibleSpanCallback<T>, options?: ICellHeaderRange.ForEachVisibleSpanOptions): T | void;
4042
- /**
4043
- * Provides a convenient method for setting values with a range of calls.
4044
- *
4045
- * @remarks
4046
- * If an array is provided then values will be in row-major order and will
4047
- * repeat if the range is larger than the array
4048
- */
4049
- updateHeaders(values: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
4050
4059
  /**
4051
4060
  * {@inheritDoc ICellRange.getSnapshot}
4052
4061
  */
4053
4062
  getSnapshot(options?: ICellHeaderRange.CopyOptions): ICellHeaderRange.ISnapshot;
4054
4063
  /**
4055
4064
  * Perform operation on all ranges.
4065
+ *
4056
4066
  * @see
4057
4067
  * {@link ICellRange.doBatch}
4058
4068
  */
@@ -4083,6 +4093,10 @@ export declare interface ICellHeaderRange {
4083
4093
  * {@link ICellHeaderRange}
4084
4094
  */
4085
4095
  export declare namespace ICellHeaderRange {
4096
+ /**
4097
+ * The coord type for a header range.
4098
+ */
4099
+ export type Coords = RunCoords;
4086
4100
  /**
4087
4101
  * Specify either a range a run or a string.
4088
4102
  * @remarks
@@ -4220,11 +4234,13 @@ export declare namespace ICellHeaderRange {
4220
4234
  relativeSize?: boolean;
4221
4235
  /**
4222
4236
  * If this is set to `true` then the value will not be an autoSize value.
4237
+ *
4223
4238
  * @defaultValue false
4224
4239
  */
4225
4240
  autoSize?: boolean;
4226
4241
  /**
4227
4242
  * If this is set to `true` then any headers that have custom sizes will be ignored.
4243
+ *
4228
4244
  * @defaultValue false
4229
4245
  */
4230
4246
  skipCustomSize?: boolean;
@@ -4269,6 +4285,109 @@ export declare namespace ICellHeaderRange {
4269
4285
  }
4270
4286
  }
4271
4287
 
4288
+ /**
4289
+ * An `ICellHeaderRanges` is a collection of {@link ICellHeaderRange}s.
4290
+ *
4291
+ * Useful when working with a discontinuous set of ranges.
4292
+ */
4293
+ export declare interface ICellHeaderRanges {
4294
+ /**
4295
+ * The RunCoords for the range.
4296
+ */
4297
+ getCoords(): Readonly<ICellHeaderRanges.Coords>;
4298
+ /**
4299
+ * Returns the header range at a location relative to the range.
4300
+ *
4301
+ * @param index
4302
+ */
4303
+ at(index: number): ICellHeaderRange;
4304
+ /**
4305
+ * Returns the number of headers ranges.
4306
+ */
4307
+ getCount(): number;
4308
+ /**
4309
+ * {@inheritDoc ICellHeaderRange.setSize}
4310
+ */
4311
+ setSize(size?: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
4312
+ /**
4313
+ * {@inheritDoc ICellHeaderRange.setHidden}
4314
+ */
4315
+ setHidden(hidden?: boolean): this;
4316
+ /**
4317
+ * {@inheritDoc ICellHeaderRange.clear}
4318
+ */
4319
+ clear(): this;
4320
+ /**
4321
+ * Returns the number of headers.
4322
+ *
4323
+ * @remarks
4324
+ * This will remove overlaps.
4325
+ */
4326
+ getHeaderCount(): number;
4327
+ /**
4328
+ * {@inheritDoc ICellHeaderRange.getVisibleCount}
4329
+ */
4330
+ getVisibleCount(): number;
4331
+ /**
4332
+ * Returns true if all of the ranges cover the entire headers.
4333
+ */
4334
+ isEntireHeaders(): boolean;
4335
+ /**
4336
+ * Returns true if any of the ranges cover entire headers.
4337
+ */
4338
+ isEntireHeadersAny(): boolean;
4339
+ /**
4340
+ * {@inheritDoc ICellHeaderRange.getOrientation}
4341
+ */
4342
+ getOrientation(): IRange.Orientation;
4343
+ /**
4344
+ * {@inheritDoc ICellHeaderRange.updateHeaders}
4345
+ */
4346
+ updateHeaders(values: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
4347
+ /**
4348
+ * {@inheritDoc ICellHeaderRange.doBatch}
4349
+ */
4350
+ doBatch<R>(callback: (commit: ITransaction.ICommit) => R | Promise<R>, options?: string | ICellHeaderRange.UpdateHeadersOptions): R | Promise<R>;
4351
+ /**
4352
+ * {@inheritDoc ICellHeaderRange.getSheetHeader}
4353
+ */
4354
+ getSheetHeader<S>(): S;
4355
+ /**
4356
+ * {@inheritDoc ICellHeaderRange.getA1}
4357
+ */
4358
+ getA1(): string;
4359
+ /**
4360
+ * {@inheritDoc ICellHeaderRange.toString}
4361
+ */
4362
+ toString(): string;
4363
+ /**
4364
+ * For runtime type checking.
4365
+ */
4366
+ readonly isICellHeaderRanges: true;
4367
+ }
4368
+
4369
+ /**
4370
+ * {@inheritDoc ICellHeaderRanges}
4371
+ * @see
4372
+ * ### **Interface**
4373
+ *
4374
+ * {@link ICellHeaderRanges}
4375
+ */
4376
+ export declare namespace ICellHeaderRanges {
4377
+ /**
4378
+ * The coord type for a header ranges.
4379
+ */
4380
+ export type Coords = RunCoords[];
4381
+ /**
4382
+ * Address for multiple {@link ICellHeaderRange}s.
4383
+ */
4384
+ export type Address = ICellHeaderRanges | string | ICellHeaderRange.Address | readonly ICellHeaderRange.Address[];
4385
+ /**
4386
+ * Shorthand for persisting.
4387
+ */
4388
+ export type RefJSON = RunCoords[] | RunCoords | string;
4389
+ }
4390
+
4272
4391
  /**
4273
4392
  * Additional cell protection properties.
4274
4393
  *
@@ -6009,6 +6128,14 @@ export declare interface ICellRanges {
6009
6128
  * {@inheritDoc ICellRange.getEntireColumns}
6010
6129
  */
6011
6130
  getEntireColumns(shiftRows?: boolean, options?: ICellRange.GetRangeOptions): this;
6131
+ /**
6132
+ * {@inheritDoc ICellRange.getRowHeaders}
6133
+ */
6134
+ getRowHeaders(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
6135
+ /**
6136
+ * {@inheritDoc ICellRange.getColumnHeaders}
6137
+ */
6138
+ getColumnHeaders(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
6012
6139
  /**
6013
6140
  * {@inheritDoc ICellRange.getDefaultShiftOrientation}
6014
6141
  */
@@ -6121,15 +6248,6 @@ export declare interface ICellRanges {
6121
6248
  * The RangeCoords.
6122
6249
  */
6123
6250
  getCoords(): readonly Readonly<IRange.FixableCoords>[];
6124
- /**
6125
- * Returns the total number of contiguous ranges in this collection.
6126
- */
6127
- getCount(): number;
6128
- /**
6129
- * Returns the range at a specific index.
6130
- * @param index
6131
- */
6132
- at(index: number): ICellRange;
6133
6251
  /**
6134
6252
  * Returns true if the range is invalid.
6135
6253
  * This can occur if a range is removed or created with invalid coordinates.
@@ -11219,6 +11337,14 @@ export declare interface IRangeSelection {
11219
11337
  * @returns The selection coordinates.
11220
11338
  */
11221
11339
  getCoords(): IRangeSelection.Coords;
11340
+ /**
11341
+ * Returns the selection as an array of IRange.Coords.
11342
+ *
11343
+ * @param coords Optional coordinates to convert. If not provided, uses the current selection.
11344
+ * @remarks
11345
+ * The first element is always the active range.
11346
+ */
11347
+ getRangesCoords(coord?: Partial<IRangeSelection.Coords>): IRange.Coords[];
11222
11348
  /**
11223
11349
  * Updates the selection coordinates.
11224
11350
  * @param coords The new coordinates.
@@ -12479,17 +12605,41 @@ export declare namespace ISheetCollection {
12479
12605
  * allowing for actions such as inserting, deleting, resizing, and applying formatting changes.
12480
12606
  */
12481
12607
  export declare interface ISheetHeader extends ITransaction.ITransactional, IListener.ISource<ISheetHeader> {
12608
+ /**
12609
+ * Returns the header at a given offset. Will only return null for invalid header offset. To get a list of headers use {@link getRange}.
12610
+ *
12611
+ * @param index 0-based absolute index.
12612
+ */
12613
+ at(index: number): ICellHeader;
12614
+ /**
12615
+ * Returns a displayable title for the given index.
12616
+ * @param index 0-based absolute index.
12617
+ */
12618
+ getTextAt(index: number): string;
12482
12619
  /**
12483
12620
  * Returns a range of cells for the specified range.
12484
12621
  *
12622
+ * @param address The address or addresses of the header range to retrieve.
12623
+ * @param options Options for retrieving the header ranges.
12485
12624
  * @see
12486
12625
  * {@link ICellHeaderRange}
12487
12626
  */
12488
12627
  getRange(address: ICellHeaderRange.Address, options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
12489
12628
  /**
12490
- * Returns the actives that are used in the selection.
12629
+ * Returns a collection of header ranges for the specified ranges.
12630
+ *
12631
+ * @param address The address or addresses of the header ranges to retrieve.
12632
+ * @param options Options for retrieving the header ranges.
12633
+ */
12634
+ getRanges(address: ICellHeaderRanges.Address, options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
12635
+ /**
12636
+ * Returns the active header range that is used in the selection.
12491
12637
  */
12492
12638
  getSelectedRange(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
12639
+ /**
12640
+ * Returns the active header ranges that are used in the selection.
12641
+ */
12642
+ getSelectedRanges(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
12493
12643
  /**
12494
12644
  * Returns the data ranges for headers that contain information.
12495
12645
  *
@@ -12508,46 +12658,6 @@ export declare interface ISheetHeader extends ITransaction.ITransactional, IList
12508
12658
  * The orientation the headers manage.
12509
12659
  */
12510
12660
  getOrientation(): IRange.Orientation;
12511
- /**
12512
- * @see
12513
- * {@link ICellHeaderRange.setSize}
12514
- */
12515
- setSize(address: ICellHeaderRange.Address | readonly ICellHeaderRange.Address[], size?: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
12516
- /**
12517
- * @see
12518
- * {@link ICellHeaderRange.setHidden}
12519
- */
12520
- setHidden(address: ICellHeaderRange.Address | readonly ICellHeaderRange.Address[], hidden?: boolean): this;
12521
- /**
12522
- * Bulk update api.
12523
- * @remarks
12524
- * This only supports one range at a time but offers a few flavors
12525
- * * update(5, { size: '100px' }); // 0-based index
12526
- * * update({ min: 3, max: 4 }, { size: '100px' }); // 0-based index
12527
- * * update('e:f', { size: '100px' }); // 1-based a1 style
12528
- * * update({ colStart: 3, colEnd: 4 }, { size: '100px' }); // 0-based index
12529
- * * update('5:7', { size: '100px' }); // 1-based a1 style
12530
- * * update({ rowStart: 3, rowEnd: 4 }, { size: '100px' }); // 0-based index
12531
- */
12532
- update(address: ICellHeaderRange.Address | readonly ICellHeaderRange.Address[], update: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
12533
- /**
12534
- * Sets the headers. This supports setting values as a batch.
12535
- * @remarks
12536
- * When setting headers the cells references by this sheet will not update.
12537
- * To ensure they are updated on the sheet call updateHeaderPairs with the range from the header.
12538
- */
12539
- updateHeaderPairs(pairs: ICellHeaderRange.AddressUpdatePair[], options?: ICellHeaderRange.UpdateHeadersOptions): RunCoords[] | null;
12540
- /**
12541
- * Returns the header at a given offset. Will only return null for invalid header offset. To get a list of headers use {@link getRange}.
12542
- *
12543
- * @param index 0-based absolute index.
12544
- */
12545
- at(index: number): ICellHeader;
12546
- /**
12547
- * Returns a displayable title for the given index.
12548
- * @param index 0-based absolute index.
12549
- */
12550
- getTextAt(index: number): string;
12551
12661
  /**
12552
12662
  * Returns a flag indicating if the headers are protected by the sheet.
12553
12663
  */
@@ -12630,6 +12740,14 @@ export declare interface ISheetHeader extends ITransaction.ITransactional, IList
12630
12740
  * Returns a list of SelectedRuns.
12631
12741
  */
12632
12742
  getSelectedRuns(): readonly ITypes.RunCoordValue<ISheetHeader.SelectedRun>[];
12743
+ /**
12744
+ * Sets the headers. This supports setting values as a batch.
12745
+ *
12746
+ * @remarks
12747
+ * When setting headers the cells references by this sheet will not update.
12748
+ * To ensure they are updated on the sheet call updateHeaderPairs with the range from the header.
12749
+ */
12750
+ updateHeaderPairs(pairs: ICellHeaderRange.AddressUpdatePair[], options?: ICellHeaderRange.UpdateHeadersOptions): RunCoords[] | null;
12633
12751
  /**
12634
12752
  * Returns the sheet model used for the header.
12635
12753
  */
@@ -13275,7 +13393,7 @@ export declare namespace ISort {
13275
13393
  export interface DefaultSortCriteria {
13276
13394
  /**
13277
13395
  * The cords that will be sorted.
13278
- * This may ignore the header.
13396
+ * This will include headers even if the are ignored.
13279
13397
  */
13280
13398
  coords: IRange.Coords;
13281
13399
  /**
@@ -13289,6 +13407,10 @@ export declare namespace ISort {
13289
13407
  * If no headers are found this will be empty.
13290
13408
  */
13291
13409
  headers: Map<number, string>;
13410
+ /**
13411
+ * The coords without any headers.
13412
+ */
13413
+ sortCoords: IRange.Coords;
13292
13414
  }
13293
13415
  /**
13294
13416
  * Extends sort options to include options for sorting a range.
@@ -18221,6 +18343,8 @@ declare interface ParsedRuns {
18221
18343
 
18222
18344
  /* Excluded from this release type: parseHeaderRangeAddress */
18223
18345
 
18346
+ /* Excluded from this release type: parseHeaderRangesAddress */
18347
+
18224
18348
  /**
18225
18349
  * Options for parsing a NumberFormat.
18226
18350
  */
@@ -18509,6 +18633,11 @@ declare type RangeToString<R extends IRange.Coords = IRange.Coords, C extends IR
18509
18633
  */
18510
18634
  declare const rangeUnionFromSelection: (selection: IRangeSelection.Coords) => IRange.Coords;
18511
18635
 
18636
+ /**
18637
+ * Returns a list of merged and non-overlapping run coordinates.
18638
+ */
18639
+ declare const removeOverlappingRuns: (runs: readonly Readonly<Partial<RunCoords>>[], merge?: boolean) => RunCoords[];
18640
+
18512
18641
  export declare class Resource implements IResource {
18513
18642
  private _name;
18514
18643
  private _refs;
@@ -18561,6 +18690,11 @@ export declare class ResourceCollection implements IResourceCollection {
18561
18690
  */
18562
18691
  declare const rotatePoints: (points: Point[], deg: number, center?: Point) => Point[];
18563
18692
 
18693
+ /**
18694
+ * Converts a set of RunCoords into a set of Ranges.
18695
+ */
18696
+ declare const runCoordsToRangeCoords: (runs: readonly Readonly<Partial<RunCoords>>[], entireRange: IRange.Coords, isColumn: boolean) => Partial<IRange.FixableCoords>[];
18697
+
18564
18698
  /**
18565
18699
  * Use for tracking the accumulated sizes from the beginning of the headers.
18566
18700
  * @remarks
@@ -19057,8 +19191,12 @@ declare class SheetHeader implements ISheetHeader {
19057
19191
  } | void;
19058
19192
  /** {@inheritDoc ISheetHeader.getRange} */
19059
19193
  getRange(address: ICellHeaderRange.Address, options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
19194
+ /** {@inheritDoc ISheetHeader.getRanges} */
19195
+ getRanges(address: ICellHeaderRanges.Address, options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
19060
19196
  /** {@inheritDoc ISheetHeader.getSelectedRange} */
19061
19197
  getSelectedRange(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
19198
+ /** {@inheritDoc ISheetHeader.getSelectedRanges} */
19199
+ getSelectedRanges(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
19062
19200
  /** {@inheritDoc ISheetHeader.getUsedRange} */
19063
19201
  getUsedRange(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
19064
19202
  /** {@inheritDoc ISheetHeader.getEntireRange} */
@@ -19068,9 +19206,9 @@ declare class SheetHeader implements ISheetHeader {
19068
19206
  /** {@inheritDoc ISheetHeader.updateHeaderPairs} */
19069
19207
  updateHeaderPairs(pairs: ICellHeaderRange.AddressUpdatePair[], options?: ICellHeaderRange.UpdateHeadersOptions): RunCoords[] | null;
19070
19208
  protected _parseHeaderRangeAddress(address: ICellHeaderRange.Address): RunCoords;
19071
- update(addresses: ICellHeaderRange.Address | ICellHeaderRange.Address[], update: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
19072
- setSize(address: ICellHeaderRange.Address | ICellHeaderRange.Address[], size?: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
19073
- setHidden(address: ICellHeaderRange.Address | ICellHeaderRange.Address[], hidden?: boolean): this;
19209
+ protected _update(addresses: ICellHeaderRange.Address | ICellHeaderRange.Address[], update: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
19210
+ protected _setSize(address: ICellHeaderRange.Address | ICellHeaderRange.Address[], size?: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
19211
+ protected _setHidden(address: ICellHeaderRange.Address | ICellHeaderRange.Address[], hidden?: boolean): this;
19074
19212
  protected _clear(coords: RunCoords, options?: ICellHeaderRange.UpdateHeadersOptions): void;
19075
19213
  protected _getSnapshot(coordsFrom?: RunCoords, optionsMark?: ICellHeaderRange.CopyOptions): ICellHeaderRange.ISnapshot;
19076
19214
  /** {@inheritDoc ISheetHeader.isProtected} */
@@ -20834,7 +20972,9 @@ declare namespace _Utils {
20834
20972
  findRunningHiddenRuns,
20835
20973
  findRunningSpanLength,
20836
20974
  rangeUnionFromSelection,
20837
- createRunsFromSelection
20975
+ createRunsFromSelection,
20976
+ runCoordsToRangeCoords,
20977
+ removeOverlappingRuns
20838
20978
  }
20839
20979
  }
20840
20980