gd-sprest 7.7.8 → 7.8.0
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/spCfg.d.ts +6 -0
- package/build/helper/spCfg.js +5 -1
- 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/spCfg.d.ts
CHANGED
|
@@ -414,6 +414,9 @@ export interface ISPCfgViewInfo {
|
|
|
414
414
|
/** The JSLink property. */
|
|
415
415
|
JSLink?: string;
|
|
416
416
|
|
|
417
|
+
/** The row limit property. */
|
|
418
|
+
RowLimit?: number;
|
|
419
|
+
|
|
417
420
|
/** The view fields. */
|
|
418
421
|
ViewFields?: Array<string>;
|
|
419
422
|
|
|
@@ -465,6 +468,9 @@ export interface ISPConfig {
|
|
|
465
468
|
/** The configuration. */
|
|
466
469
|
_configuration: ISPConfigProps;
|
|
467
470
|
|
|
471
|
+
/** Gets the web url for the solution assets. */
|
|
472
|
+
getWebUrl(): string;
|
|
473
|
+
|
|
468
474
|
/**
|
|
469
475
|
* Method to install the configuration
|
|
470
476
|
*/
|
package/build/helper/spCfg.js
CHANGED
|
@@ -472,6 +472,7 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
472
472
|
// Add the view
|
|
473
473
|
views.add({
|
|
474
474
|
Title: cfg.ViewName,
|
|
475
|
+
RowLimit: cfg.RowLimit,
|
|
475
476
|
ViewQuery: cfg.ViewQuery
|
|
476
477
|
}).execute(function (view) {
|
|
477
478
|
// Ensure it exists
|
|
@@ -1010,13 +1011,14 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
1010
1011
|
}
|
|
1011
1012
|
}
|
|
1012
1013
|
// See if we are updating the view properties
|
|
1013
|
-
if (typeof (cfg.Default) === "boolean" || cfg.JSLink || cfg.ViewQuery) {
|
|
1014
|
+
if (typeof (cfg.Default) === "boolean" || cfg.JSLink || cfg.RowLimit > 0 || cfg.ViewQuery) {
|
|
1014
1015
|
var props = {};
|
|
1015
1016
|
// Log
|
|
1016
1017
|
console.log("[gd-sprest][View] Updating the view properties for the '" + cfg.ViewName + "' view.");
|
|
1017
1018
|
// Set the properties
|
|
1018
1019
|
typeof (cfg.Default) === "boolean" ? props["DefaultView"] = cfg.Default : null;
|
|
1019
1020
|
cfg.JSLink ? props["JSLink"] = cfg.JSLink : null;
|
|
1021
|
+
cfg.RowLimit > 0 ? props["RowLimit"] = cfg.RowLimit : null;
|
|
1020
1022
|
cfg.ViewQuery ? props["ViewQuery"] = cfg.ViewQuery : null;
|
|
1021
1023
|
// Update the view
|
|
1022
1024
|
view.update(props).execute(true);
|
|
@@ -1117,6 +1119,8 @@ exports.SPConfig = function (cfg, webUrl) {
|
|
|
1117
1119
|
return {
|
|
1118
1120
|
// The configuration
|
|
1119
1121
|
_configuration: cfg,
|
|
1122
|
+
// Method to get the web url to target
|
|
1123
|
+
getWebUrl: function () { return webUrl; },
|
|
1120
1124
|
// Method to install the configuration
|
|
1121
1125
|
install: function () {
|
|
1122
1126
|
// Return a promise
|
package/build/rest.js
CHANGED
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -3861,6 +3861,9 @@ declare module 'gd-sprest/helper/spCfg' {
|
|
|
3861
3861
|
/** The JSLink property. */
|
|
3862
3862
|
JSLink?: string;
|
|
3863
3863
|
|
|
3864
|
+
/** The row limit property. */
|
|
3865
|
+
RowLimit?: number;
|
|
3866
|
+
|
|
3864
3867
|
/** The view fields. */
|
|
3865
3868
|
ViewFields?: Array<string>;
|
|
3866
3869
|
|
|
@@ -3912,6 +3915,9 @@ declare module 'gd-sprest/helper/spCfg' {
|
|
|
3912
3915
|
/** The configuration. */
|
|
3913
3916
|
_configuration: ISPConfigProps;
|
|
3914
3917
|
|
|
3918
|
+
/** Gets the web url for the solution assets. */
|
|
3919
|
+
getWebUrl(): string;
|
|
3920
|
+
|
|
3915
3921
|
/**
|
|
3916
3922
|
* Method to install the configuration
|
|
3917
3923
|
*/
|