@sheetxl/sdk 0.7.18 → 0.7.20

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/{CPnvjVbtWDrMHnVp.cjs → B-e67SgcDeVXYq1_.cjs} +1 -1
  2. package/browser/cjs/{xcuC5xgcUcatsh4E.cjs → B-wJgWraWsu8M2jt.cjs} +1 -1
  3. package/browser/cjs/{g3AcDhTMwqygk1IV.cjs → B77pLWE3V5W3amo1.cjs} +2 -2
  4. package/browser/cjs/{qYG4rnu3uxXHcfGV.cjs → B8OTK0gv9DPVNtwl.cjs} +1 -1
  5. package/browser/cjs/{CqVw8m0gLJvjj5O8.cjs → BCi5YPsecmi56IGb.cjs} +1 -1
  6. package/browser/cjs/{DX26zq_h6hmXFJVW.cjs → BgLpvF69qFQfZa2M.cjs} +1 -1
  7. package/browser/cjs/{DX5BhPPVmacn6em6.cjs → Bm7x4BoNgaWv40jF.cjs} +1 -1
  8. package/browser/cjs/{X37GrEENAlW0Qox3.cjs → BmR-YJte1EuYglOd.cjs} +3 -3
  9. package/browser/cjs/{D6GXbdIfAgb90zFg.cjs → Br18MgKzO7PAc1eF.cjs} +1 -1
  10. package/browser/cjs/Buqgpz8QhXr2g6sY.cjs +55 -0
  11. package/browser/cjs/{QbVnUM46A8SB45k2.cjs → CEOsAQVXtgOKozzJ.cjs} +1 -1
  12. package/browser/cjs/{Dk_raaxnKnVYaHd7.cjs → CP9Z8FTPNsuOGZ1v.cjs} +1 -1
  13. package/browser/cjs/{DIye4N5BqikuUrqW.cjs → CRxqUX3vFoTZwcmd.cjs} +1 -1
  14. package/browser/cjs/{D9q__GBTtg6U-DjT.cjs → CnQ4Opbsjq08bDRA.cjs} +1 -1
  15. package/browser/cjs/{CCfRS9bSenD7fkfc.cjs → Cu4wFA-2bpK6eDxD.cjs} +1 -1
  16. package/browser/cjs/{BlACsFWxH2bn0vGS.cjs → DKY3bu2SNjs1eBJu.cjs} +1 -1
  17. package/browser/cjs/{CDJMoY-OmzOxwZKp.cjs → DOSjViUZDw_kU3fS.cjs} +1 -1
  18. package/browser/cjs/{BzCNjJop_8cj4BIB.cjs → DaRt-i-6OVn3PSZ4.cjs} +1 -1
  19. package/browser/cjs/{DpIYBI4O-Xj4hjvh.cjs → Djzw3VIjsF_bVRQs.cjs} +1 -1
  20. package/browser/cjs/{VusdQS1kFDRo5fAC.cjs → DkZ7rAY0IOHAiORb.cjs} +1 -1
  21. package/browser/cjs/{BWUPqYD6exxbYbYX.cjs → DpgVusnwWv9QkFwp.cjs} +2 -2
  22. package/browser/cjs/{CEPvnP1qxucXEkTm.cjs → DtnY-KOvnyGkaGFL.cjs} +1 -1
  23. package/browser/cjs/{DTzA3L6KzutJ0CbY.cjs → DtwRIlHEZdfukrJO.cjs} +1 -1
  24. package/browser/cjs/{VNCsLiN_k-qg4LBm.cjs → DvY4kRGeIIn6iPvk.cjs} +1 -1
  25. package/browser/cjs/{Bq6Zm7vwFPsApjT5.cjs → KvzoF8Fzl25ZPXTn.cjs} +1 -1
  26. package/browser/cjs/{BEh6d5Q8uH2QcOR5.cjs → at5g5xJXTEm4iVOH.cjs} +1 -1
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/cjs/{Bv6e5w1XVj_jN-80.cjs → rd79YWTYp-8sDg0S.cjs} +1 -1
  29. package/{node/esm/CFKkK-BxwJI0N3-d.mjs → browser/esm/6Q--gcMr72Fk5Cpz.mjs} +1 -1
  30. package/browser/esm/{Ey-MKNGUUZGBAeog.mjs → 9EDLGZvJJ-1_DMjn.mjs} +2 -2
  31. package/{node/esm/B5LhSErbDacN0vzJ.mjs → browser/esm/B36Hm8o_jmO1gry3.mjs} +1 -1
  32. package/browser/esm/{BWz-EqOB00nMCMu1.mjs → B82gL7Rn1DPVdsbZ.mjs} +1 -1
  33. package/{node/esm/CPYTgIoo0dalPN8U.mjs → browser/esm/BBLwQtPKeJH3RyqB.mjs} +1 -1
  34. package/{node/esm/DhDtmBknuqzJeq7y.mjs → browser/esm/BEG6ZzRpfSO0q5gW.mjs} +1 -1
  35. package/browser/esm/{SV73RYu81mTiVaLH.mjs → Ba6RubjVeT1e7Uzs.mjs} +15 -12
  36. package/browser/esm/{DnTvw54xOdft1kbE.mjs → BsEcKkH5DvkhShhj.mjs} +1 -1
  37. package/browser/esm/{CPKA7xorDhsQoRnm.mjs → CS8SUdGdjhbp7yW9.mjs} +1 -1
  38. package/browser/esm/{CIsqxbxO3wGJSzeZ.mjs → CTEhjZfNXd5YWgc0.mjs} +1 -1
  39. package/{node/esm/DKnfNZAqS_Hl-FZg.mjs → browser/esm/C_p9l4NCsWE9zU1l.mjs} +1 -1
  40. package/{node/esm/kAoNb4jYhGS7YLnn.mjs → browser/esm/CreIz402Uh2o-W9o.mjs} +1 -1
  41. package/browser/esm/{BWdIXJQZ9gGQHZcG.mjs → CuyTQ_n5V8TDBQPV.mjs} +1 -1
  42. package/{node/esm/CiSrzIQR345S85Xb.mjs → browser/esm/D6kuhpMMGwwKz4wx.mjs} +1 -1
  43. package/browser/esm/{DMNxe1ARPmW1bmju.mjs → DCxv7rJFu_Eb3Ptk.mjs} +1 -1
  44. package/browser/esm/{BQZ9WWeIH98WA4gO.mjs → DDXFwd2cNiZCzVYO.mjs} +1 -1
  45. package/browser/esm/{Duw_adOlvhxXXY0r.mjs → DKuI8h4MQRWKkk8o.mjs} +1 -1
  46. package/browser/esm/{BGnTNoh2YPKUYDeq.mjs → DR9qlbompK-Lv3RC.mjs} +1 -1
  47. package/browser/esm/{BUKwYevbtFUTFvEk.mjs → DgDGV7A1DrD6tnan.mjs} +2 -2
  48. package/{node/esm/DTGgzW6voEeEBi7m.mjs → browser/esm/Dh7ItCwZUDYb5KZq.mjs} +1 -1
  49. package/browser/esm/{DUs0xHGEPdrOeFuR.mjs → DlcfQOSW6Jm4-0TM.mjs} +1 -1
  50. package/browser/esm/{BjjQrZDNavK9Xd5U.mjs → Dt383q-0M1HYM0uO.mjs} +1 -1
  51. package/{node/esm/1pZk-mU-oK2TFnIp.mjs → browser/esm/Dt832gzBCmEysj_D.mjs} +1 -1
  52. package/browser/esm/{CjuUnGzdICLoX5Wq.mjs → Dz6k4iaqD6TkrmHM.mjs} +3938 -3935
  53. package/browser/esm/index.mjs +48 -46
  54. package/browser/esm/{CnJrv00wG4BRe9p4.mjs → jFS4R2N5M_oHpYxW.mjs} +1 -1
  55. package/browser/esm/{B6Tf7OHoZzcRj-hn.mjs → tiAu9ELmXJ2JhLvH.mjs} +1 -1
  56. package/browser/esm/{BkeUxvKotX6-gUPt.mjs → uALtnKQXmdQ7XPBn.mjs} +1 -1
  57. package/{browser/esm/CFKkK-BxwJI0N3-d.mjs → node/esm/6Q--gcMr72Fk5Cpz.mjs} +1 -1
  58. package/node/esm/{CiRpCaJbHi6MRe9K.mjs → 84Hxhw9PwKZhre2Y.mjs} +14 -11
  59. package/node/esm/{Lirjxqh6GXfjlZ06.mjs → AlgfmU4GR-zVyV4R.mjs} +1 -1
  60. package/{browser/esm/B5LhSErbDacN0vzJ.mjs → node/esm/B36Hm8o_jmO1gry3.mjs} +1 -1
  61. package/{browser/esm/CPYTgIoo0dalPN8U.mjs → node/esm/BBLwQtPKeJH3RyqB.mjs} +1 -1
  62. package/{browser/esm/DhDtmBknuqzJeq7y.mjs → node/esm/BEG6ZzRpfSO0q5gW.mjs} +1 -1
  63. package/node/esm/{BfC6R8KAhwVOYY4Q.mjs → BcDlrL2vI79tOFlP.mjs} +1 -1
  64. package/node/esm/{CERm73z9jKj2EzE0.mjs → C8S5GX6kzEqJaxYV.mjs} +1 -1
  65. package/node/esm/{D2sXjIWSmrqmMwYR.mjs → CI1MHk_1qhdhKG03.mjs} +1 -1
  66. package/node/esm/{CIsqxbxO3wGJSzeZ.mjs → CTEhjZfNXd5YWgc0.mjs} +1 -1
  67. package/node/esm/{IaLPtR8GqpJFJiH8.mjs → CXsULz_luxJOR6En.mjs} +1 -1
  68. package/{browser/esm/DKnfNZAqS_Hl-FZg.mjs → node/esm/C_p9l4NCsWE9zU1l.mjs} +1 -1
  69. package/{browser/esm/kAoNb4jYhGS7YLnn.mjs → node/esm/CreIz402Uh2o-W9o.mjs} +1 -1
  70. package/node/esm/{BWdIXJQZ9gGQHZcG.mjs → CuyTQ_n5V8TDBQPV.mjs} +1 -1
  71. package/node/esm/{DDzbg1oh0tJfP_hd.mjs → D-D7Wc-rdbV2x9ZR.mjs} +1 -1
  72. package/{browser/esm/CiSrzIQR345S85Xb.mjs → node/esm/D6kuhpMMGwwKz4wx.mjs} +1 -1
  73. package/node/esm/{DMNxe1ARPmW1bmju.mjs → DCxv7rJFu_Eb3Ptk.mjs} +1 -1
  74. package/node/esm/{Duw_adOlvhxXXY0r.mjs → DKuI8h4MQRWKkk8o.mjs} +1 -1
  75. package/node/esm/{CbXYLHuy7YQcWajS.mjs → DecD3QWGFXI6AA0N.mjs} +1 -1
  76. package/{browser/esm/DTGgzW6voEeEBi7m.mjs → node/esm/Dh7ItCwZUDYb5KZq.mjs} +1 -1
  77. package/node/esm/{BSV6Rl3JgdYlhVjD.mjs → DlPZKXRMhrr9QfRP.mjs} +1 -1
  78. package/node/esm/{DUs0xHGEPdrOeFuR.mjs → DlcfQOSW6Jm4-0TM.mjs} +1 -1
  79. package/{browser/esm/1pZk-mU-oK2TFnIp.mjs → node/esm/Dt832gzBCmEysj_D.mjs} +1 -1
  80. package/node/esm/index.mjs +1504 -1486
  81. package/node/esm/{CnJrv00wG4BRe9p4.mjs → jFS4R2N5M_oHpYxW.mjs} +1 -1
  82. package/node/esm/{B6Tf7OHoZzcRj-hn.mjs → tiAu9ELmXJ2JhLvH.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +65 -31
  85. package/types/scripting.d.ts +285 -271
  86. package/browser/cjs/wCFGKCN3WHUbYmBo.cjs +0 -55
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.18
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.20
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.18
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.20
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.18",
4
+ "version": "0.7.20",
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.18",
47
- "@sheetxl/scripting": "^0.7.18",
48
- "@sheetxl/utils": "^0.7.18",
46
+ "@sheetxl/primitives": "^0.7.20",
47
+ "@sheetxl/scripting": "^0.7.20",
48
+ "@sheetxl/utils": "^0.7.20",
49
49
  "bahttext": "^2.3.0",
50
50
  "bessel": "^1.0.2",
51
51
  "chalk": "^5.6.2",
package/types/index.d.ts CHANGED
@@ -552,6 +552,11 @@ declare interface BeforeAfterRange {
552
552
  */
553
553
  declare const boundsToPoints: (bounds: Bounds) => Point[];
554
554
 
555
+ /**
556
+ * The build date of the SDK.
557
+ */
558
+ export declare const BUILD_DATE: string;
559
+
555
560
  declare interface CacheSearchRunData<T = any> {
556
561
  runs: readonly ITypes.RunCoordValue<T>[];
557
562
  run: ITypes.RunCoordValue<T | null>;
@@ -599,6 +604,8 @@ declare interface CalcNode {
599
604
  export declare class Calculation extends AbstractModel<State_2, ICalculation.JSON, CommitView, ICalculation.IListeners> implements ICalculation {
600
605
  protected _context: CalculationContext;
601
606
  protected _scope: ICalcGraphScope;
607
+ protected _graphsCalcing: Map<string, ICalcGraph>;
608
+ protected _graphsAll: Map<string, ICalcGraph>;
602
609
  protected _functions: IFunctionCollection;
603
610
  protected _runtime: IRuntime;
604
611
  protected _formulaParser: IFormulaParser;
@@ -608,6 +615,8 @@ export declare class Calculation extends AbstractModel<State_2, ICalculation.JSO
608
615
  constructor(options?: Calculation.ConstructorOptions);
609
616
  protected _getContext(): CalculationContext;
610
617
  protected _getScope(): ICalcGraphScope;
618
+ protected _getCalcingGraphs(): Map<string, ICalcGraph>;
619
+ protected _getAllGraphs(): Map<string, ICalcGraph>;
611
620
  /** @inheritdoc ICalculation.start */
612
621
  start(): Promise<void>;
613
622
  protected _createGraph(options: ICalcGraph.ConstructorOptions): ICalcGraph;
@@ -615,8 +624,8 @@ export declare class Calculation extends AbstractModel<State_2, ICalculation.JSO
615
624
  stop(): Promise<void>;
616
625
  /** @inheritdoc ICalculation.getStatus */
617
626
  getStatus(): ICalculation.Status;
618
- /** @inheritdoc ICalculation.waitForFinish */
619
- waitForFinish(): Promise<void>;
627
+ /** @inheritdoc ICalculation.calculate */
628
+ calculate(options?: ICalculation.CalculateOptions): Promise<void>;
620
629
  /** @inheritdoc ICalculation.getFunctions */
621
630
  getFunctions(): IFunctionCollection;
622
631
  /** @inheritdoc IFormulaContext.getRuntime */
@@ -2392,7 +2401,7 @@ declare interface ICalcGraph {
2392
2401
  * @remarks
2393
2402
  * For async functions this will return before they are completed.
2394
2403
  */
2395
- calculate(options?: ICalcGraph.CalculateOptions | boolean): Promise<ICalcGraph.Results>;
2404
+ calculate(options?: ICalculation.CalculateOptions | boolean): Promise<ICalcGraph.Results>;
2396
2405
  /**
2397
2406
  * The the value at a specific cell to a formula.
2398
2407
  *
@@ -2734,23 +2743,6 @@ declare namespace ICalcGraph {
2734
2743
  */
2735
2744
  isEquals(other: ICalcGraph.IFormulaBlock): boolean;
2736
2745
  }
2737
- /**
2738
- * Options for when calculating.
2739
- */
2740
- interface CalculateOptions {
2741
- /**
2742
- * If true a full calc will be done not just invalid values
2743
- */
2744
- full?: boolean;
2745
- /**
2746
- * If true the the promise will not result until all pending calculations are complete.
2747
- *
2748
- * @remarks
2749
- * * Useful when wanting all results for a calculation such as a rest API call.
2750
- * * Streaming functions will return the first value and immediately unsubscribe.
2751
- */
2752
- waitForPending?: boolean;
2753
- }
2754
2746
  /**
2755
2747
  * Options for shifting the calc graph.
2756
2748
  */
@@ -2909,12 +2901,12 @@ export declare interface ICalculation extends IModel {
2909
2901
  /** @inheritdoc IFormulaContext.getRuntime */
2910
2902
  getRuntime(): IRuntime;
2911
2903
  /**
2912
- * Waits for the calculation to finish.
2904
+ * Calculates all items or waits for current calculations to finished
2913
2905
  *
2914
2906
  * @remarks
2915
2907
  * This is useful when needing to ensure that the values in the calculation cycle are up-to-date.
2916
2908
  */
2917
- waitForFinish(): Promise<void>;
2909
+ calculate(options?: ICalculation.CalculateOptions): Promise<void>;
2918
2910
  /**
2919
2911
  * Add Listeners.
2920
2912
  *
@@ -2932,6 +2924,15 @@ export declare interface ICalculation extends IModel {
2932
2924
  * {@link ICalculation}
2933
2925
  */
2934
2926
  export declare namespace ICalculation {
2927
+ /**
2928
+ * Options for when calculating.
2929
+ */
2930
+ export interface CalculateOptions {
2931
+ /**
2932
+ * If true a full calc will be done not just invalid values
2933
+ */
2934
+ full?: boolean;
2935
+ }
2935
2936
  /**
2936
2937
  * Represents a formula that can be evaluated.
2937
2938
  */
@@ -4759,13 +4760,6 @@ export declare interface ICellRange {
4759
4760
  * @param full If `true` then all formulas will be recalculated.
4760
4761
  */
4761
4762
  calculate(full?: boolean): this;
4762
- /**
4763
- * Waits for all calculations to finish.
4764
- *
4765
- * @remarks
4766
- * Useful for ensuring that all calculations are complete before proceeding.
4767
- */
4768
- waitForCalcs(): Promise<this>;
4769
4763
  /**
4770
4764
  * Fill the range to a destination using an array of {@link IAutoFill.Filler}.
4771
4765
  *
@@ -12072,7 +12066,7 @@ export declare interface ISheet extends ITransaction.ITransactional, IListener.I
12072
12066
  * Returns the {@link IWorkbook} for the sheet.
12073
12067
  *
12074
12068
  * @remarks
12075
- * This may be null if not created via a workbook
12069
+ * This may be `null` if not created via a workbook.
12076
12070
  */
12077
12071
  getWorkbook(): IWorkbook | null;
12078
12072
  /**
@@ -17462,6 +17456,17 @@ export declare interface IWorkbook extends ITransaction.ITransactional, IListene
17462
17456
  * * Does not fire a theme updated event.
17463
17457
  */
17464
17458
  setTheme(theme: ITheme | null): ITheme;
17459
+ /**
17460
+ * Returns the display name for the workbook.
17461
+ *
17462
+ * @remarks
17463
+ * This may be null
17464
+ */
17465
+ getName(): string | null;
17466
+ /**
17467
+ * Set the name for the workbook.
17468
+ */
17469
+ setName(name: string | null): IWorkbook;
17465
17470
  /**
17466
17471
  * Is date resolution 1904 instead of 1900 based.
17467
17472
  *
@@ -17624,6 +17629,10 @@ export declare namespace IWorkbook {
17624
17629
  * @param source {@link IWorkbook}
17625
17630
  */
17626
17631
  onViewChange?(source: IWorkbook): void;
17632
+ /**
17633
+ * Called when the name changes.
17634
+ */
17635
+ onNameChange?(source: IWorkbook): void;
17627
17636
  /**
17628
17637
  * Called when the scripts associated with the workbook have change.
17629
17638
  */
@@ -17728,6 +17737,21 @@ export declare namespace IWorkbook {
17728
17737
  * @defaultValue `Sheet${index+1}`
17729
17738
  */
17730
17739
  createSheetNameCallback?: (index: number) => string;
17740
+ /**
17741
+ * The initial name for the workbook.
17742
+ */
17743
+ name?: string | null;
17744
+ /**
17745
+ * Returns a valid name for the workbook.
17746
+ *
17747
+ * @param name The name to validate.
17748
+ * @returns The valid name. This may be different from the name provided.
17749
+ * @throws Error if the name is not valid.
17750
+ *
17751
+ * @remarks
17752
+ * This is not called if the name is null or for the initialName if provided.
17753
+ */
17754
+ validateWorkbookName?: (name: string) => string | null | void;
17731
17755
  /**
17732
17756
  * A theme for the workbook.
17733
17757
  */
@@ -18017,6 +18041,7 @@ declare class LM {
18017
18041
  private _validate;
18018
18042
  private _printBanner;
18019
18043
  private _printDetails;
18044
+ private _doPrint;
18020
18045
  private _print;
18021
18046
  getDetails(): Promise<LicenseDetails>;
18022
18047
  /**
@@ -18943,7 +18968,6 @@ export declare class Sheet implements ISheet {
18943
18968
  /* Excluded from this release type: _updateFormulaSpatial */
18944
18969
  /* Excluded from this release type: _realizeCalcedValues */
18945
18970
  /* Excluded from this release type: _calculate */
18946
- /* Excluded from this release type: _waitForCalcs */
18947
18971
  /* Excluded from this release type: _calculateFull */
18948
18972
  /* Excluded from this release type: _setComments */
18949
18973
  /* Excluded from this release type: _clear */
@@ -20233,6 +20257,7 @@ declare interface State_6 {
20233
20257
  lastId: number;
20234
20258
  sheetsCreated: Set<ISheet>;
20235
20259
  listenersSheets: Map<number, IListener.Remove>;
20260
+ name: string | null;
20236
20261
  }
20237
20262
 
20238
20263
  export declare class StringCollection implements IStringCollection {
@@ -21031,6 +21056,11 @@ declare namespace _Utils {
21031
21056
  */
21032
21057
  declare const validateRuns: (runs: RunCoords[]) => boolean;
21033
21058
 
21059
+ /**
21060
+ * The current version of the SDK.
21061
+ */
21062
+ export declare const VERSION: string;
21063
+
21034
21064
  declare interface ViewEdgeEntry {
21035
21065
  rowIndex: number;
21036
21066
  colIndex: number;
@@ -21086,6 +21116,10 @@ export declare class Workbook implements IWorkbook {
21086
21116
  protected _isDate1904: boolean;
21087
21117
  constructor(options?: IWorkbook.ConstructorOptions);
21088
21118
  protected _initState(): void;
21119
+ /** {@inheritDoc IWorkbook.getName} */
21120
+ getName(): string | null;
21121
+ /** {@inheritDoc IWorkbook.setName} */
21122
+ setName(name: string | null): IWorkbook;
21089
21123
  /** {@inheritDoc IWorkbook.getView} */
21090
21124
  getView(): IWorkbookView;
21091
21125
  /** {@inheritDoc IWorkbook.setView} */