@sheetxl/sdk 0.6.14 → 0.6.16

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 (87) hide show
  1. package/browser/cjs/{DBfWRgHutIY9Sq8n.cjs → BmCsHRYZD4YndYs4.cjs} +1 -1
  2. package/browser/cjs/{CgcJnLXv6G0DXZgX.cjs → BoWPwuGQGZ9LeAwf.cjs} +1 -1
  3. package/browser/cjs/{C3NbuWlwNH9zafeB.cjs → C0A1ZSbqhJpcZBXL.cjs} +1 -1
  4. package/browser/cjs/{zvUJZO_ZiK6vYwur.cjs → C2INdehyVPgz1Jzb.cjs} +3 -3
  5. package/browser/cjs/{D1267MbujS_AycGh.cjs → C8JMdl2QLUqigZSp.cjs} +1 -1
  6. package/browser/cjs/{DIUZi-C_4XyTFJVO.cjs → CDTddlrrNAPAzT-b.cjs} +1 -1
  7. package/browser/cjs/{DGATUw2NU6Zk94Df.cjs → Chn_rXue5ZRT7QzO.cjs} +1 -1
  8. package/browser/cjs/{DjkbhKal3FbG1k-5.cjs → Cr8vGsKEARWkuGbH.cjs} +1 -1
  9. package/browser/cjs/CtMEtiTTRRZpP_y5.cjs +54 -0
  10. package/browser/cjs/{BZoJWDhZE0dmT2Hr.cjs → Cv6raToEFuWdFg1l.cjs} +1 -1
  11. package/browser/cjs/{CsVdrRbuvhM5QBRI.cjs → Cz3DPikv1uHxmHQO.cjs} +1 -1
  12. package/browser/cjs/{h3AnrXs1yGFRfhXn.cjs → D3PLUvJebJwixno3.cjs} +1 -1
  13. package/browser/cjs/{Dev2f5p24znnfBw5.cjs → DQ_XM6muCimf60e7.cjs} +1 -1
  14. package/browser/cjs/{D_5lNxYXtg8pTBl4.cjs → DWgPdK1bXl_mpisL.cjs} +1 -1
  15. package/browser/cjs/{D_y2_v6BxBvein0F.cjs → DjmtCi-hr6IRzsjv.cjs} +1 -1
  16. package/browser/cjs/{2_0ljEmd3MqrQ5qe.cjs → DtX35zG23d6nmxHr.cjs} +1 -1
  17. package/browser/cjs/{zNL-k-477FDHDMNB.cjs → DwQjplri0TLmw6Dr.cjs} +1 -1
  18. package/browser/cjs/{DVKdHM5HtVpKbIsi.cjs → GFeCgzGuw5cNzIuz.cjs} +1 -1
  19. package/browser/cjs/{wvL0ZKtQC1IqdzGf.cjs → Pld4bpB-RO-4zCrM.cjs} +2 -2
  20. package/browser/cjs/{DgzoBVFFLC3Zv3ZF.cjs → PxEF95ZwIuQT4wGv.cjs} +1 -1
  21. package/browser/cjs/{lOdJR1MygGekWVIY.cjs → U1dm1Xm2kdqUeD6H.cjs} +1 -1
  22. package/browser/cjs/{DTqdtm4RRC6H7GuB.cjs → XwMJLG3fnrWb7Kry.cjs} +1 -1
  23. package/browser/cjs/{Dsi_3py7w3x0FOZh.cjs → _lYekKV2drbqLkab.cjs} +1 -1
  24. package/browser/cjs/{BXMdSgOOMcSA1CFe.cjs → eN9d-xodim4o2fVd.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{KPg1p4gr1jYrRFOQ.cjs → k-_Yko2e0fYeYSMz.cjs} +2 -2
  27. package/browser/cjs/{CMpaOlZJ_Eknu4Ta.cjs → kFY5EKAHOvJcdTHU.cjs} +1 -1
  28. package/browser/cjs/{Cdw22URvA8dpCqXh.cjs → pIJzNhe-hEXBTLKA.cjs} +1 -1
  29. package/{node/esm/ByWhojoBVky0DgYf.mjs → browser/esm/B29IdOudbMkKhUWx.mjs} +1 -1
  30. package/browser/esm/{Vs22R2GDO7gQjz-p.mjs → BXhWgBqyW7vVSwCE.mjs} +1 -1
  31. package/browser/esm/BadKxl9yXM8LRAt0.mjs +23197 -0
  32. package/browser/esm/{BloJXjRn8hP4d255.mjs → BhlYeywnKEKSsVBp.mjs} +1 -1
  33. package/{node/esm/ybzO-nqWcHgDPHnZ.mjs → browser/esm/CEMahAUp4yeaRZyO.mjs} +1 -1
  34. package/browser/esm/{DJ5DeRigx-CqQNIB.mjs → CMtecoWQQB5QJglr.mjs} +2 -2
  35. package/{node/esm/BfzoFiKoeuTwS5JP.mjs → browser/esm/COVt6Go-h1KJ_SYL.mjs} +1 -1
  36. package/{node/esm/CypD31G2r5yIOxN7.mjs → browser/esm/CaJltcT8q2Qt4tOb.mjs} +1 -1
  37. package/{node/esm/D9oJ-zu3Mbebhpsv.mjs → browser/esm/Ce3zqAUmE9OyqGvt.mjs} +1 -1
  38. package/browser/esm/{CkO-OoQd3FNIbl1s.mjs → CoqdATBvO4OVNwUE.mjs} +1 -1
  39. package/{node/esm/BFfcsadzoh0o3F-F.mjs → browser/esm/Cu9gRGU_8MCajq2K.mjs} +1 -1
  40. package/browser/esm/{Bsng578a29DvDn9e.mjs → CvL_oKmyxaK1QYqk.mjs} +1 -1
  41. package/browser/esm/{BmedVxLh7gfhTflw.mjs → CwlYf8-SIFOPR2bo.mjs} +1 -1
  42. package/browser/esm/{CeFW6L84_M2ZP5-n.mjs → D6BieKg9I2zdEnme.mjs} +1 -1
  43. package/{node/esm/DV2J_aPtnq-cSv8P.mjs → browser/esm/DL8H1TIz4eYTJlVj.mjs} +1 -1
  44. package/browser/esm/{BEAtN_zsPK5rbDUV.mjs → DMcVQ-BL4bA_OnOG.mjs} +1 -1
  45. package/browser/esm/{nZ8XDZY4vqrIcI2J.mjs → DXM-_v3PvFbM2njM.mjs} +1 -1
  46. package/{node/esm/Dgl6EgVklVhNQN-j.mjs → browser/esm/DXsvBOTVsF5m0ROF.mjs} +1 -1
  47. package/browser/esm/{BEnTsF_20TsBA9zO.mjs → DdQcQ9S4ZGjE5io0.mjs} +1 -1
  48. package/browser/esm/{C4I-V6FehP7m3xY6.mjs → DpNBrNeVIhiQtG7J.mjs} +1 -1
  49. package/browser/esm/{CQE_Gj9MzWo7RvCR.mjs → DssDWFBai4LRnGyo.mjs} +1 -1
  50. package/browser/esm/{BAe-5TDZS7vibtSd.mjs → DxkU0bhpXyM3VNYS.mjs} +1 -1
  51. package/browser/esm/{B1B2OGAH7tl-RQZ6.mjs → NussRz_Lfu19nTDO.mjs} +1 -1
  52. package/browser/esm/{bF3CzNsuK2gxZG0s.mjs → iMtWYxITH-mK8yV4.mjs} +1 -1
  53. package/browser/esm/index.mjs +2 -2
  54. package/{node/esm/DN_xnwatUgZObGQv.mjs → browser/esm/ktpMAehXfPbHpZxp.mjs} +1 -1
  55. package/browser/esm/{DTVsA9-oun-mxpJ-.mjs → qYVVqNYgMTjgxSFA.mjs} +2 -2
  56. package/browser/esm/{CSMZhlPFyiHkra-E.mjs → rG8mrr2nckUu5hbw.mjs} +3 -3
  57. package/node/esm/{DuU3u_ZVH0O6oV7O.mjs → 0VNBUAjGhg3IHPRC.mjs} +1 -1
  58. package/{browser/esm/ByWhojoBVky0DgYf.mjs → node/esm/B29IdOudbMkKhUWx.mjs} +1 -1
  59. package/node/esm/{DraNJl7CH4TpHhmP.mjs → Bj_liro3wEoofx_s.mjs} +1 -1
  60. package/node/esm/{s5bkiuBWGhbcEhvU.mjs → BoURPosx6Uvnr7bI.mjs} +1 -1
  61. package/node/esm/{CEF3Koz-ZYmoM15c.mjs → BqqNCz_koCAYJ3Kx.mjs} +1 -1
  62. package/node/esm/{B0Q6s5oeTuDpEK0u.mjs → C61hKIygirc2mSxV.mjs} +1 -1
  63. package/{browser/esm/ybzO-nqWcHgDPHnZ.mjs → node/esm/CEMahAUp4yeaRZyO.mjs} +1 -1
  64. package/node/esm/{CRsWrA5m6zxghBfc.mjs → CLXpyIa1G-kRzIzH.mjs} +1 -1
  65. package/{browser/esm/BfzoFiKoeuTwS5JP.mjs → node/esm/COVt6Go-h1KJ_SYL.mjs} +1 -1
  66. package/{browser/esm/CypD31G2r5yIOxN7.mjs → node/esm/CaJltcT8q2Qt4tOb.mjs} +1 -1
  67. package/{browser/esm/D9oJ-zu3Mbebhpsv.mjs → node/esm/Ce3zqAUmE9OyqGvt.mjs} +1 -1
  68. package/{browser/esm/BFfcsadzoh0o3F-F.mjs → node/esm/Cu9gRGU_8MCajq2K.mjs} +1 -1
  69. package/node/esm/{Bsng578a29DvDn9e.mjs → CvL_oKmyxaK1QYqk.mjs} +1 -1
  70. package/{browser/esm/DV2J_aPtnq-cSv8P.mjs → node/esm/DL8H1TIz4eYTJlVj.mjs} +1 -1
  71. package/node/esm/{BEAtN_zsPK5rbDUV.mjs → DMcVQ-BL4bA_OnOG.mjs} +1 -1
  72. package/node/esm/{nZ8XDZY4vqrIcI2J.mjs → DXM-_v3PvFbM2njM.mjs} +1 -1
  73. package/{browser/esm/Dgl6EgVklVhNQN-j.mjs → node/esm/DXsvBOTVsF5m0ROF.mjs} +1 -1
  74. package/node/esm/{BEnTsF_20TsBA9zO.mjs → DdQcQ9S4ZGjE5io0.mjs} +1 -1
  75. package/node/esm/{DOvw6Rpvhw8Q12Fc.mjs → DjzRVBemDPA3DN_8.mjs} +1 -1
  76. package/node/esm/{C4I-V6FehP7m3xY6.mjs → DpNBrNeVIhiQtG7J.mjs} +1 -1
  77. package/node/esm/{Bq2byK_rc9xYtXP5.mjs → Dxs2OFUMD57Oo_AB.mjs} +1 -1
  78. package/node/esm/{B1B2OGAH7tl-RQZ6.mjs → NussRz_Lfu19nTDO.mjs} +1 -1
  79. package/node/esm/{Cu8ghfxjmgu90YcD.mjs → PWC-IfMc5cNOks4D.mjs} +2 -2
  80. package/node/esm/{bF3CzNsuK2gxZG0s.mjs → iMtWYxITH-mK8yV4.mjs} +1 -1
  81. package/node/esm/index.mjs +2004 -1911
  82. package/{browser/esm/DN_xnwatUgZObGQv.mjs → node/esm/ktpMAehXfPbHpZxp.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +112 -132
  85. package/types/scripting.d.ts +205 -151
  86. package/browser/cjs/-GbzD2TqGpqnE2Wr.cjs +0 -54
  87. package/browser/esm/D0oDESXG-L_eJjP6.mjs +0 -23128
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.14
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.16
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.6.14",
4
+ "version": "0.6.16",
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.6.14",
35
- "@sheetxl/scripting": "^0.6.14",
36
- "@sheetxl/utils": "^0.6.14",
34
+ "@sheetxl/primitives": "^0.6.16",
35
+ "@sheetxl/scripting": "^0.6.16",
36
+ "@sheetxl/utils": "^0.6.16",
37
37
  "bahttext": "^2.3.0",
38
38
  "bessel": "^1.0.2",
39
39
  "chalk": "^5.5.0",
package/types/index.d.ts CHANGED
@@ -776,6 +776,10 @@ declare namespace CellState {
776
776
  /* Excluded from this release type: IteratorOptions */
777
777
  }
778
778
 
779
+ declare interface CellStyleUpdater {
780
+ (update: IStyle.Update, options?: IStyle.UpdateOptions, range?: IRange.Coords): IStyle;
781
+ }
782
+
779
783
  declare type CellToString<C extends IRange.CellCoords = IRange.CellCoords> = (cell: C) => string;
780
784
 
781
785
  /**
@@ -2200,26 +2204,62 @@ export declare interface IBorder {
2200
2204
  * @returns The left border.
2201
2205
  */
2202
2206
  getLeft(): IBorder.IStroke;
2207
+ /**
2208
+ * Sets the left border.
2209
+ *
2210
+ * @param edge The border edge.
2211
+ */
2212
+ setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
2203
2213
  /**
2204
2214
  * @returns The top border.
2205
2215
  */
2206
2216
  getTop(): IBorder.IStroke;
2217
+ /**
2218
+ * Sets the top border.
2219
+ *
2220
+ * @param edge The border edge.
2221
+ */
2222
+ setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
2207
2223
  /**
2208
2224
  * @returns The right border.
2209
2225
  */
2210
2226
  getRight(): IBorder.IStroke;
2227
+ /**
2228
+ * Sets the left border.
2229
+ *
2230
+ * @param edge The border edge.
2231
+ */
2232
+ setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
2211
2233
  /**
2212
2234
  * @returns The bottom border.
2213
2235
  */
2214
2236
  getBottom(): IBorder.IStroke;
2237
+ /**
2238
+ * Sets the bottom border.
2239
+ *
2240
+ * @param edge The border edge.
2241
+ */
2242
+ setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
2215
2243
  /**
2216
2244
  * @returns The diagonalUp border.
2217
2245
  */
2218
2246
  getDiagonalUp(): IBorder.IStroke;
2247
+ /**
2248
+ * Sets the diagonalUp border.
2249
+ *
2250
+ * @param edge The border edge.
2251
+ */
2252
+ setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
2219
2253
  /**
2220
2254
  * @returns The diagonalDown border.
2221
2255
  */
2222
2256
  getDiagonalDown(): IBorder.IStroke;
2257
+ /**
2258
+ * Sets the diagonalDown border.
2259
+ *
2260
+ * @param edge The border edge.
2261
+ */
2262
+ setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
2223
2263
  /**
2224
2264
  * If there are any borders that are not none.
2225
2265
  */
@@ -4271,30 +4311,6 @@ export declare namespace ICellProtection {
4271
4311
  * - Methods that transform the range's data into a different type use a `to` prefix (e.g., `toArray()`).
4272
4312
  */
4273
4313
  export declare interface ICellRange {
4274
- /**
4275
- * Retrieves an {@link IStyle.Updater} object for updating the styles of the range.
4276
- *
4277
- * Unlike {@link ICell.getStyle}, which provides a read-only view of a cell's style,
4278
- * this method returns an updater object that allows modifications to the styles
4279
- * of all cells in the range.
4280
- *
4281
- * @example
4282
- * ```typescript
4283
- * const updater = range.getStyleUpdater();
4284
- * updater.setColor("blue").setFont("Arial");
4285
- * ```
4286
- * @returns {IStyle.Updater} A style updater for the range.
4287
- *
4288
- * @remarks
4289
- * - **Deterministic Behavior**: All updates via the `IStyle.Updater` are applied
4290
- * to the entire range, overriding any mixed styles with the specified values.
4291
- * - **Read-Only Alternatives**: To inspect styles across all cells in the range
4292
- * without modifying them, use {@link ICellRange.entries} or {@link ICellRange.forEach} to iterate over immutable
4293
- * {@link ICell}s.
4294
- * - **Immutable Philosophy**: This API aligns with the principle that `ICell`
4295
- * objects are immutable, while `ICellRange` is the interface for mutable operations.
4296
- */
4297
- getStyleUpdater(): IStyle.Updater;
4298
4314
  /**
4299
4315
  * Return an array of coords for all merges.
4300
4316
  *
@@ -4331,6 +4347,14 @@ export declare interface ICellRange {
4331
4347
  * {@link ICellRange.getValues}
4332
4348
  */
4333
4349
  getValue(options?: ICellRange.GetValuesOptions): Scalar | JSScalar;
4350
+ /**
4351
+ * Returns the style for the range.
4352
+ *
4353
+ * @remarks
4354
+ * When querying the style the values will always be for the top left. However the
4355
+ * set values work for the entire range.
4356
+ */
4357
+ getStyle(): IStyle;
4334
4358
  /**
4335
4359
  * Returns the intersection of the current range and the specified range.
4336
4360
  *
@@ -5824,10 +5848,6 @@ export declare interface ICellRanges {
5824
5848
  * {@inheritDoc ICellRange.getSheet}
5825
5849
  */
5826
5850
  getSheet(): ISheet;
5827
- /**
5828
- * {@inheritDoc ICellRange.getStyleUpdater}
5829
- */
5830
- getStyleUpdater(): IStyle.Updater;
5831
5851
  /**
5832
5852
  * {@inheritDoc ICellRange.updateStyle}
5833
5853
  */
@@ -7906,7 +7926,14 @@ export declare interface IFill {
7906
7926
  * (for example color, backgroundColor)
7907
7927
  */
7908
7928
  toCSS(darkMode?: boolean, bounds?: Bounds): Properties;
7929
+ /**
7930
+ * Returns the fill as a JSON object.
7931
+ */
7909
7932
  toJSON(): IFill.JSON;
7933
+ /**
7934
+ * For type checking.
7935
+ */
7936
+ readonly isIFill: true;
7910
7937
  }
7911
7938
 
7912
7939
  /**
@@ -8252,7 +8279,7 @@ export declare namespace IFill {
8252
8279
  * @see
8253
8280
  * {@link IFill.IGradient.getStops}
8254
8281
  */
8255
- stops?: GradientStopProperties<C>[];
8282
+ stops?: (GradientStopProperties<C> | C)[];
8256
8283
  /**
8257
8284
  * @see
8258
8285
  * {@link IFill.IGradient.getGradientType}
@@ -13933,27 +13960,75 @@ export declare interface IStyle {
13933
13960
  * - {@link NumberFormat.Type}
13934
13961
  */
13935
13962
  getNumberFormat(): string;
13963
+ /**
13964
+ * @see {@link IStyle.getNumberFormat}
13965
+ */
13966
+ setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
13936
13967
  /**
13937
13968
  * A boolean value indicating whether the text string in a cell should be prefixed by a single quote mark (e.g., 'text).
13938
13969
  * In these cases, the quote is not stored in the Shared Strings Part.
13939
13970
  */
13940
13971
  getQuotePrefix(): boolean;
13941
13972
  /**
13942
- * Returns the alignment for the style.
13973
+ * @see {@link IStyle.getQuotePrefix}
13943
13974
  */
13944
- getAlignment(): ITextFrame.IAlignment;
13975
+ setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): this;
13945
13976
  /**
13946
13977
  * Returns the border style.
13947
13978
  */
13948
13979
  getBorder(): IBorder;
13980
+ /**
13981
+ * Sets the border style.
13982
+ *
13983
+ * This method allows updating borders using an {@link IBorder} or a shorthand property object.
13984
+ *
13985
+ * @param border The border object or a shorthand property object to apply. Pass `null` to clear.
13986
+ * @param options Optional configuration for the update.
13987
+ * @returns The `IBorder` object for further modifications.
13988
+ */
13989
+ setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
13949
13990
  /**
13950
13991
  * Fill properties for the background.
13951
13992
  */
13952
13993
  getFill(): IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone;
13994
+ /**
13995
+ * Sets the fill style.
13996
+ *
13997
+ * This method allows updating fill using an {@link IFill} or a shorthand property object.
13998
+ *
13999
+ * @param fill The fill object or a shorthand property object to apply. Pass `null` to clear.
14000
+ * @param options Optional configuration for the update.
14001
+ * @returns The `IFill` object for further modifications.
14002
+ */
14003
+ setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
14004
+ /**
14005
+ * Returns the alignment for the style.
14006
+ */
14007
+ getAlignment(): ITextFrame.IAlignment;
14008
+ /**
14009
+ * Sets the alignment style.
14010
+ *
14011
+ * This method allows updating alignments using an {@link ITextFrame.IAlignment} or a shorthand property object.
14012
+ *
14013
+ * @param alignment The alignment object or a shorthand property object to apply. Pass `null` to clear.
14014
+ * @param options Optional configuration for the update.
14015
+ * @returns The `ITextFrame.IAlignment` object for further modifications.
14016
+ */
14017
+ setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
13953
14018
  /**
13954
14019
  * Returns the font for the style.
13955
14020
  */
13956
14021
  getFont(): IStyledFont;
14022
+ /**
14023
+ * Sets the font style.
14024
+ *
14025
+ * This method allows updating fill using an {@link IStyledFont} or a shorthand property object.
14026
+ *
14027
+ * @param font The font object or a shorthand property object to apply. Pass `null` to clear.
14028
+ * @param options Optional configuration for the update.
14029
+ * @returns The `IStyledFont` object for further modifications.
14030
+ */
14031
+ setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions): IStyledFont;
13957
14032
  /**
13958
14033
  * Measure the text using the styling properties
13959
14034
  *
@@ -13998,6 +14073,10 @@ export declare interface IStyle {
13998
14073
  * Returns `true` if the CellStyle is the normal style
13999
14074
  */
14000
14075
  isNormal(): boolean;
14076
+ /**
14077
+ * Returns a JSON representation of the style.
14078
+ */
14079
+ toJSON(): IStyle.JSON | null;
14001
14080
  /**
14002
14081
  * For runtime type checking.
14003
14082
  */
@@ -14101,106 +14180,6 @@ export declare namespace IStyle {
14101
14180
  */
14102
14181
  autoFit?: boolean | ICellRange.AutoFitOptions;
14103
14182
  }
14104
- /**
14105
- * Provides an API for updating styles.
14106
- */
14107
- export interface Updater {
14108
- /**
14109
- * @see {@link IStyle.getNumberFormat}
14110
- */
14111
- setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
14112
- /**
14113
- * Sets or removes the quote prefix for the range.
14114
- *
14115
- * The quote prefix ensures that values in cells are treated as text.
14116
- *
14117
- * @see {@link IStyle.getQuotePrefix}
14118
- */
14119
- setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): this;
14120
- /**
14121
- * Sets the alignment style.
14122
- *
14123
- * This method allows updating alignments using an {@link ITextFrame.IAlignment} or a shorthand property object.
14124
- *
14125
- * @param alignment The alignment object or a shorthand property object to apply. Pass `null` to clear.
14126
- * @param options Optional configuration for the update.
14127
- * @returns The `ITextFrame.IAlignment.Updater` object for further modifications.
14128
- */
14129
- setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
14130
- /**
14131
- * Retrieves the alignment updater.
14132
- *
14133
- * @returns An `ITextFrame.IAlignment.Updater` object.
14134
- */
14135
- getAlignment(): ITextFrame.IAlignment;
14136
- /**
14137
- * Sets the border style.
14138
- *
14139
- * This method allows updating borders using an {@link IBorder} or a shorthand property object.
14140
- *
14141
- * @param border The border object or a shorthand property object to apply. Pass `null` to clear.
14142
- * @param options Optional configuration for the update.
14143
- * @returns The `IBorder.Updater` object for further modifications.
14144
- */
14145
- setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
14146
- /**
14147
- * Retrieves the border updater.
14148
- *
14149
- * @returns An `IBorder.Updater` object.
14150
- */
14151
- getBorder(): IBorder;
14152
- /**
14153
- * Sets the fill style.
14154
- *
14155
- * This method allows updating fill using an {@link IFill} or a shorthand property object.
14156
- *
14157
- * @param fill The fill object or a shorthand property object to apply. Pass `null` to clear.
14158
- * @param options Optional configuration for the update.
14159
- * @returns The `IFill.Updater` object for further modifications.
14160
- */
14161
- setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
14162
- /**
14163
- * Retrieves the fill updater.
14164
- *
14165
- * @returns An `IFIll.Updater` object.
14166
- */
14167
- getFill(): IFill;
14168
- /**
14169
- * Sets the font style.
14170
- *
14171
- * This method allows updating fill using an {@link IStyledFont} or a shorthand property object.
14172
- *
14173
- * @param font The font object or a shorthand property object to apply. Pass `null` to clear.
14174
- * @param options Optional configuration for the update.
14175
- * @returns The `IStyledFont.Updater` object for further modifications.
14176
- */
14177
- setFont(font: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
14178
- /**
14179
- * Retrieves the IStyledFont updater.
14180
- *
14181
- * @returns An `IStyledFont.Updater` object.
14182
- */
14183
- getFont(): IStyledFont;
14184
- /**
14185
- * Updates multiple style properties at once.
14186
- *
14187
- * This method is the most versatile way to update styles, allowing bulk updates with nested properties,
14188
- * shorthand strings, or function callbacks.
14189
- *
14190
- * @example
14191
- * ```typescript
14192
- * updater.update({
14193
- * font: { bold: true, color: "blue" },
14194
- * fill: { pattern: "solid", color: "yellow" }
14195
- * });
14196
- * ```
14197
- *
14198
- * @param style An object describing the style updates.
14199
- * @param options Optional configuration for the update.
14200
- * @returns The current `Updater` instance for chaining.
14201
- */
14202
- update(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
14203
- }
14204
14183
  export interface JSON extends Properties<string> {
14205
14184
  }
14206
14185
  /**
@@ -18627,7 +18606,7 @@ export declare class Sheet implements ISheet {
18627
18606
  /* Excluded from this release type: _updateState */
18628
18607
  /* Excluded from this release type: _addEvent */
18629
18608
  /* Excluded from this release type: _getScalar */
18630
- /* Excluded from this release type: getStyleUpdater */
18609
+ /* Excluded from this release type: _getStyle */
18631
18610
  /* Excluded from this release type: _initState */
18632
18611
  /* Excluded from this release type: _clearState */
18633
18612
  /* Excluded from this release type: _createTableEntry */
@@ -18673,6 +18652,7 @@ declare interface SheetCellOptions {
18673
18652
  calcGraph(): ICalcGraph;
18674
18653
  colHeaders: ISheetHeader;
18675
18654
  getRange(coords: IRange.Coords): ICellRange;
18655
+ styleUpdater: CellStyleUpdater;
18676
18656
  opener(url: string, options: ICellRange.SelectOptions, target?: string, features?: string): Promise<boolean>;
18677
18657
  }
18678
18658