@sheetxl/sdk 0.4.7 → 0.4.9
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.
- package/browser/cjs/{CTgAiNQSJWKDXtSb.cjs → B-re3P7cjOaJW97v.cjs} +1 -1
- package/browser/cjs/{CpQaIOppX0XX2vDs.cjs → B4xf1YLqOOQ2BAAw.cjs} +1 -1
- package/browser/cjs/{C7jcUOUYJ2X1723F.cjs → BQX47jn1fcYJXavn.cjs} +1 -1
- package/browser/cjs/{CFDfrZYpwJRAnqAR.cjs → BZSt5E8X7SYSVhPs.cjs} +1 -1
- package/browser/cjs/{BWBs6iqfyZ0GsJE4.cjs → B_RNceQBZ8p6fj3Q.cjs} +1 -1
- package/browser/cjs/{DGdXny4PhjplfkC8.cjs → BbwQg7G0IFkXlUYY.cjs} +1 -1
- package/browser/cjs/BjwfHgXl1fEZAU3g.cjs +60 -0
- package/browser/cjs/{Cq8C2sU4L0DDq1nt.cjs → Bm5UJ5gS-Q06VEPK.cjs} +3 -3
- package/browser/cjs/{DCE0ThfupHz4dExl.cjs → C3td5E8SlcrJ5Mv-.cjs} +2 -2
- package/browser/cjs/{DxHxLHgNLyk4kHII.cjs → CGHOtBonLRy9pyo4.cjs} +1 -1
- package/browser/cjs/{6d3bcsuz9iJTDGvt.cjs → CS2JAHasZYfPuOEI.cjs} +1 -1
- package/browser/cjs/{BlL2UupE4BH4n7lH.cjs → CSkIIY8fgAYcsfJ0.cjs} +1 -1
- package/browser/cjs/{rN4aMEc1eBkMR2xM.cjs → CTM9G6roqBNmXvvV.cjs} +1 -1
- package/browser/cjs/{BF03tNf6FACTW2M1.cjs → Cje8OteEkSLIh4eg.cjs} +1 -1
- package/browser/cjs/{CKAWSQ-n6UNHU-hc.cjs → CnRawGcFEjRg8E7W.cjs} +1 -1
- package/browser/cjs/{C8dCjjzUV8qwdDyY.cjs → Cq-KGEktCK47S1ii.cjs} +1 -1
- package/browser/cjs/{DHWkQl03P54-vXOf.cjs → CqczY8H5IIx8Ki4Z.cjs} +1 -1
- package/browser/cjs/{7hsXTISvYl_-AEI4.cjs → DLVyZuPozs2kGRVY.cjs} +1 -1
- package/browser/cjs/{DHgtrwpUI5XOg7d1.cjs → DQtLMWxJks5D1_ut.cjs} +1 -1
- package/browser/cjs/{Dqu2WvbX6a1aE5xC.cjs → DSeBxJODV2wiVBFh.cjs} +1 -1
- package/browser/cjs/{tW5W8i2ldWqC6qS6.cjs → DSx2MKFyVvU32PBX.cjs} +1 -1
- package/browser/cjs/{DBiTStWkvXPR682m.cjs → DlgBYRYQwJb2Cmz0.cjs} +2 -2
- package/browser/cjs/{BqIfUTtyJpRLQeBh.cjs → DmMxyZPbvj8EvAvA.cjs} +1 -1
- package/browser/cjs/{CTaWGldoSi20ppOB.cjs → DxXvv5mYl4GyI4oU.cjs} +2 -2
- package/browser/cjs/{D_Fa302YxFJsewFt.cjs → K35RWj2GxR0lKfCY.cjs} +4 -4
- package/browser/cjs/{BpSDBJvAuyi5MV4H.cjs → L5ui83i8s4hwRnmo.cjs} +1 -1
- package/browser/cjs/{Dbd52SpYjQAQQ5Lc.cjs → Ntd4n6__drNXyV8Q.cjs} +1 -1
- package/browser/cjs/{BJ4lmW1HbLGZjqYu.cjs → OpVs8OmX1WcXQ1RU.cjs} +1 -1
- package/browser/cjs/{DwKQDFaICO4XJiQP.cjs → WZhB_pgRZi4U_oXo.cjs} +1 -1
- package/browser/cjs/{jFKQv7BqosgG5wqZ.cjs → eL9bgEPz6WhChraJ.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DywksQ9WhhEXRisJ.cjs → nRRE57j_GGf6KVD8.cjs} +2 -2
- package/browser/cjs/{DsrvFA9fg9a6po6E.cjs → pPmY7gcYQCH96lE4.cjs} +1 -1
- package/browser/cjs/{C0WJFEDJ-cCWjcBd.cjs → xjh_alRipVqo8cZy.cjs} +4 -4
- package/browser/esm/{CyJTPCg49Ayb10Cc.mjs → -vEyF-b1iAJfL3xp.mjs} +1 -1
- package/{node/esm/DWBtRi2bSzC5jB9g.mjs → browser/esm/225JOcHgUUs1EIBP.mjs} +1 -1
- package/{node/esm/D5KVTjr2EmlbSlqA.mjs → browser/esm/6U_gCZNSSMBtVpQI.mjs} +1 -1
- package/browser/esm/{fIysOOIiYgNN68HE.mjs → 9sdhSM-1zkdTJ6pD.mjs} +2 -2
- package/browser/esm/{C2eLT-S7YabeVmqP.mjs → B5GEE2P8-Fc2ApiM.mjs} +2 -2
- package/browser/esm/{hN_K8NeXpcz4iPIv.mjs → BEWDCb-GzXXALTyM.mjs} +1 -1
- package/browser/esm/{CLLoQxyOJ_Z7Gds5.mjs → BMWawWgFuxMRf1cM.mjs} +1 -1
- package/browser/esm/{03v5sl7XOndtoL-G.mjs → BRW_h-uc47yzfnF7.mjs} +1 -1
- package/browser/esm/{MnEtIp1GtVYvlTrd.mjs → BhPXhyivX9t4qJ2l.mjs} +2 -2
- package/{node/esm/DlqGesRjfLTrJKgg.mjs → browser/esm/Br12zSs0kOLavLkw.mjs} +1 -1
- package/browser/esm/{PHTLYFNEcFRTTZjW.mjs → BsN1Iav913PM0DTb.mjs} +1 -1
- package/browser/esm/{C_DwMCFSMcWnoIwK.mjs → C8aGSiCyYUCLobsp.mjs} +1 -1
- package/{node/esm/BuI-yMlpUfw49Oow.mjs → browser/esm/CT933Kus8lsY5BJ2.mjs} +1 -1
- package/{node/esm/CwtNIBfb8cQFnon9.mjs → browser/esm/CYI5_V7h9SYP9uuu.mjs} +1 -1
- package/browser/esm/{C-RoZoZhc8t772TX.mjs → CatWZ5LT2Nm4rT4U.mjs} +1 -1
- package/browser/esm/{BrAZxLRrSyV8ELMx.mjs → Cu1bjUPEdAVn7e23.mjs} +1 -1
- package/browser/esm/{CxESS_8aLfFd9BEQ.mjs → CydkHy4FDohjJzxv.mjs} +1 -1
- package/browser/esm/{CwIOLGhRJdAkKIOi.mjs → CzRlLyr7iG0quh7r.mjs} +4 -4
- package/browser/esm/{BaLZyV45yCbQaBfM.mjs → DStq39R2rKQKUU7b.mjs} +1 -1
- package/browser/esm/{BqQiq-XS5D-JTJst.mjs → DbT42LuoRjjQ7Rtu.mjs} +3 -3
- package/browser/esm/{L-B0MJe7T_mxt531.mjs → DdU01D1n6S9BZnIr.mjs} +1 -1
- package/{node/esm/5OOhquvuSSvB_Sz_.mjs → browser/esm/De2OxC60SZUNAEyp.mjs} +1 -1
- package/{node/esm/DL2DtlHAUZJnDDoc.mjs → browser/esm/DtJRjSTG45Z8JwZ-.mjs} +1 -1
- package/browser/esm/{ClUbKXbYfZrM1bNQ.mjs → DwOgeqVyZwdrw1FB.mjs} +4327 -4281
- package/browser/esm/{CDUTOpO9dpto60rs.mjs → HTu8yzgCTwbf9HU4.mjs} +2 -2
- package/browser/esm/{BSRIjPNiFI9MHx6a.mjs → LpwVK3fzNuCZJlGb.mjs} +1 -1
- package/browser/esm/{DqYD7Pwq-h0AXxGK.mjs → PC3F5BEQCLQN_a3x.mjs} +1 -1
- package/browser/esm/{DmwpX7Xjg27xsk_1.mjs → P_0pzZ_mRTUIQOo8.mjs} +1 -1
- package/{node/esm/CdrNW0JQ0yB-SxC_.mjs → browser/esm/SwZDnMDw8b9gb6VD.mjs} +1 -1
- package/browser/esm/{DlAY6wqiiIdu-6y8.mjs → _N05nCCXsyDthwPS.mjs} +1 -1
- package/browser/esm/{CO8ll5ptWPRWdrBE.mjs → cthDTk2_8Syhe1Uh.mjs} +1 -1
- package/browser/esm/{B8vhsfmKZSvo8-oA.mjs → eYXmF3L6pehVXEBJ.mjs} +4 -4
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{C87kLt3HvlVAz0bj.mjs → leTtDbQ6871lFfJe.mjs} +1 -1
- package/licenses/dependencies.txt +3 -3
- package/node/esm/{CyJTPCg49Ayb10Cc.mjs → -vEyF-b1iAJfL3xp.mjs} +1 -1
- package/{browser/esm/DWBtRi2bSzC5jB9g.mjs → node/esm/225JOcHgUUs1EIBP.mjs} +1 -1
- package/{browser/esm/D5KVTjr2EmlbSlqA.mjs → node/esm/6U_gCZNSSMBtVpQI.mjs} +1 -1
- package/node/esm/{hN_K8NeXpcz4iPIv.mjs → BEWDCb-GzXXALTyM.mjs} +1 -1
- package/node/esm/{ss0E0ImKqaM9PLnb.mjs → BIsxN-sskhnDr5fG.mjs} +1 -1
- package/node/esm/{BmzTjZEMiIi2QZIs.mjs → BMwuCJEUqdaa7U-p.mjs} +1 -1
- package/node/esm/{03v5sl7XOndtoL-G.mjs → BRW_h-uc47yzfnF7.mjs} +1 -1
- package/{browser/esm/DlqGesRjfLTrJKgg.mjs → node/esm/Br12zSs0kOLavLkw.mjs} +1 -1
- package/{browser/esm/BuI-yMlpUfw49Oow.mjs → node/esm/CT933Kus8lsY5BJ2.mjs} +1 -1
- package/{browser/esm/CwtNIBfb8cQFnon9.mjs → node/esm/CYI5_V7h9SYP9uuu.mjs} +1 -1
- package/node/esm/{C-RoZoZhc8t772TX.mjs → CatWZ5LT2Nm4rT4U.mjs} +1 -1
- package/node/esm/{DLttoMNI6LnfLYIB.mjs → CswjcUAc3OQ1SAwa.mjs} +2 -2
- package/node/esm/{BBD0A_0vMQBc5mWv.mjs → Cu9r1uru0-RQmPlz.mjs} +1 -1
- package/node/esm/{CxESS_8aLfFd9BEQ.mjs → CydkHy4FDohjJzxv.mjs} +1 -1
- package/node/esm/{C4NjlVoV7QIf6GXJ.mjs → D6NZZinV6uCFvvPK.mjs} +3 -3
- package/node/esm/{DrcP55cxxwmtG7Uh.mjs → D8eFLYgEWXBVLJzP.mjs} +1 -1
- package/node/esm/{DDGFRI84LyOAkEas.mjs → DRFDJvGYzZ2y7MNr.mjs} +1 -1
- package/node/esm/{Cn0XhtLpVXC_K8BX.mjs → DU-md5cmoqIFoIRF.mjs} +2 -2
- package/node/esm/{CyGm4o8Xmfc3zuf2.mjs → DYiuMNxXQxzsyogd.mjs} +1 -1
- package/{browser/esm/5OOhquvuSSvB_Sz_.mjs → node/esm/De2OxC60SZUNAEyp.mjs} +1 -1
- package/node/esm/{mDWB8qemoaxtXCCC.mjs → Dfr8q3AEbG7QZ6Xr.mjs} +1 -1
- package/{browser/esm/DL2DtlHAUZJnDDoc.mjs → node/esm/DtJRjSTG45Z8JwZ-.mjs} +1 -1
- package/node/esm/{BoCo_XZSaWnYUyEw.mjs → Dtn71I8yWx6At8T4.mjs} +1 -1
- package/node/esm/{DvbJ0OGEPM6DQezz.mjs → DxQdDzIhBW98FzK0.mjs} +4 -4
- package/node/esm/{BSRIjPNiFI9MHx6a.mjs → LpwVK3fzNuCZJlGb.mjs} +1 -1
- package/node/esm/{DmwpX7Xjg27xsk_1.mjs → P_0pzZ_mRTUIQOo8.mjs} +1 -1
- package/{browser/esm/CdrNW0JQ0yB-SxC_.mjs → node/esm/SwZDnMDw8b9gb6VD.mjs} +1 -1
- package/node/esm/{DUsv5RuDBTtak99P.mjs → V08nP8uFHLrde5Md.mjs} +1 -1
- package/node/esm/{DlAY6wqiiIdu-6y8.mjs → _N05nCCXsyDthwPS.mjs} +1 -1
- package/node/esm/{BYbj39ttSAs0ZbP5.mjs → bLL4P-mQqtHnzf3p.mjs} +1 -1
- package/node/esm/{DRS_JwYa09Hf895m.mjs → bz-ja27axdBXn18A.mjs} +2 -2
- package/node/esm/index.mjs +377 -331
- package/package.json +4 -4
- package/types/index.d.ts +31 -4
- package/types/scripting.d.ts +35 -6
- package/browser/cjs/qaXx7XlwJvmixvMF.cjs +0 -60
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.
|
|
4
|
+
"version": "0.4.9",
|
|
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.
|
|
35
|
-
"@sheetxl/scripting": "^0.4.
|
|
36
|
-
"@sheetxl/utils": "^0.4.
|
|
34
|
+
"@sheetxl/primitives": "^0.4.9",
|
|
35
|
+
"@sheetxl/scripting": "^0.4.9",
|
|
36
|
+
"@sheetxl/utils": "^0.4.9",
|
|
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
|
-
|
|
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} */
|
package/types/scripting.d.ts
CHANGED
|
@@ -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
|
-
|
|
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} */
|