@types/office-js 1.0.395 → 1.0.396
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 +51 -7
- 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: Thu, 20 Jun 2024 16:08:33 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -3072,6 +3072,30 @@ declare namespace Office {
|
|
|
3072
3072
|
*/
|
|
3073
3073
|
Headers
|
|
3074
3074
|
}
|
|
3075
|
+
/**
|
|
3076
|
+
* Specifies the Office theme that's currently selected.
|
|
3077
|
+
*
|
|
3078
|
+
* For information on Office themes, see
|
|
3079
|
+
* {@link https://support.microsoft.com/office/63e65e1c-08d4-4dea-820e-335f54672310 | Change the look and feel of Microsoft 365}.
|
|
3080
|
+
*/
|
|
3081
|
+
enum ThemeId {
|
|
3082
|
+
/**
|
|
3083
|
+
* The currently selected Office theme is **Black**.
|
|
3084
|
+
*/
|
|
3085
|
+
Black,
|
|
3086
|
+
/**
|
|
3087
|
+
* The currently selected Office theme is **Colorful**.
|
|
3088
|
+
*/
|
|
3089
|
+
Colorful,
|
|
3090
|
+
/**
|
|
3091
|
+
* The currently selected Office theme is **Dark Gray**.
|
|
3092
|
+
*/
|
|
3093
|
+
DarkGray,
|
|
3094
|
+
/**
|
|
3095
|
+
* The currently selected Office theme is **White**.
|
|
3096
|
+
*/
|
|
3097
|
+
White
|
|
3098
|
+
}
|
|
3075
3099
|
/**
|
|
3076
3100
|
* Specifies whether values, such as numbers and dates, returned by the invoked method are returned with their formatting applied.
|
|
3077
3101
|
*
|
|
@@ -6979,10 +7003,14 @@ declare namespace Office {
|
|
|
6979
7003
|
/**
|
|
6980
7004
|
* Provides access to the properties for Office theme colors.
|
|
6981
7005
|
*
|
|
6982
|
-
* Using Office theme colors lets you coordinate the color scheme of your add-in with the current Office theme selected by the user
|
|
6983
|
-
*
|
|
7006
|
+
* Using Office theme colors lets you coordinate the color scheme of your add-in with the current Office theme selected by the user.
|
|
7007
|
+
* The user sets a theme in an Office application through **File** \> **Account** or **Office Account** \> **Office Theme**.
|
|
7008
|
+
* The selected theme is then applied across all Office applications. Using Office theme colors is appropriate for mail and
|
|
6984
7009
|
* task pane add-ins.
|
|
6985
7010
|
*
|
|
7011
|
+
* For more information on Office themes, see
|
|
7012
|
+
* {@link https://support.microsoft.com/office/63e65e1c-08d4-4dea-820e-335f54672310 | Change the look and feel of Microsoft 365}.
|
|
7013
|
+
*
|
|
6986
7014
|
* @remarks
|
|
6987
7015
|
*
|
|
6988
7016
|
* *Supported applications, by platform*
|
|
@@ -6997,7 +7025,7 @@ declare namespace Office {
|
|
|
6997
7025
|
* </tr>
|
|
6998
7026
|
* <tr>
|
|
6999
7027
|
* <td><strong>Excel</strong></td>
|
|
7000
|
-
* <td>
|
|
7028
|
+
* <td>Supported</td>
|
|
7001
7029
|
* <td>Supported</td>
|
|
7002
7030
|
* <td>Supported</td>
|
|
7003
7031
|
* <td>Supported</td>
|
|
@@ -7005,15 +7033,15 @@ declare namespace Office {
|
|
|
7005
7033
|
* </tr>
|
|
7006
7034
|
* <tr>
|
|
7007
7035
|
* <td><strong>Outlook</strong></td>
|
|
7008
|
-
* <td>Supported
|
|
7009
|
-
* <td>Supported
|
|
7036
|
+
* <td>Supported</td>
|
|
7037
|
+
* <td>Supported</td>
|
|
7010
7038
|
* <td>Not available</td>
|
|
7011
7039
|
* <td>Not available</td>
|
|
7012
7040
|
* <td>Not available</td>
|
|
7013
7041
|
* </tr>
|
|
7014
7042
|
* <tr>
|
|
7015
7043
|
* <td><strong>PowerPoint</strong></td>
|
|
7016
|
-
* <td>
|
|
7044
|
+
* <td>Supported</td>
|
|
7017
7045
|
* <td>Supported</td>
|
|
7018
7046
|
* <td>Supported</td>
|
|
7019
7047
|
* <td>Supported</td>
|
|
@@ -7029,7 +7057,7 @@ declare namespace Office {
|
|
|
7029
7057
|
* </tr>
|
|
7030
7058
|
* </table>
|
|
7031
7059
|
*
|
|
7032
|
-
*
|
|
7060
|
+
* **Important**: In Outlook, the Office theme API is supported starting in
|
|
7033
7061
|
* {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.14/outlook-requirement-set-1.14 | Mailbox requirement set 1.14}.
|
|
7034
7062
|
* It isn't supported in Outlook add-ins that implement {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
|
|
7035
7063
|
*/
|
|
@@ -7050,6 +7078,22 @@ declare namespace Office {
|
|
|
7050
7078
|
* Gets the Office theme control foreground color as a hexadecimal color triplet (e.g., "#FFA500").
|
|
7051
7079
|
*/
|
|
7052
7080
|
controlForegroundColor: string;
|
|
7081
|
+
/**
|
|
7082
|
+
* Returns `true` if the Office theme that's currently selected is **Black** (dark mode) or **Dark Gray**.
|
|
7083
|
+
*
|
|
7084
|
+
* @remarks
|
|
7085
|
+
*
|
|
7086
|
+
* **Important**: The `isDarkTheme` property isn't yet supported in Outlook.
|
|
7087
|
+
*/
|
|
7088
|
+
isDarkTheme: boolean;
|
|
7089
|
+
/**
|
|
7090
|
+
* Gets the Office theme that's currently selected.
|
|
7091
|
+
*
|
|
7092
|
+
* @remarks
|
|
7093
|
+
*
|
|
7094
|
+
* **Important**: The `themeId` property isn't yet supported in Outlook.
|
|
7095
|
+
*/
|
|
7096
|
+
themeId: ThemeId;
|
|
7053
7097
|
}
|
|
7054
7098
|
/**
|
|
7055
7099
|
* Specifies a cell, or row, or column, by its zero-based row and/or column number. Example: `{row: 3, column: 4}` specifies the cell in the 3rd
|
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.396",
|
|
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": "b89b47f8ede1482e3013371cd555c5438702548ff0ee78c159b312f2a1950722",
|
|
49
49
|
"typeScriptVersion": "4.7"
|
|
50
50
|
}
|