@types/office-js-preview 1.0.380 → 1.0.382
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +305 -64
- office-js-preview/package.json +2 -2
office-js-preview/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-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Thu,
|
|
11
|
+
* Last updated: Thu, 20 Apr 2023 20:32:48 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -10251,15 +10251,12 @@ declare namespace Office {
|
|
|
10251
10251
|
*/
|
|
10252
10252
|
addItemAttachmentAsync(itemId: any, attachmentName: string, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10253
10253
|
/**
|
|
10254
|
-
* Closes the current item that is being composed
|
|
10254
|
+
* Closes the current item that is being composed.
|
|
10255
10255
|
*
|
|
10256
|
-
* The
|
|
10256
|
+
* The behavior of the `close` method depends on the current state of the item being composed.
|
|
10257
10257
|
* If the item has unsaved changes, the client prompts the user to save, discard, or close the action.
|
|
10258
10258
|
*
|
|
10259
|
-
* In the Outlook desktop client,
|
|
10260
|
-
*
|
|
10261
|
-
* **Note**: In Outlook on the web, if the item is an appointment and it has previously been saved using `saveAsync`, the user is prompted to save,
|
|
10262
|
-
* discard, or cancel even if no changes have occurred since the item was last saved.
|
|
10259
|
+
* In the Outlook desktop client, the `close` method has no effect on a reply in the Reading Pane.
|
|
10263
10260
|
*
|
|
10264
10261
|
* @remarks
|
|
10265
10262
|
* [Api set: Mailbox 1.3]
|
|
@@ -10267,6 +10264,9 @@ declare namespace Office {
|
|
|
10267
10264
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
10268
10265
|
*
|
|
10269
10266
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10267
|
+
*
|
|
10268
|
+
* **Important**: In Outlook on the web, if the item is an appointment and it has previously been saved using `saveAsync`, the user is prompted to save,
|
|
10269
|
+
* discard, or cancel even if no changes have occurred since the item was last saved.
|
|
10270
10270
|
*/
|
|
10271
10271
|
close(): void;
|
|
10272
10272
|
/**
|
|
@@ -15569,15 +15569,12 @@ declare namespace Office {
|
|
|
15569
15569
|
*/
|
|
15570
15570
|
addItemAttachmentAsync(itemId: any, attachmentName: string, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15571
15571
|
/**
|
|
15572
|
-
* Closes the current item that is being composed
|
|
15572
|
+
* Closes the current item that is being composed.
|
|
15573
15573
|
*
|
|
15574
|
-
* The
|
|
15574
|
+
* The behavior of the `close` method depends on the current state of the item being composed.
|
|
15575
15575
|
* If the item has unsaved changes, the client prompts the user to save, discard, or close the action.
|
|
15576
15576
|
*
|
|
15577
|
-
* In the Outlook desktop client,
|
|
15578
|
-
*
|
|
15579
|
-
* **Note**: In Outlook on the web, if the item is an appointment and it has previously been saved using `saveAsync`, the user is prompted to save,
|
|
15580
|
-
* discard, or cancel even if no changes have occurred since the item was last saved.
|
|
15577
|
+
* In the Outlook desktop client, the `close` method has no effect on a reply in the Reading Pane.
|
|
15581
15578
|
*
|
|
15582
15579
|
* @remarks
|
|
15583
15580
|
* [Api set: Mailbox 1.3]
|
|
@@ -15585,8 +15582,83 @@ declare namespace Office {
|
|
|
15585
15582
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
15586
15583
|
*
|
|
15587
15584
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15585
|
+
*
|
|
15586
|
+
* **Important**: In Outlook on the web, if the item is an appointment and it has previously been saved using `saveAsync`, the user is prompted to save,
|
|
15587
|
+
* discard, or cancel even if no changes have occurred since the item was last saved.
|
|
15588
|
+
*
|
|
15589
|
+
* **Tip**: Use the
|
|
15590
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.messagecompose?view=outlook-js-preview&preserve-view=true#outlook-office-messagecompose-closeasync-member(1) | closeAsync}
|
|
15591
|
+
* method instead of the `close` method if you want your add-in to:
|
|
15592
|
+
*
|
|
15593
|
+
* - Automatically discard a message being composed without prompting the user with the save dialog.
|
|
15594
|
+
*
|
|
15595
|
+
* - Determine when a user cancels the save item dialog on a message being composed.
|
|
15596
|
+
*
|
|
15597
|
+
* - Close a reply in the Reading Pane or an existing draft from an Outlook desktop client.
|
|
15598
|
+
*
|
|
15588
15599
|
*/
|
|
15589
15600
|
close(): void;
|
|
15601
|
+
/**
|
|
15602
|
+
* Closes the current message being composed with the option to discard unsaved changes.
|
|
15603
|
+
* The message being composed can be a new message, reply, or an existing draft.
|
|
15604
|
+
*
|
|
15605
|
+
* @remarks
|
|
15606
|
+
* [Api set: Mailbox preview]
|
|
15607
|
+
*
|
|
15608
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
15609
|
+
*
|
|
15610
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15611
|
+
*
|
|
15612
|
+
* **Important**: The `closeAsync` method is in preview. It's only supported in Outlook on Windows at this time.
|
|
15613
|
+
*
|
|
15614
|
+
* **Errors**:
|
|
15615
|
+
*
|
|
15616
|
+
* - `The operation was cancelled by the user`: The user selects **Cancel** from the save dialog and the `discardItem` property isn't defined or is set to `false`.
|
|
15617
|
+
*
|
|
15618
|
+
* - `The operation is not supported`: The `closeAsync` method attempts to close a reply in the Reading Pane or an existing draft and the `discardItem` property isn't defined or
|
|
15619
|
+
* is set to `false`.
|
|
15620
|
+
*
|
|
15621
|
+
* @param options - An object literal that contains one or more of the following properties:-
|
|
15622
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
15623
|
+
* `discardItem`: If `true`, the current message being composed is closed and unsaved changes are discarded. When the parameter isn't declared or is
|
|
15624
|
+
* set to `false`, a save dialog appears prompting the user to save a draft, discard changes, or cancel the operation. This behavior occurs for new messages and replies
|
|
15625
|
+
* popped out from the Reading Pane. If you want to close a reply in the Reading Pane or an existing draft, you must set `discardItem` to `true`. Otherwise, the call will
|
|
15626
|
+
* return an error. For more information on the error, see the Remarks section.
|
|
15627
|
+
*
|
|
15628
|
+
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
|
|
15629
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
15630
|
+
*
|
|
15631
|
+
* @beta
|
|
15632
|
+
*/
|
|
15633
|
+
closeAsync(options: Office.AsyncContextOptions & { discardItem: boolean }, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
15634
|
+
/**
|
|
15635
|
+
* Closes the current new message being composed.
|
|
15636
|
+
*
|
|
15637
|
+
* The behavior on a new message being composed depends on whether the message contains any unsaved changes. If no changes have been made, the message is
|
|
15638
|
+
* closed without a save dialog. On the other hand, if the message contains unsaved changes, a save dialog appears prompting the user to save a draft,
|
|
15639
|
+
* discard changes, or cancel the operation.
|
|
15640
|
+
*
|
|
15641
|
+
* @remarks
|
|
15642
|
+
* [Api set: Mailbox preview]
|
|
15643
|
+
*
|
|
15644
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
15645
|
+
*
|
|
15646
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15647
|
+
*
|
|
15648
|
+
* **Important**: The `closeAsync` method is in preview. It's only supported in Outlook on Windows at this time.
|
|
15649
|
+
*
|
|
15650
|
+
* **Errors**:
|
|
15651
|
+
*
|
|
15652
|
+
* - `The operation was cancelled by the user`: The user selects **Cancel** from the save dialog.
|
|
15653
|
+
*
|
|
15654
|
+
* - `The operation is not supported`: The `closeAsync` method attempts to close a reply in the Reading Pane or an existing draft.
|
|
15655
|
+
*
|
|
15656
|
+
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
|
|
15657
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
15658
|
+
*
|
|
15659
|
+
* @beta
|
|
15660
|
+
*/
|
|
15661
|
+
closeAsync(callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
15590
15662
|
/**
|
|
15591
15663
|
* Disables the Outlook client signature.
|
|
15592
15664
|
*
|
|
@@ -19968,6 +20040,56 @@ declare namespace Excel {
|
|
|
19968
20040
|
referencedValues?: ReferencedValue[];
|
|
19969
20041
|
}
|
|
19970
20042
|
/**
|
|
20043
|
+
* The base64 encoding type and data of an image.
|
|
20044
|
+
*
|
|
20045
|
+
* @remarks
|
|
20046
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
20047
|
+
* @beta
|
|
20048
|
+
*/
|
|
20049
|
+
interface Base64EncodedImage {
|
|
20050
|
+
/**
|
|
20051
|
+
* The file type of the encoded image.
|
|
20052
|
+
*
|
|
20053
|
+
* @remarks
|
|
20054
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
20055
|
+
* @beta
|
|
20056
|
+
*/
|
|
20057
|
+
type: Base64EncodingType | "JPG" | "PNG";
|
|
20058
|
+
/**
|
|
20059
|
+
* The base64 string encoding.
|
|
20060
|
+
*
|
|
20061
|
+
* @remarks
|
|
20062
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
20063
|
+
* @beta
|
|
20064
|
+
*/
|
|
20065
|
+
data: string;
|
|
20066
|
+
}
|
|
20067
|
+
/**
|
|
20068
|
+
* The file type represented by the base64 encoding.
|
|
20069
|
+
*
|
|
20070
|
+
* @remarks
|
|
20071
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
20072
|
+
* @beta
|
|
20073
|
+
*/
|
|
20074
|
+
enum Base64EncodingType {
|
|
20075
|
+
/**
|
|
20076
|
+
* The JPG file type.
|
|
20077
|
+
*
|
|
20078
|
+
* @remarks
|
|
20079
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
20080
|
+
* @beta
|
|
20081
|
+
*/
|
|
20082
|
+
JPG = "JPG",
|
|
20083
|
+
/**
|
|
20084
|
+
* The PNG file type.
|
|
20085
|
+
*
|
|
20086
|
+
* @remarks
|
|
20087
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
20088
|
+
* @beta
|
|
20089
|
+
*/
|
|
20090
|
+
PNG = "PNG"
|
|
20091
|
+
}
|
|
20092
|
+
/**
|
|
19971
20093
|
* Represents a card layout that is best used for an array.
|
|
19972
20094
|
*
|
|
19973
20095
|
* @remarks
|
|
@@ -24570,6 +24692,13 @@ declare namespace Excel {
|
|
|
24570
24692
|
*/
|
|
24571
24693
|
linkedEntity = "LinkedEntity",
|
|
24572
24694
|
/**
|
|
24695
|
+
* Represents a `LocalImageCellValue`.
|
|
24696
|
+
*
|
|
24697
|
+
* @remarks
|
|
24698
|
+
* [Api set: ExcelApi 1.16]
|
|
24699
|
+
*/
|
|
24700
|
+
localImage = "LocalImage",
|
|
24701
|
+
/**
|
|
24573
24702
|
* Represents a `ReferenceCellValue`.
|
|
24574
24703
|
*
|
|
24575
24704
|
* @remarks
|
|
@@ -24604,7 +24733,7 @@ declare namespace Excel {
|
|
|
24604
24733
|
* @remarks
|
|
24605
24734
|
* [Api set: ExcelApi 1.16]
|
|
24606
24735
|
*/
|
|
24607
|
-
type CellValue = (ArrayCellValue | BooleanCellValue | DoubleCellValue | EntityCellValue | EmptyCellValue | ErrorCellValue | FormattedNumberCellValue | LinkedEntityCellValue | ReferenceCellValue | StringCellValue | ValueTypeNotAvailableCellValue | WebImageCellValue) & CellValueExtraProperties;
|
|
24736
|
+
type CellValue = (ArrayCellValue | BooleanCellValue | DoubleCellValue | EntityCellValue | EmptyCellValue | ErrorCellValue | FormattedNumberCellValue | LinkedEntityCellValue | LocalImageCellValue | ReferenceCellValue | StringCellValue | ValueTypeNotAvailableCellValue | WebImageCellValue) & CellValueExtraProperties;
|
|
24608
24737
|
/**
|
|
24609
24738
|
* These extra properties may appear on a `CellValue` and provide information about that `CellValue`, but the extra properties are not part of the value in the cell.
|
|
24610
24739
|
*
|
|
@@ -25425,7 +25554,14 @@ declare namespace Excel {
|
|
|
25425
25554
|
* @remarks
|
|
25426
25555
|
* [Api set: ExcelApi 1.16]
|
|
25427
25556
|
*/
|
|
25428
|
-
dataProviderError = "DataProviderError"
|
|
25557
|
+
dataProviderError = "DataProviderError",
|
|
25558
|
+
/**
|
|
25559
|
+
* 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.
|
|
25560
|
+
*
|
|
25561
|
+
* @remarks
|
|
25562
|
+
* [Api set: 1.16]
|
|
25563
|
+
*/
|
|
25564
|
+
richValueRelMissingFilePart = "RichValueRelMissingFilePart"
|
|
25429
25565
|
}
|
|
25430
25566
|
/**
|
|
25431
25567
|
* Represents the value of a cell containing a #FIELD! error.
|
|
@@ -25470,7 +25606,7 @@ declare namespace Excel {
|
|
|
25470
25606
|
* @remarks
|
|
25471
25607
|
* [Api set: ExcelApi 1.16]
|
|
25472
25608
|
*/
|
|
25473
|
-
errorSubType?: FieldErrorCellValueSubType | "Unknown" | "WebImageMissingFilePart" | "DataProviderError";
|
|
25609
|
+
errorSubType?: FieldErrorCellValueSubType | "Unknown" | "WebImageMissingFilePart" | "DataProviderError" | "RichValueRelMissingFilePart";
|
|
25474
25610
|
/**
|
|
25475
25611
|
* Represents the field which was not found by FIELDVALUE.
|
|
25476
25612
|
*
|
|
@@ -25666,6 +25802,88 @@ declare namespace Excel {
|
|
|
25666
25802
|
provider?: CellValueProviderAttributes;
|
|
25667
25803
|
}
|
|
25668
25804
|
/**
|
|
25805
|
+
* Represents the value of a cell containing a locally stored or generated image.
|
|
25806
|
+
*
|
|
25807
|
+
* @remarks
|
|
25808
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25809
|
+
* @beta
|
|
25810
|
+
*/
|
|
25811
|
+
interface LocalImageCellValue {
|
|
25812
|
+
/**
|
|
25813
|
+
* Represents the type of this cell value.
|
|
25814
|
+
*
|
|
25815
|
+
* @remarks
|
|
25816
|
+
* [Api set: ExcelApi 1.16]
|
|
25817
|
+
*/
|
|
25818
|
+
type: CellValueType.localImage | "LocalImage";
|
|
25819
|
+
/**
|
|
25820
|
+
* Represents the value that would be returned by `Range.values` for a cell with this value.
|
|
25821
|
+
* When accessed through a `valuesAsJson` property, this string value aligns with the en-US locale.
|
|
25822
|
+
* When accessed through a `valuesAsJsonLocal` property, this string value aligns with the user's display locale.
|
|
25823
|
+
*
|
|
25824
|
+
* @remarks
|
|
25825
|
+
* [Api set: ExcelApi 1.16]
|
|
25826
|
+
*/
|
|
25827
|
+
basicValue?: "#VALUE!" | string;
|
|
25828
|
+
/**
|
|
25829
|
+
* Represents the value that would be returned by `Range.valueTypes` for a cell with this value.
|
|
25830
|
+
*
|
|
25831
|
+
* @remarks
|
|
25832
|
+
* [Api set: ExcelApi 1.16]
|
|
25833
|
+
*/
|
|
25834
|
+
basicType?: RangeValueType.error | "Error";
|
|
25835
|
+
/**
|
|
25836
|
+
* Represents the image itself, either cached or encoded.
|
|
25837
|
+
*
|
|
25838
|
+
* @remarks
|
|
25839
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25840
|
+
* @beta
|
|
25841
|
+
*/
|
|
25842
|
+
image: LocalImageCellValueCacheId | Base64EncodedImage;
|
|
25843
|
+
/**
|
|
25844
|
+
* Represents the alternate text used in accessibility scenarios to describe what the image represents.
|
|
25845
|
+
*
|
|
25846
|
+
* @remarks
|
|
25847
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25848
|
+
* @beta
|
|
25849
|
+
*/
|
|
25850
|
+
altText?: string;
|
|
25851
|
+
/**
|
|
25852
|
+
* Represents attribution information to describe the source and license requirements for this image.
|
|
25853
|
+
*
|
|
25854
|
+
* @remarks
|
|
25855
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25856
|
+
* @beta
|
|
25857
|
+
*/
|
|
25858
|
+
attribution?: CellValueAttributionAttributes[];
|
|
25859
|
+
/**
|
|
25860
|
+
* Represents information that describes the entity or individual who provided the image.
|
|
25861
|
+
* This information is used for branding purposes in image cards.
|
|
25862
|
+
*
|
|
25863
|
+
* @remarks
|
|
25864
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25865
|
+
* @beta
|
|
25866
|
+
*/
|
|
25867
|
+
provider?: CellValueProviderAttributes;
|
|
25868
|
+
}
|
|
25869
|
+
/**
|
|
25870
|
+
* The UID of a previously cached image.
|
|
25871
|
+
*
|
|
25872
|
+
* @remarks
|
|
25873
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25874
|
+
* @beta
|
|
25875
|
+
*/
|
|
25876
|
+
interface LocalImageCellValueCacheId {
|
|
25877
|
+
/**
|
|
25878
|
+
* Represents the image's UID as it appears in the cache.
|
|
25879
|
+
*
|
|
25880
|
+
* @remarks
|
|
25881
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
25882
|
+
* @beta
|
|
25883
|
+
*/
|
|
25884
|
+
cacheUid: string;
|
|
25885
|
+
}
|
|
25886
|
+
/**
|
|
25669
25887
|
* Represents the value of a cell containing a #N/A! error.
|
|
25670
25888
|
*
|
|
25671
25889
|
* @remarks
|
|
@@ -27303,42 +27521,42 @@ declare namespace Excel {
|
|
|
27303
27521
|
as a result of that primary move.
|
|
27304
27522
|
*
|
|
27305
27523
|
* @remarks
|
|
27306
|
-
* [Api set:
|
|
27524
|
+
* [Api set: ExcelApi 1.17]
|
|
27307
27525
|
*/
|
|
27308
27526
|
interface WorksheetMovedEventArgs {
|
|
27309
27527
|
/**
|
|
27310
27528
|
* Gets the new position of the worksheet, after the move.
|
|
27311
27529
|
*
|
|
27312
27530
|
* @remarks
|
|
27313
|
-
* [Api set:
|
|
27531
|
+
* [Api set: ExcelApi 1.17]
|
|
27314
27532
|
*/
|
|
27315
27533
|
positionAfter: number;
|
|
27316
27534
|
/**
|
|
27317
27535
|
* Gets the previous position of the worksheet, prior to the move.
|
|
27318
27536
|
*
|
|
27319
27537
|
* @remarks
|
|
27320
|
-
* [Api set:
|
|
27538
|
+
* [Api set: ExcelApi 1.17]
|
|
27321
27539
|
*/
|
|
27322
27540
|
positionBefore: number;
|
|
27323
27541
|
/**
|
|
27324
27542
|
* The source of the event. It can be local or remote (through co-authoring).
|
|
27325
27543
|
*
|
|
27326
27544
|
* @remarks
|
|
27327
|
-
* [Api set:
|
|
27545
|
+
* [Api set: ExcelApi 1.17]
|
|
27328
27546
|
*/
|
|
27329
27547
|
source: Excel.EventSource | "Local" | "Remote";
|
|
27330
27548
|
/**
|
|
27331
27549
|
* Gets the type of the event.
|
|
27332
27550
|
*
|
|
27333
27551
|
* @remarks
|
|
27334
|
-
* [Api set:
|
|
27552
|
+
* [Api set: ExcelApi 1.17]
|
|
27335
27553
|
*/
|
|
27336
27554
|
type: string;
|
|
27337
27555
|
/**
|
|
27338
27556
|
* Gets the ID of the worksheet that was moved.
|
|
27339
27557
|
*
|
|
27340
27558
|
* @remarks
|
|
27341
|
-
* [Api set:
|
|
27559
|
+
* [Api set: ExcelApi 1.17]
|
|
27342
27560
|
*/
|
|
27343
27561
|
worksheetId: string;
|
|
27344
27562
|
}
|
|
@@ -27346,42 +27564,42 @@ declare namespace Excel {
|
|
|
27346
27564
|
* Provides information about the worksheet whose name has changed.
|
|
27347
27565
|
*
|
|
27348
27566
|
* @remarks
|
|
27349
|
-
* [Api set:
|
|
27567
|
+
* [Api set: ExcelApi 1.17]
|
|
27350
27568
|
*/
|
|
27351
27569
|
interface WorksheetNameChangedEventArgs {
|
|
27352
27570
|
/**
|
|
27353
27571
|
* Gets the new name of the worksheet, after the name change.
|
|
27354
27572
|
*
|
|
27355
27573
|
* @remarks
|
|
27356
|
-
* [Api set:
|
|
27574
|
+
* [Api set: ExcelApi 1.17]
|
|
27357
27575
|
*/
|
|
27358
27576
|
nameAfter: string;
|
|
27359
27577
|
/**
|
|
27360
27578
|
* Gets the previous name of the worksheet, before the name changed.
|
|
27361
27579
|
*
|
|
27362
27580
|
* @remarks
|
|
27363
|
-
* [Api set:
|
|
27581
|
+
* [Api set: ExcelApi 1.17]
|
|
27364
27582
|
*/
|
|
27365
27583
|
nameBefore: string;
|
|
27366
27584
|
/**
|
|
27367
27585
|
* The source of the event. It can be local or remote (through co-authoring).
|
|
27368
27586
|
*
|
|
27369
27587
|
* @remarks
|
|
27370
|
-
* [Api set:
|
|
27588
|
+
* [Api set: ExcelApi 1.17]
|
|
27371
27589
|
*/
|
|
27372
27590
|
source: Excel.EventSource | "Local" | "Remote";
|
|
27373
27591
|
/**
|
|
27374
27592
|
* Gets the type of the event.
|
|
27375
27593
|
*
|
|
27376
27594
|
* @remarks
|
|
27377
|
-
* [Api set:
|
|
27595
|
+
* [Api set: ExcelApi 1.17]
|
|
27378
27596
|
*/
|
|
27379
27597
|
type: string;
|
|
27380
27598
|
/**
|
|
27381
27599
|
* Gets the ID of the worksheet with the new name.
|
|
27382
27600
|
*
|
|
27383
27601
|
* @remarks
|
|
27384
|
-
* [Api set:
|
|
27602
|
+
* [Api set: ExcelApi 1.17]
|
|
27385
27603
|
*/
|
|
27386
27604
|
worksheetId: string;
|
|
27387
27605
|
}
|
|
@@ -27389,42 +27607,42 @@ declare namespace Excel {
|
|
|
27389
27607
|
* Provides information about the worksheet whose visibility has changed.
|
|
27390
27608
|
*
|
|
27391
27609
|
* @remarks
|
|
27392
|
-
* [Api set:
|
|
27610
|
+
* [Api set: ExcelApi 1.17]
|
|
27393
27611
|
*/
|
|
27394
27612
|
interface WorksheetVisibilityChangedEventArgs {
|
|
27395
27613
|
/**
|
|
27396
27614
|
* The source of the event. It can be local or remote (through co-authoring).
|
|
27397
27615
|
*
|
|
27398
27616
|
* @remarks
|
|
27399
|
-
* [Api set:
|
|
27617
|
+
* [Api set: ExcelApi 1.17]
|
|
27400
27618
|
*/
|
|
27401
27619
|
source: Excel.EventSource | "Local" | "Remote";
|
|
27402
27620
|
/**
|
|
27403
27621
|
* Gets the type of the event.
|
|
27404
27622
|
*
|
|
27405
27623
|
* @remarks
|
|
27406
|
-
* [Api set:
|
|
27624
|
+
* [Api set: ExcelApi 1.17]
|
|
27407
27625
|
*/
|
|
27408
27626
|
type: string;
|
|
27409
27627
|
/**
|
|
27410
27628
|
* Gets the new visibility setting of the worksheet, after the visibility change.
|
|
27411
27629
|
*
|
|
27412
27630
|
* @remarks
|
|
27413
|
-
* [Api set:
|
|
27631
|
+
* [Api set: ExcelApi 1.17]
|
|
27414
27632
|
*/
|
|
27415
27633
|
visibilityAfter: Excel.SheetVisibility | "Visible" | "Hidden" | "VeryHidden";
|
|
27416
27634
|
/**
|
|
27417
27635
|
* Gets the previous visibility setting of the worksheet, before the visibility change.
|
|
27418
27636
|
*
|
|
27419
27637
|
* @remarks
|
|
27420
|
-
* [Api set:
|
|
27638
|
+
* [Api set: ExcelApi 1.17]
|
|
27421
27639
|
*/
|
|
27422
27640
|
visibilityBefore: Excel.SheetVisibility | "Visible" | "Hidden" | "VeryHidden";
|
|
27423
27641
|
/**
|
|
27424
27642
|
* Gets the ID of the worksheet whose visibility has changed.
|
|
27425
27643
|
*
|
|
27426
27644
|
* @remarks
|
|
27427
|
-
* [Api set:
|
|
27645
|
+
* [Api set: ExcelApi 1.17]
|
|
27428
27646
|
*/
|
|
27429
27647
|
worksheetId: string;
|
|
27430
27648
|
}
|
|
@@ -31897,6 +32115,15 @@ declare namespace Excel {
|
|
|
31897
32115
|
* [Api set: ExcelApi 1.11]
|
|
31898
32116
|
*/
|
|
31899
32117
|
readonly decimalSeparator: string;
|
|
32118
|
+
/**
|
|
32119
|
+
* Specifies whether the Format Stale Values option within Calculation Options is enabled or disabled.
|
|
32120
|
+
The stale formulas are rendered with stale formatting if the option is enabled.
|
|
32121
|
+
*
|
|
32122
|
+
* @remarks
|
|
32123
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
32124
|
+
* @beta
|
|
32125
|
+
*/
|
|
32126
|
+
formatStaleValues: boolean;
|
|
31900
32127
|
/**
|
|
31901
32128
|
* Gets the string used to separate groups of digits to the left of the decimal for numeric values. This is based on the local Excel settings.
|
|
31902
32129
|
*
|
|
@@ -33064,7 +33291,7 @@ declare namespace Excel {
|
|
|
33064
33291
|
* Occurs when the worksheet name is changed.
|
|
33065
33292
|
*
|
|
33066
33293
|
* @remarks
|
|
33067
|
-
* [Api set:
|
|
33294
|
+
* [Api set: ExcelApi 1.17]
|
|
33068
33295
|
*
|
|
33069
33296
|
* @eventproperty
|
|
33070
33297
|
*/
|
|
@@ -33122,7 +33349,7 @@ declare namespace Excel {
|
|
|
33122
33349
|
* Occurs when the worksheet visibility is changed.
|
|
33123
33350
|
*
|
|
33124
33351
|
* @remarks
|
|
33125
|
-
* [Api set:
|
|
33352
|
+
* [Api set: ExcelApi 1.17]
|
|
33126
33353
|
*
|
|
33127
33354
|
* @eventproperty
|
|
33128
33355
|
*/
|
|
@@ -33351,7 +33578,7 @@ declare namespace Excel {
|
|
|
33351
33578
|
* 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.
|
|
33352
33579
|
*
|
|
33353
33580
|
* @remarks
|
|
33354
|
-
* [Api set:
|
|
33581
|
+
* [Api set: ExcelApi 1.17]
|
|
33355
33582
|
*
|
|
33356
33583
|
* @eventproperty
|
|
33357
33584
|
*/
|
|
@@ -33360,7 +33587,7 @@ declare namespace Excel {
|
|
|
33360
33587
|
* Occurs when the worksheet name is changed in the worksheet collection.
|
|
33361
33588
|
*
|
|
33362
33589
|
* @remarks
|
|
33363
|
-
* [Api set:
|
|
33590
|
+
* [Api set: ExcelApi 1.17]
|
|
33364
33591
|
*
|
|
33365
33592
|
* @eventproperty
|
|
33366
33593
|
*/
|
|
@@ -33416,7 +33643,7 @@ declare namespace Excel {
|
|
|
33416
33643
|
* Occurs when the worksheet visibility is changed in the worksheet collection.
|
|
33417
33644
|
*
|
|
33418
33645
|
* @remarks
|
|
33419
|
-
* [Api set:
|
|
33646
|
+
* [Api set: ExcelApi 1.17]
|
|
33420
33647
|
*
|
|
33421
33648
|
* @eventproperty
|
|
33422
33649
|
*/
|
|
@@ -43839,8 +44066,7 @@ declare namespace Excel {
|
|
|
43839
44066
|
* Gets the currency symbol for currency values. This is based on current system settings.
|
|
43840
44067
|
*
|
|
43841
44068
|
* @remarks
|
|
43842
|
-
* [Api set: ExcelApi
|
|
43843
|
-
* @beta
|
|
44069
|
+
* [Api set: ExcelApi 1.17]
|
|
43844
44070
|
*/
|
|
43845
44071
|
readonly currencySymbol: string;
|
|
43846
44072
|
/**
|
|
@@ -46877,8 +47103,7 @@ declare namespace Excel {
|
|
|
46877
47103
|
* Change the conditional format rule type to cell value.
|
|
46878
47104
|
*
|
|
46879
47105
|
* @remarks
|
|
46880
|
-
* [Api set: ExcelApi
|
|
46881
|
-
* @beta
|
|
47106
|
+
* [Api set: ExcelApi 1.17]
|
|
46882
47107
|
*
|
|
46883
47108
|
* @param properties The properties to set for the cell value conditional format rule.
|
|
46884
47109
|
*/
|
|
@@ -46887,16 +47112,14 @@ declare namespace Excel {
|
|
|
46887
47112
|
* Change the conditional format rule type to color scale.
|
|
46888
47113
|
*
|
|
46889
47114
|
* @remarks
|
|
46890
|
-
* [Api set: ExcelApi
|
|
46891
|
-
* @beta
|
|
47115
|
+
* [Api set: ExcelApi 1.17]
|
|
46892
47116
|
*/
|
|
46893
47117
|
changeRuleToColorScale(): void;
|
|
46894
47118
|
/**
|
|
46895
47119
|
* Change the conditional format rule type to text comparison.
|
|
46896
47120
|
*
|
|
46897
47121
|
* @remarks
|
|
46898
|
-
* [Api set: ExcelApi
|
|
46899
|
-
* @beta
|
|
47122
|
+
* [Api set: ExcelApi 1.17]
|
|
46900
47123
|
*
|
|
46901
47124
|
* @param properties The properties to set for the text comparison conditional format rule.
|
|
46902
47125
|
*/
|
|
@@ -46905,8 +47128,7 @@ declare namespace Excel {
|
|
|
46905
47128
|
* Change the conditional format rule type to custom.
|
|
46906
47129
|
*
|
|
46907
47130
|
* @remarks
|
|
46908
|
-
* [Api set: ExcelApi
|
|
46909
|
-
* @beta
|
|
47131
|
+
* [Api set: ExcelApi 1.17]
|
|
46910
47132
|
*
|
|
46911
47133
|
* @param formula The formula to set for the custom conditional format rule.
|
|
46912
47134
|
*/
|
|
@@ -46915,24 +47137,21 @@ declare namespace Excel {
|
|
|
46915
47137
|
* Change the conditional format rule type to data bar.
|
|
46916
47138
|
*
|
|
46917
47139
|
* @remarks
|
|
46918
|
-
* [Api set: ExcelApi
|
|
46919
|
-
* @beta
|
|
47140
|
+
* [Api set: ExcelApi 1.17]
|
|
46920
47141
|
*/
|
|
46921
47142
|
changeRuleToDataBar(): void;
|
|
46922
47143
|
/**
|
|
46923
47144
|
* Change the conditional format rule type to icon set.
|
|
46924
47145
|
*
|
|
46925
47146
|
* @remarks
|
|
46926
|
-
* [Api set: ExcelApi
|
|
46927
|
-
* @beta
|
|
47147
|
+
* [Api set: ExcelApi 1.17]
|
|
46928
47148
|
*/
|
|
46929
47149
|
changeRuleToIconSet(): void;
|
|
46930
47150
|
/**
|
|
46931
47151
|
* Change the conditional format rule type to preset criteria.
|
|
46932
47152
|
*
|
|
46933
47153
|
* @remarks
|
|
46934
|
-
* [Api set: ExcelApi
|
|
46935
|
-
* @beta
|
|
47154
|
+
* [Api set: ExcelApi 1.17]
|
|
46936
47155
|
*
|
|
46937
47156
|
* @param properties The properties to set for the preset criteria conditional format rule.
|
|
46938
47157
|
*/
|
|
@@ -46941,8 +47160,7 @@ declare namespace Excel {
|
|
|
46941
47160
|
* Change the conditional format rule type to top/bottom.
|
|
46942
47161
|
*
|
|
46943
47162
|
* @remarks
|
|
46944
|
-
* [Api set: ExcelApi
|
|
46945
|
-
* @beta
|
|
47163
|
+
* [Api set: ExcelApi 1.17]
|
|
46946
47164
|
*
|
|
46947
47165
|
* @param properties The properties to set for the top/bottom conditional format rule.
|
|
46948
47166
|
*/
|
|
@@ -46980,8 +47198,7 @@ declare namespace Excel {
|
|
|
46980
47198
|
* Set the ranges that the conditonal format rule is applied to.
|
|
46981
47199
|
*
|
|
46982
47200
|
* @remarks
|
|
46983
|
-
* [Api set: ExcelApi
|
|
46984
|
-
* @beta
|
|
47201
|
+
* [Api set: ExcelApi 1.17]
|
|
46985
47202
|
*
|
|
46986
47203
|
* @param ranges Collection of one or more ranges for this rule to be applied to.
|
|
46987
47204
|
*/
|
|
@@ -47994,8 +48211,7 @@ declare namespace Excel {
|
|
|
47994
48211
|
* Remove the format properties from a conditional format rule. This creates a rule with no format settings.
|
|
47995
48212
|
*
|
|
47996
48213
|
* @remarks
|
|
47997
|
-
* [Api set: ExcelApi
|
|
47998
|
-
* @beta
|
|
48214
|
+
* [Api set: ExcelApi 1.17]
|
|
47999
48215
|
*/
|
|
48000
48216
|
clearFormat(): void;
|
|
48001
48217
|
/**
|
|
@@ -63957,6 +64173,15 @@ declare namespace Excel {
|
|
|
63957
64173
|
* [Api set: ExcelApi 1.1 for get, 1.8 for set]
|
|
63958
64174
|
*/
|
|
63959
64175
|
calculationMode?: Excel.CalculationMode | "Automatic" | "AutomaticExceptTables" | "Manual";
|
|
64176
|
+
/**
|
|
64177
|
+
* Specifies whether the Format Stale Values option within Calculation Options is enabled or disabled.
|
|
64178
|
+
The stale formulas are rendered with stale formatting if the option is enabled.
|
|
64179
|
+
*
|
|
64180
|
+
* @remarks
|
|
64181
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
64182
|
+
* @beta
|
|
64183
|
+
*/
|
|
64184
|
+
formatStaleValues?: boolean;
|
|
63960
64185
|
}
|
|
63961
64186
|
/** An interface for updating data on the IterativeCalculation object, for use in `iterativeCalculation.set({ ... })`. */
|
|
63962
64187
|
interface IterativeCalculationUpdateData {
|
|
@@ -69160,6 +69385,15 @@ declare namespace Excel {
|
|
|
69160
69385
|
* [Api set: ExcelApi 1.11]
|
|
69161
69386
|
*/
|
|
69162
69387
|
decimalSeparator?: string;
|
|
69388
|
+
/**
|
|
69389
|
+
* Specifies whether the Format Stale Values option within Calculation Options is enabled or disabled.
|
|
69390
|
+
The stale formulas are rendered with stale formatting if the option is enabled.
|
|
69391
|
+
*
|
|
69392
|
+
* @remarks
|
|
69393
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
69394
|
+
* @beta
|
|
69395
|
+
*/
|
|
69396
|
+
formatStaleValues?: boolean;
|
|
69163
69397
|
/**
|
|
69164
69398
|
* Gets the string used to separate groups of digits to the left of the decimal for numeric values. This is based on the local Excel settings.
|
|
69165
69399
|
*
|
|
@@ -73140,8 +73374,7 @@ declare namespace Excel {
|
|
|
73140
73374
|
* Gets the currency symbol for currency values. This is based on current system settings.
|
|
73141
73375
|
*
|
|
73142
73376
|
* @remarks
|
|
73143
|
-
* [Api set: ExcelApi
|
|
73144
|
-
* @beta
|
|
73377
|
+
* [Api set: ExcelApi 1.17]
|
|
73145
73378
|
*/
|
|
73146
73379
|
currencySymbol?: string;
|
|
73147
73380
|
/**
|
|
@@ -76487,6 +76720,15 @@ declare namespace Excel {
|
|
|
76487
76720
|
* [Api set: ExcelApi 1.11]
|
|
76488
76721
|
*/
|
|
76489
76722
|
decimalSeparator?: boolean;
|
|
76723
|
+
/**
|
|
76724
|
+
* Specifies whether the Format Stale Values option within Calculation Options is enabled or disabled.
|
|
76725
|
+
The stale formulas are rendered with stale formatting if the option is enabled.
|
|
76726
|
+
*
|
|
76727
|
+
* @remarks
|
|
76728
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
76729
|
+
* @beta
|
|
76730
|
+
*/
|
|
76731
|
+
formatStaleValues?: boolean;
|
|
76490
76732
|
/**
|
|
76491
76733
|
* Gets the string used to separate groups of digits to the left of the decimal for numeric values. This is based on the local Excel settings.
|
|
76492
76734
|
*
|
|
@@ -82416,8 +82658,7 @@ declare namespace Excel {
|
|
|
82416
82658
|
* Gets the currency symbol for currency values. This is based on current system settings.
|
|
82417
82659
|
*
|
|
82418
82660
|
* @remarks
|
|
82419
|
-
* [Api set: ExcelApi
|
|
82420
|
-
* @beta
|
|
82661
|
+
* [Api set: ExcelApi 1.17]
|
|
82421
82662
|
*/
|
|
82422
82663
|
currencySymbol?: boolean;
|
|
82423
82664
|
/**
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.382",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "5c3dd824e151f0e637040843604f9fff0d8ca58bb2d12ea3c7ec56b9a377f1d8",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|