gd-sprest 7.2.7 → 7.2.8
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/@types/helper/sp.d.ts +6 -0
- package/build/helper/sp/index.js +2 -0
- package/build/helper/sp/ribbon.js +1 -0
- package/build/rest.js +1 -1
- package/dist/gd-sprest.d.ts +6 -0
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/@types/helper/sp.d.ts
CHANGED
|
@@ -42,6 +42,11 @@ export interface ISPComponents {
|
|
|
42
42
|
*/
|
|
43
43
|
Notify: INotify,
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Ribbon
|
|
47
|
+
*/
|
|
48
|
+
Ribbon: IRibbon,
|
|
49
|
+
|
|
45
50
|
/**
|
|
46
51
|
* ### How to wait for a library to be loaded
|
|
47
52
|
* ```ts
|
|
@@ -539,6 +544,7 @@ export interface INotify {
|
|
|
539
544
|
* Ribbon
|
|
540
545
|
*/
|
|
541
546
|
export interface IRibbon {
|
|
547
|
+
exists: boolean;
|
|
542
548
|
PageState: {
|
|
543
549
|
Handlers: {
|
|
544
550
|
isApproveEnabled: boolean;
|
package/build/helper/sp/index.js
CHANGED
|
@@ -4,12 +4,14 @@ exports.SP = void 0;
|
|
|
4
4
|
var calloutManager_1 = require("./calloutManager");
|
|
5
5
|
var modalDialog_1 = require("./modalDialog");
|
|
6
6
|
var notify_1 = require("./notify");
|
|
7
|
+
var ribbon_1 = require("./ribbon");
|
|
7
8
|
var sod_1 = require("./sod");
|
|
8
9
|
var status_1 = require("./status");
|
|
9
10
|
exports.SP = {
|
|
10
11
|
CalloutManager: calloutManager_1.CalloutManager,
|
|
11
12
|
ModalDialog: modalDialog_1.ModalDialog,
|
|
12
13
|
Notify: notify_1.Notify,
|
|
14
|
+
Ribbon: ribbon_1.Ribbon,
|
|
13
15
|
SOD: sod_1.SOD,
|
|
14
16
|
Status: status_1.Status
|
|
15
17
|
};
|
|
@@ -5,6 +5,7 @@ exports.Ribbon = void 0;
|
|
|
5
5
|
* Ribbon
|
|
6
6
|
*/
|
|
7
7
|
exports.Ribbon = {
|
|
8
|
+
get exists() { return window["Ribbon"] != null && window["Ribbon"].PageState != null; },
|
|
8
9
|
PageState: {
|
|
9
10
|
Handlers: {
|
|
10
11
|
get isApproveEnabled() { return window["Ribbon"] && window["Ribbon"].PageState && window["Ribbon"].PageState.Handlers ? window["Ribbon"].PageState.Handlers.isApproveEnabled : null; },
|
package/build/rest.js
CHANGED
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -2495,6 +2495,11 @@ declare module 'gd-sprest/helper/sp' {
|
|
|
2495
2495
|
*/
|
|
2496
2496
|
Notify: INotify,
|
|
2497
2497
|
|
|
2498
|
+
/**
|
|
2499
|
+
* Ribbon
|
|
2500
|
+
*/
|
|
2501
|
+
Ribbon: IRibbon,
|
|
2502
|
+
|
|
2498
2503
|
/**
|
|
2499
2504
|
* ### How to wait for a library to be loaded
|
|
2500
2505
|
* ```ts
|
|
@@ -2992,6 +2997,7 @@ declare module 'gd-sprest/helper/sp' {
|
|
|
2992
2997
|
* Ribbon
|
|
2993
2998
|
*/
|
|
2994
2999
|
export interface IRibbon {
|
|
3000
|
+
exists: boolean;
|
|
2995
3001
|
PageState: {
|
|
2996
3002
|
Handlers: {
|
|
2997
3003
|
isApproveEnabled: boolean;
|