@sheetxl/sdk 0.4.22 → 0.5.0

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/B2dZuRP83Z9xdkrt.cjs +54 -0
  2. package/browser/cjs/{rPn2U0Q2Eagh41Xd.cjs → B36ErK4PM-eagk-P.cjs} +1 -1
  3. package/browser/cjs/{Dub6MS5nk4D_Iv7p.cjs → BIevZx_GNhjxyrnW.cjs} +2 -2
  4. package/browser/cjs/{DMROSNSDJaUVqfoW.cjs → BKXpDOiyUbOaGCen.cjs} +1 -1
  5. package/browser/cjs/{D3ZDdkSutmtUfAG2.cjs → BQPnj3zwanZghAIn.cjs} +1 -1
  6. package/browser/cjs/{BFSSWIb-BPsXlS8k.cjs → BV7s-9nFDCubKH3d.cjs} +1 -1
  7. package/browser/cjs/{CV_Kse7BQ7sBx0S2.cjs → BbLOjDl72Sie7ejs.cjs} +1 -1
  8. package/browser/cjs/{Ko4UgjHi20zmyEpu.cjs → BmVYe8u5-lEa5P_F.cjs} +1 -1
  9. package/browser/cjs/{7IXJLhV4t0ot3XB5.cjs → BoQC57Ryz0sKE9Q5.cjs} +3 -3
  10. package/browser/cjs/{DItG5mSJNZ40zltg.cjs → Buf7xK-3ZDUtjx2m.cjs} +1 -1
  11. package/browser/cjs/{CFE-vojYpMggdKVQ.cjs → BvODFP9I_Vf_tPFV.cjs} +1 -1
  12. package/browser/cjs/{SkNXytY6UX9i6WhY.cjs → Bw0Q46MiHOI9i-0d.cjs} +2 -2
  13. package/browser/cjs/{Bein9-S48RBhhxLW.cjs → C-vCMpoIHKJjANgD.cjs} +1 -1
  14. package/browser/cjs/{B1FA-mZrhIhB8VoC.cjs → C6bmh1asBXLRUPRF.cjs} +1 -1
  15. package/browser/cjs/{88wgo6pjVpM9y5ul.cjs → CEavx_v2ooYxSB0p.cjs} +1 -1
  16. package/browser/cjs/{BSj9kpCBxyd5EZvX.cjs → CJOZKuNuxg5hqVvy.cjs} +1 -1
  17. package/browser/cjs/{CW7Kbm45TFbAZYO3.cjs → CTQH922gKq4XgWny.cjs} +1 -1
  18. package/browser/cjs/{BYwSD92n1THKdj9V.cjs → CkDIP_uyzgppeXbP.cjs} +1 -1
  19. package/browser/cjs/{BHMiYQTwGjWzRdGf.cjs → ClDpVLCq2Cn_5PTf.cjs} +1 -1
  20. package/browser/cjs/{Cx69pnzjeLfQMYgm.cjs → CqLVFZ8OJ0M7C1CR.cjs} +1 -1
  21. package/browser/cjs/{DWG2lOB7T0SRr5Ni.cjs → DUhJyiUMD_K9luBH.cjs} +1 -1
  22. package/browser/cjs/{CGslljb6hC8DcpsE.cjs → Dc-Qscdq9PZ9xc_8.cjs} +1 -1
  23. package/browser/cjs/{OgnqbIZEb37S4Hcz.cjs → DsWkw0lvemEUVjfX.cjs} +1 -1
  24. package/browser/cjs/{D2eWn6G2QvkYzR0D.cjs → aZZvmBDGrhdGC9ns.cjs} +1 -1
  25. package/browser/cjs/{BG_fhZO0IruefQYx.cjs → awaf86jB1qljeOTQ.cjs} +1 -1
  26. package/browser/cjs/{ZyyHV9ugA--j9V3Q.cjs → dZESMdPG8HqhsOw-.cjs} +1 -1
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/cjs/{D1ZVN_gmSiXwUeCX.cjs → vdLkzeqc-6d8JjXv.cjs} +1 -1
  29. package/{node/esm/CIOhVshLBBACTKw4.mjs → browser/esm/8zEsMTrlFsOUui9E.mjs} +1 -1
  30. package/browser/esm/{BANL0IBU0th0Z0aE.mjs → 9Dos-3NKWJYJtvHB.mjs} +1 -1
  31. package/{node/esm/CMSKXl6rbx5miTNQ.mjs → browser/esm/B61ulMiuYBZn8SNN.mjs} +1 -1
  32. package/browser/esm/{ease-qEarwjnTOzw.mjs → BJIP7XCsQU7xCVvJ.mjs} +1 -1
  33. package/browser/esm/{BsPKTSv0eCvPH73D.mjs → BcDAKeHf67KAp5VL.mjs} +1 -1
  34. package/browser/esm/{XxsAmmMnL6UJ_NtN.mjs → BoKdLKHO0j7mIBSj.mjs} +1 -1
  35. package/browser/esm/{BE-hRu2cYg4ljCeu.mjs → C1WBPCvgoWSF9WCz.mjs} +1 -1
  36. package/{node/esm/Dd2ZeNLusT_ZXcoE.mjs → browser/esm/CCArsCkXn7NZMxKW.mjs} +1 -1
  37. package/browser/esm/{D3P3XCQVij2nAmi9.mjs → CE8sj_d2XwOfNWh3.mjs} +3 -3
  38. package/{node/esm/C1m7sGNTYP1bb_Uu.mjs → browser/esm/CHcgxFOF0b2ZNX6e.mjs} +1 -1
  39. package/{node/esm/C1VWw92RN5017GH2.mjs → browser/esm/CJgAKQILMv8X3B4W.mjs} +1 -1
  40. package/browser/esm/{E-RGQA1dKJwkkonk.mjs → CL4O8dajHSQO_udB.mjs} +1 -1
  41. package/browser/esm/{DEAxRkKlMDxHooJB.mjs → CS4_SR4y-fVGUw2-.mjs} +1 -1
  42. package/browser/esm/{-z0NclKcw0SSbo2L.mjs → CWm8Phee7kbyzTfU.mjs} +5168 -5178
  43. package/browser/esm/{BcSVj-rRzZCTKFUS.mjs → CYgwMG0CQxiv0YSb.mjs} +2 -2
  44. package/browser/esm/{DI52n-xcpb7jEqop.mjs → CyhfB8XQcAku7y-f.mjs} +1 -1
  45. package/browser/esm/{B5M_o8HB4RRWBd_Y.mjs → D08G73B-JFuO2cG-.mjs} +1 -1
  46. package/{node/esm/CiTlupx_cuXQySFz.mjs → browser/esm/D24KqjFTq38XcjRB.mjs} +1 -1
  47. package/browser/esm/{OABZjfPgUYHzd5rY.mjs → D4br_bpYlatmmEp_.mjs} +1 -1
  48. package/{node/esm/NvmvIR3jfjlY98jJ.mjs → browser/esm/D70uUh7q-JP_CDIM.mjs} +1 -1
  49. package/browser/esm/{CF-2-aQTgc-DoXzn.mjs → DO1lYqeWDGnvzc2k.mjs} +1 -1
  50. package/{node/esm/D6IgoU0LlIv_Vb4m.mjs → browser/esm/DUS5pLIeiMMQTNW9.mjs} +1 -1
  51. package/browser/esm/{45xuwq8di_97VrOg.mjs → DbEuqd5tLoOG-CTR.mjs} +1 -1
  52. package/browser/esm/{DDHWZD7Y6pihyVio.mjs → Ig9rKmhujrhrmGw_.mjs} +1 -1
  53. package/browser/esm/{pyVBYhEMGgaVvnd1.mjs → eMmunljluODMmzPP.mjs} +1 -1
  54. package/browser/esm/index.mjs +2 -2
  55. package/browser/esm/{CESAJuxgB8SgHaC0.mjs → lsDwTqYF-3IbTEBM.mjs} +2 -2
  56. package/browser/esm/{CB1_HpaA6RdaxTgB.mjs → uRi_w6Ccng-hSYqK.mjs} +1 -1
  57. package/node/esm/{C5pshc3Ik9rfVQTG.mjs → 0jNDDUndpkGyGTIA.mjs} +1 -1
  58. package/{browser/esm/CIOhVshLBBACTKw4.mjs → node/esm/8zEsMTrlFsOUui9E.mjs} +1 -1
  59. package/node/esm/{BANL0IBU0th0Z0aE.mjs → 9Dos-3NKWJYJtvHB.mjs} +1 -1
  60. package/node/esm/{Cb6FcT6gppjhiDSw.mjs → B1iDPfEHLtJ41VMY.mjs} +2 -2
  61. package/{browser/esm/CMSKXl6rbx5miTNQ.mjs → node/esm/B61ulMiuYBZn8SNN.mjs} +1 -1
  62. package/node/esm/{ease-qEarwjnTOzw.mjs → BJIP7XCsQU7xCVvJ.mjs} +1 -1
  63. package/node/esm/{CNmI4DKpe0t8gN4o.mjs → Bc-P6GigiFjg1N69.mjs} +1 -1
  64. package/node/esm/{XxsAmmMnL6UJ_NtN.mjs → BoKdLKHO0j7mIBSj.mjs} +1 -1
  65. package/node/esm/{xlM5nOnBp3h54uCb.mjs → Brx1VuszaLpc_rB3.mjs} +1 -1
  66. package/node/esm/{BE-hRu2cYg4ljCeu.mjs → C1WBPCvgoWSF9WCz.mjs} +1 -1
  67. package/{browser/esm/Dd2ZeNLusT_ZXcoE.mjs → node/esm/CCArsCkXn7NZMxKW.mjs} +1 -1
  68. package/{browser/esm/C1m7sGNTYP1bb_Uu.mjs → node/esm/CHcgxFOF0b2ZNX6e.mjs} +1 -1
  69. package/{browser/esm/C1VWw92RN5017GH2.mjs → node/esm/CJgAKQILMv8X3B4W.mjs} +1 -1
  70. package/node/esm/{CPs770aIZwPh6mF0.mjs → CO7YGGQ8BEK9BxES.mjs} +1 -1
  71. package/node/esm/{C2cb5mfR_vAlX9Fe.mjs → CP70GYskMIlD-Lg-.mjs} +1 -1
  72. package/node/esm/{DEAxRkKlMDxHooJB.mjs → CS4_SR4y-fVGUw2-.mjs} +1 -1
  73. package/node/esm/{BFQWsItEwIA8MHSr.mjs → CyHJ57YU316MCyDg.mjs} +1 -1
  74. package/{browser/esm/CiTlupx_cuXQySFz.mjs → node/esm/D24KqjFTq38XcjRB.mjs} +1 -1
  75. package/{browser/esm/NvmvIR3jfjlY98jJ.mjs → node/esm/D70uUh7q-JP_CDIM.mjs} +1 -1
  76. package/node/esm/{CE5UUdZ8bidtZxVI.mjs → DDiiUcpOQf_NlDYz.mjs} +1 -1
  77. package/{browser/esm/D6IgoU0LlIv_Vb4m.mjs → node/esm/DUS5pLIeiMMQTNW9.mjs} +1 -1
  78. package/node/esm/{DDHWZD7Y6pihyVio.mjs → Ig9rKmhujrhrmGw_.mjs} +1 -1
  79. package/node/esm/{DzsYVdrM0pVVPfdv.mjs → K5dREj5qS3w9CkmC.mjs} +1 -1
  80. package/node/esm/{pyVBYhEMGgaVvnd1.mjs → eMmunljluODMmzPP.mjs} +1 -1
  81. package/node/esm/index.mjs +3335 -3346
  82. package/node/esm/{CB1_HpaA6RdaxTgB.mjs → uRi_w6Ccng-hSYqK.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +105 -90
  85. package/types/scripting.d.ts +133 -111
  86. package/browser/cjs/D1uvbAWH1atUhVUP.cjs +0 -53
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.22
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.5.0
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.4.22",
4
+ "version": "0.5.0",
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.4.22",
35
- "@sheetxl/scripting": "^0.4.22",
36
- "@sheetxl/utils": "^0.4.22",
34
+ "@sheetxl/primitives": "^0.5.0",
35
+ "@sheetxl/scripting": "^0.5.0",
36
+ "@sheetxl/utils": "^0.5.0",
37
37
  "bahttext": "^2.3.0",
38
38
  "bessel": "^1.0.2",
39
39
  "chalk": "^5.5.0",
package/types/index.d.ts CHANGED
@@ -947,6 +947,10 @@ declare interface CommitView_3 {
947
947
  listeners?: Map<number, BeforeAfterRange>;
948
948
  /** If `true` then don't do protection check. (For example load or range listeners) */
949
949
  skipProtectionCheck?: boolean;
950
+ /**
951
+ * We update values (cache, potentially styling, as a result of calculations)
952
+ */
953
+ calculationSideEffect?: boolean;
950
954
  }
951
955
 
952
956
  declare function concatModifiedRuns<T>(parts: ModifiedRuns<T>): ITypes.RunCoordValue<T>[];
@@ -6088,16 +6092,16 @@ export declare namespace IChart {
6088
6092
  /**
6089
6093
  * Interface used for all ICollections.
6090
6094
  */
6091
- export declare interface ICollection {
6095
+ export declare interface ICollection<T, O = ICollection.GetItemsOptions> {
6092
6096
  /**
6093
- * Return the items at the index.
6094
- * @param index
6097
+ * Returns the items in the collection.
6095
6098
  */
6099
+ getItems(options?: ICollection.GetItemsOptions): T[];
6096
6100
  /**
6097
6101
  * Returns the total items available.
6098
6102
  *
6099
6103
  * @remarks
6100
- * Useful as a quick escape for search.
6104
+ * Useful as a quick escape for getItems.
6101
6105
  */
6102
6106
  getCount(): number;
6103
6107
  }
@@ -6110,6 +6114,14 @@ export declare interface ICollection {
6110
6114
  * {@link ICollection}
6111
6115
  */
6112
6116
  export declare namespace ICollection {
6117
+ /**
6118
+ * Options for getting items from the collection.
6119
+ *
6120
+ * @remarks
6121
+ * This placeholder is extended by implementations of ICollection
6122
+ */
6123
+ export interface GetItemsOptions {
6124
+ }
6113
6125
  /**
6114
6126
  * Collection that can be persisted.
6115
6127
  */
@@ -6163,13 +6175,13 @@ export declare namespace ICollection {
6163
6175
  /**
6164
6176
  * Called when collections have changes.
6165
6177
  */
6166
- onCollectionChange?(source: ICollection): void;
6178
+ onCollectionChange?(source: ICollection<any>): void;
6167
6179
  /**
6168
6180
  * Called when the collection has been updated due to a undo/redo and a rerender is required.
6169
6181
  */
6170
- onInvalidated?(source: ICollection): void;
6182
+ onInvalidated?(source: ICollection<any>): void;
6171
6183
  }
6172
- export interface IListeners extends IListener.Callbacks<ICollection, ICollection.Events> {
6184
+ export interface IListeners extends IListener.Callbacks<ICollection<any>, ICollection.Events> {
6173
6185
  }
6174
6186
  }
6175
6187
 
@@ -7777,7 +7789,7 @@ export declare namespace IConditionalFormat {
7777
7789
  /**
7778
7790
  * Holds a collection of {@link IConditionalFormat}s.
7779
7791
  */
7780
- export declare interface IConditionalFormatCollection extends ICollection {
7792
+ export declare interface IConditionalFormatCollection extends ICollection<IConditionalFormat> {
7781
7793
  /**
7782
7794
  * Add an `IConditional` to the container.
7783
7795
  *
@@ -7786,21 +7798,13 @@ export declare interface IConditionalFormatCollection extends ICollection {
7786
7798
  */
7787
7799
  add(address: ICellRanges.Address, options: IConditionalFormatCollection.AddOptions): IConditionalFormat;
7788
7800
  /**
7789
- * Returns items that match the search criteria.
7801
+ * Returns items that match the filter criteria.
7790
7802
  *
7791
- * If no search criteria is provided, all items will be returned.
7803
+ * If no filter criteria is provided, all items will be returned.
7792
7804
  *
7793
- * @param options {@link IConditionalFormatCollection.SearchOptions}
7805
+ * @param options {@link IConditionalFormatCollection.GetItemsOptions}
7794
7806
  */
7795
- search(options?: IConditionalFormatCollection.SearchOptions): IConditionalFormat[];
7796
- /**
7797
- * Convenience method for searching by name. This is
7798
- * functionally equivalent to search({ name });
7799
- *
7800
- * @param name The name to search for This is case insensitive.
7801
- */
7802
- /** {@inheritDoc ICollection.getCount} */
7803
- getCount(): number;
7807
+ getItems(options?: IConditionalFormatCollection.GetItemsOptions): IConditionalFormat[];
7804
7808
  }
7805
7809
 
7806
7810
  /**
@@ -7819,7 +7823,7 @@ export declare namespace IConditionalFormatCollection {
7819
7823
  /**
7820
7824
  * Options for searching for {@link IConditionalFormat}s.
7821
7825
  */
7822
- export interface SearchOptions {
7826
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
7823
7827
  /**
7824
7828
  * If provided, the search will be limited to items that intersect the range.
7825
7829
  */
@@ -8535,7 +8539,7 @@ declare interface IFormulaParser {
8535
8539
  /**
8536
8540
  * Collections of {@link IFunction}.
8537
8541
  */
8538
- export declare interface IFunctionCollection extends ICollection {
8542
+ export declare interface IFunctionCollection extends ICollection<IFunction> {
8539
8543
  /**
8540
8544
  * Add a custom function to a collection.
8541
8545
  *
@@ -8543,16 +8547,16 @@ export declare interface IFunctionCollection extends ICollection {
8543
8547
  */
8544
8548
  add(options: IFunction | IFunctionCollection.AddOptions): IFunction;
8545
8549
  /**
8546
- * Returns functions that match the search criteria.
8550
+ * Returns functions that match the filter criteria.
8547
8551
  *
8548
- * If no search criteria is provided, all items will be returned.
8552
+ * If no filter criteria is provided, all items will be returned.
8549
8553
  *
8550
- * @param options {@link IFunctionCollection.SearchOptions}
8554
+ * @param options {@link IFunctionCollection.GetItemsOptions}
8551
8555
  */
8552
- search(options?: IFunctionCollection.SearchOptions): IFunction[];
8556
+ getItems(options?: IFunctionCollection.GetItemsOptions): IFunction[];
8553
8557
  /**
8554
- * Convenience method for searching by name.
8555
- * This is functionally equivalent to search({ name });
8558
+ * Convenience method for filter by name.
8559
+ * This is functionally equivalent to getItems({ name });
8556
8560
  *
8557
8561
  * @param name The name to search for This is case insensitive.
8558
8562
  */
@@ -8570,7 +8574,7 @@ export declare namespace IFunctionCollection {
8570
8574
  /**
8571
8575
  * Options for searching a function in the collection.
8572
8576
  */
8573
- export interface SearchOptions {
8577
+ export interface GetItemsOptions {
8574
8578
  /**
8575
8579
  * Search with the given name. This is case insensitive.
8576
8580
  */
@@ -9498,7 +9502,7 @@ export declare namespace IModule {
9498
9502
  /**
9499
9503
  * Represents a collection of functions. This is analogous to a file.
9500
9504
  */
9501
- declare interface IModuleCollection extends ICollection {
9505
+ declare interface IModuleCollection extends ICollection<IModule> {
9502
9506
  /**
9503
9507
  * Adds the module to the collection.
9504
9508
  *
@@ -9508,16 +9512,16 @@ declare interface IModuleCollection extends ICollection {
9508
9512
  */
9509
9513
  add(uid: string, module: IModule, options?: IModuleCollection.AddOptions): void;
9510
9514
  /**
9511
- * Returns functions that match the search criteria.
9515
+ * Returns functions that match the filter criteria.
9512
9516
  *
9513
- * If no search criteria is provided, all items will be returned.
9517
+ * If no filter criteria is provided, all items will be returned.
9514
9518
  *
9515
- * @param options {@link IModuleCollection.SearchOptions}
9519
+ * @param options {@link IModuleCollection.GetItemsOptions}
9516
9520
  */
9517
- search(options?: IModuleCollection.SearchOptions): IModule[];
9521
+ getItems(options?: IModuleCollection.GetItemsOptions): IModule[];
9518
9522
  /**
9519
- * Convenience method for searching by name.
9520
- * This is functionally equivalent to search({ name });
9523
+ * Convenience method for filtering by name.
9524
+ * This is functionally equivalent to getItems({ name });
9521
9525
  *
9522
9526
  * @param name The name to search for This is case insensitive.
9523
9527
  */
@@ -9547,9 +9551,9 @@ declare namespace IModuleCollection {
9547
9551
  ignoreErrors?: boolean;
9548
9552
  }
9549
9553
  /**
9550
- * Options for searching a function in the collection.
9554
+ * Options for filtering a function in the collection.
9551
9555
  */
9552
- interface SearchOptions {
9556
+ interface GetItemsOptions extends ICollection.GetItemsOptions {
9553
9557
  /**
9554
9558
  * Search with the given name. This is case insensitive.
9555
9559
  */
@@ -9888,7 +9892,7 @@ export declare namespace IMovable {
9888
9892
  /**
9889
9893
  * Holds a collection of IMovables.
9890
9894
  */
9891
- export declare interface IMovableCollection extends ICollection, IListener.ISource<IMovableCollection> {
9895
+ export declare interface IMovableCollection extends ICollection<IMovable>, IListener.ISource<IMovableCollection> {
9892
9896
  /**
9893
9897
  * Add a resource to the movable collection.
9894
9898
  *
@@ -9897,15 +9901,15 @@ export declare interface IMovableCollection extends ICollection, IListener.ISour
9897
9901
  */
9898
9902
  add(options?: IMovableCollection.AddOptions): Promise<IMovable>;
9899
9903
  /**
9900
- * Returns movables that match the search criteria.
9904
+ * Returns movables that match the filter criteria.
9901
9905
  *
9902
- * @param options {@link IMovableCollection.SearchOptions}
9906
+ * @param options {@link IMovableCollection.GetItemsOptions}
9903
9907
  * @returns An Array of {@link IMovable}.
9904
9908
  *
9905
9909
  * @remarks
9906
- * If no search criteria is provided, all items will be returned.
9910
+ * If no filter criteria is provided, all items will be returned.
9907
9911
  */
9908
- search(options?: IMovableCollection.SearchOptions): IMovable[];
9912
+ getItems(options?: IMovableCollection.GetItemsOptions): IMovable[];
9909
9913
  /**
9910
9914
  * Update all of the selected movable in a single transaction
9911
9915
  */
@@ -9937,9 +9941,9 @@ export declare interface IMovableCollection extends ICollection, IListener.ISour
9937
9941
  */
9938
9942
  export declare namespace IMovableCollection {
9939
9943
  /**
9940
- * Options for searching a collection of movables.
9944
+ * Options for filtering a collection of movables.
9941
9945
  */
9942
- export interface SearchOptions {
9946
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
9943
9947
  /**
9944
9948
  * If provided, the search will be limited to items that intersect the range.
9945
9949
  * @remarks
@@ -10250,7 +10254,7 @@ export declare namespace INamed {
10250
10254
  /**
10251
10255
  * A collection of `INamed` items.
10252
10256
  */
10253
- export declare interface INamedCollection extends ICollection {
10257
+ export declare interface INamedCollection extends ICollection<INamed> {
10254
10258
  /**
10255
10259
  * Add a named reference.
10256
10260
  *
@@ -10273,10 +10277,10 @@ export declare interface INamedCollection extends ICollection {
10273
10277
  */
10274
10278
  add(named: INamed): INamed;
10275
10279
  /**
10276
- * Search the named items.
10280
+ * Return the named items.
10277
10281
  * These are sorted by type then by name.
10278
10282
  */
10279
- search(options?: INamedCollection.SearchOptions): INamed[];
10283
+ getItems(options?: INamedCollection.GetItemsOptions): INamed[];
10280
10284
  /**
10281
10285
  * Lookup a named range with a given name.
10282
10286
  *
@@ -10288,7 +10292,7 @@ export declare interface INamedCollection extends ICollection {
10288
10292
  * Lookup a named range by WorkbookRangeCoords. This will only
10289
10293
  * return a match if all the ranges are exact matches.
10290
10294
  *
10291
- * @deprecated Use search({ address }) instead.
10295
+ * @deprecated Use getItems({ address }) instead.
10292
10296
  */
10293
10297
  lookupByRanges(ranges: ICellRanges.Address): INamed[] | null;
10294
10298
  /**
@@ -10369,7 +10373,7 @@ export declare namespace INamedCollection {
10369
10373
  }
10370
10374
  export interface IListeners extends IListener.Callbacks<INamedCollection, INamedCollection.Events> {
10371
10375
  }
10372
- export interface SearchOptions {
10376
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
10373
10377
  /**
10374
10378
  * A string indicating the type.
10375
10379
  */
@@ -11210,7 +11214,7 @@ export declare namespace IResource {
11210
11214
  /**
11211
11215
  * Collections of {@link IResource}.
11212
11216
  */
11213
- export declare interface IResourceCollection extends ICollection {
11217
+ export declare interface IResourceCollection extends ICollection<IResource> {
11214
11218
  /**
11215
11219
  * Add a resource to a collection with an initial reference.
11216
11220
  * @param resource
@@ -11218,6 +11222,11 @@ export declare interface IResourceCollection extends ICollection {
11218
11222
  * Resources are not removed from the the collection. They are autoGCed when there are no references.
11219
11223
  */
11220
11224
  add(resource: string | IResource | IResourceCollection.AddOptions): IResource;
11225
+ /**
11226
+ * Returns a list of all resources in the collection.
11227
+ * @param options
11228
+ */
11229
+ getItems(options?: ICollection.GetItemsOptions): IResource[];
11221
11230
  /**
11222
11231
  * Used for saving resource. Returns a visitor that will allow for a toJSON that
11223
11232
  * will only save the resource that were accessed within the persist scope.
@@ -11258,6 +11267,8 @@ export declare namespace IResourceCollection {
11258
11267
  */
11259
11268
  name?: string;
11260
11269
  }
11270
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
11271
+ }
11261
11272
  export interface IPersistScope<J extends IResource.JSON> {
11262
11273
  /**
11263
11274
  * For a resource this will return a number that can be used to reference the resource in the persisted json.
@@ -12145,27 +12156,27 @@ export declare namespace ISheet {
12145
12156
  /**
12146
12157
  * Holds a collection of {@link ISheet}s.
12147
12158
  */
12148
- export declare interface ISheetCollection extends ICollection {
12159
+ export declare interface ISheetCollection extends ICollection<ISheet> {
12149
12160
  /**
12150
12161
  * Add an `ISheet` to the collection.
12151
12162
  */
12152
12163
  add(options?: ISheetCollection.AddOptions): ISheet;
12153
12164
  /**
12154
- * Returns sheets that match the search criteria.
12165
+ * Returns sheets that match the filter criteria.
12155
12166
  *
12156
- * If no search criteria is provided, all sheets will be returned.
12167
+ * If no filter criteria is provided, all sheets will be returned.
12157
12168
  *
12158
- * @param options {@link ISheetCollection.SearchOptions}
12169
+ * @param options {@link ISheetCollection.GetItemsOptions}
12159
12170
  */
12160
- search(options?: ISheetCollection.SearchOptions): ISheet[];
12171
+ getItems(options?: ISheetCollection.GetItemsOptions): ISheet[];
12161
12172
  /**
12162
12173
  * Returns the sheet at the given index.
12163
12174
  * @param index
12164
12175
  * @returns
12165
12176
  */
12166
12177
  /**
12167
- * Convenience method for searching by name. This is
12168
- * functionally equivalent to search({ name });
12178
+ * Convenience method for filtering by name. This is
12179
+ * functionally equivalent to getItems({ name });
12169
12180
  *
12170
12181
  * @param name The name to search for This is case insensitive.
12171
12182
  */
@@ -12196,7 +12207,7 @@ export declare namespace ISheetCollection {
12196
12207
  */
12197
12208
  index?: number;
12198
12209
  }
12199
- export interface SearchOptions {
12210
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
12200
12211
  /**
12201
12212
  * Indicate if items that are in hidden headers or marked as hidden should be returned.
12202
12213
  * @defaultValue false
@@ -13771,7 +13782,7 @@ declare const isQuoted: (str: string) => boolean;
13771
13782
  /**
13772
13783
  * Contains a collection of interned strings.
13773
13784
  */
13774
- export declare interface IStringCollection extends ICollection, ICollection.IPersistable {
13785
+ export declare interface IStringCollection extends ICollection<string>, ICollection.IPersistable {
13775
13786
  /**
13776
13787
  * Add a string to the collection.
13777
13788
  *
@@ -13809,6 +13820,9 @@ export declare interface IStringCollection extends ICollection, ICollection.IPer
13809
13820
  * {@link IStringCollection}
13810
13821
  */
13811
13822
  export declare namespace IStringCollection {
13823
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
13824
+ id?: number;
13825
+ }
13812
13826
  /**
13813
13827
  * Alias for persist type of `string`.
13814
13828
  */
@@ -15098,7 +15112,7 @@ export declare interface ITable extends IAnchored {
15098
15112
  /**
15099
15113
  * Holds a collection of {@link ITable}s.
15100
15114
  */
15101
- export declare interface ITableCollection extends ICollection {
15115
+ export declare interface ITableCollection extends ICollection<ITable> {
15102
15116
  /**
15103
15117
  * Add an `ITable` to the container.
15104
15118
  *
@@ -15107,18 +15121,18 @@ export declare interface ITableCollection extends ICollection {
15107
15121
  */
15108
15122
  add(address: ICellRange.Address, options?: ITableCollection.AddOptions): ITable;
15109
15123
  /**
15110
- * Returns items that match the search criteria.
15124
+ * Returns items that match the filter criteria.
15111
15125
  *
15112
- * If no search criteria is provided, all items will be returned.
15126
+ * If no filter criteria is provided, all items will be returned.
15113
15127
  *
15114
- * @param options {@link ITableCollection.SearchOptions}
15128
+ * @param options {@link ITableCollection.GetItemsOptions}
15115
15129
  */
15116
- search(options?: ITableCollection.SearchOptions): ITable[];
15130
+ getItems(options?: ITableCollection.GetItemsOptions): ITable[];
15117
15131
  /**
15118
- * Convenience method for searching by name. This is
15119
- * functionally equivalent to search({ name });
15132
+ * Convenience method for filter by name. This is
15133
+ * functionally equivalent to getItems({ name });
15120
15134
  *
15121
- * @param name The name to search for This is case insensitive.
15135
+ * @param name The name to filter for This is case insensitive.
15122
15136
  */
15123
15137
  getByName(name: string): ITable | null;
15124
15138
  }
@@ -15163,9 +15177,9 @@ export declare namespace ITableCollection {
15163
15177
  */
15164
15178
  isLoad?: boolean;
15165
15179
  }
15166
- export interface SearchOptions {
15180
+ export interface GetItemsOptions {
15167
15181
  /**
15168
- * If provided, the search will be limited to items that intersect the range.
15182
+ * If provided, the filter will be limited to items that intersect the range.
15169
15183
  */
15170
15184
  address?: ICellRange.Address;
15171
15185
  /**
@@ -15175,13 +15189,13 @@ export declare namespace ITableCollection {
15175
15189
  */
15176
15190
  excludeHidden?: boolean;
15177
15191
  /**
15178
- * Only return items that are completely contained with the search bounds.
15192
+ * Only return items that are completely contained with the filter bounds.
15179
15193
  *
15180
15194
  * @defaultValue false
15181
15195
  */
15182
15196
  fullyContained?: boolean;
15183
15197
  /**
15184
- * Search with the given name. This is case insensitive.
15198
+ * Filter with the given name. This is case insensitive.
15185
15199
  */
15186
15200
  name?: string;
15187
15201
  }
@@ -16237,7 +16251,7 @@ export declare namespace ITheme {
16237
16251
  /**
16238
16252
  * A collection of themes.
16239
16253
  */
16240
- export declare interface IThemeCollection extends ICollection {
16254
+ export declare interface IThemeCollection extends ICollection<ITheme> {
16241
16255
  /**
16242
16256
  * Add or update a theme.
16243
16257
  *
@@ -16259,15 +16273,15 @@ export declare interface IThemeCollection extends ICollection {
16259
16273
  */
16260
16274
  getByName(name: string): ITheme | null;
16261
16275
  /**
16262
- * Returns all themes that match the search criteria.
16276
+ * Returns all themes that match the filter criteria.
16263
16277
  *
16264
- * @param options {@link IThemeCollection.SearchOptions}
16278
+ * @param options {@link IThemeCollection.GetItemsOptions}
16265
16279
  *
16266
16280
  * @remarks
16267
- * * If no search criteria is provided, all items will be returned.
16281
+ * * If no filter criteria is provided, all items will be returned.
16268
16282
  * * Generates a new array so this can be mutated without affecting the internal state.
16269
16283
  */
16270
- search(options?: IThemeCollection.SearchOptions): ITheme[];
16284
+ getItems(options?: IThemeCollection.GetItemsOptions): ITheme[];
16271
16285
  /**
16272
16286
  * Remove a custom theme.
16273
16287
  *
@@ -16299,22 +16313,22 @@ export declare interface IThemeCollection extends ICollection {
16299
16313
  */
16300
16314
  export declare namespace IThemeCollection {
16301
16315
  export type JSON = ITheme.JSON[];
16302
- export interface SearchOptions {
16316
+ export interface GetItemsOptions extends ICollection.GetItemsOptions {
16303
16317
  /**
16304
- * @defaultValue `IThemeCollection.BuiltInSearchType.All`
16318
+ * @defaultValue `IThemeCollection.BuiltInFilterType.All`
16305
16319
  */
16306
- type?: BuiltInSearchType;
16320
+ type?: BuiltInFilterType;
16307
16321
  /**
16308
- * Allows for the search to return a specific theme even if not in the list.
16322
+ * Allows for the filter to return a specific theme even if not in the list.
16309
16323
  */
16310
16324
  selected?: ITheme;
16311
16325
  }
16312
- const BuiltInSearchType: {
16326
+ const BuiltInFilterType: {
16313
16327
  readonly BuiltIn: "builtIn";
16314
16328
  readonly All: "all";
16315
16329
  readonly Custom: "custom";
16316
16330
  };
16317
- export type BuiltInSearchType = typeof BuiltInSearchType[keyof typeof BuiltInSearchType];
16331
+ export type BuiltInFilterType = typeof BuiltInFilterType[keyof typeof BuiltInFilterType];
16318
16332
  }
16319
16333
 
16320
16334
  /**
@@ -17526,18 +17540,13 @@ declare class LM {
17526
17540
  declare class MergeEntry {
17527
17541
  private _c;
17528
17542
  private _tvTl;
17529
- private _rsTl;
17530
- constructor(coords: IRange.Coords, tvTl?: (coords: IRange.Coords) => Scalar | null, rsTl?: (coords: IRange.Coords) => RangeState.Intersection | null);
17543
+ constructor(coords: IRange.Coords, tvTl?: (coords: IRange.Coords) => Scalar | null);
17531
17544
  /**
17532
17545
  * The cell value at the top left.
17533
17546
  * We track this because we want a quick way to access
17534
17547
  * the coords state during overflow scenarios.
17535
17548
  */
17536
17549
  tvTl(): Scalar | null;
17537
- /**
17538
- * The range state at the top left.
17539
- */
17540
- rsTl(): RangeState.Intersection | null;
17541
17550
  getCoords(): IRange.Coords;
17542
17551
  }
17543
17552
 
@@ -18086,6 +18095,7 @@ declare namespace RangeState {
18086
18095
  bounds?: IRange.Coords;
18087
18096
  includeRangeTypes: boolean | SearchTypes;
18088
18097
  excludeHidden?: boolean | IRange.Orientation;
18098
+ includeMergeOverflow?: boolean;
18089
18099
  }
18090
18100
  interface Entry {
18091
18101
  /**
@@ -18161,6 +18171,8 @@ export declare class ResourceCollection implements IResourceCollection {
18161
18171
  constructor();
18162
18172
  /** {@inheritDoc IResourceCollection.add} */
18163
18173
  add(res: string | IResource | IResourceCollection.AddOptions): IResource;
18174
+ /** {@inheritDoc IResourceCollection.getItems} */
18175
+ getItems(options?: IResourceCollection.GetItemsOptions): IResource[];
18164
18176
  /** {@inheritDoc IResourceCollection.getCount} */
18165
18177
  getCount(): number;
18166
18178
  /** {@inheritDoc IResourceCollection.beginPersist} */
@@ -19675,6 +19687,8 @@ export declare class StringCollection implements IStringCollection {
19675
19687
  addMultiple(shared: string[], conflateDuplicates?: boolean): void;
19676
19688
  /** {@inheritDoc IStringCollection.add} */
19677
19689
  add(shared: string): number;
19690
+ /** {@inheritDoc IStringCollection.getItems} */
19691
+ getItems(options?: IStringCollection.GetItemsOptions): string[];
19678
19692
  /** {@inheritDoc IStringCollection.getById} */
19679
19693
  getById(id: number): string;
19680
19694
  /** {@inheritDoc ICollection.getCount} */
@@ -20013,7 +20027,8 @@ export declare class ThemeCollection implements IThemeCollection {
20013
20027
  setDefaultTheme(theme: ITheme): ITheme;
20014
20028
  /** {@inheritDoc IThemeCollection.getByName} */
20015
20029
  getByName(name: string): ITheme | null;
20016
- search(options?: IThemeCollection.SearchOptions): ITheme[];
20030
+ /** {@inheritDoc IThemeCollection.getByName} */
20031
+ getItems(options?: IThemeCollection.GetItemsOptions): ITheme[];
20017
20032
  /** {@inheritDoc IThemeCollection.getCount} */
20018
20033
  getCount(): number;
20019
20034
  /** {@inheritDoc IThemeCollection.setCustomTheme} */