@types/office-js 1.0.319 → 1.0.320
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.
- office-js/README.md +1 -1
- office-js/index.d.ts +142 -25
- office-js/package.json +2 -2
office-js/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 17 Apr 2023 19:02:43 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -23542,6 +23542,13 @@ declare namespace Excel {
|
|
|
23542
23542
|
*/
|
|
23543
23543
|
linkedEntity = "LinkedEntity",
|
|
23544
23544
|
/**
|
|
23545
|
+
* Represents a `LocalImageCellValue`.
|
|
23546
|
+
*
|
|
23547
|
+
* @remarks
|
|
23548
|
+
* [Api set: ExcelApi 1.16]
|
|
23549
|
+
*/
|
|
23550
|
+
localImage = "LocalImage",
|
|
23551
|
+
/**
|
|
23545
23552
|
* Represents a `ReferenceCellValue`.
|
|
23546
23553
|
*
|
|
23547
23554
|
* @remarks
|
|
@@ -24397,7 +24404,14 @@ declare namespace Excel {
|
|
|
24397
24404
|
* @remarks
|
|
24398
24405
|
* [Api set: ExcelApi 1.16]
|
|
24399
24406
|
*/
|
|
24400
|
-
dataProviderError = "DataProviderError"
|
|
24407
|
+
dataProviderError = "DataProviderError",
|
|
24408
|
+
/**
|
|
24409
|
+
* An error caused by a missing file. In this case, the RichValueRel.xml file is missing from the metro package. Displays as error type #FIELD! in Excel.
|
|
24410
|
+
*
|
|
24411
|
+
* @remarks
|
|
24412
|
+
* [Api set: 1.16]
|
|
24413
|
+
*/
|
|
24414
|
+
richValueRelMissingFilePart = "RichValueRelMissingFilePart"
|
|
24401
24415
|
}
|
|
24402
24416
|
/**
|
|
24403
24417
|
* Represents the value of a cell containing a #FIELD! error.
|
|
@@ -24442,7 +24456,7 @@ declare namespace Excel {
|
|
|
24442
24456
|
* @remarks
|
|
24443
24457
|
* [Api set: ExcelApi 1.16]
|
|
24444
24458
|
*/
|
|
24445
|
-
errorSubType?: FieldErrorCellValueSubType | "Unknown" | "WebImageMissingFilePart" | "DataProviderError";
|
|
24459
|
+
errorSubType?: FieldErrorCellValueSubType | "Unknown" | "WebImageMissingFilePart" | "DataProviderError" | "RichValueRelMissingFilePart";
|
|
24446
24460
|
/**
|
|
24447
24461
|
* Represents the field which was not found by FIELDVALUE.
|
|
24448
24462
|
*
|
|
@@ -26275,42 +26289,42 @@ declare namespace Excel {
|
|
|
26275
26289
|
as a result of that primary move.
|
|
26276
26290
|
*
|
|
26277
26291
|
* @remarks
|
|
26278
|
-
* [Api set:
|
|
26292
|
+
* [Api set: ExcelApi 1.17]
|
|
26279
26293
|
*/
|
|
26280
26294
|
interface WorksheetMovedEventArgs {
|
|
26281
26295
|
/**
|
|
26282
26296
|
* Gets the new position of the worksheet, after the move.
|
|
26283
26297
|
*
|
|
26284
26298
|
* @remarks
|
|
26285
|
-
* [Api set:
|
|
26299
|
+
* [Api set: ExcelApi 1.17]
|
|
26286
26300
|
*/
|
|
26287
26301
|
positionAfter: number;
|
|
26288
26302
|
/**
|
|
26289
26303
|
* Gets the previous position of the worksheet, prior to the move.
|
|
26290
26304
|
*
|
|
26291
26305
|
* @remarks
|
|
26292
|
-
* [Api set:
|
|
26306
|
+
* [Api set: ExcelApi 1.17]
|
|
26293
26307
|
*/
|
|
26294
26308
|
positionBefore: number;
|
|
26295
26309
|
/**
|
|
26296
26310
|
* The source of the event. It can be local or remote (through co-authoring).
|
|
26297
26311
|
*
|
|
26298
26312
|
* @remarks
|
|
26299
|
-
* [Api set:
|
|
26313
|
+
* [Api set: ExcelApi 1.17]
|
|
26300
26314
|
*/
|
|
26301
26315
|
source: Excel.EventSource | "Local" | "Remote";
|
|
26302
26316
|
/**
|
|
26303
26317
|
* Gets the type of the event.
|
|
26304
26318
|
*
|
|
26305
26319
|
* @remarks
|
|
26306
|
-
* [Api set:
|
|
26320
|
+
* [Api set: ExcelApi 1.17]
|
|
26307
26321
|
*/
|
|
26308
26322
|
type: string;
|
|
26309
26323
|
/**
|
|
26310
26324
|
* Gets the ID of the worksheet that was moved.
|
|
26311
26325
|
*
|
|
26312
26326
|
* @remarks
|
|
26313
|
-
* [Api set:
|
|
26327
|
+
* [Api set: ExcelApi 1.17]
|
|
26314
26328
|
*/
|
|
26315
26329
|
worksheetId: string;
|
|
26316
26330
|
}
|
|
@@ -26318,42 +26332,42 @@ declare namespace Excel {
|
|
|
26318
26332
|
* Provides information about the worksheet whose name has changed.
|
|
26319
26333
|
*
|
|
26320
26334
|
* @remarks
|
|
26321
|
-
* [Api set:
|
|
26335
|
+
* [Api set: ExcelApi 1.17]
|
|
26322
26336
|
*/
|
|
26323
26337
|
interface WorksheetNameChangedEventArgs {
|
|
26324
26338
|
/**
|
|
26325
26339
|
* Gets the new name of the worksheet, after the name change.
|
|
26326
26340
|
*
|
|
26327
26341
|
* @remarks
|
|
26328
|
-
* [Api set:
|
|
26342
|
+
* [Api set: ExcelApi 1.17]
|
|
26329
26343
|
*/
|
|
26330
26344
|
nameAfter: string;
|
|
26331
26345
|
/**
|
|
26332
26346
|
* Gets the previous name of the worksheet, before the name changed.
|
|
26333
26347
|
*
|
|
26334
26348
|
* @remarks
|
|
26335
|
-
* [Api set:
|
|
26349
|
+
* [Api set: ExcelApi 1.17]
|
|
26336
26350
|
*/
|
|
26337
26351
|
nameBefore: string;
|
|
26338
26352
|
/**
|
|
26339
26353
|
* The source of the event. It can be local or remote (through co-authoring).
|
|
26340
26354
|
*
|
|
26341
26355
|
* @remarks
|
|
26342
|
-
* [Api set:
|
|
26356
|
+
* [Api set: ExcelApi 1.17]
|
|
26343
26357
|
*/
|
|
26344
26358
|
source: Excel.EventSource | "Local" | "Remote";
|
|
26345
26359
|
/**
|
|
26346
26360
|
* Gets the type of the event.
|
|
26347
26361
|
*
|
|
26348
26362
|
* @remarks
|
|
26349
|
-
* [Api set:
|
|
26363
|
+
* [Api set: ExcelApi 1.17]
|
|
26350
26364
|
*/
|
|
26351
26365
|
type: string;
|
|
26352
26366
|
/**
|
|
26353
26367
|
* Gets the ID of the worksheet with the new name.
|
|
26354
26368
|
*
|
|
26355
26369
|
* @remarks
|
|
26356
|
-
* [Api set:
|
|
26370
|
+
* [Api set: ExcelApi 1.17]
|
|
26357
26371
|
*/
|
|
26358
26372
|
worksheetId: string;
|
|
26359
26373
|
}
|
|
@@ -26361,42 +26375,42 @@ declare namespace Excel {
|
|
|
26361
26375
|
* Provides information about the worksheet whose visibility has changed.
|
|
26362
26376
|
*
|
|
26363
26377
|
* @remarks
|
|
26364
|
-
* [Api set:
|
|
26378
|
+
* [Api set: ExcelApi 1.17]
|
|
26365
26379
|
*/
|
|
26366
26380
|
interface WorksheetVisibilityChangedEventArgs {
|
|
26367
26381
|
/**
|
|
26368
26382
|
* The source of the event. It can be local or remote (through co-authoring).
|
|
26369
26383
|
*
|
|
26370
26384
|
* @remarks
|
|
26371
|
-
* [Api set:
|
|
26385
|
+
* [Api set: ExcelApi 1.17]
|
|
26372
26386
|
*/
|
|
26373
26387
|
source: Excel.EventSource | "Local" | "Remote";
|
|
26374
26388
|
/**
|
|
26375
26389
|
* Gets the type of the event.
|
|
26376
26390
|
*
|
|
26377
26391
|
* @remarks
|
|
26378
|
-
* [Api set:
|
|
26392
|
+
* [Api set: ExcelApi 1.17]
|
|
26379
26393
|
*/
|
|
26380
26394
|
type: string;
|
|
26381
26395
|
/**
|
|
26382
26396
|
* Gets the new visibility setting of the worksheet, after the visibility change.
|
|
26383
26397
|
*
|
|
26384
26398
|
* @remarks
|
|
26385
|
-
* [Api set:
|
|
26399
|
+
* [Api set: ExcelApi 1.17]
|
|
26386
26400
|
*/
|
|
26387
26401
|
visibilityAfter: Excel.SheetVisibility | "Visible" | "Hidden" | "VeryHidden";
|
|
26388
26402
|
/**
|
|
26389
26403
|
* Gets the previous visibility setting of the worksheet, before the visibility change.
|
|
26390
26404
|
*
|
|
26391
26405
|
* @remarks
|
|
26392
|
-
* [Api set:
|
|
26406
|
+
* [Api set: ExcelApi 1.17]
|
|
26393
26407
|
*/
|
|
26394
26408
|
visibilityBefore: Excel.SheetVisibility | "Visible" | "Hidden" | "VeryHidden";
|
|
26395
26409
|
/**
|
|
26396
26410
|
* Gets the ID of the worksheet whose visibility has changed.
|
|
26397
26411
|
*
|
|
26398
26412
|
* @remarks
|
|
26399
|
-
* [Api set:
|
|
26413
|
+
* [Api set: ExcelApi 1.17]
|
|
26400
26414
|
*/
|
|
26401
26415
|
worksheetId: string;
|
|
26402
26416
|
}
|
|
@@ -30054,7 +30068,7 @@ declare namespace Excel {
|
|
|
30054
30068
|
* Occurs when the worksheet name is changed.
|
|
30055
30069
|
*
|
|
30056
30070
|
* @remarks
|
|
30057
|
-
* [Api set:
|
|
30071
|
+
* [Api set: ExcelApi 1.17]
|
|
30058
30072
|
*
|
|
30059
30073
|
* @eventproperty
|
|
30060
30074
|
*/
|
|
@@ -30112,7 +30126,7 @@ declare namespace Excel {
|
|
|
30112
30126
|
* Occurs when the worksheet visibility is changed.
|
|
30113
30127
|
*
|
|
30114
30128
|
* @remarks
|
|
30115
|
-
* [Api set:
|
|
30129
|
+
* [Api set: ExcelApi 1.17]
|
|
30116
30130
|
*
|
|
30117
30131
|
* @eventproperty
|
|
30118
30132
|
*/
|
|
@@ -30299,7 +30313,7 @@ declare namespace Excel {
|
|
|
30299
30313
|
* Occurs when a worksheet is moved within a workbook. This event only triggers when a worksheet is directly moved within a workbook. This event doesn't trigger when the position of a worksheet is indirectly changed, such as when a new worksheet is inserted and causes existing worksheets to change positions.
|
|
30300
30314
|
*
|
|
30301
30315
|
* @remarks
|
|
30302
|
-
* [Api set:
|
|
30316
|
+
* [Api set: ExcelApi 1.17]
|
|
30303
30317
|
*
|
|
30304
30318
|
* @eventproperty
|
|
30305
30319
|
*/
|
|
@@ -30308,7 +30322,7 @@ declare namespace Excel {
|
|
|
30308
30322
|
* Occurs when the worksheet name is changed in the worksheet collection.
|
|
30309
30323
|
*
|
|
30310
30324
|
* @remarks
|
|
30311
|
-
* [Api set:
|
|
30325
|
+
* [Api set: ExcelApi 1.17]
|
|
30312
30326
|
*
|
|
30313
30327
|
* @eventproperty
|
|
30314
30328
|
*/
|
|
@@ -30364,7 +30378,7 @@ declare namespace Excel {
|
|
|
30364
30378
|
* Occurs when the worksheet visibility is changed in the worksheet collection.
|
|
30365
30379
|
*
|
|
30366
30380
|
* @remarks
|
|
30367
|
-
* [Api set:
|
|
30381
|
+
* [Api set: ExcelApi 1.17]
|
|
30368
30382
|
*
|
|
30369
30383
|
* @eventproperty
|
|
30370
30384
|
*/
|
|
@@ -40727,6 +40741,13 @@ declare namespace Excel {
|
|
|
40727
40741
|
class NumberFormatInfo extends OfficeExtension.ClientObject {
|
|
40728
40742
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
40729
40743
|
context: RequestContext;
|
|
40744
|
+
/**
|
|
40745
|
+
* Gets the currency symbol for currency values. This is based on current system settings.
|
|
40746
|
+
*
|
|
40747
|
+
* @remarks
|
|
40748
|
+
* [Api set: ExcelApi 1.17]
|
|
40749
|
+
*/
|
|
40750
|
+
readonly currencySymbol: string;
|
|
40730
40751
|
/**
|
|
40731
40752
|
* Gets the string used as the decimal separator for numeric values. This is based on current system settings.
|
|
40732
40753
|
*
|
|
@@ -43677,6 +43698,72 @@ declare namespace Excel {
|
|
|
43677
43698
|
set(properties: Interfaces.ConditionalFormatUpdateData, options?: OfficeExtension.UpdateOptions): void;
|
|
43678
43699
|
/** Sets multiple properties on the object at the same time, based on an existing loaded object. */
|
|
43679
43700
|
set(properties: Excel.ConditionalFormat): void;
|
|
43701
|
+
/**
|
|
43702
|
+
* Change the conditional format rule type to cell value.
|
|
43703
|
+
*
|
|
43704
|
+
* @remarks
|
|
43705
|
+
* [Api set: ExcelApi 1.17]
|
|
43706
|
+
*
|
|
43707
|
+
* @param properties The properties to set for the cell value conditional format rule.
|
|
43708
|
+
*/
|
|
43709
|
+
changeRuleToCellValue(properties: Excel.ConditionalCellValueRule): void;
|
|
43710
|
+
/**
|
|
43711
|
+
* Change the conditional format rule type to color scale.
|
|
43712
|
+
*
|
|
43713
|
+
* @remarks
|
|
43714
|
+
* [Api set: ExcelApi 1.17]
|
|
43715
|
+
*/
|
|
43716
|
+
changeRuleToColorScale(): void;
|
|
43717
|
+
/**
|
|
43718
|
+
* Change the conditional format rule type to text comparison.
|
|
43719
|
+
*
|
|
43720
|
+
* @remarks
|
|
43721
|
+
* [Api set: ExcelApi 1.17]
|
|
43722
|
+
*
|
|
43723
|
+
* @param properties The properties to set for the text comparison conditional format rule.
|
|
43724
|
+
*/
|
|
43725
|
+
changeRuleToContainsText(properties: Excel.ConditionalTextComparisonRule): void;
|
|
43726
|
+
/**
|
|
43727
|
+
* Change the conditional format rule type to custom.
|
|
43728
|
+
*
|
|
43729
|
+
* @remarks
|
|
43730
|
+
* [Api set: ExcelApi 1.17]
|
|
43731
|
+
*
|
|
43732
|
+
* @param formula The formula to set for the custom conditional format rule.
|
|
43733
|
+
*/
|
|
43734
|
+
changeRuleToCustom(formula: string): void;
|
|
43735
|
+
/**
|
|
43736
|
+
* Change the conditional format rule type to data bar.
|
|
43737
|
+
*
|
|
43738
|
+
* @remarks
|
|
43739
|
+
* [Api set: ExcelApi 1.17]
|
|
43740
|
+
*/
|
|
43741
|
+
changeRuleToDataBar(): void;
|
|
43742
|
+
/**
|
|
43743
|
+
* Change the conditional format rule type to icon set.
|
|
43744
|
+
*
|
|
43745
|
+
* @remarks
|
|
43746
|
+
* [Api set: ExcelApi 1.17]
|
|
43747
|
+
*/
|
|
43748
|
+
changeRuleToIconSet(): void;
|
|
43749
|
+
/**
|
|
43750
|
+
* Change the conditional format rule type to preset criteria.
|
|
43751
|
+
*
|
|
43752
|
+
* @remarks
|
|
43753
|
+
* [Api set: ExcelApi 1.17]
|
|
43754
|
+
*
|
|
43755
|
+
* @param properties The properties to set for the preset criteria conditional format rule.
|
|
43756
|
+
*/
|
|
43757
|
+
changeRuleToPresetCriteria(properties: Excel.ConditionalPresetCriteriaRule): void;
|
|
43758
|
+
/**
|
|
43759
|
+
* Change the conditional format rule type to top/bottom.
|
|
43760
|
+
*
|
|
43761
|
+
* @remarks
|
|
43762
|
+
* [Api set: ExcelApi 1.17]
|
|
43763
|
+
*
|
|
43764
|
+
* @param properties The properties to set for the top/bottom conditional format rule.
|
|
43765
|
+
*/
|
|
43766
|
+
changeRuleToTopBottom(properties: Excel.ConditionalTopBottomRule): void;
|
|
43680
43767
|
/**
|
|
43681
43768
|
* Deletes this conditional format.
|
|
43682
43769
|
*
|
|
@@ -43706,6 +43793,15 @@ declare namespace Excel {
|
|
|
43706
43793
|
* [Api set: ExcelApi 1.9]
|
|
43707
43794
|
*/
|
|
43708
43795
|
getRanges(): Excel.RangeAreas;
|
|
43796
|
+
/**
|
|
43797
|
+
* Set the ranges that the conditonal format rule is applied to.
|
|
43798
|
+
*
|
|
43799
|
+
* @remarks
|
|
43800
|
+
* [Api set: ExcelApi 1.17]
|
|
43801
|
+
*
|
|
43802
|
+
* @param ranges Collection of one or more ranges for this rule to be applied to.
|
|
43803
|
+
*/
|
|
43804
|
+
setRanges(ranges: Range | RangeAreas | string): void;
|
|
43709
43805
|
/**
|
|
43710
43806
|
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
43711
43807
|
*
|
|
@@ -44710,6 +44806,13 @@ declare namespace Excel {
|
|
|
44710
44806
|
set(properties: Interfaces.ConditionalRangeFormatUpdateData, options?: OfficeExtension.UpdateOptions): void;
|
|
44711
44807
|
/** Sets multiple properties on the object at the same time, based on an existing loaded object. */
|
|
44712
44808
|
set(properties: Excel.ConditionalRangeFormat): void;
|
|
44809
|
+
/**
|
|
44810
|
+
* Remove the format properties from a conditional format rule. This creates a rule with no format settings.
|
|
44811
|
+
*
|
|
44812
|
+
* @remarks
|
|
44813
|
+
* [Api set: ExcelApi 1.17]
|
|
44814
|
+
*/
|
|
44815
|
+
clearFormat(): void;
|
|
44713
44816
|
/**
|
|
44714
44817
|
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
44715
44818
|
*
|
|
@@ -69052,6 +69155,13 @@ declare namespace Excel {
|
|
|
69052
69155
|
}
|
|
69053
69156
|
/** An interface describing the data returned by calling `numberFormatInfo.toJSON()`. */
|
|
69054
69157
|
interface NumberFormatInfoData {
|
|
69158
|
+
/**
|
|
69159
|
+
* Gets the currency symbol for currency values. This is based on current system settings.
|
|
69160
|
+
*
|
|
69161
|
+
* @remarks
|
|
69162
|
+
* [Api set: ExcelApi 1.17]
|
|
69163
|
+
*/
|
|
69164
|
+
currencySymbol?: string;
|
|
69055
69165
|
/**
|
|
69056
69166
|
* Gets the string used as the decimal separator for numeric values. This is based on current system settings.
|
|
69057
69167
|
*
|
|
@@ -77764,6 +77874,13 @@ declare namespace Excel {
|
|
|
77764
77874
|
Specifying `$all` for the LoadOptions loads all the scalar properties (e.g.: `Range.address`) but not the navigational properties (e.g.: `Range.format.fill.color`).
|
|
77765
77875
|
*/
|
|
77766
77876
|
$all?: boolean;
|
|
77877
|
+
/**
|
|
77878
|
+
* Gets the currency symbol for currency values. This is based on current system settings.
|
|
77879
|
+
*
|
|
77880
|
+
* @remarks
|
|
77881
|
+
* [Api set: ExcelApi 1.17]
|
|
77882
|
+
*/
|
|
77883
|
+
currencySymbol?: boolean;
|
|
77767
77884
|
/**
|
|
77768
77885
|
* Gets the string used as the decimal separator for numeric values. This is based on current system settings.
|
|
77769
77886
|
*
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.320",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "68233ff2183b2920776d0879e02630be7f7a29636107932511775953aa3448d5",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|