From 846bce91dc2a1acee0391f6d74f1bcc129cc2cda Mon Sep 17 00:00:00 2001 From: zinoulink Date: Tue, 20 Feb 2024 21:36:30 +0000 Subject: [PATCH 1/3] Change the name to SharepointSharp --- .github/workflows/github-twittction.yml | 2 +- README.md | 22 ++-- browser/sharepointplus.js | 2 +- changelog.md | 52 ++++---- dist/files/checkin.js | 4 +- dist/files/createFile.js | 14 +-- dist/files/createFolder.js | 2 +- dist/lists/add.js | 8 +- dist/lists/addAttachment.js | 12 +- dist/lists/get.js | 6 +- dist/lists/getAttachment.js | 4 +- dist/lists/getContentTypeInfo.js | 8 +- dist/lists/getContentTypes.js | 4 +- dist/lists/getVersions.js | 6 +- dist/lists/getWorkflowID.js | 14 +-- dist/lists/hasPermission.js | 6 +- dist/lists/history.js | 4 +- dist/lists/info.js | 4 +- dist/lists/list.js | 2 +- dist/lists/moderate.js | 8 +- dist/lists/remove.js | 4 +- dist/lists/removeAttachment.js | 10 +- dist/lists/restoreVersion.js | 12 +- dist/lists/setReadOnly.js | 4 +- dist/lists/startWorkflow.js | 6 +- dist/lists/startWorkflow2013.js | 6 +- dist/lists/stopWorkflow.js | 16 +-- dist/lists/update.js | 10 +- dist/lists/view.js | 8 +- dist/lists/views.js | 4 +- dist/main.js | 24 ++-- dist/modals/notify.js | 4 +- dist/people/distributionLists.js | 2 +- dist/people/getUserInfo.js | 4 +- dist/people/groupMembers.js | 2 +- dist/people/isMember.js | 4 +- dist/people/usergroups.js | 2 +- dist/utils/ajax.js | 4 +- dist/utils/getURL.js | 2 +- dist/utils/hasREST.js | 2 +- dist/utils/toDate.js | 2 +- dist/utils/toXSLString.js | 2 +- docs/core.html | 22 ++-- docs/files.html | 30 ++--- docs/index.html | 124 +++++++++---------- docs/lists.html | 80 ++++++------ docs/modals.html | 64 +++++++--- docs/node.html | 32 ++--- docs/people.html | 36 +++--- docs/utils.html | 127 ++++++++++++++----- es5/files/checkin.js | 4 +- es5/files/createFile.js | 14 +-- es5/files/createFolder.js | 2 +- es5/lists/add.js | 8 +- es5/lists/addAttachment.js | 12 +- es5/lists/get.js | 6 +- es5/lists/getAttachment.js | 4 +- es5/lists/getContentTypeInfo.js | 8 +- es5/lists/getContentTypes.js | 4 +- es5/lists/getVersions.js | 6 +- es5/lists/getWorkflowID.js | 14 +-- es5/lists/hasPermission.js | 6 +- es5/lists/history.js | 4 +- es5/lists/info.js | 4 +- es5/lists/list.js | 2 +- es5/lists/moderate.js | 8 +- es5/lists/remove.js | 4 +- es5/lists/removeAttachment.js | 10 +- es5/lists/restoreVersion.js | 12 +- es5/lists/setReadOnly.js | 4 +- es5/lists/startWorkflow.js | 6 +- es5/lists/startWorkflow2013.js | 6 +- es5/lists/stopWorkflow.js | 16 +-- es5/lists/update.js | 10 +- es5/lists/view.js | 8 +- es5/lists/views.js | 4 +- es5/main.js | 24 ++-- es5/modals/notify.js | 4 +- es5/people/distributionLists.js | 2 +- es5/people/getUserInfo.js | 4 +- es5/people/groupMembers.js | 2 +- es5/people/isMember.js | 4 +- es5/people/usergroups.js | 2 +- es5/utils/ajax.js | 4 +- es5/utils/getURL.js | 2 +- es5/utils/hasREST.js | 2 +- es5/utils/toDate.js | 2 +- es5/utils/toXSLString.js | 2 +- jsdoc_template/publish.js | 2 +- jsdoc_template/tmpl/container.tmpl | 2 +- jsdoc_template/tmpl/layout.tmpl | 18 +-- jsdoc_template/tmpl/mainpage.tmpl | 106 ++++++++-------- package.json | 8 +- src/files/checkin.js | 4 +- src/files/createFile.js | 14 +-- src/files/createFolder.js | 2 +- src/lists/add.js | 8 +- src/lists/addAttachment.js | 12 +- src/lists/get.js | 6 +- src/lists/getAttachment.js | 4 +- src/lists/getContentTypeInfo.js | 8 +- src/lists/getContentTypes.js | 4 +- src/lists/getVersions.js | 6 +- src/lists/getWorkflowID.js | 14 +-- src/lists/hasPermission.js | 6 +- src/lists/history.js | 4 +- src/lists/info.js | 4 +- src/lists/list.js | 2 +- src/lists/moderate.js | 8 +- src/lists/remove.js | 4 +- src/lists/removeAttachment.js | 10 +- src/lists/restoreVersion.js | 12 +- src/lists/setReadOnly.js | 4 +- src/lists/startWorkflow.js | 6 +- src/lists/startWorkflow2013.js | 6 +- src/lists/stopWorkflow.js | 16 +-- src/lists/update.js | 10 +- src/lists/view.js | 8 +- src/lists/views.js | 4 +- src/main.js | 14 +-- src/modals/notify.js | 4 +- src/people/distributionLists.js | 2 +- src/people/getUserInfo.js | 4 +- src/people/groupMembers.js | 2 +- src/people/isMember.js | 4 +- src/people/usergroups.js | 2 +- src/utils/ajax.js | 4 +- src/utils/getURL.js | 2 +- src/utils/hasREST.js | 2 +- src/utils/toDate.js | 2 +- src/utils/toXSLString.js | 2 +- tests/index.js | 50 ++++---- tests/tests.js | 156 ++++++++++++------------ webpack.config.js | 2 +- 134 files changed, 871 insertions(+), 776 deletions(-) diff --git a/.github/workflows/github-twittction.yml b/.github/workflows/github-twittction.yml index aad1e39..d7a7f0f 100644 --- a/.github/workflows/github-twittction.yml +++ b/.github/workflows/github-twittction.yml @@ -12,7 +12,7 @@ jobs: - name: GitHub Twittction uses: m1ner79/Github-Twittction@v1.0.1 with: - twitter_status: "[New Release] SharepointPlus ${{github.event.release.tag_name}} – review the changelog at ${{github.event.release.html_url}}" + twitter_status: "[New Release] SharepointSharp ${{github.event.release.tag_name}} – review the changelog at ${{github.event.release.html_url}}" twitter_consumer_key: ${{ secrets.TWITTER_API_KEY }} twitter_consumer_secret: ${{ secrets.TWITTER_API_SECRET_KEY }} twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN }} diff --git a/README.md b/README.md index 4b15daa..f747219 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,35 @@ -# SharepointPlus +# SharepointSharp -[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/aymkdn/sharepointplus.svg)](http://isitmaintained.com/project/aymkdn/sharepointplus "Average time to resolve an issue") -[![Percentage of issues still open](http://isitmaintained.com/badge/open/aymkdn/sharepointplus.svg)](http://isitmaintained.com/project/aymkdn/sharepointplus "Percentage of issues still open") -[![](https://data.jsdelivr.com/v1/package/npm/sharepointplus/badge)](https://www.jsdelivr.com/package/npm/sharepointplus) +[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/aymkdn/SharepointSharp.svg)](http://isitmaintained.com/project/aymkdn/SharepointSharp "Average time to resolve an issue") +[![Percentage of issues still open](http://isitmaintained.com/badge/open/aymkdn/SharepointSharp.svg)](http://isitmaintained.com/project/aymkdn/SharepointSharp "Percentage of issues still open") +[![](https://data.jsdelivr.com/v1/package/npm/SharepointSharp/badge)](https://www.jsdelivr.com/package/npm/SharepointSharp) -SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint. +SharepointSharp ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint. ## Documentation -Browse the [online documentation here](https://aymkdn.github.io/SharepointPlus/). +Browse the [online documentation here](https://aymkdn.github.io/SharepointSharp/). ## Quick Start ### Node Environment ```sh -npm install sharepointplus +npm install SharepointSharp ``` Then: ```javascript -import $SP from 'sharepointplus' +import $SP from 'SharepointSharp' ``` -Please, make sure to read [the documentation](https://aymkdn.github.io/SharepointPlus/) to optimize your bundle size. +Please, make sure to read [the documentation](https://aymkdn.github.io/SharepointSharp/) to optimize your bundle size. ### Browser Only To directly use it in a browser: ```html - + ``` ## Usage / Examples @@ -65,4 +65,4 @@ $SP().list('ListName').get({ ## More information -Please visit the [online documentation](https://aymkdn.github.io/SharepointPlus/) to know more. +Please visit the [online documentation](https://aymkdn.github.io/SharepointSharp/) to know more. diff --git a/browser/sharepointplus.js b/browser/sharepointplus.js index 35ec53a..2226894 100644 --- a/browser/sharepointplus.js +++ b/browser/sharepointplus.js @@ -1 +1 @@ -window.$SP=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=221)}([function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(144),r(39),r(2),r(3),r(6),r(146),r(30),r(4);var n=r(49),i=r(157);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var t;return t=regeneratorRuntime.mark((function t(r){var o,s,u,c,l,f,p,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.headers=r.headers||{},t.prev=1,o=!1,r.url.toLowerCase().indexOf("/_api/")>-1&&-1===r.url.toLowerCase().indexOf("_api/web/url")&&(void 0===r.headers.Accept&&(r.headers.Accept="application/json;odata="+e._SP_JSON_ACCEPT),void 0===r.headers["Content-Type"]&&(r.headers["Content-Type"]="application/json;odata="+e._SP_JSON_ACCEPT),void 0===r.headers["X-RequestDigest"]&&-1===r.url.indexOf("contextinfo")&&(o=!0)),r.url.toLowerCase().indexOf("_vti_bin/client.svc/processquery")>-1&&void 0===r.headers["X-RequestDigest"]&&(o=!0),!o){t.next=11;break}return t.next=8,n.a.call(this,{url:r.url.toLowerCase().split("_api")[0]});case 8:return s=t.sent,r.headers["X-RequestDigest"]=s,t.abrupt("return",a.call(this,r));case 11:if(void 0===r.headers["Content-Type"]&&(r.headers["Content-Type"]="text/xml; charset=utf-8"),!e._SP_ISBROWSER){t.next=36;break}return"POST"!==r.method||r.body||(r.body=""),t.next=16,new Promise((function(e){Object(i.a)(r,(function(t,r,n){e({code:t,responseText:r,request:n})}))}));case 16:if(u=t.sent,c=u.code,l=u.responseText,f=u.request,!(c>=200&&c<300&&"Error"!==l&&"Abort"!==l&&"Timeout"!==l)){t.next=24;break}return p=f.responseType&&"document"!==f.responseType?l:f.responseXML||f.responseText,(f.getResponseHeader("Content-Type")||"").indexOf("/json")>-1&&"string"==typeof p&&(p=JSON.parse(p)),t.abrupt("return",Promise.resolve(p));case 24:if(!(401==c&&r.headers["X-RequestDigest"]&&new Date(r.headers["X-RequestDigest"].split(",")[1])<'+e+' xmlns="'+(r=r||"http://schemas.microsoft.com/sharepoint/soap/").replace(/webpartpages\/$/,"webpartpages")+'">'+t+""}},function(e,t,r){var n=r(106),i=r(37),o=r(171);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n,i,o,a,s=r(14),u=r(46),c=r(7),l=r(51),f=r(172),p=r(37),h=r(133),d=r(60),v=r(134),m=r(22),g=r(61),y=r(107),b=r(41),w=r(99),S=r(173),x=r(137),A=r(48),P=r(138).set,I=r(175),E=r(176),k=r(177),_=r(141),T=r(178),D=r(45),O=r(125),R=r(12),N=r(108),C=R("species"),L="Promise",j=D.get,V=D.set,M=D.getterFor(L),F=f,U=c.TypeError,W=c.document,B=c.process,G=l("fetch"),q=_.f,H=q,Y="process"==b(B),$=!!(W&&W.createEvent&&c.dispatchEvent),z=O(L,(function(){if(!(w(F)!==String(F))){if(66===N)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype.finally)return!0;if(N>=51&&/native code/.test(F))return!1;var e=F.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[C]=t,!(e.then((function(){}))instanceof t)})),X=z||!x((function(e){F.all(e).catch((function(){}))})),Q=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;I((function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var s,u,c,l=n[a++],f=o?l.ok:l.fail,p=l.resolve,h=l.reject,d=l.domain;try{f?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=i:(d&&d.enter(),s=f(i),d&&(d.exit(),c=!0)),s===l.promise?h(U("Promise-chain cycle")):(u=Q(s))?u.call(s,p,h):p(s)):h(i)}catch(e){d&&!c&&d.exit(),h(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&J(e,t)}))}},K=function(e,t,r){var n,i;$?((n=W.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(i=c["on"+e])?i(n):"unhandledrejection"===e&&k("Unhandled promise rejection",r)},J=function(e,t){P.call(c,(function(){var r,n=t.value;if(ee(t)&&(r=T((function(){Y?B.emit("unhandledRejection",n,e):K("unhandledrejection",e,n)})),t.rejection=Y||ee(t)?2:1,r.error))throw r.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){P.call(c,(function(){Y?B.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},re=function(e,t,r,n){return function(i){e(t,r,i,n)}},ne=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,Z(e,t,!0))},ie=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw U("Promise can't be resolved itself");var i=Q(r);i?I((function(){var n={done:!1};try{i.call(r,re(ie,e,n,t),re(ne,e,n,t))}catch(r){ne(e,n,r,t)}})):(t.value=r,t.state=1,Z(e,t,!1))}catch(r){ne(e,{done:!1},r,t)}}};z&&(F=function(e){y(this,F,L),g(e),n.call(this);var t=j(this);try{e(re(ie,this,t),re(ne,this,t))}catch(e){ne(this,t,e)}},(n=function(e){V(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(F.prototype,{then:function(e,t){var r=M(this),n=q(A(this,F));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Y?B.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Z(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(ne,e,t)},_.f=q=function(e){return e===F||e===o?new i(e):H(e)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var r=this;return new F((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(F,G.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:z},{Promise:F}),d(F,L,!1,!0),v(L),o=l(L),s({target:L,stat:!0,forced:z},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:u||z},{resolve:function(e){return E(u&&this===o?F:this,e)}}),s({target:L,stat:!0,forced:X},{all:function(e){var t=this,r=q(t),n=r.resolve,i=r.reject,o=T((function(){var r=g(t.resolve),o=[],a=0,s=1;S(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=q(t),n=r.reject,i=T((function(){var i=g(t.resolve);S(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===i)throw o;return T()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=P(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?h:f,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",h="completed",d={};function v(){}function m(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==r&&n.call(w,o)&&(y=w);var S=g.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){var t;this._invoke=function(r,i){function o(){return new Promise((function(t,o){!function t(r,i,o,a){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}(r,i,t,o)}))}return t=t?t.then(o,o):o()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r(2),r(3),r(6),r(13),r(4);var n=r(0),i=r(1);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(){return s.apply(this,arguments)}function s(){var e;return e=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.url){e.next=26;break}if(void 0===window.L_Menu_BaseUrl){e.next=5;break}return e.abrupt("return",Promise.resolve(u(window.L_Menu_BaseUrl)));case 5:if(void 0===window._spPageContextInfo||void 0===window._spPageContextInfo.webServerRelativeUrl){e.next=9;break}return e.abrupt("return",Promise.resolve(u(window._spPageContextInfo.webServerRelativeUrl)));case 9:return e.prev=9,e.next=12,n.a.call(this,{url:"/_vti_bin/Webs.asmx",body:Object(i.a)("WebUrlFromPageUrl",""+window.location.href.replace(/&/g,"&")+"")});case 12:if(t=e.sent,!(r=t.getElementsByTagName("WebUrlFromPageUrlResult")).length){e.next=18;break}return e.abrupt("return",Promise.resolve(u(r[0].firstChild.nodeValue.toLowerCase())));case 18:return e.abrupt("return",Promise.reject("[SharepointPlus 'getURL'] Unable to retrieve the URL"));case 19:e.next=24;break;case 21:return e.prev=21,e.t0=e.catch(9),e.abrupt("return",Promise.reject(e.t0));case 24:e.next=27;break;case 26:return e.abrupt("return",Promise.resolve(u(this.url)));case 27:case"end":return e.stop()}}),e,this,[[9,21]])})),(s=function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}function u(e){return""===e||"/"===e?window.location.protocol+"//"+window.location.host+"/":e}},function(e,t,r){"use strict";var n=r(14),i=r(78);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(10))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n,i=r(27),o=r(7),a=r(22),s=r(24),u=r(76),c=r(28),l=r(37),f=r(25).f,p=r(105),h=r(75),d=r(12),v=r(69),m=o.DataView,g=m&&m.prototype,y=o.Int8Array,b=y&&y.prototype,w=o.Uint8ClampedArray,S=w&&w.prototype,x=y&&p(y),A=b&&p(b),P=Object.prototype,I=P.isPrototypeOf,E=d("toStringTag"),k=v("TYPED_ARRAY_TAG"),_=!(!o.ArrayBuffer||!m),T=_&&!!h&&"Opera"!==u(o.opera),D=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&s(O,u(e))};for(n in O)o[n]||(T=!1);if((!T||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},T))for(n in O)o[n]&&h(o[n],x);if((!T||!A||A===P)&&(A=x.prototype,T))for(n in O)o[n]&&h(o[n].prototype,A);if(T&&p(S)!==A&&h(S,A),i&&!s(A,E))for(n in D=!0,f(A,E,{get:function(){return a(this)?this[k]:void 0}}),O)o[n]&&c(o[n],k,n);_&&h&&p(g)!==P&&h(g,P),e.exports={NATIVE_ARRAY_BUFFER:_,NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:D&&k,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(I.call(x,e))return e}else for(var t in O)if(s(O,n)){var r=o[t];if(r&&(e===r||I.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r){if(i){if(r)for(var n in O){var a=o[n];a&&s(a.prototype,e)&&delete a.prototype[e]}A[e]&&!r||l(A,e,r?t:T&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(i){if(h){if(r)for(n in O)(a=o[n])&&s(a,e)&&delete a[e];if(x[e]&&!r)return;try{return l(x,e,r?t:T&&y[e]||t)}catch(e){}}for(n in O)!(a=o[n])||a[e]&&!r||l(a,e,t)}},isView:function(e){var t=u(e);return"DataView"===t||s(O,t)},isTypedArray:R,TypedArray:x,TypedArrayPrototype:A}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(36),i=r(130),o=r(62),a=r(45),s=r(131),u=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){var n=r(7),i=r(100),o=r(24),a=r(69),s=r(103),u=r(126),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,r){"use strict";var n=r(112),i=r(23),o=r(29),a=r(15),s=r(38),u=r(34),c=r(113),l=r(114),f=Math.max,p=Math.min,h=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){return[function(r,n){var i=u(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):t.call(String(i),r,n)},function(e,o){if(n.REPLACE_KEEPS_$0||"string"==typeof o&&-1===o.indexOf("$0")){var u=r(t,e,this,o);if(u.done)return u.value}var h=i(e),d=String(this),v="function"==typeof o;v||(o=String(o));var g=h.global;if(g){var y=h.unicode;h.lastIndex=0}for(var b=[];;){var w=l(h,d);if(null===w)break;if(b.push(w),!g)break;""===String(w[0])&&(h.lastIndex=c(d,a(h.lastIndex),y))}for(var S,x="",A=0,P=0;P=A&&(x+=d.slice(A,E)+O,A=E+I.length)}return x+d.slice(A)}];function m(e,r,n,i,a,s){var u=n+e.length,c=i.length,l=v;return void 0!==a&&(a=o(a),l=d),t.call(s,l,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>c){var f=h(l/10);return 0===f?t:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[l-1]}return void 0===s?"":s}))}}))},function(e,t,r){var n=r(7),i=r(44).f,o=r(28),a=r(37),s=r(98),u=r(122),c=r(125);e.exports=function(e,t){var r,l,f,p,h,d=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=i(r,l))&&h.value:r[l],!c(v?l:d+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(r,l,p,e)}}},function(e,t,r){var n=r(38),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(7),i=r(143),o=r(11),a=r(28),s=r(12),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var p=n[f],h=p&&p.prototype;if(h){if(h[u]!==l)try{a(h,u,l)}catch(e){h[u]=l}if(h[c]||a(h,c,f),i[f])for(var d in o)if(h[d]!==o[d])try{a(h,d,o[d])}catch(e){h[d]=o[d]}}}},function(e,t,r){"use strict";var n=r(14),i=r(7),o=r(51),a=r(46),s=r(27),u=r(103),c=r(126),l=r(8),f=r(24),p=r(71),h=r(22),d=r(23),v=r(29),m=r(36),g=r(57),y=r(50),b=r(72),w=r(73),S=r(58),x=r(167),A=r(102),P=r(44),I=r(25),E=r(96),k=r(28),_=r(37),T=r(100),D=r(68),O=r(70),R=r(69),N=r(12),C=r(128),L=r(129),j=r(60),V=r(45),M=r(31).forEach,F=D("hidden"),U=N("toPrimitive"),W=V.set,B=V.getterFor("Symbol"),G=Object.prototype,q=i.Symbol,H=o("JSON","stringify"),Y=P.f,$=I.f,z=x.f,X=E.f,Q=T("symbols"),Z=T("op-symbols"),K=T("string-to-symbol-registry"),J=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,re=!te||!te.prototype||!te.prototype.findChild,ne=s&&l((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Y(G,t);n&&delete G[t],$(e,t,r),n&&e!==G&&$(G,t,n)}:$,ie=function(e,t){var r=Q[e]=b(q.prototype);return W(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,r){e===G&&ae(Z,t,r),d(e);var n=g(t,!0);return d(r),f(Q,n)?(r.enumerable?(f(e,F)&&e[F][n]&&(e[F][n]=!1),r=b(r,{enumerable:y(0,!1)})):(f(e,F)||$(e,F,y(1,{})),e[F][n]=!0),ne(e,n,r)):$(e,n,r)},se=function(e,t){d(e);var r=m(t),n=w(r).concat(fe(r));return M(n,(function(t){s&&!ue.call(r,t)||ae(e,t,r[t])})),e},ue=function(e){var t=g(e,!0),r=X.call(this,t);return!(this===G&&f(Q,t)&&!f(Z,t))&&(!(r||!f(this,t)||!f(Q,t)||f(this,F)&&this[F][t])||r)},ce=function(e,t){var r=m(e),n=g(t,!0);if(r!==G||!f(Q,n)||f(Z,n)){var i=Y(r,n);return!i||!f(Q,n)||f(r,F)&&r[F][n]||(i.enumerable=!0),i}},le=function(e){var t=z(m(e)),r=[];return M(t,(function(e){f(Q,e)||f(O,e)||r.push(e)})),r},fe=function(e){var t=e===G,r=z(t?Z:m(e)),n=[];return M(r,(function(e){!f(Q,e)||t&&!f(G,e)||n.push(Q[e])})),n};(u||(_((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),r=function(e){this===G&&r.call(Z,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),ne(this,t,y(1,e))};return s&&re&&ne(G,t,{configurable:!0,set:r}),ie(t,e)}).prototype,"toString",(function(){return B(this).tag})),_(q,"withoutSetter",(function(e){return ie(R(e),e)})),E.f=ue,I.f=ae,P.f=ce,S.f=x.f=le,A.f=fe,C.f=function(e){return ie(N(e),e)},s&&($(q.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),a||_(G,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),M(w(ee),(function(e){L(e)})),n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(K,t))return K[t];var r=q(t);return K[t]=r,J[r]=t,r},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f(J,e))return J[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),n({target:"Object",stat:!0,forced:l((function(){A.f(1)}))},{getOwnPropertySymbols:function(e){return A.f(v(e))}}),H)&&n({target:"JSON",stat:!0,forced:!u||l((function(){var e=q();return"[null]"!=H([e])||"{}"!=H({a:e})||"{}"!=H(Object(e))}))},{stringify:function(e,t,r){for(var n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t,(h(t)||void 0!==e)&&!oe(e))return p(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),i[1]=t,H.apply(null,i)}});q.prototype[U]||k(q.prototype,U,q.prototype.valueOf),j(q,"Symbol"),O[F]=!0},function(e,t,r){"use strict";var n=r(14),i=r(27),o=r(7),a=r(24),s=r(22),u=r(25).f,c=r(122),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};c(p,l);var h=p.prototype=l.prototype;h.constructor=p;var d=h.toString,v="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=d.call(e);if(a(f,e))return"";var r=v?t.slice(7,-1):t.replace(m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},function(e,t,r){r(129)("iterator")},function(e,t,r){"use strict";var n=r(142).charAt,i=r(45),o=r(131),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict";var n=r(14),i=r(22),o=r(71),a=r(47),s=r(15),u=r(36),c=r(109),l=r(63),f=r(12)("species"),p=[].slice,h=Math.max;n({target:"Array",proto:!0,forced:!l("slice")},{slice:function(e,t){var r,n,l,d=u(this),v=s(d.length),m=a(e,v),g=a(void 0===t?v:t,v);if(o(d)&&("function"!=typeof(r=d.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[f])&&(r=void 0):r=void 0,r===Array||void 0===r))return p.call(d,m,g);for(n=new(void 0===r?Array:r)(h(g-m,0)),l=0;m1||"".split(/.?/).length?function(e,r){var n=String(a(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===e)return[n];if(!i(e))return t.call(n,e,o);for(var s,u,c,l=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,v=new RegExp(e.source,p+"g");(s=f.call(v,n))&&!((u=v.lastIndex)>d&&(l.push(n.slice(d,s.index)),s.length>1&&s.index=o));)v.lastIndex===s.index&&v.lastIndex++;return d===n.length?!c&&v.test("")||l.push(""):l.push(n.slice(d)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,r):n.call(String(i),t,r)},function(e,i){var a=r(n,e,this,i,n!==t);if(a.done)return a.value;var f=o(e),p=String(this),h=s(f,RegExp),m=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),y=new h(v?f:"^(?:"+f.source+")",g),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var w=0,S=0,x=[];SA;A++)if((p||A in w)&&(y=S(g=w[A],A,b),e))if(t)I[A]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return A;case 2:u.call(I,g)}else if(l)return!1;return f?-1:c||l?l:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,r){"use strict";var n=r(14),i=r(56),o=r(36),a=r(77),s=[].join,u=i!=Object,c=a("join",",");n({target:"Array",proto:!0,forced:u||c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),i=r(1);function o(){if(!this.listID)throw"[SharepointPlus 'info'] the list ID/Name is required.";if(!this.url)throw"[SharepointPlus 'info'] not able to find the URL!";return n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("GetList",""+this.listID+""),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetList"}}).then((function(e){var t,r,n,i,o,a,s,u,c,l,f,p,h,d=[],v=e.getElementsByTagName("Field"),m=0,g=e.getElementsByTagName("List");for(r=(g=g.length>0?g[0]:null).attributes,d._List={},s=0;s0&&(t.Property[p[0].firstChild.nodeValue]=h.length>0?h[0].firstChild.nodeValue:null);break;default:t.Choices=[]}t[n]=i}if((o=v[s].getElementsByTagName("Default").length)>0){a=v[s].getElementsByTagName("Default"),d[m].DefaultValue=[];for(var y=0;y/g,">")}},function(e,t,r){var n=r(56),i=r(34);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(7),i=r(28),o=r(24),a=r(98),s=r(99),u=r(45),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e!==n?(u?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=r:i(e,t,r)):c?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(14),i=r(59).indexOf,o=r(77),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,u=o("indexOf");n({target:"Array",proto:!0,forced:s||u},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));r(17),r(18),r(19),r(116),r(39),r(11),r(32),r(79),r(21),r(215),r(2),r(3),r(6),r(20),r(119),r(13),r(30),r(217),r(42),r(16),r(4);var n=r(26),i=r(83),o=r(65),a=r(33),s=r(35),u=r(85),c=r(1),l=r(0),f=r(66),p=r(86),h=r(87);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function m(e,t){for(var r=0;r(.*<\/DateRangesOverlap>)(.*)<\/And>$/))&&3===v.length&&(m.WhereCAML=""+v[2]+v[1]+""),S=S.length>0?S.map((function(e){return""+e+m.WhereCAML+""})):m.WhereCAML,d.where=S,d.whereCAML=!0),d.fields+=(""===d.fields?"":",")+m.Fields.join(","),d.orderby+=(""===d.orderby?"":",")+m.OrderBy,d.calendarViaView=d.calendar,d.calendar=!1,d.view="";case 40:if(!Array.isArray(d.where)){t.next=46;break}return x=d.where.length,A=0,t.abrupt("return",{v:Promise.all(d.where.map((function(e){var t={};for(var r in d)t[r]=d[r];return t.where=e,b.call(w,t).then((function(e){return"function"==typeof t.progress&&t.progress(++A,x),e}))}))).then((function(e){var t=[];return e.forEach((function(e){return t=t.concat(e)})),t}))});case 46:d.originalWhere=d.where,d.nextWhere=[];case 48:if(d.progress=d.progress||function(){},P="",E="",D="",N="",L="",d.fields.length>0)for("string"==typeof d.fields&&(d.fields=d.fields.replace(/^\s+/,"").replace(/\s+$/,"").replace(/( )?,( )?/g,",").split(",")),I=0;I';if(""!==d.orderby)for(k=d.orderby.split(","),I=0;I0&&(2==T.length&&(_=T[1].toUpperCase()),E+='');if(!0!==d.calendar&&!0!==d.calendarViaView||""!==E||(E=''),""!==d.groupby)for(O=d.groupby.split(","),I=0;I';if(Array.isArray(d.merge)&&(d.mergeData=d.mergeData||[]),!0===d.calendar||!0===d.calendarViaView)for(R=["Title","EventDate","EndDate","Duration","fAllDayEvent","fRecurrence","RecurrenceData","ID","MasterSeriesItemID","UID","RecurrenceID"],I=0;I';if(!d.folderOptions||d.folderOptions.rootFolder){t.next=61;break}return t.next=59,a.a.call(w);case 59:V=t.sent,d.folderOptions.rootFolder=V._List.RootFolder;case 61:if(void 0!==d.queryOptions){t.next=81;break}if(d._queryOptions=""+d.dateInUTC+'True'+(""===P?"":"False")+""+d.expandUserField+"",!d.folderOptions){t.next=78;break}t.t0=d.folderOptions.show,t.next="FilesAndFolders_Recursive"===t.t0?67:"FilesOnly_InFolder"===t.t0?69:"FilesAndFolders_InFolder"===t.t0?71:(t.t0,73);break;case 67:return C="RecursiveAll",t.abrupt("break",74);case 69:return C="FilesOnly",t.abrupt("break",74);case 71:return C="",t.abrupt("break",74);case 73:C="Recursive";case 74:d._queryOptions+='',d.folderOptions.path&&(d._queryOptions+=""+d.folderOptions.rootFolder+"/"+d.folderOptions.path+""),t.next=79;break;case 78:d._queryOptions+='';case 79:t.next=82;break;case 81:d._queryOptions=d.queryOptions;case 82:return d.calendarOptions&&(d._queryOptions+=""+d.calendarOptions.referenceDate+"v3"+d.calendarOptions.splitRecurrence+""),""!==d.where&&(L=d.whereCAML?d.where:Object(o.a)(d.where)),!0===d.calendar&&(j="<"+d.calendarOptions.range+" />",L=""!==L?""+L+j+"":j),L=d.whereFct(L),N=""+w.listID+""+(d.viewID||"")+""+(""!=L?""+L+"":"")+(""!=D?""+D+"":"")+(""!=E?""+E+"":"")+""+P+""+d.rowlimit+""+d._queryOptions+"",N=Object(c.a)("GetListItems",N),t.next=90,l.a.call(w,{url:w.url+"/_vti_bin/Lists.asmx",body:N});case 90:if(M=t.sent,ae=[],0===(F=M.getElementsByTagName("z:row")).length&&(F=M.getElementsByTagName("row")),ce=d.json&&!d.join&&!d.innerjoin&&!d.outerjoin&&!d.joinIndex,d.showListInAttribute)for(le=0,fe=F.length;le0)for(I=0,W=ae.length;I0)){t.next=110;break}if(0===d.results.length&&(d.results=ae),d.progress(d.results.length),!z){t.next=107;break}return d.listItemCollectionPositionNext=Object(s.a)(z),t.abrupt("return",{v:b.call(w,d)});case 107:ae=d.results;case 108:t.next=118;break;case 110:if(!(d.nextWhere.length>0)){t.next=116;break}return 0===d.results.length&&(d.results=ae),d.where=d.nextWhere.slice(0),t.abrupt("return",{v:b.call(w,d)});case 116:d.where=d.originalWhere,ae=d.results.length>0?d.results:ae;case 118:if(!d.joinData){t.next=139;break}for(G=d.joinData.noindex,q=[],H="",$={length:0},G.length||alert("$SP.get() -- Error 'get': you must define the ON clause when JOIN is used."),I=0,W=ae.length;I0)){t.next=159;break}for(re=[],ne=[],ie=[],d.join.onLookup&&(Se=d.join.onLookup,d.join.on="'"+(d.join.alias||d.join.list)+"'."+d.join.onLookup+" = '"+d.alias+"'.ID"),G=y(d.join.on),re.noindex=G,I=0,W=ae.length;I0){for(oe=Object(h.a)(ie,e._SP_MAXWHERE_ONLOOKUP),U=0;U0)){t.next=173;break}return(se=d.merge.shift()).merge=d.merge.slice(0),se.json=d.join,w.listID=se.list,w.url=se.url||w.url,se.mergeData=d.mergeData.concat(ae.map((function(e){return e.Source=ue,e}))),t.next=170,b.call(w,se);case 170:ae=t.sent,t.next=174;break;case 173:ae=d.mergeData.concat(ae.map((function(e){return e.Source=ue,e})));case 174:if(ae.NextPage=z,!d.json||ce){t.next=180;break}if(Ie=[],!(ae.length>0&&"function"==typeof ae[0].getAttribute)){t.next=180;break}for(Ee=0,ke=ae.length;Eeh.packetsize)){t.next=22;break}v=r.slice(0),m=v.splice(0,h.packetsize),e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]=function(e){return p.call(T,v,e)},d=(r=m).length,t.next=25;break;case 22:if(0!==d){t.next=25;break}return h.progress(1,1),t.abrupt("return",Promise.resolve({passed:[],failed:[]}));case 25:h.progressVar.current+=d,S='",w=0;case 28:if(!(w',S+="New",t.t0=regeneratorRuntime.keys(r[w]);case 32:if((t.t1=t.t0()).done){t.next=63;break}if(b=t.t1.value,!Object.prototype.hasOwnProperty.call(r[w],b)){t.next=61;break}g=b,y=r[w][b],Array.isArray(y)&&(y=0===y.length?"":";#"+y.join(";#")+";#"),t.t2=g,t.next="RecurrenceData"===t.t2?41:58;break;case 41:if("object"===l(y)&&(y=Object(a.a)(y)),void 0===r[w].fRecurrence&&(S+="1"),void 0===r[w].EventType&&(S+="1"),void 0===r[w].UID&&(S+="{"+Object(s.a)()+"}"),void 0===r[w].fAllDayEvent&&(S+="0"),void 0!==r[w].TimeZone){t.next=56;break}if(!e._SP_CACHE_TIMEZONEINFO[this.url]){t.next=51;break}S+=""+e._SP_CACHE_TIMEZONEINFO[this.url].ID+"",t.next=56;break;case 51:return t.next=53,c.a.call(this,{url:this.url});case 53:return x=t.sent,e._SP_CACHE_TIMEZONEINFO[this.url]=x,t.abrupt("return",p.call(this,r,f));case 56:return S+="",t.abrupt("break",61);case 58:"boolean"==typeof y&&(y=y?"1":"0"),h.escapeChar&&"string"==typeof y&&(y=Object(u.a)(y)),S+=""+y+"";case 61:t.next=32;break;case 63:S+="";case 64:w++,t.next=28;break;case 67:return S+="",t.next=70,n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("UpdateListItems",""+this.listID+""+S+""),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"}});case 70:for(A=t.sent,P=A.getElementsByTagName("Result"),I=P.length,E=h.progressVar.passed,k=h.progressVar.failed,w=0;w0)){t.next=79;break}return e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]=void 0,t.abrupt("return",Promise.resolve({passed:E,failed:k}));case 79:return t.abrupt("return",e._SP_ADD_PROGRESSVAR[h.progressVar.eventID](h));case 80:t.next=84;break;case 82:return e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]&&(e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]=void 0),t.abrupt("return",Promise.resolve({passed:E,failed:k}));case 84:t.next=89;break;case 86:return t.prev=86,t.t3=t.catch(0),t.abrupt("return",Promise.reject(t.t3));case 89:case"end":return t.stop()}}),t,this,[[0,86]])})),(h=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){var n=r(27),i=r(96),o=r(50),a=r(36),s=r(57),u=r(24),c=r(120),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,r){var n,i,o,a=r(164),s=r(7),u=r(22),c=r(28),l=r(24),f=r(68),p=r(70),h=s.WeakMap;if(a){var d=new h,v=d.get,m=d.has,g=d.set;n=function(e,t){return g.call(d,e,t),t},i=function(e){return v.call(d,e)||{}},o=function(e){return m.call(d,e)}}else{var y=f("state");p[y]=!0,n=function(e,t){return c(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){e.exports=!1},function(e,t,r){var n=r(38),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},function(e,t,r){var n=r(23),i=r(61),o=r(12)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(2),r(3),r(6),r(13),r(30),r(115),r(4);var n=r(0),i=r(5);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var t;return t=regeneratorRuntime.mark((function t(r){var o,a,s,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,(r=r||{}).cache=!1!==r.cache,(s=r.url||this.url)&&s.startsWith("http")){t.next=8;break}return t.next=7,i.a.call(this);case 7:s=t.sent;case 8:if(s=s.replace(/\/$/,""),r.cache&&(a=e._SP_CACHE_REQUESTDIGEST[s]),!a){t.next=13;break}if(!((new Date).getTime()-new Date(a.split(",")[1]).getTime()<1800)){t.next=13;break}return t.abrupt("return",Promise.resolve(a));case 13:if(!(e._SP_ISBROWSER&&document&&r.cache)){t.next=19;break}if(!(o=document.querySelector("#__REQUESTDIGEST"))){t.next=19;break}return a=o.value,e._SP_CACHE_REQUESTDIGEST[s]=a,t.abrupt("return",Promise.resolve(a));case 19:return t.next=21,n.a.call(this,{url:s+"/_api/contextinfo",method:"POST"});case 21:return u=t.sent,a=u.d.GetContextWebInformation.FormDigestValue,e._SP_CACHE_REQUESTDIGEST[s]=a,e._SP_ISBROWSER&&document&&(o=document.querySelector("#__REQUESTDIGEST"))&&(o.value=a),t.abrupt("return",Promise.resolve(a));case 28:return t.prev=28,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 31:case"end":return t.stop()}}),t,this,[[0,28]])})),(s=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(123),i=r(7),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){"use strict";var n=r(14),i=r(47),o=r(38),a=r(15),s=r(29),u=r(104),c=r(109),l=r(63),f=Math.max,p=Math.min;n({target:"Array",proto:!0,forced:!l("splice")},{splice:function(e,t){var r,n,l,h,d,v,m=s(this),g=a(m.length),y=i(e,g),b=arguments.length;if(0===b?r=n=0:1===b?(r=0,n=g-y):(r=b-2,n=p(f(o(t),0),g-y)),g+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(m,n),h=0;hg-n+r;h--)delete m[h-1]}else if(r>n)for(h=g-n;h>y;h--)v=h+r-1,(d=h+n-1)in m?m[v]=m[d]:delete m[v];for(h=0;h]+>([^<]+)<\/[^>]+>$/m,"$1")};return["firstDayOfWeek","daily","weekly","monthly","monthlyByDay","yearly","yearlyByDay","windowEnd","repeatInstances"].forEach((function(e){var n=i.getElementsByTagName(e);if(1===n.length){var o=n[0];switch(/y$/.test(e)&&(r.type=e),e){case"firstDayOfWeek":for(var s=a(o),u=0;u"+(e.firstDayOfWeek.toLowerCase().slice(0,2)||"mo")+"<"+e.type+" ",e.type){case"daily":r+=(e.frequency?'dayFrequency="'+e.frequency+'"':'weekday="TRUE"')+" />";break;case"weekly":t.forEach((function(t){e.on[t]&&(r+=t.slice(0,2)+'="TRUE" ')})),r+='weekFrequency="'+e.frequency+'" />';break;case"monthly":r+='monthFrequency="'+e.frequency+'" day="'+e.on.day+'" />';break;case"yearlyByDay":case"monthlyByDay":["day","weekday","weekend"].concat(t).forEach((function(t,n){e.on[t]&&(r+=n<3?t+("weekend"===t?"_day":""):t.slice(0,2),-1===(r+='="TRUE" ').indexOf("ayOfMonth")&&(r+="week"+("monthlyByDay"===e.type?"d":"D")+'ayOfMonth="'+e.on[t]+'" '),t=e.on[t])})),e.on.month&&(r+=' month="'+e.on.month+'"'),r+=("monthlyByDay"===e.type?"month":"year")+'Frequency="'+e.frequency+'" />';break;case"yearly":r+='yearFrequency="'+e.frequency+'" month="'+e.on.month+'" day="'+e.on.day+'" />'}return r+="",e.endDate?r+=""+new Date(e.endDate).toISOString().replace(/.000Z/,"Z")+"":e.endAfter?r+=""+e.endAfter+"":r+="FALSE",r+=""}return null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(2),r(117);function n(){for(var e="",t=0;t<32;t++){var r=Math.floor(16*Math.random());switch(t){case 8:e+="-";break;case 12:r=4,e+="-";break;case 16:r=3&r|8,e+="-";break;case 20:e+="-"}e+=r.toString(16)}return e}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(11),r(21),r(52),r(64),r(2),r(20),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t,r){var o,a=this;switch(arguments.length){case 0:throw"Error 'removeNotify': you must provide 'name' or 'options'.";case 2:if("object"!==n(r))throw"Error 'removeNotify': you must provide an object for 'options'."}if(1===arguments.length&&"object"===n(t)&&(r=t,t=void 0),(r=r||{all:!1}).timeout=!0===r.timeout,!1===e._SP_NOTIFY_READY&&e._SP_NOTIFY_QUEUE.length>0)return setTimeout((function(){return i.call(a,t,r)}),150),this;if(!0===r.all){for(var s=[];e._SP_NOTIFY.length>0;)o=e._SP_NOTIFY.shift(),!1===r.includeSticky&&!0===o.options.sticky?s.push(o):(SP.UI.Notify.removeNotification(o.id),setTimeout((function(){return o.options.after.call(a,o.name,!1)}),150));e._SP_NOTIFY=s.slice(0)}else if(void 0!==t)for(var u=0,c=e._SP_NOTIFY.length;ul;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(25).f,i=r(24),o=r(12)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports={}},function(e,t,r){var n=r(8),i=r(12),o=r(108),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){var n=r(27),i=r(25).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;!n||"name"in o||i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r(17),r(18),r(19),r(11),r(32),r(21),r(2),r(6),r(20),r(13),r(42),r(16);var n=r(35);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=e.replace(/(\s+)?(=|~=|<=|>=|~<>|<>|<|>| LIKE | IN )(\s+)?/g,"$2").replace(/""|''/g,"Null").replace(/==/g,"=");/\w+ IN \[([^[]+,)?Null,?/.test(r)&&(r=r.replace(/(\w+) IN \[([^\[]+,)?Null(,[^\]]+)?\]/g,"($1 = Null OR $&)").replace(/\[([^\[]+,)?Null(,[^\]]+)?\]/g,"[$1$2]").replace(/(\[),|(,),|,(\])/g,"$1$2$3"));var a=[];t=!1!==t;for(var s=r.length,u="",c="",l=!1,f="",p={open:0},h=!1,d=0;d0&&d=0?(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=o(r.substring(m+1,d)),""!=u&&(a[0]+=""),u=""):a[0]=o(r.substring(m+1,d));break;case"[":for(m=d,g=!1;d'+w.join('')+""+c,f="",c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+=""),delete a[b],u="");break;case">":case"<":d++,"="==r.charAt(d)?(a.push("<"+(">"==v?"G":"L")+"eq>"),c=""==v?"G":"L")+"eq>"):"<"==v&&">"==r.charAt(d)?(a.push(""),c=""):(d--,a.push("<"+(">"==v?"G":"L")+"t>"),c=""==v?"G":"L")+"t>");break;case"~":("="==r.charAt(d+1)||"<"===r.charAt(d+1)&&">"===r.charAt(d+2))&&(h=!0);break;case"=":a.push(""),c="";break;case" ":" AND "==r.substring(d,d+5).toUpperCase()?(u="And",d+=4):" OR "==r.substring(d,d+4).toUpperCase()?(u="Or",d+=3):" LIKE "==r.slice(d,d+6).toUpperCase()?(d+=5,a.push(""),c=""):" IN "==r.slice(d,d+4).toUpperCase()?(d+=3,a.push(""),c=""):f+=v;break;case'"':case"'":for(var x=v,A="",P="";(v=r.charAt(++d))!=x&&d",f="";var I="Text";/\d{4}-\d\d?-\d\d?((T| )\d{2}:\d{2}:\d{2})?/.test(A)&&(I="DateTime",/\d{4}-\d\d?-\d\d?((T| )\d{2}:\d{2}:\d{2})/.test(A)&&(P=' IncludeTimeValue="TRUE"')),t&&(A=Object(n.a)(A)),"[Me]"===A?(A='',I="Integer"):"[Today"==A.slice(0,6)&&(I="DateTime",A=''),a[b]+='"+A+"",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+=""),delete a[b],u="");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(""!=c){for(var E=v;!isNaN(v=r.charAt(++d))&&d",f="",a[b]+=''+E.replace(/ $/,"")+"",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+=""),delete a[b],u=""),d-=2;break}default:""==c?f+=v:"n"==v.toLowerCase()&&"null"==r.substring(d,d+4).toLowerCase()?(b=a.length-1,""==c?(a[b]="",c=""):""==c&&(a[b]="",c=""),d+=3,a[b]+='',f="",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+=""),delete a[b],u="")):("t"===v.toLowerCase()&&"true"===r.substring(d,d+4).toLowerCase()||"f"===v.toLowerCase()&&"false"===r.substring(d,d+5).toLowerCase())&&(b=a.length-1,d+=3,"f"===v.toLowerCase()&&d++,a[b]+=''+("t"===v.toLowerCase()?1:0)+"",f="",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+=""),delete a[b],u=""))}}return a.join("")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(21),r(6),r(13),r(30);function n(e){if(!e)return{id:"",value:""};var t=e.split(";#");return t.length<=2?{id:t[0],value:void 0===t[1]?t[0]:t[1]}:{id:e.replace(/([0-9]+;#)([^;]+)/g,"$1").replace(/;#;#/g,",").slice(0,-2).split(","),value:e.replace(/([0-9]+;#)([^;]+)/g,"$2").split(";#")}}},function(e,t,r){"use strict";function n(e){var t={width:0,height:0},r={width:0,height:0},n=e||window,i=n.document,o=i.documentElement,a=i.querySelector("body");return t.width=n.innerWidth||o.clientWidth||a.clientWidth,t.height=n.innerHeight||o.clientHeight||a.clientHeight,r.width=Math.max(a.scrollWidth,o.scrollWidth,a.offsetWidth,o.offsetWidth,a.clientWidth,o.clientWidth),r.height=Math.max(a.scrollHeight,o.scrollHeight,a.offsetHeight,o.offsetHeight,a.clientHeight,o.clientHeight),document.all&&document.querySelector&&!document.addEventListener&&t.width+4==r.width&&t.height+4==r.height&&(t.width=r.width,t.height=r.height),{vw:t,doc:r}}r.d(t,"a",(function(){return n}))},function(e,t,r){var n=r(100),i=r(69),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(41);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n,i=r(23),o=r(166),a=r(101),s=r(70),u=r(127),c=r(97),l=r(68),f=l("IE_PROTO"),p=function(){},h=function(e){return" - badge JSDelivr + badge JSDelivr

Description

-

SharepointPlus ($SP) is a JavaScript API for Sharepoint. This library offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.

+

SharepointSharp ($SP) is a JavaScript API for Sharepoint. This library offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.

SharePoint Support

@@ -86,11 +86,11 @@

Node environment

If you develop with Node, you can install the module with:

-npm install sharepointplus
+npm install SharepointSharp
 

Then, just import it:

-import $SP from 'sharepointplus'
+import $SP from 'SharepointSharp'
 

To make $SP available from the browser's web console, you can add:

@@ -100,50 +100,50 @@

Node environment

Tree Shaking

-

Because SharepointPlus is split in small modules, you can only import the pieces you need, reducing the size of your bundles. To do so, you have two options.

+

Because SharepointSharp is split in small modules, you can only import the pieces you need, reducing the size of your bundles. To do so, you have two options.

1) Without Webpack

If you don't use Webpack, then you need to manually import the different modules based on your needs.

 // By using the below line, you'll import all the 70+ functions in your bundle
-// import $SP from 'sharepointplus'
+// import $SP from 'SharepointSharp'
 // By replacing the above line with only the necessary functions, you'll cut down the bundle size:
 
 // let's suppose you only need $SP().list().get() and $SP().getPeopleLookup() in your file
-import spInit from 'sharepointplus/es5/init.js'
-import list from 'sharepointplus/es5/lists/list.js'
-import get from 'sharepointplus/es5/lists/get.js'
-import getPeopleLookup from 'sharepointplus/es5/utils/getPeopleLookup.js'
+import spInit from 'SharepointSharp/es5/init.js'
+import list from 'SharepointSharp/es5/lists/list.js'
+import get from 'SharepointSharp/es5/lists/get.js'
+import getPeopleLookup from 'SharepointSharp/es5/utils/getPeopleLookup.js'
 const $SP = spInit({'list':list, 'get':get, 'getPeopleLookup':getPeopleLookup });
 
-

Find the path to each function into this file.

+

Find the path to each function into this file.

2) With Webpack / SPFx project
-

If you use Webpack for your application, you can leverage the sharepointplus-loader plugin that will automatically replace import $SP from 'sharepointplus' in your code with the functions used in the file.

+

If you use Webpack for your application, you can leverage the SharepointSharp-loader plugin that will automatically replace import $SP from 'SharepointSharp' in your code with the functions used in the file.

 // ----- file 'component.js' BEFORE being compiled with Webpack
-import $SP from 'sharepointplus'
+import $SP from 'SharepointSharp'
 
-// ----- file 'component.js' AFTER being compiled with Webpack using the `sharepointplus-loader` plugin
+// ----- file 'component.js' AFTER being compiled with Webpack using the `SharepointSharp-loader` plugin
 // let's suppose you only use $SP().list().get() and $SP().getPeopleLookup() in the file
-// then the `sharepointplus-loader` plugin will automatically convert `import $SP from 'sharepointplus'` to the below code:
-import spInit from 'sharepointplus/es5/init.js'
-import list from 'sharepointplus/es5/lists/list.js'
-import get from 'sharepointplus/es5/lists/get.js'
-import getPeopleLookup from 'sharepointplus/es5/utils/getPeopleLookup.js'
+// then the `SharepointSharp-loader` plugin will automatically convert `import $SP from 'SharepointSharp'` to the below code:
+import spInit from 'SharepointSharp/es5/init.js'
+import list from 'SharepointSharp/es5/lists/list.js'
+import get from 'SharepointSharp/es5/lists/get.js'
+import getPeopleLookup from 'SharepointSharp/es5/utils/getPeopleLookup.js'
 const $SP = spInit({'list':list, 'get':get, 'getPeopleLookup':getPeopleLookup });
 
-

To use sharepointplus-loader plugin, add it to your Webpack configuration file, in the plugins section.

+

To use SharepointSharp-loader plugin, add it to your Webpack configuration file, in the plugins section.

For regular Webpack config:

 // ----- file 'webpack.conf.js'
 const webpack = require('webpack');
-const SharepointPlusLoaderPlugin = require('sharepointplus-loader/plugin'); // load the plugin
+const SharepointSharpLoaderPlugin = require('SharepointSharp-loader/plugin'); // load the plugin
 module.exports = {
   [ ... your configuration ... ],
   plugins:[
-    new SharepointPlusLoaderPlugin() // add the plugin here
+    new SharepointSharpLoaderPlugin() // add the plugin here
   ]
 };
 
@@ -157,11 +157,11 @@
2) With Webpack / SPFx project
// add the plugin with the below block of code: const webpack = require('webpack'); -const SharepointPlusLoaderPlugin = require('sharepointplus-loader/plugin'); // load the plugin +const SharepointSharpLoaderPlugin = require('SharepointSharp-loader/plugin'); // load the plugin build.configureWebpack.mergeConfig({ additionalConfiguration: (generatedConfig) => { if (!Array.isArray(generatedConfig.plugins)) generatedConfig.plugins=[]; - generatedConfig.plugins.push(new SharepointPlusLoaderPlugin()); // add the plugin here + generatedConfig.plugins.push(new SharepointSharpLoaderPlugin()); // add the plugin here // return modified config => SPFx build pipeline return generatedConfig; } @@ -173,18 +173,18 @@
2) With Webpack / SPFx project

`require` only

-

If your project doesn't support import symbol, but only require, then you can still load SharepointPlus using the below syntax:

+

If your project doesn't support import symbol, but only require, then you can still load SharepointSharp using the below syntax:

-const $SP = require("sharepointplus/dist");
+const $SP = require("SharepointSharp/dist");
 

In that case you won't benefit from the tree-shaking optimization.

Browser only

-

You can also just drop one file in your HTML document which will contain all the 70+ functions and all the polyfills to support the different browsers:

+

You can also just drop one file in your HTML document which will contain all the 70+ functions and all the polyfills to support the different browsers:

-  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sharepointplus/browser/sharepointplus.js"></script>
+  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/SharepointSharp/browser/SharepointSharp.js"></script>
 
Note: because this file contains all the functions as well as all the polyfills, it might be quite big (~55KB gzipped).
@@ -198,19 +198,19 @@

Browser Support

It's important to note that Internet Explorer uses different engine versions depending of the webpage:

    -
  • Sharepoint 2010: by default, a Sharepoint 2010 webpage, opened in IE11, will render with IE7 Engine! In that case, only SharepointPlus v3.14 is compatible because this Internet Explorer 7 engine is too old for the newest versions of SharepointPlus.
  • -
  • Sharepoint 2013: by default, a Sharepoint 2010 webpage, opened in IE11, will render with IE10 Engine. In that case, the current version of SharepointPlus works.
  • -
  • Sharepoint 2019/Online: by default, the webpage, opened in IE11, will render with IE11 Engine. In that case, the current version of SharepointPlus works.
  • +
  • Sharepoint 2010: by default, a Sharepoint 2010 webpage, opened in IE11, will render with IE7 Engine! In that case, only SharepointSharp v3.14 is compatible because this Internet Explorer 7 engine is too old for the newest versions of SharepointSharp.
  • +
  • Sharepoint 2013: by default, a Sharepoint 2010 webpage, opened in IE11, will render with IE10 Engine. In that case, the current version of SharepointSharp works.
  • +
  • Sharepoint 2019/Online: by default, the webpage, opened in IE11, will render with IE11 Engine. In that case, the current version of SharepointSharp works.

You may need to add <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> in your page's headers to make sure IE will support the latest engine.

--> -

How does SharepointPlus work?

-

SharepointPlus mainly uses the different Web Services to deal with the SharePoint server.

+

How does SharepointSharp work?

+

SharepointSharp mainly uses the different Web Services to deal with the SharePoint server.

But the library also uses several REST API, e.g. when the Web Service is not available anymore, or if the REST API provides more functionalities.

- +

Because of the large compatibility and the available features, using the Web Services it's still the right call for SharepointSharp.

-->

Examples

-

Let's see some examples of what you can do with SharepointPlus:

+

Let's see some examples of what you can do with SharepointSharp:

 // Update all items with an "Amount" value bigger than 1000
 $SP().list('My List Name').update({
@@ -313,13 +313,13 @@ 

Examples

Try it out

-

You can test it right now. Just open your browser "Developer Tools" window on your SharePoint site somewhere, then run the following code snippet which will load the SharepointPlus script dynamically:

+

You can test it right now. Just open your browser "Developer Tools" window on your SharePoint site somewhere, then run the following code snippet which will load the SharepointSharp script dynamically:

-// 1: Load SharepointPlus
+// 1: Load SharepointSharp
 var script = document.createElement('script');
-script.src = "//cdn.jsdelivr.net/npm/sharepointplus/browser/sharepointplus.js";
+script.src = "//cdn.jsdelivr.net/npm/SharepointSharp/browser/SharepointSharp.js";
 document.getElementsByTagName('head')[0].appendChild(script);
-// if you receive the error: "Refused to load the script 'https://cdn.jsdelivr.net/npm/sharepointplus/browser/sharepointplus.js' because it violates the following Content Security Policy directive" then you'll have to directly copy/paste the code from https://cdn.jsdelivr.net/npm/sharepointplus/browser/sharepointplus.js in the console
+// if you receive the error: "Refused to load the script 'https://cdn.jsdelivr.net/npm/SharepointSharp/browser/SharepointSharp.js' because it violates the following Content Security Policy directive" then you'll have to directly copy/paste the code from https://cdn.jsdelivr.net/npm/SharepointSharp/browser/SharepointSharp.js in the console
 
 // 2: Try some library methods
 $SP().list('List In the Current Site').get({fields:"ID", where:"ID > 0"}).then(function(data) { data.forEach(function(d) { console.log(d.getAttribute("ID")) }) });
@@ -332,7 +332,7 @@ 

Try it out

Node Server Side Application

-

If you plan to run SharepointPlus on the server side using Node, you will need to install two additional modules:

+

If you plan to run SharepointSharp on the server side using Node, you will need to install two additional modules:

 npm install xmldom sp-request
 
@@ -349,10 +349,10 @@

Node Server Side Application

// you can also define a proxy const proxyweb = "http://" + credentials.domain + "%5C" + credentials.username + ":" + credentials.password + "@proxy:80"; -const $SP = require('sharepointplus'); +const $SP = require('SharepointSharp'); const sp = $SP().proxy(proxyweb).auth(credentials); -// you can then use SharepointPlus normally +// you can then use SharepointSharp normally // e.g.: sp.list("Hello", "http://my.sharepoint.site/").get(...);
@@ -360,10 +360,10 @@

Node Server Side Application

Older Versions

- The previous versions of SharepointPlus are available in the releases folder
- The documentation for SharepointPlus v3.14 is available at https://sharepointplus3.netlify.app/
- The documentation for SharepointPlus v4.0 is available at https://sharepointplus4.netlify.app/
- The documentation for SharepointPlus v5.2 is available at https://sharepointplus5.netlify.app/docs/ + The previous versions of SharepointSharp are available in the releases folder
+ The documentation for SharepointSharp v3.14 is available at https://SharepointSharp3.netlify.app/
+ The documentation for SharepointSharp v4.0 is available at https://SharepointSharp4.netlify.app/
+ The documentation for SharepointSharp v5.2 is available at https://SharepointSharp5.netlify.app/docs/

@@ -381,7 +381,7 @@

Older Versions

diff --git a/docs/lists.html b/docs/lists.html index ebe6493..c021cab 100644 --- a/docs/lists.html +++ b/docs/lists.html @@ -4,9 +4,9 @@ - SharepointPlus :: JavaScript API for Sharepoint - - + SharepointSharp :: JavaScript API for Sharepoint + + @@ -30,7 +30,7 @@ - SharepointPlus + SharepointSharp @@ -42,12 +42,12 @@
- + @@ -60,7 +60,7 @@

Methods

-

add

(source code) +

add

(source code)
add(items, options)
@@ -77,7 +77,7 @@

add

( it should also be possible to not pass the values but only the ID, e.g.: ";#X;#;#Y;#;#" note: A Yes/No checkbox must be provided as "1" (for TRUE) or "0" (for "False") - note: A Term / Taxonomy / Managed Metadata field must be provided as "0;#|UniqueIdentifier" for the special hidden related column (see https://github.com/Aymkdn/SharepointPlus/wiki/ to know more) + note: A Term / Taxonomy / Managed Metadata field must be provided as "0;#|UniqueIdentifier" for the special hidden related column (see https://github.com/Aymkdn/SharepointSharp/wiki/ to know more) note: You cannot change the Approval Status when adding, you need to use the $SP().moderate function
@@ -140,7 +140,7 @@

Example:

} }) - // for Discussion Board, please refer to https://github.com/Aymkdn/SharepointPlus/wiki/Sharepoint-Discussion-Board
+ // for Discussion Board, please refer to https://github.com/Aymkdn/SharepointSharp/wiki/Sharepoint-Discussion-Board
@@ -155,7 +155,7 @@

Example:

-

addAttachment

(source code) +

addAttachment

(source code)
addAttachment(setup)
@@ -228,7 +228,7 @@

Example:

-

cleanResult

(source code) +

cleanResult

(source code)
cleanResult(str, separator)
@@ -275,7 +275,7 @@

Example:

-

get

(source code) +

get

(source code)
get(options)
@@ -621,7 +621,7 @@

Example:

}) }); - // for Discussion Board, please refer to https://github.com/Aymkdn/SharepointPlus/wiki/Sharepoint-Discussion-Board + // for Discussion Board, please refer to https://github.com/Aymkdn/SharepointSharp/wiki/Sharepoint-Discussion-Board // [It doesn't work with Sharepoint 2013 anymore, only for SP2010] // You can use `useIndexForOrderBy:true` to override the list view threshold -- see https://spservices.codeplex.com/discussions/280642 @@ -653,7 +653,7 @@

Example:

-

getAttachment

(source code) +

getAttachment

(source code)
getAttachment(itemID)
@@ -699,7 +699,7 @@

Example:

-

getContentTypeInfo

(source code) +

getContentTypeInfo

(source code)
getContentTypeInfo(contentType, options)
@@ -747,7 +747,7 @@

Example:

-

getContentTypes

(source code) +

getContentTypes

(source code)
getContentTypes(options)
@@ -791,7 +791,7 @@

Example:

-

getVersions

(source code) +

getVersions

(source code)
getVersions(ID)
@@ -837,7 +837,7 @@

Example:

-

getWorkflowID

(source code) +

getWorkflowID

(source code)
getWorkflowID(setup)
@@ -864,7 +864,9 @@

Returns:

Example:

-
$SP().list("List Name").getWorkflowID({ID:15, workflowName:"Workflow for List Name (manual)"}).then(function(params) {
  alert("Workflow ID:"+params.workflowID+" and the FileRef is: "+params.fileRef);
});
+
$SP().list("List Name").getWorkflowID({ID:15, workflowName:"Workflow for List Name (manual)"}).then(function(params) {
+  alert("Workflow ID:"+params.workflowID+" and the FileRef is: "+params.fileRef);
+});

@@ -877,7 +879,7 @@

Example:

- + SharepointSharp

hasPermission

(source code) @@ -927,7 +929,7 @@

Example:

- + SharepointSharp

history

(source code) @@ -975,7 +977,7 @@

Example:

- + SharepointSharp

info

(source code) @@ -1016,7 +1018,7 @@

Example:

- + SharepointSharp

lists

(source code) @@ -1060,7 +1062,7 @@

Example:

- + SharepointSharp

moderate

(source code) @@ -1107,7 +1109,7 @@

Example:

- + SharepointSharp

parse

(source code) @@ -1169,7 +1171,7 @@

Example:

- + SharepointSharp

parseRecurrence

(source code) @@ -1295,7 +1297,7 @@

Example:

- + SharepointSharp

remove

(source code) @@ -1360,7 +1362,7 @@

Example:

- + SharepointSharp

removeAttachment

(source code) @@ -1405,7 +1407,7 @@

Example:

- + SharepointSharp

restoreVersion

(source code) @@ -1450,7 +1452,7 @@

Example:

- + SharepointSharp

setReadOnly

(source code) @@ -1496,7 +1498,7 @@

Example:

- + SharepointSharp

startWorkflow

(source code) @@ -1546,7 +1548,7 @@

Example:

- + SharepointSharp

startWorkflow2013

(source code) @@ -1596,7 +1598,7 @@

Example:

- + SharepointSharp

stopWorkflow

(source code) @@ -1638,7 +1640,7 @@

Example:

- + SharepointSharp

update

(source code) @@ -1706,7 +1708,7 @@

Example:

- + SharepointSharp

view

(source code) @@ -1751,7 +1753,7 @@

Example:

- + SharepointSharp

views

(source code) @@ -1797,7 +1799,7 @@

Example: