@types/office-js-preview 1.0.476 → 1.0.478
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 +127 -92
- 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-preview (https://github.com
|
|
|
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:
|
|
11
|
+
* Last updated: Mon, 17 Jun 2024 18:08:12 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -89978,40 +89978,35 @@ declare namespace Word {
|
|
|
89978
89978
|
* Properties defining the behavior of the pop-up menu for a given critique.
|
|
89979
89979
|
*
|
|
89980
89980
|
* @remarks
|
|
89981
|
-
* [Api set: WordApi
|
|
89982
|
-
* @beta
|
|
89981
|
+
* [Api set: WordApi 1.8]
|
|
89983
89982
|
*/
|
|
89984
89983
|
interface CritiquePopupOptions {
|
|
89985
89984
|
/**
|
|
89986
89985
|
* Gets the manifest resource ID of the string to use for branding. This branding text appears next to your add-in icon in the pop-up menu.
|
|
89987
89986
|
*
|
|
89988
89987
|
* @remarks
|
|
89989
|
-
* [Api set: WordApi
|
|
89990
|
-
* @beta
|
|
89988
|
+
* [Api set: WordApi 1.8]
|
|
89991
89989
|
*/
|
|
89992
89990
|
brandingTextResourceId: string;
|
|
89993
89991
|
/**
|
|
89994
89992
|
* Gets the manifest resource ID of the string to use as the subtitle.
|
|
89995
89993
|
*
|
|
89996
89994
|
* @remarks
|
|
89997
|
-
* [Api set: WordApi
|
|
89998
|
-
* @beta
|
|
89995
|
+
* [Api set: WordApi 1.8]
|
|
89999
89996
|
*/
|
|
90000
89997
|
subtitleResourceId: string;
|
|
90001
89998
|
/**
|
|
90002
89999
|
* Gets the suggestions to display in the critique pop-up menu.
|
|
90003
90000
|
*
|
|
90004
90001
|
* @remarks
|
|
90005
|
-
* [Api set: WordApi
|
|
90006
|
-
* @beta
|
|
90002
|
+
* [Api set: WordApi 1.8]
|
|
90007
90003
|
*/
|
|
90008
90004
|
suggestions: string[];
|
|
90009
90005
|
/**
|
|
90010
90006
|
* Gets the manifest resource ID of the string to use as the title.
|
|
90011
90007
|
*
|
|
90012
90008
|
* @remarks
|
|
90013
|
-
* [Api set: WordApi
|
|
90014
|
-
* @beta
|
|
90009
|
+
* [Api set: WordApi 1.8]
|
|
90015
90010
|
*/
|
|
90016
90011
|
titleResourceId: string;
|
|
90017
90012
|
}
|
|
@@ -90040,8 +90035,7 @@ declare namespace Word {
|
|
|
90040
90035
|
* Specifies the behavior of the pop-up menu for the critique.
|
|
90041
90036
|
*
|
|
90042
90037
|
* @remarks
|
|
90043
|
-
* [Api set: WordApi
|
|
90044
|
-
* @beta
|
|
90038
|
+
* [Api set: WordApi 1.8]
|
|
90045
90039
|
*/
|
|
90046
90040
|
popupOptions: Word.CritiquePopupOptions;
|
|
90047
90041
|
/**
|
|
@@ -90301,32 +90295,28 @@ declare namespace Word {
|
|
|
90301
90295
|
* Represents action information that's passed back on annotation pop-up action event.
|
|
90302
90296
|
*
|
|
90303
90297
|
* @remarks
|
|
90304
|
-
* [Api set: WordApi
|
|
90305
|
-
* @beta
|
|
90298
|
+
* [Api set: WordApi 1.8]
|
|
90306
90299
|
*/
|
|
90307
90300
|
interface AnnotationPopupActionEventArgs {
|
|
90308
90301
|
/**
|
|
90309
90302
|
* Specifies the chosen action in the pop-up menu.
|
|
90310
90303
|
*
|
|
90311
90304
|
* @remarks
|
|
90312
|
-
* [Api set: WordApi
|
|
90313
|
-
* @beta
|
|
90305
|
+
* [Api set: WordApi 1.8]
|
|
90314
90306
|
*/
|
|
90315
90307
|
action: string;
|
|
90316
90308
|
/**
|
|
90317
90309
|
* Specifies the accepted suggestion (only populated when accepting a critique suggestion).
|
|
90318
90310
|
*
|
|
90319
90311
|
* @remarks
|
|
90320
|
-
* [Api set: WordApi
|
|
90321
|
-
* @beta
|
|
90312
|
+
* [Api set: WordApi 1.8]
|
|
90322
90313
|
*/
|
|
90323
90314
|
critiqueSuggestion: string;
|
|
90324
90315
|
/**
|
|
90325
90316
|
* Specifies the annotation ID for which the event was fired.
|
|
90326
90317
|
*
|
|
90327
90318
|
* @remarks
|
|
90328
|
-
* [Api set: WordApi
|
|
90329
|
-
* @beta
|
|
90319
|
+
* [Api set: WordApi 1.8]
|
|
90330
90320
|
*/
|
|
90331
90321
|
id: string;
|
|
90332
90322
|
}
|
|
@@ -90688,10 +90678,11 @@ declare namespace Word {
|
|
|
90688
90678
|
* [Api set: WordApi 1.1]
|
|
90689
90679
|
*
|
|
90690
90680
|
* Note: The `contentControlType` parameter was introduced in WordApi 1.5. `PlainText` support was added in WordApi 1.5. `CheckBox` support was added in WordApi 1.7.
|
|
90681
|
+
* `DropDownList` and `ComboBox` support are currently in preview.
|
|
90691
90682
|
*
|
|
90692
|
-
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', or '
|
|
90683
|
+
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', 'CheckBox', 'DropDownList', or 'ComboBox'. The default is 'RichText'.
|
|
90693
90684
|
*/
|
|
90694
|
-
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | "RichText" | "PlainText" | "CheckBox"): Word.ContentControl;
|
|
90685
|
+
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | Word.ContentControlType.dropDownList | Word.ContentControlType.comboBox | "RichText" | "PlainText" | "CheckBox" | "DropDownList" | "ComboBox"): Word.ContentControl;
|
|
90695
90686
|
/**
|
|
90696
90687
|
* Inserts a document into the body at the specified location.
|
|
90697
90688
|
*
|
|
@@ -91643,6 +91634,14 @@ declare namespace Word {
|
|
|
91643
91634
|
* [Api set: WordApi 1.7]
|
|
91644
91635
|
*/
|
|
91645
91636
|
readonly checkboxContentControl: Word.CheckboxContentControl;
|
|
91637
|
+
/**
|
|
91638
|
+
* Specifies the combo box-related data if the content control's type is 'ComboBox'. It's `null` otherwise.
|
|
91639
|
+
*
|
|
91640
|
+
* @remarks
|
|
91641
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
91642
|
+
* @beta
|
|
91643
|
+
*/
|
|
91644
|
+
readonly comboBoxContentControl: Word.ComboBoxContentControl;
|
|
91646
91645
|
/**
|
|
91647
91646
|
* Gets the collection of content control objects in the content control.
|
|
91648
91647
|
*
|
|
@@ -92368,7 +92367,7 @@ declare namespace Word {
|
|
|
92368
92367
|
toJSON(): Word.Interfaces.ContentControlCollectionData;
|
|
92369
92368
|
}
|
|
92370
92369
|
/**
|
|
92371
|
-
* Represents a list item in a dropdown list content control.
|
|
92370
|
+
* Represents a list item in a dropdown list or combo box content control.
|
|
92372
92371
|
*
|
|
92373
92372
|
* @remarks
|
|
92374
92373
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -92378,7 +92377,7 @@ declare namespace Word {
|
|
|
92378
92377
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
92379
92378
|
context: RequestContext;
|
|
92380
92379
|
/**
|
|
92381
|
-
* Specifies the display text of a list item for a dropdown list content control.
|
|
92380
|
+
* Specifies the display text of a list item for a dropdown list or combo box content control.
|
|
92382
92381
|
*
|
|
92383
92382
|
* @remarks
|
|
92384
92383
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -92394,7 +92393,7 @@ declare namespace Word {
|
|
|
92394
92393
|
*/
|
|
92395
92394
|
index: number;
|
|
92396
92395
|
/**
|
|
92397
|
-
* Specifies the programmatic value of a list item for a dropdown list content control.
|
|
92396
|
+
* Specifies the programmatic value of a list item for a dropdown list or combo box content control.
|
|
92398
92397
|
*
|
|
92399
92398
|
* @remarks
|
|
92400
92399
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -92461,7 +92460,7 @@ declare namespace Word {
|
|
|
92461
92460
|
toJSON(): Word.Interfaces.ContentControlListItemData;
|
|
92462
92461
|
}
|
|
92463
92462
|
/**
|
|
92464
|
-
* Contains a collection of {@link Word.ContentControlListItem} objects that represent the items in a dropdown list content control.
|
|
92463
|
+
* Contains a collection of {@link Word.ContentControlListItem} objects that represent the items in a dropdown list or combo box content control.
|
|
92465
92464
|
*
|
|
92466
92465
|
* @remarks
|
|
92467
92466
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -92530,12 +92529,13 @@ declare namespace Word {
|
|
|
92530
92529
|
*/
|
|
92531
92530
|
interface ContentControlOptions {
|
|
92532
92531
|
/**
|
|
92533
|
-
* An array of content control types, item must be 'RichText', 'PlainText', or '
|
|
92532
|
+
* An array of content control types, item must be 'RichText', 'PlainText', 'CheckBox', 'DropDownList', or 'ComboBox'.
|
|
92534
92533
|
*
|
|
92535
92534
|
* @remarks
|
|
92536
92535
|
* [Api set: WordApi 1.5]
|
|
92537
92536
|
*
|
|
92538
|
-
* Note:
|
|
92537
|
+
* Note: 'PlainText' support was added in WordApi 1.5. 'CheckBox' support was added in WordApi 1.7.
|
|
92538
|
+
* 'DropDownList' and 'ComboBox' support are currently in preview.
|
|
92539
92539
|
*/
|
|
92540
92540
|
types: Word.ContentControlType[];
|
|
92541
92541
|
}
|
|
@@ -93473,10 +93473,9 @@ declare namespace Word {
|
|
|
93473
93473
|
* Occurs when the user performs an action in an annotation pop-up menu.
|
|
93474
93474
|
*
|
|
93475
93475
|
* @remarks
|
|
93476
|
-
* [Api set: WordApi
|
|
93476
|
+
* [Api set: WordApi 1.8]
|
|
93477
93477
|
*
|
|
93478
93478
|
* @eventproperty
|
|
93479
|
-
* @beta
|
|
93480
93479
|
*/
|
|
93481
93480
|
readonly onAnnotationPopupAction: OfficeExtension.EventHandlers<Word.AnnotationPopupActionEventArgs>;
|
|
93482
93481
|
/**
|
|
@@ -93996,6 +93995,73 @@ declare namespace Word {
|
|
|
93996
93995
|
*/
|
|
93997
93996
|
toJSON(): Word.Interfaces.DropDownListContentControlData;
|
|
93998
93997
|
}
|
|
93998
|
+
/**
|
|
93999
|
+
* The data specific to content controls of type 'ComboBox'.
|
|
94000
|
+
*
|
|
94001
|
+
* @remarks
|
|
94002
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
94003
|
+
* @beta
|
|
94004
|
+
*/
|
|
94005
|
+
class ComboBoxContentControl extends OfficeExtension.ClientObject {
|
|
94006
|
+
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
94007
|
+
context: RequestContext;
|
|
94008
|
+
/**
|
|
94009
|
+
* Gets the collection of list items in the combo box content control.
|
|
94010
|
+
*
|
|
94011
|
+
* @remarks
|
|
94012
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
94013
|
+
* @beta
|
|
94014
|
+
*/
|
|
94015
|
+
readonly listItems: Word.ContentControlListItemCollection;
|
|
94016
|
+
/**
|
|
94017
|
+
* Adds a new list item to this combo box content control and returns a {@link Word.ContentControlListItem} object.
|
|
94018
|
+
*
|
|
94019
|
+
* @remarks
|
|
94020
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
94021
|
+
* @beta
|
|
94022
|
+
*
|
|
94023
|
+
* @param displayText Required. Display text of the list item.
|
|
94024
|
+
* @param value Optional. Value of the list item.
|
|
94025
|
+
* @param index Optional. Index location of the new item in the list. If an item exists at the position specified, the existing item is pushed down in the list. If omitted, the new item is added to the end of the list.
|
|
94026
|
+
*/
|
|
94027
|
+
addListItem(displayText: string, value?: string, index?: number): Word.ContentControlListItem;
|
|
94028
|
+
/**
|
|
94029
|
+
* Deletes all list items in this combo box content control.
|
|
94030
|
+
*
|
|
94031
|
+
* @remarks
|
|
94032
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
94033
|
+
* @beta
|
|
94034
|
+
*/
|
|
94035
|
+
deleteAllListItems(): void;
|
|
94036
|
+
/**
|
|
94037
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
94038
|
+
*
|
|
94039
|
+
* @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
|
|
94040
|
+
*/
|
|
94041
|
+
load(propertyNames?: string | string[]): Word.ComboBoxContentControl;
|
|
94042
|
+
/**
|
|
94043
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
94044
|
+
*
|
|
94045
|
+
* @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
|
|
94046
|
+
*/
|
|
94047
|
+
load(propertyNamesAndPaths?: {
|
|
94048
|
+
select?: string;
|
|
94049
|
+
expand?: string;
|
|
94050
|
+
}): Word.ComboBoxContentControl;
|
|
94051
|
+
/**
|
|
94052
|
+
* Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created. If this object is part of a collection, you should also track the parent collection.
|
|
94053
|
+
*/
|
|
94054
|
+
track(): Word.ComboBoxContentControl;
|
|
94055
|
+
/**
|
|
94056
|
+
* Release the memory associated with this object, if it has previously been tracked. This call is shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.remove(thisObject)}. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
|
|
94057
|
+
*/
|
|
94058
|
+
untrack(): Word.ComboBoxContentControl;
|
|
94059
|
+
/**
|
|
94060
|
+
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
|
|
94061
|
+
* Whereas the original Word.ComboBoxContentControl object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Word.Interfaces.ComboBoxContentControlData`) that contains shallow copies of any loaded child properties from the original object.
|
|
94062
|
+
*/
|
|
94063
|
+
toJSON(): Word.Interfaces.ComboBoxContentControlData;
|
|
94064
|
+
}
|
|
93999
94065
|
/**
|
|
94000
94066
|
* Represents a field.
|
|
94001
94067
|
*
|
|
@@ -96017,10 +96083,11 @@ declare namespace Word {
|
|
|
96017
96083
|
* [Api set: WordApi 1.1]
|
|
96018
96084
|
*
|
|
96019
96085
|
* Note: The `contentControlType` parameter was introduced in WordApi 1.5. `PlainText` support was added in WordApi 1.5. `CheckBox` support was added in WordApi 1.7.
|
|
96086
|
+
* `DropDownList` and `ComboBox` support are currently in preview.
|
|
96020
96087
|
*
|
|
96021
|
-
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', or '
|
|
96088
|
+
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', 'CheckBox', 'DropDownList', or 'ComboBox'. The default is 'RichText'.
|
|
96022
96089
|
*/
|
|
96023
|
-
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | "RichText" | "PlainText" | "CheckBox"): Word.ContentControl;
|
|
96090
|
+
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | Word.ContentControlType.dropDownList | Word.ContentControlType.comboBox | "RichText" | "PlainText" | "CheckBox" | "DropDownList" | "ComboBox"): Word.ContentControl;
|
|
96024
96091
|
/**
|
|
96025
96092
|
* Inserts a document into the paragraph at the specified location.
|
|
96026
96093
|
*
|
|
@@ -96783,8 +96850,7 @@ declare namespace Word {
|
|
|
96783
96850
|
To highlight the text permanently, set the range's Font.HighlightColor.
|
|
96784
96851
|
*
|
|
96785
96852
|
* @remarks
|
|
96786
|
-
* [Api set: WordApi
|
|
96787
|
-
* @beta
|
|
96853
|
+
* [Api set: WordApi 1.8]
|
|
96788
96854
|
*/
|
|
96789
96855
|
highlight(): void;
|
|
96790
96856
|
/**
|
|
@@ -96825,10 +96891,11 @@ declare namespace Word {
|
|
|
96825
96891
|
* [Api set: WordApi 1.1]
|
|
96826
96892
|
*
|
|
96827
96893
|
* Note: The `contentControlType` parameter was introduced in WordApi 1.5. `PlainText` support was added in WordApi 1.5. `CheckBox` support was added in WordApi 1.7.
|
|
96894
|
+
* `DropDownList` and `ComboBox` support are currently in preview.
|
|
96828
96895
|
*
|
|
96829
|
-
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', or '
|
|
96896
|
+
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', 'CheckBox', 'DropDownList', or 'ComboBox'. The default is 'RichText'.
|
|
96830
96897
|
*/
|
|
96831
|
-
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | "RichText" | "PlainText" | "CheckBox"): Word.ContentControl;
|
|
96898
|
+
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | Word.ContentControlType.dropDownList | Word.ContentControlType.comboBox | "RichText" | "PlainText" | "CheckBox" | "DropDownList" | "ComboBox"): Word.ContentControl;
|
|
96832
96899
|
/**
|
|
96833
96900
|
* Inserts an endnote. The endnote reference is placed after the range.
|
|
96834
96901
|
*
|
|
@@ -96995,8 +97062,7 @@ declare namespace Word {
|
|
|
96995
97062
|
* Removes the highlight added by the Highlight function if any.
|
|
96996
97063
|
*
|
|
96997
97064
|
* @remarks
|
|
96998
|
-
* [Api set: WordApi
|
|
96999
|
-
* @beta
|
|
97065
|
+
* [Api set: WordApi 1.8]
|
|
97000
97066
|
*/
|
|
97001
97067
|
removeHighlight(): void;
|
|
97002
97068
|
/**
|
|
@@ -99944,8 +100010,7 @@ declare namespace Word {
|
|
|
99944
100010
|
/**
|
|
99945
100011
|
* Represents an action in the annotation pop-up.
|
|
99946
100012
|
* @remarks
|
|
99947
|
-
* [Api set: WordApi
|
|
99948
|
-
* @beta
|
|
100013
|
+
* [Api set: WordApi 1.8]
|
|
99949
100014
|
*/
|
|
99950
100015
|
annotationPopupAction = "AnnotationPopupAction",
|
|
99951
100016
|
}
|
|
@@ -99967,47 +100032,6 @@ declare namespace Word {
|
|
|
99967
100032
|
*/
|
|
99968
100033
|
remote = "Remote",
|
|
99969
100034
|
}
|
|
99970
|
-
/**
|
|
99971
|
-
* Provides information about the content control that raised an event.
|
|
99972
|
-
*
|
|
99973
|
-
* @remarks
|
|
99974
|
-
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
99975
|
-
* @beta
|
|
99976
|
-
*/
|
|
99977
|
-
interface ContentControlEventArgs {
|
|
99978
|
-
/**
|
|
99979
|
-
* The object that raised the event. Load this object to get its properties.
|
|
99980
|
-
*
|
|
99981
|
-
* @remarks
|
|
99982
|
-
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
99983
|
-
* @beta
|
|
99984
|
-
*/
|
|
99985
|
-
contentControl: Word.ContentControl;
|
|
99986
|
-
/**
|
|
99987
|
-
* The event type. See Word.EventType for details.
|
|
99988
|
-
*
|
|
99989
|
-
* @remarks
|
|
99990
|
-
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
99991
|
-
* @beta
|
|
99992
|
-
*/
|
|
99993
|
-
eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "CommentDeleted" | "CommentSelected" | "CommentDeselected" | "CommentChanged" | "CommentAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
|
|
99994
|
-
/**
|
|
99995
|
-
* Gets the content control IDs.
|
|
99996
|
-
*
|
|
99997
|
-
* @remarks
|
|
99998
|
-
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
99999
|
-
* @beta
|
|
100000
|
-
*/
|
|
100001
|
-
ids: number[];
|
|
100002
|
-
/**
|
|
100003
|
-
* The source of the event. It can be local or remote (through coauthoring).
|
|
100004
|
-
*
|
|
100005
|
-
* @remarks
|
|
100006
|
-
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
100007
|
-
* @beta
|
|
100008
|
-
*/
|
|
100009
|
-
source: Word.EventSource | "Local" | "Remote";
|
|
100010
|
-
}
|
|
100011
100035
|
/**
|
|
100012
100036
|
* Provides information about the content control that raised contentControlAdded event.
|
|
100013
100037
|
*
|
|
@@ -104049,7 +104073,7 @@ declare namespace Word {
|
|
|
104049
104073
|
/** An interface for updating data on the ContentControlListItem object, for use in `contentControlListItem.set({ ... })`. */
|
|
104050
104074
|
interface ContentControlListItemUpdateData {
|
|
104051
104075
|
/**
|
|
104052
|
-
* Specifies the display text of a list item for a dropdown list content control.
|
|
104076
|
+
* Specifies the display text of a list item for a dropdown list or combo box content control.
|
|
104053
104077
|
*
|
|
104054
104078
|
* @remarks
|
|
104055
104079
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -104065,7 +104089,7 @@ declare namespace Word {
|
|
|
104065
104089
|
*/
|
|
104066
104090
|
index?: number;
|
|
104067
104091
|
/**
|
|
104068
|
-
* Specifies the programmatic value of a list item for a dropdown list content control.
|
|
104092
|
+
* Specifies the programmatic value of a list item for a dropdown list or combo box content control.
|
|
104069
104093
|
*
|
|
104070
104094
|
* @remarks
|
|
104071
104095
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -105622,6 +105646,14 @@ declare namespace Word {
|
|
|
105622
105646
|
* [Api set: WordApi 1.7]
|
|
105623
105647
|
*/
|
|
105624
105648
|
checkboxContentControl?: Word.Interfaces.CheckboxContentControlData;
|
|
105649
|
+
/**
|
|
105650
|
+
* Specifies the combo box-related data if the content control's type is 'ComboBox'. It's null otherwise.
|
|
105651
|
+
*
|
|
105652
|
+
* @remarks
|
|
105653
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
105654
|
+
* @beta
|
|
105655
|
+
*/
|
|
105656
|
+
comboBoxContentControl?: Word.Interfaces.ComboBoxContentControlData;
|
|
105625
105657
|
/**
|
|
105626
105658
|
* Gets the collection of content control objects in the content control.
|
|
105627
105659
|
*
|
|
@@ -105789,7 +105821,7 @@ declare namespace Word {
|
|
|
105789
105821
|
/** An interface describing the data returned by calling `contentControlListItem.toJSON()`. */
|
|
105790
105822
|
interface ContentControlListItemData {
|
|
105791
105823
|
/**
|
|
105792
|
-
* Specifies the display text of a list item for a dropdown list content control.
|
|
105824
|
+
* Specifies the display text of a list item for a dropdown list or combo box content control.
|
|
105793
105825
|
*
|
|
105794
105826
|
* @remarks
|
|
105795
105827
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -105805,7 +105837,7 @@ declare namespace Word {
|
|
|
105805
105837
|
*/
|
|
105806
105838
|
index?: number;
|
|
105807
105839
|
/**
|
|
105808
|
-
* Specifies the programmatic value of a list item for a dropdown list content control.
|
|
105840
|
+
* Specifies the programmatic value of a list item for a dropdown list or combo box content control.
|
|
105809
105841
|
*
|
|
105810
105842
|
* @remarks
|
|
105811
105843
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -106113,6 +106145,9 @@ declare namespace Word {
|
|
|
106113
106145
|
/** An interface describing the data returned by calling `dropDownListContentControl.toJSON()`. */
|
|
106114
106146
|
interface DropDownListContentControlData {
|
|
106115
106147
|
}
|
|
106148
|
+
/** An interface describing the data returned by calling `comboBoxContentControl.toJSON()`. */
|
|
106149
|
+
interface ComboBoxContentControlData {
|
|
106150
|
+
}
|
|
106116
106151
|
/** An interface describing the data returned by calling `field.toJSON()`. */
|
|
106117
106152
|
interface FieldData {
|
|
106118
106153
|
/**
|
|
@@ -108477,7 +108512,7 @@ declare namespace Word {
|
|
|
108477
108512
|
type?: boolean;
|
|
108478
108513
|
}
|
|
108479
108514
|
/**
|
|
108480
|
-
* Represents a list item in a dropdown list content control.
|
|
108515
|
+
* Represents a list item in a dropdown list or combo box content control.
|
|
108481
108516
|
*
|
|
108482
108517
|
* @remarks
|
|
108483
108518
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -108489,7 +108524,7 @@ declare namespace Word {
|
|
|
108489
108524
|
*/
|
|
108490
108525
|
$all?: boolean;
|
|
108491
108526
|
/**
|
|
108492
|
-
* Specifies the display text of a list item for a dropdown list content control.
|
|
108527
|
+
* Specifies the display text of a list item for a dropdown list or combo box content control.
|
|
108493
108528
|
*
|
|
108494
108529
|
* @remarks
|
|
108495
108530
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -108505,7 +108540,7 @@ declare namespace Word {
|
|
|
108505
108540
|
*/
|
|
108506
108541
|
index?: boolean;
|
|
108507
108542
|
/**
|
|
108508
|
-
* Specifies the programmatic value of a list item for a dropdown list content control.
|
|
108543
|
+
* Specifies the programmatic value of a list item for a dropdown list or combo box content control.
|
|
108509
108544
|
*
|
|
108510
108545
|
* @remarks
|
|
108511
108546
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -108514,7 +108549,7 @@ declare namespace Word {
|
|
|
108514
108549
|
value?: boolean;
|
|
108515
108550
|
}
|
|
108516
108551
|
/**
|
|
108517
|
-
* Contains a collection of {@link Word.ContentControlListItem} objects that represent the items in a dropdown list content control.
|
|
108552
|
+
* Contains a collection of {@link Word.ContentControlListItem} objects that represent the items in a dropdown list or combo box content control.
|
|
108518
108553
|
*
|
|
108519
108554
|
* @remarks
|
|
108520
108555
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -108526,7 +108561,7 @@ declare namespace Word {
|
|
|
108526
108561
|
*/
|
|
108527
108562
|
$all?: boolean;
|
|
108528
108563
|
/**
|
|
108529
|
-
* For EACH ITEM in the collection: Specifies the display text of a list item for a dropdown list content control.
|
|
108564
|
+
* For EACH ITEM in the collection: Specifies the display text of a list item for a dropdown list or combo box content control.
|
|
108530
108565
|
*
|
|
108531
108566
|
* @remarks
|
|
108532
108567
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -108542,7 +108577,7 @@ declare namespace Word {
|
|
|
108542
108577
|
*/
|
|
108543
108578
|
index?: boolean;
|
|
108544
108579
|
/**
|
|
108545
|
-
* For EACH ITEM in the collection: Specifies the programmatic value of a list item for a dropdown list content control.
|
|
108580
|
+
* For EACH ITEM in the collection: Specifies the programmatic value of a list item for a dropdown list or combo box content control.
|
|
108546
108581
|
*
|
|
108547
108582
|
* @remarks
|
|
108548
108583
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -110674,7 +110709,7 @@ declare namespace Word {
|
|
|
110674
110709
|
*
|
|
110675
110710
|
* @remarks
|
|
110676
110711
|
* [Api set: WordApi 1.1]
|
|
110677
|
-
|
|
110712
|
+
*/
|
|
110678
110713
|
body?: Word.Interfaces.BodyLoadOptions;
|
|
110679
110714
|
}
|
|
110680
110715
|
/**
|
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.478",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "78689265f2fd891d7d8339a179df4b0fcc58030b98c6b90a0808f9bffb154a6c",
|
|
49
49
|
"typeScriptVersion": "4.7",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|