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.
@@ -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?: Element;
100
+ el?: HTMLElement;
101
101
 
102
102
  /** The fields to exclude from the form. */
103
103
  excludeFields?: Array<string>;
@@ -259,19 +259,19 @@ export interface ICalloutOptions {
259
259
  beakOrientation?: string;
260
260
 
261
261
  /** */
262
- boundingBox?: Element;
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?: Element;
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: Element;
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?: Element;
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
@@ -8,7 +8,7 @@ var sptypes_1 = require("./sptypes");
8
8
  * SharePoint REST Library
9
9
  */
10
10
  exports.$REST = {
11
- __ver: 7.63,
11
+ __ver: 7.65,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -92,8 +92,15 @@ exports.Helper = {
92
92
  // Add a "/" separator to the url
93
93
  targetInfo.endpoint += "/";
94
94
  }
95
- // Append the url
96
- targetInfo.endpoint += methodInfo.url;
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);
@@ -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?: Element;
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?: Element;
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?: Element;
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: Element;
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?: Element;
3023
+ html?: HTMLElement;
3024
3024
 
3025
3025
  /** A Boolean value that specifies whether the Close button appears on the dialog. */
3026
3026
  showClose?: boolean;