gd-sprest 7.6.3 → 7.6.5
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/listForm.d.ts +1 -1
- package/@types/helper/sp.d.ts +4 -4
- package/build/rest.js +1 -1
- package/build/utils/helper.js +9 -2
- package/dist/gd-sprest.d.ts +5 -5
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
|
@@ -97,7 +97,7 @@ export interface IListFormDisplay {
|
|
|
97
97
|
*/
|
|
98
98
|
export interface IListFormDisplayProps {
|
|
99
99
|
/** The element to render the form to. */
|
|
100
|
-
el?:
|
|
100
|
+
el?: HTMLElement;
|
|
101
101
|
|
|
102
102
|
/** The fields to exclude from the form. */
|
|
103
103
|
excludeFields?: Array<string>;
|
package/@types/helper/sp.d.ts
CHANGED
|
@@ -259,19 +259,19 @@ export interface ICalloutOptions {
|
|
|
259
259
|
beakOrientation?: string;
|
|
260
260
|
|
|
261
261
|
/** */
|
|
262
|
-
boundingBox?:
|
|
262
|
+
boundingBox?: HTMLElement;
|
|
263
263
|
|
|
264
264
|
/** The html to be displayed in the callout. */
|
|
265
265
|
content?: string;
|
|
266
266
|
|
|
267
267
|
/** Element to be displayed in the callout. */
|
|
268
|
-
contentElement?:
|
|
268
|
+
contentElement?: HTMLElement;
|
|
269
269
|
|
|
270
270
|
/** The width in pixels. Default - 350px */
|
|
271
271
|
contentWidth?: number;
|
|
272
272
|
|
|
273
273
|
/** The element to apply the callout to. */
|
|
274
|
-
launchPoint:
|
|
274
|
+
launchPoint: HTMLElement;
|
|
275
275
|
|
|
276
276
|
/** Event triggered after the callout is closed. */
|
|
277
277
|
onClosedCallback?(callout: ICallout);
|
|
@@ -329,7 +329,7 @@ export interface IDialogOptions {
|
|
|
329
329
|
height?: number;
|
|
330
330
|
|
|
331
331
|
/** An html element to display in the dialog. If both html and url are specified, url takes precedence. Either url or html must be specified. */
|
|
332
|
-
html?:
|
|
332
|
+
html?: HTMLElement;
|
|
333
333
|
|
|
334
334
|
/** A Boolean value that specifies whether the Close button appears on the dialog. */
|
|
335
335
|
showClose?: boolean;
|
package/build/rest.js
CHANGED
package/build/utils/helper.js
CHANGED
|
@@ -92,8 +92,15 @@ exports.Helper = {
|
|
|
92
92
|
// Add a "/" separator to the url
|
|
93
93
|
targetInfo.endpoint += "/";
|
|
94
94
|
}
|
|
95
|
-
//
|
|
96
|
-
targetInfo.endpoint
|
|
95
|
+
// See if we already have a qs defined and appending another qs
|
|
96
|
+
if (methodInfo.url.indexOf("?") == 0 && targetInfo.endpoint.indexOf('?') > 0) {
|
|
97
|
+
// Append the url
|
|
98
|
+
targetInfo.endpoint += '&' + methodInfo.url.substring(1);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
// Append the url
|
|
102
|
+
targetInfo.endpoint += methodInfo.url;
|
|
103
|
+
}
|
|
97
104
|
}
|
|
98
105
|
// Create a new object
|
|
99
106
|
var obj = new _1.Base(targetInfo);
|
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -2371,7 +2371,7 @@ declare module 'gd-sprest/helper/listForm' {
|
|
|
2371
2371
|
*/
|
|
2372
2372
|
export interface IListFormDisplayProps {
|
|
2373
2373
|
/** The element to render the form to. */
|
|
2374
|
-
el?:
|
|
2374
|
+
el?: HTMLElement;
|
|
2375
2375
|
|
|
2376
2376
|
/** The fields to exclude from the form. */
|
|
2377
2377
|
excludeFields?: Array<string>;
|
|
@@ -2950,19 +2950,19 @@ declare module 'gd-sprest/helper/sp' {
|
|
|
2950
2950
|
beakOrientation?: string;
|
|
2951
2951
|
|
|
2952
2952
|
/** */
|
|
2953
|
-
boundingBox?:
|
|
2953
|
+
boundingBox?: HTMLElement;
|
|
2954
2954
|
|
|
2955
2955
|
/** The html to be displayed in the callout. */
|
|
2956
2956
|
content?: string;
|
|
2957
2957
|
|
|
2958
2958
|
/** Element to be displayed in the callout. */
|
|
2959
|
-
contentElement?:
|
|
2959
|
+
contentElement?: HTMLElement;
|
|
2960
2960
|
|
|
2961
2961
|
/** The width in pixels. Default - 350px */
|
|
2962
2962
|
contentWidth?: number;
|
|
2963
2963
|
|
|
2964
2964
|
/** The element to apply the callout to. */
|
|
2965
|
-
launchPoint:
|
|
2965
|
+
launchPoint: HTMLElement;
|
|
2966
2966
|
|
|
2967
2967
|
/** Event triggered after the callout is closed. */
|
|
2968
2968
|
onClosedCallback?(callout: ICallout);
|
|
@@ -3020,7 +3020,7 @@ declare module 'gd-sprest/helper/sp' {
|
|
|
3020
3020
|
height?: number;
|
|
3021
3021
|
|
|
3022
3022
|
/** An html element to display in the dialog. If both html and url are specified, url takes precedence. Either url or html must be specified. */
|
|
3023
|
-
html?:
|
|
3023
|
+
html?: HTMLElement;
|
|
3024
3024
|
|
|
3025
3025
|
/** A Boolean value that specifies whether the Close button appears on the dialog. */
|
|
3026
3026
|
showClose?: boolean;
|