@sheetxl/sdk 0.4.7 → 0.4.8

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 (105) hide show
  1. package/browser/cjs/{Dbd52SpYjQAQQ5Lc.cjs → 38zr0ASvmtRpjHmt.cjs} +1 -1
  2. package/browser/cjs/{DywksQ9WhhEXRisJ.cjs → 7jQ5XG3wyyYoOY40.cjs} +2 -2
  3. package/browser/cjs/{DHgtrwpUI5XOg7d1.cjs → B-ppaZjEYSrlX5zE.cjs} +1 -1
  4. package/browser/cjs/{Dqu2WvbX6a1aE5xC.cjs → B7o2KDjmzKzbt7pr.cjs} +1 -1
  5. package/browser/cjs/{BWBs6iqfyZ0GsJE4.cjs → B934x3Yjau6HePKD.cjs} +1 -1
  6. package/browser/cjs/{CKAWSQ-n6UNHU-hc.cjs → BHHxfPtREBLJJjfC.cjs} +1 -1
  7. package/browser/cjs/{Cq8C2sU4L0DDq1nt.cjs → BKl98nBjvucNCS0t.cjs} +3 -3
  8. package/browser/cjs/{CpQaIOppX0XX2vDs.cjs → BLw5j7qHaHVjK3zq.cjs} +1 -1
  9. package/browser/cjs/{C8dCjjzUV8qwdDyY.cjs → BZ7fAwctCCv2P5ST.cjs} +1 -1
  10. package/browser/cjs/{DCE0ThfupHz4dExl.cjs → BcwGVKl_RMjDQJI8.cjs} +2 -2
  11. package/browser/cjs/{tW5W8i2ldWqC6qS6.cjs → BloJubfw2Hruwopb.cjs} +1 -1
  12. package/browser/cjs/{DGdXny4PhjplfkC8.cjs → Bpk0x3fZzCXV2z2I.cjs} +1 -1
  13. package/browser/cjs/{DwKQDFaICO4XJiQP.cjs → C7EniXtaA0U3bEtY.cjs} +1 -1
  14. package/browser/cjs/C9TkVX2wIUdqxJn7.cjs +60 -0
  15. package/browser/cjs/{C0WJFEDJ-cCWjcBd.cjs → CQ9FtZ-3EvIrXae5.cjs} +4 -4
  16. package/browser/cjs/{BpSDBJvAuyi5MV4H.cjs → CR52tt6h0cgmWBkd.cjs} +1 -1
  17. package/browser/cjs/{DsrvFA9fg9a6po6E.cjs → Cg2MSPk06L3PosU0.cjs} +1 -1
  18. package/browser/cjs/{BJ4lmW1HbLGZjqYu.cjs → ChNG8lhZxtUbdwSo.cjs} +1 -1
  19. package/browser/cjs/{DxHxLHgNLyk4kHII.cjs → CiKXJcvll53FDmbp.cjs} +1 -1
  20. package/browser/cjs/{CFDfrZYpwJRAnqAR.cjs → D1ta2tf3CLtfvecG.cjs} +1 -1
  21. package/browser/cjs/{CTgAiNQSJWKDXtSb.cjs → DDLb4shNn1TSaNG3.cjs} +1 -1
  22. package/browser/cjs/{rN4aMEc1eBkMR2xM.cjs → DG4rplAqbBTd-mQx.cjs} +1 -1
  23. package/browser/cjs/{D_Fa302YxFJsewFt.cjs → DT6r5Mma6VExxKcq.cjs} +4 -4
  24. package/browser/cjs/{C7jcUOUYJ2X1723F.cjs → DThwXy6GgYcwIZMR.cjs} +1 -1
  25. package/browser/cjs/{6d3bcsuz9iJTDGvt.cjs → DYfM187zco-GKYTb.cjs} +1 -1
  26. package/browser/cjs/{BqIfUTtyJpRLQeBh.cjs → DZg5Mwq29fMfSi-y.cjs} +1 -1
  27. package/browser/cjs/{BlL2UupE4BH4n7lH.cjs → D_WEWu7rYS4mEBtp.cjs} +1 -1
  28. package/browser/cjs/{jFKQv7BqosgG5wqZ.cjs → DamwzUcjMGO22QjE.cjs} +1 -1
  29. package/browser/cjs/{CTaWGldoSi20ppOB.cjs → DdgpyDoI5exyG0rb.cjs} +2 -2
  30. package/browser/cjs/{DHWkQl03P54-vXOf.cjs → Ds-FhiLWO7oE93Hd.cjs} +1 -1
  31. package/browser/cjs/{BF03tNf6FACTW2M1.cjs → Lybgut_XTfyt4OKG.cjs} +1 -1
  32. package/browser/cjs/{7hsXTISvYl_-AEI4.cjs → RzPITvWQrx_z0sAf.cjs} +1 -1
  33. package/browser/cjs/index.cjs +2 -2
  34. package/browser/cjs/{DBiTStWkvXPR682m.cjs → uSRX3g8m1Pb1TQvy.cjs} +2 -2
  35. package/browser/esm/{CLLoQxyOJ_Z7Gds5.mjs → 0kfsIB_MUAPvAVZf.mjs} +1 -1
  36. package/browser/esm/{CxESS_8aLfFd9BEQ.mjs → 4xbBJ29NTacdk8xh.mjs} +1 -1
  37. package/{node/esm/CdrNW0JQ0yB-SxC_.mjs → browser/esm/5cVq-ILcuRswQoVK.mjs} +1 -1
  38. package/{node/esm/DlqGesRjfLTrJKgg.mjs → browser/esm/6u07QuMaFG_EIU10.mjs} +1 -1
  39. package/browser/esm/{ClUbKXbYfZrM1bNQ.mjs → B4zvtrjwcZYg-yIH.mjs} +4327 -4281
  40. package/browser/esm/{hN_K8NeXpcz4iPIv.mjs → BAdWV3igoCVLsHJQ.mjs} +1 -1
  41. package/browser/esm/{BrAZxLRrSyV8ELMx.mjs → BCbD10GyD-0sTiFj.mjs} +1 -1
  42. package/browser/esm/{CO8ll5ptWPRWdrBE.mjs → BNLn94MvbmVoPoSC.mjs} +1 -1
  43. package/browser/esm/{B8vhsfmKZSvo8-oA.mjs → BRe_J0daiw21imBs.mjs} +4 -4
  44. package/browser/esm/{MnEtIp1GtVYvlTrd.mjs → BgRuhDtkOFEJwiKz.mjs} +2 -2
  45. package/browser/esm/{CyJTPCg49Ayb10Cc.mjs → Bhym4SzVTJR0B61a.mjs} +1 -1
  46. package/browser/esm/{C_DwMCFSMcWnoIwK.mjs → BobIPgcDyRtIS8Nv.mjs} +1 -1
  47. package/browser/esm/{DlAY6wqiiIdu-6y8.mjs → C01AdTysvVV6hnpy.mjs} +1 -1
  48. package/{node/esm/5OOhquvuSSvB_Sz_.mjs → browser/esm/C2XeDZj8hdC7WPUL.mjs} +1 -1
  49. package/browser/esm/{fIysOOIiYgNN68HE.mjs → C38BVVLU4VWV-zuu.mjs} +2 -2
  50. package/browser/esm/{CwIOLGhRJdAkKIOi.mjs → C7Ab-OvpadTJ3gEB.mjs} +4 -4
  51. package/{node/esm/CwtNIBfb8cQFnon9.mjs → browser/esm/CJmEb7xWWXbcaSmI.mjs} +1 -1
  52. package/browser/esm/{C-RoZoZhc8t772TX.mjs → CgnsQS-5fcVgccQP.mjs} +1 -1
  53. package/browser/esm/{BSRIjPNiFI9MHx6a.mjs → CkI2yCIq4wmEYlj_.mjs} +1 -1
  54. package/browser/esm/{BqQiq-XS5D-JTJst.mjs → Cs6mKoop5R5Ze-Z3.mjs} +3 -3
  55. package/browser/esm/{03v5sl7XOndtoL-G.mjs → CuRh7xA_-4ufbp8u.mjs} +1 -1
  56. package/browser/esm/{PHTLYFNEcFRTTZjW.mjs → Cw8lVZjb32nNax0F.mjs} +1 -1
  57. package/browser/esm/{BaLZyV45yCbQaBfM.mjs → D9h8kDZL8uyc5Rit.mjs} +1 -1
  58. package/browser/esm/{DqYD7Pwq-h0AXxGK.mjs → DDJ3fhgiCiH2wCnX.mjs} +1 -1
  59. package/{node/esm/D5KVTjr2EmlbSlqA.mjs → browser/esm/DXyTx4X2C_0GWiso.mjs} +1 -1
  60. package/{node/esm/BuI-yMlpUfw49Oow.mjs → browser/esm/EbOsqozZ3FWroWJs.mjs} +1 -1
  61. package/browser/esm/{C87kLt3HvlVAz0bj.mjs → KBsZgVoYHdKdW42E.mjs} +1 -1
  62. package/browser/esm/{C2eLT-S7YabeVmqP.mjs → NT-xXgLKeeB6CDbv.mjs} +2 -2
  63. package/{node/esm/DWBtRi2bSzC5jB9g.mjs → browser/esm/Yt3HOCOZBjGtI7QD.mjs} +1 -1
  64. package/browser/esm/{DmwpX7Xjg27xsk_1.mjs → frm_AlHnhYKXLrXK.mjs} +1 -1
  65. package/browser/esm/index.mjs +2 -2
  66. package/{node/esm/DL2DtlHAUZJnDDoc.mjs → browser/esm/mzOjQg3fTljDRFI3.mjs} +1 -1
  67. package/browser/esm/{CDUTOpO9dpto60rs.mjs → t3xcsZgWkDrkWB_l.mjs} +2 -2
  68. package/browser/esm/{L-B0MJe7T_mxt531.mjs → wYlB_PWKRrYoLo9_.mjs} +1 -1
  69. package/licenses/dependencies.txt +3 -3
  70. package/node/esm/{CxESS_8aLfFd9BEQ.mjs → 4xbBJ29NTacdk8xh.mjs} +1 -1
  71. package/{browser/esm/CdrNW0JQ0yB-SxC_.mjs → node/esm/5cVq-ILcuRswQoVK.mjs} +1 -1
  72. package/{browser/esm/DlqGesRjfLTrJKgg.mjs → node/esm/6u07QuMaFG_EIU10.mjs} +1 -1
  73. package/node/esm/{hN_K8NeXpcz4iPIv.mjs → BAdWV3igoCVLsHJQ.mjs} +1 -1
  74. package/node/esm/{mDWB8qemoaxtXCCC.mjs → BNCwPTAE_IlCurVb.mjs} +1 -1
  75. package/node/esm/{DrcP55cxxwmtG7Uh.mjs → BSnuHCp8R4gzBsZA.mjs} +1 -1
  76. package/node/esm/{BmzTjZEMiIi2QZIs.mjs → BbQX4MpLrHogjIO0.mjs} +1 -1
  77. package/node/esm/{CyJTPCg49Ayb10Cc.mjs → Bhym4SzVTJR0B61a.mjs} +1 -1
  78. package/node/esm/{BYbj39ttSAs0ZbP5.mjs → BquM1HlO6nCaeqo3.mjs} +1 -1
  79. package/node/esm/{CyGm4o8Xmfc3zuf2.mjs → BsdQH_7MI6jpSeGq.mjs} +1 -1
  80. package/node/esm/{DLttoMNI6LnfLYIB.mjs → BzdrCwwgJ3LT0nfe.mjs} +2 -2
  81. package/node/esm/{DlAY6wqiiIdu-6y8.mjs → C01AdTysvVV6hnpy.mjs} +1 -1
  82. package/{browser/esm/5OOhquvuSSvB_Sz_.mjs → node/esm/C2XeDZj8hdC7WPUL.mjs} +1 -1
  83. package/node/esm/{BBD0A_0vMQBc5mWv.mjs → CGABaTHPhNPvsO2v.mjs} +1 -1
  84. package/{browser/esm/CwtNIBfb8cQFnon9.mjs → node/esm/CJmEb7xWWXbcaSmI.mjs} +1 -1
  85. package/node/esm/{BoCo_XZSaWnYUyEw.mjs → CONWoUUdXVH2i25Z.mjs} +1 -1
  86. package/node/esm/{DvbJ0OGEPM6DQezz.mjs → CQ-qWfmZTiIapPNm.mjs} +4 -4
  87. package/node/esm/{C4NjlVoV7QIf6GXJ.mjs → CSGFCD79X4ndi4KV.mjs} +3 -3
  88. package/node/esm/{C-RoZoZhc8t772TX.mjs → CgnsQS-5fcVgccQP.mjs} +1 -1
  89. package/node/esm/{BSRIjPNiFI9MHx6a.mjs → CkI2yCIq4wmEYlj_.mjs} +1 -1
  90. package/node/esm/{03v5sl7XOndtoL-G.mjs → CuRh7xA_-4ufbp8u.mjs} +1 -1
  91. package/node/esm/{DUsv5RuDBTtak99P.mjs → DFOjlTKzMO-CW7tL.mjs} +1 -1
  92. package/{browser/esm/D5KVTjr2EmlbSlqA.mjs → node/esm/DXyTx4X2C_0GWiso.mjs} +1 -1
  93. package/{browser/esm/BuI-yMlpUfw49Oow.mjs → node/esm/EbOsqozZ3FWroWJs.mjs} +1 -1
  94. package/{browser/esm/DWBtRi2bSzC5jB9g.mjs → node/esm/Yt3HOCOZBjGtI7QD.mjs} +1 -1
  95. package/node/esm/{DmwpX7Xjg27xsk_1.mjs → frm_AlHnhYKXLrXK.mjs} +1 -1
  96. package/node/esm/{DDGFRI84LyOAkEas.mjs → i9KmpbPPZRZrL2xc.mjs} +1 -1
  97. package/node/esm/{Cn0XhtLpVXC_K8BX.mjs → iaaJK6oLk2cMkgjS.mjs} +2 -2
  98. package/node/esm/index.mjs +377 -331
  99. package/{browser/esm/DL2DtlHAUZJnDDoc.mjs → node/esm/mzOjQg3fTljDRFI3.mjs} +1 -1
  100. package/node/esm/{DRS_JwYa09Hf895m.mjs → o9Gnxb8s9qaKAQdm.mjs} +2 -2
  101. package/node/esm/{ss0E0ImKqaM9PLnb.mjs → pNix-zdU8Y4aqU1z.mjs} +1 -1
  102. package/package.json +4 -4
  103. package/types/index.d.ts +31 -4
  104. package/types/scripting.d.ts +35 -6
  105. package/browser/cjs/qaXx7XlwJvmixvMF.cjs +0 -60
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.7
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.8
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.4.7
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.8
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.
@@ -802,7 +802,7 @@ const xt = Object.freeze({ compileTypescript: async function(t5) {
802
802
  if (St && Y.deepEqual(St, t5)) return Et;
803
803
  const e2 = await async function() {
804
804
  if (vt) return vt;
805
- const { TypeScriptCompiler: t6 } = await import("./Cn0XhtLpVXC_K8BX.mjs");
805
+ const { TypeScriptCompiler: t6 } = await import("./iaaJK6oLk2cMkgjS.mjs");
806
806
  return vt = new t6(), vt;
807
807
  }(), r2 = await e2.compileModule(t5);
808
808
  return Et = r2, St = t5, r2;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.7
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.8
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.7",
4
+ "version": "0.4.8",
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.7",
35
- "@sheetxl/scripting": "^0.4.7",
36
- "@sheetxl/utils": "^0.4.7",
34
+ "@sheetxl/primitives": "^0.4.8",
35
+ "@sheetxl/scripting": "^0.4.8",
36
+ "@sheetxl/utils": "^0.4.8",
37
37
  "bahttext": "^2.3.0",
38
38
  "bessel": "^1.0.2",
39
39
  "chalk": "^5.4.1",
package/types/index.d.ts CHANGED
@@ -1040,7 +1040,8 @@ declare class DefaultProtection<T, P extends IProtection.Properties, J extends I
1040
1040
  protected _password: Partial<IProtection.EncryptedPassword>;
1041
1041
  protected _identities: IProtection.IdentityProvider[];
1042
1042
  protected _properties: Partial<P>;
1043
- constructor(json?: J);
1043
+ protected _isReadOnly: boolean;
1044
+ constructor(json?: J, isReadOnly?: boolean);
1044
1045
  /** {@inheritDoc IProtection.lock} */
1045
1046
  lock(properties?: Partial<P>, password?: string, algorithm?: string, spinCount?: number): Promise<IProtection<T, P, J>>;
1046
1047
  /** {@inheritDoc IProtection.unlock} */
@@ -1053,8 +1054,12 @@ declare class DefaultProtection<T, P extends IProtection.Properties, J extends I
1053
1054
  pause(password?: string): Promise<IProtection<T, P, J>>;
1054
1055
  /** {@inheritDoc IProtection.resume} */
1055
1056
  resume(): IProtection<T, P, J>;
1057
+ /** {@inheritDoc IProtection.isPaused} */
1056
1058
  isPaused(): boolean;
1059
+ /** {@inheritDoc IProtection.isLocked} */
1057
1060
  isLocked(): boolean;
1061
+ /** {@inheritDoc IProtection.isReadOnly} */
1062
+ isReadOnly(): boolean;
1058
1063
  protected _validatePassword(password?: string): Promise<boolean>;
1059
1064
  getProperties(): Partial<P>;
1060
1065
  protected _isPropertyAllowed(property: keyof P): boolean;
@@ -3220,10 +3225,12 @@ export declare interface ICell {
3220
3225
  /**
3221
3226
  * Returns the cell's value as a formatted string, applying any number formatting.
3222
3227
  *
3228
+ * @param numFmt A custom number format to apply (optional).
3229
+ *
3223
3230
  * @see
3224
3231
  * {@link toTextUnformatted}
3225
3232
  */
3226
- toText(): string;
3233
+ toText(numFmt?: string): string;
3227
3234
  /**
3228
3235
  * Returns the cell's value as an unformatted string.
3229
3236
  *
@@ -3723,6 +3730,15 @@ export declare interface ICellContainerOptions {
3723
3730
  * @defaultValue false
3724
3731
  */
3725
3732
  date1904?: boolean;
3733
+ /**
3734
+ * If `true` then the model is readonly and cannot be save.
3735
+ *
3736
+ * @defaultValue false
3737
+ *
3738
+ * @remarks
3739
+ * Useful when you want to load a model for viewing only and prevent any accidental changes.
3740
+ */
3741
+ readonly?: boolean;
3726
3742
  }
3727
3743
 
3728
3744
  /**
@@ -10392,6 +10408,10 @@ export declare namespace INamedCollection {
10392
10408
  * A transaction store that can be used to undo/redo changes to the names.
10393
10409
  */
10394
10410
  transactions?: ITransaction.IStore;
10411
+ /**
10412
+ * If the collection is readonly.
10413
+ */
10414
+ isReadOnly?: () => boolean;
10395
10415
  /**
10396
10416
  * JSON state to load.
10397
10417
  */
@@ -10868,6 +10888,13 @@ export declare interface IProtection<T, P extends IProtection.Properties, J exte
10868
10888
  * @returns `true` if the object is locked but paused, `false` otherwise.
10869
10889
  */
10870
10890
  isPaused(): boolean;
10891
+ /**
10892
+ * If the element is protected as readonly.
10893
+ *
10894
+ * @remarks
10895
+ * Readonly is set cannot be changed.
10896
+ */
10897
+ isReadOnly(): boolean;
10871
10898
  /**
10872
10899
  * Add Listeners.
10873
10900
  *
@@ -18323,7 +18350,6 @@ export declare class Sheet implements ISheet {
18323
18350
  protected _rowHeadersRemoveListener: IListener.Remove;
18324
18351
  protected _emptyCell: ICell;
18325
18352
  protected _cellOptions: SheetCellOptions;
18326
- protected _initialized: boolean;
18327
18353
  protected _closed: boolean;
18328
18354
  protected _defaultColWidthCache: number;
18329
18355
  protected _defaultRowHeightCache: number;
@@ -20441,6 +20467,8 @@ export declare class Workbook implements IWorkbook {
20441
20467
  protected _transactionsRemoveListener: IListener.Remove;
20442
20468
  protected _lastTransactionUUID: string;
20443
20469
  protected _starting: Promise<void>;
20470
+ protected _closed: boolean;
20471
+ protected _initializing: boolean;
20444
20472
  protected _emitter: ListenerEmitter<IWorkbook, IWorkbook.IListeners>;
20445
20473
  protected _scripts: IScript;
20446
20474
  protected _theme: ITheme;
@@ -20464,7 +20492,6 @@ export declare class Workbook implements IWorkbook {
20464
20492
  protected _listenerProtection: IListener.Remove;
20465
20493
  protected _listenerWorkbookView: IListener.Remove;
20466
20494
  protected _isDate1904: boolean;
20467
- protected _closed: boolean;
20468
20495
  constructor(options?: IWorkbook.ConstructorOptions);
20469
20496
  protected _initState(): void;
20470
20497
  /** {@inheritDoc IWorkbook.getView} */
@@ -8577,6 +8577,10 @@ declare module "named/INamedCollection" {
8577
8577
  * A transaction store that can be used to undo/redo changes to the names.
8578
8578
  */
8579
8579
  transactions?: ITransaction.IStore;
8580
+ /**
8581
+ * If the collection is readonly.
8582
+ */
8583
+ isReadOnly?: () => boolean;
8580
8584
  /**
8581
8585
  * JSON state to load.
8582
8586
  */
@@ -14601,6 +14605,13 @@ declare module "protection/IProtection" {
14601
14605
  * @returns `true` if the object is locked but paused, `false` otherwise.
14602
14606
  */
14603
14607
  isPaused(): boolean;
14608
+ /**
14609
+ * If the element is protected as readonly.
14610
+ *
14611
+ * @remarks
14612
+ * Readonly is set cannot be changed.
14613
+ */
14614
+ isReadOnly(): boolean;
14604
14615
  /**
14605
14616
  * Add Listeners.
14606
14617
  *
@@ -14899,6 +14910,15 @@ declare module "sheet/ICellContainerOptions" {
14899
14910
  * @defaultValue false
14900
14911
  */
14901
14912
  date1904?: boolean;
14913
+ /**
14914
+ * If `true` then the model is readonly and cannot be save.
14915
+ *
14916
+ * @defaultValue false
14917
+ *
14918
+ * @remarks
14919
+ * Useful when you want to load a model for viewing only and prevent any accidental changes.
14920
+ */
14921
+ readonly?: boolean;
14902
14922
  }
14903
14923
  }
14904
14924
  declare module "conditional/IConditionalFormatCollection" {
@@ -16424,6 +16444,7 @@ declare module "address/_AddressMessages" {
16424
16444
  }
16425
16445
  declare module "sheet/_SheetMessages" {
16426
16446
  export const ERROR_INVALID_ARGS = "The arguments are not valid.";
16447
+ export const ERROR_READONLY_SHEET: (description?: string) => string;
16427
16448
  export const ERROR_PROTECTED_SHEET = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.";
16428
16449
  export const ERROR_PROTECTED_FIELD: (description?: string) => string;
16429
16450
  export const ERROR_OOB_RANGE = "The range is outside of the bounds of the sheet.";
@@ -17966,7 +17987,7 @@ declare module "sheet/SheetCell" {
17966
17987
  /** {@inheritDoc ICell.toDate} */
17967
17988
  toDate(): Date | null;
17968
17989
  /** {@inheritDoc ICell.toText} */
17969
- toText(): string;
17990
+ toText(numFmt?: string): string;
17970
17991
  /** {@inheritDoc ICell.toTextUnformatted} */
17971
17992
  toTextUnformatted(showFormula?: boolean): string;
17972
17993
  /** {@inheritDoc ICell.getComments} */
@@ -23987,10 +24008,12 @@ declare module "cell/ICell" {
23987
24008
  /**
23988
24009
  * Returns the cell's value as a formatted string, applying any number formatting.
23989
24010
  *
24011
+ * @param numFmt A custom number format to apply (optional).
24012
+ *
23990
24013
  * @see
23991
24014
  * {@link toTextUnformatted}
23992
24015
  */
23993
- toText(): string;
24016
+ toText(numFmt?: string): string;
23994
24017
  /**
23995
24018
  * Returns the cell's value as an unformatted string.
23996
24019
  *
@@ -29865,6 +29888,7 @@ declare module "named/_NamedMessages" {
29865
29888
  export const ERROR_INVALID_SPECIAL_R_C = "Name can not be 'r' or 'c'.";
29866
29889
  export const ERROR_INVALID_INVALID_CELL_ADDRESS = "Name can not be an address.";
29867
29890
  export const ERROR_NAME_EXISTS: (name: string, scope?: string) => string;
29891
+ export const ERROR_NAME_READONLY = "Names are read-only.";
29868
29892
  export const ERROR_NAME_DOES_NOT_EXIST: (name: string) => string;
29869
29893
  }
29870
29894
  declare module "named/NamedCollection" {
@@ -31779,7 +31803,8 @@ declare module "protection/DefaultProtection" {
31779
31803
  protected _password: Partial<IProtection.EncryptedPassword>;
31780
31804
  protected _identities: IProtection.IdentityProvider[];
31781
31805
  protected _properties: Partial<P>;
31782
- constructor(json?: J);
31806
+ protected _isReadOnly: boolean;
31807
+ constructor(json?: J, isReadOnly?: boolean);
31783
31808
  /** {@inheritDoc IProtection.lock} */
31784
31809
  lock(properties?: Partial<P>, password?: string, algorithm?: string, spinCount?: number): Promise<IProtection<T, P, J>>;
31785
31810
  /** {@inheritDoc IProtection.unlock} */
@@ -31792,8 +31817,12 @@ declare module "protection/DefaultProtection" {
31792
31817
  pause(password?: string): Promise<IProtection<T, P, J>>;
31793
31818
  /** {@inheritDoc IProtection.resume} */
31794
31819
  resume(): IProtection<T, P, J>;
31820
+ /** {@inheritDoc IProtection.isPaused} */
31795
31821
  isPaused(): boolean;
31822
+ /** {@inheritDoc IProtection.isLocked} */
31796
31823
  isLocked(): boolean;
31824
+ /** {@inheritDoc IProtection.isReadOnly} */
31825
+ isReadOnly(): boolean;
31797
31826
  protected _validatePassword(password?: string): Promise<boolean>;
31798
31827
  getProperties(): Partial<P>;
31799
31828
  protected _isPropertyAllowed(property: keyof P): boolean;
@@ -32427,7 +32456,6 @@ declare module "sheet/Sheet" {
32427
32456
  protected _rowHeadersRemoveListener: IListener.Remove;
32428
32457
  protected _emptyCell: ICell;
32429
32458
  protected _cellOptions: SheetCellOptions;
32430
- protected _initialized: boolean;
32431
32459
  protected _closed: boolean;
32432
32460
  protected _defaultColWidthCache: number;
32433
32461
  protected _defaultRowHeightCache: number;
@@ -32456,7 +32484,7 @@ declare module "sheet/Sheet" {
32456
32484
  /** @internal */
32457
32485
  protected _createRangeError(address: ICellRanges.Address): Error;
32458
32486
  /** @internal */
32459
- protected _protectionCheck(check?: ProtectionCheck, coords?: Readonly<IRange.Coords> | readonly IRange.Coords[]): void;
32487
+ protected _protectionCheck(check?: ProtectionCheck, coords?: Readonly<IRange.Coords> | readonly IRange.Coords[], action?: string): void;
32460
32488
  /**
32461
32489
  * Returns an array of ranges.
32462
32490
  *
@@ -33879,6 +33907,8 @@ declare module "workbook/Workbook" {
33879
33907
  protected _transactionsRemoveListener: IListener.Remove;
33880
33908
  protected _lastTransactionUUID: string;
33881
33909
  protected _starting: Promise<void>;
33910
+ protected _closed: boolean;
33911
+ protected _initializing: boolean;
33882
33912
  protected _emitter: ListenerEmitter<IWorkbook, IWorkbook.IListeners>;
33883
33913
  protected _scripts: IScript;
33884
33914
  protected _theme: ITheme;
@@ -33902,7 +33932,6 @@ declare module "workbook/Workbook" {
33902
33932
  protected _listenerProtection: IListener.Remove;
33903
33933
  protected _listenerWorkbookView: IListener.Remove;
33904
33934
  protected _isDate1904: boolean;
33905
- protected _closed: boolean;
33906
33935
  constructor(options?: IWorkbook.ConstructorOptions);
33907
33936
  protected _initState(): void;
33908
33937
  /** {@inheritDoc IWorkbook.getView} */