@sheetxl/sdk 0.7.22 → 0.7.24

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/4nRTADv5HPQL1vXg.cjs +55 -0
  2. package/browser/cjs/{Crp9TU9-MK3650CN.cjs → B-GZ3aGR4CC3aXY8.cjs} +1 -1
  3. package/browser/cjs/{kPuyJm8mZoWTYS_E.cjs → B0QQPONDaFljhVKo.cjs} +1 -1
  4. package/browser/cjs/{eNn-ZEASuspyp1hx.cjs → B7mYmhEMfsgLLZSO.cjs} +1 -1
  5. package/browser/cjs/{RCfQ4lI4PRIrMC8x.cjs → BK32k40KghpIOlB8.cjs} +1 -1
  6. package/browser/cjs/{DLiId6Hk_ia6LkL1.cjs → BNuFUcNR06uRsvA1.cjs} +1 -1
  7. package/browser/cjs/{BG_oucq-hFgpN3c_.cjs → BXxW8zZCnM6ekizZ.cjs} +3 -3
  8. package/browser/cjs/{BG81a_nQI23GJS2e.cjs → B_q_wjH1K_m5Z-OG.cjs} +1 -1
  9. package/browser/cjs/{4ehQu8sjj5Pnrysi.cjs → Ba0AsDQgQrStKCkJ.cjs} +1 -1
  10. package/browser/cjs/{B8W9RuhDKmuIzhpX.cjs → BnaX3btSZgKjJD3g.cjs} +1 -1
  11. package/browser/cjs/{BwnUVVFNWZGHfNoa.cjs → BpXJOTZx-SAOZ1N7.cjs} +1 -1
  12. package/browser/cjs/{DaENj_w2AIRp0Mqp.cjs → BudkWKSqVr7bJRuF.cjs} +2 -2
  13. package/browser/cjs/{BzeCA_-fu9cCwq8D.cjs → C4saOjDU56FUA1C_.cjs} +1 -1
  14. package/browser/cjs/{DAsr1dw3BvkcVNSg.cjs → CHthfW83cXfuE388.cjs} +1 -1
  15. package/browser/cjs/{DWBmsvMLywwdyxBk.cjs → CPqsppW_PDdOuWi7.cjs} +2 -2
  16. package/browser/cjs/{rh6SPofhK2I4u0wE.cjs → CUudmqy1T7P7mkGl.cjs} +1 -1
  17. package/browser/cjs/{CKxBDw1KEkPQauXM.cjs → CbYba_LEevcP8X8n.cjs} +1 -1
  18. package/browser/cjs/{BWVgq2uGlV4ae5C1.cjs → CkvATWjOKcLiTZCO.cjs} +1 -1
  19. package/browser/cjs/{Prn8RKUoSRnLhv0l.cjs → D3iRCLdh1hUWXkvK.cjs} +1 -1
  20. package/browser/cjs/{BF-zwvT-2M-AV0hY.cjs → D53FOFh4WSvGe4_f.cjs} +1 -1
  21. package/browser/cjs/{Bwdp2MZZ_KMUSHFP.cjs → D8NjQdFy1FQENdPM.cjs} +1 -1
  22. package/browser/cjs/{C9c-bLrS-ABA59Nt.cjs → DHnFVxl2wCVXd5C4.cjs} +1 -1
  23. package/browser/cjs/{8P123x_psu0vZSU9.cjs → Dw64xUCVjlNdSiKN.cjs} +1 -1
  24. package/browser/cjs/{BPqqnIrbiWknh9gL.cjs → MOaKSxq_UD2J5Eni.cjs} +1 -1
  25. package/browser/cjs/{BjtI3uBzEXjY1mkq.cjs → VTRx4UGe0xOmFTvv.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{DXR0dXDjeEBxAu4n.cjs → qxyizrNao-3Gks7D.cjs} +1 -1
  28. package/browser/cjs/{DtIDwaFB44U_fs6n.cjs → wcdsJwbp_PMMWcu8.cjs} +1 -1
  29. package/browser/esm/{DgV8M1pBIWVXUkDT.mjs → 3ZLVRcfE1wxWjdrj.mjs} +1 -1
  30. package/browser/esm/{C95Fv6Jcx41y7Ojk.mjs → B5kmsnnq_a2zF3O9.mjs} +2 -2
  31. package/{node/esm/DHzDNjbwGeV557ui.mjs → browser/esm/BAo36lBnQlvEr4dC.mjs} +1 -1
  32. package/{node/esm/DSq_gbos0Y_f1e79.mjs → browser/esm/BwZ944RRk5Fvs6Yd.mjs} +1 -1
  33. package/{node/esm/eQPdjMXubhwL38RR.mjs → browser/esm/C1G-xsCH6Y_ja7D_.mjs} +1 -1
  34. package/{node/esm/CRdl_Q0yPGAfPz6h.mjs → browser/esm/CAzE79mu7a-x2pEZ.mjs} +1 -1
  35. package/{node/esm/DtMc3NKUQdBlPqjH.mjs → browser/esm/CEm5O9cEAKspymuB.mjs} +1 -1
  36. package/browser/esm/{JFehdQ_Sk02CZY_O.mjs → CSeyYzHBuoitKLbn.mjs} +1 -1
  37. package/{node/esm/CQc0tnp5lxsTPGdY.mjs → browser/esm/Cmpebek34NmB7dV0.mjs} +1 -1
  38. package/browser/esm/{B7pD0rGUnhHtNaJF.mjs → CpwLd2BOCK1WVLsD.mjs} +1 -1
  39. package/browser/esm/{E1JJ_668Lc6gmWHk.mjs → CrC5be5VvjN8YfwZ.mjs} +1 -1
  40. package/browser/esm/{CVZfQjAdTLHiHG6R.mjs → CsuiTCfCzmPduqfj.mjs} +1 -1
  41. package/browser/esm/{DzXpNzto_AaLbLeR.mjs → CxwxBO2x7yk3tpIF.mjs} +2 -2
  42. package/browser/esm/{BDSR4TWQKSu4MJs5.mjs → D0auuAKpMpbhgEMy.mjs} +1 -1
  43. package/browser/esm/{Cx9SZZloPWCEjdF7.mjs → D5goRcMOjSd8ZZif.mjs} +1 -1
  44. package/browser/esm/{DxDSAU2V0O76Q2g9.mjs → DDEe6q9G_Pmz1lDx.mjs} +1 -1
  45. package/{node/esm/C4mqQtlHSj_kEvZt.mjs → browser/esm/DDZRbsQDDnP5GEsf.mjs} +1 -1
  46. package/browser/esm/{iaNS1GssHrDrrGa9.mjs → DJqp9vjX0ZdGvX7s.mjs} +1 -1
  47. package/browser/esm/{Ckwnr4G6FNOBxUKU.mjs → DPbybjBmhyd8GfFC.mjs} +1 -1
  48. package/browser/esm/{BLLhl3k63e5tEJYP.mjs → DZnIIFWA1G12eVHx.mjs} +1 -1
  49. package/{node/esm/CYEygIjH4EBxGCp5.mjs → browser/esm/Db5bJe8Onimcrhvj.mjs} +1 -1
  50. package/browser/esm/{DhJTZCn3Uv0UfNlL.mjs → DnKyXPJdm_lAYion.mjs} +1 -1
  51. package/browser/esm/{DBrBKxntXAS4EBsJ.mjs → DpOcuJqOimTs7oFN.mjs} +4391 -4383
  52. package/browser/esm/{Ccad_NL38ZuzsOuN.mjs → DugIyKvxDMZtI6zo.mjs} +1 -1
  53. package/browser/esm/{C4B6ieQfBNQ8NWT8.mjs → Szxfyfq7rOsoSgQD.mjs} +3 -3
  54. package/browser/esm/{DNCwOd97er-oE4i-.mjs → Xr5FE3F8vCWGZ5F8.mjs} +1 -1
  55. package/browser/esm/index.mjs +2 -2
  56. package/browser/esm/{BeNiW7K89qdTHcyZ.mjs → sZ-OlGRn3tftSRQo.mjs} +1 -1
  57. package/{browser/esm/DHzDNjbwGeV557ui.mjs → node/esm/BAo36lBnQlvEr4dC.mjs} +1 -1
  58. package/node/esm/{B3pPsPOxXfjIbpBc.mjs → BLx9RY501fxRpmUh.mjs} +1 -1
  59. package/node/esm/{DtMeBzYnl2ofA3SU.mjs → BUGUMXvtGVRJjqoa.mjs} +1 -1
  60. package/node/esm/{D6vgNmNn2sa8Zo2E.mjs → BY5bpznEGVoQ2nbr.mjs} +1 -1
  61. package/node/esm/{C5z5W2VKCDZxZErS.mjs → BZngrRnBLy2_q09D.mjs} +1 -1
  62. package/node/esm/{BS2w8nLO6jwewlIh.mjs → BaCXM0LlL1TEKxSV.mjs} +1 -1
  63. package/{browser/esm/DSq_gbos0Y_f1e79.mjs → node/esm/BwZ944RRk5Fvs6Yd.mjs} +1 -1
  64. package/{browser/esm/eQPdjMXubhwL38RR.mjs → node/esm/C1G-xsCH6Y_ja7D_.mjs} +1 -1
  65. package/{browser/esm/CRdl_Q0yPGAfPz6h.mjs → node/esm/CAzE79mu7a-x2pEZ.mjs} +1 -1
  66. package/{browser/esm/DtMc3NKUQdBlPqjH.mjs → node/esm/CEm5O9cEAKspymuB.mjs} +1 -1
  67. package/node/esm/{JFehdQ_Sk02CZY_O.mjs → CSeyYzHBuoitKLbn.mjs} +1 -1
  68. package/{browser/esm/CQc0tnp5lxsTPGdY.mjs → node/esm/Cmpebek34NmB7dV0.mjs} +1 -1
  69. package/node/esm/{BDSR4TWQKSu4MJs5.mjs → D0auuAKpMpbhgEMy.mjs} +1 -1
  70. package/node/esm/{DxDSAU2V0O76Q2g9.mjs → DDEe6q9G_Pmz1lDx.mjs} +1 -1
  71. package/{browser/esm/C4mqQtlHSj_kEvZt.mjs → node/esm/DDZRbsQDDnP5GEsf.mjs} +1 -1
  72. package/node/esm/{iaNS1GssHrDrrGa9.mjs → DJqp9vjX0ZdGvX7s.mjs} +1 -1
  73. package/node/esm/{Ckwnr4G6FNOBxUKU.mjs → DPbybjBmhyd8GfFC.mjs} +1 -1
  74. package/node/esm/{DlH4gSCmCWHrZ5KA.mjs → DZ2bNT_wREthJFNz.mjs} +2 -2
  75. package/node/esm/{BLLhl3k63e5tEJYP.mjs → DZnIIFWA1G12eVHx.mjs} +1 -1
  76. package/{browser/esm/CYEygIjH4EBxGCp5.mjs → node/esm/Db5bJe8Onimcrhvj.mjs} +1 -1
  77. package/node/esm/{5ncGZrnXLJWZdlAS.mjs → DleT-7IR4Y9SNWld.mjs} +1 -1
  78. package/node/esm/{DhJTZCn3Uv0UfNlL.mjs → DnKyXPJdm_lAYion.mjs} +1 -1
  79. package/node/esm/{C8SJyJrK7wauvaYH.mjs → K-TBJLm0kRanHzjh.mjs} +1 -1
  80. package/node/esm/index.mjs +485 -491
  81. package/node/esm/{D5GT8lL2mkHYYpEm.mjs → llZohIB6k9AHOBpc.mjs} +1 -1
  82. package/node/esm/{BeNiW7K89qdTHcyZ.mjs → sZ-OlGRn3tftSRQo.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +12 -3
  85. package/types/scripting.d.ts +50 -16
  86. package/browser/cjs/CY9eCFSjX4vHL2wh.cjs +0 -55
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.22
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.24
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.22
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.24
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.22",
4
+ "version": "0.7.24",
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.22",
47
- "@sheetxl/scripting": "^0.7.22",
48
- "@sheetxl/utils": "^0.7.22",
46
+ "@sheetxl/primitives": "^0.7.24",
47
+ "@sheetxl/scripting": "^0.7.24",
48
+ "@sheetxl/utils": "^0.7.24",
49
49
  "bahttext": "^2.3.0",
50
50
  "bessel": "^1.0.2",
51
51
  "chalk": "^5.6.2",
package/types/index.d.ts CHANGED
@@ -1354,15 +1354,24 @@ declare const getFileNameExtension: (path: string) => string;
1354
1354
 
1355
1355
  declare function getFontList(): readonly FontHandle[];
1356
1356
 
1357
- declare interface GetRangeEntriesOptions<T = any, E = any> {
1357
+ declare interface GetTypedRangeOptions<T = any, E = any> {
1358
+ /**
1359
+ * If 'true' will not return ranges that are hidden.
1360
+ * If partially hidden the 'fullContained' is applied.
1361
+ */
1358
1362
  ignoreHidden?: boolean | IRange.Orientation;
1363
+ /**
1364
+ * Only return ranges that are completely contained with the search range.
1365
+ *
1366
+ * @defaultValue false
1367
+ */
1359
1368
  fullyContained?: boolean;
1360
- onEntry?: (value: E, entry: ISpatialMap.Entry<T>) => T | void;
1361
- noCache?: boolean;
1362
1369
  sort?: {
1363
1370
  orientation?: IRange.Orientation;
1364
1371
  reverse?: boolean;
1365
1372
  };
1373
+ onEntry?: (value: E, entry: ISpatialMap.Entry<T>) => T | void;
1374
+ noCache?: boolean;
1366
1375
  }
1367
1376
 
1368
1377
  declare interface HiddenRun extends ITypes.RunCoordValue<boolean> {
@@ -19078,6 +19078,9 @@ declare module "selection/RangeSelection" {
19078
19078
  import { ListenerEmitter } from "listener/ListenerEmitter";
19079
19079
  import { HiddenHeadersAt, CellFinder } from "selection/_RangeSelectionUtils";
19080
19080
  import { IRangeSelection } from "selection/IRangeSelection";
19081
+ /**
19082
+ * TODO - Not in USE. meant to replace the mess that is useSelection
19083
+ */
19081
19084
  export class RangeSelection {
19082
19085
  protected _coords: IRangeSelection.Coords;
19083
19086
  protected _sheet: ISheet;
@@ -21342,23 +21345,27 @@ declare module "sheet/_SheetTypes" {
21342
21345
  table?: ITable;
21343
21346
  /**
21344
21347
  * Conditional styles.
21348
+ *
21349
+ * @remarks
21350
+ * Overlaps are allowed
21345
21351
  */
21346
21352
  conditionals?: ConditionalEntry[];
21347
21353
  /**
21348
21354
  * The style for a collection of cells.
21355
+ *
21356
+ * @remarks
21357
+ * This is the style set by the user.
21349
21358
  */
21350
21359
  directStyle?: IProperties.ICellRanged<IStyle.Properties>;
21351
- /**
21352
- * This is also a collection of styles but we track these separately so that we can save
21353
- * these styles back to Excel.
21354
- */
21355
- styledHeaderRange?: IProperties.ICellRanged<IStyle.Properties>;
21356
21360
  /**
21357
21361
  * The hyperlink.
21358
21362
  */
21359
21363
  hyperlink?: IHyperlink.Properties;
21360
21364
  /**
21361
- * The unlock.
21365
+ * Directives for unlocking a range. (Only applies if the sheet is protected).
21366
+ *
21367
+ * @remarks
21368
+ * Overlaps are allowed
21362
21369
  */
21363
21370
  unlock?: UnlockEntry[];
21364
21371
  /**
@@ -21379,14 +21386,20 @@ declare module "sheet/_SheetTypes" {
21379
21386
  continuous?: IProperties.ICellRanged<IStyle.Properties>;
21380
21387
  /**
21381
21388
  * The comments.
21389
+ *
21390
+ * @remarks
21391
+ * A block of comments for the range.
21382
21392
  */
21383
21393
  comments?: IComment.JSON;
21384
21394
  /**
21385
- * The formula.
21395
+ * A block of R1C1 formulas.
21386
21396
  */
21387
21397
  formula?: FormulaEntry;
21388
21398
  /**
21389
- * Valid spills.
21399
+ * Spills.
21400
+ *
21401
+ * @remarks
21402
+ * There can be multiple spills on a cell but only one will be valid.
21390
21403
  */
21391
21404
  spills?: SpillEntry[];
21392
21405
  /**
@@ -21397,13 +21410,22 @@ declare module "sheet/_SheetTypes" {
21397
21410
  * Errors during calculation.
21398
21411
  */
21399
21412
  calcError?: string;
21413
+ /**
21414
+ * Non overlapping data validation entries.
21415
+ */
21416
+ dataValidation?: any;
21417
+ /**
21418
+ * Overlapping named ranges.
21419
+ */
21420
+ namedRange?: any[];
21400
21421
  }
21401
21422
  /**
21402
- * Range types are stored with a sheet range.
21403
- * @internal
21404
- */
21423
+ * Range types are stored with a sheet range.
21424
+ * @internal
21425
+ */
21405
21426
  const Type: {
21406
21427
  readonly Style: "style";
21428
+ readonly Continuous: "continuous";
21407
21429
  readonly Table: "table";
21408
21430
  readonly Merge: "merge";
21409
21431
  readonly Hyperlink: "hyperlink";
@@ -21411,11 +21433,14 @@ declare module "sheet/_SheetTypes" {
21411
21433
  readonly Unlock: "unlock";
21412
21434
  readonly Contentful: "contentful";
21413
21435
  readonly Conditional: "conditional";
21436
+ /**
21437
+ * Has a formula
21438
+ */
21414
21439
  readonly Formula: "formula";
21415
21440
  readonly Spill: "spill";
21416
- readonly Continuous: "continuous";
21417
21441
  readonly Pending: "pending";
21418
21442
  readonly CalcError: "calcError";
21443
+ readonly Validation: "dataValidation";
21419
21444
  };
21420
21445
  type Type = typeof Type[keyof typeof Type];
21421
21446
  }
@@ -22149,15 +22174,24 @@ declare module "sheet/Sheet" {
22149
22174
  removeListener: IListener.Remove;
22150
22175
  options: ICellRange.ListenerOptions;
22151
22176
  }
22152
- interface GetRangeEntriesOptions<T = any, E = any> {
22177
+ interface GetTypedRangeOptions<T = any, E = any> {
22178
+ /**
22179
+ * If 'true' will not return ranges that are hidden.
22180
+ * If partially hidden the 'fullContained' is applied.
22181
+ */
22153
22182
  ignoreHidden?: boolean | IRange.Orientation;
22183
+ /**
22184
+ * Only return ranges that are completely contained with the search range.
22185
+ *
22186
+ * @defaultValue false
22187
+ */
22154
22188
  fullyContained?: boolean;
22155
- onEntry?: (value: E, entry: ISpatialMap.Entry<T>) => T | void;
22156
- noCache?: boolean;
22157
22189
  sort?: {
22158
22190
  orientation?: IRange.Orientation;
22159
22191
  reverse?: boolean;
22160
22192
  };
22193
+ onEntry?: (value: E, entry: ISpatialMap.Entry<T>) => T | void;
22194
+ noCache?: boolean;
22161
22195
  }
22162
22196
  interface ViewEdgeEntry {
22163
22197
  rowIndex: number;
@@ -22636,7 +22670,7 @@ declare module "sheet/Sheet" {
22636
22670
  * Tries to cache and can exclude hidden.
22637
22671
  * @internal
22638
22672
  */
22639
- protected _getRangedEntries<T, E = T>(key: string, ranges: readonly IRange.Coords[], options?: GetRangeEntriesOptions<T, E>): T[];
22673
+ protected _getRangedEntries<T, E = T>(key: keyof State, ranges: readonly IRange.Coords[], options?: GetTypedRangeOptions<T, E>): T[];
22640
22674
  /** @internal */
22641
22675
  protected _processAnchorShift<T extends IAnchorEntry>(options: ISpatialMap.ShiftDetails<T>): ISpatialMap.Entry<T>;
22642
22676
  /** @internal */