@sheetxl/sdk 0.7.11 → 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.
- package/browser/cjs/{DtWHmqYZIIx2p37y.cjs → 84Qf-nDnKiLQ7HBc.cjs} +1 -1
- package/browser/cjs/{C8lgtu3oD-6oTt1F.cjs → B7jslq9oFR6njKnW.cjs} +1 -1
- package/browser/cjs/{Q7H5TC0IH1qRSJbI.cjs → BRkze9nkXD-OqXPT.cjs} +1 -1
- package/browser/cjs/{B_JdiofX0puC2mFc.cjs → BWZocbfJ9j-b4EWY.cjs} +1 -1
- package/browser/cjs/{BDCDRjfkEm0pytLk.cjs → BibVdFisqTXEG0Y9.cjs} +1 -1
- package/browser/cjs/{BsNHpUpskD-exH1H.cjs → BuldQ3tfFYodOk9H.cjs} +1 -1
- package/browser/cjs/{5gZevu8mexJt-Tk0.cjs → C9AVwqTuY33VzH4e.cjs} +3 -3
- package/browser/cjs/{CrL6ZYcWHsZ6jwws.cjs → CDWlJ97tWSqdWRrC.cjs} +1 -1
- package/browser/cjs/{DchXJvBNii6Xtg7w.cjs → CFvba6QKlCV7_Kvg.cjs} +1 -1
- package/browser/cjs/{Dpn-9o-fsUddPCil.cjs → CKFAjAwy-5z8a99W.cjs} +1 -1
- package/browser/cjs/{y-f4O_t985QBIjv1.cjs → CWcLBz5wacAKZ65z.cjs} +1 -1
- package/browser/cjs/{Dm3SxDzQhUD777p8.cjs → CXsCIuAjTadPMZ2k.cjs} +1 -1
- package/browser/cjs/{loINt7m5DwgCk0o9.cjs → CY7qa68VhzxfCks0.cjs} +1 -1
- package/browser/cjs/{Bv_X8OqEmlRsQkmf.cjs → CbHx0iP74qQiiFGA.cjs} +2 -2
- package/browser/cjs/{BrXmwqy3StJEwsOr.cjs → CgnB_AUJ9_aLjrjf.cjs} +1 -1
- package/browser/cjs/{bIfYFpHp8XCKu4XX.cjs → D0rqCTa18JiwtkFg.cjs} +1 -1
- package/browser/cjs/{MWn8zBfjwx4WEaRc.cjs → D9ALzAAPbqKp0qG4.cjs} +1 -1
- package/browser/cjs/{Bjh0M1RIejIAj4Pq.cjs → DBL1LvXwFpR7MLsM.cjs} +1 -1
- package/browser/cjs/{C59rgmZJK3FlOUR6.cjs → DYOYeMed2UXw1HaH.cjs} +1 -1
- package/browser/cjs/{D1FZwjQHdS5YuyKy.cjs → DgKonEP5su-An4tv.cjs} +1 -1
- package/browser/cjs/{CVfHDyUmU_1JV8RE.cjs → Djw2mPk9DA_xDR48.cjs} +2 -2
- package/browser/cjs/{f9LzlZDedrTDVYaW.cjs → DrE0C6ruqS4-YkDG.cjs} +1 -1
- package/browser/cjs/{C8Bcqt5a7LucHlYg.cjs → FmMGqD2eGNSxs_tp.cjs} +1 -1
- package/browser/cjs/{CjUZ3yMr_gsVgXPn.cjs → N8D-AiKZvmSpJoyk.cjs} +1 -1
- package/browser/cjs/{CyrQiGGpakMpaktt.cjs → NwQUH5RlCwVclTou.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BUwCvXFu15osbjB5.cjs → m-BThCiOY0U2UHKz.cjs} +1 -1
- package/browser/cjs/rCv0GyYPZv7sdNXw.cjs +55 -0
- package/{node/esm/BAU9OtGs9yYnSf9K.mjs → browser/esm/B0zJo_YhAJZgLFb2.mjs} +1 -1
- package/{node/esm/Ldad50b3N2BrQH9d.mjs → browser/esm/B1mQhILY_Ee8mZj6.mjs} +1 -1
- package/browser/esm/{BXSgUGgeI4HG_8R-.mjs → B6s60UZeDi9sgRHT.mjs} +1 -1
- package/browser/esm/{BnGCEHYqDceiuVJy.mjs → B8TYkzlDKU9Ggkas.mjs} +1 -1
- package/browser/esm/{jzRUvp4sjg6M9n3j.mjs → BTrXUcjikfiXBuQs.mjs} +1 -1
- package/browser/esm/{D0PO4OUSFJci0kGA.mjs → BUh4gZOH8Uxd-hWh.mjs} +5738 -5578
- package/browser/esm/{Crw-7_O7d6Qkc4cu.mjs → BXMGu5NmEgJKrpDn.mjs} +2 -2
- package/browser/esm/{2XeY8EYFW7ysBXQC.mjs → BelRhaFYXfqn3xBt.mjs} +1 -1
- package/browser/esm/{D1zSypswe90EC3I6.mjs → BqrAMV-sxGrw_IGy.mjs} +1 -1
- package/browser/esm/{2VqvsSteXZ_vIKsT.mjs → Byme5OT9_LV09DwE.mjs} +1 -1
- package/browser/esm/{ChEZIvO9NuTvHcOA.mjs → C-rY9IQnclqMvLhW.mjs} +1 -1
- package/browser/esm/{CovVGEuAngdp3Qcy.mjs → C3UqdgBtXrjr9U7B.mjs} +1 -1
- package/browser/esm/{D1e9hAO9FlJWf7FJ.mjs → CZzcgxj1VfTcHOLD.mjs} +1 -1
- package/{node/esm/bJBo3uc8j5S2Go5P.mjs → browser/esm/CsjFegG9ZsVPWgLy.mjs} +1 -1
- package/{node/esm/DH4xqJygUlG2lET2.mjs → browser/esm/Cz5dfo_pXqz_RSCW.mjs} +1 -1
- package/browser/esm/{DXWuE1o-UUQfzt0A.mjs → D2aynnS_ZvhUymlW.mjs} +2 -2
- package/browser/esm/{D2864L-Xux_M6oO_.mjs → D5SlMU39knV0sfaE.mjs} +1 -1
- package/browser/esm/{D-ZOoxK1cxc5_BJI.mjs → DECRnCXvKcFm5UW_.mjs} +3 -3
- package/browser/esm/{aABK-zFqofnPJqGj.mjs → DPGNTew-J9BDfx7H.mjs} +1 -1
- package/browser/esm/{CsT_89Zow9b3Y3se.mjs → DVs7wiZMt1NvmibL.mjs} +1 -1
- package/browser/esm/{nU8LEuctytxi6s8t.mjs → DdFgB4nRiWb-x8MU.mjs} +1 -1
- package/browser/esm/{DaVEypU8BFYwsSfA.mjs → DmzWhWp1sSLTOJmk.mjs} +1 -1
- package/{node/esm/B37h4qPiiKhdkmhq.mjs → browser/esm/DrgyAIoXbBJ7XEJz.mjs} +1 -1
- package/browser/esm/{9z6CRFodxnfx9iDD.mjs → JBuDAROw1IhzpBDK.mjs} +1 -1
- package/browser/esm/{MGzrljP3VHRt7nmk.mjs → SAWt7fxsw4YrVlsO.mjs} +1 -1
- package/browser/esm/{D_xHjggCuNwxWwLi.mjs → czwXw8arBOM78nIR.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/BPEbOkOMocukDAar.mjs → browser/esm/obyONN_ql1eCkYqn.mjs} +1 -1
- package/{browser/esm/BAU9OtGs9yYnSf9K.mjs → node/esm/B0zJo_YhAJZgLFb2.mjs} +1 -1
- package/{browser/esm/Ldad50b3N2BrQH9d.mjs → node/esm/B1mQhILY_Ee8mZj6.mjs} +1 -1
- package/node/esm/{Cu68B-_Hko3cotQs.mjs → BSchhHzd9LhOSQyh.mjs} +2 -2
- package/node/esm/{jzRUvp4sjg6M9n3j.mjs → BTrXUcjikfiXBuQs.mjs} +1 -1
- package/node/esm/{D1zSypswe90EC3I6.mjs → BqrAMV-sxGrw_IGy.mjs} +1 -1
- package/node/esm/{2VqvsSteXZ_vIKsT.mjs → Byme5OT9_LV09DwE.mjs} +1 -1
- package/node/esm/{ChEZIvO9NuTvHcOA.mjs → C-rY9IQnclqMvLhW.mjs} +1 -1
- package/node/esm/{D1e9hAO9FlJWf7FJ.mjs → CZzcgxj1VfTcHOLD.mjs} +1 -1
- package/{browser/esm/bJBo3uc8j5S2Go5P.mjs → node/esm/CsjFegG9ZsVPWgLy.mjs} +1 -1
- package/{browser/esm/DH4xqJygUlG2lET2.mjs → node/esm/Cz5dfo_pXqz_RSCW.mjs} +1 -1
- package/node/esm/{D2864L-Xux_M6oO_.mjs → D5SlMU39knV0sfaE.mjs} +1 -1
- package/node/esm/{Cbc6DQzMsCf4bGWu.mjs → D76Ug5nx4id19sWo.mjs} +1 -1
- package/node/esm/{DsII_YZ19g2EexaT.mjs → DBCmVfDXH2Gjy1gb.mjs} +1 -1
- package/node/esm/{C_9uNDj180I7dwXb.mjs → DGPSmLySgorgnRpF.mjs} +1 -1
- package/node/esm/{CsT_89Zow9b3Y3se.mjs → DVs7wiZMt1NvmibL.mjs} +1 -1
- package/node/esm/{nU8LEuctytxi6s8t.mjs → DdFgB4nRiWb-x8MU.mjs} +1 -1
- package/node/esm/{BJ27lhC2nHft7hxZ.mjs → DpSNP5QMfZvpJ_wv.mjs} +1 -1
- package/{browser/esm/B37h4qPiiKhdkmhq.mjs → node/esm/DrgyAIoXbBJ7XEJz.mjs} +1 -1
- package/node/esm/{C_Etz1Ndt6MGtcR7.mjs → DvtObSijnfKp4hVX.mjs} +1 -1
- package/node/esm/{9z6CRFodxnfx9iDD.mjs → JBuDAROw1IhzpBDK.mjs} +1 -1
- package/node/esm/{MGzrljP3VHRt7nmk.mjs → SAWt7fxsw4YrVlsO.mjs} +1 -1
- package/node/esm/{T5-7OxISllpg94OC.mjs → YEoEG9HlehI4GxoO.mjs} +1 -1
- package/node/esm/index.mjs +2384 -2229
- package/node/esm/{CGqkx3RVBQTmg5TU.mjs → jQQyFKgcBYKkYy5u.mjs} +1 -1
- package/node/esm/{BFfXGP7TlVH1UKYL.mjs → ne4Ow4B53KelbGbA.mjs} +1 -1
- package/{browser/esm/BPEbOkOMocukDAar.mjs → node/esm/obyONN_ql1eCkYqn.mjs} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +205 -65
- package/types/scripting.d.ts +609 -400
- package/browser/cjs/BXCJwFo_6EDfSUlX.cjs +0 -55
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
47
|
-
"@sheetxl/scripting": "^0.7.
|
|
48
|
-
"@sheetxl/utils": "^0.7.
|
|
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():
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
-
|
|
19072
|
-
|
|
19073
|
-
|
|
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
|
|